/*
Theme Name: School Lite
Author: Your Team
Version: 1.0
Text Domain: school-lite
*/

/* =========================================================
   1) CORE VARIABLES
========================================================= */
:root{
  --primary:#0465cc;
  --secondary:#f7da49;
  --success:#60A83B;
  --alert:#C62828;

  --text:#333333;
  --bg:#ffffff;
  --muted:#f7f9fc;
  --border:#e6e9ef;

  --shadow:0 10px 25px rgba(0,0,0,.08);
  --radius:14px;
  --radius-lg:18px;
  --container:1120px;

  --yellowbar:#f3cf1a;
  --navblue:#0a4ea2;
  --footerred:#b10f10;
}

/* =========================================================
   2) BASE / RESET
========================================================= */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:var(--primary); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

/* Accessibility helper */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* =========================================================
   3) TOPBAR
========================================================= */
.sl-topbar{
  background:var(--yellowbar);
  font-size:13px;
}
.sl-topbar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 0;
  gap:16px;
}
.sl-topbar-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.sl-topbar-right{
  display:flex;
  align-items:center;
  gap:12px;
}
.sl-dot{
  width:8px;
  height:8px;
  background:#d51919;
  border-radius:999px;
}
.sl-topbar a{
  color:#1a1a1a;
  font-weight:700;
}

/* =========================================================
   4) HEADER (LOGO + TEXT + CTA)
========================================================= */
.sl-header{
  background:#fff;
  border-bottom:1px solid #e9edf5;
}
.sl-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
}

/* Brand / Logo */
.sl-header-banner{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
  min-width:0;
}
.sl-header-banner a{ flex:0 0 auto; }
.sl-header-banner img{
  height:72px;
  width:auto;
  border-radius:6px;
  flex-shrink:0;
}

/* Text wrapper */
.sl-header-banner .brand-text{ min-width:0; }

.sl-header-banner .site-title{
  margin:0;
  font-size:16px;
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sl-header-banner .site-desc{
  margin:2px 0 0;
  font-size:12px;
  opacity:.8;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Optional header CTA */
.sl-header-cta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-left:auto;
}
.sl-header-cta img{
  height:60px;
  width:auto;
  border-radius:10px;
}

/* Desktop show CTA; Tablet/Mobile hide CTA */
@media (max-width: 1024px){
  .sl-header-cta{ display:none; }
}

/* Tablet + Mobile: allow wrap + allow text to wrap */
@media (max-width: 1199.98px){
  .sl-header-inner{ flex-wrap:wrap; }
  .sl-header-banner{ width:100%; }

  .sl-header-banner .site-title,
  .sl-header-banner .site-desc{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .sl-header-banner .site-title{
    font-size:14px;
    line-height:1.3;
  }
  .sl-header-banner .site-desc{
    font-size:12px;
    line-height:1.3;
  }
}

/* =========================================================
   5) NAVIGATION (CLEAN - NO DUPLICATES)
========================================================= */
.sl-nav{
  background:var(--navblue);
  position:relative;
}

.sl-nav-inner{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:56px;
  gap:12px;
}

/* Desktop menu */
.sl-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:24px;
  align-items:center;
}
.sl-menu > li{ position:relative; }

.sl-menu > li > a{
  color:#fff;
  font-weight:700;
  text-decoration:none;
  height:56px;
  display:flex;
  align-items:center;
  white-space:nowrap;
}
.sl-menu > li > a:hover{ color:var(--secondary); }

/* Dropdown desktop (hover) */
.sl-menu li ul{
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  background:#fff;
  border:1px solid #e7ebf3;
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:8px;
  list-style:none;
  margin:0;
  display:none;
  z-index:50;
}
.sl-menu li:hover > ul{ display:block; }

.sl-menu li ul li a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  color:#1a1a1a;
  font-weight:700;
  font-size:13px;
}
.sl-menu li ul li a:hover{
  background:#f3f6ff;
  text-decoration:none;
}

/* Toggle button */
.sl-nav-toggle{
  display:none;
  width:44px;
  height:38px;
  padding:0;
  background:transparent;
  border:1px solid rgba(255,255,255,.35);
  border-radius:10px;
  justify-content:center;
  align-items:center;
  cursor:pointer;
}

/* Burger icon */
.sl-burger{
  width:22px;
  height:2px;
  background:#fff;
  display:inline-block;
  position:relative;
  border-radius:2px;
}
.sl-burger::before,
.sl-burger::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background:#fff;
  border-radius:2px;
}
.sl-burger::before{ top:-7px; }
.sl-burger::after{ top:7px; }

/* Animate X */
.sl-nav.is-open .sl-burger{ background:transparent; }
.sl-nav.is-open .sl-burger::before{ top:0; transform:rotate(45deg); }
.sl-nav.is-open .sl-burger::after{ top:0; transform:rotate(-45deg); }

/* Mobile: menu pushes content down (NOT overlay) */
@media (max-width: 991px){
  .sl-nav-toggle{ display:inline-flex; }

  .sl-nav-inner{
    flex-wrap:wrap;
    justify-content:space-between;
  }

  .sl-menu{
    width:100%;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    padding:8px 0;
  }
  .sl-nav.is-open .sl-menu{ display:flex; }

  .sl-menu > li{ width:100%; }
  .sl-menu > li > a{
    width:100%;
    height:auto;
    padding:10px 12px;
    border-top:1px solid rgba(255,255,255,.15);
  }

  /* Mobile submenu: only open when JS adds .open on LI */
  .sl-menu li ul{
    position:static;
    display:none;
    box-shadow:none;
    border:none;
    padding:0 0 0 12px;
    margin:0;
    background:transparent;
  }
  .sl-menu li.open > ul{ display:block; }

  .sl-menu li ul li a{
    padding:8px 10px;
    color:#fff;
    font-weight:600;
  }
  .sl-menu li ul li a:hover{
    background:rgba(255,255,255,.08);
  }
}

/* =========================================================
   6) HERO
========================================================= */
.sl-hero{
  background:#0b3f86;
  color:#fff;
}
.sl-hero-inner{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:24px;
  align-items:center;
  padding:26px 0;
}
.sl-hero h1{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.2;
  font-weight:900;
  text-transform:uppercase;
}
.sl-hero ul{ margin:10px 0 18px; padding:0; list-style:none; }
.sl-hero li{ margin:0 0 8px; font-weight:700; }

.sl-hero .sl-btn{
  display:inline-block;
  background:var(--secondary);
  color:#1a1a1a;
  font-weight:900;
  padding:10px 18px;
  border-radius:999px;
  box-shadow:0 8px 18px rgba(0,0,0,.20);
  text-transform:uppercase;
  font-size:12px;
}
.sl-hero .sl-btn:hover{ text-decoration:none; filter:brightness(.98); }

.sl-hero-media{
  background:rgba(255,255,255,.10);
  border-radius:var(--radius-lg);
  overflow:hidden;
}

@media (max-width: 980px){
  .sl-hero-inner{ grid-template-columns:1fr; }
}

/* =========================================================
   7) SECTIONS (Titles + spacing)
========================================================= */
.sl-section{ padding:34px 0; }
.sl-section-title{
  text-align:center;
  font-size:24px;
  font-weight:900;
  margin:0 0 18px;
  text-transform:uppercase;
  color:#0a3f86;
}
.sl-section-sub{
  text-align:center;
  max-width:860px;
  margin:0 auto 22px;
  font-size:13px;
  opacity:.9;
}

/* =========================================================
   8) COMPONENTS (Cards / Bands / Media blocks / Posts / Content)
========================================================= */

/* Cards grid */
.sl-card-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}
@media (max-width: 1020px){ .sl-card-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .sl-card-grid{ grid-template-columns: 1fr; } }

.sl-card{
  background:#fff;
  border:1px solid #e7ebf3;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.sl-card img{ width:100%; height:150px; object-fit:cover; }
.sl-card .sl-card-body{ padding:12px; text-align:center; }
.sl-card .sl-card-title{
  margin:0 0 10px;
  font-weight:900;
  text-transform:uppercase;
  font-size:13px;
}
.sl-pill-btn{
  display:inline-block;
  background:var(--secondary);
  color:#1a1a1a;
  font-weight:900;
  padding:8px 14px;
  border-radius:999px;
  font-size:11px;
  text-transform:uppercase;
}
.sl-pill-btn:hover{ text-decoration:none; filter:brightness(.98); }

/* Yellow specialty band */
.sl-band{
  background:#f4b400;
  padding:28px 0;
}
.sl-band .sl-section-title{ color:#1a1a1a; }
.sl-circles{
  display:flex;
  gap:18px;
  justify-content:center;
  align-items:flex-start;
  flex-wrap:wrap;
}
.sl-circle{ width:160px; text-align:center; }
.sl-circle .thumb{
  width:140px;height:140px;
  border-radius:999px;
  overflow:hidden;
  border:6px solid rgba(255,255,255,.55);
  margin:0 auto 10px;
  box-shadow:var(--shadow);
}
.sl-circle .thumb img{ width:100%; height:100%; object-fit:cover; }
.sl-circle .label{
  font-weight:900;
  font-size:12px;
  text-transform:uppercase;
}

/* Media + text block */
.sl-media-block{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 980px){ .sl-media-block{ grid-template-columns:1fr; } }

.sl-video{
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid #e7ebf3;
}
.sl-info{
  background:#fff;
  border-radius:var(--radius-lg);
  border:1px solid #e7ebf3;
  box-shadow:var(--shadow);
  padding:16px;
}
.sl-info h3{
  margin:0 0 10px;
  font-weight:900;
  text-transform:uppercase;
  color:#0a3f86;
}

/* Steps */
.sl-steps{
  list-style:none;
  padding:0;
  margin:0;
  counter-reset: step;
  
}
.sl-steps li{
  position:relative;
  padding-left:70px;
  margin-bottom:14px;
  line-height:1.6;
  color:#222;
}
.sl-steps li::before{
  counter-increment: step;
  content: counter(step);
  position:absolute;
  left:0;
  top:0;
  width:46px;
  height:46px;
  background:#0a3b82;
  color:#fff;
  font-weight:800;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Posts */
.sl-post-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
@media (max-width: 980px){ .sl-post-grid{ grid-template-columns:1fr; } }

.sl-post-feature{
  background:#fff;
  border:1px solid #e7ebf3;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.sl-post-feature img{ width:100%; height:260px; object-fit:cover; }
.sl-post-feature .body{ padding:14px; }
.sl-post-feature .cat{ font-weight:900; color:#b10f10; font-size:12px; text-transform:uppercase; }
.sl-post-feature h3{ margin:6px 0 8px; font-weight:900; }
.sl-post-feature p{ margin:0; color:#444; font-size:13px; }

.sl-post-list{ display:flex; flex-direction:column; gap:12px; }
.sl-post-mini{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:#fff;
  border:1px solid #e7ebf3;
  border-radius:16px;
  padding:10px;
  box-shadow:var(--shadow);
}
.sl-post-mini img{ width:92px; height:72px; object-fit:cover; border-radius:12px; }
.sl-post-mini .meta{ font-size:12px; font-weight:900; color:#b10f10; text-transform:uppercase; }
.sl-post-mini h4{ margin:4px 0 0; font-size:13px; font-weight:900; }
.sl-more-center{ text-align:center; margin-top:16px; }

/* Content templates */
.sl-content{ padding:0px 0; }
.entry-title{ margin:0 0 10px; font-weight:900; color:#0a3f86; }
.entry-meta{ font-size:13px; opacity:.8; margin-bottom:14px; }
.entry-content{
  background:#fff;
  border:1px solid #e7ebf3;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:18px;
}

/* RSS list box */
.sl-rss-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap:28px;
  row-gap:12px;
  margin-top:10px;

  background:#fff;
  border:1px solid #e7ebf3;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:14px;
}
.sl-rss-grid .sl-rss-item{
  width:100%;
  padding-left:16px;
  position:relative;

  color:#222;
  line-height:1.35;
  text-decoration:none;

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;

  min-height:2.7em;
}
.sl-rss-grid .sl-rss-item::before{
  content:"…";
  position:absolute;
  left:0;
  top:0;
  color:#666;
  font-weight:700;
  opacity:.9;
}
.sl-rss-grid .sl-rss-item:hover{ text-decoration:underline; }
@media (max-width: 768px){
  .sl-rss-grid{ grid-template-columns:1fr; }
}

/* =========================================================
   9) FOOTER
========================================================= */
.site-footer{
  background:var(--footerred);
  color:rgba(255,255,255,.92);
  padding:26px 0;
  margin-top:40px;
}
.site-footer a{ color:rgba(255,255,255,.95); }
.small{ font-size:13px; opacity:.9; }

.footer-grid.footer-3col{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap:24px;
}
@media (max-width: 980px){
  .footer-grid.footer-3col{ grid-template-columns: 1fr; }
}
.footer-title{
  font-weight:900;
  margin-bottom:10px;
  text-transform:uppercase;
}
.footer-links{
  list-style:none;
  padding:0;
  margin:0;
}
.footer-links li{ margin: 0 0 6px; }
.footer-links a{ text-decoration:none; }
.footer-links a:hover{ text-decoration:underline; }

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.22);
  margin-top:18px;
  padding-top:12px;
  text-align:center;
  font-size:12px;
  opacity:.95;
}
