/*
Theme Name: ST Thomas HSS Manikkadavu
Theme URI: https://stthomashssmkd.acandsonstechnology.com/
Author: ST Thomas Higher Secondary School
Description: Responsive school website theme for ST Thomas Higher Secondary School, Manikkadavu. Includes Faculty, Events, News, Achievements, Gallery, School Life and Website Settings management.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sthss
*/

/* =========================================================
   TOKENS
========================================================= */
:root {
    --navy: #0b2a5b;
    --navy-dark: #071d40;
    --blue: #17447f;
    --light-blue: #eef4fb;
    --pale-blue: #f6f9fd;
    --gold: #b58a2a;
    --gold-light: #e8c66b;
    --white: #ffffff;
    --text: #26364a;
    --muted: #64748b;
    --border: #e5e7eb;
    --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius: 18px;
    --radius-sm: 10px;
    --container: 1200px;
    --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: Georgia, "Times New Roman", serif;
}

/* =========================================================
   RESET & BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); transition: color .2s ease, background .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 .6em;
}

p { margin: 0 0 1em; }

button, input, textarea, select { font: inherit; }

.container,
.sthss-container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.site-main { display: block; min-height: 50vh; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text { font-size: 14px; color: var(--muted); }

/* =========================================================
   BUTTONS
========================================================= */
.sthss-button,
.button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.sthss-button:hover,
.button:hover,
.btn:hover { transform: translateY(-2px); }

.sthss-button-primary,
.button-primary,
.btn-primary {
    background: var(--gold);
    color: var(--white);
}
.sthss-button-primary:hover,
.button-primary:hover,
.btn-primary:hover { background: var(--navy); color: var(--white); }

.sthss-button-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .7);
}
.sthss-button-light:hover { background: var(--white); color: var(--navy); }

.sthss-button-outline,
.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.sthss-button-outline:hover,
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* =========================================================
   TOP UTILITY BAR
========================================================= */
.top-utility-bar {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
}

.utility-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.utility-right {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.utility-right a {
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
}
.utility-right a:hover { color: var(--gold-light); }

/* =========================================================
   HEADER
========================================================= */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.school-header-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.school-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.school-logo-link { flex-shrink: 0; text-decoration: none; }

.school-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.school-logo-placeholder,
.footer-school-mark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    border: 3px solid var(--gold);
}

.school-identity { display: flex; flex-direction: column; min-width: 0; }

.school-name {
    color: var(--navy);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(16px, 2.2vw, 26px);
    line-height: 1.2;
}
.school-name:hover { color: var(--navy); }

.school-location {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-search-button,
.mobile-menu-toggle {
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
}

.header-search-button { padding: 0 18px; font-weight: 600; }

.header-search-button:hover,
.mobile-menu-toggle:hover { background: var(--light-blue); }

.mobile-menu-toggle {
    width: 44px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    transition: transform .25s ease, opacity .25s ease;
}

.mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   NAVIGATION
========================================================= */
.main-navigation-wrapper { background: var(--navy); }

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation > ul,
.main-navigation .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.main-navigation li { position: relative; }

.main-navigation a {
    display: block;
    padding: 15px 18px;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
    background: var(--blue);
    color: var(--gold-light);
}

.main-navigation .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    vertical-align: middle;
    transform: translateY(2px);
}

.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    display: none;
    background: var(--navy-dark);
    box-shadow: var(--shadow);
    z-index: 1000;
    border-top: 3px solid var(--gold);
}

.main-navigation ul ul ul { top: 0; left: 100%; }

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: block; }

.main-navigation ul ul a { padding: 11px 16px; font-weight: 500; }

/* =========================================================
   SEARCH PANEL
========================================================= */
.site-search-panel {
    display: none;
    background: var(--pale-blue);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.site-search-panel.is-open { display: block; }

.search-panel-inner {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.site-search-form { flex: 1; max-width: 760px; }

.site-search-form label {
    display: block;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.search-input-row { display: flex; gap: 10px; }

.search-input-row input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.search-input-row button,
.search-close-button {
    padding: 12px 20px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
}

.search-close-button { background: transparent; color: var(--navy); border: 1px solid var(--border); }

/* =========================================================
   SECTIONS & HEADINGS
========================================================= */
.sthss-section,
.section { padding: 80px 0; }

.sthss-page-content .sthss-section { padding: 60px 0; }
.sthss-page-content .sthss-section + .sthss-section { border-top: 1px solid var(--border); }

.sthss-light-section,
.light-section { background: var(--pale-blue); }

.sthss-section-heading,
.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}

.section-heading.left-align { text-align: left; margin-left: 0; }

.sthss-section-heading h2,
.section-heading h2 { font-size: clamp(28px, 4vw, 40px); }

.sthss-section-heading p,
.section-heading p { color: var(--muted); }

.sthss-eyebrow,
.eyebrow,
.section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sthss-rich-text p:last-child { margin-bottom: 0; }

/* =========================================================
   INNER PAGE HEADERS
========================================================= */
.sthss-page-header,
.page-header,
.inner-page-hero {
    position: relative;
    padding: 70px 0 60px;
    background:
        radial-gradient(circle at 85% 20%, rgba(181, 138, 42, .25), transparent 40%),
        linear-gradient(135deg, var(--navy-dark), var(--blue));
    color: var(--white);
    text-align: center;
}

.sthss-page-header h1,
.page-header h1,
.inner-page-hero h1 {
    color: var(--white);
    font-size: clamp(30px, 5vw, 48px);
    margin-bottom: 12px;
}

.sthss-page-header p,
.page-header p,
.inner-page-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .85);
}

.sthss-page-header .sthss-eyebrow,
.page-header .eyebrow,
.inner-page-hero .section-kicker { color: var(--gold-light); }

/* =========================================================
   HERO
========================================================= */
.sthss-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 30%, rgba(181, 138, 42, .35), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(23, 68, 127, .9), transparent 50%),
        linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--blue) 100%);
    color: var(--white);
}

.sthss-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.sthss-hero-content {
    position: relative;
    z-index: 1;
    padding: 90px 0;
    max-width: 860px;
    text-align: center;
}

.sthss-hero-content .sthss-eyebrow { color: var(--gold-light); }

.sthss-hero-content h1 {
    color: var(--white);
    font-size: clamp(32px, 5.5vw, 58px);
    margin-bottom: 18px;
}

.sthss-hero-content p {
    font-size: clamp(17px, 2vw, 21px);
    color: rgba(255, 255, 255, .88);
    margin-bottom: 32px;
}

.sthss-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* =========================================================
   ANNOUNCEMENT
========================================================= */
.sthss-announcement,
.announcement-bar {
    background: var(--gold);
    color: var(--white);
}

.sthss-announcement-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
}

.sthss-announcement-label {
    flex-shrink: 0;
    background: var(--navy);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sthss-announcement-text { font-weight: 600; }

/* =========================================================
   WELCOME
========================================================= */
.sthss-welcome-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sthss-welcome-content h2 { font-size: clamp(28px, 4vw, 40px); }

.sthss-welcome-content .sthss-rich-text { margin-bottom: 26px; color: var(--muted); }

.sthss-welcome-media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}

.sthss-welcome-media .sthss-placeholder-image,
.sthss-welcome-media img { height: 100%; width: 100%; object-fit: cover; }

/* =========================================================
   PLACEHOLDER IMAGE
========================================================= */
.sthss-placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: grid;
    place-items: center;
    padding: 20px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(11, 42, 91, .92), rgba(23, 68, 127, .85)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 20px);
    color: rgba(255, 255, 255, .85);
    font-family: var(--font-heading);
    font-size: 17px;
}

/* =========================================================
   PRINCIPAL + PHOTO HIGHLIGHTS
========================================================= */
.sthss-principal-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.sthss-principal-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-top: 5px solid var(--gold);
}

.sthss-principal-photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--light-blue);
}

.sthss-principal-photo img,
.sthss-principal-photo .sthss-placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.sthss-principal-content { padding: 28px 30px 32px; }
.sthss-principal-content h3 { font-size: 24px; margin-bottom: 14px; }
.sthss-principal-content .sthss-rich-text { color: var(--muted); }

.sthss-photo-highlights-heading { margin-bottom: 20px; }
.sthss-photo-highlights-heading h3 { font-size: 26px; margin: 0; }

.sthss-photo-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.sthss-photo-highlight-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--light-blue);
}

.sthss-photo-highlight-card img,
.sthss-photo-highlight-card .sthss-placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    font-size: 13px;
    transition: transform .4s ease;
}

.sthss-photo-highlight-card:hover img { transform: scale(1.06); }

.sthss-photo-highlight-title {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px 10px 8px;
    background: linear-gradient(transparent, rgba(7, 29, 64, .85));
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   INFO CARDS (VISION / MISSION / MOTTO)
========================================================= */
.sthss-info-section { background: var(--pale-blue); }

.sthss-info-grid,
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.sthss-info-card,
.info-card {
    background: var(--white);
    padding: 34px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--gold);
    transition: transform .25s ease, box-shadow .25s ease;
}

.sthss-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.sthss-info-card h3 { font-size: 24px; }
.sthss-info-card p { color: var(--muted); margin: 0; }

.sthss-card-number {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* =========================================================
   STATS
========================================================= */
.sthss-stats-section {
    background: linear-gradient(135deg, var(--navy-dark), var(--blue));
    padding: 60px 0;
}

.sthss-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sthss-stat-card {
    text-align: center;
    color: var(--white);
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, .15);
}

.sthss-stat-card:last-child { border-right: 0; }

.sthss-stat-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 52px);
    color: var(--gold-light);
    line-height: 1.1;
}

.sthss-stat-card span {
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
}

/* =========================================================
   CONTENT CARDS (events, news, academics, school life)
========================================================= */
.sthss-content-grid,
.card-grid,
.content-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.sthss-content-card,
.content-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.sthss-content-card:hover,
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.sthss-content-card-image,
.content-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--light-blue);
}

.sthss-content-card-image img,
.sthss-content-card-image .sthss-placeholder-image,
.content-card-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.sthss-content-card-body,
.content-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 26px 28px;
}

.sthss-content-card-body h3,
.content-card-body h2,
.content-card-body h3 { font-size: 21px; margin-bottom: 10px; }

.content-card-body h2 a,
.content-card-body h3 a { text-decoration: none; }

.sthss-card-description,
.sthss-content-card-body > p { color: var(--muted); font-size: 15px; }

.sthss-card-description p:last-child { margin-bottom: 0; }

.sthss-card-actions { margin-top: auto; padding-top: 18px; }

.sthss-empty-state,
.empty-state {
    text-align: center;
    padding: 50px 24px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--pale-blue);
    color: var(--muted);
}

.sthss-empty-state p:last-child { margin: 0; }

/* =========================================================
   GALLERY
========================================================= */
.sthss-gallery-grid,
.sthss-gallery-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.sthss-gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--light-blue);
}

.sthss-gallery-item a { display: block; height: 100%; }

.sthss-gallery-item img,
.sthss-gallery-item .sthss-placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: transform .4s ease;
}

.sthss-gallery-item:hover img { transform: scale(1.06); }

.sthss-gallery-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px 14px 10px;
    background: linear-gradient(transparent, rgba(7, 29, 64, .85));
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
}

.sthss-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    background: rgba(7, 18, 40, .92);
    cursor: zoom-out;
}

.sthss-lightbox img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 8px;
    cursor: default;
}

.sthss-lightbox p { color: var(--white); margin: 0; }

.sthss-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* =========================================================
   FACULTY
========================================================= */
.sthss-faculty-grid,
.sthss-lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 26px;
}

.sthss-principal-single { max-width: 380px; margin: 0 auto; }

.sthss-faculty-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.sthss-faculty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.sthss-principal-card { border-top: 5px solid var(--gold); }

.sthss-faculty-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--light-blue);
}

.sthss-faculty-image img,
.sthss-faculty-image .sthss-placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: top;
}

.sthss-faculty-content { padding: 20px 18px 24px; }
.sthss-faculty-content h3 { font-size: 19px; margin-bottom: 6px; }

.sthss-faculty-role {
    margin: 0;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
}

.sthss-former-teachers-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.sthss-former-teachers-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 560px;
}

.sthss-former-teachers-table th,
.sthss-former-teachers-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.sthss-former-teachers-table th {
    background: var(--navy);
    color: var(--white);
    font-size: 14px;
    letter-spacing: .04em;
}

.sthss-former-teachers-table tbody tr:nth-child(even) { background: var(--pale-blue); }
.sthss-former-teachers-table tbody tr:last-child td { border-bottom: 0; }

/* =========================================================
   ADMINISTRATION / ORGANOGRAM
========================================================= */
.sthss-organogram-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid var(--border);
}

.sthss-organogram-image img { width: 100%; border-radius: var(--radius-sm); }

.sthss-organogram-placeholder {
    display: grid;
    place-items: center;
    gap: 14px;
    min-height: 320px;
    padding: 40px;
    text-align: center;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--pale-blue);
    color: var(--muted);
}

.sthss-placeholder-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 28px;
}

/* =========================================================
   ABOUT PAGE
========================================================= */
.about-page-section { padding: 70px 0; }

.about-content-section {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 44px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 170px;
}

.about-content-section:last-child { border-bottom: 0; }

.about-section-heading h2 { font-size: 28px; margin: 0; }

.about-section-heading .section-kicker {
    font-family: var(--font-heading);
    font-size: 34px;
    letter-spacing: 0;
    color: var(--gold);
    margin-bottom: 4px;
}

.about-content { color: var(--text); }
.about-content ul { padding-left: 20px; }
.about-content li { margin-bottom: 6px; }

.about-faculties-link {
    background: var(--pale-blue);
    border-radius: var(--radius);
    padding: 44px 36px;
    border-bottom: 0;
    margin: 20px 0;
}

/* =========================================================
   CONTACT PAGE
========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 70px;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    box-shadow: var(--shadow);
    text-align: center;
    word-break: break-word;
}

.contact-card h3 { font-size: 21px; }
.contact-card p { color: var(--muted); margin: 0; }
.contact-card a { text-decoration: none; font-weight: 600; }

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--light-blue);
    color: var(--navy);
    font-size: 24px;
}

.contact-map-section { margin-bottom: 70px; }

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 7;
    min-height: 320px;
}

.map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-placeholder {
    display: grid;
    place-items: center;
    min-height: 300px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--pale-blue);
    color: var(--muted);
    text-align: center;
    padding: 30px;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.contact-social-links a {
    padding: 10px 22px;
    border: 2px solid var(--navy);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.contact-social-links a:hover { background: var(--navy); color: var(--white); }

/* =========================================================
   GENERIC PAGES / POSTS
========================================================= */
.single-featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 34px;
    box-shadow: var(--shadow);
}

.single-content-body,
.entry-content { max-width: 820px; margin-inline: auto; }

.entry-content h2 { font-size: 30px; margin-top: 1.4em; }
.entry-content h3 { font-size: 24px; margin-top: 1.3em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
    margin: 1.5em 0;
    padding: 18px 24px;
    border-left: 4px solid var(--gold);
    background: var(--pale-blue);
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 14px; }

.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.page-links { margin-top: 30px; font-weight: 600; }

.single-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 820px;
    margin: 50px auto 0;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.single-navigation a { text-decoration: none; font-weight: 600; }

.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}

.nav-links .page-numbers {
    min-width: 42px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
}

.nav-links .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
}

.footer-main { padding: 70px 0 50px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-school-mark { margin-bottom: 18px; }

.footer-school-name {
    color: var(--white);
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.footer-location { color: var(--gold-light); font-size: 14px; }
.footer-description { font-size: 14px; }

.footer-title {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }

.footer-links a,
.footer-contact a,
.footer-social a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-social a:hover { color: var(--gold-light); }

.footer-contact p { margin-bottom: 14px; font-size: 14px; }
.footer-contact strong { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    font-size: 14px;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.footer-bottom-inner p { margin: 0; }

.footer-social { display: flex; flex-wrap: wrap; gap: 18px; }

/* =========================================================
   REVEAL ANIMATION
========================================================= */
.sthss-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}

.sthss-reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sthss-principal-highlights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .sthss-section,
    .section { padding: 60px 0; }

    .mobile-menu-toggle { display: inline-flex; }

    .main-navigation-wrapper .navigation-inner { width: 100%; }

    .main-navigation {
        display: none;
        max-height: 70vh;
        overflow-y: auto;
    }

    .main-navigation.is-open { display: block; }

    .main-navigation > ul,
    .main-navigation .menu { display: block; }

    .main-navigation a {
        padding: 13px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .main-navigation ul ul {
        position: static;
        display: none;
        box-shadow: none;
        border-top: 0;
        background: rgba(0, 0, 0, .2);
    }

    .main-navigation li:hover > ul { display: none; }
    .main-navigation li.submenu-open > ul { display: block; }
    .main-navigation ul ul a { padding-left: 36px; }

    .sthss-welcome-grid { grid-template-columns: 1fr; gap: 36px; }
    .sthss-info-grid,
    .info-grid,
    .contact-grid { grid-template-columns: 1fr; }

    .sthss-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .sthss-stat-card { border-right: 0; }

    .about-content-section { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 600px) {
    .utility-inner { justify-content: center; text-align: center; padding: 8px 0; }
    .utility-left { display: none; }

    .school-header-inner { min-height: 76px; }
    .school-logo,
    .school-logo-placeholder { width: 50px; height: 50px; font-size: 17px; }
    .school-location { display: none; }
    .header-search-button span { font-size: 0; }
    .header-search-button { width: 44px; padding: 0; }
    .header-search-button::before { content: "\2315"; font-size: 20px; }

    .sthss-hero { min-height: 460px; }
    .sthss-hero-content { padding: 60px 0; }

    .sthss-announcement-inner { flex-direction: column; align-items: flex-start; gap: 8px; }

    .sthss-photo-highlight-grid { grid-template-columns: repeat(2, 1fr); }
    .sthss-content-grid,
    .card-grid { grid-template-columns: 1fr; }
    .sthss-gallery-grid,
    .sthss-gallery-placeholder-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }

    .search-panel-inner { flex-direction: column; align-items: stretch; }
    .search-input-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
