/* =========================================
   SACRED PORTAL BANNER (FLUID & RESPONSIVE)
   ========================================= */

.portal-banner {
  position: relative;
  width: 100%;
  /* Ensures enough vertical height for the header clearance AND the content */
  min-height: clamp(450px, 65vh, 750px);
  display: flex;
  flex-direction: column;
  /* Centers content in the remaining space after top padding */
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-text-primary, #2b1d19);

  /* Creates an impenetrable safe zone for your transparent header */
  padding-top: clamp(100px, 15vh, 160px);
  padding-bottom: 2rem;
  box-sizing: border-box;
}

/* --- Ethereal Background Animation --- */
.pb-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  animation: slowZoom 25s linear infinite alternate;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.pb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 18, 16, 0.4) 0%,
    rgba(26, 18, 16, 0.95) 100%
  );
  z-index: 2;
}

/* --- Content Wrapper --- */
.pb-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Integrated Breadcrumb --- */
.pb-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Prevents overflow on narrow mobile screens */
  gap: clamp(8px, 2vw, 15px);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
}

.pb-link,
.pb-current {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.4;
}

.pb-link {
  font-weight: 500;
  color: rgba(253, 251, 246, 0.65);
  text-decoration: none;
  transition: color 0.3s ease;
}

.pb-link:hover {
  color: var(--color-accent, #c78d6a);
}

.pb-separator {
  color: var(--color-accent, #c78d6a);
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  display: flex;
  align-items: center;
}

.pb-current {
  font-weight: 600;
  color: var(--color-text-inverse, #fdfbf6);
}

/* --- Title & Typography --- */
.pb-title {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  color: var(--color-text-inverse, #fdfbf6);
  line-height: 1.15;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 1px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.pb-subtitle {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: #c2b4ae;
  line-height: 1.6;
  max-width: 650px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* --- The Guiding Thread --- */
.pb-thread {
  width: 1px;
  height: clamp(50px, 10vh, 100px);
  background: linear-gradient(
    to bottom,
    var(--color-accent, #c78d6a) 0%,
    transparent 100%
  );
  opacity: 0.7;
}

/* =========================================
   MOBILE RESPONSIVE OVERRIDES (PORTAL BANNER)
   ========================================= */

/* --- Tablets & Large Phones (max-width: 768px) --- */
@media (max-width: 768px) {
  .portal-banner {
    /* Strict height limits for mobile to keep it in the viewport */
    min-height: 400px;
    height: 60vh;
    /* Exact pixel clearance for your mobile header */
    padding-top: 100px;
    padding-bottom: 1.5rem;
  }

  .pb-content {
    width: 100%;
    padding: 0 1.2rem; /* Ensures text never touches the screen edge */
  }

  .pb-breadcrumb {
    gap: 8px; /* Tighter gap for mobile */
    margin-bottom: 1.5rem;
  }

  .pb-link,
  .pb-current {
    font-size: 0.7rem;
    letter-spacing: 1px; /* Reduced tracking to fit more text */
  }

  .pb-separator {
    font-size: 0.6rem;
  }

  .pb-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    /* Prevents massive words from breaking the layout horizontally */
    word-wrap: break-word;
  }

  .pb-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 10px;
  }

  .pb-thread {
    height: 50px; /* Shorter thread for compact mobile screens */
  }
}

/* --- Small Phones (max-width: 480px) --- */
@media (max-width: 480px) {
  .portal-banner {
    min-height: 350px;
    padding-top: 90px; /* Slightly less clearance needed on tiny screens */
  }

  .pb-breadcrumb {
    gap: 5px;
    margin-bottom: 1rem;
  }

  .pb-link,
  .pb-current {
    font-size: 0.65rem;
  }

  .pb-title {
    font-size: 2.2rem; /* Locked-in smaller size for narrow screens */
    padding: 0 5px;
  }

  .pb-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .pb-thread {
    height: 40px;
  }
}

/* =========================================
   TABLET & LAPTOP RESPONSIVE OVERRIDES
   ========================================= */

/* --- Tablets (Portrait & Landscape: 769px to 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .portal-banner {
    min-height: 500px;
    height: 55vh;
    padding-top: 120px; /* Exact clearance for tablet-sized header */
    padding-bottom: 2rem;
  }

  .pb-content {
    width: 90%;
    max-width: 700px; /* Constrains line length for better reading */
  }

  .pb-breadcrumb {
    gap: 12px;
    margin-bottom: 2rem;
  }

  .pb-link,
  .pb-current {
    font-size: 0.75rem;
  }

  .pb-title {
    font-size: 3.8rem; /* Perfectly scaled for iPad screens */
    line-height: 1.15;
    margin-bottom: 1.2rem;
  }

  .pb-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    padding: 0 20px;
  }

  .pb-thread {
    height: 70px;
  }
}

/* --- Laptops & Standard Desktops (1025px to 1440px) --- */
@media (min-width: 1025px) and (max-width: 1440px) {
  .portal-banner {
    min-height: 600px;
    height: 65vh;
    padding-top: 140px; /* Standard desktop header clearance */
  }

  .pb-content {
    width: 85%;
    max-width: 800px;
  }

  .pb-breadcrumb {
    gap: 15px;
    margin-bottom: 2.5rem;
  }

  .pb-link,
  .pb-current {
    font-size: 0.8rem;
  }

  .pb-title {
    font-size: 4.5rem; /* Classic, cinematic desktop size */
    margin-bottom: 1.5rem;
  }

  .pb-subtitle {
    font-size: 1.15rem;
    margin-bottom: 3rem;
  }

  .pb-thread {
    height: 90px;
  }
}

/* --- Ultra-Wide Monitors (1441px and above) --- */
@media (min-width: 1441px) {
  .portal-banner {
    /* Locks the maximum height so it doesn't stretch infinitely on huge monitors */
    height: 700px;
    padding-top: 150px;
  }

  .pb-content {
    max-width: 900px;
  }

  .pb-title {
    font-size: 5rem; /* Capped maximum font size */
  }

  .pb-subtitle {
    font-size: 1.25rem;
  }

  .pb-thread {
    height: 100px;
  }
}
/* =========================================
   EDUCATIONAL SNIPPET (PREMIUM CALLOUT)
   ========================================= */

.educational-snippet {
  /* A very soft, luxurious tint to separate it from normal sections */
  background: linear-gradient(to bottom, rgba(135, 56, 35, 0.02), rgba(135, 56, 35, 0.05), rgba(135, 56, 35, 0.02));
  border-top: 1px solid rgba(135, 56, 35, 0.1);
  border-bottom: 1px solid rgba(135, 56, 35, 0.1);
  padding: 6rem 0;
  display: flex;
  justify-content: center;
  font-family: var(--font-body, 'Jost', sans-serif);
}

.snippet-container {
  max-width: 750px;
  text-align: center;
  padding: 0 2rem;
}

/* --- Animated Accent Icon --- */
.snippet-accent {
  color: var(--color-accent, #C78D6A);
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.seed-icon {
  width: 65px;
  height: 65px;
  /* Adds a subtle, meditative breathing effect */
  animation: meditativePulse 4s ease-in-out infinite;
}

@keyframes meditativePulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* --- Typography --- */
.snippet-kicker {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-primary, #873823);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.snippet-title {
  font-family: var(--font-heading, 'Cinzel', serif);
  font-size: 2.8rem;
  color: var(--color-text-primary, #2B1D19);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.snippet-desc {
  font-size: 1.15rem;
  color: var(--color-text-secondary, #7A6962);
  line-height: 1.8;
  font-style: italic; /* Gives it an editorial, quote-like feel */
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 768px) {
  .educational-snippet {
    padding: 4rem 0;
  }
  
  .snippet-title {
    font-size: 2.2rem;
  }
  
  .snippet-desc {
    font-size: 1.05rem;
  }
  
  .seed-icon {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 480px) {
  .snippet-title {
    font-size: 1.8rem;
  }
  
  .snippet-container {
    padding: 0 1.5rem;
  }
}
/* =========================================
   PREMIUM STICKY FAQ (EARTHY THEME)
   ========================================= */

.faq-section {
  /* background-color: var(--color-bg-base, #FDFBF6); */
  padding: 8rem 0;
  /* Crucial: Do NOT use overflow: hidden here, or position: sticky will break */
  position: relative;
}

.faq-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 7fr;
  /* Left column is slightly narrower */
  gap: 5rem;
  align-items: start;
  /* Crucial for sticky layout */
}

/* --- LEFT COLUMN (Sticky) --- */
.faq-left {
  position: relative;
  height: 100%;
}

.faq-sticky-wrapper {
  position: sticky;
  top: 120px;
  /* Adjust this if your header is taller/shorter */
}

.faq-pretitle {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-accent, #c78d6a);
  display: block;
  margin-bottom: 1.5rem;
}

.faq-title {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--color-text-primary, #2b1d19);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.faq-desc {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: 1.1rem;
  color: var(--color-text-secondary, #7a6962);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 90%;
}

/* Premium Support Box */
.faq-support-box {
  background: var(--color-bg-surface, #ffffff);
  border: 1px solid var(--color-border-subtle, rgba(135, 56, 35, 0.15));
  border-left: 4px solid var(--color-primary, #873823);
  /* Elegant side accent */
  padding: 2.5rem;
  border-radius: var(--radius-sm, 2px);
  box-shadow: 0 10px 30px rgba(43, 29, 25, 0.04);
}

.support-title {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-primary, #2b1d19);
  margin-bottom: 0.5rem;
}

.support-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary, #7a6962);
  margin-bottom: 1.5rem;
}

.support-link {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary, #873823);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.support-link .arrow {
  transition: transform 0.3s ease;
}

.support-link:hover {
  color: var(--color-primary-light, #aa4e35);
}

.support-link:hover .arrow {
  transform: translateX(5px);
}

/* --- RIGHT COLUMN (Accordion) --- */
.faq-right {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-subtle, rgba(135, 56, 35, 0.15));
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border-subtle, rgba(135, 56, 35, 0.15));
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  cursor: pointer;
  text-align: left;
}

.faq-q-text {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-primary, #2b1d19);
  padding-right: 2rem;
  transition: color 0.3s ease;
}

.faq-question:hover .faq-q-text {
  color: var(--color-primary, #873823);
}

/* Custom Animated Plus/Cross Icon */
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-line {
  position: absolute;
  background: var(--color-text-primary, #2b1d19);
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    background 0.3s ease;
}

.line-h {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.line-v {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-question:hover .icon-line {
  background: var(--color-primary, #873823);
}

/* The expanding answer wrapper */
.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  /* CSS Grid trick for smooth auto-height animation */
  transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer {
  overflow: hidden;
  /* Hides text when collapsed */
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: 1.05rem;
  color: var(--color-text-secondary, #7a6962);
  line-height: 1.7;
}

/* --- ACTIVE STATE --- */
.faq-item.active .faq-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-answer {
  padding-bottom: 2rem;
  /* Adds padding only when open */
}

.faq-item.active .faq-q-text {
  color: var(--color-primary, #873823);
}

.faq-item.active .icon-line {
  background: var(--color-primary, #873823);
}

/* Animates the '+' into an 'x' */
.faq-item.active .line-h {
  transform: translateY(-50%) rotate(135deg);
}

.faq-item.active .line-v {
  transform: translateX(-50%) rotate(135deg);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .faq-title {
    font-size: 2.8rem;
  }

  .faq-container {
    gap: 3rem;
  }

  .faq-q-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .faq-section {
    padding: 5rem 0;
  }

  .faq-container {
    grid-template-columns: 1fr;
    /* Stacks the columns */
    gap: 3rem;
  }

  /* Disable sticky behavior on mobile since they are stacked */
  .faq-sticky-wrapper {
    position: relative;
    top: 0;
  }

  .faq-title {
    font-size: 2.4rem;
  }
}
