﻿/**
 * iTeachers modern homepage styles (Edugamewijs patterns, orange brand)
 */

:root {
  --default-font: "Open Sans", system-ui, sans-serif;
  --heading-font: "Nunito", sans-serif;
  --nav-font: "Nunito", sans-serif;
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #111111;
  /* Exact brand palette from the live iteachers.nl (Presento) stylesheet */
  --accent-color: #D85626;
  --accent-color-hover: #e76668;
  --accent-secondary: #111111;
  --surface-dark: #2b2b2b;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
    --light-background: 
 color-mix(in srgb, #6d6866, white 93%);
  --dark-background: #111111;
  --nav-color: #111111;
  --nav-hover-color: #D85626;
  --shadow-tint: 216, 86, 38;
}

.modern-ui h1,
.modern-ui h2,
.modern-ui h3,
.modern-ui h4,
.modern-ui h5,
.modern-ui h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
}

.modern-ui .section {
  padding: 60px 0;
  scroll-margin-top: 100px;
}

.modern-ui .light-background {
  --background-color: var(--light-background);
  background-color: var(--light-background);
}

.modern-ui .dark-background {
  --background-color: var(--dark-background);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: var(--surface-dark);
  --contrast-color: #ffffff;
  background-color: var(--dark-background);
  color: #ffffff;
}

.modern-ui .dark-background a {
  color: #fff;
}

/* Header */
.modern-ui #header.header {
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 0;
  box-shadow: none;
  transition: 0.3s;
}

.modern-ui.scrolled #header.header,
.modern-ui #header.header.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.modern-ui #header .logo img {
  /* Brand header logo is 40px on the live site; a touch larger reads well
     with our slightly taller header padding but stays compact. */
  max-height: 46px;
  width: auto;
}

.modern-ui #header .cta-btn {
  color: var(--contrast-color);
  background: var(--accent-secondary);
  font-size: 14px;
  padding: 8px 26px;
  border-radius: 50px;
  transition: 0.3s;
  white-space: nowrap;
}

.modern-ui #header .cta-btn:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.modern-ui #navbar.navmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1200px) {
  .modern-ui #navbar.navmenu > ul {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .modern-ui #navbar.navmenu > ul > li {
    padding: 15px 12px;
    position: relative;
  }

  .modern-ui #navbar.navmenu a {
    color: color-mix(in srgb, var(--nav-color), transparent 15%);
    font-family: var(--nav-font);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 0 2px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .modern-ui #navbar.navmenu a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-color);
    visibility: hidden;
    transform: scaleX(0);
    transition: 0.3s;
  }

  .modern-ui #navbar.navmenu a:hover::before,
  .modern-ui #navbar.navmenu a.active::before {
    visibility: visible;
    transform: scaleX(1);
  }

  .modern-ui #navbar.navmenu a:hover,
  .modern-ui #navbar.navmenu a.active {
    color: var(--nav-hover-color);
  }

  .modern-ui #navbar.navmenu .dropdown ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    display: block;
  }

  .modern-ui #navbar.navmenu .dropdown:hover > ul {
    opacity: 1;
    visibility: visible;
    top: 100%;
  }

  .modern-ui #navbar.navmenu .dropdown ul li {
    padding: 0;
  }

  .modern-ui #navbar.navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 14px;
  }

  .modern-ui #navbar.navmenu .dropdown ul a::before {
    display: none;
  }
}

@media (max-width: 1199px) {
  .modern-ui #header .cta-btn {
    order: 2;
    margin-right: 50px;
    padding: 6px 18px;
    font-size: 13px;
  }

  /* Old Presento toggle appears only below 992px; align with the 1200px
     desktop-nav breakpoint so there is no unstyled nav in between. */
  .modern-ui #header #navbar {
    order: 3 !important;
  }

  .modern-ui #navbar .mobile-nav-toggle {
    display: block;
  }

  .modern-ui #navbar > ul {
    display: none;
  }

  .modern-ui #navbar.navbar-mobile > ul {
    display: block;
    padding: 10px 0;
    animation: iteachersMobileNavIn 0.25s ease;
  }
}

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

/* Generic CTA pill button (used outside the hero, e.g. on subpages) */
.modern-ui .get-started-btn {
  background: var(--accent-color);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 700;
  border-radius: 50px;
  padding: 10px 28px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.modern-ui .get-started-btn:hover {
  background: var(--accent-secondary);
  color: #fff;
  transform: translateY(-2px);
}

/* Simple resource list (used on ai.php / lessen.php for PDF & link collections) */
.modern-ui .resource-list-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 88%);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(var(--shadow-tint), 0.08);
  padding: 1.5rem 1.6rem;
  height: 100%;
}

.modern-ui .resource-list-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-ui .resource-list-card h3 i {
  color: var(--accent-color);
}

.modern-ui .resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modern-ui .resource-list li {
  border-top: 1px dashed color-mix(in srgb, var(--accent-color), transparent 80%);
}

.modern-ui .resource-list li:first-child {
  border-top: none;
}

.modern-ui .resource-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.1rem;
  color: var(--default-color);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, gap 0.2s ease;
}

.modern-ui .resource-list a:hover {
  color: var(--accent-color);
  gap: 0.85rem;
}

.modern-ui .resource-list a i {
  color: var(--accent-color);
  flex-shrink: 0;
}

/* Breadcrumbs (subpages) */
.modern-ui .breadcrumbs {
  background: var(--dark-background);
  margin-top: 82px;
  padding: 26px 0;
}

.modern-ui .breadcrumbs h2 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 800;
}

.modern-ui .breadcrumbs ol a {
  color: color-mix(in srgb, #fff, transparent 30%);
  transition: color 0.2s ease;
}

.modern-ui .breadcrumbs ol a:hover {
  color: var(--accent-color);
}

.modern-ui .breadcrumbs ol li.active {
  color: var(--accent-color);
}

/* Section titles */
.modern-ui .section-title {
  padding-bottom: 40px;
  text-align: center;
}

.modern-ui .section-title h2 {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.modern-ui .section-title h2::after {
  content: "";
  /* Old stylesheet positions this absolutely under the heading; reset it. */
  position: static;
  width: 80px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
  margin: 0;
}

.modern-ui .section-title p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 12px auto 0;
  max-width: 720px;
  font-size: 16px;
}

/* Hero */
.modern-ui #hero.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: none;
}

.modern-ui #hero.hero::before {
  display: none;
}

.modern-ui #hero .info {
  position: relative;
  z-index: 3;
  padding: 140px 0 80px;
  width: 100%;
}

.modern-ui #hero .info h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.modern-ui #hero .info .hero-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.modern-ui #hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.modern-ui #hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 32px;
  margin: 0;
  border-radius: 50px;
  transition: 0.3s;
  border: 2px solid var(--accent-color);
}

.modern-ui #hero .btn-get-started:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.modern-ui #hero .btn-get-started.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.modern-ui #hero .btn-get-started.btn-outline-light:hover {
  background: #fff;
  color: var(--accent-secondary);
  border-color: #fff;
}

.modern-ui #hero .hero-social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.modern-ui #hero .hero-social-links a {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.modern-ui #hero .hero-social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.modern-ui #hero .carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.modern-ui #hero .carousel-inner,
.modern-ui #hero .carousel-item {
  height: 100%;
}

.modern-ui #hero .carousel-item {
  position: relative;
}

.modern-ui #hero .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.55) 0%, rgba(17, 17, 17, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

.modern-ui #hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modern-ui #hero .carousel-indicators {
  z-index: 2;
  margin-bottom: 1.75rem;
}

.modern-ui #hero .carousel-indicators button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  opacity: 0.5;
  background-color: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.modern-ui #hero .carousel-indicators button.active {
  opacity: 1;
  background-color: var(--accent-color);
  transform: scale(1.25);
}

.modern-ui #hero .hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: heroScrollCue 2.2s ease-in-out infinite;
}

.modern-ui #hero .hero-scroll-cue:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

@keyframes heroScrollCue {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

@media (max-width: 768px) {
  .modern-ui #hero .hero-scroll-cue {
    display: none;
  }
}

/* Stats */
.modern-ui #stats.stats {
  background: var(--dark-background);
  padding: 48px 0;
}

.modern-ui #stats.stats .stats-item {
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-ui #stats.stats .col-lg-3:last-child .stats-item,
.modern-ui #stats.stats .col-6:nth-child(2n) .stats-item {
  border-right: none;
}

@media (min-width: 992px) {
  .modern-ui #stats.stats .col-6:nth-child(2n) .stats-item {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .modern-ui #stats.stats .col-lg-3:last-child .stats-item {
    border-right: none;
  }
}

.modern-ui #stats.stats .stats-number {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 8px;
}

.modern-ui #stats.stats .stats-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* Clients */
.modern-ui #clients.clients {
  padding: 40px 0;
  background: #fff;
}

.modern-ui #clients .swiper-slide img {
  max-height: 56px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: 0.3s;
}

.modern-ui #clients .swiper-slide img:hover {
  filter: none;
  opacity: 1;
}

/* Testimonials */
.modern-ui .testimonials-note {
  font-size: 0.85rem;
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-top: 8px !important;
}

.modern-ui .testimonials-note i {
  color: var(--accent-color);
  margin-right: 4px;
}

.modern-ui #testimonials.testimonials .testimonial-item {
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(var(--shadow-tint), 0.1);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 90%);
}

.modern-ui #testimonials.testimonials .testimonial-stars {
  color: var(--accent-color);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-top: 6px;
}

.modern-ui #testimonials.testimonials .quote-icon-left {
  color: color-mix(in srgb, var(--accent-color), transparent 80%);
  font-size: 2rem;
}

.modern-ui #testimonials.testimonials .testimonial-item h3 {
  font-family: var(--heading-font);
  color: var(--accent-secondary);
}

/* About */
.modern-ui #about.about .about-img {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.modern-ui #about.about .about-img img {
  border-radius: 20px;
  width: 100%;
}

.modern-ui .lead {
      font-size: 1.25rem;
    font-weight: 800;
}


.modern-ui #about.about .experience-badge,
.modern-ui #about.about .projects-badge {
  position: absolute;
  background: var(--surface-color);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 130px;
  z-index: 2;
}

.modern-ui #about.about .experience-badge {
  bottom: -20px;
  left: 20px;
}

.modern-ui #about.about .experience-badge h2,
.modern-ui #about.about .projects-badge h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  color: var(--accent-color);
}

.modern-ui #about.about .projects-badge {
  top: 24px;
  right: -10px;
  background: var(--accent-color);
}

.modern-ui #about.about .projects-badge h2,
.modern-ui #about.about .projects-badge p {
  color: #fff;
}

.modern-ui #about.about .experience-badge p,
.modern-ui #about.about .projects-badge p {
  margin: 6px 0 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.modern-ui #about.about .feature-item {
  display: flex;
  gap: 16px;
  margin-bottom: 1.25rem;
}

.modern-ui #about.about .feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-ui #about.about .feature-icon i {
  font-size: 1.4rem;
  color: var(--accent-color);
}

.modern-ui #about.about .feature-content h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.modern-ui #about.about .feature-content p {
  margin: 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

/* Aanbod / producten cards (shared between #aanbod and #producten) */
.modern-ui .aanbod-ws-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(var(--shadow-tint), 0.08);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 88%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modern-ui .aanbod-ws-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(var(--shadow-tint), 0.14);
  color: inherit;
}

.modern-ui a.aanbod-ws-card:hover .aanbod-ws-card-title {
  color: var(--accent-color);
}

.modern-ui .aanbod-ws-card-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
}

.modern-ui .aanbod-ws-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.modern-ui .aanbod-ws-card:hover .aanbod-ws-card-thumb:not(.aanbod-ws-card-thumb--diagram) img {
  transform: scale(1.06);
}

.modern-ui .aanbod-ws-card:focus-visible,
.modern-ui .get-started-btn:focus-visible,
.modern-ui .cta-btn:focus-visible,
.modern-ui .sticky-cta:focus-visible,
.modern-ui .aanbod-ws-card-cta:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* Diagram thumbnails (SLO / 21e-eeuwse vaardigheden) need to show the full graphic, not a cropped crop */
.modern-ui .aanbod-ws-card-thumb--diagram {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  box-sizing: border-box;
  padding: 1.5rem;
}

@media (min-width: 992px) {
  .modern-ui .aanbod-ws-card-thumb--diagram {
    aspect-ratio: 4 / 3;
    padding: 2rem;
  }
}

.modern-ui .aanbod-ws-card-thumb--diagram img {
  object-fit: contain;
}

/* Icon thumbnails for products without a representative photo (e.g. Typecursus) */
.modern-ui .aanbod-ws-card-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 85%), color-mix(in srgb, var(--accent-color), transparent 94%));
  transition: background 0.4s ease;
}

.modern-ui .aanbod-ws-card-thumb--icon i {
  font-size: 3.5rem;
  color: var(--accent-color);
  transition: transform 0.4s ease;
}

.modern-ui .aanbod-ws-card:hover .aanbod-ws-card-thumb--icon i {
  transform: scale(1.12);
}

.modern-ui .aanbod-ws-card-body {
  padding: 1.25rem 1.35rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modern-ui .aanbod-ws-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 0.65rem;
  transition: color 0.25s ease;
}

.modern-ui .aanbod-ws-card-title i {
  color: var(--accent-color);
}

.modern-ui .aanbod-ws-card-body p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.modern-ui .aanbod-ws-card-body > p:last-of-type {
  margin-bottom: 0;
}

/* Extra context within aanbod cards (always visible) */
.modern-ui .aanbod-ws-card-more {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px dashed color-mix(in srgb, var(--accent-color), transparent 75%);
}

.modern-ui .aanbod-ws-card-more p {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 8%);
}

.modern-ui .aanbod-ws-card-more h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-secondary);
  margin: 0.9rem 0 0.3rem;
}

.modern-ui .aanbod-ws-card-more h5:first-child {
  margin-top: 0;
}

.modern-ui .aanbod-ws-card-more ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem;
}

.modern-ui .aanbod-ws-card-more ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.4rem;
  color: color-mix(in srgb, var(--default-color), transparent 8%);
}

.modern-ui .aanbod-ws-card-more ul li i {
  color: var(--accent-color);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.modern-ui .aanbod-ws-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.modern-ui .aanbod-ws-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.2s ease;
}

.modern-ui .aanbod-ws-card-cta:hover {
  gap: 0.55rem;
  color: var(--accent-color);
}

.modern-ui .aanbod-ws-card-cta i {
  font-size: 0.78rem;
}

.modern-ui .aanbod-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-secondary);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modern-ui .aanbod-ws-card--product {
  border-color: color-mix(in srgb, var(--accent-color), transparent 75%);
}

/* Cases */
.modern-ui #cases .case-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 82%);
  box-shadow: 0 4px 18px rgba(var(--shadow-tint), 0.08);
  transition: transform 0.3s ease;
}

.modern-ui #cases .case-card:hover {
  transform: translateY(-5px);
}

.modern-ui #cases .case-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.modern-ui #cases .case-card:hover .case-card-bg {
  transform: scale(1.04);
}

.modern-ui #cases .case-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.1) 0%, rgba(17, 17, 17, 0.85) 100%);
}

.modern-ui #cases .case-card-inner {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  width: 100%;
}

.modern-ui #cases .case-card h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.modern-ui #cases .case-card p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.9rem;
}

.modern-ui .video-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 2rem;
}

.modern-ui .video-wrap iframe,
.modern-ui .video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 280px;
  border: 0;
}

/* Social return */
.modern-ui #social-return .social-return-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 88%);
}

.modern-ui #social-return .social-return-card img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.modern-ui #social-return .social-return-card .content {
  padding: 2rem;
}

.modern-ui #social-return .social-return-card h4 {
  color: var(--accent-color);
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

.modern-ui #social-return .social-return-card h4:first-of-type {
  margin-top: 0;
}

/* FAQ */
.modern-ui #faq.faq .faq-item {
  margin-bottom: 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: 0.3s;
}

.modern-ui #faq.faq .faq-item:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.modern-ui #faq.faq .faq-item h3 {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  gap: 12px;
}

.modern-ui #faq.faq .faq-item h3 .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.modern-ui #faq.faq .faq-item h3:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}

.modern-ui #faq.faq .faq-item h3 .faq-toggle {
  margin-left: auto;
  transition: 0.3s;
}

.modern-ui #faq.faq .faq-item .faq-content {
  display: none;
  padding: 0 22px 18px 62px;
}

.modern-ui #faq.faq .faq-item .faq-content p {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

.modern-ui #faq.faq .faq-item.faq-active h3 {
  background: color-mix(in srgb, var(--accent-color), transparent 94%);
}

.modern-ui #faq.faq .faq-item.faq-active .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent-color);
}

.modern-ui #faq.faq .faq-item.faq-active .faq-content {
  display: block;
}

/* Contact (and any other section reusing the same form/card components) */
.modern-ui .contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 88%);
}

.modern-ui .contact-card i {
  font-size: 1.75rem;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  display: block;
}

.modern-ui .php-email-form {
  background: #fff;
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 88%);
}

.modern-ui .php-email-form input[type="submit"] {
  background: var(--accent-color);
  border: 0;
  padding: 12px 36px;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.modern-ui .php-email-form input[type="submit"]:hover {
  background: color-mix(in srgb, var(--accent-color), #000 10%);
}

/* Footer */
.modern-ui #footer.footer {
  background: var(--dark-background);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 0;
}

.modern-ui #footer .footer-top {
  /* Matches the live site's two-tone footer: a lighter charcoal band
     (#1b1b1b) over the near-black footer background (#111111). */
  background: #1b1b1b;
  padding: 60px 0 30px;
}

.modern-ui #footer .sitename {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.modern-ui #footer .sitename span {
  color: var(--accent-color);
}

.modern-ui #footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 10px;
}

.modern-ui #footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

.modern-ui #footer a {
  color: #aaaaaa;
}

.modern-ui #footer a:hover {
  color: var(--accent-color);
}

.modern-ui #footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-ui #footer .footer-links li {
  padding: 6px 0;
}

.modern-ui #footer .social-links a {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--surface-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: 0.3s;
}

.modern-ui #footer .social-links a:hover {
  background: var(--accent-color);
  color: #fff;
}

.modern-ui #footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin-top: 40px;
}

.modern-ui #footer .footer-legal-links a {
  margin: 0 6px;
}

/* Sticky contact CTA (floats above the back-to-top button) */
.modern-ui .back-to-top {
  bottom: 84px;
  border-radius: 50px;
}

.sticky-cta {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-color);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  font-family: var(--nav-font);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(var(--shadow-tint), 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.sticky-cta:hover {
  background: var(--accent-secondary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(var(--shadow-tint), 0.4);
}

.sticky-cta i {
  font-size: 1.05rem;
  line-height: 1;
}

@media (max-width: 576px) {
  .sticky-cta-label {
    display: none;
  }

  .sticky-cta {
    padding: 0.75rem;
    width: 46px;
    height: 46px;
    justify-content: center;
  }

  .modern-ui .back-to-top {
    bottom: 74px;
  }
}

/* Cookie banner */
.iteachers-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(17, 17, 17, 0.96);
  color: #fff;
  padding: 16px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.iteachers-cookie-banner[hidden] {
  display: none !important;
}

.iteachers-cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.iteachers-cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
}

.iteachers-cookie-banner a {
  color: var(--accent-color);
}

.iteachers-cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  /* Stacked layout: keep the floating badges from overlapping the text below */
  .modern-ui #about.about .about-img {
    margin-bottom: 40px;
  }

  .modern-ui #about.about .experience-badge {
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px;
    min-width: 120px;
  }

  .modern-ui #about.about .experience-badge h2,
  .modern-ui #about.about .projects-badge h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .modern-ui .section {
    scroll-margin-top: 90px;
  }

  .modern-ui #hero .info {
    padding: 120px 16px 60px;
  }

  .modern-ui #about.about .projects-badge {
    right: 10px;
    top: 10px;
    padding: 14px;
    min-width: 120px;
  }
}
