/* ============================================================
   ST. TERESA CHILDREN LEARNING CENTRE — GLOBAL STYLESHEET
   ============================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --green-dark:  #1a4d1a;
  --green-mid:   #2c6e2c;
  --green-light: #4caf50;
  --green-pale:  #e8f5e9;
  --gold:        #f4c430;
  --text:        #1a2e1a;
  --text-muted:  #5a6b5a;
  --white:       #ffffff;
  --card-bg:     #ffffff;
  --section-bg:  #f7faf7;
  --border:      #d4e8d4;
  --shadow:      0 4px 20px rgba(30,80,30,0.10);
  --radius:      12px;
  --radius-sm:   8px;
}

html { scroll-behavior: smooth; }
body { font-family:'Nunito',sans-serif; color:var(--text); background:var(--section-bg); line-height:1.6; }
h1,h2,h3,h4 { font-family:'Comfortaa',cursive; line-height:1.25; }
img { display:block; max-width:100%; }
a { text-decoration:none; }

/* ── Notice Banner ── */
.notice { background:var(--gold); padding:10px 24px; text-align:center; font-size:13px; font-weight:700; color:var(--green-dark); }
.notice a { color:var(--green-dark); text-decoration:underline; margin-left:6px; }

/* ── Nav ── */
nav { position:sticky; top:0; z-index:1000; background:var(--green-dark); box-shadow:0 2px 12px rgba(0,0,0,0.2); }
.nav-inner { max-width:1100px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; padding:0 24px; height:64px; }
.nav-brand { display:flex; align-items:center; gap:20px; flex-shrink:0; padding-right:30px;}
.nav-logo { width:40px; height:40px; background:var(--gold); border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Comfortaa',cursive; font-weight:700; font-size:15px; color:var(--green-dark); flex-shrink:0; }
.nav-title { color:#fff; font-family:'Comfortaa',cursive; font-size:15px; font-weight:700; line-height:1.2; }
.nav-title span { display:block; font-size:11px; font-weight:400; opacity:.75; font-family:'Nunito',sans-serif; }
.nav-links { display:flex; gap:4px; list-style:none; }
.nav-links a { color:rgba(255,255,255,0.85); font-size:13px; font-weight:600; padding:7px 13px; border-radius:6px; transition:background .2s,color .2s; white-space:nowrap; }
.nav-links a:hover, .nav-links a.active { background:rgba(255,255,255,0.15); color:#fff; }
.nav-links .cta { background:var(--gold); color:var(--green-dark) !important; }
.nav-links .cta:hover { background:#e6b820; }
.nav-toggle { display:none; background:none; border:none; color:#fff; font-size:22px; cursor:pointer; padding:6px 10px; }
.nav-mobile { display:none; flex-direction:column; list-style:none; background:var(--green-dark); padding:12px 24px 20px; border-top:1px solid rgba(255,255,255,0.1); }
.nav-mobile.open { display:flex; }
.nav-mobile li a { display:block; padding:10px 0; color:rgba(255,255,255,0.85); font-size:15px; font-weight:600; border-bottom:1px solid rgba(255,255,255,0.08); transition:color .2s; }
.nav-mobile li a:hover { color:var(--gold); }

/* ── Buttons ── */
.btn-primary { background:var(--gold); color:var(--green-dark); padding:13px 30px; border-radius:8px; font-weight:700; font-size:15px; font-family:'Nunito',sans-serif; transition:transform .2s,background .2s; display:inline-block; cursor:pointer; border:none; }
.btn-primary:hover { background:#e6b820; transform:translateY(-2px); }
.btn-outline { background:var(--gold); color:var(--green-dark); padding:13px 30px; border-radius:8px; font-weight:700; font-size:15px; font-family:'Nunito',sans-serif; transition:transform .2s,background .2s; display:inline-block; cursor:pointer; border:none; }
.btn-outline:hover { background:#e6b820; transform:translateY(-2px); }
.btn-green { background:var(--green-mid); color:#fff; padding:11px 26px; border-radius:8px; font-weight:700; font-size:14px; font-family:'Nunito',sans-serif; display:inline-block; transition:background .2s; border:none; cursor:pointer; }
.btn-green:hover { background:var(--green-dark); }

/* ── Layout ── */
.section { padding:72px 24px; }
.bg-white { background:#fff; }
.bg-gray  { background:var(--section-bg); }
.container { max-width:1100px; margin:0 auto; }
.section-label { font-size:12px; font-weight:700; letter-spacing:1.5px; color:var(--green-light); text-transform:uppercase; margin-bottom:10px; font-family:'Nunito',sans-serif; }
.section-title { font-size:clamp(24px,4vw,36px); color:var(--green-dark); margin-bottom:14px; }
.section-sub { font-size:16px; color:var(--text-muted); max-width:560px; line-height:1.7; margin-bottom:48px; }
.section-header-center { text-align:center; margin-bottom:48px; }
.section-header-center .section-sub { margin-left:auto; margin-right:auto; }

/* ── Page Hero (inner pages) ── */
.page-hero { background:linear-gradient(135deg,#1a4d1a 0%,#2c6e2c 60%,#1f5c1f 100%); padding:64px 24px; text-align:center; }
.page-hero h1 { font-size:clamp(26px,4vw,42px); color:#fff; margin-bottom:12px; }
.page-hero p { font-size:16px; color:rgba(255,255,255,0.82); max-width:520px; margin:0 auto; line-height:1.7; }
.breadcrumb { display:flex; align-items:center; justify-content:center; gap:8px; font-size:13px; color:rgba(255,255,255,0.6); margin-bottom:16px; flex-wrap:wrap; }
.breadcrumb a { color:rgba(255,255,255,0.75); transition:color .2s; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb span { color:rgba(255,255,255,0.4); }

/* ── Tags / Badges ── */
.tag { background:var(--green-pale); color:var(--green-mid); font-size:11px; font-weight:700; padding:3px 10px; border-radius:10px; display:inline-block; }
.tag-gold { background:var(--gold); color:var(--green-dark); }
.tag-outline { background:transparent; border:1px solid var(--border); color:var(--text-muted); font-size:11px; padding:3px 10px; border-radius:10px; display:inline-block; cursor:pointer; transition:background .2s; }
.tag-outline:hover, .tag-outline.active { background:var(--green-pale); border-color:var(--green-light); color:var(--green-mid); }

/* ── Card base ── */
.card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:transform .2s,box-shadow .2s; }
.card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }

/* ── Footer ── */
footer { background:#0e2e0e; padding:52px 24px 24px; color:rgba(255,255,255,0.7); }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; max-width:1100px; margin-left:auto; margin-right:auto; }
.footer-brand h3 { font-family:'Comfortaa',cursive; color:#fff; font-size:17px; margin-bottom:10px; }
.footer-brand p { font-size:13px; line-height:1.7; max-width:280px; }
.accred-badges { display:flex; gap:8px; margin-top:16px; flex-wrap:wrap; }
.acc-badge { background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:6px; padding:4px 10px; font-size:11px; color:rgba(255,255,255,0.75); }
.footer-col h4 { font-family:'Comfortaa',cursive; color:#fff; font-size:14px; margin-bottom:14px; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:8px; }
.footer-col ul li a { color:rgba(255,255,255,0.6); font-size:13px; transition:color .2s; }
.footer-col ul li a:hover { color:#d4af37; }
.footer-bottom { max-width:1100px; margin:0 auto; border-top:1px solid rgba(255,255,255,0.1); padding-top:20px; display:flex; align-items:center; justify-content:space-between; font-size:12px; flex-wrap:wrap; gap:10px; }
.footer-bottom-links { display:flex; gap:16px; }
.footer-bottom-links a { color:rgba(255,255,255,0.5); transition:color .2s; }
.footer-bottom-links a:hover { color:#d4af37; }
.social-icons { margin-bottom: 10px; }
.social-icons a { color: #d4af37; font-size: 1.4rem; display: inline-block; transition: transform 0.3s ease, color 0.3s ease; }
.social-icons a:hover { color: #d4af37; transform: scale(1.5); }

/* ── Privacy Policy Page Styling ── */
.footer-bottom-links a.privacy-link { font-weight: 700; color: var(--gold); }
.footer-bottom-links a.privacy-link:hover { color: #fff; }
.privacy-page { max-width: 900px; margin: 0 auto; padding: 72px 24px; background: var(--section-bg); color: var(--text); line-height: 1.7; font-family: 'Nunito', sans-serif; }
.privacy-page h1,.privacy-page h2,.privacy-page h3,.privacy-page h4 { font-family: 'Comfortaa', cursive; color: var(--green-dark); margin-bottom: 16px; }
.privacy-page h1 { font-size: clamp(28px, 5vw, 42px); text-align: center; margin-bottom: 24px; }
.privacy-page h2 { font-size: clamp(22px, 4vw, 32px); margin-top: 32px; }
.privacy-page p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.privacy-page ul { list-style: disc inside; margin-bottom: 16px; }
.privacy-page ul li { margin-bottom: 10px; }
.privacy-page a { color: var(--green-mid); text-decoration: underline; transition: color 0.3s ease; }
.privacy-page a:hover { color: var(--gold); }
.privacy-page .last-updated { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 32px; font-style: italic; }
.privacy-page .contact-info li { list-style: none; margin-bottom: 8px; }

/* ── Safeguarding Page Styling ── */
.safeguarding-page { max-width: 900px; margin: 0 auto; padding: 72px 24px; background: var(--section-bg); color: var(--text); line-height: 1.7; font-family: 'Nunito', sans-serif; }
.safeguarding-page h1,.safeguarding-page h2,.safeguarding-page h3,.safeguarding-page h4 { font-family: 'Comfortaa', cursive; color: var(--green-dark); margin-bottom: 16px; }
.safeguarding-page h1 { font-size: clamp(28px, 5vw, 42px); text-align: center; margin-bottom: 24px; }
.safeguarding-page h2 { font-size: clamp(22px, 4vw, 32px); margin-top: 32px; }
.safeguarding-page p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.safeguarding-page ul { list-style: disc inside; margin-bottom: 16px; }
.safeguarding-page ul li { margin-bottom: 10px; }
.safeguarding-page a { color: var(--green-mid); text-decoration: underline; transition: color 0.3s ease; }
.safeguarding-page a:hover { color: var(--gold); }
.safeguarding-page .last-updated { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 32px; font-style: italic; }

/* ── Terms Page Styling ── */
.terms-page { max-width: 900px; margin: 0 auto; padding: 72px 24px; background: var(--section-bg); color: var(--text); line-height: 1.7; font-family: 'Nunito', sans-serif; }
.terms-page h1,.terms-page h2,.terms-page h3,.terms-page h4 { font-family: 'Comfortaa', cursive; color: var(--green-dark); margin-bottom: 16px; }
.terms-page h1 { font-size: clamp(28px, 5vw, 42px); text-align: center; margin-bottom: 24px; }
.terms-page h2 { font-size: clamp(22px, 4vw, 32px); margin-top: 32px; }
.terms-page p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.terms-page ul { list-style: disc inside; margin-bottom: 16px; }
.terms-page ul li { margin-bottom: 10px; }
.terms-page a { color: var(--green-mid); text-decoration: underline; transition: color 0.3s ease; }
.terms-page a:hover { color: var(--gold); }
.terms-page .last-updated { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 32px; font-style: italic; }

/* ── Responsive ── */
@media(max-width:900px){ .footer-grid{grid-template-columns:1fr 1fr;} }
@media(max-width:768px){ .nav-links{display:none;} .nav-toggle{display:block;} }
@media(max-width:500px){ .footer-grid{grid-template-columns:1fr;} .footer-bottom{flex-direction:column;text-align:center;} }

/* ══════════════════════════════════════════
   BACKGROUND FIXES – NO REPEAT, ALWAYS COVER
   ══════════════════════════════════════════ */
.news-img,
.blog-img,
.item-img,
.post-img,
.post-img.large,
.article-img,
.gal-placeholder,
.gal-placeholder.tall {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* ── Ensure videos fill their container ── */
.news-img video,
.blog-img video,
.gallery-item-public video,
.gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* ── Hero ── */
.hero { background:linear-gradient(135deg,#1a4d1a 0%,#2c6e2c 50%,#1f5c1f 100%); min-height:520px; display:flex; align-items:center; justify-content:center; text-align:center; position:relative; overflow:hidden; padding:80px 24px }
.hero-bg-circles { position:absolute; inset:0; pointer-events:none }
.hero-bg-circles span { position:absolute; border-radius:50%; background:rgba(255,255,255,0.04) }
.hero-content { position:relative; z-index:1; max-width:700px }
.hero-badge { display:inline-block; background:var(--gold); color:var(--green-dark); font-size:12px; font-weight:700; padding:5px 18px; border-radius:20px; letter-spacing:.5px; margin-bottom:22px }
.hero h1 { font-size:clamp(28px,5vw,48px); color:#fff; margin-bottom:18px }
.hero h2 { font-size:clamp(14px,5vw,24px); color:#eef608e9; margin-bottom:18px }
.hero p { font-size:17px; color:rgba(255,255,255,0.82); max-width:520px; margin:0 auto 32px; line-height:1.7 }
.hero-buttons { display:flex; gap:14px; justify-content:center; flex-wrap:wrap }
.hero-stats { display:flex; gap:32px; justify-content:center; margin-top:44px; flex-wrap:wrap }
.hero-stat { text-align:center }
.hero-stat .num { font-size:28px; font-weight:700; color:var(--gold); font-family:'Comfortaa',cursive }
.hero-stat .lbl { font-size:12px; color:rgba(255,255,255,0.7); margin-top:2px }

/* ── Feature cards ── */
.features-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px }
.feature-card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); padding:28px 24px; transition:transform .2s,box-shadow .2s }
.feature-card:hover { transform:translateY(-4px); box-shadow:var(--shadow) }
.feature-icon { width:48px; height:48px; border-radius:10px; background:var(--green-pale); display:flex; align-items:center; justify-content:center; margin-bottom:18px }
.feature-icon svg { width:24px; height:24px; stroke:var(--green-mid); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round }
.feature-card h3 { font-size:16px; color:var(--green-dark); margin-bottom:8px }
.feature-card p { font-size:14px; color:var(--text-muted); line-height:1.6 }

/* ── News preview ── */
.news-preview-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap:20px; }
.news-card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:transform .2s,box-shadow .2s }
.news-card:hover { transform:translateY(-3px); box-shadow:var(--shadow) }
.news-img { height:160px; }
.news-img.small { height:110px }
.news-body { padding:20px }
.news-body h3 { font-size:15px; color:var(--green-dark); margin:8px 0 8px; line-height:1.4 }
.news-body p { font-size:13px; color:var(--text-muted); line-height:1.6; margin-bottom:14px }
.news-meta { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:var(--text-muted) }
.read-more { color:var(--green-light); font-weight:700; font-size:12px; transition:color .2s }
.read-more:hover { color:var(--green-dark) }
.featured-news .news-img { height:200px }
.featured-news .news-body h3 { font-size:17px }

/* ── Blog preview ── */
.blog-preview-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:20px; }
.blog-card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:transform .2s,box-shadow .2s }
.blog-card:hover { transform:translateY(-3px); box-shadow:var(--shadow) }
.blog-img { height:160px }
.blog-body { padding:20px }
.blog-body h3 { font-size:15px; color:var(--green-dark); margin:8px 0 8px; line-height:1.4 }
.blog-body p { font-size:13px; color:var(--text-muted); line-height:1.6; margin-bottom:14px }
.blog-meta { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:var(--text-muted); flex-wrap:wrap; gap:6px }
.author-chip { display:flex; align-items:center; gap:6px }
.author-av { width:24px; height:24px; border-radius:50%; color:#fff; font-size:9px; font-weight:700; display:flex; align-items:center; justify-content:center }

/* ── Testimonials ── */
.testimonials-section { background:var(--green-dark); padding:72px 24px }
.testi-label { color:var(--gold); font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; font-family:'Nunito',sans-serif; max-width:1100px; margin:0 auto 8px }
.testi-title { font-size:clamp(22px,3.5vw,32px); color:#fff; max-width:1100px; margin:0 auto 36px }
.testimonials-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; max-width:1100px; margin:0 auto }
.testi-card { background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.12); border-radius:var(--radius); padding:28px 24px }
.testi-stars { color:var(--gold); font-size:16px; margin-bottom:14px; letter-spacing:2px }
.testi-card p { color:rgba(255,255,255,0.82); font-size:14px; line-height:1.7; margin-bottom:20px; font-style:italic }
.testi-author { display:flex; align-items:center; gap:10px }
.testi-av { width:38px; height:38px; border-radius:50%; background:var(--gold); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; color:var(--green-dark); flex-shrink:0 }
.testi-name { font-size:14px; font-weight:600; color:#fff }
.testi-info { font-size:12px; color:rgba(255,255,255,0.55) }

/* ── CTA ── */
.cta-section { background:linear-gradient(90deg,#1a4d1a,#2c6e2c); padding:72px 24px }
.cta-section h2 { font-size:clamp(22px,4vw,34px); color:#fff; margin-bottom:14px }
.cta-section p { color:rgba(255,255,255,0.82); font-size:16px; max-width:500px; margin:0 auto }

/* ── Inner pages CSS (news, blog, gallery, etc.) ── */
.filter-bar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:36px; padding-bottom:24px; border-bottom:1px solid var(--border) }
.filter-label { font-size:13px; font-weight:700; color:var(--text-muted); white-space:nowrap }
.filter-tags { display:flex; gap:8px; flex-wrap:wrap }

.news-article.featured { display:grid; grid-template-columns:1.2fr 1fr; gap:0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; margin-bottom:32px; background:var(--card-bg); transition:box-shadow .2s }
.news-article.featured:hover { box-shadow:var(--shadow) }
.article-img { min-height:300px }
.article-body { padding:32px }
.article-meta-top { display:flex; align-items:center; gap:10px; margin-bottom:12px; flex-wrap:wrap }
.article-date { font-size:12px; color:var(--text-muted) }
.article-body h2 { font-size:22px; color:var(--green-dark); margin-bottom:12px; line-height:1.3 }
.article-body p { font-size:14px; color:var(--text-muted); line-height:1.7; margin-bottom:12px }
.news-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px }
.news-item { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:transform .2s,box-shadow .2s }
.news-item:hover { transform:translateY(-3px); box-shadow:var(--shadow) }
.item-img { height:140px }
.item-body { padding:20px }
.item-body h3 { font-size:15px; color:var(--green-dark); margin:8px 0 8px; line-height:1.4 }
.item-body p { font-size:13px; color:var(--text-muted); line-height:1.6; margin-bottom:14px }
.read-more-link { font-size:13px; font-weight:700; color:var(--green-light); transition:color .2s }
.read-more-link:hover { color:var(--green-dark) }
.pagination { display:flex; gap:8px; justify-content:center; margin-top:40px }
.page-btn { background:#fff; border:1px solid var(--border); border-radius:6px; padding:8px 16px; font-size:13px; font-weight:600; color:var(--text-muted); cursor:pointer; font-family:'Nunito',sans-serif; transition:background .2s,color .2s }
.page-btn:hover,.page-btn.active { background:var(--green-mid); color:#fff; border-color:var(--green-mid) }
.newsletter-form { display:flex; gap:10px; max-width:460px; margin:0 auto }
.newsletter-form input { flex:1; padding:12px 16px; border-radius:8px; border:2px solid rgba(255,255,255,0.2); background:rgba(255,255,255,0.12); color:#fff; font-size:14px; font-family:'Nunito',sans-serif; outline:none }
.newsletter-form input::placeholder { color:rgba(255,255,255,0.5) }
.newsletter-form input:focus { border-color:var(--gold) }

/* ── Blog page layout ── */
.blog-layout { display:grid; grid-template-columns:1fr 320px; gap:40px; align-items:start }
.featured-post { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--card-bg); margin-bottom:32px }
.post-img.large { height:260px }
.post-img { height:150px }
.post-body { padding:28px }
.post-meta-top { display:flex; align-items:center; gap:10px; margin-bottom:12px; flex-wrap:wrap }
.post-date { font-size:12px; color:var(--text-muted) }
.read-time { font-size:12px; color:var(--text-muted); background:var(--section-bg); padding:2px 8px; border-radius:10px }
.post-body h2 { font-size:22px; color:var(--green-dark); margin-bottom:12px; line-height:1.3 }
.post-body p { font-size:14px; color:var(--text-muted); line-height:1.7; margin-bottom:12px }
.post-author-bar { display:flex; align-items:center; gap:12px; margin-top:20px; padding-top:20px; border-top:1px solid var(--border); flex-wrap:wrap }
.post-author-av { width:44px; height:44px; border-radius:50%; color:#fff; font-size:14px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-family:'Comfortaa',cursive }
.post-author-name { font-size:14px; font-weight:700; color:var(--green-dark) }
.post-author-role { font-size:12px; color:var(--text-muted) }
.blog-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:20px; margin-bottom:24px; }
.blog-post-card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:transform .2s,box-shadow .2s }
.blog-post-card:hover { transform:translateY(-3px); box-shadow:var(--shadow) }
.post-card-body { padding:20px }
.post-card-body h3 { font-size:15px; color:var(--green-dark); margin:8px 0 8px; line-height:1.4 }
.post-card-body p { font-size:13px; color:var(--text-muted); line-height:1.6; margin-bottom:14px }
.post-card-footer { display:flex; align-items:center; justify-content:space-between }
.post-author-chip { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted) }
.post-av { width:22px; height:22px; border-radius:50%; color:#fff; font-size:9px; font-weight:700; display:flex; align-items:center; justify-content:center }
.blog-sidebar { display:flex; flex-direction:column; gap:24px }
.sidebar-card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); padding:22px }
.sidebar-card h4 { font-size:15px; color:var(--green-dark); margin-bottom:14px }
.search-box { display:flex; gap:8px }
.search-box input { flex:1; padding:9px 12px; border:1.5px solid var(--border); border-radius:6px; font-size:13px; font-family:'Nunito',sans-serif; outline:none; color:var(--text) }
.search-box input:focus { border-color:var(--green-light) }
.search-box button { background:var(--green-pale); border:1px solid var(--border); border-radius:6px; padding:9px 12px; cursor:pointer; font-size:15px; color:var(--green-mid) }
.topic-list { display:flex; flex-direction:column; gap:2px }
.topic-item { display:flex; align-items:center; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--border); font-size:13px; color:var(--text-muted); transition:color .2s }
.topic-item:hover { color:var(--green-mid) }
.topic-item:last-child { border-bottom:none }
.topic-count { background:var(--green-pale); color:var(--green-mid); font-size:11px; font-weight:700; padding:2px 8px; border-radius:10px }
.writer-list { display:flex; flex-direction:column; gap:12px }
.writer-item { display:flex; align-items:center; gap:10px }
.writer-av { width:36px; height:36px; border-radius:50%; color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0 }
.writer-name { font-size:13px; font-weight:700; color:var(--green-dark) }
.writer-role { font-size:11px; color:var(--text-muted) }
.newsletter-side p { font-size:13px; color:var(--text-muted); margin-bottom:12px }
.newsletter-side input { width:100%; padding:10px 12px; border:1.5px solid var(--border); border-radius:6px; font-size:13px; font-family:'Nunito',sans-serif; outline:none; color:var(--text) }
.newsletter-side input:focus { border-color:var(--green-light) }

/* ── Gallery page ── */
.gallery-filter { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:32px }
.gallery-masonry { columns:3; gap:16px }
.gallery-masonry-item { break-inside:avoid; margin-bottom:16px; border-radius:var(--radius); overflow:hidden; background:var(--green-pale); position:relative; cursor:pointer }
.gallery-masonry-item img,.gal-placeholder { width:100%; display:block; border-radius:var(--radius) }
.gal-placeholder { height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; font-size:12px; font-weight:600; color:var(--green-mid) }
.gal-placeholder.tall { height:280px }
.gal-overlay { position:absolute; inset:0; background:rgba(26,77,26,0.6); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .3s; border-radius:var(--radius) }
.gallery-masonry-item:hover .gal-overlay { opacity:1 }
.gal-overlay-text { color:#fff; font-size:13px; font-weight:700; text-align:center; padding:12px }

/* ── About page ── */
.about-hero-layout { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center }
.value-cards { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:20px; margin-top:32px; }
.value-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(30,60,30,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30,60,30,0.18);
}
.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 2px solid #2c6e2c;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg { width:24px; height:24px; stroke:var(--green-mid); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round }
.value-card h3 { font-size:15px; color:var(--green-dark); margin-bottom:6px }
.value-card p { font-size:13px; color:var(--text-muted); line-height:1.6 }

.timeline { position:relative; padding-left:28px; border-left:2px solid var(--border) }
.timeline-item { margin-bottom:32px; position:relative }
.timeline-dot { position:absolute; left:-37px; top:4px; width:18px; height:18px; border-radius:50%; background:var(--green-mid); border:3px solid #fff; box-shadow:0 0 0 2px var(--green-light) }
.timeline-year { font-size:12px; font-weight:700; color:var(--green-light); letter-spacing:.5px; margin-bottom:4px }
.timeline-item h3 { font-size:15px; color:var(--green-dark); margin-bottom:4px }
.timeline-item p { font-size:13px; color:var(--text-muted); line-height:1.6 }

.team-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:20px }
.team-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(30,60,30,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30,60,30,0.18);
}
.team-av { width:68px; height:68px; border-radius:50%; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; font-family:'Comfortaa',cursive; font-weight:700; font-size:20px; color:#fff }
.team-card h3 { font-size:15px; color:var(--green-dark); margin-bottom:4px }
.team-card .role { font-size:12px; color:var(--green-light); font-weight:700; margin-bottom:8px }
.team-card p { font-size:13px; color:var(--text-muted); line-height:1.6 }

/* ── Programs page ── */
.programs-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:24px }
.prog-full-card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:box-shadow .2s,transform .2s }
.prog-full-card:hover { box-shadow:var(--shadow); transform:translateY(-3px) }
.prog-full-card.featured-prog { border-color:var(--green-light); border-width:2px }
.prog-card-header { padding:24px 24px 0 }
.prog-card-body { padding:0 24px 24px }
.prog-subjects { margin-top:16px; display:flex; flex-direction:column; gap:6px }
.prog-subject { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-muted) }
.prog-subject::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--green-light); flex-shrink:0 }
.fee-table { width:100%; border-collapse:collapse; margin-top:16px; font-size:13px }
.fee-table th { text-align:left; padding:10px 12px; background:var(--green-pale); color:var(--green-dark); font-family:'Comfortaa',cursive }
.fee-table td { padding:10px 12px; border-bottom:1px solid var(--border); color:var(--text-muted) }
.fee-table tr:last-child td { border-bottom:none }
.fee-table td:last-child { font-weight:700; color:var(--green-dark) }

/* ── Contact page ── */
.contact-layout-full { display:grid; grid-template-columns:1fr 1.2fr; gap:48px; align-items:start }
.contact-info h3 { font-size:20px; color:var(--green-dark); margin-bottom:14px }
.contact-info>p { font-size:15px; color:var(--text-muted); line-height:1.7; margin-bottom:28px }
.contact-details { display:flex; flex-direction:column; gap:18px; margin-bottom:28px }
.contact-detail { display:flex; align-items:flex-start; gap:14px }
.contact-detail-icon { width:40px; height:40px; border-radius:10px; background:var(--green-pale); display:flex; align-items:center; justify-content:center; flex-shrink:0 }
.contact-detail-icon svg { width:18px; height:18px; stroke:var(--green-mid); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round }
.contact-detail-text .label { font-size:11px; font-weight:700; letter-spacing:.5px; color:var(--green-light); text-transform:uppercase }
.contact-detail-text .value { font-size:14px; color:var(--text); font-weight:500 }
.map-container { border-radius:var(--radius); overflow:hidden; border:1px solid var(--border) }
.contact-form-card { background:var(--card-bg); border:1px solid var(--border); border-radius:16px; padding:32px }
.contact-form-card h3 { font-size:18px; color:var(--green-dark); margin-bottom:24px }
.form-group { margin-bottom:18px }
.form-group label { display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px }
.form-group input,.form-group textarea,.form-group select { width:100%; padding:11px 14px; border:1.5px solid var(--border); border-radius:var(--radius-sm); font-size:14px; font-family:'Nunito',sans-serif; color:var(--text); background:#fff; transition:border-color .2s; outline:none }
.form-group input:focus,.form-group textarea:focus,.form-group select:focus { border-color:var(--green-light) }
.form-group textarea { min-height:110px; resize:vertical }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px }
.btn-submit { width:100%; background:var(--green-mid); color:#fff; padding:13px; border:none; border-radius:var(--radius-sm); font-size:15px; font-weight:700; font-family:'Nunito',sans-serif; cursor:pointer; transition:background .2s }
.btn-submit:hover { background:var(--green-dark) }
#formMsg { margin-top:12px; font-size:13px; text-align:center; min-height:20px }

/* ── FAQ Styles ── */
.faq-list { display:flex; flex-direction:column; gap:12px }
.faq-item { border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; background:var(--card-bg) }
.faq-q { padding:16px 20px; cursor:pointer; display:flex; align-items:center; justify-content:space-between; font-size:15px; font-weight:600; color:var(--green-dark); background:var(--card-bg); transition:background .2s; user-select:none }
.faq-q:hover { background:var(--green-pale) }
.faq-q .arrow { font-size:20px; font-weight:700; transition:transform .2s ease; color:var(--green-light); display:inline-block; width:24px; text-align:center }
.faq-q.open .arrow { transform:rotate(45deg) }
.faq-a { display:none; padding:16px 20px; font-size:14px; color:var(--text-muted); line-height:1.7; border-top:1px solid var(--border); background:#fff }
.faq-a.open { display:block }

/* ── Hero slideshow ── */
.hero-slider { position:relative; overflow:hidden; background:#1a4d1a }
.slides-container { position:relative; min-height:520px }
.slide { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .9s ease; pointer-events:none; min-height:520px; padding:80px 24px 100px; text-align:center }
.slide.active { opacity:1; pointer-events:auto; position:relative }
.slides-container .slide:not(.active) { display:none }
.slide.active { display:flex }
.slide-bg { position:absolute; inset:0; background-size:cover!important; background-position:center!important; background-repeat:no-repeat!important; transition:transform 8s ease; transform:scale(1.04) }
.slide.active .slide-bg { transform:scale(1) }
.slide-content { position:relative; z-index:2; max-width:720px; animation:slideUp .7s ease forwards }
@keyframes slideUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.slide-content .hero-badge { display:inline-block; background:var(--gold); color:var(--green-dark); font-size:12px; font-weight:700; padding:5px 20px; border-radius:20px; letter-spacing:.5px; margin-bottom:22px }
.slide-content h1 { font-size:clamp(28px,5vw,52px); color:#fff; margin-bottom:18px; line-height:1.18; font-family:'Comfortaa',cursive }
.slide-content p { font-size:17px; color:rgba(255,255,255,0.85); max-width:560px; margin:0 auto 32px; line-height:1.7 }
.slide-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:10; background:rgba(255,255,255,0.15); border:2px solid rgba(255,255,255,0.3); color:#fff; width:48px; height:48px; border-radius:50%; font-size:26px; cursor:pointer; transition:all .2s; display:flex; align-items:center; justify-content:center; line-height:1 }
.slide-arrow:hover { background:rgba(255,255,255,0.35); border-color:#fff }
.slide-arrow.prev { left:20px }
.slide-arrow.next { right:20px }
.slide-dots { position:absolute; bottom:68px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:10 }
.dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.4); border:2px solid rgba(255,255,255,0.5); cursor:pointer; transition:all .2s; padding:0 }
.dot.active { background:#fff; width:28px; border-radius:10px }
.hero-stats-bar { position:relative; z-index:5; background:rgba(0,0,0,0.35); backdrop-filter:blur(6px); display:flex; gap:0; justify-content:center; flex-wrap:wrap }
.hero-stats-bar .hero-stat { padding:16px 32px; text-align:center; border-right:1px solid rgba(255,255,255,0.12); flex:1; min-width:120px }
.hero-stats-bar .hero-stat:last-child { border-right:none }
.hero-stats-bar .num { font-size:26px; font-weight:700; color:var(--gold); font-family:'Comfortaa',cursive }
.hero-stats-bar .lbl { font-size:11px; color:rgba(255,255,255,0.72); margin-top:2px; letter-spacing:.3px }

/* ── Responsive ── */
@media(max-width:900px){ .footer-grid{grid-template-columns:1fr 1fr;} }
@media(max-width:768px){ .nav-links{display:none;} .nav-toggle{display:block;} }
@media(max-width:500px){ .footer-grid{grid-template-columns:1fr;} .footer-bottom{flex-direction:column;text-align:center;} }
@media(max-width:640px){ .slide-arrow{width:38px;height:38px;font-size:20px} .slide-arrow.prev{left:8px} .slide-arrow.next{right:8px} .slide-content h1{font-size:28px} .slide-content p{font-size:15px} .hero-stats-bar .hero-stat{padding:12px 16px} .hero-stats-bar .num{font-size:20px} }
@media(max-width:500px){ .hero-buttons{flex-direction:column;align-items:center} .hero-stats{gap:20px} }

/* ── Premium Identity Cards (Motto, Vision, Mission) ── */
.identity-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; margin-top:30px; }
.identity-card { position:relative; padding:35px 25px 30px; border-radius:20px; background:#fff; border:1px solid rgba(46,125,50,0.08); box-shadow:0 12px 40px rgba(0,0,0,0.06); transition:transform .3s ease,box-shadow .3s ease; text-align:center; }
.identity-card:hover { transform:translateY(-4px); box-shadow:0 20px 50px rgba(0,0,0,0.10); }
.identity-card .top-bar { position:absolute; top:0; left:50%; transform:translateX(-50%); width:70px; height:5px; background:linear-gradient(90deg,var(--green-dark),#81c784); border-radius:0 0 10px 10px; }
.identity-card .icon { font-size:2.6rem; color:var(--green-dark); opacity:.9; margin-bottom:12px; }
.identity-card h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green-dark); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--green-dark); font-family: 'Comfortaa', cursive; }
.identity-card p { font-size:1rem; color:var(--text); line-height:1.6; margin:0; }
.identity-card p.motto-text { font-size:1.1rem; font-weight:600; }
.identity-card p.mission-text { font-size:.95rem; }

/* ── Educational Philosophy Block ── */
.philosophy-block { background:linear-gradient(145deg,#ffffff,#f8faf8); border-radius:24px; padding:50px 55px; box-shadow:0 16px 48px rgba(0,0,0,0.06); border-left:8px solid var(--green-dark); position:relative; overflow:hidden; margin-top:15px; text-align:center; }
.philosophy-block .bg-accent { position:absolute; right:-40px; top:-40px; width:180px; height:180px; border-radius:50%; background:rgba(46,125,50,0.04); pointer-events:none; }
.philosophy-block .content { position:relative; z-index:1; }
.philosophy-block .quote { font-size:1.4rem; font-weight:500; color:var(--text); line-height:1.8; margin:0 0 16px 0; letter-spacing:.3px; }
.philosophy-block .description { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin: 0 0 22px 0; padding-bottom: 20px; border-bottom: 2px solid var(--green-dark); }
.philosophy-block .icon-row { display:flex; justify-content:center; gap:28px; font-size:2rem; color:var(--green-dark); opacity:.8; }

/* ═══════════════════════════════════════════════
   FULL RESPONSIVE REWORK (About page fixed)
   ═══════════════════════════════════════════════ */

/* =====================================
   1200px
===================================== */
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-layout { grid-template-columns: 1fr 280px; }
    .contact-layout-full { gap: 30px; }
}

/* =====================================
   992px
===================================== */
@media (max-width: 992px) {
    .nav-inner { padding-inline: 18px; }
    .nav-title { font-size: 14px; }
    .nav-links a { padding: 6px 10px; font-size: 12px; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { order: -1; }
    .news-article.featured { grid-template-columns: 1fr; }
    .about-hero-layout { grid-template-columns: 1fr; gap: 40px; }
    .contact-layout-full { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-masonry { columns: 2; }
    .identity-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats-bar .hero-stat { min-width: 160px; }
}

/* =====================================
   768px
===================================== */
@media (max-width: 768px) {
    .section { padding: 60px 20px; }
    .page-hero { padding: 55px 20px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .hero, .slide { min-height: 450px; }
    .hero-content, .slide-content { max-width: 100%; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons a, .hero-buttons button { width: 100%; max-width: 320px; }
    .form-row { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { max-width: none; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .gallery-masonry { columns: 1; }
    .hero-stats-bar { flex-direction: column; }
    .hero-stats-bar .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .hero-stats-bar .hero-stat:last-child { border-bottom: none; }
    .about-hero-layout { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .philosophy-block { padding: 30px 24px; }
    .philosophy-block .quote { font-size: 1.2rem; }
    .philosophy-block .description { font-size: 1rem; }
    .philosophy-block .icon-row { gap: 16px; font-size: 1.6rem; flex-wrap: wrap; }
    .identity-card { padding: 28px 20px; }
    .identity-card h3 { font-size: 1rem; }
    .identity-card .icon { font-size: 2rem; }
}

/* =====================================
   576px
===================================== */
@media (max-width: 576px) {
    .section { padding: 50px 16px; }
    .page-hero { padding: 45px 16px; }
    .hero { padding: 60px 16px; }
    .hero h1, .slide-content h1 { font-size: 30px; }
    .hero p, .slide-content p { font-size: 15px; }
    .card, .feature-card, .team-card, .value-card, .identity-card, .sidebar-card, .contact-form-card { padding: 20px; }
    .article-body, .post-body, .news-body, .blog-body { padding: 18px; }
    .slide-arrow { display: none; }
    .nav-title { font-size: 13px; }
    .nav-title span { font-size: 10px; }
    .btn-primary, .btn-outline, .btn-green { width: 100%; text-align: center; }
}

/* =====================================
   400px
===================================== */
@media (max-width: 400px) {
    .hero h1, .slide-content h1 { font-size: 26px; }
    .section-title { font-size: 24px; }
    .hero-stat .num, .hero-stats-bar .num { font-size: 20px; }
    .hero-stat .lbl { font-size: 11px; }
    .contact-form-card, .philosophy-block { padding: 18px; }
}

/* ═══ PERMANENTLY REMOVE THE SEMI‑CIRCLE ═══ */
.philosophy-block .bg-accent { display: none !important; }