/* ================= 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);
}







/* =================================
   CLEAN LIGHT OFFCANVAS
================================= */

.offcanvas-menu {

    background: #ffffff !important;

    width: 340px !important;
    max-width: 92vw;

    overflow-y: auto;

    border-left: 1px solid #e5e7eb;

    box-shadow:
        -10px 0 30px rgba(0,0,0,.08);
}

/* overlay */

.offcanvas-overlay {
    background: rgba(15,23,42,.18);
    backdrop-filter: blur(2px);
}

/* inner spacing */

.offcanvas-inner {
    padding: 1rem 1.25rem 2rem;
}

/* top items */

.offcanvas-menu .menu > li {
    margin-bottom: .35rem;
}

.offcanvas-menu .menu > li > a {

    display: flex;
    align-items: center;

    padding: .9rem 1rem;

    border-radius: 12px;

    color: #0f172a;

    font-weight: 600;

    transition: all .2s ease;
}

/* hover */

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

    background: #f1f5f9;

    color: #2563eb;
}

/* active */

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

    background: #2563eb;
    color: #fff;
}

/* submenu */

.offcanvas-menu .menu-child {

    margin-left: .75rem;
    padding-left: 1rem;

    border-left: 1px solid #e2e8f0;
}

.offcanvas-menu .menu-child a {

    display: block;

    padding: .65rem .75rem;

    border-radius: 10px;

    color: #475569;

    font-size: .93rem;

    transition: all .2s ease;
}

.offcanvas-menu .menu-child a:hover {

    background: #f8fafc;

    color: #2563eb;
}

/* close button */

.close-offcanvas {

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f1f5f9;
}

/* burger icon */

.close-offcanvas .burger-icon span {

    background-color: #0f172a !important;
}

/* =================================
   HELIX OFFCANVAS WIDTH FIX
================================= */

.offcanvas-menu {

    width: 320px !important;
    max-width: 85vw !important;

    overflow-x: hidden !important;
}

/* Inner wrapper */

.offcanvas-inner {

    width: 100%;
    overflow-x: hidden;
}

/* Menu list */

.offcanvas-menu .menu {

    width: 100%;
}

/* Links */

.offcanvas-menu .menu li a {

    width: 100%;
    box-sizing: border-box;

    white-space: normal;
}

/* Remove weird right spacing */

.offcanvas-menu .menu-child {

    margin-right: 0 !important;
    padding-right: 0 !important;
}

/* Fix toggler alignment */

.offcanvas-menu .menu-toggler {

    margin-left: auto;
    flex-shrink: 0;

    opacity: .6;
}

/* Better close button positioning */

.offcanvas-menu .d-flex.align-items-center.justify-content-between {

    padding:
        1rem
        1rem
        .5rem
        1rem !important;
}

/* Smooth typography */

.offcanvas-menu {

    font-size: 16px;
    line-height: 1.4;
}

/* =================================
   BETTER ACTIVE MENU ITEM
================================= */

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

    background: #f1f5ff !important;

    color: #1d4ed8 !important;

    border-left: 3px solid #2563eb;

    border-radius: 10px;

    font-weight: 600;
}

/* Better hover */

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

    background: #f8fafc;

    color: #2563eb;
}

/* =================================
   MINIMAL ACTIVE ITEM
================================= */

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

    background: transparent !important;

    color: #2563eb !important;

    border-left: 2px solid #2563eb;

    border-radius: 0;

    padding-left: calc(1rem - 2px);

    box-shadow: none !important;
}

/* remove hover box too */

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

    background: transparent;

    color: #2563eb;
}

/* =================================
   REMOVE ACTIVE LEFT BORDER
================================= */

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

    border-left: none !important;

    padding-left: none !important;
}