/* ============================================
   LONDON TECH TRAINING — Design System
   ============================================ */

/* --- Variables --- */
:root {
  --color-primary: #1a1a2e;
  --color-primary-light: #2d2d4a;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: #dbeafe;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-dark: #f1f3f5;
  --color-border: #e5e7eb;
  --color-white: #ffffff;
  --color-success: #059669;
  --color-sale: #dc2626;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);

  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

ul { list-style: none; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

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

.section-dark {
  background-image: linear-gradient(135deg, rgba(26,26,46,0.88) 0%, rgba(26,26,46,0.82) 100%),
                     url('/img/course-corporate.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.section-dark .section-header h2 {
  color: var(--color-white);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   HEADER — Original 2-row topbar design
   ============================================ */
.topbar {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  z-index: 100;
  background: var(--color-bg);
}

.topbar .logo {
  position: absolute;
  left: 100px;
  top: 12px;
  height: 100px;
  width: 120px;
  z-index: 15;
}

.topbar .logo a { display: block; height: 100%; }

.topbar .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topbar .content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar .row-1 {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 125px 12px 10px;
  height: 121px;
  position: relative;
  z-index: 10;
}

.topbar .row-1 nav {
  margin-left: 308px;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.topbar .row-1 nav > a,
.topbar .dropdown-toggle {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.topbar .row-1 nav > a:hover,
.topbar .dropdown-toggle:hover,
.topbar .row-1 nav > a.active,
.topbar .dropdown-toggle.active {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.chevron {
  font-size: 0.7em;
  transition: transform 0.2s;
}

.nav-dropdown.open .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--space-sm) 0;
  z-index: 200;
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

/* Desktop hover — show dropdown on hover with gap bridge */
@media (min-width: 769px) {
  .nav-dropdown:hover > .dropdown-menu,
  .nav-dropdown:focus-within > .dropdown-menu {
    display: block;
  }

  /* Invisible bridge to prevent hover gap between toggle and menu */
  .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
  }
}

.dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  transition: background 0.15s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* Row 2 — gradient phone number below the line */
.topbar .row-2 {
  padding: 10px 125px 10px 10px;
  font-family: var(--font-body);
  font-weight: var(--font-weight-light);
  border-bottom: 1px solid var(--color-border);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.phone-number1 {
  margin-left: auto;
  background: linear-gradient(-45deg, #23a6d5, #23d5ab, #ee7752);
  background-size: 200% 200%;
  animation: gradient1 10s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phone-number2 {
  margin-left: 5px;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5);
  background-size: 200% 200%;
  animation: gradient2 5s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile responsive header */
@media (max-width: 768px) {
  .mobile-toggle { display: flex; }

  .topbar {
    flex-wrap: wrap;
  }

  .topbar .logo {
    position: relative;
    left: auto;
    top: auto;
    height: 50px;
    width: 60px;
    margin: 10px 15px;
  }

  .topbar .content {
    flex: 1;
  }

  .topbar .row-1 {
    height: auto;
    padding: 10px 15px;
    justify-content: flex-end;
    align-items: center;
  }

  .topbar .row-2 {
    height: auto;
    padding: 8px 15px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .topbar .row-1 nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg);
    gap: 0;
    margin-left: 0;
    z-index: 300;
  }

  .topbar .row-1 nav.open { display: flex; }

  .topbar .row-1 nav > a,
  .topbar .dropdown-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 1.0625rem;
  }

  .nav-dropdown { width: 100%; display: block; }

  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: var(--space-xl);
    min-width: auto;
  }

  .dropdown-menu a {
    text-align: left;
    padding: var(--space-sm) var(--space-lg);
  }

  .topbar .row-2 {
    height: auto;
    padding: 8px 15px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .phone-number1 { margin-left: 0; }
}

/* ============================================
   HERO
   ============================================ */
/* Homepage hero — CSS Grid canvas with glassmorphism text panel */
.hero {
  display: grid;
  grid-template-areas: "hero";
  min-height: 520px;
  overflow: hidden;
}

.hero > * {
  grid-area: hero;
}

.hero .hero-bg {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.hero .hero-content {
  align-self: end;
  justify-self: start;
  z-index: 2;
  background: rgba(26, 26, 46, 0.01);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-left: none;
  color: var(--color-white);
  padding: var(--space-3xl) var(--space-3xl);
  max-width: 720px;
  border-radius: 0 var(--radius-xl) 0 0;
}

@supports not (backdrop-filter: blur(28px)) {
  .hero .hero-content {
    background: rgba(26, 26, 46, 0.8);
  }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero .subtitle {
  font-size: 1.125rem;
  font-weight: var(--font-weight-light);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
  opacity: 0.85;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero { min-height: 400px; }
  .hero .hero-bg { min-height: 400px; }
  .hero .hero-content {
    max-width: 100%;
    border-radius: 0;
    padding: var(--space-2xl) var(--space-xl);
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: var(--space-sm);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-white:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* ============================================
   COURSE CARDS
   ============================================ */
.course-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 8px rgba(0,0,0,0.06);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08), 0 12px 24px rgba(0,0,0,0.1), 0 24px 48px rgba(0,0,0,0.06);
}

.course-card .card-img {
  overflow: hidden;
  height: 200px;
}

.course-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.course-card:hover .card-img img {
  transform: scale(1.08);
}

.course-card .card-body {
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.course-card h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.course-card .duration {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-md);
}

.course-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
}

.course-card .card-link {
  margin-top: var(--space-lg);
  font-weight: var(--font-weight-semibold);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.course-card .card-link::after {
  content: '\2192';
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.course-card:hover .card-link::after {
  transform: translateX(8px);
}

/* ============================================
   ICON BOXES (Why Choose Us)
   ============================================ */
.icon-box {
  text-align: center;
  padding: var(--space-xl);
}

.icon-box .icon-circle {
  width: 64px;
  height: 64px;
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.5rem;
}

.section-dark .icon-box .icon-circle {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
}

.icon-box h3 {
  font-size: 1.0625rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.icon-box p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.section-dark .icon-box p {
  color: rgba(255,255,255,0.7);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  background-image: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(45,45,74,0.92) 100%),
                     url('/img/testimonials-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.testimonials-section .section-header h2 {
  color: var(--color-white);
}

.testimonials-section .section-header p {
  color: rgba(255,255,255,0.7);
}

.testimonials-section .testimonial-card {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.testimonials-section .testimonial-card blockquote {
  color: rgba(255,255,255,0.9);
}

.testimonials-section .testimonial-card .attribution {
  color: var(--color-white);
}

.testimonials-section .testimonial-card .attribution span {
  color: rgba(255,255,255,0.6);
}

.testimonials-section .testimonial-card::before {
  color: rgba(255,255,255,0.15);
}

.testimonials-track {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-lg);
  scrollbar-width: thin;
}

.testimonial-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--color-accent-light);
  position: absolute;
  top: var(--space-md);
  left: var(--space-xl);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card blockquote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card .attribution {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

.testimonial-card .attribution span {
  display: block;
  font-weight: var(--font-weight-normal);
  color: var(--color-text-light);
  font-size: 0.8125rem;
}

/* ============================================
   TRUSTED BY
   ============================================ */
.trusted-by {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.trusted-by h2 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-normal);
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
}

.companies-logo-container {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  align-items: center;
}

.companies-logo {
  width: 80px;
  height: 50px;
  object-fit: contain;
  justify-self: center;
  opacity: 0.6;
  transition: opacity 0.2s;
  filter: grayscale(100%);
}

.companies-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .companies-logo-container {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .companies-logo-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background-image: linear-gradient(135deg, rgba(37,99,235,0.75) 0%, rgba(29,78,216,0.65) 100%),
                     url('/img/london-exterior.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.cta-banner p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

/* ============================================
   SALE BADGE
   ============================================ */
.sale-badge {
  display: inline-block;
  background: var(--color-sale);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location-section {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.location-section img {
  border-radius: var(--radius-lg);
  max-width: 500px;
  box-shadow: var(--shadow-md);
}

.location-info h2 {
  font-size: 1.875rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.location-info p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .location-section {
    flex-direction: column;
  }
  .location-section img {
    max-width: 100%;
  }
}

/* ============================================
   COURSE PAGE LAYOUT
   ============================================ */
/* Page hero — CSS Grid canvas with glassmorphism overlay */
.page-hero {
  display: grid;
  grid-template-areas: "hero";
  min-height: 420px;
  overflow: hidden;
}

.page-hero > * {
  grid-area: hero;
}

.page-hero .page-hero-img {
  width: 100%;
  height: 100%;
}

.page-hero .page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 420px;
}

.page-hero .page-hero-content {
  align-self: end;
  justify-self: start;
  z-index: 2;
  background: rgba(26, 26, 46, 0.12);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: none;
  border-left: none;
  color: var(--color-white);
  padding: var(--space-2xl) var(--space-3xl);
  margin-bottom: -3rem;
  position: relative;
  max-width: 650px;
  border-radius: 0 var(--radius-xl) 0 0;
}

@supports not (backdrop-filter: blur(24px)) {
  .page-hero .page-hero-content {
    background: rgba(26, 26, 46, 0.8);
  }
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-hero .subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: var(--space-sm);
  font-weight: var(--font-weight-light);
}

.page-hero .breadcrumb {
  font-size: 0.8125rem;
  opacity: 0.6;
  margin-bottom: var(--space-md);
}

.page-hero .breadcrumb a {
  color: var(--color-white);
  opacity: 0.8;
}

.page-hero .breadcrumb a:hover {
  opacity: 1;
}

.page-hero-compact {
  min-height: 280px;
  max-height: 350px;
}

.page-hero-compact .page-hero-img {
  max-height: 350px;
}

.page-hero-compact .page-hero-img img {
  min-height: 280px;
  max-height: 350px;
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 320px;
  }
  .page-hero .page-hero-img img {
    min-height: 320px;
  }
  .page-hero-compact,
  .page-hero-compact .page-hero-img img {
    min-height: 220px;
  }
  .page-hero .page-hero-content {
    max-width: 100%;
    border-radius: 0;
    margin-bottom: 0;
    padding: var(--space-xl);
  }
}

.course-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-3xl) 0;
}

.course-main h2 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  margin-top: var(--space-2xl);
}

.course-main h2:first-child {
  margin-top: 0;
}

.course-main p,
.course-main li {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

.course-main ul {
  list-style: none;
  padding: 0;
}

.course-main ul li {
  padding-left: 1.5em;
  position: relative;
}

.course-main ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
}

/* Course sidebar */
.course-sidebar .sidebar-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}

.sidebar-card h3 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

.sidebar-card .detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.sidebar-card .detail-row:last-of-type {
  border-bottom: none;
}

.sidebar-card .detail-label {
  color: var(--color-text-light);
}

.sidebar-card .detail-value {
  font-weight: var(--font-weight-semibold);
}

.sidebar-card .btn {
  width: 100%;
  margin-top: var(--space-lg);
}

@media (max-width: 768px) {
  .course-content {
    grid-template-columns: 1fr;
  }
  .course-sidebar .sidebar-card {
    position: static;
  }
}

/* ============================================
   CONTACT PAGE — full image with glass overlay
   ============================================ */
.contact-hero {
  display: grid;
  grid-template-areas: "hero";
  min-height: 100vh;
}

.contact-hero > * {
  grid-area: hero;
}

.contact-hero .page-hero-img {
  width: 100%;
  height: 100%;
}

.contact-hero .page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100vh;
}

.contact-hero .contact-hero-overlay {
  z-index: 2;
  background: rgba(26, 26, 46, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  display: flex;
  align-items: flex-start;
}

.contact-hero .breadcrumb {
  font-size: 0.8125rem;
  opacity: 0.6;
  margin-bottom: var(--space-md);
}

.contact-hero .breadcrumb a {
  color: var(--color-white);
  opacity: 0.8;
}

.contact-hero h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.contact-hero .subtitle {
  font-size: 1.125rem;
  opacity: 0.8;
  margin-bottom: var(--space-2xl);
  font-weight: var(--font-weight-light);
}

/* Override form styles for dark/glass background */
.contact-hero .form-group label {
  color: var(--color-white);
}

.contact-hero .form-group input,
.contact-hero .form-group select,
.contact-hero .form-group textarea {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.contact-hero .form-group input::placeholder,
.contact-hero .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-hero .form-group input:focus,
.contact-hero .form-group select:focus,
.contact-hero .form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.contact-hero .contact-info-col h2 {
  color: var(--color-white);
}

.contact-hero .contact-info-col h3 {
  color: var(--color-white) !important;
}

.contact-hero .contact-info-col p,
.contact-hero .contact-info-col a {
  color: rgba(255, 255, 255, 0.85);
}

.contact-hero .contact-form-wrap h2 {
  color: var(--color-white) !important;
}

.contact-hero #formSuccess {
  background: rgba(37, 99, 235, 0.2) !important;
}

.contact-hero #formSuccess p {
  color: var(--color-white) !important;
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: auto;
  }
  .contact-hero .page-hero-img img {
    min-height: 600px;
  }
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

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

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

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-image: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(26,26,46,0.88) 100%),
                     url('/img/hero-training.jpg?v=20260414b');
  background-size: cover;
  background-position: center bottom;
  color: rgba(255,255,255,0.8);
  padding-top: var(--space-3xl);
  position: relative;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8125rem;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.8;
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-white);
}

.contact-list li {
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  font-size: 0.8125rem;
  opacity: 0.6;
  text-align: center;
}

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

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   GRADIENT ANIMATION (from original)
   ============================================ */
@keyframes gradient1 {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradient2 {
  0% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-lg) var(--space-xl);
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.faq-item summary:hover {
  background: var(--color-bg-alt);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: var(--font-weight-light);
  color: var(--color-text-light);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
}

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

.faq-item p {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS (CSS-only)
   ============================================ */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-scale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Only animate if browser supports scroll-driven animations AND user allows motion */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .course-card,
    .icon-box,
    .testimonial-card,
    .section-header,
    .sidebar-card,
    .faq-item {
      animation: reveal-scale linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }

    .course-card:nth-child(2) { animation-delay: 0.05s; }
    .course-card:nth-child(3) { animation-delay: 0.1s; }
    .course-card:nth-child(4) { animation-delay: 0.15s; }

    .icon-box:nth-child(2) { animation-delay: 0.05s; }
    .icon-box:nth-child(3) { animation-delay: 0.1s; }

    .testimonial-card:nth-child(2) { animation-delay: 0.05s; }
    .testimonial-card:nth-child(3) { animation-delay: 0.1s; }

    .location-section,
    .contact-grid,
    .trusted-by {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
