@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary-navy: #1F3C88;
  --primary-orange: #F58220;
  --accent-gold: #F4C542;
  --dark-bg: #0D1B2A;
  --light-bg: #F8F9FA;
  --text-dark: #1E293B;
  --text-light: #F1F5F9;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Added padding-bottom safety buffer so footer text is never hidden by the sticky bar */
  padding-bottom: 90px; 
}

body.dark-theme {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

/* Premium Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #e06e12;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 130, 32, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
  background-color: var(--primary-navy);
  transform: translateY(-2px);
}

/* Global Sticky Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.9);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  backdrop-filter: blur(12px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
    color: white;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.nav-logo span {
    color: var(--primary-orange);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--primary-orange);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0D1B2A 0%, #1F3C88 100%);
  color: white;
  padding: 140px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: #CBD5E1;
  margin-bottom: 36px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  background: #112240;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper img {
  width: 100%;
  display: block;
}

/* Responsive Course Catalog Grid */
.catalog-section {
  padding: 80px 0;
}

.filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 280px;
  padding: 14px 20px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 16px;
}

.category-select {
  padding: 14px 20px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background-color: white;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.course-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Global Floating Elements */
.whatsapp-float {
  position: fixed;
  bottom: 85px; /* Shifted upward from 32px to clear the fixed sticky banner below it */
  right: 24px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Sticky Action Ribbon */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 27, 42, 0.95);
  border-top: 2px solid var(--primary-orange);
  padding: 14px 0; /* Optimized from 16px to prevent clipping issues */
  z-index: 999;
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.sticky-cta-bar.visible {
  transform: translateY(0);
}

.sticky-cta-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Lead Capture Component */
.form-section {
  padding: 80px 0;
  background-color: #EDF2F7;
}

.lead-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
}

/* Footer styling */
footer {
  background-color: #060B11;
  color: #94A3B8;
  padding: 64px 0 32px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-heading {
  color: white;
  margin-bottom: 20px;
  font-size: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: white;
}

/* Mobile Responsiveness Rules */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav-links {
    display: none; 
  }
}

/* Small Viewports (Smartphones & Small Tablets) */
@media (max-width: 600px) {
  body {
    padding-bottom: 140px; /* Expands buffer space for smaller devices when the banner elements stack vertically */
  }

  .sticky-cta-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .sticky-cta-wrapper span {
    font-size: 12px !important;
    line-height: 1.4;
  }

  .sticky-cta-wrapper .btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 12px !important;
  }

  .whatsapp-float {
    bottom: 155px; /* Automatically pushes the WhatsApp button further upward on narrow phone profiles to keep it safe from stacked buttons */
    right: 16px;
    width: 52px;
    height: 52px;
  }
}