/* ================= HEADER ================= */

#sp-header {
  font-size: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

#sp-header.sticky {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
}

/* ================= MENU ================= */

.sp-megamenu-parent > li {
  margin: 0 6px;
}

.sp-megamenu-parent > li > a {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

/* hover */
.sp-megamenu-parent > li > a:hover {
  color: #0d6efd;
}


/* ================= UNDERLINE ================= */

.sp-megamenu-parent > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: #0d6efd;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* hover underline */
.sp-megamenu-parent > li:hover > a::after {
  width: 60%;
}

.sp-megamenu-parent > li {
  position: relative;
}

.sp-megamenu-parent > li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 15px;
  bottom: -15px;
}
/* ================= DROPDOWN ================= */

.sp-dropdown {
  border-radius: 10px;
  padding: 10px 0;
  margin-top: 0;
  border: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  animation: fadeDown 0.25s ease;
}

.sp-dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: #333;
  transition: all 0.25s ease;
}

.sp-dropdown li a:hover {
  background: #f0f6ff;
  color: #0d6efd;
  padding-left: 25px;
}

/* ================= REMOVE ARROWS ================= */

.sp-megamenu-parent .sp-has-child > a::after,
.sp-megamenu-parent .sp-has-child > span::after,
.sp-megamenu-parent .sp-has-child i {
  display: none !important;
  content: none !important;
}

/* ================= FINAL ACTIVE FIX ================= */

/* Neutralize Joomla active/current completely */
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.current-item > a {
  color: #222 !important;
  font-weight: 500 !important;
}

/* ONLY real current page (ARIA) */
.sp-megamenu-parent > li > a[aria-current="page"] {
  color: #0d6efd !important;
  font-weight: 600 !important;
}

/* underline only for current */
.sp-megamenu-parent > li > a[aria-current="page"]::after {
  width: 60% !important;
}

/* ================= ANIMATION ================= */

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= LANGUAGE FLAGS ================= */

.mod-languages__list img {
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.mod-languages__list img:hover {
  transform: scale(1.1);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .sp-megamenu-parent > li > a {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* ================= FOOTER ================= */

#sp-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 50px 0 30px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Titles */
#sp-footer .sp-module-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Lists */
.menufooter {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.menufooter li {
  margin-bottom: 8px;
}

/* Links */
.menufooter li a {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.25s ease;
}

/* Hover */
.menufooter li a:hover {
  color: #38bdf8;
  transform: translateX(3px);
}

/* Icons */
.menufooter li a i,
.menufooter li a span {
  width: 22px;
  margin-right: 8px;
  text-align: center;
  opacity: 0.8;
}

/* Submenu */
.menu-child {
  padding-left: 20px;
  margin-top: 5px;
}

.menu-child li a {
  font-size: 13px;
  opacity: 0.9;
}

/* Column spacing */
#sp-footer .sp-column {
  margin-bottom: 20px;
  text-align: left;
}

/* Ensure footer2 behaves like others */
#sp-footer2,
#sp-footer2 .sp-module,
#sp-footer2 .sp-module-content {
  text-align: left;
}

/* Modules spacing */
#sp-footer .sp-module {
  margin-bottom: 25px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  #sp-footer {
    text-align: center;
  }

  /* Center ALL columns properly */
  #sp-footer .sp-column,
  #sp-footer2,
  #sp-footer2 .sp-module,
  #sp-footer2 .sp-module-content {
    text-align: center !important;
  }

  /* Center links */
  .menufooter li a {
    justify-content: center;
  }

  /* Better spacing */
  #sp-footer .sp-module {
    margin-bottom: 30px;
  }

}

/* ================= HEADINGS ================= */

h1, h2, h3, h4, h5 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 12px;
}

/* H1 (page titles) */
h1 {
  font-size: 32px;
  font-weight: 700;
}

/* H2 (sections) */
h2 {
  font-size: 24px;
  position: relative;
  padding-bottom: 8px;
  margin-top: 30px !important;
}

/* subtle underline */
h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #0d6efd;
  margin-top: 8px;
  border-radius: 2px;
}

/* H3 */
h3 {
  font-size: 20px;
  color: #1e293b;
  padding-bottom: 8px;
  margin-top: 30px !important;
}

/* subtle underline */
h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: #0d6efd;
  margin-top: 8px;
  border-radius: 2px;
}

.card-body h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: #0d6efd;
  margin: 8px auto 0; /* top | horizontal | bottom */
  border-radius: 2px;
}

.service-card h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: #0d6efd;
  margin: 8px auto 0; /* top | horizontal | bottom */
  border-radius: 2px;
}

/* H4 */
h4 {
  font-size: 17px;
  color: #334155;
  padding-bottom: 8px;
  margin-top: 20px !important;
}

/* subtle underline */
h4::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: #0d6efd;
  margin-top: 8px;
  border-radius: 2px;
}

/* H5 */
h5 {
  font-size: 15px;
  color: #475569;
}

.hero-content h1,
.hero-content h2 {
  all: unset;
}


p {
  text-align: justify;
}

.card-body p {
  text-align: center;
}
/* ================= GOVERNANCE ================= */



.gov-section {
  margin-bottom: 50px;
  padding: 25px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

/* Section title */
.gov-section h2 {
  font-size: 22px;
  margin-bottom: 5px;
  color: #0f172a;
}

/* Meta (σύσταση) */
.gov-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

/* Grid layout */
.gov-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

/* Boxes */
.gov-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 15px;
  border: 1px solid #e5e7eb;
}

/* Box titles */
.gov-box h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #0d6efd;
}

/* Lists */
.gov-box ul {
  padding-left: 18px;
  margin: 0;
}

.gov-box li {
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Hover (subtle) */
.gov-section:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .gov-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer menu: keep submenus always open */
#sp-footer .mod-menu .menu-child {
  display: block !important;
  height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Remove collapse animation */
#sp-footer .menu-toggler {
  display: none !important;
}

/* 🌟 Card feel */
.faculty-profile {
  max-width: 900px;
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* 🌟 Photo (clean avatar) */
.faculty-photo {
  width: 180px !important;
  height: 180px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.faculty-photo:hover {
  transform: scale(1.05);
}

/* 🌟 Name */
.faculty-name {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 5px;
}

/* 🌟 Title */
.faculty-title {
  font-size: 1.1rem;
  color: #6c757d;
}

/* 🌟 Section titles (modern line accent) */
.section-title {
  position: relative;
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.section-title::after {
  content: "";
  width: 50px;
  height: 3px;
  background: #0d6efd;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 2px;
}

/* 🌟 CV text */
.cv-content p {
  line-height: 1.7;
  margin-bottom: 12px;
}

/* 🌟 Publications (card-style list) */
.publications ul {
  list-style: none;
  padding: 0;
}

.publications li {
  background: #fafafa;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

/* hover effect */
.publications li:hover {
  background: #f0f6ff;
  border-left: 3px solid #0d6efd;
  transform: translateX(3px);
}

/* =================================
   UNIVERSITY STYLE OFFCANVAS
================================= */

.offcanvas-menu {

    background: #ffffff !important;

    width: 300px !important;
    max-width: 82vw !important;

    border-left: 1px solid #e5e7eb;

    box-shadow:
        -4px 0 20px rgba(0,0,0,.06);

    font-size: 15px;
}

/* overlay */

.offcanvas-overlay {

    background: rgba(15,23,42,.28);

    backdrop-filter: blur(1px);
}

/* top area */

.offcanvas-inner {

    padding: 1rem 1.25rem 2rem;
}

/* menu items */

.offcanvas-menu .menu > li {

    border-bottom: 1px solid #f1f5f9;
}

/* links */

.offcanvas-menu .menu > li > a {

    display: flex;
    align-items: center;

    padding: 1rem .25rem;

    color: #0f172a;

    font-weight: 500;

    letter-spacing: .2px;

    transition:
        color .2s ease,
        padding-left .2s ease;
}

/* hover */

.offcanvas-menu .menu > li > a:hover {

    background: transparent;

    color: #0d6efd;

    padding-left: .4rem;
}

/* active page */

.offcanvas-menu .menu > li.active > a,
.offcanvas-menu .menu > li.current > a {

    background: transparent !important;

    color: #0d6efd !important;

    font-weight: 600;

    border-left: none !important;
}

/* submenu */

.offcanvas-menu .menu-child {

    margin-left: .5rem;

    padding-left: 1rem;

    border-left: 1px solid #e2e8f0;
}

/* submenu links */

.offcanvas-menu .menu-child a {

    font-size: .92rem;

    color: #475569;

    padding: .7rem 0;
}

/* close button */

.close-offcanvas {

    background: transparent;

    border-radius: 0;
}

/* burger icon */

.close-offcanvas .burger-icon span {

    height: 1.5px;

    background: #0f172a !important;
}