/* ==========================================================================
   MURANG'A HIGH SCHOOL — MODERN THEME (v2)
   Palette sampled directly from the official crest:
     shield green  #003F1C
     ray gold      #FFEF00
     white         #FFFFFF
   No maroon. No color-wash hover effects on cards — kept clean and neutral,
   with green/gold used only as deliberate accents (borders, links, badges).
   Display face: Fraunces · Body face: Public Sans
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Public+Sans:wght@400;500;600;700&display=swap');

:root{
  /* --- Color tokens, derived from the crest --- */
  --green-900:#003F1C;   /* shield green — primary */
  --green-800:#0A4F26;
  --green-700:#136B36;   /* hover / lighter accents */
  --green-600:#1C7E42;
  --gold-700:#B8941F;    /* deepened gold — readable as text/link color */
  --gold-600:#D9AE1F;
  --gold-500:#FFEF00;    /* true crest gold — used sparingly, as a spark not a wash */
  --cream-50:#FBFAF5;
  --cream-100:#F3F0E6;
  --charcoal-900:#1B1B18;
  --slate-600:#56564F;
  --slate-400:#85847A;
  --white:#FFFFFF;
  --border-soft:#E7E3D6;

  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm:6px;
  --radius-md:14px;
  --radius-lg:22px;
  --shadow-card:0 8px 24px -10px rgba(27,27,24,0.18);
  --shadow-soft:0 3px 14px -6px rgba(27,27,24,0.14);

  --maxw:1180px;
  --gutter:clamp(16px, 4vw, 32px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
img{ max-width:100%; height:auto; display:block; }

body#skool_web_body{
  font-family:var(--font-body);
  color:var(--charcoal-900);
  background:var(--cream-50);
  line-height:1.65;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4,h5,h6{
  font-family:var(--font-display);
  color:var(--green-900);
  font-weight:600;
  line-height:1.18;
  margin:0 0 .5em;
}

a{ color:var(--green-800); text-decoration:none; transition:color .18s ease; }
a:hover{ color:var(--gold-700); }

a:focus-visible, button:focus-visible, [onclick]:focus-visible{
  outline:3px solid var(--gold-500);
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

.section-wrap{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }

/* ==========================================================================
   GLOBAL BACKGROUND RESET
   The legacy stylesheet gives Bootstrap's .row / .container / .col-* wrapper
   elements their own grey section backgrounds in places. Those wrappers sit
   *around* our white cards, so the grey was showing through in the gaps —
   in the gallery, top students, and news sections especially. Force every
   generic wrapper back to transparent so only the page's cream background
   and our explicitly-styled white cards show, edge to edge, top to bottom.
   ========================================================================== */
body#skool_web_body #only_home_content,
body#skool_web_body #only_home_content .row,
body#skool_web_body #only_home_content .container,
body#skool_web_body #only_home_content .container-fluid,
body#skool_web_body #only_home_content [class^="col-"],
body#skool_web_body #only_home_content [class*=" col-"],
body#skool_web_body .top_studs_yearly,
body#skool_web_body .top_studs_yearly_head,
body#skool_web_body .top_studs_yearly_body,
body#skool_web_body .home_gallery_container,
body#skool_web_body .home_gallery_cont_head,
body#skool_web_body .home_gallery_cont_body,
body#skool_web_body .pija_container,
body#skool_web_body #announcement_div,
body#skool_web_body .announcement_row,
body#skool_web_body .announcementCard,
body#skool_web_body .schoolCardsMother,
body#skool_web_body .otherCardsMother,
body#skool_web_body .anthemCardsMother{
  background:transparent !important;
  box-shadow:none !important;
}

/* ==========================================================================
   READ MORE LINKS — used everywhere via onclick="load_more_*"
   ========================================================================== */
[onclick^="load_more"], [onclick^="view_top_students"], [onclick^="gallery"]{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:600;
  font-size:14.5px;
  color:var(--green-800);
  padding-bottom:1px;
  border-bottom:1.5px solid var(--gold-600);
  transition:color .18s ease, border-color .18s ease, gap .18s ease;
}
[onclick^="load_more"]::after,
[onclick^="view_top_students"]::after,
[onclick^="gallery"]::after{
  content:"\2192"; /* → */
  display:inline-block;
  transition:transform .18s ease;
}
[onclick^="load_more"]:hover, [onclick^="view_top_students"]:hover, [onclick^="gallery"]:hover{
  color:var(--gold-700);
  border-color:var(--gold-500);
}
[onclick^="load_more"]:hover::after,
[onclick^="view_top_students"]:hover::after,
[onclick^="gallery"]:hover::after{ transform:translateX(3px); }

/* ==========================================================================
   LOADER
   ========================================================================== */
#loader{ padding:60px 0; }
.geotips-loader{
  border-style:solid !important;
  border-top:5px solid var(--green-800) !important;
  border-right:5px solid var(--gold-500) !important;
  border-bottom:5px solid var(--gold-600) !important;
  border-left:5px solid var(--cream-100) !important;
  animation:spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ==========================================================================
   OVERLAY / LIGHTBOX
   ========================================================================== */
#overlay_container{ background:var(--cream-50); }
#overlay_header{
  background:var(--green-900);
  display:flex; align-items:center; justify-content:space-between;
  padding:12px clamp(14px,4vw,20px);
  flex-wrap:wrap; gap:8px;
}
#overlay_header_left, #overlay_header_right{ color:var(--white); }
#close_overlay_head_btn{
  background:var(--white);
  border:1.5px solid var(--gold-500);
  color:var(--green-900);
  font-weight:700;
  padding:8px 16px;
  border-radius:var(--radius-sm);
  cursor:pointer;
}
#close_overlay_head_btn:hover{ background:var(--cream-100); }
#overlay_body{ padding:var(--gutter); max-width:var(--maxw); margin:0 auto; }
#overlay_body_head{ color:var(--green-900); border-bottom:2px solid var(--border-soft); padding-bottom:10px; }
#overlay_footer{ text-align:center; padding:16px; }
#overlay_footer .btn{
  background:var(--green-800); border:none; color:var(--white);
  padding:10px 24px; border-radius:var(--radius-sm); cursor:pointer;
}
#overlay_footer .btn:hover{ background:var(--green-700); }

.my_light_box{ background:rgba(20,20,18,0.93); }
.my_light_box_header{ display:flex; justify-content:flex-end; gap:18px; padding:14px clamp(14px,4vw,20px); flex-wrap:wrap; }
.my_light_box_header a{ color:var(--cream-100); font-size:18px; }
.my_light_box_header a:hover{ color:var(--gold-500); }
#my_light_box_header_counter{ color:var(--white); margin-right:auto; font-family:var(--font-body); }

/* ==========================================================================
   SLIDER — intentionally left untouched. Do not add rules for
   #php-slides_div, #slides_inner_cont, .cs_slide, .cs_slider_image_div,
   .cs_slide_image, #cs_slider_description, #slider_indicators,
   #slides_thumbnail, .kapicha_thumb, etc. The site's own CSS/JS controls
   this area — keep this stylesheet out of it.
   ========================================================================== */

/* ==========================================================================
   WELCOME + ABOUT
   ========================================================================== */
#only_home_content{ padding-top:8px; }

#sch_welcome_msg_cont, #sch_background_container{
  background:var(--white);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:clamp(22px,4vw,36px) clamp(20px,4vw,32px) !important;
  height:auto !important;
}

#sch_welcome_msg_cont h1, #sch_background_container h1{
  float:none !important;
  font-size:clamp(20px,2.6vw,28px);
  padding-top:0 !important;
}

.row.text-center > .container > .col-md-12{ padding:clamp(24px,5vw,48px) 0; }

/* ==========================================================================
   MISSION / VISION / MOTTO — neutral cards, no color wash
   ========================================================================== */
.schoolCardsMother{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
  padding:8px 0 32px;
}
.school-cards{
  background:var(--white);
  box-shadow:var(--shadow-soft);
  border-radius:var(--radius-md);
  padding:clamp(24px,3vw,32px) 22px;
  text-align:center;
  height:100%;
  overflow-wrap:break-word;
  word-break:break-word;
}
.school-cards h2{
  font-size:18px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--green-900);
}
.school-cards p{
  color:var(--slate-600);
  margin:0;
  overflow-wrap:break-word;
  word-break:break-word;
  white-space:normal;
}

/* ==========================================================================
   CORE VALUES / LEADERSHIP / CHAIRPERSONS / NATIONAL GOALS
   ========================================================================== */
.otherCardsMother{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:18px;
  padding:8px 0 40px;
}
.other_cards{
  background:var(--white);
  box-shadow:var(--shadow-soft);
  border-radius:var(--radius-md);
  padding:24px 22px;
}
.other_cards h3{ font-size:16.5px; color:var(--green-900); margin-bottom:12px; }
.other_cards div{ color:var(--slate-600); font-size:15px !important; text-align:left; }

/* ==========================================================================
   ANTHEM CARDS — clean cards, accent kept to a thin top rule (no full-bleed color wash)
   ========================================================================== */
.anthemCardsMother{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
  padding:8px 0 40px;
  align-items:stretch;
}
.anthem_cards{
  background:linear-gradient(155deg, var(--green-900), var(--green-700)) !important;
  color:var(--cream-50) !important;
  border-radius:var(--radius-lg) !important;
  padding:clamp(26px,4vw,48px) clamp(22px,4vw,42px) !important;
  min-height:260px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow-wrap:break-word;
  word-break:break-word;
}
.anthem_cards h4{
  color:var(--gold-500) !important;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:15px;
  margin-bottom:16px;
}
.anthem_cards div{
  color:var(--cream-50) !important;
  font-family:var(--font-display);
  font-style:italic;
  text-align:left;
  line-height:1.85;
  font-size:clamp(15px,1.6vw,18px);
}
.anthem_cards a{ color:var(--gold-500) !important; }
.anthem_cards a:hover{ color:var(--gold-600) !important; }

@media (min-width:992px){
  .anthem_cards{ min-height:320px; padding:52px 46px !important; }
}

/* ==========================================================================
   TOP STUDENTS
   ========================================================================== */
.top_studs_yearly{ padding:clamp(24px,5vw,40px) 0; }
.top_studs_yearly_head h2{ text-align:center; margin-bottom:24px; }
.top_studs_yearly_body{
  display:flex; gap:16px; overflow-x:auto; padding-bottom:12px;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}
.year_stud_kont{
  flex:0 0 auto;
  width:min(230px, 78vw);
  scroll-snap-align:start;
  background:var(--white);
  box-shadow:var(--shadow-soft);
  border-radius:var(--radius-md);
  overflow:hidden;
  text-align:center;
  padding-bottom:14px;
  transition:box-shadow .2s ease, transform .2s ease;
}
.year_stud_kont:hover{
  box-shadow:0 10px 26px -10px rgba(0,63,28,0.35);
  transform:translateY(-3px);
}
.year_stud_kont_image{ padding:16px 0 4px; }
.year_stud_kont_image img{
  border-radius:50% !important;
  border:3px solid var(--gold-600) !important;
  width:96px; height:96px; object-fit:cover; margin:0 auto;
  padding:0 !important;
  background:none !important;
  transition:border-color .2s ease;
}
.year_stud_kont:hover .year_stud_kont_image img{
  border-color:var(--green-800) !important;
}
.year_stud_kont_details p{ margin:2px 0; font-size:13.5px; color:var(--slate-600); }
.yearly_tp_stud_link{ text-align:center; margin-top:18px; }

/* Bootstrap's .img-thumbnail adds a grey border/background/padding box —
   neutralize it everywhere so photos stay clean and match the borderless card style */
.img-thumbnail{
  padding:0 !important;
  border:none !important;
  background:transparent !important;
  border-radius:inherit;
  box-shadow:none !important;
}

@media (max-width:700px){
  .top_studs_yearly_body{
    flex-direction:column;
    align-items:center;
    overflow-x:visible;
    gap:24px;
    padding:4px 0 8px;
  }
  .year_stud_kont{ width:100%; max-width:320px; }
}

/* ==========================================================================
   GALLERY — neutral dark scrim on hover, no brand-color wash
   ========================================================================== */
.home_gallery_container{ padding:clamp(24px,5vw,40px) 0; }
.home_gallery_cont_head h2{ text-align:center; margin-bottom:24px; }
.home_gallery_cont_body{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:16px;
}
.pija_container{ width:100%; }
.pija_img_cont{
  position:relative;
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  aspect-ratio:1/1;
}
.pija_kapicha{
  border-radius:var(--radius-md) !important;
  border:none !important;
  width:100% !important; height:100% !important;
  object-fit:cover;
}
.pija_img_ovaley{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,0);
  color:var(--white); font-weight:600;
  opacity:0; cursor:pointer;
  transition:background .2s ease, opacity .2s ease;
}
.pija_img_cont:hover .pija_img_ovaley{ background:rgba(0,0,0,0.55); opacity:1; }
.pija_img_descp p{ text-align:center; margin-top:8px; font-weight:600; font-size:14px; cursor:pointer; }
.home_gallery_link{ text-align:center; margin-top:18px; }

/* ==========================================================================
   NEWS / ANNOUNCEMENTS
   ========================================================================== */
#only_home_content > div.text-center > h2{
  background:none !important;
  color:var(--green-900) !important;
  text-decoration:none !important;
  font-size:clamp(20px,3vw,28px);
  position:relative;
  padding-bottom:14px;
  margin-bottom:8px;
}
#only_home_content > div.text-center > h2::after{
  content:"";
  position:absolute; left:50%; bottom:0;
  transform:translateX(-50%);
  width:56px; height:3px;
  background:var(--gold-500);
}
#announcement_div{ padding-bottom:48px; }
.announcement_row{ padding:0; }
.announcementCard{ display:flex; flex-direction:column; gap:10px; }
.fullAnct{
  display:flex; align-items:center; gap:16px;
  background:var(--white);
  box-shadow:var(--shadow-soft);
  border-radius:var(--radius-sm);
  padding:12px clamp(14px,3vw,20px);
  flex-wrap:wrap;
}
.anctPart:first-child{
  display:flex; flex-direction:column; align-items:center;
  background:var(--green-900); color:var(--white);
  border-radius:var(--radius-sm);
  padding:6px 12px; line-height:1.1; flex:0 0 auto;
  min-width:54px;
}
.annctDay{ font-size:18px; font-weight:700; }
.annctMonth, .annctYear{ font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; }
.annctLine{ display:none; }
.fullAnct a{ font-weight:600 !important; color:var(--charcoal-900) !important; font-size:15.5px !important; border-bottom:none; }
.fullAnct a:hover{ color:var(--green-800) !important; }

/* ==========================================================================
   RESPONSIVE — fluid by default via clamp()/grid above; extra tightening here
   ========================================================================== */
@media (max-width:768px){
  .row.text-center > .container > .col-md-12{ padding:20px 0; }
  #sch_welcome_msg_cont, #sch_background_container{ margin-bottom:18px; }
}

@media (max-width:480px){
  body#skool_web_body{ font-size:15px; }
  #overlay_header{ padding:10px 14px; }
}

@media (min-width:1400px){
  .section-wrap{ max-width:1280px; }
}
