/* =====================================================================
   St Teresa's College, Nsukka: site layer on top of the eduka template.
   One accent: the green of the college crest. No template orange/teal/navy.
   ===================================================================== */

:root {
  --theme-color: #0f5a2e;            /* crest green, deep: icon discs, header strip, active nav */
  --theme-color2: #17803d;           /* crest green, bright: buttons, highlighted words, links */
  --theme-color-light: rgba(23, 128, 61, .08);
  --theme-bg-light: #f3f5f2;
  --color-dark: #142019;
  --body-text-color: #5f6b64;
  --footer-bg: #0b3a20;
  --footer-bg2: #0f5a2e;
  --stc-ink: #142019;
  --stc-line: #e3e8e4;
}

::selection { background: var(--theme-color2); color: #fff; }
::-moz-selection { background: var(--theme-color2); color: #fff; }
a { color: var(--theme-color2); }
a:hover { color: var(--theme-color); }

/* Bootstrap's default active dropdown item is bright blue. Keep the current
   page and pressed states inside the college's green palette. */
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active,
.navbar .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-menu .dropdown-item:focus-visible,
.navbar .dropdown-menu .dropdown-item[aria-current="page"] {
  color: #fff !important;
  background: var(--theme-color) !important;
}
.navbar .dropdown-menu .dropdown-item.active:hover,
.navbar .dropdown-menu .dropdown-item:focus:hover,
.navbar .dropdown-menu .dropdown-item:focus-visible:hover,
.navbar .dropdown-menu .dropdown-item[aria-current="page"]:hover {
  color: #fff !important;
  background: var(--theme-color2) !important;
}

/* Headings stay dark; the accent is only for the highlighted word and hover. */
h1, h2, h3, h4, h5, h6 { color: var(--stc-ink); }
.site-title span, .hero-title span { color: var(--theme-color2); }
.site-title-tagline { color: var(--theme-color2); }

/* ---------- Template backgrounds: school photos or plain crest green, never the demo stock ---------- */
.choose-area::before { background-image: none; }
.ts-bg { background-image: none; background-color: var(--footer-bg); }
.ts-bg::before { background: rgba(11, 58, 32, .9); }
.ts-bg[style*="background-image"]::before { background: rgba(11, 58, 32, .88); }
.counter-area { background-image: none; background-color: var(--theme-color); }
.counter-area::before { background: #0b3a20; opacity: .82; }
.cta-area { background-image: none; background-color: var(--theme-bg-light); }
.site-breadcrumb { background-color: var(--footer-bg); background-size: cover; background-position: center; }
.site-breadcrumb::before { background: rgba(8, 40, 22, .74); }
.heading-divider.light { border-color: #0b3a20; }

/* ---------- Header ---------- */
.header-top { background: var(--theme-color); }
.header-top::before { background: var(--footer-bg); }
.header-motto { color: #fff; font-weight: 500; letter-spacing: .2px; }
.header-motto i { margin-right: 6px; opacity: .8; }

.navbar-brand.brand { display: flex; align-items: center; gap: 12px; margin-right: 0; }
.navbar-brand.brand img { width: 58px; height: auto; max-height: 64px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--heading-font); font-size: 22px; font-weight: 700; color: var(--stc-ink); letter-spacing: -.2px; }
.brand-text small { font-size: 12px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--theme-color2); margin-top: 4px; }
.navbar .nav-item .nav-link { white-space: nowrap; }
.nav-right-btn.dropdown .portal-menu { margin-top: 10px; min-width: 210px; }
.nav-right-btn.dropdown .theme-btn::after { display: none; }

@media (min-width: 992px) and (max-width: 1199px) {
  .brand-text strong { font-size: 18px; }
  .navbar .nav-item .nav-link { margin-right: 18px; font-size: 15px; }
  .nav-right .search-btn { display: none; }
}

/* ---------- Footer ---------- */
.footer-area { background: var(--footer-bg); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.footer-brand img { width: 58px; height: auto; background: #fff; border-radius: 12px; padding: 5px; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.footer-brand strong { font-family: var(--heading-font); font-size: 22px; color: #fff; }
.footer-brand small { color: rgba(255, 255, 255, .7); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; margin-top: 4px; }
.footer-legal { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 22px; }
.footer-legal li a:not(.social) { width: auto; height: auto; background: none; color: rgba(255, 255, 255, .8); line-height: 1.6; border-radius: 0; }
.footer-legal li a:not(.social):hover { color: #fff; background: none; }

/* ---------- Highlights on dark backgrounds: a lighter tint of the same green so the word stays readable ---------- */
.hero-single .hero-content .hero-title span,
.choose-area .site-title span,
.ts-bg .site-title span { color: #8fd8a6; }
.hero-single .hero-content .hero-sub-title,
.choose-area .site-title-tagline,
.ts-bg .site-title-tagline { color: #b9e8c7; }
.hero-single .hero-content .hero-sub-title { border-color: #b9e8c7; }

/* ---------- Counter: number and its "+" on one line, every title on the same baseline ---------- */
.counter-box .counter-value { display: block; line-height: 1; white-space: nowrap; }
.counter-box .counter-value .counter { display: inline-block; }
.counter-box .counter-sign { display: inline-block; color: var(--color-white); font-size: 40px; font-weight: 600; margin-left: 2px; vertical-align: top; }

/* ---------- Testimonials (one card at a time) ---------- */
.testimonial-single .testimonial-item { margin: 10px 4px 20px; padding: 36px 40px 30px; }
.testimonial-single .testimonial-quote p { font-size: 19px; line-height: 1.7; color: var(--stc-ink); }
.testimonial-initials { display: flex; align-items: center; justify-content: center; width: 63px; height: 63px; border-radius: 50%; background: var(--theme-color); color: #fff; font-family: var(--heading-font); font-weight: 700; font-size: 22px; letter-spacing: .5px; }
.testimonial-single .owl-dots { margin-top: 10px; text-align: center; }

/* ---------- Shared bits ---------- */
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--theme-color2); }
.text-link:hover { color: var(--theme-color); }
.about-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.rich-text p { margin-bottom: 14px; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { margin: 0 0 16px 1.2em; }
.rich-text ul li, .rich-text ol li { margin-bottom: 6px; }
.rich-text a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.rich-text h3 { font-size: 24px; margin: 30px 0 12px; }
.rich-text blockquote { margin: 22px 0; padding: 24px 28px; background: var(--theme-bg-light); border-left: 4px solid var(--theme-color2); border-radius: 0 30px 30px 0; color: var(--stc-ink); }
.rich-text blockquote p { font-style: italic; }
.lead-text { font-size: 18px; line-height: 1.7; margin-bottom: 26px; }
.content-img img { width: 100%; border-radius: 50px 50px 50px 0; object-fit: cover; }
.content-list { list-style: none; margin: 0; padding: 0; }
.content-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--stc-ink); }
.content-list li i { color: var(--theme-color2); margin-top: 5px; }
.two-col-list { columns: 2; column-gap: 30px; }
.two-col-list li { break-inside: avoid; }
.details-wrapper .details-item h3 { font-size: 28px; }
.mt-50 { margin-top: 50px; }

/* About photo with the "founded" badge */
.about-photo { position: relative; }
.about-photo .about-experience { position: absolute; left: 24px; bottom: 24px; margin: 0; }
.principal-photo img { aspect-ratio: 7 / 8; }
.principal-sign { display: flex; flex-direction: column; margin-top: 22px; padding-left: 16px; border-left: 3px solid var(--theme-color2); }
.principal-sign strong { font-family: var(--heading-font); font-size: 20px; color: var(--stc-ink); }
.principal-sign span { color: var(--body-text-color); font-size: 15px; }

/* About page directory */
.about-directory-card { display: flex; align-items: flex-start; gap: 18px; width: 100%; min-height: 190px; padding: 28px; border: 1px solid var(--stc-line); border-radius: 24px 24px 24px 0; background: #fff; box-shadow: 0 10px 28px rgba(18, 38, 63, .06); color: var(--stc-ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.about-directory-card:hover, .about-directory-card:focus-visible { transform: translateY(-4px); border-color: rgba(23, 128, 61, .35); box-shadow: 0 16px 36px rgba(18, 38, 63, .11); color: var(--stc-ink); }
.about-directory-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 16px 16px 16px 0; background: var(--theme-color-light); color: var(--theme-color2); font-size: 20px; }
.about-directory-copy { display: flex; flex: 1; flex-direction: column; min-height: 132px; }
.about-directory-copy > strong { margin: 2px 0 8px; color: var(--stc-ink); font-family: var(--heading-font); font-size: 21px; line-height: 1.25; }
.about-directory-copy > span:not(.about-directory-link) { color: var(--body-text-color); font-size: 15px; line-height: 1.6; }
.about-directory-link { margin-top: auto; padding-top: 16px; color: var(--theme-color2); font-size: 14px; font-weight: 700; }
.about-directory-link i { margin-left: 5px; transition: transform .2s ease; }
.about-directory-card:hover .about-directory-link i { transform: translateX(4px); }

/* Goals: a numbered list in two columns */
.goals-wrapper { background: #fff; border-radius: 50px 50px 50px 0; padding: 40px 50px; box-shadow: var(--box-shadow); }
.goal-list { list-style: none; counter-reset: goal; margin: 0; padding: 0; }
.goal-list li { position: relative; padding: 14px 0 14px 58px; border-bottom: 1px solid var(--stc-line); color: var(--stc-ink); font-weight: 500; counter-increment: goal; }
.goal-list li:last-child { border-bottom: 0; }
.goal-list li::before { content: counter(goal, decimal-leading-zero); position: absolute; left: 0; top: 10px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--theme-color-light); color: var(--theme-color2); font-family: var(--heading-font); font-weight: 700; }

/* Sidebar (inner pages and news) stays in view while the article scrolls.
   The template's overflow-x:hidden on html/body makes body a scroll box and breaks sticky; clip hides overflow without that. */
html, body { overflow-x: clip; }
@media (min-width: 992px) {
  .sticky-sidebar { position: sticky; top: 110px; }
}
.department-sidebar .widget, .sidebar .widget { border-radius: 30px 30px 30px 0; }
.category-list a.active { color: var(--theme-color2); font-weight: 600; }
.category-list a span { margin-left: auto; color: var(--body-text-color); }
.category-list a { display: flex; align-items: center; }
.sidebar-contact ul { list-style: none; padding: 0; margin: 0 0 22px; }
.sidebar-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--stc-ink); }
.sidebar-contact li i { color: var(--theme-color2); margin-top: 4px; width: 16px; }
.sidebar-contact li a { color: var(--stc-ink); }
.sidebar-contact li a:hover { color: var(--theme-color2); }
.tribute-wall p { margin-bottom: 18px; }

/* Principals */
.principal-card .team-img img { aspect-ratio: 1 / 1; object-fit: cover; }
.principal-card .team-bio h5 { font-size: 19px; }
.principal-note { padding: 4px 10px 6px; font-size: 14px; line-height: 1.6; }
.principal-note strong { color: var(--stc-ink); }
.principal-list { list-style: none; margin: 0; padding: 0; border-radius: 30px 30px 30px 0; overflow: hidden; box-shadow: var(--box-shadow); background: #fff; }
.principal-list li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; padding: 14px 26px; border-bottom: 1px solid var(--stc-line); }
.principal-list li:last-child { border-bottom: 0; }
.principal-list li.is-current { background: var(--theme-color-light); }
.principal-list-n { width: 36px; height: 36px; border-radius: 50%; background: var(--theme-bg-light); color: var(--theme-color2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--heading-font); }
.is-current .principal-list-n { background: var(--theme-color2); color: #fff; }
.principal-list-name { font-family: var(--heading-font); font-weight: 600; font-size: 18px; color: var(--stc-ink); }
.principal-list-name small { display: block; font-family: var(--body-font); font-weight: 400; font-size: 14px; color: var(--body-text-color); }
.principal-list-years { color: var(--theme-color2); font-weight: 600; white-space: nowrap; }
.principal-list-compact { box-shadow: none; border: 1px solid var(--stc-line); }
.principal-list-compact li { padding: 11px 20px; }
.history-timeline-title { font-size: 26px; margin: 40px 0 18px; }
.department-details-img img { width: 100%; border-radius: 50px 50px 50px 0; max-height: 440px; object-fit: cover; }

/* Academics */
.staff-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.staff-figures div { background: var(--theme-bg-light); border-radius: 24px 24px 24px 0; padding: 16px 18px; }
.staff-figures strong { display: block; font-family: var(--heading-font); font-size: 34px; line-height: 1; color: var(--theme-color2); }
.staff-figures span { font-size: 14px; color: var(--stc-ink); }
.department-area .department-item { height: 100%; }
.subject-card { background: #fff; border-radius: 50px 50px 50px 0; padding: 36px 40px; box-shadow: var(--box-shadow); }
.subject-card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--stc-line); }
.subject-card-head h3 { font-size: 26px; margin: 0; }
.subject-card-head span { color: var(--theme-color2); font-weight: 600; font-size: 15px; }
.subject-list { columns: 2; column-gap: 24px; }
.subject-list li { break-inside: avoid; }
.records-card { background: #fff; border-radius: 50px 50px 50px 0; padding: 36px; box-shadow: var(--box-shadow); }

/* Admission */
.admission-notice img { border-radius: 30px 30px 30px 0; box-shadow: var(--box-shadow); }
.admission-visit h3 { font-size: 30px; margin: 10px 0 16px; }
.admission-contact { list-style: none; padding: 0; margin-top: 24px; }
.admission-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--stc-ink); }
.admission-contact li i { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--theme-color-light); color: var(--theme-color2); display: flex; align-items: center; justify-content: center; }
.admission-contact li a, .admission-contact li span { color: var(--stc-ink); padding-top: 7px; }
.contact-wrapper.mt-0 { margin-top: 0; }

/* Student life: class slogans */
.slogan-card { height: 100%; background: #fff; border-radius: 40px 40px 40px 0; padding: 26px 18px 22px; text-align: center; box-shadow: var(--box-shadow); }
.slogan-abbr { display: block; font-family: var(--heading-font); font-size: 44px; font-weight: 800; line-height: 1; color: var(--theme-color2); margin-bottom: 12px; }
.slogan-card strong { display: block; color: var(--stc-ink); font-size: 16px; line-height: 1.35; }
.slogan-class { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--body-text-color); }
.activity-card { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 176px; padding: 26px; border: 1px solid var(--stc-line); border-radius: 26px 26px 26px 0; background: #fff; box-shadow: 0 10px 28px rgba(18, 38, 63, .06); }
.activity-number { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; margin-bottom: 24px; border-radius: 50%; background: var(--theme-color-light); color: var(--theme-color2); font-family: var(--heading-font); font-weight: 700; }
.activity-card h3 { margin: 0; color: var(--stc-ink); font-family: var(--heading-font); font-size: 20px; line-height: 1.4; }

/* Old boys: branches */
.branch-card { display: flex; gap: 12px; align-items: center; height: 100%; background: #fff; border-radius: 22px 22px 22px 0; padding: 14px 18px; box-shadow: var(--box-shadow); }
.branch-card i { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--theme-color-light); color: var(--theme-color2); display: flex; align-items: center; justify-content: center; }
.branch-card strong { display: block; color: var(--stc-ink); line-height: 1.2; }
.branch-card span { font-size: 13px; color: var(--body-text-color); }
a.feature-item { display: block; color: inherit; }
a.feature-item:hover .feature-title { color: var(--theme-color2); }

/* Anthems */
.anthem-card { border: 1px solid var(--stc-line); border-radius: 40px 40px 40px 0; padding: 32px 36px; margin-bottom: 30px; background: #fff; }
.anthem-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.anthem-card-head h3 { margin: 0; font-size: 26px; }
.anthem-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--theme-color2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.anthem-player { background: var(--theme-bg-light); border-radius: 24px 24px 24px 0; padding: 14px 18px; margin-bottom: 22px; }
.anthem-player span { display: block; font-size: 14px; font-weight: 600; color: var(--stc-ink); margin-bottom: 8px; }
.anthem-player audio { width: 100%; }
.anthem-verses p { font-size: 17px; line-height: 1.85; color: var(--stc-ink); margin-bottom: 20px; }

/* Tribute */
.tribute-head { display: flex; gap: 28px; align-items: center; margin-bottom: 30px; }
.tribute-head img { width: 170px; height: 200px; object-fit: cover; object-position: top; border-radius: 40px 40px 40px 0; flex: 0 0 170px; }
.tribute-head .site-title { font-size: 34px; margin: 8px 0 6px; }
.tribute-years { color: var(--theme-color2); font-weight: 600; margin: 0; }
.tribute-text h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 22px; margin-top: 36px; }
.tribute-text h3 small { font-family: var(--body-font); font-size: 14px; font-weight: 500; color: var(--theme-color2); }

/* Text pages (functionaries, privacy, terms) */
.page-text table { width: 100%; border-collapse: collapse; margin: 6px 0 30px; font-size: 15px; }
.page-text th, .page-text td { padding: 10px 14px; border-bottom: 1px solid var(--stc-line); text-align: left; vertical-align: top; }
.page-text thead th { background: var(--theme-color); color: #fff; font-weight: 600; }
.page-text thead th:first-child { border-radius: 16px 0 0 0; }
.page-text thead th:last-child { border-radius: 0 16px 0 0; }
.page-text td:first-child { width: 42%; color: var(--stc-ink); font-weight: 500; }
.page-text tbody tr:nth-child(even) { background: var(--theme-bg-light); }
.page-updated { margin-top: 30px; font-size: 14px; color: var(--body-text-color); }

/* News list: filter, search, empty state */
.news-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 40px; }
.news-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.news-filter a { padding: 9px 20px; border-radius: 50px 50px 50px 0; background: var(--theme-bg-light); color: var(--stc-ink); font-weight: 500; }
.news-filter a:hover, .news-filter a.active { background: var(--theme-color2); color: #fff; }
.news-search { position: relative; flex: 0 1 320px; }
.news-search input { width: 100%; height: 48px; border: 1px solid var(--stc-line); border-radius: 50px; padding: 0 52px 0 22px; }
.news-search input:focus { outline: 2px solid var(--theme-color2); outline-offset: 1px; }
.news-search button { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--theme-color2); color: #fff; }
.news-result-count { margin: -20px 0 30px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 48px; color: var(--theme-color2); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { margin-bottom: 24px; }
.blog-item .blog-title a { color: var(--stc-ink); }
.blog-item .blog-title a:hover { color: var(--theme-color2); }
.blog-item-meta ul li span { color: var(--body-text-color); }

/* News article */
.blog-details-title { font-size: 34px; line-height: 1.25; }
.blog-thumb-img img { width: 100%; border-radius: 40px 40px 40px 0; }
.post-video { margin: 30px 0; }
.post-video video { width: 100%; border-radius: 30px 30px 30px 0; background: #000; }
.post-gallery-title { font-size: 24px; margin: 36px 0 18px; }
.post-gallery-title span { color: var(--body-text-color); font-size: 18px; }
.post-gallery .gallery-item, .gallery-grid .gallery-item { margin-bottom: 0; }
.portfolio-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
}
.portfolio-grid > * { width: auto; max-width: none; padding: 0; }
.portfolio-grid .portfolio-item { height: 100%; margin: 0; }
.portfolio-grid .portfolio-img { height: 100%; min-height: 320px; overflow: hidden; border-radius: 50px 50px 50px 0; }
.portfolio-grid .portfolio-img img { display: block; width: 100%; height: 100%; min-height: 320px; aspect-ratio: 4 / 3; object-fit: cover; }
.post-back { margin-top: 30px; }
.post-back a { font-weight: 600; }
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
}
.gallery-grid > * { width: auto; max-width: none; padding: 0; }
.home-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.home-gallery-grid .gallery-item { min-width: 0; margin: 0; }
.gallery-grid .gallery-img { overflow: hidden; border-radius: 24px; }
.gallery-grid .gallery-img img { display: block; aspect-ratio: 4 / 3; width: 100%; height: 100%; object-fit: cover; }
.gallery-album-grid,
.gallery-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px;
  width: 100%;
}
.gallery-album-card,
.gallery-photo-card { min-width: 0; margin: 0; }
.gallery-album-card .portfolio-item { height: 100%; min-height: 0; margin: 0; }
.gallery-album-card .portfolio-img { height: 100%; min-height: 420px; overflow: hidden; border-radius: 38px 38px 38px 0; }
.gallery-album-card .portfolio-img img { display: block; width: 100%; height: 100%; min-height: 420px; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-photo-card .gallery-item { position: relative; height: 100%; margin: 0; }
.gallery-photo-card .gallery-img { height: 100%; overflow: hidden; border-radius: 28px; }
.gallery-photo-card .gallery-img img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.branch-directory-section { padding-top: 76px; padding-bottom: 90px; }
.branch-directory-heading { max-width: 680px; margin: 0 auto 38px; text-align: center; }
.branch-directory-heading .site-title-tagline { display: block; margin-bottom: 8px; }
.branch-directory-heading .site-title { margin-bottom: 12px; }
.branch-directory-heading p { margin: 0; color: var(--body-text-color); font-size: 17px; }
.branch-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.branch-directory-card { min-width: 0; overflow: hidden; border: 1px solid var(--stc-line); border-radius: 22px; background: #fff; box-shadow: 0 14px 36px rgba(20, 50, 30, .07); }
.branch-directory-image { overflow: hidden; aspect-ratio: 16 / 10; background: var(--theme-bg-light); }
.branch-directory-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.branch-directory-card:hover .branch-directory-image img { transform: scale(1.035); }
.branch-directory-copy { display: grid; gap: 8px; padding: 22px 24px 24px; }
.branch-directory-region { color: var(--theme-color2); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.branch-directory-copy h3 { margin: 0; color: var(--stc-ink); font-size: 24px; line-height: 1.2; }
.branch-directory-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; color: var(--theme-color2); font-weight: 700; }
.branch-directory-link:hover { color: var(--theme-color); }
.branch-directory-link:focus-visible { outline: 3px solid var(--theme-color2); outline-offset: 3px; border-radius: 3px; }
.branch-directory-status { margin-top: 4px; color: var(--body-text-color); font-size: 14px; }
.branch-directory-card.is-coming-soon { background: #fbfcfb; box-shadow: none; }
.branch-directory-card.is-coming-soon .branch-directory-image img { filter: saturate(.78); }
@media (max-width: 991.98px) {
  .portfolio-grid, .gallery-grid, .gallery-album-grid, .gallery-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .branch-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 575.98px) {
  .portfolio-grid, .gallery-grid, .gallery-album-grid, .gallery-photo-grid { grid-template-columns: 1fr; gap: 20px; }
  .branch-directory-section { padding-top: 48px; padding-bottom: 60px; }
  .branch-directory-heading { margin-bottom: 26px; }
  .branch-directory-grid { grid-template-columns: 1fr; gap: 16px; }
  .branch-directory-copy { padding: 18px 20px 20px; }
  .portfolio-grid .portfolio-img, .portfolio-grid .portfolio-img img,
  .gallery-album-card .portfolio-img, .gallery-album-card .portfolio-img img { min-height: 300px; }
}

/* Contact */
.contact-info { height: 100%; }
.contact-info-content p { margin-bottom: 4px; }
.contact-info-content a { color: var(--stc-ink); }
.contact-info-content a:hover, .contact-info-content .text-link { color: var(--theme-color2); }
.contact-img img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 50px 50px 50px 0; }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; font-size: 14px; color: var(--stc-ink); margin-bottom: 6px; }
.contact-form label .optional { font-weight: 400; color: var(--body-text-color); }
.contact-form .form-control::placeholder { color: #9aa5a0; }
.contact-form .form-control:focus { border-color: var(--theme-color2); box-shadow: 0 0 0 3px rgba(23, 128, 61, .15); }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 18px 18px 18px 0; margin-bottom: 20px; font-weight: 500; }
.form-alert.success { background: #e7f5ec; color: #11602e; }
.form-alert.error { background: #fdeceb; color: #a1261b; }
.contact-captcha { background: var(--theme-bg-light); border-radius: 24px 24px 24px 0; padding: 16px 18px; margin-bottom: 22px; }
.contact-captcha-heading { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 12px; }
.contact-captcha-heading strong { color: var(--stc-ink); }
.contact-captcha-heading span { font-size: 13px; color: var(--body-text-color); }
.contact-captcha-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact-captcha-image { border-radius: 12px; background: #fff; border: 1px solid var(--stc-line); }
.contact-captcha-refresh { border: 1px solid var(--stc-line); background: #fff; border-radius: 50px; padding: 10px 16px; font-weight: 600; color: var(--stc-ink); }
.contact-captcha-refresh:hover { border-color: var(--theme-color2); color: var(--theme-color2); }
.contact-captcha-answer { margin: 0; flex: 1 1 140px; }
.contact-captcha-answer input { text-transform: uppercase; letter-spacing: 3px; }
.contact-map { margin-bottom: 0; line-height: 0; }
.contact-map iframe { display: block; height: 450px; border: 0; }

/* 404 */
.error-wrapper { text-align: center; }
.error-code { display: block; font-family: var(--heading-font); font-size: 140px; font-weight: 800; line-height: 1; color: var(--theme-color2); margin-bottom: 10px; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 26px; margin-top: 26px; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 991px) {
  .goals-wrapper { padding: 26px 24px; }
  .tribute-head { flex-direction: column; align-items: flex-start; }
  .contact-img img { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) {
  .brand-text strong { font-size: 18px; }
  .brand-text small { font-size: 10px; letter-spacing: 1.2px; }
  .navbar-brand.brand img { width: 46px; }
  .two-col-list, .subject-list { columns: 1; }
  .staff-figures { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .staff-figures strong { font-size: 26px; }
  .staff-figures div { padding: 12px; }
  .subject-card, .records-card, .anthem-card { padding: 26px 22px; }
  .principal-list li { grid-template-columns: 36px 1fr; padding: 12px 16px; }
  .principal-list-years { grid-column: 2; font-size: 14px; }
  .testimonial-single .testimonial-item { padding: 26px 22px 24px; }
  .testimonial-single .testimonial-quote p { font-size: 16px; }
  .news-search { flex: 1 1 100%; }
  .blog-details-title { font-size: 26px; }
  .contact-map iframe { height: 320px; }
  .page-text td:first-child { width: 45%; }
  .error-code { font-size: 96px; }
}

/* Breadcrumb on the dark photo banner */
.site-breadcrumb .breadcrumb-menu li.active { color: #b9e8c7; }
.site-breadcrumb .breadcrumb-menu li a:hover { color: #b9e8c7; }
.principal-list-bio { display: block; margin-top: 4px; font-family: var(--body-font); font-weight: 400; font-size: 14px; line-height: 1.6; color: var(--body-text-color); }
.principal-card .team-bio h5 a { color: var(--stc-ink); }
.principal-card .team-bio h5 a:hover { color: var(--theme-color2); }
.principal-list li { scroll-margin-top: 120px; }
.tribute-text blockquote { background: #fff; border: 1px solid var(--stc-line); border-left: 4px solid var(--theme-color2); }
.tribute-text blockquote p { font-style: normal; color: var(--body-text-color); }
.tribute-text blockquote p strong { color: var(--stc-ink); }
.contact-area .contact-content { margin-bottom: 70px; }
.contact-wrapper .contact-img { height: 100%; }
.contact-wrapper .contact-img img { height: 100%; }

/* ---------- Phones: shorter home sections ---------- */
@media (max-width: 767px) {
  .about-area .about-img .row > .col-md-6:last-child { display: none; }
  .about-area .about-img .img-1 { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .counter-area .counter-box { margin: 14px 0; }
  .counter-area .counter-box .icon { transform: scale(.75); margin-bottom: 0; }
  .counter-box .counter-value .counter { font-size: 36px; }
  .counter-box .counter-sign { font-size: 28px; }
  .counter-box .title { font-size: 16px; margin-top: 10px; }
  .team-area .team-item { padding: 10px; border-radius: 34px 34px 34px 0; }
  .team-area .team-item .team-img img { border-radius: 26px 26px 26px 0; }
  .team-area .team-bio h5 { font-size: 15px; }
  .team-area .team-bio span { font-size: 11px; letter-spacing: 1px; }
  .hero-single .hero-content .hero-title { font-size: 36px; }
}
.team-bio h5 a { color: var(--stc-ink); }
.team-bio h5 a:hover { color: var(--theme-color2); }
.recent-post-bio h6 { font-size: 16px; line-height: 1.35; }
.recent-post-bio h6 a { color: var(--stc-ink); }
.recent-post-bio h6 a:hover { color: var(--theme-color2); }
.blog-meta { flex-wrap: wrap; gap: 10px; }
.blog-meta-left ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.blog-meta-left ul li { margin: 0; }
@media (max-width: 767px) {
  #departments .department-item { padding: 22px 16px; border-radius: 30px 30px 30px 0; }
  #departments .department-icon img { width: 44px; }
  #departments .department-title { font-size: 17px; margin-top: 10px; }
  #departments .department-info p { font-size: 13px; line-height: 1.55; }
  #departments .department-item::before { display: none; }
}

/* Keep the homepage hero readable and within the viewport on narrow screens. */
@media (max-width: 767px) {
  .hero-single .container,
  .hero-single .row,
  .hero-single .col-md-12,
  .hero-single .hero-content { width: 100%; min-width: 0; }
  .hero-single .container { max-width: 100%; padding-inline: 24px; }
  .hero-single .row { --bs-gutter-x: 0; }
  .hero-single .hero-content {
    width: min(100%, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
  }
  .hero-single .hero-content .hero-sub-title {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 2px;
    white-space: normal;
  }
  .hero-single .hero-content .hero-title {
    max-width: 100%;
    margin: 16px 0;
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
  .hero-single .hero-content p {
    width: 100%;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .hero-single .hero-content .hero-btn { flex-wrap: wrap; gap: 12px; margin-top: 24px; }
  .hero-single .hero-content .hero-btn .theme-btn { min-height: 52px; padding-inline: 18px; }
}
