/* =============================================
   primary/style.css
   Primary School — Orange Theme Overrides
   Only put PRIMARY-SPECIFIC styles here.
   Shared styles live in ../style.css
   ============================================= */

/* ── Colour tokens for this section ── */
:root {
  --ps-primary:    #e65100;
  --ps-dark:       #bf360c;
  --ps-light:      #fff3e0;
  --ps-lighter:    #fff8f0;
  --ps-accent:     #ffd54f;
  --ps-text:       #4e342e;
}

/* ── Topbar & ticker ── */
.topbar                 { background: #4e342e; }
.ticker-bar             { background: var(--ps-primary); }
.ticker-label           { background: var(--ps-dark); }

/* ── Navbar active link indicator ── */
.header-nav-link.nav-current,
.header-dropdown-btn.nav-current,
.sc-nav-link.sc-nav-active {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-bottom: 4px solid #ffffff !important;
}
.header-nav-link:not(.nav-current):hover { color: var(--ps-primary); background: rgba(230,81,0,.07); }
.header-dropdown-menu a:hover { background: var(--ps-light); color: var(--ps-primary); }
.header-dropdown-menu a i { color: var(--ps-primary); }

/* ── Sticky Menu Bar & Hero Overlay ── */
/* ── Sticky Menu Bar & Hero Overlay ── */
.primary-page .sc-topbar {
  background: #2d1a0e !important;
}
.primary-page .sc-navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  margin-bottom: -50px;
}
.primary-page .sc-navbar-inner {
  background: linear-gradient(135deg, #e65100 0%, #bf360c 100%) !important;
  border-radius: 0 !important;
  justify-content: center !important;
  position: relative !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.primary-page .sc-nav {
  margin: 0 auto !important;
  justify-content: center !important;
}
.primary-page .sc-get-started {
  background: #e65100 !important;
}
.primary-page .sc-get-started:hover {
  background: #bf360c !important;
}

/* ── Primary School Login Modal (Topap) Orange Theme ── */
.primary-page .bms-modal-left {
  background: linear-gradient(135deg, #e65100 0%, #bf360c 100%) !important;
}
.primary-page .bms-modal-header h1 {
  color: #e65100 !important;
}
.primary-page .bms-modal-input-pill:focus-within {
  background: #fff3e0 !important;
  outline: 2px solid #e65100 !important;
}
.primary-page .bms-modal-remember input {
  accent-color: #e65100 !important;
}
.primary-page .bms-modal-forgot {
  color: #e65100 !important;
}
.primary-page .bms-modal-btn-login {
  background: #e65100 !important;
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.35) !important;
}
.primary-page .bms-modal-btn-login:hover {
  background: #bf360c !important;
}
.primary-page .bms-modal-footer a {
  color: #e65100 !important;
}

/* ── Hero ── */
.ps-hero { height: 490px; min-height: 440px; padding-top: 50px; position: relative; }
.ps-hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center right; }
.ps-overlay  { background: linear-gradient(90deg, rgba(78, 52, 46, 0.96) 0%, rgba(191, 54, 12, 0.88) 30%, rgba(230, 81, 0, 0.50) 45%, rgba(230, 81, 0, 0.10) 60%, rgba(0, 0, 0, 0) 70%); }
.ps-hero .hero-content {
  max-width: 960px;
  padding: 0 5% 0 6%;
}
.ps-hero .hero-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.ps-hero .hero-sub {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  max-width: 620px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.6rem;
}
.ps-badge    { background: rgba(255,255,255,.15) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.3); border-radius: 0 !important; }
.ps-btn-main { background: var(--ps-primary); color: #fff; font-weight: 500; box-shadow: 0 4px 14px rgba(230,81,0,.32); border: 2px solid transparent; border-radius: 0 !important; }
.ps-btn-main:hover { background: var(--ps-dark); transform: translateY(-2px); }

/* ── Info strip floating over hero slide (Straight edges, no rounded corners) ── */
.ps-info-strip {
  position: relative;
  z-index: 30;
  margin-top: -45px;
  background: transparent;
  padding: 0 16px;
  border-bottom: none;
}
.ps-info-outer-wrap {
  max-width: 1240px;
  margin: 0 auto;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(230, 81, 0, 0.15);
  background: #ffffff;
  border-radius: 0 !important;
  overflow: hidden;
}
.ps-info-container {
  padding: 14px 24px;
  background: #ffffff;
  border-bottom: 1px solid rgba(230, 81, 0, 0.12);
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  overflow-x: auto;
}
.ps-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  transition: transform 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.ps-info-item:hover {
  transform: translateY(-3px);
}
.ps-info-item i {
  color: var(--ps-primary);
  font-size: 1.2rem;
  background: var(--ps-light);
  width: 38px;
  height: 38px;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(230, 81, 0, 0.12);
  flex-shrink: 0;
}
.ps-info-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.15;
  white-space: nowrap;
}
.ps-info-item small {
  font-size: 0.72rem;
  color: #607d8b;
  font-weight: 500;
  white-space: nowrap;
}


/* ── General section wrapper ── */
.ps-section     { padding: 90px 0; }
.ps-container   { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ps-section-header { text-align: center; margin-bottom: 2.5rem; }

/* Tags / titles */
.ps-tag         { display: inline-block; background: var(--ps-light); color: var(--ps-primary); padding: 5px 16px; border-radius: 50px; font-size: .75rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: .8rem; }
.ps-tag-dark    { display: inline-block; background: rgba(255,255,255,.12); color: #ffd54f; padding: 5px 16px; border-radius: 50px; font-size: .75rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: .8rem; }
.ps-title       { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: #1a1a2e; line-height: 1.2; margin-bottom: .8rem; font-family: 'Poppins', sans-serif; }
.ps-title-dark  { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: .8rem; font-family: 'Poppins', sans-serif; }
.ps-highlight   { background: linear-gradient(135deg, var(--ps-primary), #ff8f00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ps-desc        { font-size: 1rem; color: #607d8b; max-width: 620px; margin: 0 auto; }
.ps-desc-dark   { font-size: 1rem; color: rgba(255,255,255,.65); max-width: 620px; margin: 0 auto; }

/* ── About section two-column ── */
.ps-two-col     { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ps-images      { position: relative; height: 480px; }
.ps-img-main    { position: absolute; top: 0; left: 0; width: 72%; height: 72%; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.14); }
.ps-img-secondary { position: absolute; bottom: 0; right: 0; width: 52%; height: 48%; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.14); border: 4px solid #fff; }
.ps-img-main img, .ps-img-secondary img { width: 100%; height: 100%; object-fit: cover; }
.ps-award-badge { position: absolute; bottom: 72px; left: -14px; background: var(--ps-primary); color: #fff; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 5; }
.ps-award-badge i { font-size: 1.5rem; color: var(--ps-accent); }

/* Features */
.ps-features { display: flex; flex-direction: column; gap: 18px; margin: 1.5rem 0; }
.ps-feature  { display: flex; gap: 14px; align-items: flex-start; }
.ps-feat-icon { width: 46px; height: 46px; border-radius: 11px; background: var(--ps-light); color: var(--ps-primary); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; transition: all .28s ease; }
.ps-feature:hover .ps-feat-icon { background: var(--ps-primary); color: #fff; }
.ps-feature h4 { font-size: .95rem; font-weight: 700; margin-bottom: 3px; }
.ps-feature p  { font-size: .84rem; color: #607d8b; }

/* ── Classes grid (dark bg) ── */
.ps-dark-section  { background: linear-gradient(135deg, #3e2723 0%, #4e342e 100%); }
.ps-classes-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ps-class-card    { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 24px; transition: all .28s ease; }
.ps-class-card:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.16); transform: translateY(-5px); }
.ps-class-icon    { width: 50px; height: 50px; border-radius: 12px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--clr); margin-bottom: 14px; transition: all .28s ease; }
.ps-class-card:hover .ps-class-icon { background: var(--clr); color: #fff; }
.ps-class-card h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ps-class-card p  { font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.ps-class-tag     { display: inline-block; padding: 3px 12px; border-radius: 50px; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.08); }

/* ── Facilities ── */
.ps-facilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ps-fac-card        { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,.06); transition: all .28s ease; }
.ps-fac-card:hover  { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.ps-fac-img         { height: 180px; overflow: hidden; }
.ps-fac-img img     { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ps-fac-card:hover .ps-fac-img img { transform: scale(1.06); }
.ps-fac-body        { padding: 18px; }
.ps-fac-body i      { font-size: 1.4rem; color: var(--ps-primary); margin-bottom: 8px; display: block; }
.ps-fac-body h4     { font-weight: 700; margin-bottom: 6px; }
.ps-fac-body p      { font-size: .83rem; color: #607d8b; }

/* Gallery overrides */
.gallery-overlay { background: linear-gradient(to top, rgba(191,54,12,.85), rgba(230,81,0,.25)) !important; }
.gallery-tab.active, .gallery-tab:hover { background: var(--ps-primary) !important; border-color: var(--ps-primary) !important; }

/* ── Stats ── */
.ps-stats-section  { padding: 72px 0; background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-dark) 100%); }

/* ── News ── */
.ps-news-grid        { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.ps-news-card        { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,.06); border: 1px solid #e0e6ed; transition: all .28s ease; }
.ps-news-card:hover  { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.ps-news-featured    { grid-row: span 2; display: flex; flex-direction: column; }
.ps-news-img         { position: relative; height: 185px; overflow: hidden; }
.ps-news-featured .ps-news-img { height: 260px; }
.ps-news-img img     { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ps-news-card:hover .ps-news-img img { transform: scale(1.05); }
.ps-news-cat         { position: absolute; top: 10px; left: 10px; background: var(--ps-light); color: var(--ps-primary); padding: 3px 11px; border-radius: 50px; font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.ps-news-body        { padding: 18px; flex: 1; }
.ps-news-meta        { font-size: .75rem; color: #607d8b; margin-bottom: 7px; display: flex; align-items: center; gap: 5px; }
.ps-news-body h3     { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.ps-news-body p      { font-size: .84rem; color: #607d8b; margin-bottom: 12px; }
.ps-read-more        { font-size: .82rem; font-weight: 700; color: var(--ps-primary); display: inline-flex; align-items: center; gap: 5px; transition: gap .2s ease; }
.ps-read-more:hover  { gap: 9px; }

/* ── Admissions ── */
.ps-admissions-section { padding: 45px 0 75px; position: relative; overflow: hidden; }
.ps-admissions-bg      { position: absolute; inset: 0; background: linear-gradient(135deg, #e65100 0%, #bf360c 55%, #4e342e 100%); }
.ps-admissions-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.ps-admissions-content h2 { color: #fff; font-size: 2.2rem; font-weight: 700; margin: .8rem 0; line-height: 1.2; }
.ps-admissions-content > p { color: rgba(255,255,255,.82); margin-bottom: 1.8rem; }
.ps-ad-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 1.8rem; }
.ps-ad-step  { display: flex; align-items: flex-start; gap: 14px; color: rgba(255,255,255,.88); }
.ps-ad-num   { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; color: var(--ps-accent); }
.ps-ad-step strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.ps-ad-step small  { font-size: .78rem; color: rgba(255,255,255,.6); }
.ps-ad-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.admission-form-card h3 i { color: var(--ps-primary) !important; }
.admission-form-card .btn { background: var(--ps-primary); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--ps-primary); box-shadow: 0 0 0 3px rgba(230,81,0,.1); }

/* ── Testimonials ── */
.ps-testimonials-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.ps-testimonial      { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 14px rgba(0,0,0,.06); border: 1px solid #e0e6ed; transition: all .28s ease; }
.ps-testimonial:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.ps-stars  { color: #ffd54f; margin-bottom: 12px; letter-spacing: 2px; }
.ps-testimonial > p { font-size: .86rem; color: #607d8b; margin-bottom: 18px; font-style: italic; }
.ps-author { display: flex; align-items: center; gap: 10px; }
.ps-avatar { font-size: 2.2rem; color: var(--ps-light); }
.ps-author strong { font-size: .86rem; display: block; color: var(--ps-primary); }
.ps-author small  { color: #607d8b; font-size: .75rem; }

/* ── Contact ── */
.ps-contact-grid  { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.ps-contact-info  { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.ps-contact-item  { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e0e6ed; }
.ps-contact-item:last-of-type { border-bottom: none; margin-bottom: 14px; }
.ps-contact-icon  { width: 42px; height: 42px; background: var(--ps-primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .95rem; flex-shrink: 0; }
.ps-contact-item strong { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 3px; }
.ps-contact-item p { font-size: .84rem; color: #607d8b; }
.ps-contact-socials { display: flex; gap: 8px; margin-top: 4px; }
.ps-contact-socials a { width: 36px; height: 36px; border-radius: 50%; background: var(--ps-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .84rem; transition: all .28s ease; }
.ps-contact-socials a:hover { background: var(--ps-dark); transform: translateY(-2px); }
.ps-contact-map iframe { border-radius: 14px; display: block; box-shadow: 0 4px 20px rgba(0,0,0,.1); }

/* ── Footer accent line ── */
.footer-col h4::after { background: var(--ps-primary); }
.footer-newsletter button { background: var(--ps-primary); }
.footer-newsletter button:hover { background: var(--ps-dark); }
.footer-socials a:hover { background: var(--ps-primary); }
.scroll-top-btn { background: var(--ps-primary); }
.scroll-top-btn:hover { background: var(--ps-dark); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ps-classes-grid { grid-template-columns: repeat(2,1fr); }
  .ps-facilities-grid { grid-template-columns: repeat(2,1fr); }
  .ps-testimonials-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .ps-two-col { grid-template-columns: 1fr; }
  .ps-images  { height: 300px; }
  .ps-news-grid { grid-template-columns: 1fr 1fr; }
  .ps-news-featured { grid-row: auto; }
  .ps-admissions-grid { grid-template-columns: 1fr; }
  .ps-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ps-classes-grid { grid-template-columns: 1fr; }
  .ps-facilities-grid { grid-template-columns: 1fr; }
  .ps-testimonials-grid { grid-template-columns: 1fr; }
  .ps-news-grid { grid-template-columns: 1fr; }
  .ps-info-container { gap: 16px; }
}

/* ── Admission Feature Banner (Seamlessly nested in ps-info-outer-wrap) ── */
.ps-apply-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 300px;
}
.ps-apply-img-col {
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}
.ps-apply-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-apply-content-col {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 32px 6%;
}
.ps-apply-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 43, 72, 0.96) 0%, rgba(45, 26, 14, 0.94) 100%);
}
.ps-apply-box {
  position: relative;
  z-index: 2;
  color: #ffffff;
}
.ps-apply-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.5px;
}
.ps-apply-subtitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: #3eb549;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ps-apply-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.4rem;
}
.ps-apply-btn {
  display: inline-block;
  background: #3eb549;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 26px;
  border-radius: 0 !important;
  text-transform: capitalize;
  text-decoration: none;
  transition: all 0.28s ease;
  box-shadow: 0 4px 14px rgba(62, 181, 73, 0.35);
}
.ps-apply-btn:hover {
  background: #2e9437;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(62, 181, 73, 0.45);
}

@media (max-width: 900px) {
  .ps-apply-grid {
    grid-template-columns: 1fr;
  }
  .ps-apply-img-col {
    height: 250px;
    min-height: 250px;
  }
}

/* ── Meet the Teachers Section (Screenshot Design) ── */
.ps-teachers-section {
  padding: 45px 0 65px;
}
.ps-teachers-header {
  text-align: center;
  margin-bottom: 2.2rem;
}
.ps-teachers-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #526071;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  font-family: 'Poppins', sans-serif;
}
.ps-teachers-title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #1a2738;
  line-height: 1.35;
  letter-spacing: 0;
  max-width: 950px;
  margin: 0 auto;
  white-space: nowrap;
}
@media (max-width: 850px) {
  .ps-teachers-title {
    white-space: normal;
    font-size: 1.35rem;
  }
}
.ps-teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.ps-teacher-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.ps-teacher-card:hover {
  transform: translateY(-5px);
}
.ps-teacher-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #f0f2f5;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}
.ps-teacher-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-teacher-info {
  padding: 0 4px;
}
.ps-teacher-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2738;
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
}
.ps-teacher-role {
  font-size: 0.82rem;
  color: #78879b;
  font-weight: 500;
}
.ps-teacher-meta {
  display: block;
  font-size: 0.76rem;
  color: var(--ps-primary);
  margin-top: 4px;
  font-weight: 600;
}
.ps-teachers-footer {
  text-align: center;
  margin-top: 3.2rem;
}
.ps-btn-teachers {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ps-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 30px;
  border-radius: 50px !important;
  text-decoration: none;
  transition: all 0.28s ease;
  box-shadow: 0 4px 14px rgba(230,81,0,0.28);
}
.ps-btn-teachers:hover {
  background: var(--ps-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(230,81,0,0.38);
}

/* ── Dedicated Teachers Page Extras ── */
.ps-page-banner {
  background: linear-gradient(135deg, var(--ps-dark) 0%, var(--ps-primary) 100%);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}
.ps-page-banner-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 8px 0 14px;
}
.ps-page-banner-desc {
  font-size: 1.05rem;
  max-width: 750px;
  margin: 0 auto;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}
.ps-top-leadership-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ps-leader-card .ps-teacher-img {
  border: 3px solid var(--ps-primary);
}
.ps-leader-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ps-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Divider wrap */
.ps-teachers-divider-wrap {
  margin: 60px 0 40px;
  text-align: center;
  position: relative;
}
.ps-teachers-divider {
  border: none;
  border-top: 2px dashed #e0e6ed;
  margin: 0;
}
.ps-teachers-divider-badge {
  display: inline-block;
  background: var(--ps-light);
  color: var(--ps-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 24px;
  border-radius: 50px;
  position: relative;
  top: -18px;
  border: 1px solid #ffe0b2;
}

/* Summary callout */
.ps-teachers-summary-box {
  margin-top: 60px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid #ffcc80;
}
.ps-summary-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ps-primary);
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(230,81,0,0.3);
}
.ps-summary-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a2738;
  margin-bottom: 6px;
}
.ps-summary-text p {
  font-size: 0.88rem;
  color: #526071;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .ps-teachers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ps-top-leadership-grid { grid-template-columns: repeat(3, 1fr); }
  .ps-teachers-summary-box { flex-direction: column; text-align: center; padding: 28px; }
}
@media (max-width: 768px) {
  .ps-top-leadership-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .ps-teachers-grid { grid-template-columns: 1fr; }
}

/* ── Gallery Section Tight Spacing ── */
.ps-gallery-section {
  padding-top: 35px !important;
  padding-bottom: 50px !important;
}
.ps-gallery-section .ps-section-header {
  margin-bottom: 1.6rem;
}
.ps-gallery-section .ps-desc {
  max-width: 980px;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .ps-gallery-section .ps-desc {
    white-space: normal;
  }
}

/* ── Flush Seamless Gallery Grid (0 Gap) ── */
.ps-flush-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 !important;
  width: 100%;
  margin: 0 auto;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.ps-flush-gallery-item {
  position: relative;
  height: 270px;
  overflow: hidden;
  border-radius: 0 !important;
  cursor: pointer;
  background: #111;
}
.ps-flush-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.ps-flush-gallery-item:hover img {
  transform: scale(1.08);
}
.ps-flush-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 81, 0, 0.90) 0%, rgba(191, 54, 12, 0.88) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
  color: #ffffff;
  text-align: center;
}
.ps-flush-gallery-item:hover .ps-flush-gallery-overlay {
  opacity: 1;
}
.ps-flush-gallery-overlay i {
  font-size: 1.8rem;
  color: #ffd54f;
}
.ps-flush-gallery-overlay span {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ── Single Horizontal Line Bottom Bar (Joined Flush with Gallery Grid) ── */
.ps-gallery-single-line-bar {
  margin-top: 0;
  background: #f8f9fc;
  border: 1px solid #e2e8f0;
  border-top: none;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 0 !important;
  white-space: nowrap;
  overflow-x: auto;
}
.ps-gal-bar-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
}
.ps-gal-bar-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
}
.ps-gal-bar-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 50px !important;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ps-gal-bar-chip:hover,
.ps-gal-bar-chip.active {
  background: var(--ps-primary);
  color: #ffffff;
  border-color: var(--ps-primary);
}
.ps-gal-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ps-primary);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 0 !important;
  text-decoration: none;
  transition: all 0.22s ease;
  flex-shrink: 0;
}
.ps-gal-bar-btn:hover {
  background: var(--ps-dark);
  color: #ffffff;
}

/* ── Lightbox Modal Viewer ── */
.ps-lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ps-lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.ps-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.ps-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}
.ps-lightbox-caption {
  margin-top: 14px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
}

/* ── About Page: Vision & Mission Grid ── */
.ps-about-vm-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.ps-vm-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8f9fc;
  border: 1px solid #e2e8f0;
  padding: 18px 20px;
  border-radius: 0 !important;
  transition: transform 0.25s ease;
}
.ps-vm-card:hover {
  transform: translateY(-3px);
  border-color: var(--ps-primary);
}
.ps-vm-icon {
  width: 46px;
  height: 46px;
  background: var(--ps-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ps-vm-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2738;
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
}
.ps-vm-card p {
  font-size: 0.85rem;
  color: #526071;
  line-height: 1.5;
  margin: 0;
}

/* ── About Page: Executive Management Grid (Director, Headteacher, Academic, Bursar) ── */
.ps-executive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.ps-executive-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ps-executive-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.ps-executive-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #111;
}
.ps-executive-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.ps-executive-card:hover .ps-executive-img img {
  transform: scale(1.05);
}
.ps-exec-role-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(230, 81, 0, 0.95), rgba(191, 54, 12, 0.95));
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ps-executive-info {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ps-exec-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a2738;
  margin-bottom: 2px;
  font-family: 'Poppins', sans-serif;
}
.ps-exec-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ps-primary);
  margin-bottom: 10px;
}
.ps-exec-meta {
  font-size: 0.8rem;
  color: #607d8b;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── About Page: Academic Results Grid ── */
.ps-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 10px;
}
.ps-result-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--ps-primary);
  padding: 26px 20px;
  text-align: center;
  border-radius: 0 !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.ps-result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.ps-res-icon {
  width: 54px;
  height: 54px;
  background: var(--ps-light);
  color: var(--ps-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.ps-result-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a2738;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}
.ps-result-card p {
  font-size: 0.85rem;
  color: #607d8b;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1024px) {
  .ps-executive-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ps-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .ps-executive-grid { grid-template-columns: 1fr; }
  .ps-results-grid { grid-template-columns: 1fr; }
  .ps-executive-img { height: 280px; }
}

@media (max-width: 900px) {
  .ps-flush-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ps-gallery-single-line-bar { flex-direction: column; align-items: stretch; gap: 12px; }
}
@media (max-width: 580px) {
  .ps-flush-gallery-grid { grid-template-columns: 1fr; }
  .ps-flush-gallery-item { height: 230px; }
}

/* ── About Page: Grand Overview Stats Strip (Reg No, Pupils, Staff, Graduates, Est. Year) ── */
.ps-about-stats-strip {
  background: linear-gradient(135deg, #162232 0%, #0d1624 100%);
  padding: 44px 0;
  border-top: 4px solid var(--ps-primary);
  border-bottom: 4px solid var(--ps-primary);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.3);
}
.ps-about-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  align-items: center;
}
.ps-about-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  padding: 8px 12px;
  border-right: 1px solid rgba(255,255,255,0.14);
}
.ps-about-stat-item:last-child {
  border-right: none;
}
.ps-about-stat-icon {
  width: 54px;
  height: 54px;
  background: rgba(230, 81, 0, 0.18);
  border: 1.5px solid rgba(255, 213, 79, 0.4);
  color: #ffd54f;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  flex-shrink: 0;
}
.ps-about-stat-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.ps-about-stat-item small {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .ps-about-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ps-about-stat-item { border-right: none; }
}
@media (max-width: 600px) {
  .ps-about-stats-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Schedule & Tuition Grid Card (Matching User Screenshot) ── */
.ps-tuition-grid-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border: 1.5px solid #80cbd0;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 121, 107, 0.08);
  max-width: 1240px;
  margin: 0 auto;
}
.ps-tuition-col {
  padding: 36px 30px 28px;
  border-right: 1.5px solid #80cbd0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  transition: background 0.3s ease;
}
.ps-tuition-col:last-child {
  border-right: none;
}
.ps-tuition-col:hover {
  background: #f4fbfb;
}
.ps-tuition-num {
  font-size: 0.88rem;
  font-weight: 800;
  color: #64748b;
  display: block;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
}
.ps-tuition-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 16px;
  line-height: 1.25;
  font-family: 'Poppins', sans-serif;
}
.ps-tuition-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 30px;
  flex: 1;
}
.ps-tuition-footer {
  border-top: 1px solid #cce8e8;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}
.ps-tuition-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-size: 0.81rem;
  white-space: nowrap;
}
.ps-tuition-time i {
  color: #64748b;
  font-size: 0.9rem;
}
.ps-tuition-price {
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ── Fee Breakdown Table ── */
.ps-fee-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0 !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}
.ps-fee-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.ps-fee-table th {
  background: #00796b;
  color: #ffffff;
  padding: 16px 20px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}
.ps-fee-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}
.ps-fee-table tr:hover {
  background: #f8fafc;
}

@media (max-width: 900px) {
  .ps-tuition-grid-card {
    grid-template-columns: 1fr;
    border-radius: 12px !important;
  }
  .ps-tuition-col {
    border-right: none;
    border-bottom: 1.5px solid #80cbd0;
  }
  .ps-tuition-col:last-child {
    border-bottom: none;
  }
}

/* ── Bank Accounts Cards Grid (3 Cards in 1 Single Line, Compact Card, Larger Logo Photo) ── */
.ps-bank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}
.ps-bank-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none !important;
  border-radius: 0 !important;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.ps-bank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
  border-color: #cbd5e1;
}
.ps-bank-logo-col {
  width: 175px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 0 !important;
  flex-shrink: 0;
  color: #ffffff;
  text-align: center;
  padding: 24px 16px;
}
.ps-bank-logo-col i {
  font-size: 3.5rem;
}
.ps-bank-logo-col span {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.8px;
}

/* Bank Colors */
.ps-bank-nmb {
  background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
}
.ps-bank-crdb {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}
.ps-bank-nbc {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}
.ps-bank-mobile {
  background: linear-gradient(135deg, #e65100 0%, #bf360c 100%);
}

.ps-bank-info-col {
  flex: 1;
  text-align: left;
  padding: 16px 14px 16px 0;
}
.ps-bank-info-col h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #1a2738;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}
.ps-bank-info-col p {
  font-size: 0.81rem;
  color: #526071;
  margin-bottom: 4px;
  line-height: 1.35;
}
.ps-bank-info-col p:last-child {
  margin-bottom: 0;
}
.ps-bank-info-col strong {
  color: #0f172a;
}

@media (max-width: 768px) {
  .ps-bank-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .ps-bank-card {
    flex-direction: column;
    text-align: center;
  }
  .ps-bank-info-col {
    text-align: center;
  }
}

/* ==========================================================
   MOBILE — Primary slide / hero: small fixed image on top,
   text below (no overlap), info strip tidy rows.
   ========================================================== */
@media (max-width: 768px) {
  .primary-page .hero.ps-hero {
    height: auto;
    min-height: 0;
    padding-top: 0;
  }
  .primary-page .hero.ps-hero .hero-bg {
    position: relative;
    inset: auto;
    height: 235px;
    background-size: cover;
    background-position: center;
  }
  .primary-page .hero.ps-hero .hero-overlay { display: none; }
  .primary-page .hero.ps-hero .hero-content {
    position: static;
    inset: auto;
    max-width: none;
    padding: 26px 20px 32px;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    background: #ffffff;
  }
  .primary-page .hero.ps-hero .hero-title {
    color: #1a1a2e;
    text-shadow: none;
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 0.7rem;
  }
  .primary-page .hero.ps-hero .hero-title .highlight {
    color: #e65100 !important;
    background: none;
    -webkit-text-fill-color: initial;
  }
  .primary-page .hero.ps-hero .hero-sub {
    color: #526071;
    text-shadow: none;
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
    max-width: none;
  }
  .primary-page .hero.ps-hero .hero-dots { display: none; }
  .primary-page .hero.ps-hero .hero-btns .btn-outline-white {
    border-color: #e65100;
    color: #e65100;
  }
  .primary-page .hero.ps-hero .hero-btns .btn-outline-white:hover {
    background: #e65100;
    color: #ffffff;
  }

  /* Tidy info strip (no overlap, wrap nicely on mobile) */
  .primary-page .ps-info-strip { margin-top: 0; padding: 12px 12px 0; }
  .primary-page .ps-info-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    padding: 12px 14px;
  }
  .primary-page .ps-info-item { padding: 6px 8px; }
  .primary-page .ps-info-item i { width: 32px; height: 32px; font-size: 1rem; }
  .primary-page .ps-info-item strong { font-size: 0.95rem; }
  .primary-page .ps-info-item small { font-size: 0.68rem; }
}

@media (max-width: 992px) {
  .primary-page .sc-navbar { position: relative !important; top: auto !important; margin-bottom: 0 !important; }
}

/* ── Mobile: no left/right page scrolling, buttons fill width neatly ── */
@media (max-width: 768px) {
  html { overflow-x: clip; }
  @supports not (overflow: clip) { html { overflow-x: hidden; } }

  /* Let buttons wrap text instead of forcing the page/columns wider */
  .primary-page .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
  /* Grid/flex children must be allowed to shrink below their content */
  .ps-admissions-grid > *,
  .ps-admissions-content,
  .ps-ad-btns { min-width: 0; max-width: 100%; }
  .ps-ad-btns { justify-content: center; }
  .ps-ad-btns .btn { flex: 1 1 auto; }
}
