/* ==========================================================================
   TDA WELLNESS - ABOUT US PAGE (RESPONSIVE LUXURY BRAND STORY)
   Alternating 2-Column Story Blocks & FAQ Section
   ========================================================================== */

body.page-template-page-about,
body.page-template-page-about-us,
body.page-id-about,
body.page-about,
body.page-about-us {
  background: #FCFBF7 !important;
  background-image: none !important;
  overflow-x: hidden !important;
}

.page-template-page-about #content,
.page-template-page-about .site-content,
.page-template-page-about .ast-container,
.page-template-page-about #primary,
.page-template-page-about #main,
.page-about #content,
.page-about .site-content,
.page-about .ast-container,
.page-about #primary,
.page-about #main,
.page-about-us #content,
.page-about-us .site-content,
.page-about-us .ast-container,
.page-about-us #primary,
.page-about-us #main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  float: none !important;
  background: transparent !important;
  border: none !important;
  box-sizing: border-box !important;
}

.page-template-page-about #secondary,
.page-template-page-about .widget-area,
.page-about #secondary,
.page-about .widget-area,
.page-about-us #secondary,
.page-about-us .widget-area {
  display: none !important;
}

.tda-about-page {
  background: #FCFBF7;
  color: #2D3748;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 70vh;
  padding-bottom: 70px;
  width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* 1. HERO BANNER */
.tda-about-page .tda-page-hero {
  background: linear-gradient(180deg, #11281E 0%, #173628 100%);
  color: #FFFFFF;
  padding: 56px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.tda-about-page .tda-page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.tda-about-page .tda-page-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.tda-about-page .tda-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 165, 116, 0.18);
  border: 1px solid rgba(212, 165, 116, 0.4);
  color: #E6C8A4;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.tda-about-page .tda-page-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 14px 0;
  letter-spacing: -0.5px;
}

.tda-about-page .tda-page-hero-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: #D1D5DB;
  max-width: 820px;
  margin: 0 auto 20px;
}

.tda-about-page .tda-page-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #9CA3AF;
}

.tda-about-page .tda-page-breadcrumbs a {
  color: #D4A574;
  text-decoration: none;
}

/* 2. CARD WRAPPER - WIDE LUXURY LAYOUT */
.tda-about-wrapper {
  max-width: 1240px !important;
  width: 94% !important;
  margin: -28px auto 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 5;
  box-sizing: border-box !important;
}

.tda-about-card {
  background: #FFFFFF;
  border: 1px solid #EAE5D9;
  border-radius: 20px;
  padding: 56px 60px;
  box-shadow: 0 12px 40px rgba(20, 66, 45, 0.04);
  box-sizing: border-box !important;
  width: 100% !important;
}

/* 3. ALTERNATING 2-COLUMN BRAND STORY ROWS */
.tda-about-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: center !important;
  gap: 48px !important;
  margin-bottom: 64px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.tda-about-row:last-of-type {
  margin-bottom: 48px !important;
}

/* Reverse row order for row 2 (Image right, Text left on desktop) */
.tda-about-row.tda-reverse .tda-about-col-img {
  order: 2 !important;
}
.tda-about-row.tda-reverse .tda-about-col-text {
  order: 1 !important;
}

/* Image Column - Contained & Non-Overlapping */
.tda-about-col-img {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 14px 32px rgba(17, 40, 30, 0.08) !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  max-height: 420px !important;
  background: #F4F6F4 !important;
  box-sizing: border-box !important;
}

.tda-about-col-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 16px !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tda-about-col-img:hover img {
  transform: scale(1.03) !important;
}

.tda-about-img-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(17, 40, 30, 0.9);
  backdrop-filter: blur(8px);
  color: #E6C8A4;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* Text Column */
.tda-about-col-text {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.tda-about-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #109648;
  margin-bottom: 10px;
}

.tda-about-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #11281E;
  line-height: 1.25;
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
  word-wrap: break-word;
}

.tda-about-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #4B5563;
  margin-bottom: 14px;
}

.tda-about-desc:last-child {
  margin-bottom: 0;
}

.tda-about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tda-about-pill {
  background: #F4FAF5;
  border: 1px solid #C8E6C9;
  color: #109648;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 4. BOTTOM FAQ ACCORDION SECTION */
.tda-about-faq-section {
  border-top: 1px solid #EFEAE0;
  padding-top: 48px;
  margin-top: 16px;
}

.tda-about-faq-header {
  text-align: center;
  margin-bottom: 32px;
}

.tda-about-faq-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #11281E;
  margin: 0 0 10px 0;
}

.tda-about-faq-title span {
  color: #D4A574;
}

.tda-about-faq-subtitle {
  font-size: 15px;
  color: #6B7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.tda-about-faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tda-about-faq-item {
  background: #FAF8F5;
  border: 1px solid #ECE7DE;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.22s ease;
}

.tda-about-faq-item[open] {
  background: #FFFFFF;
  border-color: #109648;
  box-shadow: 0 8px 24px rgba(16, 150, 72, 0.08);
}

.tda-about-faq-question {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-align: left !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #11281E !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.45 !important;
  gap: 14px !important;
  list-style: none !important;
  transition: color 0.2s ease !important;
}

.tda-about-faq-question::-webkit-details-marker {
  display: none !important;
}

.tda-about-faq-question:hover,
.tda-about-faq-item[open] .tda-about-faq-question {
  color: #109648 !important;
}

.tda-about-faq-plus {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: 1.5px solid #CBD5E1 !important;
  background: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #109648 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  flex: 0 0 26px !important;
  transition: transform 0.25s ease, background 0.2s, color 0.2s, border-color 0.2s !important;
}

.tda-about-faq-item[open] .tda-about-faq-plus {
  transform: rotate(45deg) !important;
  background: #109648 !important;
  color: #FFFFFF !important;
  border-color: #109648 !important;
}

.tda-about-faq-answer {
  display: none;
  padding: 0 20px 20px 20px !important;
  color: #4B5563 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.tda-about-faq-item[open] .tda-about-faq-answer {
  display: block !important;
  animation: tdaFadeIn 0.25s ease !important;
}

.tda-about-faq-answer p {
  margin: 0 0 10px 0 !important;
}

.tda-about-faq-answer p:last-child {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (CRITICAL MOBILE OVERFLOW FIXES)
   ========================================================================== */

/* Tablet (1024px & 900px) */
@media (max-width: 1024px) {
  .tda-about-wrapper {
    width: 96% !important;
  }
  .tda-about-card {
    padding: 44px 36px !important;
  }
  .tda-about-row {
    gap: 36px !important;
    margin-bottom: 48px !important;
  }
  .tda-about-heading {
    font-size: 28px !important;
  }
}

/* Mobile Devices (<= 768px) - Full Vertical Stack */
@media (max-width: 768px) {
  .tda-about-page {
    padding-bottom: 48px !important;
  }

  .tda-about-page .tda-page-hero {
    padding: 38px 16px 36px !important;
  }

  .tda-about-page .tda-page-hero-title {
    font-size: 26px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  .tda-about-page .tda-page-hero-desc {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 14px !important;
  }

  .tda-about-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: -18px 0 0 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }

  .tda-about-card {
    padding: 24px 16px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 6px 20px rgba(20, 66, 45, 0.04) !important;
  }

  /* Force Story Rows to Stack 100% Vertically */
  .tda-about-row,
  .tda-about-row.tda-reverse {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-bottom: 38px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image Column Full Width on Mobile */
  .tda-about-row .tda-about-col-img,
  .tda-about-row.tda-reverse .tda-about-col-img {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    max-height: 250px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  .tda-about-col-img img {
    border-radius: 12px !important;
  }

  .tda-about-img-badge {
    top: 12px !important;
    left: 12px !important;
    font-size: 10px !important;
    padding: 4px 10px !important;
  }

  /* Text Column Full Width on Mobile */
  .tda-about-row .tda-about-col-text,
  .tda-about-row.tda-reverse .tda-about-col-text {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .tda-about-section-tag {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }

  .tda-about-heading {
    font-size: 21px !important;
    line-height: 1.28 !important;
    margin-bottom: 10px !important;
  }

  .tda-about-desc {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 10px !important;
  }

  .tda-about-pills {
    gap: 6px !important;
    margin-top: 12px !important;
  }

  .tda-about-pill {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }

  /* FAQ Accordion Mobile Optimization */
  .tda-about-faq-section {
    padding-top: 32px !important;
    margin-top: 8px !important;
  }

  .tda-about-faq-header {
    margin-bottom: 22px !important;
  }

  .tda-about-faq-title {
    font-size: 22px !important;
    margin-bottom: 6px !important;
  }

  .tda-about-faq-subtitle {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .tda-about-faq-question {
    font-size: 13.5px !important;
    padding: 13px 14px !important;
    gap: 10px !important;
  }

  .tda-about-faq-plus {
    width: 24px !important;
    height: 24px !important;
    font-size: 15px !important;
    flex: 0 0 24px !important;
  }

  .tda-about-faq-answer {
    padding: 0 14px 14px 14px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
}

/* Extra Compact Mobile Screens (<= 390px / iPhone SE) */
@media (max-width: 390px) {
  .tda-about-wrapper {
    padding: 0 8px !important;
  }

  .tda-about-card {
    padding: 18px 12px !important;
    border-radius: 12px !important;
  }

  .tda-about-heading {
    font-size: 19px !important;
  }

  .tda-about-desc {
    font-size: 13px !important;
  }

  .tda-about-row .tda-about-col-img,
  .tda-about-row.tda-reverse .tda-about-col-img {
    max-height: 210px !important;
  }
}

/* Gutenberg Generic Content Mobile Containment */
.tda-entry-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.tda-entry-content img,
.tda-entry-content figure,
.tda-entry-content iframe,
.tda-entry-content video {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .tda-entry-content .wp-block-columns,
  .tda-entry-content .wp-block-media-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: 100% !important;
  }

  .tda-entry-content .wp-block-column,
  .tda-entry-content .wp-block-media-text__content,
  .tda-entry-content .wp-block-media-text__media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}
