/* =======================================================
   POLARIS TUTORS — Main Stylesheet
   Version: 1.0.0
======================================================= */

/* ======= RESET & BASE ======= */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:'Inter',sans-serif;background:var(--cream);color:var(--text-dark);font-size:16px;line-height:1.7;}

/* ======= DESIGN TOKENS ======= */
:root{
  --royal:#1E38C0;
  --royal-dark:#0F1A72;
  --royal-mid:#2645CC;
  --terra:#E55520;
  --terra-light:#ED7245;
  --terra-pale:#F5EDE8;
  --cream:#F8F0E6;
  --cream-dark:#EDE5D8;
  --white:#FFFFFF;
  --text-dark:#1A1828;
  --text-mid:#4A4260;
  --text-light:#8A7F8A;
  --border-light:rgba(30,56,192,0.1);
  --border-terra:rgba(229,85,32,0.3);
}

/* ======= NAV ======= */
nav,#site-nav{position:fixed;top:0;left:0;right:0;z-index:9999;background:var(--white);padding:0 6%;height:88px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 1px 0 rgba(30,56,192,0.08),0 4px 16px rgba(0,0,0,0.04);}
.nav-logo{display:flex;align-items:center;text-decoration:none;}
.logo-svg,.logo-img{height:64px;width:auto;display:block;}
.nav-links{display:flex;gap:2.5rem;list-style:none;align-items:center;}
.nav-links a{color:var(--text-mid);text-decoration:none;font-size:0.82rem;letter-spacing:0.06em;font-weight:500;transition:color 0.2s;}
.nav-links a:hover{color:var(--royal);}
.nav-cta{background:var(--terra) !important;color:var(--white) !important;padding:0.6rem 1.5rem;border-radius:3px;font-weight:600 !important;letter-spacing:0.05em !important;}
.nav-cta:hover{background:var(--terra-light) !important;color:var(--white) !important;}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:4px;}
.hamburger span{display:block;width:22px;height:2px;background:var(--royal);}

/* Mobile nav open state */
.nav-links.open{display:flex;flex-direction:column;position:fixed;top:88px;left:0;right:0;background:var(--white);padding:1.5rem 6%;gap:1rem;box-shadow:0 8px 24px rgba(0,0,0,0.08);z-index:199;}

/* ======= HERO ======= */
.hero{min-height:100vh;position:relative;display:flex;align-items:center;overflow:hidden;padding-top:88px;}
.hero-img{position:absolute;inset:0;background-image:url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=1600&q=80');background-size:cover;background-position:center 30%;}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(105deg,rgba(12,23,105,0.94) 0%,rgba(30,56,192,0.82) 50%,rgba(12,23,105,0.62) 100%);}
.hero-content{position:relative;z-index:2;padding:5rem 6% 7rem;max-width:760px;}
.hero-eyebrow{font-size:0.72rem;letter-spacing:0.3em;text-transform:uppercase;color:var(--terra-light);margin-bottom:1.8rem;display:flex;align-items:center;gap:0.8rem;}
.hero-eyebrow::before{content:'';width:28px;height:1px;background:var(--terra-light);}
.hero h1{font-family:'Playfair Display',serif;font-size:clamp(2.8rem,5vw,4.8rem);font-weight:400;color:var(--white);line-height:1.08;margin-bottom:1.8rem;letter-spacing:-0.01em;}
.hero h1 em{font-style:italic;color:#F5B89A;}
.hero-desc{font-size:1.05rem;color:rgba(255,255,255,0.75);max-width:580px;margin-bottom:2.5rem;line-height:1.85;font-weight:300;}
.hero-btns{display:flex;gap:1.2rem;align-items:center;flex-wrap:wrap;margin-bottom:3.5rem;}
.btn-terra{background:var(--terra);color:var(--white);padding:1rem 2.5rem;font-size:0.82rem;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;text-decoration:none;border-radius:3px;transition:background 0.2s;display:inline-block;}
.btn-terra:hover{background:var(--terra-light);}
.btn-ghost-white{color:rgba(255,255,255,0.7);font-size:0.9rem;text-decoration:none;border-bottom:1px solid rgba(255,255,255,0.3);padding-bottom:2px;transition:all 0.2s;font-weight:400;}
.btn-ghost-white:hover{color:var(--white);border-color:rgba(255,255,255,0.7);}
.hero-badges{display:flex;flex-wrap:wrap;gap:0.55rem;}
.badge{font-size:0.68rem;letter-spacing:0.08em;text-transform:uppercase;color:rgba(255,255,255,0.55);border:1px solid rgba(255,255,255,0.15);padding:0.3rem 0.85rem;border-radius:2px;backdrop-filter:blur(4px);}

/* ======= TRUST BAR ======= */
.trust-bar{background:var(--royal);padding:2rem 6%;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;text-align:center;}
.trust-num{font-family:'Playfair Display',serif;font-size:2rem;color:var(--white);display:block;line-height:1;margin-bottom:0.25rem;}
.trust-lbl{font-size:0.65rem;letter-spacing:0.18em;text-transform:uppercase;color:rgba(255,255,255,0.55);}

/* ======= SHARED SECTION STYLES ======= */
section{padding:7rem 6%;}
.sec-label{font-size:0.68rem;letter-spacing:0.25em;text-transform:uppercase;color:var(--terra);margin-bottom:1rem;display:flex;align-items:center;gap:0.75rem;}
.sec-label::before{content:'';width:22px;height:1px;background:var(--terra);}
.sec-label.light{color:rgba(255,200,165,0.85);}
.sec-label.light::before{background:rgba(255,200,165,0.85);}
h2{font-family:'Playfair Display',serif;font-size:clamp(2rem,3.5vw,2.8rem);font-weight:400;color:var(--royal);line-height:1.2;margin-bottom:1.5rem;}
h2.light{color:var(--white);}
.terra-rule{width:40px;height:2px;background:var(--terra);margin-bottom:2rem;}
.body-text{color:var(--text-mid);font-size:1rem;line-height:1.85;}
.body-text p{margin-bottom:1rem;}

/* ======= ABOUT ======= */
.about{background:var(--white);}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:6rem;align-items:center;}
.about-img{position:relative;}
.about-img img{width:100%;height:520px;object-fit:cover;border-radius:2px;display:block;}
.about-img-badge{position:absolute;bottom:-2rem;left:-2rem;background:var(--terra);color:var(--white);padding:1.5rem 1.8rem;border-radius:2px;font-family:'Playfair Display',serif;}
.about-img-badge .badge-num{font-size:2.2rem;display:block;line-height:1;margin-bottom:0.2rem;}
.about-img-badge .badge-text{font-size:0.72rem;letter-spacing:0.1em;text-transform:uppercase;opacity:0.85;}
.pillars-grid{display:grid;grid-template-columns:1fr 1fr;gap:0.85rem;margin-top:2rem;}
.pillar{background:var(--cream);border-left:2px solid var(--terra);padding:1.25rem;}
.pillar h3{font-family:'Playfair Display',serif;font-size:0.98rem;font-weight:500;color:var(--royal);margin-bottom:0.3rem;}
.pillar p{font-size:0.82rem;color:var(--text-mid);line-height:1.6;}

/* ======= WHY POLARIS ======= */
.why{background:var(--royal-dark);}
.why h2{color:var(--white);}
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-top:3rem;}
.why-card{border:1px solid rgba(255,255,255,0.08);padding:2.5rem 2rem;background:rgba(255,255,255,0.03);transition:border-color 0.25s,background 0.25s;}
.why-card:hover{border-color:rgba(229,85,32,0.4);background:rgba(255,255,255,0.05);}
.why-icon{width:44px;height:44px;border:1px solid rgba(229,85,32,0.4);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:1.4rem;}
.why-icon svg{width:20px;height:20px;stroke:var(--terra-light);fill:none;stroke-width:1.5;}
.why-card h3{font-family:'Playfair Display',serif;font-size:1.2rem;font-weight:400;color:var(--white);margin-bottom:0.8rem;}
.why-card p{font-size:0.88rem;color:rgba(255,255,255,0.5);line-height:1.8;}

/* ======= SERVICES ======= */
.services{background:var(--cream);}
.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem;margin-top:3rem;}
.service-card{background:var(--white);border:1px solid var(--border-light);overflow:hidden;transition:box-shadow 0.25s,transform 0.25s;}
.service-card:hover{box-shadow:0 12px 40px rgba(30,56,192,0.1);transform:translateY(-3px);}
.service-img{width:100%;height:200px;object-fit:cover;display:block;}
.service-body{padding:1.75rem;}
.service-body h3{font-family:'Playfair Display',serif;font-size:1.2rem;font-weight:500;color:var(--royal);margin-bottom:0.65rem;}
.service-body p{font-size:0.875rem;color:var(--text-mid);line-height:1.75;margin-bottom:1rem;}
.service-tags{display:flex;flex-wrap:wrap;gap:0.4rem;}
.stag{font-size:0.68rem;letter-spacing:0.06em;color:var(--terra);border:1px solid rgba(229,85,32,0.2);padding:0.25rem 0.7rem;border-radius:2px;}

/* ======= SUBJECTS ======= */
.subjects{background:var(--white);}
.subjects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.25rem;margin-top:3rem;}
.subj-card{border:1px solid var(--border-light);padding:2.25rem;position:relative;overflow:hidden;transition:border-color 0.2s;}
.subj-card::before{content:'';position:absolute;top:0;left:0;width:3px;height:0;background:var(--terra);transition:height 0.3s;}
.subj-card:hover::before{height:100%;}
.subj-card:hover{border-color:rgba(229,85,32,0.3);}
.subj-icon{font-size:1.5rem;margin-bottom:1rem;display:block;}
.subj-card h3{font-family:'Playfair Display',serif;font-size:1.25rem;font-weight:400;color:var(--royal);margin-bottom:0.85rem;padding-bottom:0.85rem;border-bottom:1px solid var(--border-light);}
.subj-card p{font-size:0.875rem;color:var(--text-mid);line-height:1.8;margin-bottom:1.25rem;}
.tags{display:flex;flex-wrap:wrap;gap:0.4rem;}
.tag{font-size:0.68rem;letter-spacing:0.06em;color:var(--royal);background:rgba(30,56,192,0.06);padding:0.25rem 0.75rem;border-radius:2px;}

/* ======= AP / IB ======= */
.ap-ib{background:var(--terra);padding:5rem 6%;}
.ap-ib-inner{display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center;}
.ap-ib h2{color:var(--white);font-size:clamp(1.8rem,3vw,2.5rem);}
.ap-ib p{color:rgba(255,255,255,0.82);font-size:1rem;line-height:1.85;margin-bottom:1.5rem;}
.ap-list{display:grid;grid-template-columns:1fr 1fr;gap:0.6rem;}
.ap-item{background:rgba(255,255,255,0.1);padding:0.6rem 1rem;font-size:0.8rem;color:rgba(255,255,255,0.85);border-radius:2px;font-weight:500;}
.btn-white{background:var(--white);color:var(--royal);padding:0.9rem 2.2rem;font-size:0.78rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;text-decoration:none;border-radius:3px;transition:all 0.2s;display:inline-block;white-space:nowrap;}
.btn-white:hover{background:var(--cream);color:var(--royal-dark);}

/* ======= COLLEGE APPLICATIONS ======= */
.college{background:var(--cream);}
.college-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:6rem;align-items:center;}
.college-img img{width:100%;height:480px;object-fit:cover;border-radius:2px;}
.college-list{list-style:none;margin-top:1.5rem;}
.college-list li{display:flex;align-items:flex-start;gap:0.85rem;padding:0.85rem 0;border-bottom:1px solid var(--border-light);}
.college-list li:last-child{border-bottom:none;}
.check-icon{width:20px;height:20px;border-radius:50%;background:rgba(229,85,32,0.12);flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-top:2px;}
.check-icon svg{width:10px;height:10px;stroke:var(--terra);fill:none;stroke-width:2.5;}
.college-list li span{font-size:0.9rem;color:var(--text-mid);line-height:1.6;}
.college-list li strong{display:block;font-size:0.82rem;font-weight:600;color:var(--text-dark);}

/* ======= FOR SCHOOLS ======= */
.schools{background:var(--cream-dark);}
.schools-intro{max-width:660px;margin-bottom:4rem;}
.schools-intro p{color:var(--text-mid);font-size:1rem;line-height:1.85;}
.schools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:2rem;margin-bottom:4rem;}
.school-card{background:var(--white);padding:2.5rem 2rem;border-top:3px solid var(--terra);border-radius:2px;}
.school-card-icon{width:44px;height:44px;background:var(--terra-pale);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:1.5rem;}
.school-card-icon svg{width:20px;height:20px;stroke:var(--terra);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.school-card h3{font-family:'Playfair Display',serif;font-size:1.15rem;font-weight:400;color:var(--royal);margin-bottom:0.75rem;}
.school-card p{font-size:0.88rem;color:var(--text-mid);line-height:1.8;}
.schools-cta{background:var(--royal);color:var(--white);padding:3rem 3.5rem;border-radius:2px;display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap;}
.schools-cta-text h3{font-family:'Playfair Display',serif;font-size:1.5rem;font-weight:400;color:var(--white);margin-bottom:0.5rem;}
.schools-cta-text p{font-size:0.92rem;color:rgba(255,255,255,0.65);max-width:520px;line-height:1.7;}

/* ======= LEARNING LEVELS ======= */
.levels{background:var(--royal);}
.levels h2{color:var(--white);}
.levels-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem;margin-top:3rem;}
.level-card{border:1px solid rgba(255,255,255,0.1);padding:2.25rem 1.75rem;transition:background 0.2s,border-color 0.2s;}
.level-card:hover{background:rgba(255,255,255,0.05);border-color:rgba(255,200,165,0.4);}
.level-num{font-family:'Playfair Display',serif;font-size:3rem;color:rgba(255,200,165,0.18);display:block;line-height:1;margin-bottom:1rem;}
.level-card h3{font-family:'Playfair Display',serif;font-size:1.15rem;font-weight:400;color:var(--white);margin-bottom:0.65rem;}
.level-card p{font-size:0.83rem;color:rgba(255,255,255,0.5);line-height:1.75;}
.level-tags{display:flex;flex-wrap:wrap;gap:0.4rem;margin-top:1rem;}
.ltag{font-size:0.67rem;letter-spacing:0.05em;color:rgba(255,200,165,0.7);border:1px solid rgba(255,200,165,0.2);padding:0.2rem 0.65rem;border-radius:2px;}

/* ======= HOW IT WORKS ======= */
.process{background:var(--cream-dark);}
.process h2{text-align:center;}
.process .sec-label{justify-content:center;}
.process .terra-rule{margin:0 auto 2rem;}
.process-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:0;margin-top:3.5rem;position:relative;}
.process-steps::after{content:'';position:absolute;top:34px;left:10%;right:10%;height:1px;background:rgba(229,85,32,0.2);z-index:0;}
.proc-step{text-align:center;padding:0 1.5rem;}
.step-circle{width:68px;height:68px;border:2px solid var(--terra);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem;font-family:'Playfair Display',serif;font-size:1.4rem;color:var(--terra);background:var(--cream-dark);position:relative;z-index:1;}
.proc-step h3{font-family:'Playfair Display',serif;font-size:1.05rem;font-weight:500;color:var(--royal);margin-bottom:0.5rem;}
.proc-step p{font-size:0.83rem;color:var(--text-mid);line-height:1.7;}

/* ======= TESTIMONIALS ======= */
.testimonials{background:var(--royal-dark);}
.testi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-top:3rem;}
.testi-card{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.07);border-top:3px solid var(--terra);padding:2.5rem;}
.testi-stars{color:var(--terra-light);font-size:0.85rem;letter-spacing:0.2em;margin-bottom:1.25rem;}
.testi-quote{font-family:'Playfair Display',serif;font-size:1.05rem;font-style:italic;color:rgba(255,255,255,0.88);line-height:1.8;margin-bottom:1.75rem;}
.testi-quote::before{content:'\201C';}
.testi-quote::after{content:'\201D';}
.testi-author strong{display:block;font-size:0.78rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--terra-light);margin-bottom:0.2rem;}
.testi-author span{font-size:0.8rem;color:rgba(255,255,255,0.38);}

/* ======= FAQ ======= */
.faq{background:var(--white);}
.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:3rem;}
.faq-item{border:1px solid var(--border-light);padding:1.75rem 2rem;}
.faq-item h3{font-family:'Playfair Display',serif;font-size:1rem;font-weight:500;color:var(--royal);margin-bottom:0.75rem;padding-right:1.5rem;position:relative;}
.faq-item h3::after{content:'+';position:absolute;right:0;top:0;color:var(--terra);font-family:'Inter',sans-serif;font-weight:300;font-size:1.2rem;}
.faq-item p{font-size:0.875rem;color:var(--text-mid);line-height:1.75;}

/* ======= CONTACT ======= */
.contact{background:var(--cream);}
.contact-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:6rem;align-items:start;}
.contact-reassurances{display:flex;flex-direction:column;gap:0;}
.reassurance-item{display:flex;align-items:baseline;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--border-light);}
.reassurance-item:last-child{border-bottom:none;}
.reassurance-num{font-family:'Playfair Display',serif;font-size:1.1rem;color:var(--terra);font-weight:400;min-width:72px;flex-shrink:0;}
.reassurance-lbl{font-size:0.88rem;color:var(--text-mid);}
.form-card{background:var(--white);border:1px solid var(--border-light);padding:2.75rem;}
.form-card h3{font-family:'Playfair Display',serif;font-size:1.5rem;font-weight:400;color:var(--royal);margin-bottom:0.35rem;}
.form-card .form-subtitle{font-size:0.85rem;color:var(--text-mid);margin-bottom:2rem;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.form-group{margin-bottom:1.1rem;}
.form-group label{display:block;font-size:0.7rem;letter-spacing:0.14em;text-transform:uppercase;color:var(--royal);margin-bottom:0.45rem;font-weight:600;}
.form-group input,.form-group textarea,.form-group select{width:100%;border:1px solid rgba(30,56,192,0.15);padding:0.75rem 1rem;font-size:0.92rem;font-family:'Inter',sans-serif;color:var(--text-dark);background:var(--cream);outline:none;border-radius:2px;transition:border-color 0.2s;-webkit-appearance:none;}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{border-color:var(--terra);}
.form-group textarea{resize:vertical;min-height:130px;}
.req{color:var(--terra);}
.form-submit{width:100%;background:var(--royal);color:var(--white);border:none;padding:1.05rem;font-size:0.8rem;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;cursor:pointer;border-radius:2px;margin-top:0.5rem;transition:background 0.2s;font-family:'Inter',sans-serif;}
.form-submit:hover{background:var(--terra);}
.form-note{font-size:0.74rem;color:var(--text-light);margin-top:0.85rem;text-align:center;}

/* ======= CTA BANNER ======= */
.cta-banner{background:var(--royal);padding:5rem 6%;text-align:center;position:relative;overflow:hidden;}
.cta-banner::before{content:'';position:absolute;top:-50%;left:-10%;width:500px;height:500px;border-radius:50%;background:rgba(255,255,255,0.03);pointer-events:none;}
.cta-banner::after{content:'';position:absolute;bottom:-50%;right:-5%;width:400px;height:400px;border-radius:50%;background:rgba(229,85,32,0.08);pointer-events:none;}
.cta-banner h2{color:var(--white);font-size:clamp(1.8rem,3vw,2.5rem);max-width:700px;margin:0 auto 1rem;}
.cta-banner p{color:rgba(255,255,255,0.6);font-size:1rem;max-width:500px;margin:0 auto 2.5rem;}
.cta-btns{display:flex;justify-content:center;gap:1.25rem;flex-wrap:wrap;position:relative;z-index:1;}
.btn-terra-outline{border:2px solid rgba(255,255,255,0.3);color:rgba(255,255,255,0.8);padding:0.9rem 2.2rem;font-size:0.8rem;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;text-decoration:none;border-radius:3px;transition:all 0.2s;display:inline-block;}
.btn-terra-outline:hover{border-color:var(--white);color:var(--white);}

/* ======= FOOTER ======= */
footer{background:#080D2E;padding:5rem 6% 2.5rem;}
.footer-grid{display:grid;grid-template-columns:2.2fr 1fr 1fr 1fr 1fr;gap:3rem;margin-bottom:3.5rem;}
.footer-brand .footer-logo{display:block;margin-bottom:1.2rem;}
.footer-brand p{font-size:0.85rem;color:rgba(255,255,255,0.38);line-height:1.85;max-width:280px;}
.footer-col h4{font-size:0.65rem;letter-spacing:0.22em;text-transform:uppercase;color:var(--terra-light);margin-bottom:1.3rem;font-weight:600;}
.footer-col ul{list-style:none;}
.footer-col ul li{margin-bottom:0.65rem;}
.footer-col ul li a{color:rgba(255,255,255,0.42);text-decoration:none;font-size:0.85rem;transition:color 0.2s;}
.footer-col ul li a:hover{color:rgba(255,255,255,0.8);}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.07);padding-top:1.75rem;display:flex;justify-content:space-between;align-items:center;font-size:0.78rem;color:rgba(255,255,255,0.25);}
.footer-bottom a{color:rgba(255,255,255,0.25);text-decoration:none;}
.footer-bottom a:hover{color:rgba(255,255,255,0.55);}

/* ======= PAGE HERO (Join Our Team etc.) ======= */
.page-hero{background:var(--royal-dark);padding:9rem 6% 5rem;min-height:360px;display:flex;align-items:flex-end;position:relative;overflow:hidden;}
.page-hero::before{content:'';position:absolute;inset:0;background-image:url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1400&q=80');background-size:cover;background-position:center 40%;opacity:0.18;}
.page-hero-content{position:relative;z-index:2;max-width:760px;}
.page-hero-eyebrow{font-size:0.68rem;letter-spacing:0.28em;text-transform:uppercase;color:var(--terra-light);margin-bottom:1.2rem;display:flex;align-items:center;gap:0.75rem;}
.page-hero-eyebrow::before{content:'';width:22px;height:1px;background:var(--terra-light);}
.page-hero h1{font-family:'Playfair Display',serif;font-size:clamp(2.2rem,4vw,3.6rem);font-weight:400;color:var(--white);line-height:1.1;margin-bottom:1.2rem;}
.page-hero h1 em{font-style:italic;color:#F5B89A;}
.page-hero-desc{font-size:1rem;color:rgba(255,255,255,0.65);max-width:560px;line-height:1.85;font-weight:300;}

/* ======= JOIN OUR TEAM PAGE ======= */
.philosophy{background:var(--white);}
.philosophy-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:6rem;align-items:start;}
.philosophy-body{padding-top:0.5rem;}
.standards-list{list-style:none;margin-top:1.5rem;}
.standards-list li{display:flex;align-items:flex-start;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--border-light);}
.standards-list li:last-child{border-bottom:none;}
.std-check{width:20px;height:20px;background:var(--terra-pale);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px;}
.std-check svg{width:10px;height:10px;stroke:var(--terra);fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
.standards-list li p{font-size:0.9rem;color:var(--text-mid);line-height:1.7;}
.standards-list li strong{display:block;font-size:0.85rem;font-weight:600;color:var(--text-dark);margin-bottom:0.2rem;}
.philosophy-aside{background:var(--cream-dark);padding:3rem 2.5rem;border-radius:2px;}
.philosophy-aside h3{font-family:'Playfair Display',serif;font-size:1.3rem;font-weight:400;color:var(--royal);margin-bottom:1rem;}
.philosophy-aside p{font-size:0.9rem;color:var(--text-mid);line-height:1.8;margin-bottom:1rem;}
.philosophy-aside .aside-stat{margin-top:1.8rem;padding-top:1.5rem;border-top:1px solid rgba(30,56,192,0.12);}

/* ======= OPEN POSITIONS ======= */
.positions{background:var(--cream);}
.positions-intro{max-width:620px;color:var(--text-mid);font-size:1rem;line-height:1.85;margin-bottom:3.5rem;}
.position-group{margin-bottom:3.5rem;}
.position-group-label{font-size:0.65rem;letter-spacing:0.22em;text-transform:uppercase;color:var(--text-light);font-weight:600;padding-bottom:0.75rem;border-bottom:1px solid var(--border-light);margin-bottom:1rem;}
.position-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;}
.position-item{background:var(--white);padding:1.5rem 1.8rem;border-radius:2px;border-left:3px solid transparent;transition:border-color 0.2s,box-shadow 0.2s;}
.position-item:hover{border-color:var(--terra);box-shadow:0 4px 18px rgba(0,0,0,0.06);}
.position-item h4{font-family:'Inter',sans-serif;font-size:0.92rem;font-weight:600;color:var(--text-dark);margin-bottom:0.35rem;}
.position-item p{font-size:0.8rem;color:var(--text-light);}
.position-tag{display:inline-block;font-size:0.62rem;letter-spacing:0.1em;text-transform:uppercase;background:var(--terra-pale);color:var(--terra);padding:0.2rem 0.6rem;border-radius:2px;margin-top:0.65rem;}
.position-note{background:var(--royal);color:rgba(255,255,255,0.75);padding:2rem 2.5rem;border-radius:2px;font-size:0.9rem;line-height:1.8;margin-top:3rem;}
.position-note strong{color:var(--white);}

/* ======= APPLICATION FORM ======= */
.apply{background:var(--white);}
.apply-grid{display:grid;grid-template-columns:1fr 1.5fr;gap:6rem;align-items:start;}
.apply-info h2{margin-bottom:1rem;}
.apply-info .body-text{margin-bottom:2rem;}
.apply-steps{list-style:none;counter-reset:step;}
.apply-steps li{counter-increment:step;display:flex;align-items:flex-start;gap:1.1rem;padding:0.9rem 0;border-bottom:1px solid var(--border-light);}
.apply-steps li:last-child{border-bottom:none;}
.apply-steps li::before{content:counter(step);font-family:'Playfair Display',serif;font-size:1.3rem;color:var(--terra);flex-shrink:0;line-height:1;margin-top:2px;}
.apply-steps li p{font-size:0.88rem;color:var(--text-mid);line-height:1.7;}
.apply-steps li strong{display:block;font-size:0.85rem;font-weight:600;color:var(--text-dark);margin-bottom:0.1rem;}
.apply .form-card{background:var(--cream);padding:3rem 2.8rem;border-radius:2px;border:none;}
.apply .form-group input,.apply .form-group select,.apply .form-group textarea{background:var(--white);}
.apply .form-submit{background:var(--terra);}
.apply .form-submit:hover{background:var(--terra-light);}

/* ======= JOIN PAGE FOOTER VARIANT ======= */
.footer-logo-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:2rem;padding-bottom:2rem;border-bottom:1px solid rgba(255,255,255,0.07);flex-wrap:wrap;gap:1rem;}
.footer-logo-row p{font-size:0.85rem;color:rgba(255,255,255,0.35);max-width:400px;line-height:1.7;}
.footer-back{font-size:0.82rem;color:rgba(255,255,255,0.45);text-decoration:none;letter-spacing:0.05em;transition:color 0.2s;}
.footer-back:hover{color:rgba(255,255,255,0.8);}

/* ======= RESPONSIVE ======= */
@media(max-width:1100px){
  .about-grid,.college-grid{grid-template-columns:1fr;gap:3rem;}
  .about-img-badge{bottom:1rem;left:1rem;}
  .ap-ib-inner{grid-template-columns:1fr;gap:3rem;}
  .footer-grid{grid-template-columns:1fr 1fr 1fr;}
  .faq-grid{grid-template-columns:1fr;}
  .philosophy-grid{grid-template-columns:1fr;gap:3rem;}
  .apply-grid{grid-template-columns:1fr;gap:3rem;}
}
@media(max-width:768px){
  nav,#site-nav{padding:0 5%;}
  .nav-links{display:none;}
  .nav-links.open{display:flex;}
  .hamburger{display:flex;}
  section{padding:5rem 5%;}
  .hero-content{padding:4rem 5% 6rem;}
  .contact-grid{grid-template-columns:1fr;gap:3rem;}
  .process-steps::after{display:none;}
  .process-steps{gap:2rem;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .ap-list{grid-template-columns:1fr;}
  .levels-grid{grid-template-columns:1fr 1fr;}
  .cta-banner{padding:4rem 5%;}
  .page-hero{padding:7rem 5% 4rem;}
  .form-row{grid-template-columns:1fr;}
  .schools-cta{padding:2rem;}
  .footer-logo-row{flex-direction:column;align-items:flex-start;}
}

/* ======= CF7 APPLICATION FORM LABELS ======= */
/* CF7 wraps fields in spans with data-name; ::before renders visible labels */
.apply .wpcf7-form-control-wrap{display:block;}
.apply .wpcf7-form-control-wrap::before{
  display:block;
  font-size:0.7rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--royal);
  margin-bottom:0.45rem;
  font-weight:600;
}
.apply .wpcf7-form-control-wrap[data-name="first-name"]::before{content:"First Name *";}
.apply .wpcf7-form-control-wrap[data-name="last-name"]::before{content:"Last Name *";}
.apply .wpcf7-form-control-wrap[data-name="your-email"]::before{content:"Email Address *";}
.apply .wpcf7-form-control-wrap[data-name="your-phone"]::before{content:"Phone Number";}
.apply .wpcf7-form-control-wrap[data-name="credential"]::before{content:"Highest Credential *";}
.apply .wpcf7-form-control-wrap[data-name="subjects"]::before{content:"Subjects You Teach *";}
.apply .wpcf7-form-control-wrap[data-name="experience"]::before{content:"Years of Experience *";}
.apply .wpcf7-form-control-wrap[data-name="institution"]::before{content:"School or University";}
.apply .wpcf7-form-control-wrap[data-name="teaching-approach"]::before{content:"Teaching Approach *";}
.apply .wpcf7-form-control-wrap[data-name="portfolio"]::before{content:"Portfolio or LinkedIn URL";}

/* Monday.com form embed */
.monday-form-wrap{align-self:start;position:sticky;top:108px;}
.monday-form-wrap iframe{width:100%;border:none;display:block;}

/* =======================================================
   BLOG STYLES
======================================================= */

/* ======= BLOG HERO ======= */
.blog-hero{
  position:relative;
  padding:10rem 6% 5rem;
  background:var(--royal-dark);
  overflow:hidden;
  min-height:320px;
  display:flex;
  align-items:flex-end;
}
.blog-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(12,23,105,0.95) 0%,rgba(30,56,192,0.85) 100%);
}
.blog-hero::before{
  content:'';position:absolute;top:-30%;right:-5%;width:500px;height:500px;
  border-radius:50%;background:rgba(229,85,32,0.06);pointer-events:none;z-index:1;
}
.blog-hero-content{
  position:relative;z-index:2;max-width:700px;
}
.blog-hero h1{
  font-family:'Playfair Display',serif;
  font-size:clamp(2.2rem,4vw,3.4rem);
  font-weight:400;color:var(--white);
  line-height:1.1;margin-bottom:1rem;
}
.blog-hero-desc{
  font-size:1.05rem;color:rgba(255,255,255,0.6);
  line-height:1.8;font-weight:300;max-width:540px;
}

/* ======= CATEGORY FILTER BAR ======= */
.blog-filter-bar{
  background:var(--white);
  border-bottom:1px solid var(--border-light);
  padding:0 6%;
  position:sticky;top:88px;z-index:100;
}
.blog-filter-inner{
  display:flex;gap:0.5rem;padding:1rem 0;
  overflow-x:auto;-webkit-overflow-scrolling:touch;
}
.blog-filter-tag{
  font-size:0.72rem;letter-spacing:0.08em;text-transform:uppercase;
  color:var(--text-mid);text-decoration:none;
  padding:0.45rem 1.1rem;border-radius:2px;
  border:1px solid var(--border-light);
  white-space:nowrap;transition:all 0.2s;font-weight:500;
}
.blog-filter-tag:hover{
  border-color:var(--royal);color:var(--royal);
}
.blog-filter-tag.active{
  background:var(--royal);color:var(--white);border-color:var(--royal);
}

/* ======= BLOG ARCHIVE GRID ======= */
.blog-archive{
  background:var(--cream);
  padding:4rem 6% 5rem;
}
.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
  gap:1.5rem;
  max-width:1200px;
  margin:0 auto;
}
.blog-card{
  background:var(--white);
  border:1px solid var(--border-light);
  border-radius:2px;
  overflow:hidden;
  transition:box-shadow 0.25s,transform 0.25s;
  display:flex;flex-direction:column;
}
.blog-card:hover{
  box-shadow:0 12px 40px rgba(30,56,192,0.1);
  transform:translateY(-3px);
}
.blog-card-body{
  padding:2rem 2rem 1.75rem;
  display:flex;flex-direction:column;flex:1;
}
.blog-card-meta{
  display:flex;align-items:center;gap:0.75rem;
  margin-bottom:1rem;
}
.blog-card-cat{
  font-size:0.62rem;letter-spacing:0.12em;text-transform:uppercase;
  background:var(--terra-pale);color:var(--terra);
  padding:0.25rem 0.7rem;border-radius:2px;font-weight:600;
}
.blog-card-date{
  font-size:0.75rem;color:var(--text-light);
}
.blog-card-title{
  font-family:'Playfair Display',serif;
  font-size:1.25rem;font-weight:400;
  color:var(--royal);line-height:1.3;
  margin-bottom:0.85rem;
}
.blog-card-title a{
  color:inherit;text-decoration:none;
  transition:color 0.2s;
}
.blog-card-title a:hover{
  color:var(--terra);
}
.blog-card-excerpt{
  font-size:0.88rem;color:var(--text-mid);
  line-height:1.75;margin-bottom:1.25rem;
  flex:1;
}
.blog-card-link{
  font-size:0.78rem;letter-spacing:0.08em;text-transform:uppercase;
  color:var(--terra);text-decoration:none;font-weight:600;
  display:inline-flex;align-items:center;gap:0.4rem;
  transition:gap 0.2s;
}
.blog-card-link:hover{
  gap:0.7rem;
}

/* ======= BLOG PAGINATION ======= */
.blog-pagination{
  max-width:1200px;margin:3rem auto 0;
  text-align:center;
}
.blog-pagination .nav-links{
  display:flex;justify-content:center;
  align-items:center;gap:0.5rem;
}
.blog-pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;
  font-size:0.85rem;color:var(--text-mid);
  text-decoration:none;border:1px solid var(--border-light);
  border-radius:2px;transition:all 0.2s;
}
.blog-pagination .page-numbers:hover{
  border-color:var(--royal);color:var(--royal);
}
.blog-pagination .page-numbers.current{
  background:var(--royal);color:var(--white);border-color:var(--royal);
}
.blog-pagination .prev.page-numbers,
.blog-pagination .next.page-numbers{
  width:auto;padding:0 1.2rem;
  font-size:0.75rem;letter-spacing:0.06em;
  text-transform:uppercase;font-weight:600;
}
.blog-empty{
  text-align:center;color:var(--text-mid);
  font-size:1.1rem;padding:4rem 0;
}

/* ======= SINGLE POST ======= */
.single-post-main{
  padding-top:88px;min-height:60vh;
  position:relative;z-index:1;
}
.single-post-header{
  background:var(--royal-dark);
  padding:8rem 6% 4rem;
  position:relative;overflow:hidden;
  z-index:2;
}
.single-post-header::before{
  content:'';position:absolute;top:-30%;right:-5%;width:500px;height:500px;
  border-radius:50%;background:rgba(229,85,32,0.06);pointer-events:none;
}
.single-post-header-inner{
  position:relative;z-index:2;max-width:760px;
}
.single-post-meta{
  display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem;
}
.single-post-meta .blog-card-cat{
  background:rgba(229,85,32,0.2);color:var(--terra-light);
}
.single-post-meta time{
  font-size:0.72rem;letter-spacing:0.2em;text-transform:uppercase;
  color:rgba(255,255,255,0.5);
}
.single-post-header h1{
  font-family:'Playfair Display',serif;
  font-size:clamp(2rem,3.5vw,2.8rem);
  font-weight:400;color:var(--white);
  line-height:1.2;margin-bottom:1rem;
}
.single-post-content{
  max-width:760px;margin:0 auto;
  padding:4rem 6% 5rem;
  color:var(--text-mid);font-size:1rem;line-height:1.85;
}
.single-post-content h2{
  font-family:'Playfair Display',serif;
  font-size:1.6rem;font-weight:400;
  color:var(--royal);margin:2.5rem 0 1rem;
}
.single-post-content h3{
  font-family:'Playfair Display',serif;
  font-size:1.2rem;font-weight:500;
  color:var(--royal);margin:2rem 0 0.75rem;
}
.single-post-content p{margin-bottom:1.25rem;}
.single-post-content ul,.single-post-content ol{
  margin:0 0 1.5rem 1.5rem;
}
.single-post-content li{margin-bottom:0.5rem;}
.single-post-content a{color:var(--terra);text-decoration:underline;text-underline-offset:2px;}
.single-post-content a:hover{color:var(--terra-light);}
.single-post-content table{
  width:100%;border-collapse:collapse;margin:1.5rem 0;
  font-size:0.9rem;
}
.single-post-content th{
  background:var(--royal);color:var(--white);
  padding:0.75rem 1rem;text-align:left;
  font-size:0.78rem;letter-spacing:0.06em;text-transform:uppercase;font-weight:600;
}
.single-post-content td{
  padding:0.75rem 1rem;border-bottom:1px solid var(--border-light);
}
.single-post-content tr:hover td{background:rgba(30,56,192,0.02);}
.single-post-content strong{color:var(--text-dark);}

/* Related articles */
.related-articles{
  margin:2.5rem 0;padding:2rem;
  background:rgba(30,56,192,0.03);border-left:3px solid var(--royal);
  border-radius:0 4px 4px 0;
}
.related-articles h3{
  font-family:'Playfair Display',serif;font-size:1.1rem;
  color:var(--royal);margin:0 0 1rem !important;
}
.related-articles ul{
  list-style:none;padding:0;margin:0;
}
.related-articles li{margin-bottom:0.5rem;}
.related-articles a{
  color:var(--terra);text-decoration:none;font-weight:500;
  transition:color 0.2s;
}
.related-articles a:hover{color:var(--royal);text-decoration:underline;}

/* Author bio */
.author-bio{
  max-width:760px;margin:0 auto;padding:0 6% 2.5rem;
  display:flex;align-items:flex-start;gap:1.25rem;
  border-top:1px solid var(--border-light);padding-top:2rem;
}
.author-bio-icon{
  width:48px;height:48px;min-width:48px;
  background:var(--royal);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--white);font-family:'Playfair Display',serif;
  font-size:1.2rem;font-weight:600;
}
.author-bio-text{font-size:0.85rem;color:var(--text-mid);line-height:1.6;}
.author-bio-name{font-weight:600;color:var(--royal);display:block;margin-bottom:0.25rem;font-size:0.9rem;}

/* Single post tags */
.single-post-tags{
  max-width:760px;margin:0 auto;
  padding:0 6% 2rem;
  display:flex;gap:0.5rem;flex-wrap:wrap;
}
.single-post-tags a{
  font-size:0.68rem;letter-spacing:0.06em;
  color:var(--royal);background:rgba(30,56,192,0.06);
  padding:0.3rem 0.85rem;border-radius:2px;
  text-decoration:none;transition:all 0.2s;
}
.single-post-tags a:hover{
  background:var(--royal);color:var(--white);
}

/* Post navigation */
.single-post-nav{
  max-width:760px;margin:0 auto;
  padding:0 6% 4rem;
  display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;
  border-top:1px solid var(--border-light);padding-top:2.5rem;
  position:relative;z-index:0;
}
.post-nav-item{
  text-decoration:none;padding:1.25rem;
  border:1px solid var(--border-light);border-radius:2px;
  transition:border-color 0.2s;
  background:var(--white);
}
.post-nav-item:hover{border-color:var(--terra);}
.post-nav-label{
  font-size:0.65rem;letter-spacing:0.15em;text-transform:uppercase;
  color:var(--text-light);display:block;margin-bottom:0.4rem;
}
.post-nav-title{
  font-family:'Playfair Display',serif;
  font-size:0.95rem;color:var(--royal);line-height:1.4;
}
.post-nav-item.next{text-align:right;}

/* ======= FAQ PAGE ======= */
.faq-page-intro{
  max-width:760px;margin:0 auto;padding:0 6%;
  font-size:1.05rem;color:var(--text-mid);line-height:1.8;
}
.faq-section{
  max-width:760px;margin:2.5rem auto 0;padding:0 6%;
}
.faq-section h2{
  font-family:'Playfair Display',serif;font-size:1.5rem;
  color:var(--royal);font-weight:400;
  border-bottom:2px solid var(--terra);padding-bottom:0.5rem;
  margin-bottom:1.5rem;
}
.faq-item{margin-bottom:2rem;}
.faq-item h3{
  font-family:'Playfair Display',serif;font-size:1.1rem;
  color:var(--royal-dark);font-weight:500;margin-bottom:0.5rem;
}
.faq-item p{
  color:var(--text-mid);line-height:1.8;font-size:0.95rem;
}

/* ======= BLOG RESPONSIVE ======= */
@media(max-width:768px){
  .blog-hero{padding:8rem 5% 3.5rem;min-height:260px;}
  .blog-archive{padding:3rem 5% 4rem;}
  .blog-grid{grid-template-columns:1fr;gap:1.25rem;}
  .blog-filter-bar{padding:0 5%;top:88px;}
  .single-post-header{padding:7rem 5% 3rem;}
  .single-post-content{padding:3rem 5% 4rem;}
  .single-post-nav{grid-template-columns:1fr;padding:0 5% 3rem;}
  .single-post-tags{padding:0 5% 2rem;}
}
