/* ========== Root Variables ========== */
:root {
    --primary-color: #003e67;
    --secondary-color: #495057;
    --accent-color: #0296ce;
  
    --light-bg: #ffffff;
    --dark-text: #111111;
    --light-text: #f1f1f1;
    --light-text-off: #e5e5e5;
  
    --border-color: #ced4da;
  
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    --card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
  }

  :root {
    --header-h-mobile: 100px; /* same as your fixed header height on mobile */
  }  
  
  /* ========== Reset & Base ========== */
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--font-primary);
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  a:hover {
    color: #0044aa; /* slightly darker */
  }
  
  /* ========== Layout Helpers ========== */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .mt-3 { margin-top: 1.5rem; }
  .text-center { text-align: center; }
  
  /* ========== Typography ========== */
  h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    margin-bottom: 0.8em;
  }
  
  h1 { font-size: 2.8rem; line-height: 1.2; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.5rem; }
  
  p {
    margin-bottom: 1em;
    color: #555;
  }
  
  /* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg {
  font-size: 1.1rem;
  padding: 15px 32px;
}

.btn-full-width {
  display: block;
  width: 100%;
}

/* Primary Button */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text);
}
.btn-primary:hover {
  background-color: #004bb5;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 86, 210, 0.3);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--accent-color);
  color: var(--light-text);
}
.btn-secondary:hover {
  background-color: #007c6e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 158, 136, 0.3);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* ========== Hero CTA Layout ========== */
.hero-cta {
  display: flex;
  flex-wrap: nowrap; /* prevent early wrapping */
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap; /* fallback for smaller screens */
  margin-top: 1.5rem;
  flex-shrink: 1;
  flex-grow: 0;
  max-width: 100%;
}

.hero-cta .btn {
  padding: 10px 20px;
  font-size: 0.95rem;
  min-width: auto;
  flex: 0 1 auto;
  white-space: nowrap;
}

  /* ========== Section Titles ========== */
  .section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-text);
  }
  .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: #666;
    font-size: 1.1rem;
  }
  
  /* ========== Header ========== */
  .page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--light-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
    line-height: 0; /* Remove image spacing */
  }
  
  .page-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
  }
  
  .page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }
  
  .header-logo {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  .header-logo img {
    height: 150px;
    display: block;
    margin: 0;
  }
  
  .header-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
  }
  
  .header-nav li a {
    color: var(--dark-text);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
  }
  
  .header-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
  }
  
  .header-nav li a:hover::after,
  .header-nav li a.active::after {
    width: 100%;
  }
  
  .header-actions .btn {
    margin-left: 1rem;
  }
  
  .mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-text);
    cursor: pointer;
  }  

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--light-text);
    padding: 160px 0 100px;
    padding-top: 150px;
    background: linear-gradient(
      120deg,
      var(--primary-color),
      var(--accent-color),
      #4e54c8,
      #8f94fb
    );
    background-size: 400% 400%;
    animation: cloudGradient 30s ease infinite;
    max-height: 80vh;
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../images/hero-background.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    transform: scale(1.05);
    animation: heroBgFloat 60s linear infinite;
  }
  
  /* Container Layout */
  .hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
  }
  
  /* Text Content */
  .hero-content {
    flex: 1 1 400px;
    max-width: 48%;
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-text);
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
  }
  
  /* CTA Buttons */
  .hero-cta .btn {
    margin: 0 1rem 1rem 0;
  }
  
  .hero-cta .btn-primary {
    background-color: var(--light-text);
    color: var(--primary-color);
    border: 2px solid var(--light-text);
  }
  .hero-cta .btn-primary:hover {
    background-color: transparent;
    color: var(--light-text);
  }
  
  .hero-cta .btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid rgba(255, 255, 255, 0.7);
  }
  .hero-cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--light-text);
  }
  
  /* Video Section */
  .hero-video-wrapper {
    height: 600px;
    max-width: 300px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transform: rotate(-10deg);
    opacity: 0;
    animation: tiltInRight 0.8s ease-out forwards 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1;
  }
  
  .hero-video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    position: relative;
  }  
  
  /* Optional Cloud Overlay */
  .hero-cloud-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: url("../images/clouds.png") repeat-x;
    background-size: cover;
    opacity: 0.15;
    animation: floatClouds 60s linear infinite;
    pointer-events: none;
    filter: blur(2px);
    mix-blend-mode: screen;
    z-index: 2;
  }
  
  /* ========== Animations ========== */
  @keyframes cloudGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  @keyframes heroBgFloat {
    0% { transform: scale(1.05) translateY(0); }
    100% { transform: scale(1.05) translateY(-2%); }
  }
  
  @keyframes tiltInRight {
    to {
      transform: rotate(10deg);
      opacity: 1;
    }
  }
  
  @keyframes floatClouds {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
  }
  
  /* ========== Responsive ========== */
  @media (max-width: 768px) {
    .hero-section .container {
      flex-direction: column;
      text-align: center;
    }
  
    .hero-content {
      max-width: 100%;
    }
  
    .hero-video-wrapper {
      height: 350px;
      transform: none;
      animation: none;
    }
  
    .hero-content h1 {
      font-size: 2.4rem;
    }
  
    .hero-content p {
      font-size: 1rem;
    }
  }
 
  
.try-free-assessment-section {
  background-color: #f8f9fa;
  padding: 60px 0;
  text-align: center;
}

.try-free-assessment-section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.try-free-assessment-section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  color: var(--secondary-color);
}

.assessment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.assessment-actions .btn {
  min-width: 200px;
}


/* Partners Section */
.partners-section {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.partners-title {
    text-align: center;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-scroll-wrapper {
    overflow-x: hidden;
    white-space: nowrap;
    position: relative;
}

.partner-logos {
    display: flex;
    gap: 40px;
    animation: scrollPartners 30s linear infinite;
}

.partner-logo {
    height: 50px;
    flex: 0 0 auto;
    opacity: 0.9;
    transition: transform 0.3s, opacity 0.3s;
}

.partner-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
  }
  
  .features-grid.compact-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
  }
  
  .feature-item {
    flex: 1 1 33.333%; /* Fits 4 per row on desktop */
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 220px;
  }
  
  .feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
  }
  
  .feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 123, 255, 0.08);
    border-radius: 50%;
    width: 64px;
    height: 64px;
  }
  
  .feature-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
  }
  
  .feature-item p {
    font-size: 0.92rem;
    color: var(--text-muted, #666);
    line-height: 1.4;
    margin: 0;
  }
  
  /* Responsive fallback */
  @media (max-width: 1024px) {
    .feature-item {
      flex: 1 1 45%;
    }
  }
  
  @media (max-width: 600px) {
    .feature-item {
      flex: 1 1 100%;
    }
  
    .features-grid.compact-row {
      flex-direction: column;
      align-items: center;
    }
  }
  

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
}
.step {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    position: relative;
}
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.step-arrow {
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.5;
    margin-top: 60px; /* Align with text */
}
.step-arrow i {
    display: block; /* for potential animation */
}

.pricing-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.pricing-card {
  flex: 1 1 22%;
  min-width: 230px;
  max-width: 350px;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 0.9rem;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
}

.pricing-card.popular {
  border-color: var(--primary-color);
  border-width: 2px;
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-6px);
}

.badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card .icon {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pricing-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0.6rem 0;
}

.features {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  text-align: left;
  flex-grow: 1;
}

.features li {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  padding-left: 18px;
  position: relative;
}

.features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.7rem;
}

.features li.feature-group::before {
  content: none;
}

.features .feature-group {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.85rem;
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid #ddd;
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-icon {
  cursor: help;
  font-size: 0.75rem;
  color: var(--accent-color);
  margin-left: 4px;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 160px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 5px;
  padding: 0.4rem 0.6rem;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  font-size: 0.75rem;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.pricing-card .btn {
  margin-top: auto;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}
  
  /* Responsive: stack on mobile */
  @media (max-width: 1024px) {
    .pricing-card {
      flex: 1 1 45%;
    }
  }
  @media (max-width: 600px) {
    .pricing-card {
      flex: 1 1 100%;
    }
    .pricing-cards {
      flex-direction: column;
      align-items: center;
    }
  }  


/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
  }
  
  .glide__slides {
    display: flex;
    gap: 2rem;
  }
  
  .testimonial-item {
    background-color: #fefefe;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 300px;
    width: 100%;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .testimonial-item:nth-child(odd) {
    background-color: #f4f9ff; /* soft blue */
  }
  .testimonial-item:nth-child(even) {
    background-color: #fffaf5; /* soft peach */
  }
  
  .testimonial-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
  }
  
  .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
  }
  
  .testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: #777;
  }   

/* Blog Snippet Section */
.blog-snippet-section {
    padding: 80px 0;
}
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.blog-card {
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-content {
    padding: 1.5rem;
}
.blog-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}
.blog-author {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #555;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; 
    overflow: hidden;
}

/* Final CTA Section */
.final-cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    padding: 80px 0;
    text-align: center;
}
.final-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.final-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #d6ecff;
}

.final-cta-section .btn-primary {
    background-color: var(--light-text);
    color: var(--primary-color);
    border-color: var(--light-text);
    font-size: 1.2rem;
    padding: 18px 40px;
}
.final-cta-section .btn-primary:hover {
    background-color: transparent;
    color: var(--light-text);
}

/* Footer */
.page-footer {
    background-color: #222; /* Darker footer */
    color: #ccc;
    padding: 60px 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-logo-section .footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 1rem;
}
.footer-logo-section img {
    width: 80px;
    margin-right: 10px;
    filter: brightness(0) invert(1); /* Make logo white if it's dark */
}
.footer-logo-section p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #aaa;
}
.social-links a {
    color: #aaa;
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color);
}
.footer-links h4 {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li a {
    color: #aaa;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}
.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.footer-newsletter input[type="email"] {
    width: calc(100% - 110px);
    padding: 10px;
    border: 1px solid #555;
    background-color: #333;
    color: var(--light-text);
    border-radius: 5px 0 0 5px;
}
.footer-newsletter button {
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    border: none;
    margin-left: -5px;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #888;
}


/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}
.modal.show {
    display: flex;
}
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 650px; /* Max width for registration form */
    position: relative;
    max-height: 90vh; /* Max height */
    overflow-y: auto; /* Scroll for content */
}
.animate-modal {
    animation: fadeInModal 0.4s ease-out;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    line-height: 1;
}
.close-modal-btn:hover,
.close-modal-btn:focus {
    color: #333;
}
.modal-content h2, .modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}


/* Compact Welcome Modal Styles */
#welcomeModal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}

#welcomeModal.show {
  display: flex;
}

.welcome-modal-content {
  background-color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--card-shadow);
}

.welcome-modal-img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.welcome-heading {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.welcome-subtext {
  font-size: 0.95rem;
  color: var(--text-muted, #555);
  margin-bottom: 1rem;
}

#closeWelcomeModal {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.25rem;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
}

.subscribe-form input,
.subscribe-form select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.subscribe-form-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #ccc;
}

.subscribe-form-wrapper {
  margin-top: 1rem;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}

.subscribe-text {
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--dark-text, #333);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

#showSubscribeFormBtn {
  margin-top: 0.5rem;
}


#subscribeFormSection {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#subscribeFormSection.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


/* Registration Form Specifics in Modal */
#registerForm .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
#registerForm .form-row .form-group {
    flex: 1;
    margin-bottom: 0; /* Remove default margin if inside form-row */
}
#registerForm .form-group {
    margin-bottom: 1rem;
}
#registerForm label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}
#registerForm input[type="text"],
#registerForm input[type="email"],
#registerForm input[type="password"],
#registerForm input[type="number"],
#registerForm select,
#registerForm input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
#registerForm input[type="text"]:focus,
#registerForm input[type="email"]:focus,
#registerForm input[type="password"]:focus,
#registerForm input[type="number"]:focus,
#registerForm select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}
#consultantUploads {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}
.consultant-info {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.payment-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.payment-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: left;
}
.StripeElement {
    background-color: white;
    padding: 10px 12px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}
#card-errors {
    color: #fa755a; /* Stripe error color */
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
#registerForm button[type="submit"] {
    margin-top: 1.5rem;
}
.modal-login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Success Modal */
#successModal .modal-content {
    text-align: center;
    max-width: 450px;
}
.success-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
#successModalDismiss {
    margin-top: 1rem;
}


/* Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.fadeInUp {
    transform: translateY(30px);
}
.animate-on-scroll.slideInRight {
    transform: translateX(50px);
}
.animate-on-scroll.slideInLeft {
    transform: translateX(-50px);
}
.animate-on-scroll.scaleUp {
    transform: scale(0.9);
}

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

.glide__arrows {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.glide__arrow {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.glide__arrow:hover {
  background-color: #004bb5;
}

#testimonialCarousel {
  position: relative;
}

.glide__arrow--left,
.glide__arrow--right {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
}

.glide__arrow--left {
  left: -20px;
}

.glide__arrow--right {
  right: -20px;
}


/* ========== Tablet (992px and below) ========== */
@media (max-width: 992px) {
    /* Header Adjustments */
    .page-header {
      height: 90px;
    }
  
    .page-header .container {
      padding: 0 1rem;
    }
  
    .header-logo img {
      height: 100px;
      width: auto;
    }
  
    .header-nav {
      display: none;
      position: absolute;
      top: 90px;
      left: 0;
      width: 100%;
      background-color: var(--light-text);
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
      padding: 1.5rem 0;
      z-index: 1000;
    }
  
    .header-nav.active {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .header-nav ul {
      flex-direction: column;
      gap: 1rem;
      width: 100%;
      text-align: center;
    }
  
    .header-nav li {
      margin: 0.5rem 0;
    }
  
    .mobile-nav-toggle {
      display: block;
      font-size: 1.8rem;
      background: none;
      border: none;
      color: var(--primary-color);
      cursor: pointer;
    }
  
    /* Show auth buttons in mobile menu */
    .header-actions {
      display: none;
    }
  
    .header-nav.active .header-actions {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      width: 80%;
      margin-top: 1.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(0,0,0,0.1);
    }
  
    .header-nav.active .header-actions .btn {
      width: 100%;
      max-width: 200px;
      margin: 0 auto;
    }
  
    /* Hero Section */
    .hero-section {
      padding-top: 90px;
      max-height: none;
    }
  
    .hero-section .container {
      flex-direction: column;
      text-align: center;
      gap: 1.5rem;
      padding: 2rem 0;
    }
  
    .hero-content {
      max-width: 100%;
      padding: 0 1rem;
      margin-bottom: 0;
    }
  
    .hero-content h1 {
      font-size: 2.5rem;
    }
  
    .hero-video-wrapper {
      width: 100%;
      height: 400px;
      transform: none;
      animation: none;
      margin: 0 auto;
      border-radius: 12px;
      overflow: hidden;
    }
  
    .hero-cta {
      margin: 1rem 0;
      justify-content: center;
    }
  
    /* Features Grid */
    .features-grid.compact-row {
      grid-template-columns: 1fr 1fr;
    }
  
    /* Steps Section */
    .steps-container {
      flex-direction: column;
      align-items: center;
    }
  
    .step-arrow {
      transform: rotate(90deg);
      margin: 1rem 0;
    }
  
    /* Pricing Cards */
    .pricing-cards {
      grid-template-columns: 1fr 1fr;
    }
  
    /* Testimonials */
    .glide__track {
      padding: 0 1rem;
    }
  }
  
/* ========== Mobile (768px and below) ========== */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}


@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    padding: 100px 1rem 60px;
    background: linear-gradient(140deg, #003e67, #0076b6, #00bcd4, #4facfe);
    background-size: 300% 300%;
    animation: mobileHeroGlow 12s ease infinite;
    position: relative;
    overflow: hidden;
  }

  .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../images/hero-background-mobile.jpg");
    background-blend-mode: overlay;
    background-position: center center;
    background-size: cover;
    opacity: 0.12; /* Reduced from 0.25 */
    filter: blur(2px); /* Reduced blur for clarity */
    z-index: 0;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 0.5rem;
    z-index: 2;
    position: relative;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }

  .hero-content p {
    font-size: 1.05rem;
    color: #e6f1f7;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
  }

  /* Branded Primary - Clean Blue */
  .hero-cta .btn-primary {
    background-color: #004b9b;
    border-color: #004b9b;
    color: #fff;
  }
  .hero-cta .btn-primary:hover {
    background-color: #003e67;
    border-color: #003e67;
    transform: scale(1.03);
  }

  /* Transparent Secondary */
  .try-free-assessment-section {
    background-color: #fff4e6; /* soft pastel orange */
    padding: 60px 0;
    text-align: center;
  }

  .try-free-assessment-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #cc6600; /* deep orange tone for contrast */
  }

  .try-free-assessment-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #aa5500; /* warm brownish-orange for readable body text */
  }

  /* Custom "Try Free Assessment" button */
  .btn-free {
    background-color: #f77402; /* soft amber */
    border: 2px solid #f77402;
    color: #000000;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 3px 8px rgba(246, 166, 35, 0.25);
  }

  .btn-free:hover {
    background-color: #f77402; /* slightly deeper tone on hover */
    border-color: #f77402;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 142, 0, 0.35);
  }

  .assessment-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .assessment-actions .btn {
    width: 100%;
    max-width: 320px;
    font-size: 1rem;
    padding: 14px 22px;
  }
}

/* Mobile animation */
@keyframes mobileHeroGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
  
  /* ========== Small Mobile (576px and below) ========== */
  @media (max-width: 576px) {
    /* Header */
    .header-logo img {
      height: 75px;
    }
  
    /* Hero Section */
    .hero-content h1 {
      font-size: 2rem;
    }
  
    .hero-content p {
      font-size: 1rem;
    }
  
    .hero-video-wrapper {
      height: 300px;
    }
  
    /* Typography */
    h1 {
      font-size: 1.8rem;
    }
  
    h2 {
      font-size: 1.6rem;
    }
  
    /* Buttons */
    .btn {
      padding: 0.75rem 1.25rem;
      font-size: 0.9rem;
    }
  
    .btn-lg {
      padding: 0.875rem 1.5rem;
    }
  }
  
  /* ========== Extra Small Mobile (400px and below) ========== */
  @media (max-width: 400px) {
    /* Header */
    .header-logo img {
      height: 65px;
    }
  
    /* Hero Section */
    .hero-content h1 {
      font-size: 1.8rem;
    }
  
    .hero-video-wrapper {
      height: 250px;
    }
  
    /* Modal */
    .modal-content {
      padding: 1.5rem;
    }
  }

  @media (max-width: 480px) {
    .welcome-modal-content {
      padding: 0.75rem 1rem;
      border-radius: 8px;
      max-width: 90%;
    }
  
    .welcome-modal-img {
      max-height: 100px;
      margin-bottom: 0.75rem;
      border-radius: 4px;
    }
  
    .welcome-heading {
      font-size: 1.05rem;
      margin-bottom: 0.4rem;
    }
  
    .welcome-subtext {
      font-size: 0.85rem;
      margin-bottom: 0.75rem;
    }
  
    #closeWelcomeModal {
      top: 6px;
      right: 8px;
      font-size: 1rem;
    }
  
    .subscribe-form input,
    .subscribe-form select {
      padding: 0.4rem 0.6rem;
      margin-bottom: 0.6rem;
      font-size: 0.85rem;
    }
  
    .subscribe-form-section {
      margin-top: 1rem;
      padding-top: 1rem;
    }
  
    .subscribe-form-wrapper {
      padding: 0.75rem;
      border-radius: 6px;
    }
  
    .subscribe-text {
      margin-bottom: 0.75rem;
      font-size: 0.9rem;
    }
  
    .modal-actions .btn {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
    }
  }
  