/*
Theme Name: LeanTheme
Theme URI: 
Author: 
Author URI: 
Description: Minimal custom WordPress theme starter.
Version: 1.0.0
Text Domain: leantheme
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --background: hsl(40 20% 97%);
  --foreground: hsl(220 25% 12%);
  --primary: hsl(100 42% 42%);
  --accent: hsl(175 60% 40%);
  --muted: hsl(220 15% 92%);
  --muted-foreground: hsl(220 15% 45%);
  --card: hsl(0 0% 100%);
  --border: hsl(220 15% 88%);
  --radius: 0.25rem;
  --shadow-sm: 0 2px 8px -2px hsl(220 25% 12% / 0.08);
  --shadow-md: 0 8px 24px -4px hsl(220 25% 12% / 0.12);
  --shadow-lg: 0 16px 48px -8px hsl(220 25% 12% / 0.16);
  --shadow-xl: 0 24px 64px -12px hsl(220 25% 12% / 0.2);
  --container-max: 1200px;
  --section-py: 5rem;
  --section-py-md: 7rem;
  --section-px: 1.5rem;
  --section-px-md: 3rem;
  --section-px-lg: 5rem;
  --nav-h: 84px;
}

@media (min-width: 768px) {
  :root {
    --section-px: 3rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-px: var(--section-px-lg);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-mobile-open {
  overflow: hidden;
}

body.facility-modal-open {
  overflow: hidden;
}


img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
.input:focus-visible,
.textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button {
  font-family: inherit;
}

/* Background shapes layer (filled by app.js) */
.body-bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.body-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  animation: shape-float 7s ease-in-out infinite alternate;
}

@keyframes shape-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(28px);
  }
}

/* Content above shapes (exclude .nav so sticky/fixed header works) */
body > *:not(.body-bg-shapes):not(.nav) {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--foreground);
  color: var(--background);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.section {
  padding: var(--section-py) var(--section-px);
}

/* Match header/footer content width: inner .site-inner supplies horizontal padding + max-width */
.section.section--site-inner {
  padding-inline: 0;
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--section-py-md);
    padding-bottom: var(--section-py-md);
    padding-inline: var(--section-px-md);
  }

  .section.section--site-inner {
    padding-inline: 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-inline: var(--section-px-lg);
  }

  .section.section--site-inner {
    padding-inline: 0;
  }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* If JS fails or is disabled, don't leave content invisible */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: hsl(40 20% 97% / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

@media (min-width: 768px) {
  .nav-inner {
    padding-inline: var(--section-px-md);
  }
}

@media (min-width: 1024px) {
  .nav-inner {
    padding-inline: var(--section-px-lg);
  }
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

/* <img> logo: whole mark visible (no crop, no bg-image) */
.logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 3rem;
  max-width: min(360px, 62vw);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .logo-img {
    max-height: 3.6rem;
    max-width: min(460px, 46vw);
  }
}

.logo-text {
  line-height: 1.2;
}

.logo-dot {
  color: var(--primary);
}

.nav-links {
  display: none;
}

.nav-links-desktop {
  position: relative;
  margin-left: auto;
}

.nav-menu,
.nav-menu ul,
.nav-links .menu,
.nav-links .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu,
.nav-links .menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-menu > .menu-item {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
  color: var(--foreground);
}

.nav-menu .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu .menu-item-has-children > a::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.nav-links-desktop .sub-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 13rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: hsl(40 20% 98%);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 120;
}

.nav-links-desktop .sub-menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 0.35rem;
  font-size: 0.88rem;
}

.nav-links-desktop .sub-menu a:hover {
  background: hsl(220 15% 94%);
}

.nav-links-desktop .menu-item-has-children:hover > .sub-menu,
.nav-links-desktop .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .nav-links-desktop {
    display: block;
  }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  border-bottom: 1px solid var(--border);
  background: hsl(40 20% 97% / 0.98);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile-inner {
  padding: 1rem var(--section-px) 1.25rem;
}

.nav-links-mobile {
  display: block;
}

.nav-menu-mobile,
.nav-links-mobile .menu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-menu-mobile a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1rem;
}

.nav-menu-mobile .menu-item {
  border-bottom: 1px solid hsl(220 15% 88% / 0.55);
}

.nav-menu-mobile .menu-item:last-child {
  border-bottom: 0;
}

.nav-menu-mobile .menu-item-has-children > a::after {
  margin-left: auto;
}

.nav-menu-mobile .sub-menu {
  display: none;
  padding: 0 0 0.35rem 0.8rem;
}

.nav-menu-mobile .menu-item.is-open > .sub-menu {
  display: block;
}

.submenu-toggle {
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.submenu-toggle:hover {
  color: var(--foreground);
}

@media (max-width: 899px) {
  .nav-mobile {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100vw;
    height: calc(100dvh - var(--nav-h));
    border-bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: hsl(40 20% 97% / 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 95;
  }

  .nav-mobile-inner {
    min-height: 100%;
    padding: 1.15rem var(--section-px) 2rem;
  }

  .nav-menu-mobile a,
  .nav-links-mobile .menu a {
    text-align: left;
  }

  .submenu-toggle {
    margin-left: auto;
  }
}

/* ---------- Section header pattern ---------- */
.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--foreground);
}

.section-title .light {
  font-weight: 300;
}

.section-title--compact {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.section-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0;
}

@media (min-width: 768px) {
  .section-desc {
    font-size: 1.125rem;
  }
}

.section-head {
  margin-bottom: 3rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-title {
  margin-inline: auto;
}

.facilities-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.facilities-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.facilities-gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.facilities-gallery__item:hover img {
  transform: scale(1.04);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  gap: 0.9rem;
  padding: 30px 1.45rem;
  min-height: 330px;
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: none;
  text-align: center;
}

.services-grid .service-card:first-child {
  background-image:
    linear-gradient(hsl(220 25% 12% / 0.28), hsl(220 25% 12% / 0.28));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  color: #fff;
  border-color: hsl(0 0% 100% / 0.22);
}

.services-grid .service-card:first-child p {
  color: hsl(0 0% 100% / 0.92);
}

.services-grid .service-card:first-child .service-card__cta {
  border-color: #fff;
  color: #fff;
}

.services-grid .service-card:first-child .service-card__cta:hover {
  background: #fff;
  color: var(--foreground);
}

.services-grid .service-card:nth-child(2) {
  background-image:
    linear-gradient(hsl(220 25% 12% / 0.42), hsl(220 25% 12% / 0.42));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  color: #fff;
  border-color: hsl(0 0% 100% / 0.22);
}

.services-grid .service-card:nth-child(2) p {
  color: hsl(0 0% 100% / 0.92);
}

.services-grid .service-card:nth-child(2) .service-card__cta {
  border-color: #fff;
  color: #fff;
}

.services-grid .service-card:nth-child(2) .service-card__cta:hover {
  background: #fff;
  color: var(--foreground);
}

.services-grid .service-card:nth-child(3) {
  background-image:
    linear-gradient(hsl(220 25% 12% / 0.52), hsl(220 25% 12% / 0.52));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: #fff;
  border-color: hsl(0 0% 100% / 0.22);
}

.services-grid .service-card:nth-child(3) p {
  color: hsl(0 0% 100% / 0.92);
}

.services-grid .service-card:nth-child(3) .service-card__cta {
  border-color: #fff;
  color: #fff;
}

.services-grid .service-card:nth-child(3) .service-card__cta:hover {
  background: #fff;
  color: var(--foreground);
}

.services-grid .service-card:nth-child(4) {
  background-image:
    linear-gradient(hsl(220 25% 12% / 0.5), hsl(220 25% 12% / 0.5));
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
  border-color: hsl(0 0% 100% / 0.22);
}

.services-grid .service-card:nth-child(4) p {
  color: hsl(0 0% 100% / 0.92);
}

.services-grid .service-card:nth-child(4) .service-card__cta {
  border-color: #fff;
  color: #fff;
}

.services-grid .service-card:nth-child(4) .service-card__cta:hover {
  background: #fff;
  color: var(--foreground);
}

.services-grid .service-card:nth-child(5) {
  background-image:
    linear-gradient(hsl(220 25% 12% / 0.5), hsl(220 25% 12% / 0.5));
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
  border-color: hsl(0 0% 100% / 0.22);
}

.services-grid .service-card:nth-child(5) p {
  color: hsl(0 0% 100% / 0.92);
}

.services-grid .service-card:nth-child(5) .service-card__cta {
  border-color: #fff;
  color: #fff;
}

.services-grid .service-card:nth-child(5) .service-card__cta:hover {
  background: #fff;
  color: var(--foreground);
}

.service-card h3 {
  margin: 0;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 300;
}

.service-card p {
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}

.service-card__cta {
  margin-top: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--foreground);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.service-card__cta:hover {
  color: #fff;
  background: var(--foreground);
}

.facilities-gallery__link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.facilities-modal[hidden] {
  display: none;
}

.facilities-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
}

.facilities-modal__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(0 0% 0% / 0.8);
}

.facilities-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 1100px);
  min-height: 120px;
}

.facilities-modal__image {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  background: #000;
  border-radius: 0.6rem;
}

.facilities-modal__close,
.facilities-modal__nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: hsl(0 0% 0% / 0.6);
}

.facilities-modal__close {
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.4rem;
  line-height: 1;
}

.facilities-modal__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.6rem;
  line-height: 1;
}

.facilities-modal__nav--prev {
  left: 0.5rem;
}

.facilities-modal__nav--next {
  right: 0.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .service-card {
    min-height: 360px;
  }

  .facilities-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .service-card {
    grid-column: span 2;
    min-height: 395px;
  }

  .services-grid .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .services-grid .service-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.puzzle-success-section {
  margin-top: 2rem;
}

.puzzle-success-media {
  position: relative;
  overflow: hidden;
}

.puzzle-success-image {
  display: block;
  width: max(140vw, 1800px);
  max-width: none;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  transform: none;
}

.puzzle-success-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.puzzle-success-content {
  padding-block: clamp(1.5rem, 4vw, 3rem);
  transform: translateY(-2rem);
}

.puzzle-success-title {
  color: #fff;
  text-align: center;
  text-shadow: 0 4px 18px hsl(220 25% 12% / 0.35);
  margin: 0 0 1.25rem;
}


.puzzle-success-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.puzzle-success-left,
.puzzle-success-right {
  min-height: 1px;
}

.puzzle-success-right {
  pointer-events: auto;
}

.puzzle-success-side-image {
  display: block;
  width: min(280px, 55vw);
  max-width: 100%;
  height: auto;
}

.puzzle-success-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.puzzle-success-feature {
  background: hsl(0 0% 100% / 0.16);
  border: 1px solid hsl(0 0% 100% / 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.45rem 1.45rem 1.3rem;
  color: #fff;
  box-shadow: 0 10px 30px hsl(220 25% 12% / 0.14);
  border-radius: 1rem;
  min-height: 196px;
}

.puzzle-success-feature h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.puzzle-success-feature p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .puzzle-success-row {
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    align-items: start;
  }

  .puzzle-success-side-image {
    width: min(320px, 28vw);
  }

  .puzzle-success-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .puzzle-success-feature {
    min-height: 230px;
  }

}

@media (max-width: 1044px) {
  .puzzle-success-media {
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    min-height: 100vh;
  }

  .puzzle-success-image,
  .puzzle-success-left {
    display: none;
  }

  .puzzle-success-overlay {
    position: relative;
    inset: auto;
    align-items: stretch;
  }

  .puzzle-success-content {
    transform: none;
    padding-block: clamp(2rem, 5vw, 3.5rem);
  }

  .puzzle-success-row,
  .puzzle-success-features {
    grid-template-columns: 1fr;
  }

  .puzzle-success-feature {
    background: linear-gradient(105deg, rgb(2, 129, 9) 0%, rgba(11, 54, 2) 100%);
  }

  .puzzle-success-title {
    color: #000;
    text-shadow: none;
  }

}

/* ---------- Home: learn more band (full width) ---------- */
.home-learn-more-band {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: clamp(2.25rem, 5vw, 3.25rem) var(--section-px);
  background: linear-gradient(105deg, hsl(100 42% 42%) 0%, hsl(100 38% 28%) 100%);
  color: #fff;
}

.home-learn-more-band__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 4vw, 3rem);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 0;
}

.home-learn-more-band__text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.home-learn-more-band__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.home-learn-more-band__action {
  flex: 0 0 auto;
}

.home-learn-more-band__lead {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.65;
  color: hsl(0 0% 100% / 0.92);
}

.home-learn-more-band__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #fff;
  color: hsl(100 38% 28%);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-learn-more-band__cta:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .home-learn-more-band__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .home-learn-more-band__text {
    text-align: center;
  }

  .home-learn-more-band__lead {
    margin-inline: auto;
    max-width: none;
  }

  .home-learn-more-band__action {
    width: 100%;
  }

  .home-learn-more-band__cta {
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
  }
}

/* ---------- TOP MEDIA SLIDER ---------- */
.top-media-slider {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  background: #000;
}

.top-media-slider__slides {
  position: relative;
  width: 100%;
}

.top-media-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.top-media-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.top-media-slide.is-leaving {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: visible;
  z-index: 1;
}

.top-media-slide picture,
.top-media-slide img,
.top-media-slide video {
  width: 100%;
  height: auto;
  display: block;
}

.top-media-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  pointer-events: auto;
}

.top-media-slider__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  background: hsl(0 0% 100% / 0.55);
}

.top-media-slider__dot.is-active {
  background: hsl(0 0% 100%);
}

.top-media-slider__nav {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.top-media-slider__arrow {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: hsl(0 0% 0% / 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 2px 10px hsl(0 0% 0% / 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
}

.top-media-slider__arrow--prev {
  left: 1rem;
}

.top-media-slider__arrow--next {
  right: 1rem;
}

.top-media-slider__arrow:hover {
  background: hsl(0 0% 0% / 0.72);
}

.top-media-slider__arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.top-media-slider__arrow svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 767px) {
  .top-media-slider__arrow {
    width: 44px;
    height: 44px;
    background: hsl(0 0% 0% / 0.62);
  }

  .top-media-slider__arrow--prev {
    left: 0.65rem;
  }

  .top-media-slider__arrow--next {
    right: 0.65rem;
  }

  .top-media-slider__dots {
    bottom: 0.75rem;
  }
}

.home-levels-section {
  padding-top: 2.2rem;
}

.home-levels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.home-level-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  gap: 0.75rem;
  padding: 1.4rem 1.25rem;
  min-height: 390px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: none;
  text-align: center;
}

.home-level-card h3 {
  margin: 0 0 0.55rem;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-level-card p {
  margin: 0;
  color: var(--muted-foreground);
}

.home-level-card__cta {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.home-level-card__cta:hover {
  background: hsl(0 0% 100% / 0.18);
}

.home-levels-grid .home-level-card:nth-child(1) {
  background-image:
    linear-gradient(hsl(220 25% 12% / 0.42), hsl(220 25% 12% / 0.42));
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
  border-color: hsl(0 0% 100% / 0.22);
}

.home-levels-grid .home-level-card:nth-child(1) p {
  color: hsl(0 0% 100% / 0.92);
}

.home-levels-grid .home-level-card:nth-child(2) {
  background-image:
    linear-gradient(hsl(220 25% 12% / 0.42), hsl(220 25% 12% / 0.42));
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
  border-color: hsl(0 0% 100% / 0.22);
}

.home-levels-grid .home-level-card:nth-child(2) p {
  color: hsl(0 0% 100% / 0.92);
}

.home-levels-grid .home-level-card:nth-child(3) {
  background-image:
    linear-gradient(hsl(220 25% 12% / 0.42), hsl(220 25% 12% / 0.42));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: #fff;
  border-color: hsl(0 0% 100% / 0.22);
}

.home-levels-grid .home-level-card:nth-child(3) p {
  color: hsl(0 0% 100% / 0.92);
}

@media (min-width: 768px) {
  .home-levels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .home-level-card {
    min-height: 450px;
  }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem;
}

.hero-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

@media (min-width: 768px) {
  .hero-inner {
    padding-inline: var(--section-px-md);
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    padding-inline: var(--section-px-lg);
  }
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: var(--foreground);
}

.hero-title .name-primary {
  color: var(--primary);
  font-weight: 300;
}

.hero-title .name-bold {
  font-weight: 800;
  color: var(--foreground);
}

.hero-body {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 0 2rem;
  line-height: 1.75;
}

.hero-body strong {
  font-weight: 600;
  color: var(--foreground);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.btn-primary {
  background: var(--foreground);
  color: var(--background);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--foreground);
}

.btn-secondary:hover {
  background: var(--foreground);
  color: var(--background);
  transform: translateY(-4px);
}

/* ---------- About (photo + text) ---------- */
.about-section .container {
  max-width: var(--container-max);
}

.about-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .about-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.about-photo {
  order: -1;
  position: relative;
  isolation: isolate;
}

@media (min-width: 900px) {
  .about-photo {
    order: 0;
  }
}

/* Soft gradient “mat” behind the frame (theme primary / accent) */
.about-photo::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0.65rem 0 0 0.65rem;
  border-radius: clamp(0.85rem, 2.5vw, 1.35rem);
  background: linear-gradient(
    145deg,
    hsl(100 42% 42% / 0.16),
    hsl(175 60% 40% / 0.09) 55%,
    hsl(40 20% 97% / 0.4)
  );
  pointer-events: none;
}

.about-photo-frame {
  margin: 0;
  position: relative;
  z-index: 1;
  border-radius: clamp(0.65rem, 2vw, 1.125rem);
  overflow: hidden;
  border: 1px solid hsl(220 15% 88% / 0.95);
  background: var(--card);
  box-shadow:
    0 2px 4px hsl(220 25% 12% / 0.04),
    0 14px 32px -10px hsl(220 25% 12% / 0.14),
    0 32px 64px -24px hsl(220 25% 12% / 0.2),
    0 24px 48px -28px hsl(100 42% 42% / 0.22);
}

@media (prefers-reduced-motion: no-preference) {
  .about-photo-frame {
    transition:
      box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .about-photo:hover .about-photo-frame,
  .about-photo:focus-within .about-photo-frame {
    transform: translateY(-4px);
    box-shadow:
      0 4px 8px hsl(220 25% 12% / 0.05),
      0 18px 40px -12px hsl(220 25% 12% / 0.16),
      0 40px 72px -28px hsl(220 25% 12% / 0.22),
      0 28px 56px -32px hsl(100 42% 42% / 0.28);
  }
}

.about-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px hsl(220 25% 12% / 0.05),
    inset 0 1px 0 hsl(0 0% 100% / 0.35);
}

.about-photo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 560px);
  object-fit: cover;
  object-position: center 20%;
}

@media (min-width: 900px) {
  .about-photo-img {
    max-height: min(78vh, 620px);
  }
}

.about-content .section-kicker {
  margin-bottom: 0.65rem;
}

.about-content .section-title {
  margin-bottom: 1.25rem;
}

.about-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .about-text {
    font-size: 1.0625rem;
  }
}

.about-text p {
  margin: 0 0 1.25rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  font-weight: 600;
  color: var(--foreground);
}

/* ---------- Cards grid ---------- */
.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.card-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.card-text {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.65;
}

/* ---------- Quote banners ---------- */
.quote-banner {
  padding: 4rem var(--section-px);
  text-align: center;
}

@media (min-width: 768px) {
  .quote-banner {
    padding: 5rem var(--section-px-md);
  }
}

@media (min-width: 1024px) {
  .quote-banner {
    padding: 5.5rem var(--section-px-lg);
  }
}

.quote-banner--dark {
  background: var(--foreground);
  color: var(--background);
}

.quote-banner--primary {
  background: var(--primary);
  color: hsl(0 0% 100%);
}

.quote-banner--accent {
  background: var(--accent);
  color: hsl(0 0% 100%);
}

.quote-text {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.45;
  max-width: 52rem;
  margin: 0 auto;
  letter-spacing: -0.02em;
}

.quote-author {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.9;
}

/* ---------- Process ---------- */
.phase-num {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

/* ---------- Portfolio (logos) ---------- */
.portfolio-logo-grid {
  align-items: stretch;
}

.portfolio-logo-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 2rem 1.75rem;
}

.portfolio-logo-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.1;
  filter: blur(24px);
  pointer-events: none;
}

.portfolio-logo-card img {
  position: relative;
  z-index: 1;
  max-width: min(240px, 100%);
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Έργα (CPT) grid on front page ---------- */
.erga-grid {
  align-items: stretch;
}

.erga-card.card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.erga-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.erga-card-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.erga-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--muted);
}

.erga-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.erga-card:hover .erga-card-img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .erga-card:hover .erga-card-img {
    transform: none;
  }
}

.erga-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  background: linear-gradient(
    135deg,
    hsl(220 15% 90%),
    hsl(40 20% 94%)
  );
}

.erga-card-title {
  margin: 0;
  padding: 1rem 1.25rem 1.35rem;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #0a0a0a;
}

.erga-empty {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-foreground);
}

.portfolio-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---------- Blog ---------- */
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.blog-card-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.blog-card .card-title {
  position: relative;
  z-index: 0;
}

.blog-card:hover .card-title {
  color: var(--primary);
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.blog-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.blog-card:hover .blog-arrow {
  opacity: 1;
  transform: translateX(0);
}

.blog-excerpt {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--muted-foreground);
  margin: 0 0 0.75rem;
  flex: 1;
}

/* ---------- Single post ---------- */
.single-post-main .single-post-article {
  padding-top: calc(var(--section-py) + 1.25rem);
}

.single-post-container {
  max-width: var(--container-max);
}

.single-post-header {
  margin-bottom: 1.5rem;
}

.single-post-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.single-post-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--foreground);
}

.single-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.single-post-sep {
  opacity: 0.7;
}

.single-post-thumb.card {
  padding: 0;
  overflow: hidden;
  margin: 0 0 1.5rem;
}

.single-post-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: cover;
}

.single-post-content.card {
  padding: clamp(1.1rem, 2vw, 2rem);
  margin: 0;
}

.single-post-content > :first-child {
  margin-top: 0;
}

.single-post-content > :last-child {
  margin-bottom: 0;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: 1.7rem;
  margin-bottom: 0.8rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.single-post-content p,
.single-post-content li {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted-foreground);
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 1.1rem;
}

.single-post-content a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.single-post-content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--primary);
  background: hsl(0 0% 100% / 0.65);
  color: var(--foreground);
}

.single-post-content img {
  border-radius: calc(var(--radius) + 0.2rem);
  height: auto;
}

.single-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}

.single-post-nav-prev,
.single-post-nav-next {
  min-width: 0;
  flex: 1;
}

.single-post-nav-next {
  text-align: right;
}

.single-post-nav a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.single-post-nav a:hover {
  color: var(--primary);
}

@media (max-width: 767px) {
  .single-post-nav {
    flex-direction: column;
  }

  .single-post-nav-next {
    text-align: left;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--foreground);
  color: hsl(40 20% 92%);
  padding-block: 4rem 2rem;
}

@media (min-width: 768px) {
  .footer {
    padding-block: 4rem 2rem;
  }
}

@media (min-width: 1024px) {
  .footer {
    padding-block: 4rem 2rem;
  }
}

.footer-inner,
.site-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

@media (min-width: 768px) {
  .footer-inner,
  .site-inner {
    padding-inline: var(--section-px-md);
  }
}

@media (min-width: 1024px) {
  .footer-inner,
  .site-inner {
    padding-inline: var(--section-px-lg);
  }
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--background);
}

.footer-title .light {
  font-weight: 300;
}

.footer-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.85;
  margin: 0 0 1.5rem;
  max-width: 28rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--background);
  text-decoration: none;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-heading {
  margin: 0 0 1rem;
  color: var(--background);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-social-list a {
  color: hsl(40 20% 92%);
  text-decoration: none;
  opacity: 0.86;
}

.footer-social-list a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-contact-list,
.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-contact-list {
  margin-top: 0.25rem;
}

.footer-contact-list li,
.footer-link-list li {
  color: hsl(40 20% 92% / 0.88);
}

.footer-contact-list a,
.footer-link-list a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-list a:hover,
.footer-link-list a:hover {
  text-decoration: underline;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.social-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid hsl(40 20% 92% / 0.25);
  border-radius: var(--radius);
  color: inherit;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.social-link:hover {
  background: hsl(0 0% 100% / 0.08);
  border-color: hsl(0 0% 100% / 0.35);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  opacity: 0.8;
}

.form-field {
  margin-bottom: 1rem;
}

.input,
.textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  font-family: inherit;
  color: var(--background);
  background: transparent;
  border: 1px solid hsl(40 20% 92% / 0.25);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: hsl(40 20% 92% / 0.4);
}

.input:focus,
.textarea:focus {
  border-color: var(--primary);
}

.btn-submit {
  margin-top: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  background: var(--primary);
  color: hsl(0 0% 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.footer-bar {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(40 20% 92% / 0.15);
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.55;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bar {
    text-align: left;
  }
}

.bg-section {
  background: var(--background);
}

.bg-muted {
  background: var(--muted);
}

/* ---------- PROGRAMMATA PAGE ---------- */
.programmata-top-cards {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.programmata-top-card {
  width: 100%;
  min-width: 0;
  height: 650px;
  min-height: 650px;
  position: relative;
  overflow: hidden;
  padding: 1.5rem var(--section-px);
  background: #fff;
  border-bottom: none;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.programmata-top-card:first-child {
  border-inline-end: 1px solid var(--border);
  background-image:
    linear-gradient(hsl(220 25% 12% / 0.48), hsl(220 25% 12% / 0.48));
}

.programmata-top-card:nth-child(2) {
  background-image:
    linear-gradient(hsl(220 25% 12% / 0.48), hsl(220 25% 12% / 0.48));
}

.programmata-top-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  max-width: 36rem;
}

.programmata-top-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.programmata-top-card p {
  margin: 0;
  max-width: 42ch;
  color: hsl(0 0% 100% / 0.92);
  text-align: center;
}

.programmata-top-card__cta {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.85);
  color: inherit;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease;
}

.programmata-top-card__cta:hover {
  background: hsl(0 0% 100% / 0.95);
  color: var(--foreground);
}

@media (min-width: 768px) {
  .programmata-top-card {
    padding-inline: var(--section-px-md);
  }
}

@media (min-width: 1024px) {
  .programmata-top-card {
    padding-inline: var(--section-px-lg);
  }
}

@media (max-width: 600px) {
  .programmata-top-cards {
    grid-template-columns: 1fr;
  }

  .programmata-top-card:first-child {
    border-inline-end: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ---------- ΥΠΟΛΟΓΙΣΜΟΣ ΜΟΡΙΩΝ PAGE ---------- */
.moria-page-section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.moria-page-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

.moria-page-desc {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.moria-calculators-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.moria-calculator-card {
  border-radius: 0.85rem;
  background: linear-gradient(155deg, #fff 0%, hsl(40 35% 96%) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.moria-calculator-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: hsl(100 42% 42% / 0.35);
}

.moria-calculator-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 16rem;
  padding: 2rem 1.5rem 1.75rem;
  height: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.moria-calculator-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--foreground);
}

.moria-calculator-card__desc {
  margin: 0;
  max-width: 34ch;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.moria-calculator-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
}

.moria-calculator-card:hover .moria-calculator-card__cta {
  color: var(--primary);
}

@media (max-width: 767px) {
  .moria-calculators-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- ΕΚΠΑΙΔΕΥΤΙΚΗ ΕΠΙΚΑΙΡΟΤΗΤΑ PAGE ---------- */
.ekped-page-section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.ekped-page-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

.ekped-page-desc {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.ekped-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.ekped-link-card {
  border-radius: 0.85rem;
  background: linear-gradient(155deg, #fff 0%, hsl(40 35% 96%) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ekped-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: hsl(100 42% 42% / 0.35);
}

.ekped-link-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 14rem;
  padding: 2rem 1.5rem 1.75rem;
  height: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.ekped-link-card__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--foreground);
}

.ekped-link-card__desc {
  margin: 0;
  max-width: 34ch;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.ekped-link-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
}

.ekped-link-card:hover .ekped-link-card__cta {
  color: var(--primary);
}

@media (max-width: 767px) {
  .ekped-links-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- ΙΣΟΛΟΓΙΣΜΟΙ PAGE ---------- */
.isologismos-page-section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.isologismos-page-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

.isologismos-page-desc,
.isologismos-page-empty {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted-foreground);
  text-align: center;
}

.isologismos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.isologismos-card {
  border-radius: 0.85rem;
  background: linear-gradient(155deg, #fff 0%, hsl(40 35% 96%) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.isologismos-card:not(.isologismos-card--no-file):hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: hsl(100 42% 42% / 0.35);
}

.isologismos-card--no-file {
  opacity: 0.72;
}

.isologismos-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 13.5rem;
  padding: 1.75rem 1.25rem 1.5rem;
  height: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.isologismos-card__link--static {
  cursor: default;
}

.isologismos-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: hsl(100 42% 42% / 0.12);
  color: var(--primary);
}

.isologismos-card__icon--muted {
  background: hsl(0 0% 50% / 0.1);
  color: var(--muted-foreground);
}

.isologismos-card__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--foreground);
}

.isologismos-card__desc {
  margin: 0;
  max-width: 28ch;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.isologismos-card__desc--muted {
  font-size: 0.85rem;
}

.isologismos-card__cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
}

.isologismos-card:not(.isologismos-card--no-file):hover .isologismos-card__cta {
  color: var(--primary);
}

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

/* ---------- TAXONOMY: ΤΑΞΗ (programmata_taxi) ---------- */
.taxonomy-taxi-section {
  padding-top: 2rem;
}

.taxonomy-taxi-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.taxonomy-taxi-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.taxonomy-taxi-desc {
  margin: 1rem auto 0;
  max-width: 48rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.65;
}

.taxonomy-taxi-desc p:last-child {
  margin-bottom: 0;
}

.taxonomy-taxi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.taxonomy-taxi-card {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
  align-items: center;
}

.taxonomy-taxi-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.taxonomy-taxi-card__title a {
  text-decoration: none;
  color: inherit;
}

.taxonomy-taxi-card__title a:hover {
  color: var(--primary);
}

.taxonomy-taxi-card__excerpt {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted-foreground);
  max-width: 42ch;
}

.taxonomy-taxi-card__cta {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--foreground);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease;
}

.taxonomy-taxi-card__cta:hover {
  background: var(--foreground);
  color: #fff;
}

.taxonomy-taxi-empty {
  text-align: center;
  color: var(--muted-foreground);
}

.taxonomy-taxi-nav .navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.taxonomy-taxi-nav .page-numbers {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--foreground);
}

.taxonomy-taxi-nav .page-numbers.current {
  background: var(--foreground);
  color: #fff;
  border-color: var(--foreground);
}

@media (min-width: 768px) {
  .taxonomy-taxi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .taxonomy-taxi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Σελίδα «Προγράμματα Γυμνασίου» (κατακόρυφη λίστα + μετα-μαθήματα) ---------- */
.proggymn-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.proggymn-program {
  padding: 1.5rem 1.35rem;
  border: 1px solid hsl(76 38% 38% / 0.55);
  border-radius: 0.75rem;
  background: #d5e5a3;
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 hsl(82 52% 98% / 0.65);
  text-align: left;
  color: #1f2a14;
}

.proggymn-program__head {
  margin-bottom: 1rem;
}

.proggymn-program__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.proggymn-program__title a {
  text-decoration: none;
  color: #15200c;
}

.proggymn-program__title a:hover {
  color: hsl(76 82% 20%);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.proggymn-program__excerpt {
  margin: 0;
  font-size: 0.94rem;
  color: #39492a;
  max-width: 65ch;
}

.proggymn-program__katefthinsi {
  margin: 0.85rem auto 0;
  max-width: 65ch;
  padding: 0.65rem 0.85rem;
  border: 1px solid hsl(76 38% 38% / 0.5);
  border-radius: 0.45rem;
  background: hsl(74 56% 97% / 0.92);
  text-align: left;
}

.proggymn-program__katefthinsi-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #39492a;
}

.proggymn-program__katefthinsi-text {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: #15200c;
  line-height: 1.45;
}

.proggymn-program__lessons-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #15200c;
}

.proggymn-lessons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: 0.35rem;
  overflow: hidden;
  box-shadow: 0 1px 4px hsl(76 38% 20% / 0.08);
}

.proggymn-lessons-table th,
.proggymn-lessons-table td {
  padding: 0.55rem 0.65rem;
  border: 1px solid hsl(76 32% 45% / 0.65);
  vertical-align: top;
}

.proggymn-lessons-table th {
  text-align: left;
  font-weight: 700;
  background: #3f5a29;
  color: #f4f9ec;
}

.proggymn-lessons-table tbody tr:nth-child(even) {
  background: hsl(74 52% 88% / 0.92);
}

.proggymn-lessons-table tbody tr:nth-child(odd) {
  background: hsl(80 58% 95% / 0.94);
}

.proggymn-lessons-table td {
  color: #253016;
}

.proggymn-lessons-table td:last-child,
.proggymn-lessons-table th:last-child {
  width: 6.5rem;
  text-align: right;
}

.proggymn-lessons-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid hsl(76 38% 34% / 0.65);
  border-radius: 0.45rem;
  background: hsl(74 56% 97% / 0.92);
}

.proggymn-lessons-total__label {
  font-weight: 700;
  color: #1f2a14;
}

.proggymn-lessons-total__value {
  font-weight: 800;
  font-size: 1.05rem;
  color: #15200c;
}

/* Keep desktop nav strictly horizontal */
@media (min-width: 900px) {
  .nav-links.nav-links-desktop {
    display: block;
  }

  .nav-links.nav-links-desktop .nav-menu,
  .nav-links.nav-links-desktop .menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: nowrap;
  }

  .nav-links.nav-links-desktop .menu-item {
    display: block;
    white-space: nowrap;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* ---------- Επιτυχόντες: σελίδα ετών + taxonomy έτους ---------- */
.epitychontes-page-section,
.epitychontes-term-section {
  padding-top: 2rem;
}

.epitychontes-page-head,
.epitychontes-term-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.epitychontes-page-desc,
.epitychontes-term-desc {
  margin: 1rem auto 0;
  max-width: 42rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.65;
}

.epitychontes-term-desc p:last-child {
  margin-bottom: 0;
}

.epitychontes-term-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  text-align: center;
  line-height: 1.2;
}

.epitychontes-term-hero-title__line {
  display: block;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 800;
}

.epitychontes-term-hero-title__year {
  display: block;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 700;
  color: var(--primary);
}

.epitychontes-term-kicker {
  margin: 0 0 1rem;
  text-align: center;
}

.epitychontes-term-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.epitychontes-term-back:hover {
  color: var(--primary);
}

.epitychontes-page-empty,
.epitychontes-term-empty {
  text-align: center;
  color: var(--muted-foreground);
}

.epitychontes-years-grid,
.epitychontes-term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.35rem;
}

.epitychontes-year-card {
  position: relative;
  border-radius: 0.85rem;
  background: linear-gradient(155deg, #fff 0%, hsl(40 35% 96%) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.epitychontes-year-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: hsl(100 42% 42% / 0.35);
}

.epitychontes-year-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.35rem 1.5rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.epitychontes-year-card__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.epitychontes-year-card__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.epitychontes-year-card__excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  max-width: 28ch;
}

.epitychontes-year-card__excerpt p {
  margin: 0;
}

.epitychontes-year-card__cta {
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
}

.epitychontes-year-card:hover .epitychontes-year-card__cta {
  color: var(--primary);
}

.epitychontes-term-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.epitychontes-term-card__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--muted);
}

.epitychontes-term-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.epitychontes-term-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
}

.epitychontes-term-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

.epitychontes-term-card__title a {
  text-decoration: none;
  color: inherit;
}

.epitychontes-term-card__title a:hover {
  color: var(--primary);
}

.epitychontes-term-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.epitychontes-term-card__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--foreground);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.epitychontes-term-card__cta:hover {
  background: var(--foreground);
  color: #fff;
}

.epitychontes-term-nav {
  margin-top: 2.5rem;
}

.epitychontes-term-nav .navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.epitychontes-term-nav .page-numbers {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--foreground);
}

.epitychontes-term-nav .page-numbers.current {
  background: var(--foreground);
  color: #fff;
  border-color: var(--foreground);
}

@media (min-width: 768px) {
  .epitychontes-years-grid,
  .epitychontes-term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .epitychontes-years-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .epitychontes-term-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.site-inner table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
}

.site-inner th,
.site-inner td {
  padding: 12px;
  border: 0;
}

.site-inner th {
  text-align: left;
  background-color: #4c7852;
  color: #fff;
}

.site-inner tbody tr:nth-child(odd) td {
  background-color: #fff;
}

.site-inner tbody tr:nth-child(even) td {
  background-color: #e9e9e9;
}

/* ---------- Θέματα εξετάσεων: επιλογή τάξης ---------- */
.themata-page-section {
  padding-top: 2rem;
}

.themata-page-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.themata-page-empty {
  text-align: center;
  color: var(--muted-foreground);
}

.themata-vathmida-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}

.themata-vathmida-card {
  border-radius: 0.85rem;
  background: linear-gradient(155deg, #fff 0%, hsl(40 35% 96%) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.themata-vathmida-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: hsl(100 42% 42% / 0.35);
}

.themata-vathmida-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
  text-align: center;

}

.themata-vathmida-card__body {
  flex: 1;
  min-width: 0;
}

.themata-vathmida-card__label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.themata-vathmida-card__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
}

.themata-vathmida-card__excerpt {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.themata-vathmida-card__excerpt p {
  margin: 0;
}

.themata-vathmida-card__cta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.themata-vathmida-card:hover .themata-vathmida-card__cta {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 540px) {
  .themata-vathmida-card__link {
    flex-direction: column;
    align-items: flex-start;
  }

  .themata-vathmida-card__cta {
    align-self: flex-end;
  }
}

/* ---------- Θέματα εξετάσεων: archive βαθμίδας (τάξης) ---------- */
.themata-vathmida-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.themata-vathmida-head {
  margin-bottom: 3rem;
}

.themata-vathmida-kicker {
  margin: 0 0 1.25rem;
  text-align: center;
}

.themata-vathmida-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.themata-vathmida-back:hover {
  color: var(--primary);
}

.themata-vathmida-title {
  color: var(--foreground);
}

.themata-vathmida-desc {
  margin-top: 0.85rem;
}

.themata-vathmida-desc p:last-child {
  margin-bottom: 0;
}

.themata-vathmida-empty {
  text-align: center;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
}

.themata-vathmida-years {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.themata-year__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.themata-year__number {
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.themata-year__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.15rem;
}

.themata-year__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.themata-year__count {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--foreground);
}

.themata-year__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .themata-year__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .themata-year__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.themata-phase-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, #fff 0%, hsl(40 35% 98%) 100%);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.themata-phase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: hsl(100 42% 42% / 0.3);
}

.themata-phase-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, hsl(100 42% 42% / 0.1) 0%, hsl(175 60% 40% / 0.06) 100%);
  border-bottom: 1px solid var(--border);
}

.themata-phase-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--foreground);
}

.themata-phase-card__edit {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--muted-foreground);
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.themata-phase-card__edit:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.themata-phase-card__edit svg {
  display: block;
}

.themata-phase-card__body {
  flex: 1;
  min-height: 0;
}

.themata-phase-files {
  list-style: none;
  margin: 0;
  padding: 0;
}

.themata-phase-files__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.7rem 1.15rem;
}

.themata-phase-files__item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.themata-phase-files__subject {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
}

.themata-phase-files__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.themata-phase-files__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.themata-phase-files__btn-icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.9;
}

.themata-phase-files__btn-icon svg {
  display: block;
}

.themata-phase-files__btn--themata {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.themata-phase-files__btn--themata:hover {
  background: hsl(100 42% 36%);
  border-color: hsl(100 42% 36%);
  transform: translateY(-1px);
}

.themata-phase-files__btn--lyseis {
  color: var(--foreground);
  background: #fff;
  border: 1px solid var(--border);
}

.themata-phase-files__btn--lyseis:hover {
  background: var(--foreground);
  border-color: var(--foreground);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .themata-phase-files__item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .themata-phase-files__actions {
    justify-content: flex-start;
  }
}

/* ---------- About page (editorial split) ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about-page-section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.about-page-section:has(.about-page-sections > .section-head:first-child) {
  padding-top: clamp(0.35rem, 1vw, 0.65rem);
}

.about-page-sections > .section-head:first-child {
  margin-top: 0;
}

.about-page-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.about-page-sections .section-head {
  margin-bottom: 0;
}

.about-page-sections .section-head + .about-editorial,
.about-page-sections .section-head + .about-kathigites {
  margin-top: calc(-1 * clamp(1.35rem, 3.5vw, 3rem));
}

.about-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
}

@media (min-width: 768px) {
  .about-editorial {
    grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  }
}

.about-editorial__accent {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: clamp(0.75rem, 2vw, 1rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  container-type: size;
  background-color: #cbe0cc;
}

.about-editorial__number {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(8rem, 38vmin, 14rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
  opacity: 1;
  user-select: none;
  text-align: center;
}

@media (min-width: 768px) {
  .about-editorial__number {
    font-size: min(42rem, 115cqmin);
  }
}

.about-editorial__main {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  min-height: 0;
}

.about-editorial__figure {
  margin: 0;
  flex: 0 0 auto;
  height: clamp(9rem, 22vw, 12.5rem);
  position: relative;
  overflow: hidden;
  border-radius: clamp(0.75rem, 2vw, 1rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--muted);
}

.about-editorial__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.about-editorial__image--pos-top {
  object-position: center top;
}

.about-editorial__image--pos-offset {
  object-position: center 18%;
}

.about-editorial__content {
  flex: 0 1 auto;
}

.about-editorial__text {
  padding: 0;
  width: 100%;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted-foreground);
  text-align: justify;
  hyphens: auto;
}

.about-editorial__text p {
  margin: 0 0 1.1rem;
}

.about-editorial__text p:last-child {
  margin-bottom: 0;
}

.about-editorial__text.entry-content a,
.about-editorial__text u {
  color: var(--primary);
  font-weight: 600;
}

.about-editorial__text u {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 767px) {
  .about-editorial__accent {
    min-height: 11rem;
  }
}

.about-kathigites {
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5vw, 3.25rem);
}

.about-kathigites-group {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.about-kathigites-group__title {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  color: var(--foreground);
}

.about-kathigites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.about-kathigitis-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 0 1.5rem;
  text-align: center;
  overflow: hidden;
  border-radius: 0.85rem;
  background: linear-gradient(155deg, #fff 0%, hsl(40 35% 96%) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.about-kathigitis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: hsl(100 42% 42% / 0.35);
}

.about-kathigitis-card__figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.about-kathigitis-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-kathigitis-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 1.15rem 1.25rem 0;
}

.about-kathigitis-card__name {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.about-kathigitis-card__name a {
  color: var(--foreground);
  text-decoration: none;
}

.about-kathigitis-card__name a:hover {
  color: var(--primary);
}

.about-kathigitis-card__role {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.about-kathigitis-card__cta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--foreground);
}

.about-kathigitis-card__cta:hover {
  color: var(--primary);
}

/* ---------- Single καθηγητή ---------- */
.kathigitis-single-section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.kathigitis-single-kicker {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
}

.kathigitis-single-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.kathigitis-single-back:hover {
  color: var(--primary);
}

.kathigitis-single {
  border-radius: clamp(0.85rem, 2vw, 1rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: linear-gradient(155deg, #fff 0%, hsl(40 35% 98%) 100%);
  overflow: hidden;
}

.kathigitis-single__layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 768px) {
  .kathigitis-single__layout {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  }
}

.kathigitis-single__figure {
  margin: 0;
  min-height: 16rem;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .kathigitis-single__figure {
    min-height: 100%;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.kathigitis-single__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 768px) {
  .kathigitis-single__image {
    min-height: 28rem;
  }
}

.kathigitis-single__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
}

.kathigitis-single__head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kathigitis-single__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.kathigitis-single__role {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.kathigitis-single__badge {
  display: inline-block;
  margin: 0.15rem 0 0;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: hsl(100 35% 22%);
  background: hsl(100 42% 88%);
  border: 1px solid hsl(100 42% 72%);
  border-radius: 999px;
}

.kathigitis-single__body {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted-foreground);
}

.kathigitis-single__body p {
  margin: 0 0 1.1rem;
}

.kathigitis-single__body p:last-child {
  margin-bottom: 0;
}

.kathigitis-single__body a {
  color: var(--primary);
  font-weight: 600;
}

.kathigitis-single:not(:has(.kathigitis-single__figure)) .kathigitis-single__content {
  grid-column: 1 / -1;
}