/* Programs Page Custom Styles */
        .program-card {
            background: #ffffff;
            border-radius: 20px;
            padding: 32px 26px;
            height: 100%;
            border: 1px solid #f0edf6;
            box-shadow: 0 8px 24px rgba(112, 22, 126, 0.05);
            transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .program-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, #70167E, #F7A300);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .program-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 18px 36px rgba(112, 22, 126, 0.12);
            border-color: rgba(112, 22, 126, 0.2);
        }

        .program-card:hover::before {
            opacity: 1;
        }

        .program-badge {
            display: inline-block;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 5px 12px;
            border-radius: 30px;
            background: #f4ecf8;
            color: #70167E;
            margin-bottom: 16px;
            align-self: flex-start;
        }

        .program-icon-box {
            width: 64px;
            height: 64px;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            font-size: 26px;
            transition: transform 0.3s ease;
        }

        .program-card:hover .program-icon-box {
            transform: scale(1.1) rotate(4deg);
        }

        .icon-bg-1 {
            background: #fdf2f4;
            color: #b83747;
        }

        .icon-bg-2 {
            background: #fef7e8;
            color: #f7a300;
        }

        .icon-bg-3 {
            background: #f3eafd;
            color: #70167E;
        }

        .icon-bg-4 {
            background: #e8f9fd;
            color: #0284c7;
        }

        .icon-bg-5 {
            background: #edfbf2;
            color: #16a34a;
        }

        .icon-bg-6 {
            background: #fff1f2;
            color: #e11d48;
        }

        .icon-bg-7 {
            background: #f5f3ff;
            color: #6366f1;
        }

        .icon-bg-8 {
            background: #ecfdf5;
            color: #059669;
        }

        .icon-bg-9 {
            background: #fff7ed;
            color: #ea580c;
        }

        .program-title {
            font-size: 21px;
            font-weight: 700;
            color: #1a2238;
            margin-bottom: 12px;
        }

        .program-desc {
            font-size: 15px;
            color: #555555;
            line-height: 1.65;
            margin-bottom: 18px;
            flex-grow: 1;
        }

        .program-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 600;
            color: #70167E;
            background: #faf7fc;
            padding: 6px 12px;
            border-radius: 8px;
            border: 1px dashed rgba(112, 22, 126, 0.2);
        }

        /* Mobile View: Icon & Content Side-by-Side */
        @media (max-width: 767px) {
            .program-card {
                display: grid;
                grid-template-columns: 56px 1fr;
                column-gap: 16px;
                row-gap: 4px;
                padding: 22px 18px;
                border-radius: 18px;
                align-items: start;
            }

            .program-icon-box {
                grid-column: 1;
                grid-row: 1 / span 4;
                width: 56px;
                height: 56px;
                font-size: 22px;
                border-radius: 14px;
                margin-bottom: 0;
                align-self: center;
            }

            .program-badge {
                grid-column: 2;
                grid-row: 1;
                font-size: 11px;
                font-weight: 700;
                padding: 4px 10px;
                margin-bottom: 6px;
                align-self: start;
                width: fit-content;
            }

            .program-title {
                grid-column: 2;
                grid-row: 2;
                font-size: 18px;
                font-weight: 700;
                margin-bottom: 6px;
                line-height: 1.3;
            }

            .program-desc {
                grid-column: 2;
                grid-row: 3;
                font-size: 13.5px;
                line-height: 1.55;
                color: #555555;
                margin-bottom: 12px;
            }

            .program-card>.mt-auto {
                grid-column: 2;
                grid-row: 4;
                margin-top: 0 !important;
            }

            .program-pill {
                font-size: 11.5px;
                padding: 5px 10px;
                max-width: 100%;
                word-break: break-word;
            }
        }

        @media (max-width: 420px) {
            .program-card {
                grid-template-columns: 48px 1fr;
                column-gap: 12px;
                padding: 16px 14px;
                border-radius: 16px;
            }

            .program-icon-box {
                width: 48px;
                height: 48px;
                font-size: 19px;
                border-radius: 12px;
            }

            .program-badge {
                font-size: 10px;
                padding: 3px 8px;
                margin-bottom: 4px;
            }

            .program-title {
                font-size: 16.5px;
                margin-bottom: 4px;
            }

            .program-desc {
                font-size: 12.5px;
                line-height: 1.45;
                margin-bottom: 10px;
            }

            .program-pill {
                font-size: 10.5px;
                padding: 4px 8px;
            }
        }

        /* Montessori Quote Banner */
        .montessori-quote-card {
            background: linear-gradient(135deg, #70167E 0%, #4a0c54 100%);
            border-radius: 24px;
            padding: 50px 40px;
            color: #ffffff;
            position: relative;
            overflow: hidden;
            box-shadow: 0 20px 45px rgba(112, 22, 126, 0.25);
        }

        .montessori-quote-card::after {
            content: "❝";
            position: absolute;
            right: 25px;
            bottom: -40px;
            font-size: 180px;
            color: rgba(255, 255, 255, 0.07);
            line-height: 1;
            pointer-events: none;
            font-family: Georgia, serif;
        }

        .quote-lead {
            font-size: 24px;
            line-height: 1.55;
            font-style: italic;
            font-weight: 400;
            color: #fff8ef;
            margin-bottom: 20px;
        }

        .quote-author {
            font-size: 18px;
            font-weight: 700;
            color: #F7A300;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .quote-subtext {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.88);
            line-height: 1.7;
            margin-top: 18px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            padding-top: 18px;
        }

        /* Distinctive Feature Cards */
        .difference-card {
            background: #ffffff;
            border-radius: 22px;
            padding: 40px 35px;
            height: 100%;
            border: 1px solid #efe8f5;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
            transition: all 0.3s ease;
        }

        .difference-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 16px 36px rgba(112, 22, 126, 0.09);
        }

        .difference-card h3 {
            font-size: 24px;
            font-weight: 700;
            color: #1a2238;
            margin-bottom: 16px;
        }

        .difference-card p {
            font-size: 16px;
            color: #555;
            line-height: 1.75;
        }

        .highlight-quote {
            font-weight: 600;
            color: #70167E;
            background: #f9f2fb;
            padding: 3px 8px;
            border-radius: 6px;
        }

        /* Recent Events */
        .event-card {
            background: #ffffff;
            border-radius: 20px;
            padding: 35px 30px;
            height: 100%;
            border: 1px solid #f0eaf7;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            position: relative;
        }

        .event-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 35px rgba(112, 22, 126, 0.12);
            border-color: #70167E;
        }

        .event-icon-badge {
            font-size: 34px;
            margin-bottom: 16px;
            display: inline-block;
        }

        .event-tag {
            display: inline-block;
            font-size: 12px;
            font-weight: 700;
            color: #F7A300;
            background: #fff8eb;
            padding: 4px 12px;
            border-radius: 20px;
            margin-bottom: 12px;
        }

        .event-title {
            font-size: 22px;
            font-weight: 700;
            color: #1a2238;
            margin-bottom: 12px;
        }

        .event-desc {
            font-size: 15px;
            color: #555;
            line-height: 1.65;
        }

/* =====================================================================
   MOBILE REVAMP (2026-10-08): Programs page, phones only (below 768px).
   Content unchanged; tablet and desktop unaffected.
   - 9 class cards: 2-column grid (Class 5 full width)
   - 3 Montessori pillars, "Different / What You Get", events: compact
   - trust stats: equal 2 x 2, "Personalized" no longer overflows
   Some sizes are written inline in programs.php, hence the !important.
   To revert: delete this block down to "END MOBILE REVAMP (PROGRAMS)", or
   restore programs.css from
   ~/Downloads/cherrywood-backup-2026-10-08-before-programs-mobile/.
   ===================================================================== */
@media (max-width: 767px) {

  /* ---------- 9 class cards: 2-column grid ---------- */
  .row.g-4:has(> div > .program-card) {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
  }
  .row.g-4 > .col-lg-4:has(> .program-card) {
    width: 50%;
  }
  .row.g-4 > .col-lg-4:has(> .program-card):last-child {
    width: 100%;   /* Class 5 spans the full width */
  }
  .row.g-4 > .col-lg-4:not(:last-child) > .program-card {
    min-height: 294px;   /* all eight half-width cards the same height */
  }
  .program-card {
    display: flex;
    flex-direction: column;
    padding: 14px 12px;
    border-radius: 16px;
  }
  .program-icon-box {
    order: -1;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 10px;
    align-self: flex-start;
  }
  .program-icon-box img {
    width: 26px !important;
    height: 26px !important;
  }
  .program-badge {
    font-size: 9.5px;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    margin-bottom: 8px;
  }
  .program-title {
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .program-desc {
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .program-pill {
    font-size: 10.5px;
    line-height: 1.35;
    padding: 4px 8px;
    gap: 5px;
  }

  /* ---------- 3 Montessori pillars: compact, equal ---------- */
  .row.g-4.mt-40 {
    --bs-gutter-y: 12px;
    margin-top: 28px !important;
  }
  .row.g-4.mt-40 > .col-md-4 > .rounded-4 {
    padding: 16px !important;
    min-height: 122px;
    align-items: center !important;
  }
  .row.g-4.mt-40 > .col-md-4 > .rounded-4 > div:first-child {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
    border-radius: 12px !important;
  }
  .row.g-4.mt-40 h4 {
    font-size: 16.5px !important;
    margin-bottom: 4px !important;
  }
  .row.g-4.mt-40 p {
    font-size: 13.5px !important;
    line-height: 1.5;
  }

  /* ---------- "Different" / "What You Get" cards ---------- */
  .row.g-4.align-items-stretch {
    --bs-gutter-y: 14px;
  }
  .difference-card {
    padding: 22px 20px;
    border-radius: 18px;
  }
  .difference-card > div:first-child {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    font-size: 20px !important;
    margin-bottom: 14px !important;
  }
  .difference-card h3 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .difference-card p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  /* ---------- Trust stats: equal 2 x 2, everything fits ---------- */
  .row.g-3.mt-30 > .col-6 {
    display: flex;
  }
  .row.g-3.mt-30 > .col-6 > .rounded-4 {
    width: 100%;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 8px !important;
  }
  .row.g-3.mt-30 h4 {
    font-size: 21px !important;
    line-height: 1.2;
  }
  .row.g-3.mt-30 span {
    font-size: 12.5px !important;
    line-height: 1.35;
  }

  /* ---------- Recent Events: compact ---------- */
  .row.g-4.justify-content-center:has(.event-card) {
    --bs-gutter-y: 14px;
  }
  .event-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    padding: 20px;
    border-radius: 18px;
  }
  .event-card > * {
    width: 100%;
  }
  .event-card > .event-icon-badge,
  .event-card > div:has(> .event-tag) {
    width: auto;
  }
  .event-icon-badge {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 0;
  }
  .event-tag {
    margin-bottom: 0;
  }
  .event-title {
    font-size: 19px;
    margin: 12px 0 8px;
  }
  .event-desc {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 14px;
  }
}
/* smaller phones: class card text wraps more, so a taller shared height */
@media (max-width: 420px) {
  .row.g-4 > .col-lg-4:not(:last-child) > .program-card {
    min-height: 326px;
  }
}
/* ======================= END MOBILE REVAMP (PROGRAMS) ======================= */
