/* ---------- Base & Theme ---------- */
:root{
  --bg: #f6f3ea;          /* soft cream (fits your logo) */
  --ink: #0f1b36;         /* deep navy */
  --muted: #6b778c;
  --accent: #e9772e;      /* orange from your logo */
  --radius: 20px;
  --header-h: 64px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  overflow-x: hidden;
}
html, body{ height: 100%; }
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }

.hero-list{
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
}

.hero-list li{
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: .75rem;
  color: var(--ink);
}

.hero-list li::before{
  content: '';
  position: absolute;
  left: 0;
  top: .45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Header / Navbar ---------- */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15,27,54,.06);
}
.navbar{
  height: var(--header-h);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand{ display: flex; align-items: center; gap: .6rem; }
.brand img{ width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand span{ font-weight: 700; letter-spacing: .2px; }

.nav-links{ display: flex; align-items: center; gap: 1.25rem; }
.nav-links a{ padding: .5rem .25rem; opacity: .9; }
.nav-links a:hover{ color: var(--accent); opacity: 1; }
.nav-links a.cta-btn:hover{ color: #000; }

.burger{
  display: none; border: 0; background: transparent;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* CTA button */
.cta-btn{
  padding: .6rem 1rem;
  background: var(--accent); color: #fff; border: 0;
  border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(233,119,46,.25);
}
.cta-btn:hover{ transform: translateY(-1px); box-shadow: 0 8px 24px rgba(233,119,46,.33); }

/* ---------- Hero ---------- */
.hero{
  min-height: calc(100vh - var(--header-h));
  display: grid; place-items: center;
  padding: 4rem 1rem;
  background:
    radial-gradient(1200px 500px at 90% -50%, rgba(233,119,46,.12), transparent 60%),
    radial-gradient(900px 400px at -10% 10%, rgba(15,27,54,.12), transparent 60%);
}
.hero-inner{
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
}
.hero h1{ font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin-bottom: 1rem; }
.hero p{ font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); margin-bottom: 1.5rem; max-width: 52ch; }
.actions{ display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn-link{ font-weight: 600; }
.btn-link:hover{ color: var(--accent); text-decoration: underline; }
.hero-card{
  background: #fff; padding: 1.25rem; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15,27,54,.08);
}
.hero-card img{ 
	width: 100%; border-radius: var(--radius); object-fit: cover;
 }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero-inner{
    grid-template-columns: 1fr;
    text-align: center;
    width: 100%;
  }

  .hero-copy{
    width: 100%;
    max-width: 100%;
  }

  .intro{
    width: 100%;
    max-width: 100%;
  }

  .hero-list{
    width: fit-content;
    margin: 1rem auto 1.5rem;
    padding-left: 0;
    text-align: left;
  }

  .hero-list li{
    text-align: left;
    padding-left: 1.25rem;
  }
}
@media (max-width: 768px){
  .burger{ display: inline-block; }
  .nav-links{
    position: absolute; right: 1rem; top: calc(var(--header-h) + .5rem);
    background: #fff; border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15,27,54,.12);
    padding: .75rem; min-width: 220px;
    display: none; flex-direction: column;
  }
  .nav-links.open{ display: flex; }
}

/* Optional: tiny corner logo (if you want it) */
/*
.logo-corner{
  position: fixed; top: 12px; right: 12px;
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; z-index: 1100;
}
*/


/* ---------- Generic section + container ---------- */
.section{ padding: 4rem 1rem; }
.container{ max-width: 1100px; margin: 0 auto; }

/* ---------- ABOUT ---------- */
.about .split{
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 2rem; align-items: center;
}
.about .kicker{ color: var(--accent); font-weight: 700; letter-spacing: .4px; }
.about h2{ font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.1; margin:.4rem 0 1rem; }
.about p{ color: var(--muted); margin-bottom: 1rem; }
.about .bullets{ display: grid; gap: .6rem; margin: 1rem 0 1.5rem; }
.about .bullets li{ display: flex; align-items: start; gap: .6rem; }
.about .dot{
  width: 10px; height: 10px; border-radius: 999px; background: var(--accent); margin-top: .45rem;
}
.about .media{
  background:#fff; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15,27,54,.08);
  padding: .75rem;
}
.about .media img{
  width: 100%; height: 100%; border-radius: calc(var(--radius) - .75rem); object-fit: cover;
}

/* ---------- REVIEWS ---------- */
.reviews h2{ font-size: clamp(1.8rem, 3.5vw, 2.2rem); margin-bottom: .5rem; }
.reviews .sub{ color: var(--muted); margin-bottom: 1.25rem; }
.review-wrap{
  position: relative;
}
.review-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
}
.review-track::-webkit-scrollbar{ height: 8px; }
.review-track::-webkit-scrollbar-thumb{ background: rgba(15,27,54,.15); border-radius: 8px; }

.review-card{
  background:#fff; padding: 1rem 1.1rem; border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15,27,54,.08);
  scroll-snap-align: start;
  display: grid; gap: .75rem;
}
.stars{ color: var(--accent); font-size: 1.05rem; letter-spacing: .5px; }
.review-text{ color: var(--ink); }
.reviewer{
  display: flex; align-items: center; gap: .6rem; margin-top: .25rem;
}
.reviewer img{
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
}
.reviewer .meta{ font-size: .9rem; color: var(--muted); }
.reviewer .name{ color: var(--ink); font-weight: 600; }

/* Prev/Next buttons (mobile-friendly) */
.review-controls{
  display: flex; gap: .5rem; margin-left: auto; margin-bottom: .5rem;
}
.icon-btn{
  border: 1px solid rgba(15,27,54,.12);
  background: #fff; border-radius: 10px;
  width: 38px; height: 38px; display: grid; place-items: center;
  cursor: pointer;
}
.icon-btn:hover{ border-color: rgba(15,27,54,.25); }

@media (max-width: 900px){
  .about .split{ grid-template-columns: 1fr; text-align: left; }
}

.hero-card{ position: relative; overflow: hidden; border-radius: var(--radius); }
#heroRotator{
  width: 100%;
  height: auto;
  display: block;
  transition: opacity .4s ease;
}
#heroRotator.is-fading{ opacity: 0; }


/* ---------- Footer ---------- */
.site-footer{
  margin-top: 4rem;
  background: linear-gradient(180deg, rgba(15,27,54,.98), rgba(15,27,54,1));
  color: #fff;
}

.footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3rem;
}

/* Divider between Explore and Support columns */
.footer-inner > div:nth-child(3){
  padding-left: 2rem;
  border-left: 1px solid rgba(255,255,255,.1);
}

.site-footer h3{
  font-size: 1rem;
  letter-spacing: .3px;
  margin-bottom: .8rem;
}

.site-footer a{ color: #e7ecf7; opacity: .92; }
.site-footer a:hover{ color: var(--accent); opacity: 1; }

.footer-brand{
  display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem;
}
.footer-brand img{
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
}
.footer-brand span{ font-weight: 700; letter-spacing: .2px; }

.footer-text{ color: rgba(255,255,255,.75); }

.newsletter{
  display: grid; grid-template-columns: 1fr auto; gap: .5rem;
}
.newsletter input{
  padding: .6rem .8rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: #fff;
}
.newsletter input::placeholder{ color: rgba(255,255,255,.7); }
.newsletter .cta-btn{ border-radius: 10px; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 1.5rem;
  padding: 1rem 1rem 2rem;
}
.footer-bottom-inner{
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  color: rgba(255,255,255,.75);
}

.visually-hidden{
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Responsive */
@media (max-width: 900px){
  .footer-inner{ grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-inner > div:nth-child(3){ padding-left: 0; border-left: none; }
}
@media (max-width: 560px){
  .footer-inner{
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    width: 100%;
  }

  .newsletter{
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .site-footer{
    width: 100%;
    overflow-x: hidden;
  }
}


/* ---------- Subjects Grid ---------- */
.section{ padding: 4rem 1rem; }
.container{ max-width: 1100px; margin: 0 auto; }

.subjects-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.subject-card{
  background:#fff;
  border-radius: var(--radius);
  justify-content: stretch; 
  box-shadow: 0 10px 28px rgba(15,27,54,.08);
  padding: 1.25rem;
  display: grid; gap: .75rem;
}
.hover-lift{transition:box-shadow .25s ease,transform .25s ease}.hover-lift:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(15,27,54,.18)}
.subject-card h3{ font-size: 1.15rem; }
.subtext{ color: var(--muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;       /* Prevent flex container from compressing */
  position: relative;   /* Keep it visually stable */
  z-index: 1;           /* Keeps it above expanding sections if needed */
}

.tag {
  font-size: .8rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(233, 119, 46, .12);
  color: var(--accent);
  white-space: nowrap;  /* Prevent tag text from wrapping */
}


.subject-card ul{ padding-left: 1rem; }
.subject-card li{ margin:.25rem 0; }

/* Collapsible resources */
details{
  border: 1px solid rgba(15,27,54,.08);
  border-radius: 10px;
  padding: .75rem .9rem;
  background: #fafafa;
}
details[open]{ background:#fff; }
summary{
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
summary::-webkit-details-marker{ display: none; }

@media (max-width: 960px){ .subjects-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .subjects-grid{ grid-template-columns: 1fr; } }

/* Hover effect for recommended workbook links */
details ul li a {
  display: block;                  /* Makes the hover area cover the full line */
  padding: 0px 0px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

details ul li a:hover {
  background: rgba(233, 119, 46, 0.1);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15,27,54,0.1);
}
/* === Payment page: simple one-column, centered === */
/* === Payment Page: Warm, polished theme === */
.container.payment { 
  max-width: 720px; 
}

.payment .page-head { 
  margin-bottom: 1rem; 
  text-align: left; 
}

.payment .info-grid { 
  display: block; 
}

.payment .info-card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15,27,54,.08);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  border-left: 5px solid var(--accent); /* soft orange edge */
  transition: transform .2s ease, box-shadow .2s ease;
}
.payment .info-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,27,54,.12);
}

.h2{
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 .6rem;
}

/* Softer bullet list */
.tick-list{
  list-style: none;
  padding-left: 0;
}
.tick-list li{
  margin: .35rem 0;
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink);
}
.tick-list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

/* Bank box with elegant tone */
.bank-box{
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .75rem;
  row-gap: .4rem;
  background: linear-gradient(180deg, #fffaf4, #fff);
  border: 1px solid rgba(233,119,46,.25);
  border-left: 4px solid var(--accent);
  padding: 1rem;
  border-radius: 10px;
}
.bank-box dt{
  font-weight: 600;
  color: var(--accent);
}
.bank-box dd{
  margin: 0;
  color: var(--ink);
}

/* Subtext note */
.subtext{
  color: var(--muted);
  font-size: .95rem;
}

/* Highlighted info note */
.note{
  margin-top: .8rem;
  background: rgba(233,119,46,.08);
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding: .6rem .9rem;
  border-radius: 10px;
  font-size: .95rem;
}

/* Slightly lighter section background */
body {
  background: #f8f6f0;
}

/* === Payment page: simple one-column, centered === */


/* ---------- Contact Page ---------- */
.contact-section{
  max-width: 900px;
  margin: 20rem auto 4rem;
  padding: 10rem 10rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15,27,54,.08);
  position: relative;
}


.contact-section h1{
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.1;
  margin: .25rem 0 .5rem;
}
.contact-section > p{
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Form layout */
.contact-form{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem 1.25rem;
}

.form-group{ display: flex; flex-direction: column; }
.form-group.full-width{ grid-column: 1 / -1; }

.form-group label{
  font-weight: 600;
  margin-bottom: .4rem;
}

/* Inputs */
.contact-form input,
.contact-form textarea{
  padding: .7rem .85rem;
  border-radius: 10px;
  border: 1px solid rgba(15,27,54,.12);
  background: #fafafa;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form textarea{ min-height: 160px; resize: vertical; }

/* Focus and validation */
.contact-form input:focus,
.contact-form textarea:focus{
  background: #fff;
  border-color: rgba(233,119,46,.6);
  box-shadow: 0 0 0 3px rgba(233,119,46,.18);
}
.contact-form input:invalid,
.contact-form textarea:invalid{
  border-color: rgba(233,46,46,.35);
}

/* Submit button styled like your CTA */
.submit-button{
  justify-self: start;
  padding: .7rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(233,119,46,.25);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.submit-button:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(233,119,46,.33);
}
.submit-button:active{ transform: translateY(0); }

/* Nice spacing for tiny screens */
@media (max-width: 700px){
  .contact-form{ grid-template-columns: 1fr; }
  .submit-button{ justify-self: stretch; }
}

/* ---------- Timetable & Calendar (page-specific) ---------- */

/* Fallbacks so this works even if variables weren't set earlier */
/* :root fallbacks removed — defined in main :root block above */

/* Common cards / headings */
.page-head h1{
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: .25rem;
}
.page-head .subtext{ color: var(--muted); margin-bottom: 1rem; }

.card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15,27,54,.08);
  padding: 1rem;
}

/* Responsive scroll container for wide tables */
.table-scroll{ overflow-x: auto; border-radius: var(--radius); }

/* Base table style */
.table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.table th,
.table td{
  padding: .75rem .85rem;
  text-align: left;
  border-bottom: 1px solid rgba(15,27,54,.08);
  vertical-align: middle;
  white-space: nowrap;
}
.table thead th{
  position: sticky; top: 0;
  background: linear-gradient(180deg, rgba(15,27,54,.03), rgba(15,27,54,.01));
  font-weight: 700;
  color: var(--ink);
  z-index: 1;
}
.table tbody tr:last-child td,
.table tbody tr:last-child th{ border-bottom: 0; }

/* Timetable specific */
.timetable-table th:first-child{ width: 88px; color: var(--muted); font-weight: 600; }
.timetable-table td{ min-width: 220px; }

/* Subjects as colored pills — edit colors here if you like */
.pill{
  display: inline-block;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1;
}

/* individual subject tints */
.pill-fsm   { background: #ffeadd; color: #7c3a13; } /* orange tint */
.pill-ks3   { background: #e8f0ff; color: #1e3a8a; } /* blue tint  */
.pill-ks4   { background: #e9fbf0; color: #166534; } /* green tint */
.pill-env   { background: #ffe0e0; color: #c41e3a; } /* light red */
.pill-pe    { background: #fff4db; color: #7a4f00; } /* warm yellow */
.pill-guitar{ background: #f5eaff; color: #5b21b6; } /* purple tint */
.pill-admin { background: #eef7ff; color: #0b3b5c; } /* cyan/blue  */

/* Fees table decoration */
.fees-table .term td:first-child{
  font-weight: 600;
}
.fees-table .holiday td{
  background: #fafafa;
  color: var(--muted);
}

/* Legend */
.legend{ margin-top: 1.25rem; }
.legend .h3{ margin-bottom: .5rem; }
.legend ul{ display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }

/* Small screens */
@media (max-width: 720px){
  .timetable-table td{ min-width: 180px; }
}


/* ===== Term Schedule ===== */
:root {
  --term-stripe:   #e9772e;
  --holiday-stripe: #f2c94c;
  --term-bg:       #fffaf4;
  --holiday-bg:    #f7f8fb;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: fixed;
}

/* Fixed column widths so every row lines up */
.fees-table th:nth-child(1),
.fees-table td:nth-child(1) { width: 60%; padding-left: 1.25rem; }

.fees-table th:nth-child(2),
.fees-table td:nth-child(2) { width: 20%; font-weight: 700; color: var(--ink); }

.fees-table th:nth-child(3),
.fees-table td:nth-child(3) { width: 20%; font-weight: 700; color: var(--accent); text-align: left; }

.fees-table thead th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  padding: .6rem .85rem;
  border-bottom: 2px solid rgba(15,27,54,.1);
  background: rgba(15,27,54,.02);
}

.fees-table tbody td {
  padding: .55rem .85rem;
  border-bottom: 1px solid rgba(15,27,54,.06);
  vertical-align: middle;
  text-align: left;
}

.fees-table tbody tr:last-child td { border-bottom: 0; }

/* Row background colours */
.fees-table tbody tr.term td    { background: var(--term-bg); }
.fees-table tbody tr.holiday td { background: var(--holiday-bg); color: var(--muted); }

/* Left colour stripe using box-shadow so it doesn't affect layout at all */
.fees-table tbody tr.term td:first-child {
  box-shadow: inset 4px 0 0 var(--term-stripe);
}
.fees-table tbody tr.holiday td:first-child {
  box-shadow: inset 4px 0 0 var(--holiday-stripe);
}

/* Holiday cost column stays muted */
.fees-table tbody tr.holiday td:nth-child(3) {
  color: var(--muted);
}

/* Term cost cell: subtle highlight */
.fees-table tbody tr.term td:nth-child(3) {
  background: rgba(233,119,46,.08);
}

.h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin: .25rem 0 .5rem; }

@media (max-width: 640px) {
  .fees-table { table-layout: auto; }
  .fees-table th:nth-child(1),
  .fees-table td:nth-child(1) { width: auto; }
  .fees-table th:nth-child(2),
  .fees-table td:nth-child(2) { width: auto; }
  .fees-table th:nth-child(3),
  .fees-table td:nth-child(3) { width: auto; }
}

/* =========================
   KS3 / KS4 Maths page
   ========================= */

.page-content{
  padding: 2.5rem 1rem;
}

.ks-wrap{
  max-width: 1100px;
  margin: 0 auto;
}

.ks-intro{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15,27,54,.08);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  border-left: 5px solid var(--accent);
}

.ks-intro h1{
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 .6rem;
}

.ks-intro p{
  color: var(--muted);
  margin: 0;
}

.ks-links{
  margin-top: .9rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.ks-links li{
  margin: .35rem 0;
}

.ks-links a{
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ks-links a:hover{
  color: var(--accent);
}

/* Cards layout */
.ks-grid{
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px){
  .ks-grid{ grid-template-columns: 1fr 1fr; }
}

/* KS cards */
.ks-card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15,27,54,.08);
  padding: 1.25rem 1.4rem;
  border-top: 4px solid rgba(233,119,46,.35);
}

.ks-card h2{
  margin: 0 0 .5rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.ks-card h2 span{
  display: block;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: .25rem;
}

.ks-card p{
  color: var(--muted);
  margin: 0 0 .75rem;
}

/* Sub-headings */
.ks-card h3{
  margin: 1rem 0 .5rem;
  font-size: 1.05rem;
  color: var(--ink);
}

/* Lists */
.ks-ol{
  padding-left: 1.15rem;
  margin: .5rem 0 0;
}

.ks-ol > li{
  margin: .8rem 0;
}

.ks-ol > li > strong{
  color: var(--ink);
}

.ks-ol ul{
  margin: .5rem 0 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.ks-ol ul li{
  margin: .25rem 0;
  color: var(--ink);
}

.ks-purpose{
  padding-left: 1.1rem;
  margin: .25rem 0 0;
  list-style: disc;
}

.ks-purpose li{
  margin: .25rem 0;
  color: var(--ink);
}

/* Small screens: slightly tighter padding */
@media (max-width: 560px){
  .ks-intro,
  .ks-card{
    padding: 1rem 1.05rem;
  }
}

/* =========================
   Featured Classes (flyer cards)
   ========================= */

/* ===== Make posters readable in the cards ===== */
/* Posters inside class cards */
/* Make each card use full width when stacked */
.subjects-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.subject-card{
  width: 100%;
}

/* Make flyers FULL-WIDTH and not constrained */
.subject-card .class-flyer{
  width: 100%;
  height: auto;             /* KEY: remove fixed height */
  max-height: none;         /* ensure no hidden cap */
  object-fit: contain;
  display: block;

  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15,27,54,.12);
  box-shadow: 0 10px 22px rgba(15,27,54,.12);
  padding: .75rem;
  margin-bottom: 1rem;
}

.faq-section {
  padding: 3rem 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}
.faq-section h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--ink);
  margin-bottom: .35rem;
}
.faq-container > p {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.faq-group {
  margin-bottom: 2rem;
}
.faq-group h2 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid rgba(233,119,46,.18);
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15,27,54,.08);
  margin-bottom: .65rem;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15,27,54,.13);
}
.faq-item[open] {
  box-shadow: 0 8px 24px rgba(233,119,46,.12);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--ink);
  font-size: .97rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s;
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: .75rem 1.1rem 1rem;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
  border-top: 1px solid rgba(15,27,54,.08);
  background: #fafafa;
  margin: 0;
}
/*-------------------------------------contact section ------------------------------*/
.contact-section {
  max-width: 600px;
  margin: 1rem auto 2rem;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: auto;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15,27,54,.08);
  padding: 1.5rem 2rem;
  text-align: center;
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  border-top: 4px solid var(--accent);
}

.contact-img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: clamp(260px, 38vw, 320px);
  object-fit: cover;
  object-position: center 28%;
  border-radius: 12px;
  margin: 0 0 .5rem;
  box-shadow: 0 8px 20px rgba(15,27,54,.09);
}

.contact-card .kicker {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: .25rem 0 .3rem;
}

.contact-card h1 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  color: var(--ink);
  margin: 0 0 .45rem;
}

.contact-phone,
.contact-email,
.contact-address {
  font-size: clamp(.95rem, 3.5vw, 1.05rem);
  font-weight: 700;
  color: var(--accent);
  margin: .3rem 0 .1rem;
  text-align: center;
}

.contact-number,
.contact-email a,
.contact-address a {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(1rem, 4vw, 1.15rem);
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  background: rgba(233,119,46,.12);
  border: 1px solid rgba(233,119,46,.25);
  border-bottom: 3px solid rgba(233,119,46,.45);
  padding: 6px 12px;
  border-radius: 10px;
  margin-bottom: .2rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: background .2s, color .2s, border-color .2s;
}

.contact-number:hover,
.contact-email a:hover,
.contact-address a:hover {
  background: rgba(233,119,46,.2);
  border-color: var(--accent);
}

.contact-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: .55rem 0 .25rem;
}

.contact-info {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15,27,54,.08);
  padding: 2rem;
  display: inline-block;
  min-width: 260px;
}

.contact-info p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.contact-desc {
  color: var(--muted);
  margin: 0 0 .4rem;
}

.contact-cta {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(233,119,46,.18);
}

.contact-cta:hover {
  transform: translateY(-2px);
}

/* Tablet and small laptop screens */
@media (max-width: 768px) {
  .contact-section {
    margin: .75rem auto 1.5rem;
    padding: 1rem;
  }

  .contact-card {
    padding: 1.25rem;
  }

  .contact-img {
    max-width: 100%;
    height: clamp(230px, 55vw, 300px);
    object-position: center 25%;
  }
}

/* Mobile screens */
@media (max-width: 480px) {
  .contact-section {
    margin: .5rem auto 1rem;
    padding: .75rem;
    display: block;
  }

  .contact-card {
    padding: 1rem;
    gap: .35rem;
    border-radius: 14px;
  }

  .contact-img {
    height: 240px;
    object-position: center 25%;
    border-radius: 10px;
  }

  .contact-number,
  .contact-email a,
  .contact-address a {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
  }
}
/*-------------------------------------contact section ------------------------------*/

.policy-page {
  max-width: 780px;
}
.policy-card {
  padding: 2rem 2.5rem;
}
.policy-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.75rem 0 .5rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid rgba(233,119,46,.15);
}
.policy-card h2:first-child {
  margin-top: 0;
}
.policy-card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: .5rem;
}
.policy-card a {
  color: var(--accent);
  text-decoration: underline;
}

.key-stages-section {
  background: #fffdf8; /* Off-white */
  padding: 30px;
  font-family: Arial, sans-serif;
}

.key-stages-section h2 {
  color: #f28c00;
  text-align: center;
  margin-bottom: 25px;
  font-size: 2rem;
}

/* TABLE */
.key-stages-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fffdf7;
  border: 4px solid #f28c00;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(242, 140, 0, 0.12);
}

/* HEADER */
.key-stages-table th {
  background: #f28c00;
  color: white;
  padding: 18px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* ROUND HEADER CORNERS */
.key-stages-table thead tr th:first-child {
  border-top-left-radius: 20px;
}

.key-stages-table thead tr th:last-child {
  border-top-right-radius: 20px;
}

/* CELLS */
.key-stages-table td {
  padding: 16px;
  text-align: center;
  color: #333;
  font-size: 15px;
  line-height: 1.5;
  border-top: 1px solid #f4c27a;
  border-right: 1px solid #f4c27a;
}

/* Remove right border on last column */
.key-stages-table td:last-child,
.key-stages-table th:last-child {
  border-right: none;
}

/* Zebra stripes */
.key-stages-table tbody tr:nth-child(odd) {
  background: #fffaf0;
}

.key-stages-table tbody tr:nth-child(even) {
  background: #fff3dc;
}

/* Hover effect */
.key-stages-table tbody tr:hover {
  background: #ffe8c2;
  transition: 0.2s ease;
}

/* Round bottom corners */
.key-stages-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 20px;
}

.key-stages-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 20px;
}

/* Responsive table for mobile */
@media (max-width: 768px) {
  .key-stages-table {
    font-size: 14px;
  }

  .key-stages-table th,
  .key-stages-table td {
    padding: 12px;
  }
}
/*-------------------------------------age groups---------------------------------------------------------------------*/
.age-groups-content {
  background: #fffdf8;
  padding: 30px;
  font-family: Arial, sans-serif;
}

.age-groups-content h2 {
  color: #d9822b;
  text-align: center;
  margin-bottom: 25px;
  font-size: 2rem;
}

.accordion {
  max-width: 1000px;
  margin: 0 auto;
}

.accordion-item {
  background: #fffefb;
  border: 2px solid #f3d6b3;
  border-radius: 20px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.accordion-item:hover {
  border-color: #e8b980;
  transform: translateY(-2px);
}

.accordion-item summary {
  cursor: pointer;
  padding: 18px 22px;
  background: #fffaf4;   /* Off-white */
  color: #444;
  font-size: 1.15rem;
  font-weight: 700;
  list-style: none;
  position: relative;
  border-left: 5px solid #f2b66d; /* Orange accent */
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #d9822b;
  font-weight: bold;
}

.accordion-item[open] summary::after {
  content: "−";
}

.accordion-item[open] summary {
  background: #fff7ef;
  border-bottom: 1px solid #f3d6b3;
}

.accordion-content {
  padding: 20px 22px;
  background: #fffefb;
  color: #444;
  line-height: 1.7;
}

.stage-info {
  color: #d9822b;
  font-weight: 700;
  margin-bottom: 10px;
}

.accordion-content p {
  margin: 0 0 12px 0;
}

.age-note {
  max-width: 1000px;
  margin: 25px auto 0;
  padding: 18px 22px;
  background: #fffaf4;
  border-radius: 20px;
  color: #555;
  line-height: 1.7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  font-size: 25px;
}
/*-------------------------------------age groups---------------------------------------------------------------------*/
