/* Homepage additions preserve the original landing palette and layout. */
.learning-layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.learning-layers > div { min-width: 0; }
.learning-layers > div:last-child { grid-column: 1 / -1; }
.learning-layers b { flex-shrink: 0; font-size: .8rem; }
.learning-layers span { min-width: 0; overflow-wrap: anywhere; }
/* ==========================================================================
   Languages Section - Deep Emerald Luxury Showroom
   ========================================================================== */
.languages-section {
  position: relative;
  background: 
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(167, 216, 200, 0.2) 0%, transparent 65%),
    linear-gradient(180deg, #0b2724 0%, #123d38 45%, #0d2a27 100%);
  border-top: 1px solid rgba(167, 216, 200, 0.25);
  border-bottom: 1px solid rgba(167, 216, 200, 0.25);
  box-shadow: inset 0 24px 48px rgba(0, 0, 0, 0.25), inset 0 -24px 48px rgba(0, 0, 0, 0.25);
  isolation: isolate;
  overflow: hidden;
}

.languages-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 113, 95, 0.15) 0%, transparent 70%);
  filter: blur(65px);
  pointer-events: none;
}

.languages-section .section-heading h2 {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.languages-section .section-heading p {
  color: #c4ded8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.languages-section .section-number {
  color: var(--coral);
  letter-spacing: 0.2em;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.languages-section .section-number::before {
  content: '✦';
  font-size: 0.8rem;
  color: var(--coral);
}

.language-grid { 
  border: 0; 
  gap: 16px;
}

.language-card { 
  --language-accent: #287b71; 
  background: #ffffff;
  border-radius: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(15, 45, 44, 0.08);
  border-bottom: 1px solid rgba(15, 45, 44, 0.12);
  border-left: 5px solid var(--language-accent);
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.24), 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.25s;
}

.language-card:nth-child(2) { --language-accent: #c18a35; }
.language-card:nth-child(3) { --language-accent: #547fa3; }
.language-card:nth-child(4) { --language-accent: #9a718f; }
.language-card:nth-child(5) { --language-accent: #bd6857; }
.language-card:nth-child(6) { --language-accent: #62844f; }
.language-card:nth-child(7) { --language-accent: #537b86; }
.language-card:nth-child(8) { --language-accent: #9b7850; }
.language-card:nth-child(9) { --language-accent: #7b72a2; }
.language-card:nth-child(10) { --language-accent: #a95770; }
.language-card:nth-child(11) { --language-accent: #42785a; }
.language-card:nth-child(12) { --language-accent: #b6763f; }

.language-card:hover {
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 24px 55px -6px rgba(0, 0, 0, 0.38), 0 0 0 1px var(--language-accent);
  z-index: 2;
}

.language-card h3 {
  color: var(--ink);
  font-size: 1.8rem;
}

.language-card p {
  color: var(--muted);
  font-size: 0.78rem;
}

.language-card .flag {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(23, 59, 58, 0.05);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 59, 58, 0.08);
  line-height: 1.2;
}

.language-card .arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(23, 59, 58, 0.06);
  color: var(--ink);
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s;
}

.language-card:hover .arrow {
  transform: translate(2px, -2px);
  background: var(--language-accent);
  color: #ffffff;
}

.level-tags span {
  background: var(--cream);
  border: 1px solid rgba(23, 59, 58, 0.12);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 800;
  transition: all 0.2s;
}

.language-card:hover .level-tags span {
  background: #ffffff;
  border-color: var(--language-accent);
  color: var(--language-accent);
}

@media (max-width: 600px) {
  /* Only horizontal spacing changes; retain existing vertical spacing. */
  .languages-section { padding-inline: 0; }
  .languages-section .section-heading { padding-inline: .625rem; }
  .language-grid { column-gap: 0; row-gap: 10px; border-left: 0; }
  .language-card { 
    padding-inline: .625rem; 
    border-right: 0; 
    border-radius: 0;
  }
}

/* ==========================================================================
   Device Compatibility Section
   ========================================================================== */
.device-section {
  padding: 5rem clamp(1.25rem, 7vw, 8rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.device-card {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.device-copy .section-number {
  display: block;
  margin-bottom: 0.5rem;
}

.device-copy h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  line-height: 1.1;
  margin: 0.5rem 0 1.2rem;
}

.device-copy > p {
  font-size: 1rem;
  line-height: 1.7;
  color: #49625f;
  margin-bottom: 1.8rem;
}

.device-points {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.device-point {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.device-point-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(40, 123, 113, 0.14);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.device-point strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.device-point p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.device-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.device-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
}

.device-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.device-illustration {
  width: 100%;
  max-width: 540px;
  background: linear-gradient(135deg, #eef5f2 0%, #f7f3eb 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 20px 48px rgba(15, 45, 44, 0.08);
}

.device-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.device-labels {
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: 1.2rem;
}

.device-labels span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .device-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .device-preview {
    order: -1;
  }
}

@media (max-width: 600px) {
  .device-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .device-illustration {
    padding: 0.8rem;
    border-radius: 14px;
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 6rem clamp(1.25rem, 7vw, 8rem);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.faq-container {
  max-width: 960px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-header .section-number {
  display: inline-block;
  margin-bottom: 0.4rem;
}

.faq-header h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  margin: 0.4rem 0 1rem;
  line-height: 1.1;
}

.faq-header p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 45, 44, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.faq-item[open] {
  border-color: rgba(23, 59, 58, 0.35);
  box-shadow: 0 10px 28px rgba(15, 45, 44, 0.07);
  background: #ffffff;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background 0.2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background: rgba(23, 59, 58, 0.03);
}

.faq-toggle {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(23, 59, 58, 0.08);
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-toggle::before {
  width: 12px;
  height: 2px;
}

.faq-toggle::after {
  width: 2px;
  height: 12px;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--coral);
}

.faq-item[open] .faq-toggle::before,
.faq-item[open] .faq-toggle::after {
  background: #ffffff;
}

.faq-answer {
  padding: 0 24px 22px 24px;
  border-top: 1px solid rgba(23, 59, 58, 0.06);
  background: #ffffff;
}

.faq-answer p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #3b5350;
  margin: 14px 0 0;
}

.faq-answer strong {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 600px) {
  .faq-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 0.92rem;
  }
  .faq-answer {
    padding: 0 18px 18px 18px;
  }
}

/* ==========================================================================
   Concept 1: Cyber-Emerald Studio (Seamless Header & Hero Showcase)
   ========================================================================== */

/* Seamless Unified Header - Shares exact same solid background with Hero */
.site-header {
  background: #08221e !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .brand strong {
  color: #ffffff;
  letter-spacing: 0.18em;
}

.site-header .brand small,
.brand small {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.28em;
  opacity: 0.95;
}

/* Student Account / Είσοδος Button - Crisp White & High Contrast */
.student-account {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-inline-start: auto;
}

.student-account a,
.student-account button,
#student-sign-in {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(167, 216, 200, 0.45) !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
}

.student-account a:hover,
.student-account button:hover,
#student-sign-in:hover {
  background: var(--coral) !important;
  border-color: var(--coral) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(239, 113, 95, 0.45);
}

.student-account-name {
  color: #a7d8c8 !important;
  font-weight: 700;
}

/* School Entry text link in student privilege card */
#lab-school-entry {
  color: var(--coral) !important;
  font-weight: 800 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

#lab-school-entry:hover {
  color: #df5e4c !important;
}

.site-header .brand-mark {
  box-shadow: 0 0 16px rgba(239, 113, 95, 0.5), 0 0 0 2px rgba(167, 216, 200, 0.3);
}

.top-nav {
  gap: 2.2rem;
}

.top-nav a {
  color: #d1e5e1;
  font-weight: 700;
  transition: color 0.25s, transform 0.25s;
}

.top-nav a:hover {
  color: var(--coral);
  transform: translateY(-1px);
}

.menu-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 216, 200, 0.25);
  color: #ffffff;
}

@media (max-width: 900px) {
  .top-nav {
    background: #08221e !important;
    border-color: rgba(167, 216, 200, 0.25) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6) !important;
  }
  .top-nav a {
    border-bottom-color: rgba(167, 216, 200, 0.12) !important;
    color: #e2f2ee !important;
  }
  .top-nav a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--coral) !important;
  }
}

/* Deep Solid Emerald Hero Canvas - Seamlessly connected with Header, Full-Height Viewport */
.hero {
  position: relative;
  background: #08221e !important;
  border-top: 0 !important;
  color: #ffffff;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(167, 216, 200, 0.2);
  min-height: calc(100vh - 92px) !important;
  min-height: calc(100dvh - 92px) !important;
  padding: clamp(2.2rem, 4.5vh, 4rem) clamp(1.25rem, 6vw, 7.5rem) !important;
  align-items: center !important;
  gap: clamp(2.5rem, 5vw, 5.5rem) !important;
  box-sizing: border-box !important;
}

.hero::after {
  display: none !important; /* Eliminates hazy ambient blur */
}

@media (max-width: 900px) {
  .hero {
    background: #08221e !important;
    min-height: auto !important;
    padding-top: 3rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* Hero Left Copy - Elegant, Balanced & High-Impact */
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy .eyebrow {
  color: #a7d8c8;
  background: rgba(167, 216, 200, 0.12);
  border: 1px solid rgba(167, 216, 200, 0.3);
  padding: 5px 14px !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 0.74rem !important;
  margin-bottom: 0.6rem !important;
}

.hero-copy .eyebrow > span {
  width: 7px;
  height: 7px;
  background: var(--coral);
  border-radius: 50%;
}

.hero-copy h1 {
  color: #ffffff;
  text-shadow: none !important;
  font-size: clamp(2.1rem, 3.1vw, 3.25rem) !important;
  line-height: 1.15 !important;
  margin: 0.6rem 0 1rem 0 !important;
  max-width: 680px !important;
  letter-spacing: -0.025em !important;
}

.hero-copy h1 em {
  color: var(--coral);
  text-shadow: none !important;
}

.hero-copy > p {
  color: #d6e7e3;
  font-size: 1.02rem !important;
  line-height: 1.65 !important;
  margin: 0 0 1.35rem 0 !important;
  max-width: 580px !important;
  text-shadow: none !important;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem !important;
  margin-top: 1.35rem !important;
}

.hero-actions .button {
  padding: 0.95rem 1.6rem !important;
  font-size: 0.84rem !important;
}

.hero-actions .text-link {
  color: #ffffff;
  border: 1px solid rgba(167, 216, 200, 0.35);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.85rem 1.35rem !important;
  border-radius: 4px;
  font-size: 0.82rem !important;
  transition: all 0.25s ease;
}

.hero-actions .text-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(167, 216, 200, 0.6);
  transform: translateY(-2px);
}

.hero-stats {
  border-top: 1px solid rgba(167, 216, 200, 0.2);
  margin-top: 1.8rem !important;
  padding-top: 1.25rem !important;
  gap: 2.8rem !important;
}

.hero-stats strong {
  color: #ffffff;
  font-size: 1.65rem !important;
  text-shadow: none !important;
}

.hero-stats span {
  color: #a7d8c8;
  font-size: 0.68rem !important;
}

/* Sharp Solid Luxury Hero Panel - Balanced with Left Column */
.hero-panel {
  background: #0f332e !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(167, 216, 200, 0.35);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  padding: 1.5rem 1.7rem !important;
  transform: none !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s;
  max-width: 500px !important;
  margin: 0 auto !important;
}

.hero-panel:before {
  border-color: rgba(167, 216, 200, 0.25);
  border-radius: 22px;
  inset: -12px 12px 12px -12px !important;
}

.hero-panel:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55);
  border-color: rgba(167, 216, 200, 0.55);
}

.panel-top {
  color: #a7d8c8;
  font-size: 0.64rem !important;
}

/* Status Dot with Living Pulse Ring */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #4ed8b4;
}

.status-dot:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4ed8b4;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(78, 216, 180, 0.8);
  animation: pulseGlow 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(78, 216, 180, 0.8); }
  70% { box-shadow: 0 0 0 8px rgba(78, 216, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 216, 180, 0); }
}

/* Level Orbit - Balanced & Majestic */
.level-orbit {
  margin: 1.15rem 0 !important;
}

.level-orbit span {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(167, 216, 200, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #e2f2ee;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem !important;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
  cursor: pointer;
}

.level-orbit span:hover:not(.active) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(167, 216, 200, 0.6);
  transform: scale(1.08);
}

.level-orbit .active {
  width: 60px !important;
  height: 60px !important;
  background: var(--coral);
  color: #ffffff;
  border: 7px solid rgba(239, 113, 95, 0.25) !important;
  box-shadow: 0 0 20px rgba(239, 113, 95, 0.45);
  font-size: 0.82rem !important;
}

/* Sample Card inside Panel - High Contrast Solid */
.sample-card {
  background: #15423c !important;
  border: 1px solid rgba(167, 216, 200, 0.28) !important;
  border-radius: 10px;
  color: #ffffff;
  padding: 0.85rem 1.05rem !important;
  gap: 0.85rem !important;
}

.sample-icon {
  width: 38px !important;
  height: 38px !important;
  background: var(--coral);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(239, 113, 95, 0.4);
  font-size: 0.9rem !important;
}

.sample-card small {
  color: #a7d8c8;
  font-size: 0.58rem !important;
}

.sample-card strong {
  color: #ffffff;
  font-size: 0.86rem !important;
}

.sample-card div > span {
  color: #c4ded8;
  font-size: 0.68rem !important;
}

.sample-card > b {
  color: #ffffff;
  font-size: 0.95rem !important;
}

.progress {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  height: 5px !important;
  margin: 0.75rem 0 !important;
}

.progress i {
  background: linear-gradient(90deg, var(--coral), #f3cf77);
  box-shadow: none;
}

/* 7 Learning Layers (Solid Crisp Emerald Tiles) */
.mini-grid {
  gap: 0.6rem !important;
  margin-top: 0.9rem !important;
}

.mini-grid > div {
  background: #133c36 !important;
  border: 1px solid rgba(167, 216, 200, 0.25) !important;
  border-radius: 8px;
  color: #ffffff;
  padding: 0.65rem 0.8rem !important;
  gap: 0.65rem !important;
  font-size: 0.7rem !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, background 0.25s;
  cursor: default;
}

.mini-grid > div:hover {
  transform: translateY(-2px);
  background: #184841 !important;
  border-color: rgba(167, 216, 200, 0.5) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.mini-grid b {
  color: var(--coral);
  font-size: 0.98rem !important;
  text-shadow: none !important;
}

.mini-grid span {
  color: #ffffff;
  line-height: 1.3 !important;
}

.mini-grid small {
  color: #c4ded8;
  font-size: 0.64rem !important;
}

/* 5. Primary Buttons: Glowing Shimmer & Tactile Response */
.button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px -2px rgba(239, 113, 95, 0.45);
  border-radius: 4px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, background 0.2s;
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px -4px rgba(239, 113, 95, 0.55);
}

.button:active {
  transform: translateY(-1px) scale(0.99);
}

.button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: 0.6s;
}

.button:hover::after {
  left: 150%;
  transition: 0.75s ease-in-out;
}

/* 6. Features Grid: Glowing Dark Cards & Gradient Icons */
.features {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #1c4b4a 0%, #0f2d2c 100%);
}

.features article {
  position: relative;
  transition: background 0.3s, transform 0.3s;
}

.features article:hover {
  background: rgba(255, 255, 255, 0.04);
}

.features article .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 113, 95, 0.2) 0%, rgba(167, 216, 200, 0.1) 100%);
  border: 1px solid rgba(239, 113, 95, 0.3);
  box-shadow: 0 8px 24px -4px rgba(239, 113, 95, 0.25);
  font-size: 1.8rem;
  color: var(--coral);
  margin-bottom: 1.8rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.features article:hover .feature-icon {
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 12px 30px rgba(239, 113, 95, 0.4);
}

.features h3 {
  margin: 1rem 0 0.8rem;
}

/* 8. Student Benefit: Ambient Seal Glow */
.student-benefit {
  background: radial-gradient(ellipse at 25% 50%, #bde7d9 0%, #a7d8c8 100%);
}

.benefit-seal {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.student-benefit:hover .benefit-seal {
  transform: scale(1.03);
}

/* 9. Membership Pricing: SaaS Lift & Badge Shimmer */
.lab-plan {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.25s;
}

.lab-plan:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px -12px rgba(18, 59, 54, 0.18);
  border-color: #256752;
}

.lab-plan-best {
  box-shadow: 0 20px 50px -10px rgba(16, 62, 52, 0.35);
  transform: scale(1.02);
}

.lab-plan-best:hover {
  transform: scale(1.04) translateY(-8px);
  box-shadow: 0 30px 75px -10px rgba(16, 62, 52, 0.45);
}

.lab-plan-badge {
  box-shadow: 0 4px 14px rgba(243, 207, 119, 0.4);
  animation: badgeShimmer 3s infinite ease-in-out;
}

@keyframes badgeShimmer {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* 10. Scroll Reveal Animation Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Languages Directory Hub (Talkpal-Style Official Landing Pages)
   ========================================================================== */
.languages-hub-section {
  padding: 5.5rem clamp(1.25rem, 7vw, 8rem);
  background: #fbfaf6;
  border-top: 1px solid rgba(23, 59, 58, 0.12);
  border-bottom: 1px solid rgba(23, 59, 58, 0.12);
}

.languages-hub-container {
  max-width: 1240px;
  margin: 0 auto;
}

.languages-hub-header {
  margin-bottom: 2.8rem;
  text-align: left;
}

.languages-hub-header .section-number {
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.languages-hub-header h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  color: var(--ink);
  line-height: 1.15;
  margin: 0.6rem 0 0.8rem;
}

.languages-hub-header h2 em {
  color: var(--coral);
  font-weight: 600;
}

.languages-hub-header p {
  font-size: 0.98rem;
  color: #4f6964;
  max-width: 780px;
  line-height: 1.7;
  margin: 0;
}

.languages-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 2.8rem;
}

.lang-hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  background: #ffffff;
  border: 1px solid rgba(23, 59, 58, 0.12);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 45, 44, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
}

.lang-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
  box-shadow: 0 14px 28px -4px rgba(239, 113, 95, 0.18), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.lang-hub-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lang-hub-flag {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.lang-hub-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lang-hub-info strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.lang-hub-card:hover .lang-hub-info strong {
  color: var(--coral);
}

.lang-hub-info small {
  font-size: 0.72rem;
  color: #687b78;
  letter-spacing: 0.02em;
}

.lang-hub-arrow {
  color: var(--coral);
  font-size: 1.1rem;
  font-weight: 800;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.lang-hub-card:hover .lang-hub-arrow {
  transform: translateX(4px);
}

.languages-hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1.4rem 1.8rem;
  background: #f1ede2;
  border-radius: 12px;
  border: 1px solid rgba(23, 59, 58, 0.1);
}

.languages-hub-toolbar-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.languages-hub-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.languages-hub-links-row a {
  font-size: 0.82rem;
  font-weight: 800;
  color: #173b3a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.languages-hub-links-row a:hover {
  color: var(--coral);
}

@media (max-width: 1100px) {
  .languages-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .languages-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .languages-hub-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .languages-hub-grid {
    grid-template-columns: 1fr;
  }
  .languages-hub-links-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
