:root{
    --green-deep:#0B3D2E;
    --green-mid:#144E3B;
    --green-line: rgba(255,255,255,0.14);
    --gold:#C9A227;
    --gold-bright:#E1BC3F;
    --ink:#16241D;
    --muted:#5B685F;
    --parchment:#F4EEDA;
    --paper:#FFFFFF;
    --radius:14px;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    font-family:'Inter', sans-serif;
    color:var(--ink);
    background:var(--paper);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{
    font-family:'Cormorant Garamond', serif;
    font-weight:600;
    margin:0;
    letter-spacing:0.01em;
  }
  p{margin:0;}
  a{color:inherit; text-decoration:none;}
  img{max-width:100%; display:block;}
  .wrap{
    max-width:1160px;
    margin:0 auto;
    padding:0 28px;
  }
  :focus-visible{
    outline:2px solid var(--gold-bright);
    outline-offset:3px;
  }

  /* ---------- NAV ---------- */
  header{
    position:sticky; top:0; z-index:50;
    background:rgba(11,61,46,0.96);
    backdrop-filter:blur(6px);
  }
  .nav{
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 28px;
    max-width:1160px; margin:0 auto;
    position:relative;
  }
  .brand{
    display:flex; align-items:center; gap:10px;
    font-family:'Cormorant Garamond', serif;
    font-size:1.5rem; font-weight:700; color:#fff;
  }
  .brand .mark{
    width:36px; height:36px;
    object-fit:contain;
  }
  .nav-links{
    display:flex; align-items:center; gap:28px;
    font-size:0.96rem; color:rgba(255,255,255,0.88);
  }
  .nav-links a{ transition:color .15s ease; }
  .nav-links a:hover{ color:var(--gold-bright); }
  .nav-cta{
    background:var(--gold);
    color:var(--green-deep) !important;
    padding:10px 20px;
    border-radius:100px;
    font-weight:600;
    font-size:0.92rem;
  }
  .nav-cta:hover{ background:var(--gold-bright); }
  .nav-toggle{ display:none; }

  @media (max-width:820px){
    .nav-links{
      display:none;
      position:absolute; top:100%; left:0; right:0;
      background:var(--green-deep);
      flex-direction:column; align-items:flex-start;
      padding:20px 28px 26px; gap:18px;
      border-top:1px solid var(--green-line);
      box-shadow:0 10px 20px rgba(0,0,0,0.2);
    }
    .nav-links.open{ display:flex; }
    .nav-toggle{
      display:block; background:none; border:none;
      color:#fff; font-size:1.6rem; cursor:pointer; line-height:1;
    }
  }

  /* ---------- HERO ---------- */
  .hero{
    background:
      radial-gradient(ellipse 900px 500px at 15% -10%, rgba(201,162,39,0.16), transparent 60%),
      var(--green-deep);
    color:#fff;
    padding:60px 0 40px;
    overflow:hidden;
  }
  .hero-grid{
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    align-items:center;
    gap:40px;
  }
  .kicker{
    color:var(--gold-bright);
    font-family:'Cormorant Garamond', serif;
    font-style:italic;
    font-size:1.15rem;
    margin-bottom:18px;
  }
  .hero h1{
    font-size:clamp(2.2rem, 4.6vw, 3.6rem);
    line-height:1.08;
    color:#fff;
  }
  .hero-sub{
    margin-top:22px;
    font-size:1.08rem;
    color:rgba(255,255,255,0.82);
    max-width:46ch;
  }
  .hero-actions{
    margin-top:34px;
    display:flex; gap:16px; flex-wrap:wrap;
  }
  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:14px 26px;
    border-radius:100px;
    font-weight:600;
    font-size:0.98rem;
    transition:transform .15s ease, background .15s ease;
  }
 .btn-primary{
    background:var(--gold);
    color:var(--green-deep);
  }
  .btn-primary:hover{ background:var(--gold-bright); transform:translateY(-2px); box-shadow:0 10px 24px rgba(201,162,39,0.35); }
  .btn-primary{ position:relative; overflow:hidden; }
  .btn-primary::after{
    content:"";
    position:absolute; top:0; left:-60%;
    width:40%; height:100%;
    background:linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
    transform:skewX(-20deg);
    transition:left .6s ease;
  }
  .btn-primary:hover::after{ left:130%; }
  .btn-ghost{
    border:1px solid rgba(255,255,255,0.35);
    color:#fff;
  }
  .btn-ghost:hover{ border-color:var(--gold-bright); color:var(--gold-bright); }

  .hero-stats{
    display:flex; gap:34px;
    margin-top:52px;
    padding-top:28px;
    border-top:1px solid var(--green-line);
    flex-wrap:wrap;
  }
  .hero-stats div strong{
    display:block;
    font-family:'Cormorant Garamond', serif;
    font-size:1.9rem;
    color:var(--gold-bright);
  }
  .hero-stats div span{
    font-size:0.85rem;
    color:rgba(255,255,255,0.7);
  }

  /* .tree-stage{
    position:relative;
    display:flex; align-items:flex-end; justify-content:center;
    height:380px;
  }
  .tree-stage svg{ width:100%; max-width:380px; height:auto; };
  .tree-glow{
    position:absolute;
    width:360px; height:360px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(225,188,63,0.28), transparent 70%);
    animation:pulseGlow 4.5s ease-in-out infinite;
  }
  
  @media (max-width:820px){
    .hero-grid{ grid-template-columns:1fr; gap:30px; }
    .tree-stage{ height:280px; }
  } */

/* tree illustration */
  .tree-stage{
    position:relative;
    display:flex; align-items:center; justify-content:center;
    height:440px;
  }
  .tree-glow{
    position:absolute;
    width:360px; height:360px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(225,188,63,0.28), transparent 70%);
    animation:pulseGlow 4.5s ease-in-out infinite;
  }
  .hero-tree{
    position:relative;
    width:100%; max-width:340px; height:auto;
    transform-origin:bottom center;
    animation:
      growIn 1.4s cubic-bezier(.2,.8,.2,1) both,
      floatTree 5s ease-in-out 1.4s infinite;
  }
  @keyframes growIn{
    0%{ transform:scale(0.75) translateY(24px); opacity:0; }
    100%{ transform:scale(1) translateY(0); opacity:1; }
  }
  @keyframes floatTree{
    0%, 100%{ transform:translateY(0); }
    50%{ transform:translateY(-14px); }
  }
  @keyframes pulseGlow{
    0%, 100%{ opacity:0.6; transform:scale(1); }
    50%{ opacity:1; transform:scale(1.08); }
  }
  @media (prefers-reduced-motion:reduce){
    .hero-tree, .tree-glow{ animation:none !important; opacity:1; transform:none; }
  }


  /* ---------- SECTION HEADERS ---------- */
  .section{ padding:80px 0; }
  .section-head{
    max-width:640px;
    margin-bottom:48px;
  }
  .section-head h2{
    font-size:clamp(1.9rem, 3vw, 2.5rem);
    color:var(--green-deep);
    line-height:1.15;
  }
  .section-head p{
    margin-top:16px;
    color:var(--muted);
    font-size:1.05rem;
  }
  .on-dark .section-head h2{ color:#fff; }
  .on-dark .section-head p{ color:rgba(255,255,255,0.72); }

  /* ---------- ABOUT ---------- */
  .about{
    display:grid;
    grid-template-columns:0.9fr 1.1fr;
    gap:48px;
    align-items:start;
  }
  .about-quote{
    background:var(--parchment);
    border-radius:var(--radius);
    padding:34px;
  }
  .about-quote .arabic{
    font-size:1.9rem;
    color:var(--green-deep);
    font-weight:700;
    margin-bottom:10px;
  }
  .about-quote p{
    color:var(--muted);
    font-size:0.98rem;
  }
  .about-body p{
    color:var(--ink);
    font-size:1.06rem;
    margin-bottom:20px;
  }
  .about-body p:last-child{ margin-bottom:0; }
  .about-body .lede{
    font-family:'Cormorant Garamond', serif;
    font-size:1.4rem;
    color:var(--green-deep);
    font-weight:600;
    line-height:1.4;
  }

  .mv-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin-top:44px;
  }
  .mv-card{
    border:1px solid #E6E2D6;
    border-radius:var(--radius);
    padding:28px;
  }
  .mv-card h3{
    font-size:1.35rem;
    color:var(--green-deep);
    margin-bottom:10px;
  }
  .mv-card p{ color:var(--muted); font-size:0.98rem; }

  @media (max-width:820px){
    .about{ grid-template-columns:1fr; gap:32px; }
    .mv-grid{ grid-template-columns:1fr; }
  }

  /* ---------- FOUNDER ---------- */
  .founder{ background:var(--parchment); }
  .founder-card{
    display:flex; align-items:center; gap:32px;
    background:var(--paper);
    border:1px solid #E6E2D6;
    border-radius:var(--radius);
    padding:36px;
    max-width:760px;
    margin:0 auto;
  }
  .founder-photo{
    flex:none;
    width:104px; height:104px;
    border-radius:50%;
    background:var(--green-deep);
    color:var(--gold-bright);
    display:flex; align-items:center; justify-content:center;
    font-family:'Cormorant Garamond', serif;
    font-size:2.4rem; font-weight:700;
  }
  .founder-body h3{
    color:var(--green-deep);
    font-size:1.4rem;
  }
  .founder-role{
    display:block;
    color:var(--gold);
    font-weight:600;
    font-size:0.88rem;
    margin:4px 0 12px;
    text-transform:uppercase;
    letter-spacing:0.04em;
  }
  .founder-body p{ color:var(--muted); font-size:0.98rem; }
  @media (max-width:600px){
    .founder-card{ flex-direction:column; text-align:center; padding:30px 24px; }
  }

  /* ---------- VALUES ---------- */
  .values{ background:var(--green-deep); color:#fff; }
  .values-grid{
    display:grid;
    /* grid-template-columns:repeat(5, 1fr); */
    gap:1px;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  /* gap: 10px; Space between cards */
  /* width: 100%; */
  /* padding: 20px; */
  box-sizing: border-box;
    background:var(--green-line);
    border:1px solid var(--green-line);
    border-radius:var(--radius);
    overflow:hidden;
  }
  .value-card{
    background:var(--green-deep);
    padding:34px 22px;
  }
  .value-card h4{
    color:var(--gold-bright);
    font-size:1.2rem;
    margin-bottom:10px;
  }
  .value-card p{
    color:rgba(255,255,255,0.74);
    font-size:0.9rem;
  }
  @media (max-width:900px){ .values-grid{ grid-template-columns:1fr 1fr; } }
  @media (max-width:560px){ .values-grid{ grid-template-columns:1fr; } }

  /* ---------- COURSES / PROGRAMMES ---------- */
  .courses-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    gap:26px;
  }
  .course-card{
    border:1px solid #E6E2D6;
    border-radius:var(--radius);
    padding:30px 26px;
    transition:border-color .15s ease, box-shadow .15s ease;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
  }
  .course-card:hover{
    border-color:var(--gold);
    box-shadow:0 10px 28px rgba(11,61,46,0.08);
  }
  .course-icon{
    width:46px; height:46px;
    border-radius:50%;
    background:var(--parchment);
    display:flex; align-items:center; justify-content:center;
    color:var(--green-deep);
    margin-bottom:18px;
  }
  .course-icon svg{ width:22px; height:22px; }
  .course-card h3{
    font-size:1.3rem;
    color:var(--green-deep);
    margin-bottom:8px;
  }
  .course-card p{
    color:var(--muted);
    font-size:0.95rem;
    margin-bottom:14px;
  }
  .course-age{
    display:inline-block;
    font-size:0.78rem;
    color:var(--green-deep);
    background:var(--parchment);
    padding:5px 12px;
    border-radius:100px;
    font-weight:600;
    align-self:flex-start;
  }

  /* ---------- HOW IT WORKS ---------- */
  .how{ background:var(--parchment); }
  .how-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
  }
  .how-step .num{
    font-family:'Cormorant Garamond', serif;
    font-size:2.6rem;
    font-weight:700;
    color:var(--gold);
    margin-bottom:8px;
    display:block;
  }
  .how-step h3{
    font-size:1.2rem;
    color:var(--green-deep);
    margin-bottom:8px;
  }
  .how-step p{ color:var(--muted); font-size:0.95rem; }
  @media (max-width:820px){
    .how-grid{ grid-template-columns:1fr; gap:32px; }
  }

  /* ---------- CTA BANNER ---------- */
  .cta-banner{
    background:var(--green-deep);
    color:#fff;
    border-radius:24px;
    padding:56px 40px;
    max-width:1160px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    position:relative;
    overflow:hidden;
  }
  .cta-banner h2{
    font-size:clamp(1.7rem, 3vw, 2.2rem);
    color:#fff;
    max-width:20ch;
  }
  .cta-banner p{
    color:rgba(255,255,255,0.75);
    margin-top:12px;
    max-width:38ch;
  }
  @media (max-width:760px){
    .cta-banner{ flex-direction:column; align-items:flex-start; padding:40px 24px; }
  }

  /* ---------- FOOTER ---------- */
  footer{
    background:var(--green-deep);
    color:rgba(255,255,255,0.7);
    padding:64px 0 28px;
    margin-top:1em;
  }
  .footer-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr 1fr;
    gap:36px;
    padding-bottom:40px;
    border-bottom:1px solid var(--green-line);
  }
  .footer-brand{
    font-family:'Cormorant Garamond', serif;
    font-size:1.4rem;
    color:#fff;
    margin-bottom:12px;
    display:flex; align-items:center; gap:10px;
  }
  .footer-grid p{ font-size:0.92rem; line-height:1.7; }
  .footer-grid h4{
    color:#fff;
    font-size:0.95rem;
    font-family:'Inter', sans-serif;
    font-weight:600;
    margin-bottom:16px;
  }
  .footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
  .footer-grid a{ font-size:0.92rem; transition:color .15s ease; }
  .footer-grid a:hover{ color:var(--gold-bright); }
  
  .social-icons{
    display:flex;
    gap:14px;
    margin-top:16px;
  }
  .social-icons a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    background:rgba(255,255,255,0.08);
    border-radius:50%;
    color:#fff;
    transition:background .2s ease, color .2s ease;
  }
  .social-icons a:hover{
    background:var(--gold);
    color:var(--green-deep);
  }
  .social-icons svg{ width:18px; height:18px; fill:currentColor; }

  .footer-bottom{
    display:flex; justify-content:space-between; align-items:center;
    padding-top:24px; font-size:0.82rem; flex-wrap:wrap; gap:12px;
  }
  @media (max-width:820px){
    .footer-grid{ grid-template-columns:1fr 1fr; }
  }
  @media (max-width:500px){
    .footer-grid{ grid-template-columns:1fr; }
  }

  /* WhatsApp Float */
  /* .wa-float{
    position:fixed; bottom:24px; right:24px; z-index:60;
    width:54px; height:54px; border-radius:50%;
    background:#25D366;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 8px 22px rgba(0,0,0,0.25);
    transition:transform .2s ease;
  }
  /* .wa-float:hover{ transform:scale(1.08); } */
  /* .wa-float svg{ width:26px; height:26px; fill:#fff; } */ 

  .wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-decoration: none;
  cursor: pointer;
  
  /* Combines the continuous glowing aura and the vibrating shift movement */
  animation: whatsapp-glow 2s infinite ease-in-out, 
             whatsapp-vibrate 4s infinite linear;
}

/* 1. Continuous Glowing Ring Aura */
@keyframes whatsapp-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    /* Radiates a soft outer ring out to 15px */
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* 2. Rapid Vibration Jitter with Pauses */
@keyframes whatsapp-vibrate {
  /* 0% to 10%: Rapid physical shaking */
  0% { transform: translate(0, 0) rotate(0deg); }
  2% { transform: translate(-2px, 1px) rotate(-1deg); }
  4% { transform: translate(1px, -1px) rotate(1deg); }
  6% { transform: translate(-1px, 2px) rotate(0deg); }
  8% { transform: translate(2px, 1px) rotate(1deg); }
  10% { transform: translate(0, 0) rotate(0deg); }
  
  /* 10% to 100%: Holds perfectly still so it isn't annoying */
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Gentle zoom interaction on manual hover */
.wa-float:hover {
  transform: scale(1.08) !important;
  background-color: #20ba5a;
}


/* Targets any element where the Class OR the ID contains "card" */
[class*="card"], 
[id*="card"] {
  /* 1. Base Styles */
  /* background-color:var(--green-deep); */
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* 2. Responsive Sizing (No media queries needed!) */
  width: 100%; 
  max-width: 400px; /* Prevents it from getting too huge on desktop */
  
  /* Fluid padding: scales smoothly between 16px (mobile) and 24px (desktop) */
  padding: clamp(1rem, 3vw, 1.5rem); 
  
  /* Ensures padding doesn't accidentally increase the element's width */
  box-sizing: border-box; 
}

/* Hover Effect for all matched classes/IDs */
[class*="card"]:hover, 
[id*="card"]:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}
