@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   1. Theme Variables & Base Resets
   ========================================================================== */
:root {
  /* Colors */
  --color-primary-dark: #0f172a; /* Slate 900 */
  --color-secondary-dark: #1e293b; /* Slate 800 */
  --color-text-main: #334155; /* Slate 700 */
  --color-text-light: #64748b; /* Slate 500 */
  --color-bg-white: #ffffff;
  --color-bg-light: #f8fafc; /* Slate 50 */
  --color-border: #e2e8f0; /* Slate 200 */
  
  /* KNX Green Branding */
  --color-knx-green: #009F4D;
  --color-knx-green-hover: #00833e;
  --color-knx-green-light: rgba(0, 159, 77, 0.06);
  --color-knx-green-glow: rgba(0, 159, 77, 0.15);
  
  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(0, 159, 77, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* Common Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* ==========================================================================
   2. Typography & Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header.left-aligned {
  text-align: left;
  margin-left: 0;
}

.badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  background-color: var(--color-knx-green-light);
  color: var(--color-knx-green);
  border-radius: 50px;
  border: 1px solid rgba(0, 159, 77, 0.15);
  margin-bottom: 16px;
}

.badge-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  font-weight: 400;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .section-header {
    margin-bottom: 40px;
  }
}

/* ==========================================================================
   3. Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-knx-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 159, 77, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-knx-green-hover);
  box-shadow: 0 6px 20px rgba(0, 159, 77, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary-dark);
  background-color: rgba(15, 23, 42, 0.02);
  transform: translateY(-2px);
}

.btn-white {
  background-color: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: var(--color-bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   4. Sticky Navigation Bar
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  gap: 8px;
}

.logo-dot {
  width: 12px;
  height: 12px;
  background-color: var(--color-knx-green);
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-knx-green);
  transition: var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-primary-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-actions .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Burger Menu Trigger */
.burger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1010;
  padding: 8px;
}

.burger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary-dark);
  margin: 5px 0;
  transition: var(--transition-normal);
}

@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 20px;
    transition: var(--transition-slow);
    z-index: 1005;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .burger {
    display: block;
  }
  
  .burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .nav-actions {
    display: none; /* Hide desktop button, it will be embedded in mobile menu or floating */
  }

  .nav-menu .nav-actions-mobile {
    display: block;
    width: 100%;
    margin-top: 15px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
  }

  .nav-menu .nav-actions-mobile .btn {
    width: 100%;
  }
}

/* Overlay for Mobile Menu */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
  padding: calc(var(--header-height) + 60px) 0 80px;
  background-color: var(--color-bg-light);
  overflow: hidden;
  position: relative;
}

/* Decorative background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, var(--color-knx-green-glow) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-primary-dark) 60%, var(--color-knx-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-main);
  margin-bottom: 36px;
  font-weight: 400;
}

/* Inline stats features in Hero */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
}

.hero-feature-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-knx-green);
}

.hero-feature-lbl {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: var(--color-primary-dark);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-knx-green);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-floating-badge .price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-knx-green);
}

.hero-floating-badge .label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image-wrapper {
    order: -1;
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--header-height) + 30px) 0 60px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-features {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
  }
  .hero-feature-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   6. Quick Overview Section
   ========================================================================== */
.overview {
  background-color: var(--color-bg-white);
  padding: 80px 0;
  position: relative;
  z-index: 10;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.overview-card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--color-knx-green);
  transition: var(--transition-normal);
}

.overview-card:hover {
  transform: translateY(-4px);
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 159, 77, 0.15);
}

.overview-card:hover::before {
  height: 100%;
}

.overview-card .num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-knx-green);
  opacity: 0.6;
  margin-bottom: 12px;
  display: block;
}

.overview-card .title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.overview-card .desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Fee spotlight banner underneath overview cards */
.fee-spotlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--color-knx-green-light);
  border: 1px solid rgba(0, 159, 77, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 16px 24px;
  max-width: 500px;
  margin: 0 auto;
}

.fee-spotlight span {
  font-size: 0.95rem;
  font-weight: 500;
}

.fee-spotlight .price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-knx-green);
}

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

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

/* ==========================================================================
   7. About Section
   ========================================================================== */
.about {
  background-color: var(--color-bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--color-text-main);
}

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

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-highlight-card {
  background-color: var(--color-bg-white);
  padding: 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.about-highlight-card .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background-color: var(--color-knx-green-light);
  color: var(--color-knx-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.about-highlight-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.about-highlight-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   8. Why Learn KNX Section
   ========================================================================== */
.why-knx {
  background-color: var(--color-bg-white);
}

.why-knx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 159, 77, 0.2);
}

.why-card .icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  background-color: var(--color-knx-green-light);
  color: var(--color-knx-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

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

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

/* ==========================================================================
   9. Timeline Section (4-Day Training Journey)
   ========================================================================== */
.journey {
  background-color: var(--color-bg-light);
  position: relative;
}

/* Desktop Horizontal Timeline Styles */
.timeline-container {
  position: relative;
  margin-top: 60px;
}

.timeline-line {
  position: absolute;
  top: 40px;
  left: 10%;
  width: 80%;
  height: 4px;
  background-color: var(--color-border);
  z-index: 1;
}

.timeline-line-fill {
  height: 100%;
  width: 0%; /* Animates on scroll via JS */
  background-color: var(--color-knx-green);
  transition: width var(--transition-slow);
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.timeline-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 4px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-light);
  transition: all var(--transition-normal);
}

.timeline-step.active .timeline-dot {
  border-color: var(--color-knx-green);
  background-color: var(--color-knx-green);
  color: #ffffff;
  box-shadow: 0 0 0 6px var(--color-knx-green-glow);
}

.timeline-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  display: inline-block;
}

.timeline-label.online {
  background-color: rgba(14, 165, 233, 0.1);
  color: #0284c7;
}

.timeline-label.offline {
  background-color: var(--color-knx-green-light);
  color: var(--color-knx-green);
}

.timeline-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-step-day {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  font-weight: 500;
}

.timeline-content-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.timeline-step.active .timeline-content-card {
  border-color: rgba(0, 159, 77, 0.2);
  box-shadow: var(--shadow-md);
}

.timeline-content-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-content-card li {
  font-size: 0.85rem;
  color: var(--color-text-main);
  padding-left: 16px;
  position: relative;
}

.timeline-content-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-knx-green);
}

/* Timeline Responsive (Mobile Vertical) */
@media (max-width: 900px) {
  .timeline-line {
    top: 0;
    left: 24px;
    width: 4px;
    height: 90%;
  }

  .timeline-line-fill {
    width: 100%;
    height: 0%; /* Animates height instead of width */
  }

  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 20px;
  }

  .timeline-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
  }

  .timeline-dot {
    margin-bottom: 0;
    flex-shrink: 0;
    z-index: 5;
  }

  .timeline-step-info {
    flex-shrink: 0;
    width: 150px;
  }

  .timeline-content-card {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .timeline-step {
    flex-direction: column;
    gap: 12px;
  }
  
  .timeline-step-info {
    width: auto;
    padding-left: 40px;
    margin-top: -30px;
  }
  
  .timeline-dot {
    width: 28px;
    height: 28px;
    border-width: 3px;
  }

  .timeline-line {
    left: 12px;
  }
  
  .timeline-content-card {
    margin-left: 40px;
    width: calc(100% - 40px);
  }
}

/* ==========================================================================
   10. Theory + Practical Section (Split-Screen Dashboard)
   ========================================================================== */
.theory-practical {
  background-color: var(--color-bg-white);
  padding: 80px 0;
}

.split-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.dashboard-panel {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.dashboard-panel-header {
  padding: 32px 32px 16px;
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-panel.online-panel .dashboard-panel-header {
  border-top: 4px solid #0ea5e9;
}

.dashboard-panel.offline-panel .dashboard-panel-header {
  border-top: 4px solid var(--color-knx-green);
}

.dashboard-panel-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.dashboard-panel-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.online-panel .dashboard-panel-meta {
  background-color: rgba(14, 165, 233, 0.1);
  color: #0284c7;
}

.offline-panel .dashboard-panel-meta {
  background-color: var(--color-knx-green-light);
  color: var(--color-knx-green);
}

.dashboard-panel-body {
  padding: 32px;
  flex-grow: 1;
  background-color: #ffffff;
}

.dashboard-panel-desc {
  font-size: 1rem;
  color: var(--color-text-main);
  margin-bottom: 24px;
}

.dashboard-features-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.dashboard-features-list li {
  font-size: 0.9rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-features-list li svg {
  flex-shrink: 0;
}

.online-panel .dashboard-features-list li svg {
  color: #0ea5e9;
}

.offline-panel .dashboard-features-list li svg {
  color: var(--color-knx-green);
}

@media (max-width: 900px) {
  .split-dashboard {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   11. Practical Training Section
   ========================================================================== */
.practical {
  background-color: var(--color-bg-light);
}

.practical-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.practical-image-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
}

.practical-image-container img {
  width: 100%;
  display: block;
}

.practical-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.practical-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.practical-card:hover {
  border-color: rgba(0, 159, 77, 0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.practical-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.practical-card p {
  font-size: 0.825rem;
  color: var(--color-text-light);
}

@media (max-width: 1024px) {
  .practical-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .practical-image-container {
    max-width: 500px;
    margin: 0 auto;
  }
}

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

/* ==========================================================================
   12. Certification Section
   ========================================================================== */
.certification {
  background-color: var(--color-bg-white);
}

.certification-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.cert-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0 40px;
}

.cert-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-primary-dark);
}

.cert-checklist-item svg {
  color: var(--color-knx-green);
  flex-shrink: 0;
}

.cert-image-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  background-color: var(--color-bg-light);
}

.cert-image-container img {
  width: 100%;
}

@media (max-width: 992px) {
  .certification-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cert-image-container {
    max-width: 500px;
    margin: 0 auto;
    order: -1;
  }
}

/* ==========================================================================
   13. Who Should Attend Section
   ========================================================================== */
.who-attend {
  background-color: var(--color-bg-light);
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.who-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
}

.who-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 159, 77, 0.15);
}

.who-card .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-knx-green-light);
  color: var(--color-knx-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.who-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.who-footer {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.who-footer strong {
  color: var(--color-knx-green);
}

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

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

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

/* ==========================================================================
   14. Skills You Will Gain
   ========================================================================== */
.skills {
  background-color: var(--color-bg-white);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--border-radius-sm);
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.skill-item:hover {
  background-color: #ffffff;
  border-color: rgba(0, 159, 77, 0.15);
  box-shadow: var(--shadow-sm);
}

.skill-item svg {
  color: var(--color-knx-green);
  flex-shrink: 0;
}

.skill-item span {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-primary-dark);
}

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

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

/* ==========================================================================
   15. Course Fee / Pricing Section
   ========================================================================== */
.pricing {
  background-color: var(--color-bg-light);
  position: relative;
}

.pricing-container {
  max-width: 550px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--color-knx-green);
}

.pricing-card-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.pricing-amount-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 12px;
}

.pricing-val {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
}

.pricing-gst {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-left: 8px;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0 40px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
  text-align: left;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}

.pricing-features-list li svg {
  color: var(--color-knx-green);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-limited-seats {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-knx-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .pricing-card {
    padding: 32px 24px;
  }
  .pricing-val {
    font-size: 3rem;
  }
}

/* ==========================================================================
   16. Registration Section
   ========================================================================== */
.register {
  background-color: var(--color-bg-white);
}

.register-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.register-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.register-info p {
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.register-contact-methods {
  display: grid;
  gap: 20px;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 20px;
  transition: all var(--transition-normal);
}

.contact-method-card:hover {
  border-color: rgba(0, 159, 77, 0.15);
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
}

.contact-method-card .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background-color: var(--color-knx-green-light);
  color: var(--color-knx-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-card .lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-light);
  font-weight: 600;
}

.contact-method-card .val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* Form Styling */
.register-form-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--color-border);
  background-color: #ffffff;
  color: var(--color-primary-dark);
  outline: none;
  transition: all var(--transition-normal);
}

.form-input:focus {
  border-color: var(--color-knx-green);
  box-shadow: 0 0 0 3px var(--color-knx-green-glow);
}

.form-input.error {
  border-color: #ef4444;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 4px;
  font-weight: 500;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
}

.register-form-card .btn {
  width: 100%;
  margin-top: 10px;
}

/* Success State Overlay */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.form-success-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-knx-green-light);
  color: var(--color-knx-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.form-success-overlay h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.form-success-overlay p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  max-width: 320px;
}

@media (max-width: 992px) {
  .register-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .register-form-card {
    padding: 24px;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================================
   17. FAQ Accordion Section
   ========================================================================== */
.faq {
  background-color: var(--color-bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item:hover,
.faq-item.active {
  border-color: rgba(0, 159, 77, 0.15);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 24px 32px;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 20px;
}

.faq-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  transition: color var(--transition-fast);
}

.faq-trigger:hover .faq-title {
  color: var(--color-knx-green);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.faq-item.active .faq-icon {
  background-color: var(--color-knx-green);
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) cubic-bezier(0, 1, 0, 1); /* Custom transition for height */
}

.faq-body {
  padding: 0 32px 24px;
  font-size: 0.95rem;
  color: var(--color-text-main);
  border-top: 1px solid transparent;
}

.faq-item.active .faq-content {
  max-height: 1000px;
  transition: max-height var(--transition-normal) ease-in-out;
}

.faq-item.active .faq-body {
  border-top-color: var(--color-border);
}

@media (max-width: 600px) {
  .faq-trigger {
    padding: 16px 20px;
  }
  .faq-body {
    padding: 0 20px 16px;
  }
}

/* ==========================================================================
   18. Final CTA Section
   ========================================================================== */
.final-cta {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--color-knx-green-glow) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.final-cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.final-cta h2 {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.final-cta p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.final-cta-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-knx-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.final-cta-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.final-cta-price span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  font-weight: 400;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .final-cta h2 {
    font-size: 2.2rem;
  }
  .final-cta-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .final-cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================================================================
   19. Footer
   ========================================================================== */
.footer {
  background-color: #090d16;
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social-link:hover {
  background-color: var(--color-knx-green);
  border-color: var(--color-knx-green);
  transform: translateY(-2px);
}

.footer-nav h4,
.footer-contact h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-nav-menu {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-nav-menu a {
  font-size: 0.9rem;
}

.footer-nav-menu a:hover {
  color: var(--color-knx-green);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  color: var(--color-knx-green);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-copyright-row {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ==========================================================================
   20. Floating & Mobile Action Elements
   ========================================================================== */
.floating-actions-desktop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.floating-whatsapp {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
  .floating-actions-desktop {
    bottom: 20px;
    right: 20px;
  }
}

/* ==========================================================================
   21. Scroll Entry Animations (Reveal On Scroll)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   22. Inner Page Headers (Multi-page Layout)
   ========================================================================== */
.page-header {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  padding: calc(var(--header-height) + 50px) 0 50px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: radial-gradient(circle, var(--color-knx-green-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-header-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.page-header-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.page-header-breadcrumbs a {
  color: rgba(255, 255, 255, 0.6);
}

.page-header-breadcrumbs a:hover {
  color: var(--color-knx-green);
}

.page-header-breadcrumbs .separator {
  color: rgba(255, 255, 255, 0.3);
}

.page-header-breadcrumbs span.current {
  color: var(--color-knx-green);
}

@media (max-width: 768px) {
  .page-header {
    padding: calc(var(--header-height) + 30px) 0 30px;
  }
  .page-header-title {
    font-size: 2rem;
  }
}

