/* Base Card Styling */

/* Master container for centering the button and content */
.wiseone-master-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: Inter, sans-serif;
    background-color: #f4f4f4;
    padding: 0;
}

/* --- HEADER CONTROLS (NEWLY ADDED) --- */

.page-header-controls {
  margin-bottom: 10px; 
}

/* Toggle button */
.wiseone-toggle-header {
  width: 50%;
  margin: 20px auto;
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #896B27;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(137, 107, 39, 0.2);
}

.wiseone-toggle-header span:first-child {
  font-size: 24px;
  font-weight: 800;
  color: #000000;
  transition: all 0.3s ease;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

/* HOVER & ACTIVE STATE: Background stays white, Text gets Gradient */
.wiseone-toggle-header:hover, 
.wiseone-toggle-header.active {
  background-color: #FAF9F6; 
  border-color: #896B27;
  box-shadow: 0 4px 15px rgba(137, 107, 39, 0.2);
  color: #fff;
}

.wiseone-toggle-header:focus {
  outline: unset !important;
}

/* Applying the Gradient to the text inside the span */
.wiseone-toggle-header:hover span:first-child,
.wiseone-toggle-header.active span:first-child {
  background: linear-gradient(to right, #896B27 0%, #B38F00 50%, #896B27 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  /* background-color: #896B27; */
  color: #000;
  filter: drop-shadow(0px 1px 0px rgba(0, 0, 0, 0.15));
}

.wiseone-toggle-header:focus {
  outline: unset !important;
  background-color: unset !important;
}

/* Arrow handling */
.toggle-arrow {
  font-size: 24px;
  transition: transform 0.3s ease;
  color: #896B27;
  display: inline-block;
}

.toggle-arrow.active {
  background-color: unset !important;
}

.wiseone-toggle-header.active .toggle-arrow {
  transform: rotate(90deg);
}

/* --- COLLAPSIBLE CONTENT (NEW) --- */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    padding: 0 10px;
}

.collapsible-content.active {
    overflow: visible;
    pointer-events: auto;
}

.collapsible-content.is-open {
    max-height: 5000px;
    /* new */
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* --- CARD STYLES --- */

.media-card-container {
  max-width: 600px; 
  margin: 20px auto;
  padding: 60px 40px;
  background-color: #ffffff;
  border-radius: 40px; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #333333;
}

/* Header/Logo Section */
.media-header {
  margin-bottom: 25px;
}

.media-header-label {
  font-size: 13px;
  color: #666666;
  margin-bottom: 25px;
}

.media-logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 9px;
  align-items: center;
}

.media-logos img {
    max-width: 15% !important;
}

@media (max-width: 767px) {
    .media-logos img {
        max-width: 85% !important;
    }
}

.logo-item {
  max-width: 5rem;
  width: 100%;
  height: auto;
  opacity: 0.5;
}

/* Main Title */
.media-title {
  font-size: 43px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  margin: 0 0 30px !important;
  text-align: left;
  width: 90%;
  letter-spacing: -0.1176470588rem !important;
}

/* Description Blocks */
.media-description-block {
  text-align: left;
  margin-bottom: 30px;
}

.media-description-p1,
.media-description-p2 {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 15px;
}

.media-image-section {
  padding: 20px 0;
  position: relative;
  min-height: 350px;
  overflow: hidden;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.media-image {
  height: 100% !important;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 40px;
}

/* Key Features Card Title */
.feature-title {
  font-size: 43px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  margin: 0 auto 30px !important;
  width: 80%;
  letter-spacing: -0.1176470588rem !important;
}

/* Key Features Card */
.feature-card {
  background-image: url("https://www.oneunited.com/core/content/uploads/2025/05/Homepage-Wave-design-Block-2.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}
/* Key Features Feature Heading */
.feature-heading {
  text-align: left;
  margin-bottom: 0 !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  margin-top: 25px !important;
}

/* Key Features Description */
.feature-description {
  text-align: left;
  margin-top: 5px;
  font-size: 16px;
}

/* Key Features CTA */
.feature-cta-bar {
  padding-top: 30px;
  /* new */
  position: relative;
  z-index: 5;
}

.feature-cta-btn {
  background-color: transparent;
  background-image: linear-gradient(147deg, #f5cb5c 0%, #ab8019 100%);
  border: none;
  padding: 20px 40px;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.3s !important;
  white-space: normal;
  word-wrap: break-word;
  color: #000000 !important;
  /* new */
  display: inline-block;
  line-height: 1.2;
  position: relative;
  z-index: 100;
  touch-action: manipulation;
  max-width: 100%;
}

.feature-cta-btn:hover,
.feature-cta-btn:focus,
.feature-cta-btn:active {
    text-decoration: underline !important;
}

/* FAQs Title */
.faqs-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin: auto;
  width: 80%;
  text-align: center;
  font-family: Inter, sans-serif;
}

/* Accordion Menu */
.accordion-wrapper {
  max-width: 600px;
  margin: 20px auto;
  background: #ffffff;
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 40px;
}

/* Accordion Item Styling */
.accordion-item {
  border-bottom: 1px solid #eeeeee;
}

.accordion-item.active {
    background-color: unset !important;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  user-select: none;
}

/* Arrow Icon Styling (Pointing right when closed) */
.accordion-arrow {
  font-size: 16px;
  margin-left: 10px;
  color: #666;
  transition: transform 0.3s ease;
  transform: rotate(0deg); 
}

/* State when active (open) */
.accordion-item.active .accordion-arrow {
  transform: rotate(90deg);
  color: #007bff;
}

/* Content Panel Styling */
.accordion-content {
  max-height: 100%;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 15px;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* State when active (open) */
.accordion-item.active .accordion-content {
  padding: 10px 15px 20px 15px;
}

/* Content Specific Formatting */
.accordion-content a {
  text-decoration: none;
  font-weight: 700;
}
.accordion-content p {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.accordion-content .sub-heading {
  font-weight: 700;
  margin: 15px 0 5px 0;
  color: #333;
}

/* Media Queries */
@media (max-width: 767px) {
  .media-logos {
    gap: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .logo-item {
    margin: auto;
  }
}

@media (max-width: 600px) {
  .media-image {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .media-card-container {
    padding: 40px;
  }
  .media-image-section {
    min-height: 275px;
  }
  .accordion-header {
    font-size: 16px !important;
}
}

@media (max-width: 475px) {
  .media-title,
  .feature-title {
    font-size: 32px !important;
  }
  .feature-heading {
    font-size: 24px !important;
  }
  .feature-card {
    background-image: none;
  }
  .feature-cta-btn {
    width: 100%;
    display: block;
    box-sizing: border-box;
  } 
}

@media (max-width: 425px) {
  .wiseone-toggle-header, .toggle-arrow {
    font-size: 24px !important;
  }

  .wiseone-toggle-header {
    width: 100%;
  }

  .media-title,
  .feature-title {
    font-size: 28px !important;
  }
  .feature-heading {
    font-size: 20px !important;
  }
}

@media (max-width: 375px) {
  .media-card-container, .accordion-wrapper {
    padding: 40px 20px;
  }
  .wiseone-toggle-header, .toggle-arrow {
    font-size: 20px !important;
  }
}