html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: white;
  color: #2b2b2b;
  width: 100%;
  overflow-x: hidden;
}

header {
  text-align: center;
  padding: 4rem 1rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

header h1 {
  font-size: 2.5rem; /* slightly smaller to allow wrapping */
  line-height: 1.3;
}

header p {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #3b82f6;
  margin-right: auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.navbar .logo img {
  height: 45px;
  width: auto;
  display: block;
}

.footer-logo img {
  height: 45px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: #1a1a1a;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-menu li a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: #3b82f6;
}

.navbar .cta-button {
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.navbar .cta-button:hover {
  background-color: #2563eb;
}

.signup {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.signup input {
  padding: 0.75rem;
  width: 280px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.signup button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.sub-heading-section-bg {
  background-color: #f7f9fb;
  width: 100%;
}

.sub-heading-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0 auto 2rem;
  max-width: 1200px;
  flex-wrap: wrap;
  padding: 1.5rem 1.5rem 2rem;

}
.sub-heading {
  flex: 1 1 50%;
  min-width: 300px;
}
.sub-heading p {
  font-size: 1.125rem;
  flex: 1 1 50%;
  min-width: 300px;
  line-height: 1.7;
  color: #4b4b4b;
  margin: 0.5rem 0;
}

.sub-heading-image {
  flex: 1 1 45%;
  text-align: center;
}
.sub-heading-image img {
  width: 100%;
  max-height: 450px;
  display: block;
  object-fit: contain;
}

#features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 1rem;
}

.feature-box {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  width: 220px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(61, 84, 103, 0.2);
}

.feature-box i {
  font-size: 2rem;
  color: #3b82f6;
}

.feature-box h3 {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: #1a1a1a;
}

.feature-box p {
  font-size: 0.95rem;
  color: #4b4b4b;
}

#testimonials {
  text-align: center;
  padding: 2rem 1rem;
  background-color: white;
}

.quotes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.quote {
  background: #e9f0f5;
  border-radius: 12px;
  padding: 1rem;
  width: calc(25% - 1.5rem);
  min-width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.quote i {
  font-size: 1.5rem;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.quote-text {
  font-style: italic;
  color: #3d3d3d;
  margin-bottom: 1rem;
}

.quote-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #555;
}

.quote-footer .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  margin-right: 0.5rem;
}

.quote-footer .text {
  font-style: italic;
  font-weight: bold;
}

#full-faq-bg {
  background-color: #f7f9fb;
  width: 100%;
}

.signup-faq-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 3rem auto;
}

.call-to-action {
  flex: 1 1 500px;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 8em;
}
 .signup-faq {
  flex: 1 1 500px;
  border-radius: 12px;
  padding: 2rem;
}
.signup-message h2,
.signup-faq h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  text-align: center;
}

.signup-faq .faq-block {
  margin-bottom: 1.75rem;
  text-align: left;
}

.signup-faq .faq-block h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.signup-faq .faq-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b4b4b;
  margin: 0;
}

@media (max-width: 768px) {
  .signup-message, .signup-faq {
    flex: 1 1 100%;
  }
}


#expanded-faq {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

#expanded-faq h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#expanded-faq .faq-intro {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

#expanded-faq details {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: left;
}

#expanded-faq summary {
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 20px;
}

#expanded-faq summary::-webkit-details-marker {
  display: none;
}

#expanded-faq summary::after {
  content: '▾';
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}

#expanded-faq details[open] summary::after {
  transform: rotate(180deg);
}

#expanded-faq details p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

footer {
  background-color: #f7f9fb;
  padding: 3rem 1.5rem 1rem;
  font-size: 0.95rem;
  color: #333;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  align-items: flex-start;
  padding-bottom: 2rem;
}

.footer-top .footer-about {
  flex: 1 1 55%;
  max-width: 600px;
}

.footer-top .footer-links {
  flex: 0 0 20px;
  text-align: left;
}

.footer-top h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-top p, .footer-links a {
  color: #333;
  line-height: 1.6;
  text-decoration: none;
}

.footer-links a {
  display: block;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #666;
  padding-top: 1.5rem;
}

.footer-bottom span.heart {
  color: red;
}

/* Responsive tweak for footer */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.5rem;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    margin-left: 0;
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .navbar .cta-button {
    display: inline-block;
    margin-top: 0.5rem;
  }

  .footer-top,
  .footer-bottom {
    text-align: center;
    align-items: center;
  }
  .footer-links {
    text-align: center;
  }
}

/* Style for the video trigger link */
.video-trigger-link {
  /* display: block; */ /* Not strictly needed with flex-basis */
  flex-basis: 100%; /* CRITICAL: Make the link take the full width */
  order: 3; /* Ensure it comes after input (default 0) and button (default 0) */
  text-align: center; /* Center the link text */
  margin-top: 5px; /* Adjust top margin (gap provides horizontal spacing) */
  color: #555;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.video-trigger-link:hover {
  color: #0056b3; /* Darker blue on hover - adjust as needed */
  text-decoration: underline; /* Add underline on hover for clarity */
}

.video-trigger-link i {
  margin-right: 5px; /* Space between icon and text */
  vertical-align: middle; /* Align icon nicely with text */
}


/* Basic Modal Styles */
.modal-overlay {
  position: fixed; /* Stay in place */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* Slightly darker overlay */
  z-index: 1000; /* Sit on top */
  display: flex; /* Use flexbox for centering */
  justify-content: center;
  align-items: center;
  opacity: 0; /* Start hidden */
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
  background-color: #fff;
  padding: 20px; /* Add some padding */
  border-radius: 8px; /* Slightly more rounded corners */
  position: relative;
  width: 90%; /* Responsive width */
  max-width: 800px; /* Max width for the video container */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  /* Optional: Add animation */
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1); /* Scale up when active */
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2.2em; /* Make close button slightly larger */
  font-weight: bold;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0; /* Remove default padding */
  transition: color 0.2s ease;
}
.modal-close:hover {
    color: #333; /* Darker on hover */
}

/* Container to maintain aspect ratio (16:9) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000; /* Black background while video loads */
    border-radius: 4px; /* Optional: slightly round video corners */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Remove iframe border */
}

/* Target the signup container specifically within the header */
header .signup {
  /* display: flex; */ /* Already set by general .signup, but explicit is fine */
  /* flex-wrap: wrap; */ /* Already set by general .signup, but explicit is fine */
  justify-content: center; /* Already set, can omit if desired */
  align-items: center; /* New: Good for vertical alignment */
  gap: 10px; /* Adjusts gap, overrides 0.5rem */
  max-width: 500px; /* New: Constrains width */
  margin-left: auto; /* New: Helps center if max-width is set */
  margin-right: auto; /* New: Helps center if max-width is set */
  /* margin-bottom/top are inherited from .signup */
}

/* Optional: Style input and button if needed within flex */
header .signup input[type="email"] {
 flex-grow: 1; /* New: Allows input to stretch */
}

header .signup button {
  flex-shrink: 0; /* New: Prevents button shrinking */
}

/* Ensure the message paragraph also takes full width and comes last */
header .signup p#signup-message1 {
  flex-basis: 100%; /* Make it take full width */
  order: 4; /* Ensure it's the last item */
  text-align: center; /* Center the message */
  margin-top: 5px; /* Adjust spacing */
  /* display: block; is default for <p>, but explicit doesn't hurt */
}
