/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;

  font-family: "Source Sans 3", sans-serif;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: white;
}

/* ==================== HEADER ==================== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  max-width: 800px;
  /* Match the max-width of .content */
  margin: 0 auto;
  /* Center the header */
}

/* Left & Right Logos */
.logo-left,
.logo-right {
  height: auto;
}

.logo-left {
  width: 15vw;
  max-width: 212px;
}

.logo-right {
  width: 20vw;
  max-width: 314px;
}

header img {
  height: 50px;
}

.section-header-p {
  max-width: 800px;
  font-weight: 400;
  /* Regular */
  font-size: 20px;
  line-height: auto;
  /* Adjust based on design preference */
  letter-spacing: 0%;
  color: #000000;
  /* Black */
  margin: 20px 0 40px 0;
}

/* ==================== NAVIGATION BAR ==================== */

.nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100px;
  background: linear-gradient(to right, #003c8f, #1570b5);
}

/* Navigation Links */
.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: white;
  font-size: 20px;
}

.nav-list a.active {
  font-weight: bold;
}

/* ==================== MAIN CONTENT ==================== */

main {
  display: flex;
  justify-content: center;
  margin-top: 35px;
  margin-bottom: 40px;
}

/* Section Content */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Section Header & Paragraph */
.section-header,
.intro-paragraph {
  font-size: 40px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0;
  color: #06478f;
}

.pains-image-header {
  width: 100%;
  max-width: 730px;
  /* Match the max-width of .pains-image */
  font-size: clamp(1.25rem, 4vw, 2rem);
  /* Responsive font size */
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: #06478f;
  padding: 0;
  margin: 0 auto;
  /* Center the header if needed */
}

.intro-paragraph {
  max-width: 900px;
}

/* Buttons */
.buttons {
  margin-top: 20px;
}

.instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

button {
  background-color: #288ccb;
  color: white;
  font-size: 16px;
  width: 178px;
  height: 48px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  margin: 10px;
}

button:hover {
  background-color: #06478f;
}

/* Video Section */
.video-container {
  margin-top: 23px;
  width: 100%;
  max-width: 1060px;
  /* Match the original width */
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 596px;
  /* Maintain original height on desktop */
}

/* For larger screens, limit height to maintain proper desktop dimensions */
@media (min-width: 992px) {
  .video-container {
    padding-bottom: 0;
    height: auto;
    min-height: 596px;
    /* Match original height */
  }

  .video-container iframe {
    position: relative;
    height: 596px;
  }
}

.pains-image {
  width: 100%;
  max-width: 730px;
  height: auto;
}

.image-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 57px;
}

/* ==================== DIVIDER ==================== */

.custom-divider {
  width: 100%;
  border: none;
  border-top: 1px solid #288ccb;
  margin: 57px 0;
}

/* ==================== FOOTER ==================== */

footer {
  background: linear-gradient(90deg, #003c8f 0%, #1570b5 100%);
  width: 100%;
  margin-top: auto;
  /* Push footer to the bottom */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 800px;
  /* Match the max-width of .content */
  margin: 0 auto;
  /* Center the footer content */
  padding: 60px 0;
  /* Adjust padding as needed */
}

/* Left Section */
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-left img {
  width: 228px;
  height: auto;
}

/* Footer Logos */
.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 10px;
}

/* Footer Info */
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-info p {
  margin: 2px 0;
  color: white;
  font-size: 14px;
}

/* Right Section */
.footer-right {
  max-width: 50%;
  color: white;
  font-size: 14px;
  line-height: 1.5;
}

.footer-right a {
  color: #9cd1ff;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* Right Footer Logo */
.footer-logo-right {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.footer-logo-right img {
  width: 120px;
  height: auto;
  opacity: 0.8;
}

/* Extra Margin for Spacing */
.footer-margin-p {
  margin-top: 20px;
}

/* Add this to properly style the footer element */
footer {
  width: 100%;
  margin-top: auto;
  /* This helps push the footer down */
}

/* ==================== ACCORDION ==================== */

.accordion-container {
  width: 80vw;
  max-width: 800px;
  /* Fixed max-width */
  margin: 0 auto;
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
}

/* Force width consistency across all accordion states */
.accordion {
  width: 100% !important;
  /* Force width */
  margin-top: 40px;
  overflow: hidden !important;
}

.accordion-item {
  border: none !important;
  /* Remove default Bootstrap borders */
  border-bottom: 1px solid #288ccb !important;
  /* Only bottom border */
  border-radius: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Force consistent width on accordion buttons regardless of state */
.accordion-button {
  width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  padding: 1rem 1.25rem !important;
}

.accordion-button:hover {
  background-color: rgba(40,
      140,
      203,
      0.05) !important;
  /* Light blue background */
  color: #06478f !important;
  /* Your brand blue */
}

/* Make sure the hover doesn't affect the arrow icon */
.accordion-button:hover::after {
  background-color: transparent !important;
}

/* Remove focus styles that might affect width */
.accordion-button:focus {
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Style the button when expanded */
.accordion-button:not(.collapsed) {
  color: #06478f !important;
}

/* Remove default arrow icon and add custom one if needed */
.accordion-button::after {
  content: "" !important;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23288ccb" class="bi bi-plus" viewBox="0 0 16 16"><path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/></svg>') !important;
  transition: transform 0.2s ease-in-out !important;
}

.accordion-collapse {
  width: 100%;
  transition: height 0.2s ease !important;
}

.accordion-body {
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  /* Ensures text wraps properly */
  word-wrap: break-word;
}

/* Custom Accordion Styles */
.accordion-container {
  width: 80vw;
  max-width: 800px;
  margin: 0 auto;
  overflow-x: hidden;
}

.accordion {
  width: 100%;
  margin-top: 40px;
}

.accordion-item {
  border-bottom: 1px solid #288ccb;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
  font-size: 1rem;
}

.accordion-trigger:hover {
  background-color: rgba(40, 140, 203, 0.05);
  color: #06478f;
}

.accordion-icon {
  width: 16px;
  height: 16px;
  position: relative;
  transition: transform 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: #288ccb;
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  width: 2px;
  height: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.accordion-icon::after {
  width: 16px;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.accordion-item.active .accordion-icon::before {
  transform: translateX(-50%) rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

.accordion-body {
  padding: 1rem 1.25rem;
  color: #000;
  line-height: 1.5;
  text-align: Left;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {

  /* Adjust Footer for Smaller Screens */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    max-width: 100%;
    align-items: center;
  }

  /* Adjust Right Logo */
  .footer-logo-right {
    bottom: 10px;
    right: 10px;
  }

  .footer-logo-right img {
    max-width: 80px;
  }
}

/* More comprehensive media queries */
@media (max-width: 576px) {

  /* Mobile styles */
  .logo-left,
  .logo-right {
    width: 30vw;
    /* Larger percentage for small screens */
    margin: 0 5px;
    /* Reduce margins */
  }

  header {
    padding: 10px;
    /* Smaller padding */
  }

  .section-header {
    font-size: 24px;
    line-height: 30px;
    padding: 0 15px;
  }

  /* Adjust nav bar for mobile */
  .nav-bar {
    height: auto;
    padding: 15px 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure content has proper padding */
  .content {
    padding: 0 10px;
  }
}

@media (max-width: 768px) {

  /* Tablet styles */
  .logo-left,
  .logo-right {
    width: 20vw;
    /* Adjusted for tablet */
  }

  .nav-list {
    gap: 30px;
  }

  .section-header,
  .intro-paragraph {
    font-size: 32px;
    line-height: 40px;
  }

  .footer-wrapper {
    padding: 40px 5vw;
  }

  .instructions {
    margin-top: 30px;
  }

  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-info {
    align-items: center;
  }
}

/* ===== Section Description for Care Page ===== */
.section-description {
  max-width: 800px;
  margin: 30px auto 40px auto;
  text-align: left;
  font-size: 18px;
  color: #222;
  line-height: 1.7;
  background: #f7fbff;
  border-radius: 12px;
  padding: 32px 32px 24px 32px;
  box-shadow: 0 2px 12px rgba(40, 140, 203, 0.07);
}

.section-description p {
  margin-bottom: 18px;
}

.section-description a {
  color: #06478f;
  word-break: break-all;
  text-decoration: underline;
  font-size: 16px;
}

.section-description a:hover {
  color: #288ccb;
}

/* Responsive for section-description */
@media (max-width: 768px) {
  .section-description {
    font-size: 16px;
    padding: 18px 10px 14px 10px;
    margin: 20px 0 30px 0;
  }
}

/* Care page header with same width as section-description */
.care-header {
  max-width: 800px;
  margin: 0 auto 24px auto;
  text-align: center;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: #06478f;
  letter-spacing: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

/* Responsive for care-header */
@media (max-width: 768px) {
  .care-header {
    font-size: 28px;
    padding-left: 10px;
    padding-right: 10px;
  }
}