/* ═══════════════════════════════════════════════════════════════════════════════
   VIRGIN NATURE TOURS (VNT) — POLICY CONTENT COLLAPSIBLE STYLES
   Height-based responsive reading experience with smooth gradient fade
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --policy-collapse-height-desktop: 1200px;
  --policy-collapse-height-tablet: 1000px;
  --policy-collapse-height-mobile: 850px;
}

.policy-content-wrapper {
  position: relative;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.policy-content-wrapper.is-collapsed {
  max-height: var(--policy-collapse-height-desktop);
  overflow: hidden;
}

@media (max-width: 991px) {
  .policy-content-wrapper.is-collapsed {
    max-height: var(--policy-collapse-height-tablet);
  }
}

@media (max-width: 767px) {
  .policy-content-wrapper.is-collapsed {
    max-height: var(--policy-collapse-height-mobile);
  }
}

.policy-content-wrapper.is-expanded,
.policy-content-wrapper.is-short {
  max-height: none !important;
  overflow: visible !important;
}

/* Subtle Bottom Gradient Overlay for Collapsed State */
.policy-content-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 40%,
    rgba(255, 255, 255, 0.95) 75%,
    #ffffff 100%
  );
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.policy-content-wrapper.is-expanded .policy-content-fade,
.policy-content-wrapper.is-short .policy-content-fade {
  opacity: 0;
  display: none !important;
}

/* Show More / Show Less Action Container */
.policy-collapse-action {
  margin-top: 24px;
  padding-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* Show More / Show Less Toggle Button */
.policy-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-family: 'Plus Jakarta Sans', var(--gotur-body-font, sans-serif);
  font-size: 15px;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  color: #ffffff !important;
  background-color: var(--gotur-base, #63AB45);
  box-shadow: 0 6px 20px rgba(99, 171, 69, 0.28);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.policy-collapse-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 171, 69, 0.38);
  color: #ffffff !important;
}

.policy-collapse-btn:focus-visible {
  outline: 3px solid var(--gotur-base, #63AB45);
  outline-offset: 3px;
}

.policy-btn-icon {
  font-size: 13px;
  transition: transform 0.3s ease;
}

/* RTL / LTR Direction Awareness */
[dir="rtl"] .policy-collapse-btn {
  font-family: 'Cairo', var(--gotur-body-font, sans-serif);
}

[dir="rtl"] .policy-btn-icon {
  margin-right: 6px;
  margin-left: 0 !important;
}

[dir="ltr"] .policy-btn-icon {
  margin-left: 6px;
  margin-right: 0 !important;
}
