/* PEARLS PLACES MONTESSORI SCHOOL — responsive landing page */
:root{--purple:#281044;--purple2:#401b68;--violet:#6c32a0;--gold:#d6a844;--gold-light:#f4d98d;--ivory:#fbf8f1;--ink:#251b30;--muted:#706879;--white:#fff;--shadow:0 18px 55px rgba(34,14,56,.13)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;font-family:"DM Sans",sans-serif;color:var(--ink);background:#fff;line-height:1.65}img{display:block;max-width:100%}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.container{width:min(1160px,calc(100% - 44px));margin-inline:auto}.section-pad{padding:100px 0}.announcement{height:36px;background:#1c0b30;color:#f4e7c9;display:flex;align-items:center;justify-content:center;gap:20px;font-size:11px;letter-spacing:.07em;text-transform:uppercase}.announcement a{color:var(--gold-light);font-weight:700}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);box-shadow:0 3px 22px rgba(30,10,45,.07)}.nav{height:84px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;color:var(--purple);line-height:1.1}.brand img{width:54px;height:54px;object-fit:contain}.brand strong{display:block;font-family:"Playfair Display",serif;font-size:17px;letter-spacing:.035em}.brand small{display:block;font-size:9px;letter-spacing:.25em;margin-top:6px;font-weight:700}.nav-links{display:flex;align-items:center;gap:25px;font-size:12px;font-weight:700}.nav-links>a:not(.nav-cta){transition:color .2s}.nav-links>a:hover{color:var(--violet)}.nav-cta{background:var(--purple);color:#fff;padding:12px 17px;border-radius:3px}.nav-cta:hover{background:var(--violet);color:#fff!important}.menu-toggle{display:none;background:none;border:0;color:var(--purple);font-size:23px}
.hero{min-height:680px;height:min(790px,calc(100vh - 120px));position:relative;display:flex;align-items:center;background:var(--purple);overflow:hidden;color:#fff}.hero-video,.hero-overlay{position:absolute;inset:0;width:100%;height:100%}.hero-video{object-fit:cover}.hero-overlay{background:linear-gradient(90deg,rgba(24,8,42,.9) 0%,rgba(34,12,55,.76) 48%,rgba(28,11,45,.25) 100%),linear-gradient(0deg,rgba(24,8,42,.4),transparent 45%)}.hero-content{position:relative;z-index:2;padding-top:30px}.eyebrow{display:inline-flex;align-items:center;gap:9px;color:#916521;font-size:10px;font-weight:700;letter-spacing:.2em;text-transform:uppercase}.eyebrow span{width:25px;height:1px;background:var(--gold)}.eyebrow.light{color:var(--gold-light)}h1,h2,h3,p{margin-top:0}.hero h1{font:700 clamp(46px,6.5vw,82px)/1.07 "Playfair Display",serif;max-width:780px;margin:23px 0}.hero h1 em,h2 em{color:var(--gold-light);font-style:normal}.hero-content>p{max-width:550px;color:#eee7f3;font-size:16px}.hero-actions{display:flex;flex-wrap:wrap;gap:13px;margin-top:30px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:15px 22px;border:1px solid transparent;border-radius:3px;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;cursor:pointer;transition:.25s}.btn-gold{background:linear-gradient(120deg,#c28b2e,#f3d88c);color:#281044}.btn-gold:hover{transform:translateY(-3px);box-shadow:0 10px 25px #d6a84455}.btn-outline{border-color:#ffffff88;color:#fff}.btn-outline:hover{background:#fff;color:var(--purple)}.hero-note{margin-top:55px;color:#f5e7c7;font-size:11px;letter-spacing:.08em}.hero-note i{color:var(--gold);margin-right:8px}.scroll-cue{position:absolute;z-index:2;bottom:25px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:#fff;display:flex;align-items:center;gap:10px}.scroll-cue span{height:30px;width:18px;border:1px solid #fff8;border-radius:20px;position:relative}.scroll-cue span:after{content:"";position:absolute;top:6px;left:7px;width:2px;height:6px;background:var(--gold-light);border-radius:3px}
.intro-grid{display:grid;grid-template-columns:1fr 1fr;gap:85px;align-items:center}.intro-image{position:relative;padding:0 30px 30px 0}.intro-image:before{content:"";position:absolute;right:0;bottom:0;width:75%;height:78%;background:#f0e5f5;z-index:0}.intro-image img{position:relative;z-index:1;width:100%;height:450px;object-fit:cover}.image-stamp{position:absolute;z-index:2;bottom:0;right:0;background:var(--purple);color:#fff;padding:17px 24px;display:grid;text-align:center;box-shadow:var(--shadow)}.image-stamp strong{font:700 25px "Playfair Display";color:var(--gold-light)}.image-stamp small{font-size:9px;letter-spacing:.1em}.intro-copy h2,.section-heading h2,.values-copy h2,.play h2,.payment-copy h2,.location h2,.contact h2{font:700 clamp(36px,4.5vw,54px)/1.12 "Playfair Display",serif;margin:18px 0}.intro-copy h2 em,.section-heading h2 em,.play h2 em,.payment-copy h2 em,.location h2 em{color:var(--violet)}.intro-copy p{color:var(--muted);font-size:14px}.intro-copy .lead{font-size:18px;color:var(--ink);font-weight:600;line-height:1.5}.text-link{display:inline-flex;align-items:center;gap:12px;color:var(--purple);font-weight:700;font-size:12px;margin-top:16px;border-bottom:1px solid var(--gold);padding-bottom:7px}
.purpose{background:var(--ivory);padding:70px 0}.purpose-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.purpose-card{padding:32px;background:#fff;min-height:250px;box-shadow:0 8px 35px rgba(40,16,68,.05)}.purpose-card.featured{background:var(--purple);color:#fff;transform:translateY(-12px)}.round-icon{width:45px;height:45px;border-radius:50%;background:#f6eddc;color:#946a26;display:grid;place-items:center;font-size:17px;margin-bottom:22px}.featured .round-icon{background:#ffffff1b;color:var(--gold-light)}.purpose-card h3{font:700 22px "Playfair Display";margin:10px 0}.purpose-card p{font-size:13px;color:var(--muted);margin-bottom:0}.purpose-card.featured p{color:#e8deef}
.learning{background:#fff}.section-heading{text-align:center;max-width:650px;margin:0 auto 48px}.section-heading h2{margin:15px 0}.section-heading p{color:var(--muted);font-size:14px}.learning-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.learning-card{background:#fff;box-shadow:var(--shadow);overflow:hidden}.learning-card img{height:220px;width:100%;object-fit:cover;transition:transform .5s}.learning-card:hover img{transform:scale(1.04)}.learning-card>div{padding:24px}.learning-card>div>span{font-size:10px;color:#b08236;font-weight:700;letter-spacing:.15em}.learning-card h3{font:700 22px "Playfair Display";margin:9px 0}.learning-card p{font-size:13px;color:var(--muted);margin:0}
.values{background:linear-gradient(120deg,#25103e,#49216c);color:#fff}.values-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:75px;align-items:center}.values-copy h2{margin:17px 0}.values-copy p{color:#e0d6e8;font-size:14px;margin-bottom:28px}.values-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.value-item{padding:21px 18px;border:1px solid #ffffff24;background:#ffffff09;min-height:115px}.value-item i{display:block;color:var(--gold-light);font-size:18px;margin-bottom:10px}.value-item strong{display:block;font:700 17px "Playfair Display"}.value-item small{font-size:11px;color:#d6c9e1}
.play{background:#f9f6ef}.play-layout{display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center}.play h2 em{color:var(--violet)}.play-layout>div:first-child>p{color:var(--muted);font-size:14px;max-width:470px}.game-score{display:flex;gap:28px;margin-top:30px}.game-score div{display:grid}.game-score small{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.game-score strong{font:700 28px "Playfair Display";color:var(--purple)}.game-card{background:#fff;padding:32px;box-shadow:var(--shadow);text-align:center}.game-card h3{font:700 25px "Playfair Display";margin-bottom:5px}.game-instruction{color:var(--muted);font-size:12px}.game-choices{display:flex;justify-content:center;gap:13px;margin:23px 0}.game-choice{width:92px;height:100px;border:1px solid #eadff0;background:#fbf8ff;border-radius:8px;cursor:pointer;transition:.2s;color:var(--purple)}.game-choice:hover{transform:translateY(-5px);border-color:var(--gold)}.game-choice span{display:block;font-size:32px}.game-choice small{font-size:11px;font-weight:700}.game-result{background:#f6f1f9;padding:14px;font-size:13px;color:var(--purple);min-height:48px;border-radius:4px}.reset-game{margin-top:14px;border:0;background:none;color:#75528e;font-size:11px;font-weight:700;cursor:pointer}
.payments{background:#fff}.payment-layout{display:grid;grid-template-columns:1fr 1fr;gap:75px;align-items:center}.payment-copy>p{color:var(--muted);font-size:14px}.payment-notice{display:flex;gap:12px;background:#fbf6e9;border-left:3px solid var(--gold);padding:15px;margin-top:25px;font-size:12px;color:#69532e}.payment-notice i{font-size:17px}.account-card{background:linear-gradient(140deg,#281044,#4a2070);color:#fff;padding:34px;box-shadow:0 20px 45px #28104433;border-radius:5px}.account-top{display:flex;justify-content:space-between;color:var(--gold-light);font-size:10px;letter-spacing:.15em;font-weight:700;margin-bottom:30px}.account-top i{font-size:24px}.account-label{font-size:10px;color:#d6c7e3;text-transform:uppercase;letter-spacing:.12em;margin:18px 0 4px}.account-card h3{font-size:17px;letter-spacing:.05em;margin-bottom:0}.account-number{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #ffffff35;padding:8px 0 15px}.account-number strong{font-size:26px;letter-spacing:.09em;color:var(--gold-light)}.account-number button{border:1px solid #ffffff65;background:#ffffff12;color:#fff;padding:8px 11px;border-radius:3px;font-size:10px;cursor:pointer}.account-footer{font-size:10px;color:#e1d5eb;margin-top:23px}.account-footer i{color:var(--gold-light);margin-right:6px}
.location{background:var(--ivory)}.location-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:65px;align-items:center}.location p{font-size:14px;color:var(--muted)}.map-note{background:#fff;padding:13px;font-size:11px!important}.map-note i{color:#a47b2e;margin-right:7px}.map-frame{height:390px;box-shadow:var(--shadow);border:8px solid #fff}.map-frame iframe{width:100%;height:100%;border:0}
.contact{background:linear-gradient(120deg,#25103e,#401c60);color:#fff}.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}.contact h2 em{color:var(--gold-light)}.contact-copy>p{color:#ded4e7;font-size:14px;max-width:430px}.social-links{display:flex;gap:10px;margin-top:32px}.social-link{width:42px;height:42px;display:grid;place-items:center;border:1px solid #ffffff55;border-radius:50%;color:var(--gold-light);transition:.2s}.social-link:hover{background:var(--gold);color:var(--purple)}.social-hint{display:block;color:#b9a9c7;font-size:10px;margin-top:13px}.contact-form{background:#fff;color:var(--ink);padding:34px;box-shadow:0 20px 60px #10051c55}.contact-form h3{font:700 27px "Playfair Display";margin-bottom:3px}.contact-form>p{font-size:12px;color:var(--muted)}.contact-form label{display:block;font-size:11px;font-weight:700;margin:14px 0 6px}.contact-form label span{font-weight:400;color:var(--muted)}.contact-form input,.contact-form textarea,.contact-form select{width:100%;padding:12px;border:1px solid #e7e0eb;background:#fdfcfe;border-radius:2px;outline:none;font-size:12px;color:var(--ink)}.contact-form input:focus,.contact-form textarea:focus,.contact-form select:focus{border-color:var(--violet)}.contact-form textarea{resize:vertical}.form-submit{width:100%;margin-top:18px;border:0}.form-status{font-size:10px!important;color:#796b83!important;margin:12px 0 0}
.ppms-footer{background:linear-gradient(180deg,#160a27,#1d0e2a);color:#fff;border-top:1px solid rgba(229,191,102,.24)}.ppms-footer-container{max-width:1200px;margin:0 auto;padding:56px 24px 22px;display:grid;grid-template-columns:1.4fr .8fr .9fr .9fr;gap:32px}.ppms-footer-brand h2,.ppms-footer-brand h3,.ppms-footer-links h3,.ppms-footer-contact h3,.ppms-footer-social h3{margin:0 0 18px;font-family:"Playfair Display",serif;letter-spacing:.04em}.ppms-footer-brand h2{font-size:28px;line-height:1.1;color:#fff}.ppms-footer-brand h3{font-size:16px;color:var(--gold-light);text-transform:uppercase;letter-spacing:.18em}.ppms-footer-brand p{margin:0;color:#d9cfe7;font-size:13px;line-height:1.8}.ppms-footer-slogan{margin-bottom:12px!important;color:var(--gold-light)!important;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.ppms-footer-links ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}.ppms-footer-links a,.ppms-footer-contact a,.ppms-footer-top{color:#f0e4f8;transition:color .2s ease}.ppms-footer-links a:hover,.ppms-footer-contact a:hover,.ppms-footer-top:hover{color:var(--gold-light)}.ppms-footer-contact p,.ppms-footer-social p{margin:0 0 14px;color:#d9cfe7;font-size:13px;line-height:1.7}.ppms-footer-contact p{display:flex;align-items:flex-start;gap:10px}.ppms-footer-contact i{color:var(--gold-light);margin-top:4px}.ppms-social-icons{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.ppms-social-icons a{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.04);color:var(--gold-light);transition:all .2s ease}.ppms-social-icons a:hover{transform:translateY(-3px);background:var(--gold);color:var(--purple)}.ppms-footer-bottom{max-width:1200px;margin:0 auto;padding:18px 24px 12px;border-top:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#d6c9e1}.ppms-footer-motto{font-style:italic;color:var(--gold-light)}.ppms-footer-top{display:inline-flex;align-items:center;gap:8px;font-weight:700}.floating-whatsapp{position:fixed;right:24px;bottom:25px;z-index:80;background:#159b61;color:#fff;border-radius:50px;display:flex;align-items:center;gap:10px;padding:13px 18px;box-shadow:0 8px 25px #0b5e3d55;font-size:12px;font-weight:700;transition:.2s}.floating-whatsapp i{font-size:22px}.floating-whatsapp:hover{transform:translateY(-4px);background:#087c4a}.back-to-top{position:fixed;right:28px;bottom:92px;z-index:79;width:43px;height:43px;border:0;border-radius:50%;background:var(--gold);color:var(--purple);font-size:16px;box-shadow:0 5px 18px #0002;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(12px);transition:.25s}.back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0)}
@media(max-width:980px){.nav-links{gap:13px;font-size:11px}.intro-grid,.values-layout,.play-layout,.payment-layout,.location-grid,.contact-layout{gap:40px}.section-pad{padding:78px 0}.ppms-footer-container{grid-template-columns:1fr 1fr}.ppms-footer-brand{grid-column:span 2}}
@media(max-width:760px){.container{width:min(100% - 34px,600px)}.announcement{font-size:9px;gap:10px}.nav{height:72px}.brand img{width:45px;height:45px}.brand strong{font-size:15px}.menu-toggle{display:block}.nav-links{position:absolute;top:72px;left:0;right:0;background:#fff;display:none;flex-direction:column;align-items:stretch;padding:18px 25px 25px;box-shadow:0 15px 20px #16072518;gap:0}.nav-links.open{display:flex}.nav-links>a{padding:13px 0;border-bottom:1px solid #eee}.nav-links>.nav-cta{margin-top:12px;text-align:center;padding:13px}.hero{height:690px;min-height:600px}.hero h1{font-size:clamp(43px,12vw,65px)}.hero-content>p{font-size:14px}.hero-note{margin-top:38px}.section-pad{padding:65px 0}.intro-grid,.values-layout,.play-layout,.payment-layout,.location-grid,.contact-layout{grid-template-columns:1fr;gap:38px}.intro-image img{height:330px}.intro-copy h2,.section-heading h2,.values-copy h2,.play h2,.payment-copy h2,.location h2,.contact h2{font-size:40px}.purpose-grid,.learning-grid{grid-template-columns:1fr}.purpose-card.featured{transform:none}.purpose-card{min-height:auto}.learning-card img{height:210px}.values-grid{gap:9px}.value-item{padding:16px 13px;min-height:105px}.value-item strong{font-size:15px}.game-card{padding:24px 15px}.game-choice{width:80px;height:90px}.account-card{padding:25px 20px}.account-number strong{font-size:21px}.map-frame{height:310px}.contact-form{padding:25px 20px}.ppms-footer-container{grid-template-columns:1fr;padding:42px 18px 18px}.ppms-footer-brand{grid-column:auto}.ppms-footer-bottom{flex-direction:column;text-align:center;padding-left:18px;padding-right:18px}.developer-credit{font-size:11px;line-height:1.8}.floating-whatsapp{right:15px;bottom:16px;padding:12px 14px}.floating-whatsapp span{display:none}.back-to-top{right:20px;bottom:78px}}

.nav{position:relative}
.menu-toggle{display:block;cursor:pointer;padding:8px}
.nav-links{position:absolute;top:100%;left:auto;right:0;z-index:60;display:none;flex-direction:column;align-items:stretch;gap:0;width:min(360px,calc(100vw - 34px));max-height:calc(100vh - 112px);overflow-y:auto;padding:12px 22px 20px;background:#fff;box-shadow:0 15px 25px rgba(22,7,37,.14);font-size:13px}
.nav-links.open{display:flex}
.nav-links>a{padding:10px 0;border-bottom:1px solid #eee}
.nav-links>.nav-cta{margin-top:12px;padding:13px;text-align:center;border-bottom:0}

/* ==================================
   PEARLS PLACES - FOUNDER SECTION
================================== */
/* =====================================
   PEARLS PLACES SPINNING FOOTER LOGO
===================================== */

.ppms-footer-logo-wrap {
    width: 115px;
    height: 115px;
    margin: 0 auto 18px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #e5bf66;
    background: #ffffff;
    box-shadow:
        0 0 15px rgba(229, 191, 102, 0.3),
        0 0 30px rgba(229, 191, 102, 0.12);
}

.ppms-spinning-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: ppmsLogoSpin 12s linear infinite;
    transform-origin: center;
}

.ppms-footer-logo-wrap:hover .ppms-spinning-logo {
    animation-play-state: paused;
}

@keyframes ppmsLogoSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =====================================
   DEVELOPER CREDIT
===================================== */

.developer-credit {
    text-align: center;
    padding: 17px 10px;
    color: #c9bdd8;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(229, 191, 102, 0.2);
    background: rgba(0, 0, 0, 0.15);
}

.developer-credit a {
    color: #e5bf66;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: all 0.3s ease;
}

.developer-credit a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 480px) {
    .ppms-footer-logo-wrap {
        width: 90px;
        height: 90px;
    }

    .developer-credit {
        font-size: 11px;
        line-height: 1.8;
    }
}

/* RESPECT REDUCED MOTION SETTINGS */

@media (prefers-reduced-motion: reduce) {
    .ppms-spinning-logo {
        animation: none;
    }
}

.founder-section {
    position: relative;
    padding: 100px 6%;
    background: linear-gradient(135deg, #16072e, #2b1050, #17082e);
    color: #fff;
    overflow: hidden;
    font-family: "Poppins", Arial, sans-serif;
}

.founder-section::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(218, 177, 75, 0.15);
    border-radius: 50%;
    top: -150px;
    right: -100px;
}

.founder-container {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.founder-heading {
    text-align: center;
    margin-bottom: 65px;
}

.founder-subtitle {
    color: #e8c66b;
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 700;
}

.founder-heading h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin: 15px 0;
    font-family: Georgia, serif;
}

.founder-heading h2 span {
    color: #e8c66b;
}

.founder-line {
    width: 75px;
    height: 3px;
    background: #e8c66b;
    margin: 20px auto;
}

.founder-heading p {
    color: #d5c9e6;
    max-width: 600px;
    margin: auto;
    line-height: 1.8;
    font-size: 14px;
}

.founder-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 65px;
    align-items: center;
}

/* FOUNDER IMAGE */

.founder-image-column {
    text-align: center;
}

.founder-image-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 520px;
    margin: auto;
    padding: 10px;
    border: 2px solid #dcb65a;
    border-radius: 220px 220px 25px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    background: #3a2055;
}

.founder-image-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 210px 210px 18px 18px;
    transition: transform 0.6s ease;
}

.founder-image-frame:hover img {
    transform: scale(1.04);
}

.founder-image-overlay {
    position: absolute;
    inset: 10px;
    border-radius: 210px 210px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.founder-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 11px 20px;
    background: #e5bd61;
    color: #24113c;
    font-size: 12px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.founder-upload-button:hover {
    background: #fff;
    transform: translateY(-3px);
}

.founder-upload-button span {
    font-size: 18px;
}

.founder-image-caption {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.founder-image-caption span {
    font-size: 9px;
    letter-spacing: 2px;
    color: #e8c66b;
    border-right: 1px solid #8f76a8;
    padding-right: 15px;
}

.founder-image-caption span:last-child {
    border: none;
}

/* FOUNDER DETAILS */

.founder-details {
    position: relative;
}

.founder-welcome {
    color: #e8c66b;
    letter-spacing: 3px;
    font-size: 11px;
    font-weight: bold;
}

.founder-details h3 {
    font-family: Georgia, serif;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.3;
    margin: 18px 0 25px;
}

.founder-details h3 span {
    color: #e8c66b;
}

.founder-quote-mark {
    font-family: Georgia, serif;
    color: #e8c66b;
    font-size: 65px;
    height: 48px;
    line-height: 1;
}

.founder-details > p {
    font-size: 14px;
    line-height: 2;
    color: #e0d8eb;
    margin: 14px 0;
}

.founder-details .founder-closing {
    color: #f1d88f;
    font-style: italic;
    font-weight: 500;
}

.founder-signature {
    margin-top: 35px;
}

.signature-line {
    display: block;
    width: 75px;
    height: 2px;
    background: #e8c66b;
    margin-bottom: 15px;
}

.founder-signature h4 {
    color: #fff;
    font-family: Georgia, serif;
    font-size: 23px;
    margin: 0;
}

.founder-signature p {
    color: #c5b5d7;
    font-size: 12px;
    margin-top: 7px;
}

.founder-motto {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 20px;
    border: 1px solid rgba(232, 198, 107, 0.5);
    border-radius: 30px;
    color: #e8c66b;
    font-size: 12px;
    font-style: italic;
}

/* RESPONSIVE DESIGN */

@media (max-width: 850px) {
    .founder-section {
        padding: 75px 6%;
    }

    .founder-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .founder-image-frame {
        max-width: 360px;
        height: 450px;
    }

    .founder-details {
        max-width: 650px;
        margin: auto;
    }
}

@media (max-width: 480px) {
    .founder-section {
        padding: 65px 5%;
    }

    .founder-heading {
        margin-bottom: 40px;
    }

    .founder-image-frame {
        max-width: 290px;
        height: 390px;
    }

    .founder-details > p {
        font-size: 13px;
    }

    .founder-motto {
        font-size: 10px;
    }
}

/* ====================================
   PEARLS PLACES PUZZLE GAME
==================================== */

.school-puzzle-section {
    padding: 85px 20px;
    background: #f8f5fc;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
}

.puzzle-heading {
    margin-bottom: 35px;
}

.puzzle-tag {
    color: #bd9138;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.puzzle-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 5vw, 43px);
    color: #241044;
    margin: 12px 0;
}

.puzzle-heading h2 span {
    color: #c49a43;
}

.puzzle-heading p {
    color: #777;
    font-size: 14px;
}

.puzzle-card {
    position: relative;
    max-width: 440px;
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(36, 16, 68, 0.12);
    border: 1px solid #eee6f5;
}

.puzzle-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 20px;
}

.puzzle-top h3 {
    color: #241044;
    font-size: 20px;
    margin: 0 0 5px;
}

.puzzle-top p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

.puzzle-icon {
    font-size: 35px;
}

.puzzle-stats {
    display: flex;
    justify-content: space-around;
    background: #f5f0fa;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.puzzle-stats div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.puzzle-stats small {
    font-size: 10px;
    color: #9279aa;
    font-weight: 700;
    letter-spacing: 2px;
}

.puzzle-stats strong {
    font-size: 20px;
    color: #241044;
}

/* PUZZLE GRID */

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    aspect-ratio: 1;
    padding: 6px;
    background: #241044;
    border-radius: 13px;
    overflow: hidden;
}

.puzzle-piece {
    position: relative;
    border: 2px solid #fff;
    border-radius: 5px;
    background-image: url("assets/ppms-logo.png");
    background-size: 300% 300%;
    background-repeat: no-repeat;
    cursor: pointer;
    min-width: 0;
    transition: border-color 0.2s, transform 0.2s;
}

.puzzle-piece:hover {
    border-color: #e9c36b;
}

.puzzle-piece.selected {
    border: 4px solid #e6b943;
    transform: scale(0.94);
    z-index: 2;
    box-shadow: 0 0 15px rgba(230, 185, 67, 0.6);
}

.puzzle-piece:focus-visible {
    outline: 3px solid #e6b943;
    outline-offset: -4px;
}

/* MESSAGE */

.puzzle-message {
    margin: 18px 0;
    color: #70578a;
    font-size: 13px;
    min-height: 20px;
}

.puzzle-controls {
    display: flex;
    gap: 10px;
}

.puzzle-controls button {
    flex: 1;
    border: none;
    padding: 13px 10px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
}

#puzzleShuffle {
    background: #241044;
    color: #fff;
}

#puzzlePreview {
    background: #e7c16b;
    color: #241044;
}

.puzzle-controls button:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.puzzle-success {
    position: relative;
    z-index: 4;
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background: #e9f8ed;
    color: #237b42;
    font-weight: 700;
    font-size: 14px;
    animation: puzzlePop 0.5s ease;
}

.puzzle-success.show {
    display: block;
}

.puzzle-celebration,
.game-celebration {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: visible;
    pointer-events: none;
}

.puzzle-confetti,
.game-confetti {
    position: absolute;
    top: 48%;
    left: 50%;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    background: var(--confetti-color);
    opacity: 0;
    animation: puzzleConfettiBurst 1.4s cubic-bezier(.15, .7, .25, 1)
        var(--confetti-delay, 0s) forwards;
}

.puzzle-balloon,
.game-balloon {
    position: absolute;
    bottom: -18px;
    left: var(--balloon-left);
    width: 34px;
    height: 43px;
    border-radius: 50% 50% 47% 47%;
    background:
        radial-gradient(ellipse at 30% 26%, rgba(255, 255, 255, .9), transparent 25%),
        var(--balloon-color);
    box-shadow: inset -5px -7px 10px rgba(0, 0, 0, .14), 0 5px 14px rgba(40, 16, 68, .15);
    opacity: 0;
    animation: puzzleBalloonLift 2.8s ease-out var(--balloon-delay, 0s) forwards;
}

.puzzle-balloon::after,
.game-balloon::after {
    position: absolute;
    top: 41px;
    left: 16px;
    height: 80px;
    border-left: 1px solid rgba(80, 65, 95, .4);
    content: "";
}

.game-card {
    position: relative;
}

.game-result {
    position: relative;
    z-index: 4;
}

.puzzle-card.celebrating,
.game-card.celebrating {
    animation: puzzleWinPulse .65s ease-in-out 2;
}

@keyframes puzzleConfettiBurst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0);
    }
    100% {
        opacity: 0;
        transform: translate(
            calc(-50% + var(--confetti-x)),
            calc(-50% + var(--confetti-y))
        ) rotate(var(--confetti-turn));
    }
}

@keyframes puzzleBalloonLift {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(-8deg);
    }
    12% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--balloon-drift), -480px, 0) rotate(8deg);
    }
}

@keyframes puzzleWinPulse {
    50% {
        box-shadow: 0 0 0 5px rgba(214, 168, 68, .23), 0 20px 55px rgba(108, 50, 160, .2);
    }
}

.puzzle-credit {
    margin-top: 25px;
    color: #241044;
    font-size: 12px;
    font-weight: 700;
}

.puzzle-credit span {
    color: #b38b37;
    font-size: 10px;
    font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
    .puzzle-card.celebrating,
    .game-card.celebrating,
    .puzzle-confetti,
    .puzzle-balloon,
    .game-confetti,
    .game-balloon {
        animation: none !important;
    }
}

/* PREVIEW MODAL */

.puzzle-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 5, 30, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.puzzle-modal.active {
    display: flex;
}

.puzzle-modal-content {
    position: relative;
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    width: 100%;
    max-width: 350px;
}

.puzzle-modal-content h3 {
    color: #241044;
    margin-top: 0;
}

.puzzle-modal-content img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

#closePuzzleModal {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
    color: #241044;
}

@keyframes puzzlePop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* MOBILE */

@media(max-width: 480px) {
    .school-puzzle-section {
        padding: 60px 12px;
    }

    .puzzle-card {
        padding: 16px;
    }

    .puzzle-controls button {
        font-size: 11px;
    }
}

/* ======================================
   MISSION, VISION & MOTTO SECTION
====================================== */

.purpose-section {
    background: #f0f5f4;
    padding: 85px 0;
    width: 100%;
}

.purpose-container {
    width: 86%;
    max-width: 1250px;
    margin: 0 auto;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* INDIVIDUAL CARDS */

.purpose-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    box-shadow: 0 5px 25px rgba(20, 45, 60, 0.045);

    border: 1px solid rgba(20, 45, 60, 0.025);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

/* HOVER EFFECT */

.purpose-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(20, 45, 60, 0.09);
}

/* CIRCULAR ICON BACKGROUND */

.purpose-icon {
    width: 60px;
    height: 60px;

    background: #e6f5ff;
    color: #2196f3;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;

    margin-bottom: 23px;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.purpose-card:hover .purpose-icon {
    background: #d4edff;
    transform: scale(1.08);
}

/* CARD HEADINGS */

.purpose-card h3 {
    color: #263f60;

    font-size: 23px;
    font-weight: 700;

    margin: 0 0 15px;

    letter-spacing: -0.4px;
}

/* CARD DESCRIPTION */

.purpose-card p {
    color: #526276;

    font-size: 15.5px;
    line-height: 1.8;

    margin: 0;

    max-width: 100%;
}

/* ======================================
   TABLET RESPONSIVENESS
====================================== */

@media (max-width: 900px) {

    .purpose-container {
        width: 90%;
    }

    .purpose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .purpose-card {
        padding: 28px;
    }

}

/* ======================================
   MOBILE RESPONSIVENESS
====================================== */

@media (max-width: 600px) {

    .purpose-section {
        padding: 55px 0;
    }

    .purpose-container {
        width: 90%;
    }

    .purpose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .purpose-card {
        min-height: auto;
        padding: 28px 25px;
        border-radius: 14px;
    }

    .purpose-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .purpose-card h3 {
        font-size: 22px;
    }

    .purpose-card p {
        font-size: 15px;
        line-height: 1.75;
    }

}

/* =================================
   FOUNDER INTRODUCTION
================================= */

.purpose-founder {
    margin-bottom: 65px;
    max-width: 510px;
}

.founder-divider {
    width: 100%;
    height: 1px;
    background: #d5dddf;
    margin-bottom: 24px;
}

.founder-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* PASSPORT-SIZE FOUNDER IMAGE */

.founder-photo {
    width: 120px;
    height: 126px;

    object-fit: cover;
    object-position: center top;

    border-radius: 8px;

    display: block;
    flex-shrink: 0;

    background: #e5eeee;
}

/* FOUNDER DETAILS */

.founder-info h4 {
    color: #263f60;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.founder-info p {
    color: #526276;
    font-size: 15px;
    margin: 0 0 5px;
}

.founder-info span {
    color: #82909e;
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* MOBILE */

@media (max-width: 600px) {

    .purpose-founder {
        margin-bottom: 38px;
        max-width: 100%;
    }

    .founder-photo {
        width: 95px;
        height: 105px;
    }

    .founder-info h4 {
        font-size: 14px;
    }

    .founder-info p {
        font-size: 13px;
    }

    .founder-info span {
        font-size: 11px;
    }

}


/* =========================================================
   ACADEMIC JOURNEY + SPORTS & ATHLETICS
   Scoped styles: designed to avoid changing the rest of the site.
========================================================= */

.academic-journey,
.school-sports {
  width: 100%;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

.academic-journey *,
.academic-journey *::before,
.academic-journey *::after,
.school-sports *,
.school-sports *::before,
.school-sports *::after {
  box-sizing: border-box;
}

/* ---------------- ACADEMIC SECTION ---------------- */

.academic-journey {
  padding: 75px 20px;
  background: #f1f5f4;
}

.academic-container,
.sports-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.academic-heading {
  text-align: center;
  margin: 0 auto 48px;
}

.academic-heading h2 {
  display: inline-block;
  position: relative;
  margin: 0 0 12px;
  color: #304d68;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
}

.academic-heading h2::before,
.academic-heading h2::after {
  content: "";
  display: inline-block;
  width: 50px;
  height: 2px;
  margin: 0 15px;
  vertical-align: middle;
  background: #20aaff;
}

.academic-heading p {
  max-width: 850px;
  margin: 0 auto;
  color: #64717d;
  font-size: 16px;
  line-height: 1.7;
}

/* Academic filter controls */

.academic-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 40px;
}

.academic-filter {
  border: 0;
  border-radius: 30px;
  padding: 12px 21px;
  background: #dfe5e7;
  color: #304d68;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.academic-filter:hover,
.academic-filter.active {
  background: #20aaff;
  color: #fff;
  transform: translateY(-2px);
}

.academic-filter:focus-visible,
.school-gallery button:focus-visible {
  outline: 3px solid #163f65;
  outline-offset: 3px;
}

/* Academic cards */

.academic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 30px 24px;
}

.academic-card {
  display: flex;
  position: relative;
  min-width: 0;
  min-height: 245px;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 50, 60, .09);
  transition: transform .35s ease, box-shadow .35s ease, opacity .25s ease;
}

.academic-card:nth-child(even) {
  margin-top: 35px;
}

.academic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 17px 35px rgba(30, 50, 60, .15);
}

.academic-card.is-hidden {
  display: none;
}

/* ---------------- SHARED IMAGE GALLERIES ---------------- */

.school-gallery {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #e8eef2;
}

.academic-image.school-gallery {
  flex: 0 0 31%;
  min-width: 0;
  min-height: 245px;
}

.school-gallery > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .9s ease, transform 4.5s ease;
}

.school-gallery > img.gallery-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

/* Gallery dots */

.gallery-dots {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 13px;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.gallery-dot.active {
  width: 22px;
  background: #20aaff;
}

/* Gallery arrows */

.gallery-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .91);
  color: #304d68;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .25s ease, background .25s ease, color .25s ease;
}

.school-gallery:hover .gallery-arrow,
.school-gallery:focus-within .gallery-arrow {
  opacity: 1;
}

.gallery-arrow:hover {
  background: #20aaff;
  color: #fff;
}

.gallery-prev { left: 11px; }
.gallery-next { right: 11px; }

/* Academic content */

.academic-content {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 24px 20px;
}

.academic-content h3 {
  margin: 0 0 12px;
  padding-right: 4px;
  color: #304d68;
  font-size: 20px;
  line-height: 1.35;
}

.academic-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  display: inline-block;
  max-width: 60%;
  overflow: hidden;
  padding: 8px 13px;
  border-radius: 30px;
  background: #20aaff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.academic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 10px;
  margin-bottom: 18px;
  color: #71869a;
  font-size: 12px;
}

.academic-content p {
  margin: 0 0 17px;
  color: #626a70;
  font-size: 14px;
  line-height: 1.65;
}

.academic-link,
.sports-info a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #129fe9;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: gap .25s ease, color .25s ease;
}

.academic-link:hover,
.sports-info a:hover {
  gap: 16px;
  color: #087cc3;
}

/* ---------------- SPORTS SECTION ---------------- */

.school-sports {
  padding: 85px 20px;
  background: #fff;
}

.sports-heading {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.sports-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #159fe8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.sports-heading h2 {
  margin: 0 0 15px;
  color: #304d68;
  font-size: 36px;
  line-height: 1.25;
}

.sports-heading p {
  margin: 0;
  color: #71808b;
  font-size: 15px;
  line-height: 1.8;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.sports-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #edf1f4;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(28, 52, 72, .09);
  transition: transform .35s ease, box-shadow .35s ease;
}

.sports-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(28, 52, 72, .15);
}

.sports-gallery {
  width: 100%;
  height: 250px;
}

.sports-info {
  padding: 25px 27px 28px;
}

.sports-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 30px;
  background: #e6f5ff;
  color: #149fe9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.sports-info h3 {
  margin: 0 0 12px;
  color: #304d68;
  font-size: 22px;
}

.sports-info p {
  margin: 0 0 17px;
  color: #69747e;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------------- RESPONSIVE LAYOUT ---------------- */

@media (max-width: 900px) {
  .academic-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
    gap: 25px;
  }

  .academic-card:nth-child(even) {
    margin-top: 0;
  }

  .sports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .academic-journey {
    padding: 55px 15px;
  }

  .academic-heading {
    margin-bottom: 35px;
  }

  .academic-heading h2 {
    font-size: 25px;
  }

  .academic-heading h2::before,
  .academic-heading h2::after {
    width: 22px;
    margin: 0 7px;
  }

  .academic-heading p {
    font-size: 14px;
  }

  .academic-filters {
    gap: 8px;
    margin-bottom: 30px;
  }

  .academic-filter {
    padding: 10px 14px;
    font-size: 12px;
  }

  .academic-card {
    flex-direction: column;
    min-height: 0;
  }

  .academic-image.school-gallery {
    flex: none;
    width: 100%;
    height: 215px;
    min-height: 215px;
  }

  .academic-content {
    padding: 20px 18px 23px;
  }

  .academic-content h3 {
    font-size: 19px;
  }

  .academic-badge {
    position: static;
    max-width: 100%;
    margin-bottom: 11px;
  }

  .academic-meta {
    gap: 8px;
  }

  .school-sports {
    padding: 60px 15px;
  }

  .sports-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sports-gallery {
    height: 230px;
  }

  .sports-info {
    padding: 22px;
  }

  .sports-heading h2 {
    font-size: 27px;
  }
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .academic-card,
  .sports-card,
  .school-gallery > img,
  .academic-filter,
  .gallery-dot,
  .gallery-arrow {
    transition: none !important;
  }
}

/* ---------------- WHAT WE OFFER ---------------- */

.what-we-offer-section {
  padding: 80px 20px;
  background: #f8fafc;
  color: #1e293b;
  font-family: "DM Sans", sans-serif;
}

.wow-container {
  max-width: 1200px;
  margin: 0 auto;
}

.wow-header {
  margin-bottom: 60px;
  text-align: center;
}

.wow-subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.wow-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.wow-header h2 {
  margin: 0;
  color: var(--purple);
  font: 700 clamp(30px, 4vw, 42px)/1.2 "Playfair Display", serif;
}

.wow-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.wow-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 70px;
}

.wow-row:last-child {
  margin-bottom: 0;
}

.wow-row-reverse {
  flex-direction: row-reverse;
}

.wow-image-col,
.wow-content-col {
  flex: 1;
  min-width: 0;
}

.wow-img-card {
  overflow: hidden;
  border: 1px solid #e8e1eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wow-img-card img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform .3s ease;
}

.wow-img-card img.director-photo {
  object-fit: contain;
  background: #e8eef8;
}

.wow-img-card img:hover {
  transform: scale(1.02);
}

.wow-img-caption {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.wow-feature-item {
  margin-bottom: 34px;
}

.wow-feature-item:last-child {
  margin-bottom: 0;
}

.wow-icon {
  margin-bottom: 8px;
  font-size: 20px;
}

.wow-feature-item h3 {
  margin-bottom: 8px;
  color: var(--purple);
  font: 700 24px/1.3 "Playfair Display", serif;
}

.wow-feature-item p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.wow-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wow-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  color: #51485b;
  font-size: 14px;
  line-height: 1.5;
}

.tech-partner-link {
  display: inline;
  padding: 0 .25em;
  border-radius: 3px;
  background: #fff0a8;
  color: #4a3510;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 #e1b74a;
}

.tech-partner-link:hover,
.tech-partner-link:focus-visible {
  background: #ffe47a;
  color: #281044;
}

.wow-list li > span.tech-partner-copy {
  flex: 1 1 0;
  color: #51485b;
  font-weight: 400;
}

.wow-list li span {
  flex: 0 0 auto;
  color: #9a722a;
  font-weight: 700;
}

@media (max-width: 968px) {
  .wow-row,
  .wow-row-reverse {
    flex-direction: column;
    gap: 30px;
  }

  .wow-image-col,
  .wow-content-col {
    width: 100%;
  }

  .wow-header h2 {
    font-size: 34px;
  }

  .wow-img-card img {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .what-we-offer-section {
    padding: 60px 17px;
  }

  .wow-header {
    margin-bottom: 38px;
  }

  .wow-subtitle-wrapper {
    gap: 9px;
  }

  .wow-line {
    width: 24px;
  }

  .wow-header h2 {
    font-size: 29px;
  }

  .wow-description,
  .wow-feature-item p,
  .wow-list li {
    font-size: 13px;
  }

  .wow-row {
    gap: 24px;
    margin-bottom: 48px;
  }

  .wow-img-card img {
    height: 240px;
  }

  .wow-feature-item h3 {
    font-size: 21px;
  }
}


/* Container & Section Styles */
.staff-cta-section {
  background-color: #f8fafc;
  padding: 80px 20px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  text-align: center;
}

.sc-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Staff Header */
.sc-staff-header {
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.sc-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.sc-staff-header h2 {
  font-size: 2.25rem;
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 16px;
}

.sc-description {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* Statistics Grid */
.sc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 70px;
}

.sc-stat-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease;
}

.sc-stat-card:hover {
  transform: translateY(-4px);
}

.sc-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a8a;
}

.sc-stat-symbol {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a8a;
}

.sc-stat-label {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
}

/* Call-to-Action Box */
.sc-cta-box {
  background: #ffffff;
  padding: 50px 30px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.sc-cta-box h3 {
  font-size: 1.8rem;
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 12px;
}

.sc-cta-box p {
  color: #475569;
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
}

/* Buttons */
.sc-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sc-btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.sc-btn-primary {
  background-color: #0066ff;
  color: #ffffff;
  border: 1px solid #0066ff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.sc-btn-primary:hover {
  background-color: #0052cc;
  border-color: #0052cc;
}

.sc-btn-outline {
  background-color: transparent;
  color: #0066ff;
  border: 1px solid #93c5fd;
}

.sc-btn-outline:hover {
  background-color: #eff6ff;
  border-color: #0066ff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .sc-staff-header h2 {
    font-size: 1.8rem;
  }
  
  .sc-cta-box h3 {
    font-size: 1.4rem;
  }
  
  .sc-cta-buttons {
    flex-direction: column;
  }
  
  .sc-btn {
    width: 100%;
    text-align: center;
  }
}



/* Container & Section Styles */
.student-life-section {
  background-color: #f8fafc;
  padding: 80px 20px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
}

.sl-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styles */
.sl-header {
  text-align: center;
  margin-bottom: 60px;
}

.sl-subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.sl-line {
  width: 40px;
  height: 2px;
  background-color: #38bdf8;
}

.sl-header h2 {
  font-size: 2.25rem;
  color: #1e293b;
  font-weight: 700;
  margin: 0;
}

.sl-description {
  color: #475569;
  font-size: 1.05rem;
  max-width: 750px;
  margin: 0 auto;
}

/* Grid Layout */
.sl-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

/* Left Featured Image Card with Overlay */
.sl-img-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
}

.sl-img-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sl-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 24px 20px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
  text-align: left;
}

.sl-img-overlay h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.sl-explore-link {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.sl-explore-link:hover {
  color: #7dd3fc;
}

/* Right Feature Cards Column (2x2 Grid) */
.sl-cards-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sl-feature-card {
  background: #ffffff;
  padding: 28px 22px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.sl-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Icons & Typography */
.sl-icon-wrapper {
  width: 42px;
  height: 42px;
  background-color: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sl-icon {
  font-size: 1.2rem;
}

.sl-feature-card h3 {
  font-size: 1.05rem;
  color: #1e3a8a;
  margin-bottom: 8px;
  font-weight: 600;
}

.sl-feature-card p {
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* Bottom Footer Action */
.sl-footer-action {
  text-align: center;
  margin-top: 30px;
}

.sl-btn-primary {
  display: inline-block;
  background-color: #0284c7;
  color: #ffffff;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sl-btn-primary:hover {
  background-color: #0369a1;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 968px) {
  .sl-grid-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .sl-img-card {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .sl-cards-col {
    grid-template-columns: 1fr;
  }
  
  .sl-header h2 {
    font-size: 1.8rem;
  }
}


/* Container & Section Styles */
.news-section {
  background-color: #f8fafc;
  padding: 80px 20px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styles */
.news-header {
  text-align: center;
  margin-bottom: 50px;
}

.news-subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.news-line {
  width: 40px;
  height: 2px;
  background-color: #38bdf8;
}

.news-header h2 {
  font-size: 2.25rem;
  color: #1e293b;
  font-weight: 700;
  margin: 0;
}

.news-description {
  color: #475569;
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Cards Grid Layout */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Individual News Card */
.news-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Image Wrapper */
.news-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.news-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-img-wrapper img.graduation-photo {
  object-position: center top;
  transform-origin: center top;
}

.news-card:hover .news-img-wrapper img {
  transform: scale(1.04);
}

/* Content Area */
.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.news-content h3 {
  font-size: 1.15rem;
  color: #1e3a8a;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Author Meta Info */
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: auto;
}

.author-avatar {
  width: 36px;
  height: 36px;
  background-color: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.news-date {
  font-size: 0.75rem;
  color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-header h2 {
    font-size: 1.8rem;
  }
}

/* Container & Section Styles */
.events-section {
  background-color: #f8fafc;
  padding: 80px 20px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styles */
.events-header {
  text-align: center;
  margin-bottom: 40px;
}

.events-subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.events-line {
  width: 40px;
  height: 2px;
  background-color: #38bdf8;
}

.events-header h2 {
  font-size: 2.25rem;
  color: #1e293b;
  font-weight: 700;
  margin: 0;
}

.events-description {
  color: #475569;
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Filter Bar */
.events-filter-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.event-select {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  font-size: 0.95rem;
  min-width: 200px;
  outline: none;
  cursor: pointer;
}

.event-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* Events Grid Layout (2x2) */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* Individual Event Card */
.event-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Date Box (Left Column of Card) */
.event-date-box {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  text-align: center;
}

.e-month {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.e-day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 4px 0;
}

.e-year {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Content Area */
.event-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background-color: #eff6ff;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

.event-content h3 {
  font-size: 1.15rem;
  color: #1e3a8a;
  font-weight: 600;
  margin-bottom: 8px;
}

.event-content p {
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Meta Information */
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 20px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* Action Buttons */
.event-actions {
  display: flex;
  gap: 10px;
}

.btn-outline-primary, .btn-solid-primary {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-outline-primary {
  background-color: transparent;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.btn-outline-primary:hover {
  background-color: #f0f9ff;
  border-color: #0284c7;
}

.btn-solid-primary {
  background-color: #0284c7;
  color: #ffffff;
  border: 1px solid #0284c7;
}

.btn-solid-primary:hover {
  background-color: #0369a1;
}

/* Footer Calendar Button */
.events-footer-action {
  text-align: center;
}

.btn-view-calendar {
  display: inline-block;
  background-color: #0284c7;
  color: #ffffff;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-view-calendar:hover {
  background-color: #0369a1;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .event-card {
    flex-direction: column;
  }
  
  .event-date-box {
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    padding: 15px 20px;
    min-width: 100%;
  }
  
  .e-day {
    font-size: 1.5rem;
    margin: 0;
  }
  
  .events-filter-bar {
    flex-direction: column;
    align-items: center;
  }
  
  .event-select {
    width: 100%;
    max-width: 300px;
  }
  
  .event-actions {
    flex-direction: column;
  }
}


/* Page Loader Overlay */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Premium gradient blending your yellow and pink brand palette */
  background: linear-gradient(135deg, #f5e6a8 0%, #fce7f3 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Loader Content Container */
.loader-content {
  text-align: center;
  max-width: 480px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Logo Styling */
.loader-logo-wrapper {
  animation: pulseLogo 2s infinite ease-in-out;
}

.loader-logo {
  width: 110px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Spinning Indicator using Yellow and Pink Accents */
.loader-spinner {
  width: 45px;
  height: 45px;
  border: 4px solid #fbcfe8; /* Light pink track */
  border-top: 4px solid #b8860b; /* Darker gold spinner head */
  border-right: 4px solid #ec4899; /* Vibrant pink accent */
  border-radius: 50%;
  animation: spinLoader 1s linear infinite;
  margin: 5px 0;
}

/* Slogan and Text */
.loader-school-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #831843; /* Deep plum/pink tone for text contrast */
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.loader-slogan {
  font-size: 0.95rem;
  font-style: italic;
  color: #713f12; /* Warm dark yellow-brown tone */
  line-height: 1.5;
  margin: 0;
}

/* Hidden State class triggered by JS */
.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Keyframe Animations */
@keyframes spinLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .loader-content {
    padding: 20px;
  }
  .loader-logo {
    width: 90px;
  }
  .loader-slogan {
    font-size: 0.88rem;
  }
}

/* ==========================================================
   PEARLS PLACES MONTESSORI SCHOOL
   PREMIUM VISUAL ENHANCEMENT LAYER
   Append after the existing stylesheet.
   Preserves the current purple / gold / ivory brand identity.
========================================================== */

:root {
  --ppms-purple: #281044;
  --ppms-purple-deep: #180a2b;
  --ppms-violet: #6c32a0;
  --ppms-gold: #d6a844;
  --ppms-gold-soft: #f4d98d;
  --ppms-ivory: #fbf8f1;
  --ppms-glass: rgba(255, 255, 255, .72);
  --ppms-glass-border: rgba(255, 255, 255, .62);
  --ppms-shadow-soft: 0 12px 35px rgba(35, 15, 55, .08);
  --ppms-shadow-hover: 0 22px 55px rgba(35, 15, 55, .16);
  --ppms-radius: 18px;
  --ppms-ease: cubic-bezier(.2, .75, .25, 1);
}

/* Global polish */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--ppms-purple);
  background: rgba(214, 168, 68, .35);
}

:focus-visible {
  outline: 3px solid var(--ppms-gold);
  outline-offset: 4px;
}

/* Header: refined glass effect */
.site-header {
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(40, 16, 68, .07);
  box-shadow: 0 8px 28px rgba(30, 10, 45, .055);
  transition: background .3s ease, box-shadow .3s ease;
}

.brand img {
  filter: drop-shadow(0 4px 8px rgba(40, 16, 68, .12));
  transition: transform .45s var(--ppms-ease);
}

.brand:hover img {
  transform: rotate(-5deg) scale(1.06);
}

.nav-links a:not(.nav-cta) {
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--ppms-gold);
  transition: right .3s var(--ppms-ease);
}

.nav-links a:not(.nav-cta):hover::after {
  right: 0;
}

.nav-cta {
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(40, 16, 68, .16);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(40, 16, 68, .2);
}

/* Hero: layered premium atmosphere */
.hero {
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 18%, rgba(214, 168, 68, .2), transparent 32%),
    linear-gradient(125deg, #180a2b, #401b68 65%, #281044);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 430px;
  height: 430px;
  right: -150px;
  top: -190px;
  border: 1px solid rgba(244, 217, 141, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(244, 217, 141, .025),
              0 0 0 90px rgba(244, 217, 141, .02);
  pointer-events: none;
}

.hero h1 {
  text-shadow: 0 8px 30px rgba(0, 0, 0, .2);
  letter-spacing: -.035em;
}

.hero-content > p {
  line-height: 1.85;
}

.hero-actions .btn {
  border-radius: 999px;
  padding: 16px 25px;
}

.btn {
  transition: transform .3s var(--ppms-ease),
              box-shadow .3s ease,
              background .3s ease,
              border-color .3s ease;
}

.btn:active,
.nav-cta:active {
  transform: translateY(1px) scale(.98);
}

.btn-gold {
  box-shadow: 0 9px 25px rgba(214, 168, 68, .22);
}

.btn-gold:hover {
  box-shadow: 0 15px 32px rgba(214, 168, 68, .32);
}

/* Shared glass card treatment */
.purpose-card,
.learning-card,
.value-item,
.game-card,
.account-card,
.contact-form,
.academic-card,
.sports-card,
.puzzle-card,
.event-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: var(--ppms-radius);
  box-shadow: var(--ppms-shadow-soft);
  transition:
    transform .4s var(--ppms-ease),
    box-shadow .4s ease,
    border-color .4s ease;
}

.purpose-card,
.learning-card,
.game-card,
.contact-form,
.puzzle-card,
.event-card {
  background: var(--ppms-glass);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}

.purpose-card:hover,
.learning-card:hover,
.academic-card:hover,
.sports-card:hover,
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ppms-shadow-hover);
  border-color: rgba(214, 168, 68, .45);
}

/* Keep the featured card distinctive */
.purpose-card.featured {
  background: linear-gradient(145deg, #281044, #4b2370);
  border: 1px solid rgba(244, 217, 141, .25);
  box-shadow: 0 18px 42px rgba(40, 16, 68, .2);
}

.purpose-card.featured:hover {
  transform: translateY(-9px);
}

/* Learning cards */
.learning-card {
  border-radius: 18px;
}

.learning-card img {
  transition: transform .75s var(--ppms-ease), filter .5s ease;
}

.learning-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.learning-card > div {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .88);
}

/* Values section: translucent panels */
.value-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, .075);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, .15);
}

.value-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .13);
  border-color: rgba(244, 217, 141, .5);
}

/* Interactive learning game */
.game-card {
  border: 1px solid rgba(40, 16, 68, .07);
  border-radius: 22px;
}

.game-choice {
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f7f1fc);
  box-shadow: 0 5px 15px rgba(40, 16, 68, .06);
}

.game-choice:hover {
  box-shadow: 0 12px 25px rgba(40, 16, 68, .12);
}

.game-result {
  border-radius: 12px;
}

/* Payment details */
.account-card {
  border-radius: 20px;
  border: 1px solid rgba(244, 217, 141, .22);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 168, 68, .2), transparent 38%),
    linear-gradient(145deg, #281044, #4a2070);
  box-shadow: 0 22px 50px rgba(40, 16, 68, .22);
}

.account-number button {
  border-radius: 999px;
  transition: background .25s ease, transform .25s ease;
}

.account-number button:hover {
  background: rgba(255, 255, 255, .24);
  transform: translateY(-2px);
}

/* Maps and image frames */
.map-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 7px solid rgba(255, 255, 255, .9);
  box-shadow: var(--ppms-shadow-hover);
}

.intro-image img {
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(40, 16, 68, .12);
}

/* Contact form */
.contact-form {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 25px 65px rgba(10, 3, 20, .22);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border-radius: 10px;
  padding: 14px 15px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  background: #fff;
  border-color: var(--ppms-violet);
  box-shadow: 0 0 0 4px rgba(108, 50, 160, .1);
}

.form-submit {
  border-radius: 999px;
}

/* Founder section: retain its original design, add depth */
.founder-image-frame {
  box-shadow: 0 25px 65px rgba(0, 0, 0, .35);
}

.founder-details h3 {
  letter-spacing: -.02em;
}

.founder-motto {
  background: rgba(255, 255, 255, .045);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Academic and sports cards */
.academic-card,
.sports-card {
  border-radius: 18px;
  border: 1px solid rgba(48, 77, 104, .09);
  box-shadow: 0 12px 32px rgba(30, 50, 60, .09);
}

.academic-image.school-gallery,
.sports-gallery {
  background: #e9e2ef;
}

.academic-content,
.sports-info {
  background: rgba(255, 255, 255, .94);
}

.academic-filter {
  border: 1px solid rgba(48, 77, 104, .08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.academic-filter:hover,
.academic-filter.active {
  box-shadow: 0 8px 20px rgba(32, 170, 255, .2);
}

.sports-tag,
.academic-badge {
  border-radius: 999px;
}

/* Puzzle game */
.puzzle-card {
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(36, 16, 68, .13);
}

.puzzle-grid {
  border-radius: 16px;
}

.puzzle-piece {
  border-radius: 8px;
}

.puzzle-controls button {
  border-radius: 999px;
}

/* Events */
.event-card {
  overflow: hidden;
}

.event-date-box {
  border-radius: 14px;
}

.btn-outline-primary,
.btn-solid-primary,
.btn-view-calendar {
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-outline-primary:hover,
.btn-solid-primary:hover,
.btn-view-calendar:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(2, 132, 199, .18);
}

/* Footer refinements */
.ppms-footer {
  position: relative;
  overflow: hidden;
}

.ppms-footer::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -230px;
  right: -100px;
  border: 1px solid rgba(229, 191, 102, .12);
  border-radius: 50%;
  pointer-events: none;
}

.ppms-footer-container,
.ppms-footer-bottom,
.developer-credit {
  position: relative;
  z-index: 1;
}

.ppms-social-icons a,
.social-link {
  transition: transform .3s var(--ppms-ease), background .3s ease, color .3s ease;
}

.ppms-social-icons a:hover,
.social-link:hover {
  transform: translateY(-5px) scale(1.05);
}

/* Floating actions */
.floating-whatsapp {
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 12px 30px rgba(11, 94, 61, .25);
  transition: transform .3s var(--ppms-ease), box-shadow .3s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(11, 94, 61, .32);
}

.back-to-top {
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, box-shadow .3s ease;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

/* ==========================================================
   SCROLL-REVEAL ANIMATIONS
   Uses native scroll-driven animations where supported.
   No JavaScript is required for this progressive enhancement.
========================================================== */

@keyframes ppmsReveal {
  from {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@supports (animation-timeline: view()) {
  .intro-grid,
  .section-heading,
  .values-layout,
  .play-layout,
  .payment-layout,
  .location-grid,
  .contact-layout,
  .founder-content,
  .founder-heading,
  .academic-heading,
  .sports-heading,
  .puzzle-heading,
  .purpose-founder {
    animation: ppmsReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 32%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .purpose-grid > .purpose-card,
  .learning-grid > .learning-card,
  .values-grid > .value-item,
  .academic-grid > .academic-card,
  .sports-grid > .sports-card,
  .events-grid > .event-card,
  .sc-stats-grid > .sc-stat-card,
  .sl-cards-col > .sl-feature-card,
  .news-grid > .news-card {
    animation: none !important;
  }
}

/* Gentle hero entrance */
@keyframes ppmsHeroText {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow,
.hero h1,
.hero-content > p,
.hero-actions,
.hero-note {
  animation: ppmsHeroText .85s var(--ppms-ease) both;
}

.hero h1 { animation-delay: .12s; }
.hero-content > p { animation-delay: .22s; }
.hero-actions { animation-delay: .32s; }
.hero-note { animation-delay: .42s; }

/* Image hover polish */
.school-gallery > img,
.learning-card img,
.intro-image img,
.founder-image-frame img {
  will-change: transform;
}

/* Mobile refinements */
@media (max-width: 760px) {
  .site-header {
    background: rgba(255, 255, 255, .96);
  }

  .nav-links {
    border: 1px solid rgba(40, 16, 68, .08);
    border-radius: 0 0 16px 16px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .hero::before {
    width: 260px;
    height: 260px;
    right: -150px;
    top: -90px;
  }

  .section-pad {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .purpose-card,
  .learning-card,
  .academic-card,
  .sports-card,
  .event-card {
    border-radius: 16px;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .floating-whatsapp {
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
  }
}

/* Tablet spacing */
@media (min-width: 761px) and (max-width: 1024px) {
  .container {
    width: min(100% - 52px, 1000px);
  }

  .section-pad {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .intro-grid,
  .values-layout,
  .play-layout,
  .payment-layout,
  .location-grid,
  .contact-layout {
    gap: 38px;
  }
}

/* Accessibility: remove motion when requested */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .ppms-spinning-logo {
    animation: none !important;
  }
}

/* Subtle glass polish for the main section cards */
.purpose-card,
.learning-card,
.value-item,
.academic-card,
.sports-card,
.sl-feature-card,
.news-card,
.event-card {
  position: relative;
  isolation: isolate;
  transition:
    translate .35s cubic-bezier(.2, .75, .25, 1),
    box-shadow .35s ease,
    border-color .35s ease;
}

.purpose-card::after,
.learning-card::after,
.value-item::after,
.academic-card::after,
.sports-card::after,
.sl-feature-card::after,
.news-card::after,
.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, .34) 48%,
    transparent 68%
  );
  opacity: 0;
  transform: translateX(-110%);
  mix-blend-mode: screen;
}

.purpose-card:hover,
.learning-card:hover,
.value-item:hover,
.academic-card:hover,
.sports-card:hover,
.sl-feature-card:hover,
.news-card:hover,
.event-card:hover {
  translate: 0 -5px;
  box-shadow: 0 18px 38px rgba(40, 16, 68, .16);
}

.purpose-card:hover::after,
.learning-card:hover::after,
.value-item:hover::after,
.academic-card:hover::after,
.sports-card:hover::after,
.sl-feature-card:hover::after,
.news-card:hover::after,
.event-card:hover::after {
  opacity: 1;
  animation: ppmsGlassSweep .85s ease-out;
}

@keyframes ppmsGlassSweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}



/* =====================================================
   PEARLS PLACES - PREMIUM CARD ANIMATIONS
===================================================== */

/* Card entrance animation */
.purpose-card,
.learning-card,
.value-item,
.academic-card,
.sports-card,
.sl-feature-card,
.news-card,
.event-card,
.school-gallery {
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease,
        opacity 0.6s ease;
    will-change: transform;
}

/* Smooth hover lift */
.purpose-card:hover,
.learning-card:hover,
.value-item:hover,
.academic-card:hover,
.sports-card:hover,
.sl-feature-card:hover,
.news-card:hover,
.event-card:hover {
    transform: translateY(-9px) scale(1.015);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

/* Scroll reveal */
.pp-card-reveal {
    opacity: 0;
    transform: translate(var(--ppms-card-x, 0), var(--ppms-card-y, 0)) scale(0.97);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(.2, .75, .25, 1);
    will-change: opacity, transform;
}

.pp-card-reveal.pp-card-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.purpose-card.pp-card-reveal.pp-card-visible:hover,
.learning-card.pp-card-reveal.pp-card-visible:hover,
.value-item.pp-card-reveal.pp-card-visible:hover,
.academic-card.pp-card-reveal.pp-card-visible:hover,
.sports-card.pp-card-reveal.pp-card-visible:hover,
.sl-feature-card.pp-card-reveal.pp-card-visible:hover,
.news-card.pp-card-reveal.pp-card-visible:hover,
.event-card.pp-card-reveal.pp-card-visible:hover {
    transform: translateY(-9px) scale(1.015);
}

/* Image zoom inside cards */
.purpose-card img,
.learning-card img,
.academic-card img,
.sports-card img,
.news-card img,
.event-card img {
    transition: transform 0.55s ease;
}

.purpose-card:hover img,
.learning-card:hover img,
.academic-card:hover img,
.sports-card:hover img,
.news-card:hover img,
.event-card:hover img {
    transform: scale(1.06);
}


/* =====================================================
   ROCK PAPER SCISSORS GAME ANIMATIONS
===================================================== */

.game-choice {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.game-choice:hover {
    transform: translateY(-7px) scale(1.08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.game-choice:active {
    transform: scale(0.88);
}

/* Selected hand animation */
.game-choice.game-selected {
    animation: ppHandBounce 0.45s ease;
}

@keyframes ppHandBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.25) rotate(-8deg); }
    70% { transform: scale(0.95) rotate(5deg); }
    100% { transform: scale(1); }
}

/* Game result animation */
.game-result-pop {
    animation: ppResultPop 0.5s ease;
}

@keyframes ppResultPop {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.92);
    }
    65% {
        transform: translateY(-3px) scale(1.04);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Win celebration */
.game-win {
    animation: ppWinGlow 0.7s ease;
}

@keyframes ppWinGlow {
    0%, 100% {
        box-shadow: 0 0 0 transparent;
    }
    50% {
        box-shadow: 0 0 25px rgba(40, 180, 100, 0.55);
    }
}

/* Losing round feedback */
.game-lose {
    animation: ppGameBuzz 0.4s ease;
}

@keyframes ppGameBuzz {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Respect accessibility settings */
@media (prefers-reduced-motion: reduce) {
    .purpose-card,
    .learning-card,
    .value-item,
    .academic-card,
    .sports-card,
    .sl-feature-card,
    .news-card,
    .event-card,
    .game-choice {
        animation: none !important;
        transition: none !important;
    }

    .pp-card-reveal {
        opacity: 1;
        transform: none;
    }
}


/* Overlay Backdrop */
.ppms-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 5, 31, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  padding: 16px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ppms-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Card with Drop Animation */
.ppms-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 2px #d4af37;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #d7b56d 0%, #f3e0a8 50%, #c89d47 100%);
  transform: translateY(-70px) scale(0.95);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.ppms-overlay.active .ppms-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close Button */
.ppms-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #f3e0a8;
  background: rgba(43, 9, 71, 0.85);
  color: #f3e0a8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.ppms-close:hover {
  background: #f3e0a8;
  color: #2b0947;
  transform: scale(1.08);
}

/* Top Royal Purple Banner */
.ppms-header {
  background: radial-gradient(circle at top, #5e1796 0%, #2b0649 100%);
  padding: 18px 16px 36px;
  text-align: center;
  border-bottom: 3px solid #d4af37;
}

.ppms-crest-badge {
  width: 115px;
  height: 115px;
  margin: 0 auto -54px;
  background: #ffffff;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border: 3px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.ppms-crest-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Gold Section */
.ppms-body {
  padding: 46px 22px 18px;
  color: #1e0a2e;
}

.ppms-headline {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  color: #360959;
  margin: 0 0 14px;
  line-height: 1.25;
  letter-spacing: 0.4px;
}

.ppms-photo-frame {
  border: 3px solid #f7e6b5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
}

.ppms-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bullet Points */
.ppms-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.35;
}

.ppms-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ppms-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.ppms-features strong {
  color: #2b0649;
}

/* Bottom Purple Admissions CTA */
.ppms-admissions-cta {
  background: linear-gradient(90deg, #2b0649 0%, #4b107a 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 3px solid #d4af37;
  color: #ffffff;
}

.ppms-cta-text h3 {
  margin: 0 0 3px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f4c85b;
  letter-spacing: 0.3px;
}

.ppms-cta-text p {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ppms-apply-btn {
  display: inline-block;
  background: linear-gradient(180deg, #f7d574 0%, #cfa035 100%);
  color: #2b0649;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, filter 0.2s;
}

.ppms-apply-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.ppms-qr-box {
  text-align: center;
  flex-shrink: 0;
}

.ppms-qr-box img {
  width: 62px;
  height: 62px;
  background: #ffffff;
  padding: 4px;
  border-radius: 6px;
  display: block;
  margin: 0 auto 4px;
}

.ppms-qr-box span {
  display: block;
  font-size: 0.65rem;
  line-height: 1.15;
  color: #f3e0a8;
}

.history-details {
  margin-top: 16px;
}

.history-details summary {
  display: inline-flex;
  cursor: pointer;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 7px;
  list-style: none;
}

.history-details summary::-webkit-details-marker {
  display: none;
}

.history-details summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

.history-read-less,
.history-details[open] .history-read-more {
  display: none;
}

.history-details[open] .history-read-less {
  display: inline;
}



/* ==========================================
   COMMUNITY SECTION
========================================== */

.pp-community {
  --pp-primary: #075b91;
  --pp-secondary: #13a6a1;
  --pp-gold: #f4b942;
  --pp-dark: #142b43;

  width: 100%;
  padding: 85px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(19,166,161,.09), transparent 35%),
    linear-gradient(135deg, #f4faff, #ffffff 55%, #eff9ff);
  font-family: inherit;
  box-sizing: border-box;
}

.pp-community *,
.pp-community *::before,
.pp-community *::after {
  box-sizing: border-box;
}

/* HEADER */

.pp-community-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 55px;
  padding: 0 20px;
}

.pp-eyebrow {
  display: inline-block;
  color: var(--pp-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.pp-community-heading h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 850;
  color: var(--pp-dark);
  margin: 0 0 18px;
  letter-spacing: -1.5px;
}

.pp-community-heading h2 span {
  color: var(--pp-secondary);
}

.pp-community-heading p {
  color: #657487;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 600px;
}


/* ==========================================
   TESTIMONIAL SLIDER
========================================== */

.pp-testimonial-window {
  width: 100%;
  overflow: hidden;
  position: relative;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );

  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.pp-testimonial-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 25px;
  padding: 15px 12px 25px;

  animation: ppSlide 35s linear infinite;

  will-change: transform;
}

.pp-testimonial-window:hover .pp-testimonial-track {
  animation-play-state: paused;
}


/* CARDS */

.pp-testimonial-card {
  width: 360px;
  min-height: 320px;
  padding: 32px;
  display: flex;
  flex-direction: column;

  background: rgba(255,255,255,.88);
  border: 1px solid rgba(7,91,145,.10);
  border-radius: 22px;

  box-shadow:
    0 12px 35px rgba(15,55,85,.07),
    inset 0 1px 0 rgba(255,255,255,.9);

  position: relative;
  overflow: hidden;

  transition:
    transform .4s ease,
    box-shadow .4s ease,
    border-color .4s ease;

  flex-shrink: 0;
}

.pp-testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;

  background: linear-gradient(
    90deg,
    var(--pp-primary),
    var(--pp-secondary),
    var(--pp-gold)
  );
}

.pp-testimonial-card:hover {
  transform: translateY(-9px);
  border-color: rgba(19,166,161,.4);

  box-shadow:
    0 22px 45px rgba(15,55,85,.13);
}


/* STARS */

.pp-stars {
  color: var(--pp-gold);
  font-size: 19px;
  letter-spacing: 4px;
  margin-bottom: 20px;
}


/* QUOTE MARK */

.pp-quote-mark {
  position: absolute;
  top: 45px;
  right: 30px;

  font-family: Georgia, serif;
  font-size: 85px;
  line-height: 1;
  color: rgba(19,166,161,.13);
}


/* REVIEW TEXT */

.pp-review {
  color: #536477;
  font-size: 15px;
  line-height: 1.9;
  min-height: 145px;
  position: relative;
  z-index: 1;
  margin: 0 0 25px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.pp-review.is-expanded {
  display: block;
  overflow: visible;
}

.pp-read-more {
  align-self: flex-start;
  margin: -12px 0 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pp-primary);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}


/* PARENT PROFILE */

.pp-parent-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;

  padding-top: 20px;
  border-top: 1px solid #edf1f5;
}

.pp-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 14px;
  font-weight: 800;

  background: linear-gradient(
    135deg,
    var(--pp-primary),
    var(--pp-secondary)
  );

  box-shadow: 0 5px 15px rgba(7,91,145,.2);
}

.pp-parent-profile h3 {
  margin: 0 0 5px;
  color: var(--pp-dark);
  font-size: 15px;
  font-weight: 750;
}

.pp-parent-profile span {
  color: #8995a4;
  font-size: 12px;
}


/* ==========================================
   CONTINUOUS SLIDING ANIMATION
========================================== */

@keyframes ppSlide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* FOOTER */

.pp-community-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  margin: 35px auto 0;
  padding: 0 20px;

  color: #7a8a9b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
}

.pp-footer-line {
  width: 55px;
  height: 2px;
  background: var(--pp-secondary);
}


/* ==========================================
   MOBILE RESPONSIVENESS
========================================== */

@media (max-width: 600px) {

  .pp-community {
    padding: 65px 0;
  }

  .pp-community-heading {
    margin-bottom: 30px;
  }

  .pp-community-heading p {
    font-size: 14px;
  }

  .pp-testimonial-card {
    width: 290px;
    min-height: 340px;
    padding: 25px;
  }

  .pp-review {
    font-size: 14px;
    min-height: 165px;
  }

  .pp-testimonial-track {
    gap: 16px;
    animation-duration: 28s;
  }

  .pp-community-footer {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 9px;
  }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .pp-testimonial-track {
    animation: none;
  }

  .pp-testimonial-card {
    transition: none;
  }
}


