/* ==========================================================================
   YATIMA GROUP TRUST FUND (YGTF) - CINEMATIC SLIDER DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800;900&family=Caveat:wght@600;700&display=swap');

:root {
  --color-forest: #0B3D2E;
  --color-forest-dark: #06241B;
  --color-forest-deep: #031711;
  --color-gold: #F2A71B;
  --color-gold-hover: #d99210;
  --color-gold-light: #FFF8EA;
  --color-cream: #FAF7F0;
  --color-text-dark: #1A2421;
  --color-text-muted: #556B64;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-handwriting: 'Caveat', cursive;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: #FFFFFF;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

.font-heading {
  font-family: var(--font-heading);
}

.font-handwriting {
  font-family: var(--font-handwriting);
}

/* Glassmorphism & Gradient Effects */
.glass-panel {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-panel-dark {
  background: rgba(6, 36, 27, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card-gold {
  background: rgba(242, 167, 27, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 167, 27, 0.4);
}

/* Minimalist Hero Slide Transitions */
.cinematic-slide {
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.cinematic-slide.slide-active {
  transform: scale(1);
}

.cinematic-slide:not(.slide-active) {
  transform: scale(1.02);
}

.slide-active .hero-bg-zoom {
  animation: heroZoomIn 10s ease-out forwards;
}

@keyframes heroZoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

@keyframes slideTextUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-fade-up {
  opacity: 0;
}

.slide-active .anim-fade-up:nth-child(1) {
  animation: slideTextUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
.slide-active .anim-fade-up:nth-child(2) {
  animation: slideTextUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
}
.slide-active .anim-fade-up:nth-child(3) {
  animation: slideTextUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}
.slide-active .anim-fade-up:nth-child(4) {
  animation: slideTextUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.48s forwards;
}
.slide-active .anim-fade-up:nth-child(5) {
  animation: slideTextUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* Linear Slide Timer Progress */
@keyframes slideProgressTimer {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.slide-timer-active {
  animation: slideProgressTimer 6.5s linear forwards;
}

/* Custom Buttons */
.btn-gold-glow {
  background: #F2A71B;
  color: #06241B;
  font-weight: 800;
  border-radius: 8px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(242, 167, 27, 0.35);
}

.btn-gold-glow:hover {
  background: #d99210;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(242, 167, 27, 0.5);
  color: #06241B;
}

.btn-glass-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-glass-outline:hover {
  background: #FFFFFF;
  color: #0B3D2E;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-primary-dark {
  background-color: #0B3D2E;
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(11, 61, 46, 0.25);
}

.btn-primary-dark:hover {
  background-color: #06241B;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(11, 61, 46, 0.35);
}

/* Card Hover Effects */
.program-box {
  background: #FFFFFF;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.program-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(11, 61, 46, 0.12);
  border-color: rgba(242, 167, 27, 0.3);
}

.program-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fef8ec;
  color: #F2A71B;
  border: 2px solid rgba(242, 167, 27, 0.3);
  transition: all 0.3s ease;
}

.program-box:hover .program-icon-badge {
  background-color: #F2A71B;
  color: #ffffff;
  transform: scale(1.08) rotate(5deg);
}

.about-blob-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.about-blob-svg-shape {
  clip-path: url(#about-blob-clip);
  -webkit-clip-path: url(#about-blob-clip);
}

.about-blob-bg-shape {
  clip-path: url(#about-blob-bg-clip);
  -webkit-clip-path: url(#about-blob-bg-clip);
}

.floating-goal-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(11, 61, 46, 0.25);
  border: 1px solid rgba(242, 167, 27, 0.3);
}

.stat-icon-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #F2A71B;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.stat-icon-ring::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(242, 167, 27, 0.4);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF7F0;
}
::-webkit-scrollbar-thumb {
  background: #0B3D2E;
  border-radius: 4px;
}

/* Homepage about section — matched to the supplied reference. */
.home-about-v2 {
  padding: 0 !important;
}

.home-about-v2 > div:first-child {
  display: none;
}

.home-about-v2 > div:nth-child(2) {
  max-width: 1280px;
  padding-left: clamp(24px, 4.9vw, 64px);
  padding-right: 0;
}

.home-about-v2 > div:nth-child(2) > div {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  gap: 0;
  align-items: center;
}

.home-about-v2 > div:nth-child(2) > div > div:first-child {
  padding: 26px clamp(18px, 3vw, 44px) 26px 0;
}

.home-about-v2 > div:nth-child(2) > div > div:first-child > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0;
  margin-bottom: 0;
}

.home-about-v2 > div:nth-child(2) > div > div:first-child > div:first-child {
  margin-bottom: 8px;
}

.home-about-v2 > div:nth-child(2) > div > div:first-child > div:first-child span {
  color: #c9830c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.home-about-v2 h2 {
  margin: 0;
  color: #06241b;
  font-size: clamp(28px, 2.7vw, 39px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.14;
}

.home-about-v2 h2 + p {
  max-width: 550px;
  margin-top: 14px !important;
  color: #4a4f4d;
  font-size: clamp(12px, 1.02vw, 15px);
  line-height: 1.52;
}

.home-about-v2 h2 + p + div {
  padding-top: 0;
  margin-top: 15px !important;
}

.home-about-v2 h2 + p + div a {
  min-height: 42px;
  padding: 10px 23px;
  border-radius: 7px;
  background: #05603e;
  box-shadow: 0 7px 16px rgba(5, 96, 62, .16);
  font-size: 12px;
}

.home-about-v2 h2 + p + div a:hover {
  background: #043f2d;
}

.home-about-v2 h2 + p + div + div {
  gap: 0;
  max-width: 540px;
  margin-top: 20px !important;
  padding-top: 0;
  border-top: 0;
}

.home-about-v2 h2 + p + div + div > div {
  padding: 0 12px;
  text-align: center;
}

.home-about-v2 h2 + p + div + div > div:first-child {
  padding-left: 0;
}

.home-about-v2 h2 + p + div + div > div:last-child {
  padding-right: 0;
}

.home-about-v2 h2 + p + div + div > div + div {
  border-left: 1px solid #e5e9e7;
}

.home-about-v2 h2 + p + div + div > div > div {
  justify-content: center;
  width: auto;
  height: 29px;
}

.home-about-v2 h2 + p + div + div svg {
  width: 28px;
  height: 28px;
  color: #e79a0b;
}

.home-about-v2 h2 + p + div + div h3 {
  margin-top: 6px;
  color: #33443f;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.home-about-v2 h2 + p + div + div h3 span {
  color: inherit;
  font-weight: inherit;
}

.home-about-v2__visual {
  align-self: stretch;
  min-width: 0;
  padding-top: 0 !important;
}

.home-about-v2__visual > :not(.home-about-v2__composition) {
  display: none !important;
}

.home-about-v2__composition {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: center right;
}

@media (max-width: 720px) {
  .home-about-v2 {
    padding: 34px 0 26px !important;
  }

  .home-about-v2 > div:nth-child(2) {
    width: min(100% - 36px, 560px);
    padding: 0;
  }

  .home-about-v2 > div:nth-child(2) > div {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-about-v2 > div:nth-child(2) > div > div:first-child {
    padding: 0;
  }

  .home-about-v2 h2 {
    font-size: clamp(29px, 8vw, 38px);
  }

  .home-about-v2 h2 + p {
    font-size: 14px;
  }

}

@media (min-width: 721px) {
  .home-about-v2 > div:nth-child(2) > div > div:first-child {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .home-about-v2 h2 {
    font-size: clamp(25px, 2.35vw, 36px);
  }

  .home-about-v2 h2 + p {
    margin-top: 11px !important;
  }

  .home-about-v2 h2 + p + div {
    margin-top: 12px !important;
  }

  .home-about-v2 h2 + p + div a {
    min-height: 32px;
    padding: 8px 18px;
    font-size: 10px;
  }

  .home-about-v2 h2 + p + div + div {
    margin-top: 14px !important;
  }

  .home-about-v2 h2 + p + div + div > div > div {
    height: 25px;
  }

  .home-about-v2 h2 + p + div + div svg {
    width: 25px;
    height: 25px;
  }

  .home-about-v2__composition {
    width: 96%;
    height: auto;
    margin-left: auto;
  }
}
@media (max-width: 720px) {
  .home-about-v2 {
    max-width: 100vw;
  }

  .home-about-v2 > div:nth-child(2) {
    width: calc(100% - 36px);
    max-width: 560px;
  }

  .home-about-v2 > div:nth-child(2) > div > div:first-child {
    width: 100%;
    min-width: 0;
  }

  .home-about-v2 h2 {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 34px);
    overflow-wrap: break-word;
  }

  .home-about-v2 h2 + p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home-about-v2 h2 + p + div + div {
    width: 100%;
    min-width: 0;
  }

  .home-about-v2__visual {
    margin: 0;
  }

  .home-about-v2__composition {
    width: 100%;
    height: auto;
    max-height: none;
  }
}
/* Keep the About image beside the copy on narrow screens. */
@media (max-width: 720px) {
  .home-about-v2 {
    padding: 24px 0 !important;
  }

  .home-about-v2 > div:nth-child(2) {
    width: calc(100% - 24px);
  }

  .home-about-v2 > div:nth-child(2) > div {
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    gap: 0;
    align-items: center;
  }

  .home-about-v2 > div:nth-child(2) > div > div:first-child {
    padding: 0 10px 0 0;
  }

  .home-about-v2 h2 {
    font-size: clamp(18px, 4.8vw, 25px);
    line-height: 1.16;
  }

  .home-about-v2 h2 + p {
    margin-top: 8px !important;
    font-size: clamp(9px, 2.5vw, 12px);
    line-height: 1.45;
  }

  .home-about-v2 h2 + p + div {
    margin-top: 9px !important;
  }

  .home-about-v2 h2 + p + div a {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 8px;
    white-space: nowrap;
  }

  .home-about-v2 h2 + p + div + div {
    margin-top: 11px !important;
  }

  .home-about-v2 h2 + p + div + div > div {
    padding: 0 3px;
  }

  .home-about-v2 h2 + p + div + div > div > div {
    height: 20px;
  }

  .home-about-v2 h2 + p + div + div svg {
    width: 20px;
    height: 20px;
  }

  .home-about-v2 h2 + p + div + div h3 {
    margin-top: 4px;
    font-size: 7px;
  }

  .home-about-v2__visual {
    align-self: center;
    min-width: 0;
  }

  .home-about-v2__composition {
    width: 100%;
    height: auto;
  }
}
/* Prevent Tailwind's 12-column span utility from forcing the two-column About layout into two rows. */
.home-about-v2 > div:nth-child(2) > div > div {
  grid-column: auto !important;
}
/* Extra vertical breathing room for the homepage About section. */
.home-about-v2 {
  padding-top: 42px !important;
  padding-bottom: 42px !important;
}

@media (max-width: 720px) {
  .home-about-v2 {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }
}
