/* =====================================================================
   St. Mary's High School, Nadiad — Site Design System
   Hand-built for this site (not a third-party template) so every class
   used in the markup is actually styled here, deliberately.
   ===================================================================== */

:root{
  --sm-maroon: #7a1c2e;
  --sm-maroon-dark: #591420;
  --sm-gold: #c9a24b;
  --sm-gold-dark: #9e7d34;
  --sm-cream: #fbf7f0;
  --sm-ink: #26201d;
  --sm-muted: #6b6058;
  --sm-border: #ece3d8;
  --sm-radius: 10px;
  --sm-shadow: 0 6px 24px rgba(89, 20, 32, 0.08);
  --sm-shadow-hover: 0 12px 32px rgba(89, 20, 32, 0.14);
}

body{
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  color: var(--sm-ink);
  background: #fff;
}
h1,h2,h3,h4,h5,h6{
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: var(--sm-maroon-dark);
}
a{ color: var(--sm-maroon); text-decoration:none; }
a:hover{ color: var(--sm-maroon-dark); }

.container-narrow{ max-width: 1140px; margin:0 auto; padding:0 20px; }

/* ---------- Top utility bar ---------- */
.sm-topbar{
  background: var(--sm-maroon-dark);
  color:#f3e6cf;
  font-size: 13.5px;
  padding: 7px 0;
}
.sm-topbar a{ color:#f3e6cf; }
.sm-topbar a:hover{ color:#fff; }
.sm-topbar .sm-topbar-inner{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px;
}
.sm-topbar i{ margin-right:5px; }
.sm-topbar .sm-topbar-right a{ margin-left:16px; }

/* ---------- Header / Nav ---------- */
.sm-header{
  background:#fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky; top:0; z-index: 1000;
}
.sm-header .navbar{ padding: 12px 0; }
.sm-header .navbar-brand img{ height: 58px; }
.sm-header .navbar-brand .sm-brand-text{
  display:inline-block; margin-left:12px; vertical-align:middle; line-height:1.2;
}
.sm-header .navbar-brand .sm-brand-text strong{ font-family:'Merriweather',serif; color:var(--sm-maroon-dark); font-size:19px; display:block; }
.sm-header .navbar-brand .sm-brand-text span{ font-size:12.5px; color:var(--sm-muted); }

.sm-header .nav-link{
  color: var(--sm-ink) !important;
  font-weight: 600;
  font-size: 18px;
  padding: 10px 14px !important;
}
.sm-header .nav-link:hover, .sm-header .nav-link.active{ color: var(--sm-maroon) !important; }
.sm-header .dropdown-menu{ border:none; box-shadow: var(--sm-shadow); border-radius: 8px; padding:8px; }
.sm-header .dropdown-item{ border-radius:6px; padding:8px 14px; font-size:14.5px; }
.sm-header .dropdown-item:hover{ background: var(--sm-cream); color:var(--sm-maroon); }
.sm-header .btn-enquire{
  background: var(--sm-maroon); color:#fff; border-radius: 30px; padding:9px 22px;
  font-weight:600; font-size:14.5px;
}
.sm-header .btn-enquire:hover{ background: var(--sm-maroon-dark); color:#fff; }

/* ---------- Hero ---------- */
.sm-hero{
  position:relative;
  background:#1a1a1a;
  overflow:hidden;
}
.sm-hero-slide{
  position:relative;
  min-height: 80vh;
  display:flex; align-items:center;
  background-size: cover; background-position: top;
}
.sm-hero-slide::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.45) 100%);
}
.sm-hero-card{
  position:relative; z-index:2;
  background:#fff;
  max-width: 480px;
  margin: 40px 0 40px 0;
  padding: 44px 46px 44px 0;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
}
.sm-hero-card-inner{ padding-left: 46px; }
.sm-hero-eyebrow{
  display:block; color: var(--sm-gold); font-weight:700; font-size:14px; margin-bottom:14px;
}
.sm-hero-card h1{ font-size: 34px; line-height:1.25; margin-bottom:16px; color: var(--sm-ink); }
.sm-hero-card p{ color: var(--sm-muted); font-size:15.5px; margin-bottom:24px; }
.btn-sm-primary{
  background: var(--sm-gold); border-color:var(--sm-gold); color:#3a2c0d; font-weight:700;
  border-radius:30px; padding:11px 26px; display:inline-flex; align-items:center; gap:8px;
}
.btn-sm-primary:hover{ background:#b7913f; border-color:#b7913f; color:#241a05; }
.btn-sm-outline-light{
  border:2px solid #fff; color:#fff; border-radius:30px; padding:9px 24px; font-weight:600; background:transparent;
}
.btn-sm-outline-light:hover{ background:#fff; color: var(--sm-maroon-dark); }

.sm-hero-nav{
  position:absolute; right: 30px; bottom: 26px; z-index:5; display:flex; gap:10px;
}
.sm-hero-nav button{
  width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.25); color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:16px; transition:.2s;
}
.sm-hero-nav button:hover{ background: var(--sm-gold); border-color: var(--sm-gold); color:#3a2c0d; }
.sm-hero-dots{ position:absolute; left:50%; bottom:24px; transform:translateX(-50%); z-index:5; display:flex; gap:8px; }
.sm-hero-dots button{ width:9px; height:9px; border-radius:50%; border:none; background:rgba(255,255,255,.5); padding:0; }
.sm-hero-dots button.active{ background: var(--sm-gold); }
@media (max-width: 767px){
  .sm-hero-card{ max-width:90%; clip-path:none; padding: 30px; margin: 24px auto; }
  .sm-hero-card-inner{ padding-left:0; }
  .sm-hero-card h1{ font-size:26px; }
  .sm-hero-nav{ right:14px; bottom:14px; }
  .sm-hero-nav button{ width:36px; height:36px; }
}

/* ---------- Quick facts strip ---------- */
.sm-facts{
  background:#fff; position:relative; z-index:5; margin-top:0;
}
.sm-facts-inner{
  background:#fff; border-radius: var(--sm-radius); box-shadow: var(--sm-shadow);
  display:flex; flex-wrap:wrap;
}
.sm-fact{
  flex:1 1 25%; min-width:150px; text-align:center; padding:26px 14px; border-right:1px solid var(--sm-border);
}
.sm-fact:last-child{ border-right:none; }
.sm-fact img{ height:70px; margin-bottom:16px; }
.sm-fact h4{ font-size:18px; margin-bottom:2px; color: var(--sm-ink); font-family:'Source Sans 3',sans-serif; font-weight:700; }
.sm-fact span{ font-size:14px; color:var(--sm-muted); }

.sm-icon-panel{
  background: linear-gradient(135deg, var(--sm-maroon) 0%, var(--sm-maroon-dark) 100%);
  display:flex; align-items:center; justify-content:center; min-height:120px;
}
.sm-icon-panel i{ font-size: 42px; color: rgba(255,255,255,.9); }

/* ---------- Section basics ---------- */
.sm-section{ padding: 70px 0; }
.sm-section-alt{ background: var(--sm-cream); }
.sm-eyebrow{
color: var(--sm-gold-dark); text-transform: uppercase; letter-spacing:.08em; font-size:13px; font-weight:700; margin-bottom:8px; display:block;
}
.sm-section-title{ margin-bottom:16px; }
.sm-section-desc{ color: var(--sm-muted); font-size:15.5px; line-height:1.75; }
.sm-divider{
  width:60px; height:4px; background: var(--sm-gold); border-radius:2px; margin: 14px 0 22px;
}
.text-center .sm-divider{ margin-left:auto; margin-right:auto; }

/* ---------- About / text-image block ---------- */
.sm-about-photo{
  border-radius: var(--sm-radius); overflow:hidden; box-shadow: var(--sm-shadow);
}
.sm-about-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.sm-about-photo.sm-icon-panel{
  min-height: 320px; background: linear-gradient(135deg, var(--sm-maroon) 0%, var(--sm-maroon-dark) 100%);
  display:flex; align-items:center; justify-content:center;
}
.sm-about-photo.sm-icon-panel i{ font-size: 84px; color: rgba(255,255,255,.9); }
.sm-about-badge{
  position:absolute; bottom:-18px; left:-18px; background: var(--sm-maroon); color:#fff;
  border-radius: var(--sm-radius); padding:14px 20px; box-shadow: var(--sm-shadow); font-family:'Merriweather',serif;
}
.sm-about-badge strong{ display:block; font-size:26px; line-height:1; }
.sm-about-badge span{ font-size:12px; }

/* ---------- Academics / feature cards ---------- */
.sm-card{
  background:#fff; border:1px solid var(--sm-border); border-radius: var(--sm-radius);
  padding: 28px 22px; height:100%; transition: box-shadow .2s, transform .2s;
}
.sm-card:hover{ box-shadow: var(--sm-shadow-hover); transform: translateY(-4px); }
.sm-card .sm-card-icon{
  width:56px; height:56px; border-radius:14px; background: var(--sm-cream);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.sm-card .sm-card-icon img{ height:30px; }
.sm-card h5{ font-size:17px; margin-bottom:8px; }
.sm-card p{ color: var(--sm-muted); font-size:14px; margin-bottom:12px; }
.sm-card a.sm-card-link{ font-weight:700; font-size:13.5px; color:var(--sm-maroon); }
.sm-card a.sm-card-link i{ margin-left:4px; transition: margin .2s; }
.sm-card:hover a.sm-card-link i{ margin-left:8px; }

/* ---------- Infrastructure / grid items ---------- */
.sm-infra-card{
  background:#fff; border-radius: var(--sm-radius); text-align:center; padding: 24px 16px;
  box-shadow: var(--sm-shadow); height:100%;
}
.sm-infra-card .icon-wrap{
  width:64px; height:64px; border-radius:50%; background: linear-gradient(135deg, var(--sm-maroon), var(--sm-maroon-dark));
  display:flex; align-items:center; justify-content:center; margin: 0 auto 14px;
}
.sm-infra-card .icon-wrap i{ color:#fff; font-size:24px; }
.sm-infra-card h6{ font-size:15px; margin-bottom:6px; }
.sm-infra-card p{ font-size:13px; color:var(--sm-muted); margin:0; }

/* ---------- Stats counter ---------- */
.sm-stats{
  background: var(--sm-maroon-dark); color:#fff;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.06), transparent 40%);
}
.sm-stat{ text-align:center; padding: 10px; }
.sm-stat h3{ color:#fff; font-size:38px; margin-bottom:4px; }
.sm-stat span{ color:#e6c8ce; font-size:14px; }

/* ---------- Notices / events ---------- */
.sm-list-card{
  background:#fff; border-radius: var(--sm-radius); box-shadow: var(--sm-shadow); padding:28px; height:100%;
}
.sm-list-card h3{ font-size:20px; margin-bottom:4px; }
.sm-notice-item, .sm-event-item{
  padding: 14px 0; border-bottom:1px solid var(--sm-border);
}
.sm-notice-item:last-child, .sm-event-item:last-child{ border-bottom:none; }
.sm-notice-date, .sm-event-date{
  display:inline-block; background: var(--sm-cream); color: var(--sm-maroon-dark);
  font-size:12px; font-weight:700; border-radius:6px; padding:2px 8px; margin-bottom:4px;
}
.sm-notice-desc{
  margin: 4px 0 0; color: var(--sm-muted); font-size: 13.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sm-empty-note{ color: var(--sm-muted); font-size:14px; padding: 10px 0; }

/* ---------- Pagination ---------- */
.sm-pagination{ display:flex; list-style:none; padding:0; gap:6px; }
.sm-pagination .page-link{
  border:1px solid var(--sm-border); color: var(--sm-maroon-dark); border-radius:8px;
  padding:8px 14px; font-size:14px; font-weight:600;
}
.sm-pagination .page-item.active .page-link{ background: var(--sm-maroon); border-color: var(--sm-maroon); color:#fff; }
.sm-pagination .page-item a.page-link:hover{ background: var(--sm-cream); }

/* ---------- Leadership strip ---------- */
.sm-leadership{ padding: 50px 0 30px; }
.sm-leader{ text-align:center; margin-bottom: 24px; }
.sm-leader img{
  width:104px; height:104px; object-fit:cover; border-radius:50%; border:4px solid var(--sm-cream);
  box-shadow: var(--sm-shadow); margin-bottom:10px;
}
.sm-leader h6{ font-size:14.5px; margin-bottom:2px; }
.sm-leader span{ font-size:12.5px; color:var(--sm-muted); }
.sm-digital-note{ text-align:center; font-size:12.5px; color:var(--sm-muted); padding-top:10px; }

/* ---------- Our Management cards (homepage) ---------- */
.sm-mgmt-card{
  display:flex; background:#fff; border:1px solid var(--sm-border); border-radius: var(--sm-radius);
  overflow:hidden; box-shadow: var(--sm-shadow); height:100%;
}
.sm-mgmt-photo{ flex: 0 0 300px; min-height:260px; }
.sm-mgmt-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.sm-mgmt-body{ flex:1; padding: 22px 24px; display:flex; flex-direction:column; justify-content:center; }
.sm-mgmt-body h5{ font-size:19px; margin: 4px 0 10px; }
.sm-mgmt-body p{ color: var(--sm-muted); font-size:16px; margin-bottom:10px; }
.sm-mgmt-wide{ margin-top: 4px; }
.sm-mgmt-wide .sm-mgmt-photo{ flex: 0 0 300px; max-height:180px; }
.sm-mgmt-wide .sm-mgmt-photo img {object-position: top;}
.sm-mgmt-tags{ display:flex; gap:10px; margin-top:6px; }
.sm-mgmt-tags span{
  display:inline-flex; align-items:center; gap:6px; background: var(--sm-cream); color: var(--sm-maroon-dark);
  font-size:12.5px; font-weight:600; border-radius:20px; padding:5px 14px;
}

@media (max-width: 575px){
  .sm-mgmt-card{ flex-direction:column; }
  .sm-mgmt-photo, .sm-mgmt-wide .sm-mgmt-photo{ flex: none; height:200px; }
}

/* ---------- Blog cards (homepage "Latest News & Events") ---------- */
.sm-blog-card{ background:#fff; border-radius: var(--sm-radius); box-shadow: var(--sm-shadow); overflow:hidden; height:100%; transition: transform .2s, box-shadow .2s; }
.sm-blog-card:hover{ transform: translateY(-4px); box-shadow: var(--sm-shadow-hover); }
.sm-blog-thumb{ position:relative; display:block; height:190px; overflow:hidden; }
.sm-blog-thumb img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform .3s; }
.sm-blog-card:hover .sm-blog-thumb img{ transform: scale(1.06); }
.sm-blog-date{
  position:absolute; top:14px; right:14px; background: #3fa66e; color:#fff; border-radius:8px;
  padding:6px 10px; text-align:center; line-height:1.1; box-shadow:0 4px 10px rgba(0,0,0,.2);
}
.sm-blog-date strong{ display:block; font-size:16px; }
.sm-blog-date em{ font-style:normal; font-size:10.5px; text-transform:uppercase; letter-spacing:.03em; }
.sm-blog-body{ padding: 20px 22px; }
.sm-blog-meta{ color: var(--sm-muted); font-size:12.5px; margin-bottom:8px; }
.sm-blog-meta i{ margin-right:4px; }
.sm-blog-body h6{ font-size:16px; line-height:1.4; margin-bottom:14px; }
.sm-blog-body h6 a{ color: var(--sm-ink); }
.sm-blog-body h6 a:hover{ color: var(--sm-maroon); }
.sm-blog-hr{ border-top:1px dashed var(--sm-border); margin: 0 0 14px; }

/* ---------- CTA band (legacy small version - still available if reused elsewhere) ---------- */
.sm-cta{
  background: linear-gradient(120deg, var(--sm-maroon) 0%, var(--sm-maroon-dark) 100%);
  color:#fff; border-radius: var(--sm-radius); padding: 44px; text-align:center;
}
.sm-cta h3{ color:#fff; margin-bottom:10px; }
.sm-cta p{ color:#f3e3e6; margin-bottom:22px; }

/* ---------- Breadcrumb / page header ---------- */
.sm-page-header{
  background: linear-gradient(120deg, var(--sm-maroon-dark) 0%, var(--sm-maroon) 100%);
  color:#fff; padding: 56px 0; text-align:center; position:relative; overflow:hidden;
}
.sm-page-header::before{
  content:""; position:absolute; inset:0; background-image:url('../img/pattern-bg1.png');
  background-size:420px; opacity:.08;
}
.sm-page-header h1{ color:#fff; margin-bottom:8px; position:relative; }
.sm-page-header .sm-breadcrumb{ position:relative; font-size:13.5px; }
.sm-page-header .sm-breadcrumb a{ color:#f3d9de; }
.sm-page-header .sm-breadcrumb a:hover{ color:#fff; }
.sm-page-header .sm-breadcrumb span{ color:#fff; }

/* ---------- Staff / faculty grid ---------- */
.sm-staff-card{ text-align:center; }
.sm-staff-card img{
  width:100%; aspect-ratio:1/1; object-fit:cover; border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow); margin-bottom:12px;
}
.sm-staff-card h6{ margin-bottom:2px; }
.sm-staff-card span{ font-size:13px; color: var(--sm-muted); }

/* ---------- Gallery ---------- */
.sm-gallery-card{
  border-radius: var(--sm-radius); overflow:hidden; box-shadow: var(--sm-shadow); background:#fff;
  transition: transform .2s, box-shadow .2s;
}
.sm-gallery-card:hover{ transform: translateY(-4px); box-shadow: var(--sm-shadow-hover); }
.sm-gallery-card .sm-gallery-thumb{ height:210px; overflow:hidden; }
.sm-gallery-card .sm-gallery-thumb img{ width:100%; height:100%; object-fit:cover; transition: transform .3s; }
.sm-gallery-card:hover .sm-gallery-thumb img{ transform: scale(1.06); }
.sm-gallery-card .sm-gallery-title{ padding: 14px 16px; font-weight:700; font-size:14.5px; color: var(--sm-ink); }
.sm-gallery-photo{ border-radius:8px; overflow:hidden; box-shadow: var(--sm-shadow); display:block; }
.sm-gallery-photo img{ width:100%; height:220px; object-fit:cover; }

/* ---------- Contact ---------- */
.sm-contact-info{ background: var(--sm-cream); border-radius: var(--sm-radius); padding: 32px; height:100%; }
.sm-contact-info ul{ list-style:none; padding:0; margin:0; }
.sm-contact-info li{ padding: 14px 0; border-bottom:1px solid var(--sm-border); display:flex; gap:12px; }
.sm-contact-info li:last-child{ border-bottom:none; }
.sm-contact-info .sm-contact-icon{
  width:38px; height:38px; border-radius:50%; background: var(--sm-maroon); color:#fff;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.sm-map-frame{ border-radius: var(--sm-radius); overflow:hidden; box-shadow: var(--sm-shadow); }
.sm-form-card{ background:#fff; border-radius: var(--sm-radius); box-shadow: var(--sm-shadow); padding: 32px; }
.sm-form-card .form-control{ border-radius:8px; padding:11px 14px; border-color: var(--sm-border); }
.sm-form-card .form-control:focus{ border-color: var(--sm-maroon); box-shadow: 0 0 0 .2rem rgba(122,28,46,.12); }
.sm-form-label{ display:block; font-size:13px; font-weight:700; color: var(--sm-ink); margin-bottom:6px; }
.sm-recaptcha-wrap{ overflow-x:auto; max-width:100%; }
.sm-recaptcha-wrap > div{ margin: 0 auto; }
@media (min-width: 400px){ .sm-recaptcha-wrap > div{ margin: 0; } }

/* ---------- FAQ accordion ---------- */
.accordion-button{ font-weight:700; color: var(--sm-maroon-dark); }
.accordion-button:not(.collapsed){ background: var(--sm-cream); color: var(--sm-maroon); }
.accordion-button:focus{ box-shadow:none; }

/* ---------- Footer ---------- */
.sm-footer{ background: #201512; color:#cbb9b3; padding-top: 60px; }
.sm-footer h5{ color:#fff; font-size:16px; margin-bottom:18px; }
.sm-footer ul{ list-style:none; padding:0; margin:0; }
.sm-footer ul li{ margin-bottom:10px; }
.sm-footer a{ color:#cbb9b3; }
.sm-footer a:hover{ color:#fff; }
.sm-footer .sm-footer-logo{ height:52px; margin-bottom:16px;   padding:6px 10px; border-radius:8px; }
.sm-footer p{ color:#a4938c; font-size:14px; }
.sm-footer-social a{
  display:inline-flex; width:36px; height:36px; border-radius:50%; border:1px solid #4a3a35;
  align-items:center; justify-content:center; margin-right:8px;
}
.sm-footer-social a:hover{ background: var(--sm-maroon); border-color:var(--sm-maroon); color:#fff; }
.sm-footer a.sm-footer-banner{
  position:relative; display:flex; flex-direction:column; justify-content:space-between;
  width:100%; max-width:240px; min-height:210px; border-radius:12px; overflow:hidden;
  background-size:cover; background-position:center; border:1px solid var(--sm-gold);
  color:#fff; text-decoration:none; transition:transform .2s, box-shadow .2s;
}
.sm-footer a.sm-footer-banner::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(89,20,32,.35) 0%,rgba(89,20,32,.75) 55%,rgba(60,10,20,.95) 100%);
}
.sm-footer a.sm-footer-banner:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(0,0,0,.45); color:#fff; }
.sm-fb-tag, .sm-fb-body{ position:relative; z-index:1; }
.sm-fb-tag{
  align-self:flex-start; margin:12px; background:var(--sm-gold); color:#3d0b16;
  font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; padding:4px 10px; border-radius:20px;
}
.sm-fb-body{ padding:0 14px 14px; display:flex; flex-direction:column; gap:10px; }
.sm-fb-body strong{ font-family:'Merriweather',serif; font-size:16px; line-height:1.3; color:#fff; }
.sm-fb-btn{
  align-self:flex-start; background:#fff; color:var(--sm-maroon); font-size:13px; font-weight:700;
  padding:7px 14px; border-radius:20px;
}
.sm-fb-btn i{ font-size:11px; margin-left:4px; }
.sm-footer-bottom{ border-top:1px solid #3a2c28; margin-top:40px; padding:18px 0; font-size:13px; color:#8f7d76; }
.sm-footer-bottom a{ color:#cbb9b3; }

/* ---------- Back to top ---------- */
.sm-backtotop{
  position:fixed; right:22px; bottom:22px; width:44px; height:44px; border-radius:50%;
  background: var(--sm-maroon); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow: var(--sm-shadow); opacity:0; visibility:hidden; transition:.2s; z-index:999;
}
.sm-backtotop.show{ opacity:1; visibility:visible; }
.sm-backtotop:hover{ background: var(--sm-maroon-dark); color:#fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991px){
  .sm-hero-content h1{ font-size:32px; }
  .sm-facts{ margin-top:20px; }
  .sm-fact{ flex:1 1 50%; border-bottom:1px solid var(--sm-border); }
  .sm-about-badge{ position:static; margin-top:16px; display:inline-block; }
}
@media (max-width: 575px){
  .sm-fact{ flex:1 1 100%; }
  .sm-cta{ padding:28px 18px; }
}

/* =====================================================================
   Showcase sections (Infrastructure / Co-curricular pages)
   ===================================================================== */
.sm-showcase{ padding: 56px 0; }
.sm-showcase:nth-child(even){ background: var(--sm-cream); }
.sm-showcase-media{
  border-radius: var(--sm-radius); overflow:hidden; box-shadow: var(--sm-shadow);
  min-height: 320px;
}
.sm-showcase-media img{ width:100%; height:100%; min-height:320px; object-fit:cover; display:block; }
.sm-showcase-media.sm-icon-panel{
  background: linear-gradient(135deg, var(--sm-maroon) 0%, var(--sm-maroon-dark) 100%);
  display:flex; align-items:center; justify-content:center;
}
.sm-showcase-media.sm-icon-panel i{ font-size:96px; color: rgba(255,255,255,.9); }
.sm-showcase h2{ font-size: 28px; }
.sm-showcase h2 em{ font-style:normal; color: var(--sm-maroon); }
.sm-showcase-desc{ color: var(--sm-muted); margin: 14px 0 22px; line-height:1.75; }
.sm-checklist{ list-style:none; padding:0; margin:0; columns:2; column-gap:24px; }
.sm-checklist li{
  display:flex; align-items:flex-start; gap:8px; margin-bottom:12px; break-inside: avoid; font-size:14.5px;
}
.sm-checklist li i{ color: var(--sm-maroon); margin-top:3px; flex-shrink:0; }
@media (max-width: 575px){ .sm-checklist{ columns:1; } }

/* =====================================================================
   Bento grid (Academics parent page)
   ===================================================================== */
.sm-bento{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.sm-bento-card{
  border-radius: var(--sm-radius); overflow:hidden; position:relative;
  background:#fff; border:1px solid var(--sm-border); box-shadow: var(--sm-shadow);
  display:flex; flex-direction:column;
}
.sm-bento-card[data-pos="1"]{ grid-column: 1 / 8; background: var(--sm-cream); border:none; }
.sm-bento-card[data-pos="2"]{ grid-column: 8 / 13; }
.sm-bento-card[data-pos="3"]{ grid-column: 1 / 6; }
.sm-bento-card[data-pos="4"]{ grid-column: 6 / 13; }
.sm-bento-card.sm-bento-featured{ flex-direction:row; align-items:stretch; }
.sm-bento-card.sm-bento-featured .sm-bento-body{ flex: 1 1 55%; justify-content:center; }
.sm-bento-card.sm-bento-featured .sm-bento-media{ flex: 1 1 45%; height:auto; min-height: 220px; }
.sm-bento-card.sm-bento-dark{
  background: linear-gradient(135deg, var(--sm-maroon-dark), var(--sm-maroon));
  color:#fff; border:none;
}
.sm-bento-card.sm-bento-dark h3, .sm-bento-card.sm-bento-dark p{ color:#fff; }
.sm-bento-media{ height: 190px; overflow:hidden; }
.sm-bento-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.sm-bento-media.sm-icon-panel{
  background: #fff; display:flex; align-items:center; justify-content:center;
}
.sm-bento-media.sm-icon-panel i{ font-size:56px; color: var(--sm-maroon); }
.sm-bento-body{ padding: 26px; flex:1; display:flex; flex-direction:column; }
.sm-bento-badge{
  display:inline-block; background:#fff; color: var(--sm-maroon-dark);
  font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  border-radius:20px; padding:4px 12px; margin-bottom:12px; align-self:flex-start;
  box-shadow: var(--sm-shadow);
}
.sm-bento-card.sm-bento-dark .sm-bento-badge{ background: rgba(255,255,255,.18); color:#fff; box-shadow:none; }
.sm-bento-body h3{ font-size:22px; margin-bottom:8px; }
.sm-bento-card[data-pos="1"] h3{ font-size:26px; }
.sm-bento-body p{ color: var(--sm-muted); font-size:14.5px; flex:1; }
.sm-bento-card.sm-bento-dark .sm-bento-body p{ color:#f3e3e6; }
.sm-bento-link{ font-weight:700; font-size:13.5px; margin-top:12px; display:inline-flex; align-items:center; gap:6px; }
.sm-bento-card.sm-bento-dark .sm-bento-link{ color:#fff; }
@media (max-width: 767px){
  .sm-bento{ grid-template-columns: 1fr; }
  .sm-bento-card[data-pos], .sm-bento-card.sm-bento-featured{ grid-column: 1 / -1; flex-direction:column; }
  .sm-bento-card.sm-bento-featured .sm-bento-media{ min-height:180px; }
}

/* =====================================================================
   Profile / leadership quote blocks (Director & Principal message page)
   ===================================================================== */
.sm-profile-block{ padding: 0; margin-bottom: 40px; border-radius: var(--sm-radius); overflow:hidden; box-shadow: var(--sm-shadow); }
.sm-profile-row{ display:flex; flex-wrap:wrap; min-height: 320px; }
.sm-profile-text{
  flex: 1 1 55%; background: var(--sm-cream); padding: 44px; display:flex; flex-direction:column; justify-content:center;
}
.sm-profile-media{ flex: 1 1 45%; min-height:280px; }
.sm-profile-media img{ width:100%; height:100%; object-fit:cover; display:block; min-height:280px; }
.sm-profile-row.sm-reverse{ flex-direction: row-reverse; }
.sm-profile-eyebrow{ color: var(--sm-maroon); text-transform:uppercase; letter-spacing:.06em; font-size:12.5px; font-weight:700; margin-bottom:10px; }
.sm-profile-text h3{ font-size:24px; margin-bottom:14px; }
.sm-profile-quote{ font-style:italic; color: var(--sm-ink); font-size:16px; line-height:1.7; margin-bottom:20px; border-left:3px solid var(--sm-gold); padding-left:16px; }
.sm-profile-badges{ display:flex; flex-wrap:wrap; gap:10px; }
.sm-profile-badge{
  display:inline-flex; align-items:center; gap:6px; background:#fff; border:1px solid var(--sm-border);
  border-radius:30px; padding:7px 16px; font-size:13px; font-weight:600; color: var(--sm-maroon-dark);
}
.sm-profile-badge i{ color: var(--sm-gold); }
@media (max-width: 767px){
  .sm-profile-row, .sm-profile-row.sm-reverse{ flex-direction:column; }
  .sm-profile-text{ padding: 30px; }
}

/* =====================================================================
   "Our Facilities" — sticky left title + right-side row cards
   (image left, title+text right, 4 rows)
   ===================================================================== */
.sm-facility-wrap{
  display:flex; flex-wrap:wrap; gap:48px;
}
.sm-facility-sticky{
  flex: 0 0 400px;
}
.sm-facility-sticky-inner{
  /* Sticks below the fixed header while the row list scrolls past it.
     Adjust the top value here if the header's height changes. */
  position: sticky;
  top: 140px;
}
.sm-facility-list{
  flex: 1 1 480px;
  display:flex; flex-direction:column; gap:20px;
}
.sm-facility-row{
  display:flex; align-items:stretch; gap:0;
  background:#fff; border-radius: var(--sm-radius); box-shadow: var(--sm-shadow); overflow:hidden;
  transition: box-shadow .2s, transform .2s;
}
.sm-facility-row:hover{ box-shadow: var(--sm-shadow-hover); transform: translateY(-2px); }
.sm-facility-row-media{
  flex: 0 0 360px; min-height: 170px;
}
.sm-facility-row-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.sm-facility-row-media.sm-icon-panel{ min-height:170px; }
.sm-facility-row-media.sm-icon-panel i{ font-size:44px; }
.sm-facility-row-body{
  flex:1; padding: 22px 26px; display:flex; flex-direction:column; justify-content:center;
}
.sm-facility-row-body h6{ font-size:18px; margin-bottom:8px; }
.sm-facility-row-body p{ color: var(--sm-muted); font-size:14.5px; margin:0; line-height:1.7; }

@media (max-width: 991px){
  .sm-facility-sticky{ flex: 1 1 100%; }
  .sm-facility-sticky-inner{ position: static; }
}
@media (max-width: 575px){
  .sm-facility-row{ flex-direction:column; }
  .sm-facility-row-media{ flex: none; width:100%; height:180px; }
  .sm-facility-row-body{ padding: 18px 20px; }
}

/* =====================================================================
   Anchor nav + stacked photo groups (e.g. Staff page by department)
   ===================================================================== */
.sm-anchor-nav{ display:flex; flex-direction:column; gap:4px; }
.sm-anchor-nav a{
  padding: 10px 14px; border-radius: 8px; font-weight:600; font-size:14.5px;
  color: var(--sm-ink); transition: background .15s, color .15s;
}
.sm-anchor-nav a:hover{ background: var(--sm-cream); color: var(--sm-maroon); }
.sm-staff-group{ margin-bottom: 48px; scroll-margin-top: 110px; }
.sm-staff-group:last-child{ margin-bottom: 0; }
.sm-staff-group h3{ margin-bottom:16px; }
.sm-staff-group img{ width:100%; height:auto; border-radius: var(--sm-radius); box-shadow: var(--sm-shadow); display:block; }

/* =====================================================================
   Notices section — full-bleed background video, content aligned right
   ===================================================================== */
.sm-notice-video-section{
  position: relative;
  overflow: hidden;
  color: #fff;
}
.sm-bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.sm-bg-video-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38,32,29,.02) 0%, rgba(38,32,29,.02) 100%);
  z-index: 1;
}
.sm-notice-video-section .container{
  position: relative;
  z-index: 2;
}
/* The Notices card itself stays a normal opaque white card so its
   content is readable regardless of what's playing behind it. This
   explicit color reset is the important part: .sm-notice-video-section
   sets color:#fff for anything sitting directly on the video, and
   without this override that white was inheriting straight into the
   card's plain text (notice titles), rendering as invisible white-on-white. */
.sm-notice-video-section .sm-list-card{
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  padding: 20px 24px;
  color: var(--sm-muted);
}
.sm-notice-video-section .sm-list-card h3{ margin-bottom: 0; }
.sm-notice-video-section .sm-divider{ margin: 10px 0 14px; }
.sm-notice-video-section .sm-notice-item{ padding: 9px 0; }

/* Auto-scrolling notice list (only used when there are more than 3
   notices - shorter lists just render normally with no animation). */
.sm-notice-marquee-viewport{
  max-height: 400px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.sm-notice-marquee-track{
  animation: sm-notice-scroll 16s linear infinite;
}
.sm-notice-marquee-card:hover .sm-notice-marquee-track{
  animation-play-state: paused;
}
@keyframes sm-notice-scroll{
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .sm-notice-marquee-track{ animation: none; }
}

/* =====================================================================
   "Interested in Admission?" CTA banner (redesigned to match the
   reference: rounded dark banner, concentric-circle decoration on the
   right, image on the right, heading/copy/two buttons on the left)
   ===================================================================== */
.sm-cta-banner{
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--sm-maroon-dark) 0%, var(--sm-maroon) 100%);
  border-radius: 24px;
  padding: 36px 56px;
  color: #fff;
}
.sm-cta-banner-circle{
  position: absolute;
  top: 50%;
  right: -120px;
  transform: translateY(-50%);
  width: 620px;
  max-width: none;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.sm-cta-banner .row{
  position: relative;
  z-index: 1;
}
.sm-cta-banner h3{
  color: #fff;
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.sm-cta-banner p{
  color: #f0dfe3;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 460px;
}
.sm-cta-banner-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.sm-cta-banner-img{
  width: auto;
  max-width: 100%;
  max-height: 360px;
  margin: 0 auto;
  border-radius: 16px;
  display: block;
}
@media (max-width: 991px){
  .sm-cta-banner{ padding: 32px; }
  .sm-cta-banner-circle{ width: 420px; right: -160px; opacity:.35; }
  .sm-cta-banner h3{ font-size: 30px; }
  .sm-cta-banner-img{ max-height: 300px; }
}
@media (max-width: 767px){
  .sm-cta-banner{ padding: 28px; border-radius: 18px; }
  .sm-cta-banner-circle{ display:none; }
  .sm-cta-banner-img{ margin-top: 20px; max-height: 260px; }
}