/* =========================================
   FAIRYTALES — CURRICULUM PAGE CSS
   ========================================= */

/* ── Shared variables (extend from global stylesheet) ── */
:root {
  --purple-dark:   #3b1f6b;
  --purple-mid:    #6b3fa0;
  --pink:          #e91e8c;
  --teal:          #1aaa8c;
  --pink-light-bg: #fdf4f8;
  --section-bg:    #fdf6fb;   /* very light blush used across page */
  --white:         #ffffff;
  --text-body:     #4a4a5a;
  --text-muted:    #7a7a8a;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Playfair Display', Georgia, serif;
}


/* =========================================
   SECTION 1 — HERO / INTRO
   ========================================= */
.curriculum_hero {
  background: #FFF8FA;
  padding: 80px 0 60px;
  text-align: center;
}

.curriculum_hero .heading {
  max-width: 870px;
  margin: 0 auto;
}

/* Badge */
.curriculum_hero .top_txt_badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #49454F;
  background: #FFD8EC;
  padding: 8px 24px;
  border-radius: 9999px;
  margin-bottom: 28px;
}

/* H1 */
.curriculum_hero h1 {
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 700;
  line-height: 1.1;
  color: #1F1A1C;
  margin: 0 0 24px;
}

.curriculum_hero h1 .highlight {
  color: #E040A0;
  font-weight: 400;
}

/* Subtext */
.curriculum_hero p {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 28px;
  color: #53434A;
  /* max-width: 560px; */
  margin: 0 auto;
}


/* =========================================
   SECTION 2 — PROGRAMS GRID
   ========================================= */
.programs {
  background: var(--section-bg);
  padding: 20px 0 80px;
}

/* 1. Grid Container */
.programs_grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12-column system for max flexibility */
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
}

/* 2. Base Card Style */
.program_card {
    height: 580px; /* Fixed height as requested */
    background: #ffffff;
    border-radius: 40px; /* Playful rounded corners */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0e8f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program_card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 30px 50px rgba(90, 44, 160, 0.1);
}

/* 3. Image Section */
.program_card .program_image {
    width: 100%;
    height: 320px; /* Fixed height for the image area */
    flex-shrink: 0;
    position: relative;
    background: #e0dcea;
    /* The design fade-out effect */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.program_card .program_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 4. Body Content */
.program_card .program_body {
    padding: 30px 35px;
    flex-grow: 1; /* Fills the rest of the 592px */
    display: flex;
    flex-direction: column;
}

/* 5. Title & Icon Row */
.program_title_row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.program_icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--icon-bg, #f3e9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.program_icon img {
    width: 24px;
    height: 24px;
}

.program_title_row h3 {
    font-size: 30px;
    font-weight: 700;
    color: #602C7F;
    margin: 0;
}

/* 6. Text & Tags */
.program_card .program_body > p {
    font-size: 18px;
    line-height: 1.7;
    color: #53434A;
    margin: 0 0 20px;
    line-height: 29.25px;
}

.program_tags {
    margin-top: auto; /* Pushes tags to the very bottom of the 592px card */
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.program_tags .tag {
    font-size: 14px;
    font-weight: bold;
    color: #5a2ca0;
    background: #f3e9ff; /* Default light purple bg */
    border-radius: 9999px;
    padding: 8px 20px;
    white-space: nowrap;
}

/* 7. Column Width Logic (Span 7 = ~705px, Span 5 = ~494px) */
.program_card:nth-child(1), 
.program_card:nth-child(4) {
    grid-column: span 7;
}

.program_card:nth-child(2), 
.program_card:nth-child(3) {
    grid-column: span 5;
}

.program_card:nth-child(1) .tag, .program_card:nth-child(4) .tag{color:#002021}
.program_card:nth-child(2) .tag{color:#3D0024}
.program_card:nth-child(3) .tag{color:#25003C}

/* 8. Mobile Responsiveness */
@media (max-width: 991px) {
    .program_card:nth-child(n) {
        grid-column: span 12; /* Full width on tablet/mobile */
        height: auto;
        min-height: 500px;
    }
    
    .program_card .program_image {
        height: 250px;
    }
}
/* =========================================
   SECTION 3 — CURRICULUM PILLARS
   ========================================= */
.curriculum_pillars {
  background: var(--section-bg);
  padding: 80px 0 100px;
}

/* Header row */
.pillars_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.pillars_header_left h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 12px;
}

.pillars_header_left p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 460px;
  margin: 0;
}

/* Nav icon circles */
.pillars_header_icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  padding-top: 6px;
}

.pillar_nav_icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--nav-bg, #999);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pillar_nav_icon:hover {
  opacity: 0.85;
}

/* Pillars grid */
.pillars_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Pillar card */
.pillar_card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 28px 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--pillar-bar, #ccc);
}

/* Decorative watermark icon */
.pillar_card .pillar_bg_icon{
    position: absolute;
    top: -2px;
    right: 0px;
    pointer-events: none;
}

.pillar_card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--pillar-color, #333);
  margin: 0 0 14px;
  position: relative;
}

.pillar_card p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 26px;
  color: #53434A;
  margin: 0;
  position: relative;
}


/* =========================================
   SECTION 4 — SAFE SEPARATION POLICY
   ========================================= */
.separation_policy {
  background: var(--white);
  padding: 80px 0 100px;
}

.separation_wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: #fdf6fb;
  border-radius: 28px;
  padding: 60px 56px;
}

/* Left */
.separation_left h2 {
  font-family: var(--font-display);
  font-size: 49px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.15;
  margin: 0 0 40px;
  max-width: 397px;
}

.separation_left h2 .highlight {
  color: #E040A0;
  font-weight: 400;
}

/* Policy items */
.policy_items {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.policy_item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

/* Icon box */
.policy_icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--picon-bg, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy_txt h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--pink);
  margin: 0 0 8px;
}

.policy_txt p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: #53434A;
  margin: 0;
}

/* Right — image + quote */
.separation_right {
  position: relative;
}

.separation_image_wrap {
  position: relative;
}

.separation_image_wrap img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: block;
}

/* Quote overlay card */
.separation_quote {
  position: absolute;
  bottom: -20px;
  right: -30px;
  background: #602C7F;
  border-radius: 18px;
  padding: 28px 28px 24px;
  max-width: 340px;
}

.separation_quote p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 29.25px;
  color: var(--white);
  margin: 0 0 16px;
}

.separation_quote span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #FFD8EC;
}


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
  .programs_grid {
    grid-template-columns: 1fr;
  }

  .pillars_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pillars_header {
    flex-direction: column;
  }

  .separation_wrap {
    grid-template-columns: 1fr;
    padding: 40px 28px 60px;
    gap: 40px;
  }

  .separation_quote {
    position: static;
    margin-top: 20px;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .curriculum_hero {
    padding: 56px 0 40px;
  }

  .programs {
    padding: 0 0 56px;
  }

  .curriculum_pillars,
  .separation_policy {
    padding: 56px 0 64px;
  }

  .program_card .program_body {
    padding: 22px 20px 24px;
  }
}