/* =============================================
 * HGE School Homepage Styles
 * Heaven Garden English School
 * Premium school website UI
 * Mobile-first responsive design
 * ============================================= */

/* ---------- CSS Variables ---------- */
:root {
    --hge-navy: #0f2444;
    --hge-navy-light: #1a3a6b;
    --hge-gold: #c9a84c;
    --hge-white: #ffffff;
    --hge-light: #f5f7fa;
    --hge-light-alt: #eef1f6;
    --hge-text: #2d3748;
    --hge-text-light: #4a5568;
    --hge-border: #e2e8f0;
    --hge-radius: 12px;
    --hge-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --hge-shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --hge-max-width: 1280px;
    --hge-transition: 0.25s ease;
}

/* ---------- Reset & Base ---------- */
/* Hide Astra page title on ALL HGE pages */
body.school-homepage .ast-separate-container .entry-header,
body.school-homepage .ast-plain-container .entry-header,
body.school-homepage header.entry-header,
body.school-homepage .ast-archive-title-container,
body.school-homepage .ast-separate-container h1.entry-title,
body.school-homepage .ast-plain-container h1.entry-title,
.hge-homepage .entry-header,
.hge-homepage header.entry-header,
.hge-homepage h1.entry-title,
.hge-homepage + .ast-separate-container .entry-header,
.hge-homepage ~ * .entry-header,
#page .hge-homepage ~ .ast-container .entry-header,
.hge-homepage ~ .site-content .entry-header,
.hge-homepage ~ .site-content header.entry-header {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hge-homepage {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--hge-text);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}
.hge-homepage *,
.hge-homepage *::before,
.hge-homepage *::after {
    box-sizing: border-box;
}
.hge-container {
    max-width: var(--hge-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Shared ---------- */
.hge-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.hge-section__title--center {
    text-align: center;
    margin-bottom: 2.5rem;
}
.hge-section__footer {
    text-align: center;
    margin-top: 2.5rem;
}
.hge-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hge-gold);
    margin-bottom: 0.5rem;
}
.hge-text-center {
    text-align: center;
}

/* ---------- Buttons ---------- */
.hge-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--hge-transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}
.hge-btn--primary {
    background: var(--hge-navy);
    color: #fff;
}
.hge-btn--primary:hover {
    background: var(--hge-navy-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15,36,68,0.2);
}
.hge-btn--outline {
    background: transparent;
    color: var(--hge-navy);
    border-color: var(--hge-navy);
}
.hge-btn--outline:hover {
    background: var(--hge-navy);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15,36,68,0.2);
}
.hge-btn--text {
    background: transparent;
    color: var(--hge-navy);
    border: none;
    padding: 0.5rem 0;
    font-weight: 700;
    font-size: 0.9rem;
}
.hge-btn--text:hover {
    color: var(--hge-gold);
}
.hge-btn--apply {
    background: var(--hge-gold);
    color: var(--hge-navy);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.hge-btn--apply:hover {
    background: #b8943f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}

/* =============================================
   HEADER — FROZEN
   ============================================= */
.hge-header {
    position: relative;
    z-index: 100;
}
.hge-header__inner {
    max-width: var(--hge-max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.hge-header__main {
    background: #fff;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--hge-border);
}
.hge-header__main .hge-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}
.hge-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
/* --- Search Box --- */
.hge-header__search .search-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    width: auto;
}
/* Astra wraps input+button inside a <label>; make it flex row too */
.hge-header__search .search-form label {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    width: auto;
}
.hge-header__search .search-field {
    height: 34px;
    padding: 0 0.75rem;
    border: 1px solid var(--hge-border);
    border-radius: 6px 0 0 6px;
    font-size: 0.82rem;
    width: 300px;
    min-width: 0;
    outline: none;
    transition: border-color var(--hge-transition);
    background: var(--hge-light);
    margin: 0;
    flex-shrink: 1;
}
.hge-header__search .search-field:focus {
    border-color: var(--hge-gold);
}
/* Hide Astra's duplicate submit button (input type=submit), keep the button with SVG icon */
.hge-header__search .search-form input[type="submit"].search-submit {
    display: none;
}
.hge-header__search .search-submit {
    height: 34px;
    padding: 0 0.65rem;
    background: var(--hge-navy);
    color: #fff;
    border: 1px solid var(--hge-navy);
    border-left: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
    transition: background var(--hge-transition);
}
.hge-header__search .search-submit:hover {
    background: var(--hge-navy-light);
}
.hge-header__brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
}
.hge-header__logo {
    max-height: 80px;
    width: auto;
}
.hge-header__titles {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}
.hge-header__name {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--hge-navy);
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -0.4px;
}
.hge-header__tagline {
    font-size: 0.8rem;
    color: var(--hge-gold);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hge-header__nav {
    background: var(--hge-navy);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hge-header__nav .hge-header__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
}
.hge-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.35rem;
    white-space: nowrap;
}
.hge-header__menu li {
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
    flex-grow: 0;
}
.hge-header__menu a {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 0.75rem;
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all var(--hge-transition);
    white-space: nowrap;
}
.hge-header__menu a:hover,
.hge-header__menu .current-menu-item a {
    background: var(--hge-navy-light);
    color: #fff;
}
.hge-header__toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.75rem;
}
.hge-header__nav .hge-btn--apply {
    padding: 0.6rem 1.2rem !important;
}
.hge-header-spacer {
    display: none;
}

/* --- Top Utility Bar --- */
.hge-header__quickbar {
    background: var(--hge-navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 36px;
}
.hge-header__quickbar .hge-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 0 24px;
    gap: 1.5rem;
}
.hge-header__quickbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    min-height: 36px;
}
.hge-header__quickbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.hge-header__contact {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    transition: color var(--hge-transition);
    white-space: nowrap;
}
.hge-header__contact:hover {
    color: var(--hge-gold);
}
.hge-header__contact .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}
.hge-header__quick-links {
    display: flex;
    align-items: center;
    gap: 0;
}
.hge-header__quick-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: color var(--hge-transition);
    border-right: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
    line-height: 1;
}
.hge-header__quick-link:first-child {
    padding-left: 0;
}
.hge-header__quick-link:last-child {
    border-right: none;
    padding-right: 0;
}
.hge-header__quick-link:hover {
    color: var(--hge-gold);
}
.hge-header__social-label {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 0.25rem;
}
.hge-header__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    transition: all var(--hge-transition);
    text-decoration: none;
    flex-shrink: 0;
}
.hge-header__social-link:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.hge-header__social-link--fb:hover { background: #1877f2; color: #fff; }
.hge-header__social-link--yt:hover { background: #ff0000; color: #fff; }
.hge-header__social-link--ig:hover { background: #e4405f; color: #fff; }

/* =============================================
   DROPDOWN NAVIGATION
   ============================================= */
.hge-header__menu {
    position: relative;
}
.hge-header__menu > li {
    position: relative;
}
.hge-header__menu > li.has-children > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.hge-header__menu > li.has-children > a::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: rotate(45deg);
    margin-left: auto;
}
.hge-header__menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--hge-navy);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
    border-radius: 0 0 8px 8px;
}
.hge-header__menu li:hover > ul,
.hge-header__menu li:focus-within > ul,
.hge-header__menu ul:hover,
.hge-header__menu ul:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hge-header__menu ul li {
    position: relative;
}
.hge-header__menu ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}
.hge-header__menu ul li a:hover {
    background: var(--hge-navy-light);
    color: #fff;
}
.hge-header__menu ul ul {
    left: 100%;
    top: 0;
}
.hge-header__menu ul li.has-children > a::after {
    margin-left: auto;
    margin-right: 0;
}

/* =============================================
   HERO — FROZEN
   ============================================= */
.hge-hero {
    position: relative;
    height: 580px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: #fff;
    overflow: hidden;
}
.hge-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--hge-navy);
}
.hge-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,36,68,0.65) 0%, rgba(15,36,68,0.35) 35%, rgba(15,36,68,0.15) 70%, rgba(15,36,68,0) 100%);
    z-index: 1;
}
.hge-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 48px;
    animation: heroFadeIn 0.8s ease-out;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hge-hero__title {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    line-height: 1.12;
    color: #fff;
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.hge-hero__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--hge-gold);
    margin: 1rem 0 0.75rem;
    border-radius: 2px;
}
.hge-hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255,255,255,0.95);
}
.hge-hero__location {
    font-size: 0.82rem;
    opacity: 0.8;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.hge-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.hge-hero__actions .hge-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
}
.hge-hero__actions .hge-btn--primary {
    background: var(--hge-gold);
    color: var(--hge-navy);
    border-color: var(--hge-gold);
}
.hge-hero__actions .hge-btn--primary:hover {
    background: #b8943f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}
.hge-hero__actions .hge-btn--outline {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
    background: transparent;
}
.hge-hero__actions .hge-btn--outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* =============================================
   SECTION 1 — ABOUT HGE
   ============================================= */
.hge-about {
    padding: 5rem 0;
    background: #fff;
}
.hge-about__grid {
    display: grid;
    grid-template-columns: 46% 54%;
    gap: 3.5rem;
    align-items: center;
}
.hge-about__image {
    position: relative;
}
.hge-about__image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    display: block;
    transition: transform 0.4s ease;
}
.hge-about__image:hover img {
    transform: scale(1.02);
}
.hge-about__badge {
    position: absolute;
    bottom: -14px;
    right: 20px;
    background: var(--hge-gold);
    color: var(--hge-navy);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}
.hge-about__lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hge-navy);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    letter-spacing: -0.2px;
}
.hge-about__content p {
    margin-bottom: 1.1rem;
    color: var(--hge-text-light);
    line-height: 1.8;
}
.hge-about__content .hge-btn {
    margin-top: 0.75rem;
}

/* =============================================
   SECTION 2 — SCHOOL HIGHLIGHTS BAND
   ============================================= */
.hge-highlights {
    background: var(--hge-navy);
    padding: 3.5rem 0;
}
.hge-highlights__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.hge-highlights__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(201,168,76,0.15);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--hge-gold);
}
.hge-highlights__item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}
.hge-highlights__item p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* =============================================
   SECTION 3 — VISION & MISSION
   ============================================= */
.hge-vision {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f5f7fa 100%);
}
.hge-vision__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.hge-vision__card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(15,36,68,0.04);
    border-left: 4px solid var(--hge-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hge-vision__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15,36,68,0.08);
}
.hge-vision__card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.hge-vision__card-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hge-gold);
    line-height: 1;
}
.hge-vision__card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin: 0;
}
.hge-vision__card p {
    color: var(--hge-text-light);
    line-height: 1.85;
    font-size: 0.95rem;
    margin: 0;
}

/* =============================================
   LIFE AT HEAVEN GARDEN
   ============================================= */
.hge-life {
    padding: 5rem 0;
    background: #fff;
}
.hge-life__subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--hge-text-light);
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.hge-life__grid {
    display: grid;
    grid-template-columns: 58% 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 420px;
}
.hge-life__item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.hge-life__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.hge-life__item:hover img {
    transform: scale(1.05);
}
.hge-life__item--large {
    grid-column: 1;
    grid-row: 1 / 3;
}
@media (max-width: 768px) {
    .hge-life__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .hge-life__item--large { grid-column: auto; grid-row: auto; }
    .hge-life__item { height: 200px; }
}

/* =============================================
   SECTION 4 — PRINCIPAL'S MESSAGE
   ============================================= */
.hge-principal {
    padding: 5rem 0;
    background: #fff;
    position: relative;
}
.hge-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hge-navy) 0%, var(--hge-gold) 100%);
}
.hge-principal__wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
    background: linear-gradient(135deg, #f8fafc 0%, #f5f7fa 100%);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(15,36,68,0.04);
}
.hge-principal__media {
    text-align: center;
}
.hge-principal__photo {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    display: block;
}
.hge-principal__photo-fallback {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--hge-navy) 0%, var(--hge-navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
}
.hge-principal__photo-initials {
    display: none;
}
.hge-principal__photo-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hge-principal__identity {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.hge-principal__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hge-navy);
}
.hge-principal__role {
    font-size: 0.8rem;
    color: var(--hge-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.hge-principal__content blockquote {
    margin: 0 0 1rem;
    padding: 0;
}
.hge-principal__content blockquote p {
    font-style: italic;
    color: var(--hge-text-light);
    margin-bottom: 0.75rem;
    line-height: 1.85;
    position: relative;
    padding-left: 1.25rem;
}
.hge-principal__content blockquote p::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -4px;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--hge-gold);
    opacity: 0.3;
    font-family: 'Georgia', serif;
}
.hge-principal__looking-forward {
    color: var(--hge-navy);
    font-weight: 600;
    font-size: 0.95rem;
}

/* =============================================
   LEADERSHIP TEAM — Compact Premium Cards
   ============================================= */
.hge-leadership {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
}
.hge-leadership__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 910px;
    margin: 0 auto;
}
.hge-leadership__card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    padding-left: 26px;
    max-height: 220px;
    box-shadow: 0 2px 12px rgba(15,36,68,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.hge-leadership__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(15,36,68,0.12);
}
.hge-leadership__photo-wrap {
    width: 175px;
    height: 210px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hge-navy) 0%, var(--hge-navy-light) 100%);
    margin-left: -12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(15,36,68,0.1);
}
.hge-leadership__photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hge-leadership__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(201,168,76,0.35);
}
.hge-leadership__name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin: 0;
    line-height: 1.3;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--hge-gold);
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-bottom-width 0.3s ease;
}
.hge-leadership__card--poster .hge-leadership__info {
    display: none;
}
.hge-leadership__role {
    font-size: 0.88rem;
    color: var(--hge-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    white-space: nowrap;
}

/* =============================================
   SECTION 5 — WHY CHOOSE HGE
   ============================================= */
.hge-whyus {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
}
.hge-whyus__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.hge-whyus__item {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15,36,68,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}
.hge-whyus__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(15,36,68,0.08);
    border-bottom-color: var(--hge-gold);
}
.hge-whyus__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(15,36,68,0.06);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--hge-navy);
}
.hge-whyus__item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin-bottom: 0.6rem;
}
.hge-whyus__item p {
    font-size: 0.9rem;
    color: var(--hge-text-light);
    line-height: 1.65;
}

/* =============================================
   SECTION 6 — FACILITIES
   ============================================= */
.hge-facilities {
    padding: 5rem 0;
    background: #fff;
}
.hge-facilities__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.hge-facility-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,36,68,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}
.hge-facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(15,36,68,0.08);
    border-bottom-color: var(--hge-gold);
}
.hge-facility-card__image {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hge-navy) 0%, var(--hge-navy-light) 100%);
}
.hge-facility-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hge-facility-card:hover .hge-facility-card__image img {
    transform: scale(1.05);
}
.hge-facility-card__image--placeholder {
    background: linear-gradient(135deg, var(--hge-navy) 0%, var(--hge-navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hge-facility-card__image--placeholder svg {
    opacity: 0.3;
}
.hge-facility-card__body {
    padding: 1.5rem;
}
.hge-facility-card__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin-bottom: 0.6rem;
}
.hge-facility-card__body p {
    font-size: 0.9rem;
    color: var(--hge-text-light);
    line-height: 1.6;
}

/* =============================================
   SECTION 7 — GALLERY PREVIEW
   ============================================= */
.hge-gallery {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
}
.hge-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.hge-gallery__item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 20px rgba(15,36,68,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.hge-gallery__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(15,36,68,0.08);
}
.hge-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.hge-gallery__item:hover img {
    transform: scale(1.1);
}
.hge-gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.85rem 1rem;
    background: linear-gradient(transparent, rgba(15,36,68,0.85));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.hge-gallery__item:hover .hge-gallery__caption {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   SECTION 8 — NEWS & EVENTS (shared section)
   ============================================= */
.hge-news-events {
    padding: 5rem 0;
    background: #fff;
}
.hge-news-events__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
/* ─── News Ticker ─── */
.hge-news-ticker {
    height: 340px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 90%, transparent 100%);
}
.hge-news-ticker__track {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease;
}
.hge-news-ticker__item {
    flex-shrink: 0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--hge-border);
}
.hge-news-ticker__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.hge-news-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--hge-border);
    align-items: start;
}
.hge-news-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.hge-news-card__image {
    border-radius: 10px;
    overflow: hidden;
}
.hge-news-card__image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.hge-news-card__body time {
    font-size: 0.75rem;
    color: var(--hge-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 0.3rem;
}
.hge-news-card__body h3 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}
.hge-news-card__body h3 a {
    color: var(--hge-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}
.hge-news-card__body h3 a:hover {
    color: var(--hge-gold);
}
.hge-news-card__body p {
    font-size: 0.85rem;
    color: var(--hge-text-light);
    line-height: 1.6;
    margin-bottom: 0.4rem;
}
.hge-news-card__link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hge-navy);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.hge-news-card__link:hover {
    color: var(--hge-gold);
}
.hge-news-events__events {
    background: linear-gradient(135deg, #f8fafc 0%, #f5f7fa 100%);
    border-radius: 16px;
    padding: 2rem;
}
.hge-events-list-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
}
.hge-event-compact {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.hge-event-compact__date {
    min-width: 56px;
    text-align: center;
    background: var(--hge-navy);
    color: #fff;
    border-radius: 10px;
    padding: 0.6rem 0.5rem;
    line-height: 1.15;
    flex-shrink: 0;
}
.hge-event-compact__day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}
.hge-event-compact__month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    font-weight: 600;
}
.hge-event-compact__body h4 {
    font-size: 0.95rem;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}
.hge-event-compact__body h4 a {
    color: var(--hge-navy);
    text-decoration: none;
}
.hge-event-compact__body h4 a:hover {
    color: var(--hge-gold);
}
.hge-event-compact__meta {
    font-size: 0.8rem;
    color: var(--hge-text-light);
}

/* =============================================
   SECTION 9 — ADMISSIONS CTA
   ============================================= */
.hge-admissions-cta {
    position: relative;
    background: var(--hge-navy);
    padding: 5rem 0;
    overflow: hidden;
}
.hge-admissions-cta__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,36,68,1) 0%, rgba(26,58,107,0.9) 100%);
}
.hge-admissions-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hge-gold) 0%, rgba(255,255,255,0.3) 100%);
    z-index: 1;
}
.hge-admissions-cta__inner {
    position: relative;
    z-index: 2;
}
.hge-admissions-cta__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}
.hge-admissions-cta__content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: #fff;
}
.hge-admissions-cta__content p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.75;
}
.hge-admissions-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hge-btn--cta-primary {
    background: var(--hge-gold);
    color: var(--hge-navy);
    border-color: var(--hge-gold);
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: 10px;
    font-weight: 700;
}
.hge-btn--cta-primary:hover {
    background: #b8943f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}
.hge-btn--cta-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
    background: transparent;
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: 10px;
    font-weight: 600;
}
.hge-btn--cta-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* =============================================
   SECTION 10 — CONTACT INFORMATION
   ============================================= */
.hge-contact {
    padding: 5rem 0;
    background: #fff;
}
.hge-contact__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.hge-contact__item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f5f7fa 100%);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}
.hge-contact__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(15,36,68,0.06);
    border-bottom-color: var(--hge-gold);
}
.hge-contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(15,36,68,0.06);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--hge-navy);
}
.hge-contact__item h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hge-contact__item p {
    font-size: 0.9rem;
    color: var(--hge-text-light);
    line-height: 1.6;
    margin: 0;
}
.hge-contact__item a {
    color: inherit;
    text-decoration: none;
}
.hge-contact__item a:hover {
    color: var(--hge-navy);
}

/* =============================================
   HGE CUSTOM FOOTER
   ============================================= */
.hge-footer {
    background: var(--hge-navy);
    color: rgba(255,255,255,0.8);
    margin-top: 0;
}
.hge-footer__main {
    padding: 4rem 0 2rem;
}
.hge-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
}
.hge-footer__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    margin-bottom: 1rem;
}
.hge-footer__logo {
    max-height: 48px;
    width: auto;
}
.hge-footer__school-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.hge-footer__affiliation {
    font-size: 0.82rem;
    color: var(--hge-gold);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.hge-footer__desc {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.75;
}
.hge-footer__title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hge-gold);
    display: inline-block;
}
.hge-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hge-footer__menu li {
    margin-bottom: 0.5rem;
}
.hge-footer__menu a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--hge-transition);
}
.hge-footer__menu a:hover {
    color: var(--hge-gold);
}
.hge-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hge-footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}
.hge-footer__contact-list li svg {
    margin-top: 2px;
    color: var(--hge-gold);
    flex-shrink: 0;
}
.hge-footer__contact-list a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.hge-footer__contact-list a:hover {
    color: var(--hge-gold);
}
.hge-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}
.hge-footer__bottom p {
    margin: 0;
}

/* =============================================
   DISCLOSURE CARDS
   ============================================= */
.hge-disclosure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.hge-disclosure-card {
    display: block;
    background: var(--hge-light);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}
.hge-disclosure-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15,36,68,0.08);
    border-bottom-color: var(--hge-gold);
}
.hge-disclosure-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin: 0 0 0.5rem;
}
.hge-disclosure-card p {
    font-size: 0.9rem;
    color: var(--hge-text-light);
    margin: 0;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .hge-disclosure-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .hge-disclosure-grid { grid-template-columns: 1fr; }
}

/* =============================================
   INNER PAGE STYLES (page-hge.php template)
   ============================================= */
.hge-page-hero {
    background: var(--hge-navy);
    padding: 3rem 0;
    color: #fff;
}
.hge-page-hero__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.hge-breadcrumb {
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}
.hge-breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color var(--hge-transition);
}
.hge-breadcrumb a:hover {
    color: var(--hge-gold);
}
.hge-breadcrumb__sep {
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.5);
}
.hge-breadcrumb__current {
    color: rgba(255,255,255,0.95);
    font-weight: 600;
}
.hge-document-action {
    margin: 2rem 0;
}
.hge-intro-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hge-navy);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.hge-principal-quote p {
    font-style: italic;
    color: var(--hge-text-light);
    line-height: 1.85;
}
.hge-principal-signature {
    font-weight: 700;
    color: var(--hge-navy);
    margin-top: 1rem;
}
.hge-page-content {
    padding: 4rem 0;
    background: #fff;
    min-height: 400px;
}
.hge-page-content__body {
    max-width: 900px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--hge-text-light);
}
.hge-page-content__body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin: 2rem 0 1rem;
}
.hge-page-content__body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin: 1.5rem 0 0.75rem;
}
.hge-page-content__body p {
    margin-bottom: 1rem;
}
.hge-page-content__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.hge-page-content__body table th,
.hge-page-content__body table td {
    border: 1px solid var(--hge-border);
    padding: 0.75rem 1rem;
    text-align: left;
}
.hge-page-content__body table th {
    background: var(--hge-navy);
    color: #fff;
    font-weight: 600;
}
.hge-page-content__body table tr:nth-child(even) td {
    background: var(--hge-light);
}
/* =============================================
   SINGLE POST / CPT STYLES
   ============================================= */
.school-single { padding: 40px 0; }
.school-single__hero { background: var(--hge-navy); padding: 40px 0; margin-bottom: 40px; color: #fff; }
.school-single__title { margin: 0; font-size: 2.2rem; font-weight: 700; color: #fff; }
.school-single__meta { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 10px; }
.school-single__meta span { margin-right: 16px; display: inline-block; }
.school-single__content { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.school-single__article { max-width: 900px; margin: 0 auto; }
.school-single__featured-image { margin-bottom: 24px; border-radius: 12px; overflow: hidden; }
.school-single__featured-image img { width: 100%; height: auto; }
.school-single__body { font-size: 1rem; line-height: 1.85; color: var(--hge-text); }
.school-single__body p { margin-bottom: 1.2rem; }
.school-single__fields { background: var(--hge-light); border: 1px solid var(--hge-border); border-radius: 12px; padding: 24px; margin: 24px 0; }
.school-single__field { margin-bottom: 12px; }
.school-single__field:last-child { margin-bottom: 0; }
.school-single__field-label { font-weight: 600; font-size: 0.85rem; color: var(--hge-navy); text-transform: uppercase; letter-spacing: 0.05em; }
.school-single__field-value { font-size: 1rem; color: var(--hge-text); margin-top: 2px; }

.hge-empty-state {
    color: var(--hge-text-light);
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: var(--hge-light);
    border-radius: 8px;
}

/* =============================================
   EVENTS EMPTY STATE
   ============================================= */
.hge-empty-events {
    max-width: 650px;
    margin: 3rem auto 4rem;
    padding: 3.5rem 2.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15,36,68,0.06);
    text-align: center;
}
.hge-empty-events__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(15,36,68,0.04) 0%, rgba(15,36,68,0.08) 100%);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--hge-gold);
}
.hge-empty-events__icon svg {
    width: 40px;
    height: 40px;
}
.hge-empty-events__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin: 0 0 0.75rem;
}
.hge-empty-events__desc {
    font-size: 0.95rem;
    color: var(--hge-text-light);
    line-height: 1.7;
    margin: 0 0 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.hge-empty-events__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    .hge-empty-events {
        padding: 2.5rem 1.5rem;
        margin: 2rem auto 3rem;
    }
    .hge-empty-events__title {
        font-size: 1.25rem;
    }
}

/* =============================================
   VISITOR COUNTER
   ============================================= */
.hge-visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: 'Consolas', 'Courier New', Courier, monospace;
}
.hge-visitor-counter__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
}
.hge-visitor-counter__digits {
    display: inline-flex;
    gap: 3px;
}
.hge-visitor-counter__digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 30px;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1;
}
.hge-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}
@media (max-width: 768px) {
    .hge-footer__bottom-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 0.25rem 0;
    }
    .hge-visitor-counter__digit {
        width: 22px;
        height: 26px;
        font-size: 0.9rem;
    }
    .hge-visitor-counter__label {
        font-size: 0.72rem;
    }
}
@media (max-width: 480px) {
    .hge-visitor-counter__digit {
        width: 20px;
        height: 24px;
        font-size: 0.85rem;
    }
    .hge-visitor-counter__digits {
        gap: 2px;
    }
}

/* =============================================
   EDUCATIONAL PORTALS SECTION
   ============================================= */
.hge-portals {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
}
.hge-portals .hge-container {
    max-width: 1200px;
}
.hge-portals__section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.hge-portals__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--hge-gold);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}
.hge-portals__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.hge-portals__col {
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: 0 4px 20px rgba(15,36,68,0.04);
    border-top: 4px solid var(--hge-gold);
}
.hge-portals__col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hge-portals__col h3 svg {
    color: var(--hge-gold);
}
.hge-portals__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.hge-portals__list li a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    color: var(--hge-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--hge-transition);
    border: 1px solid transparent;
}
.hge-portals__list li a:hover {
    background: var(--hge-light);
    border-color: var(--hge-border);
    color: var(--hge-navy);
    transform: translateX(4px);
}
.hge-portals__list li a:hover {
    color: var(--hge-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.hge-portals__list li a svg {
    color: var(--hge-gold);
    flex-shrink: 0;
}
@media (max-width: 1024px) {
    .hge-portals__grid { gap: 1.5rem; }
}
@media (max-width: 768px) {
    .hge-portals { padding: 3rem 0; }
    .hge-portals__grid { grid-template-columns: 1fr; }
    .hge-portals__col { padding: 1.5rem; }
    .hge-portals__list li a { font-size: 0.9rem; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hge-hero { height: 500px; }
    .hge-about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hge-about__image { max-width: 560px; margin: 0 auto; }
    .hge-highlights__grid { grid-template-columns: repeat(2, 1fr); }
    .hge-vision__grid { grid-template-columns: 1fr; }
    .hge-principal__wrapper { grid-template-columns: 200px 1fr; gap: 2.5rem; }
    .hge-whyus__grid { grid-template-columns: repeat(2, 1fr); }
    .hge-facilities__grid { grid-template-columns: repeat(2, 1fr); }
    .hge-gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .hge-news-events__grid { grid-template-columns: 1fr; gap: 3rem; }
    .hge-contact__grid { grid-template-columns: repeat(2, 1fr); }
    .hge-footer__grid { grid-template-columns: 1fr 1fr; }
    .hge-life__grid { height: 260px; }
    .hge-leadership__grid { gap: 1.5rem; }
}
/* ---- Mobile Topbar ---- */
@media (max-width: 768px) {
    /* ---- Mobile Quickbar ---- */
    .hge-header__quickbar .hge-header__inner { justify-content: center; gap: 0.5rem; }
    .hge-header__quickbar-left { justify-content: center; }
    .hge-header__affiliation { display: none; }
    .hge-header__quick-links { gap: 0; flex-wrap: wrap; justify-content: center; }
    .hge-header__quick-link { padding: 0.2rem 0.5rem; font-size: 0.72rem; border-right: none; }
    .hge-header__quickbar-right { display: none; }
    .hge-header__social-label { display: none; }
    .hge-header__top .hge-header__inner { justify-content: center; gap: 0.75rem; flex-wrap: nowrap; font-size: 0.75rem; }
    .hge-header__contact { font-size: 0.75rem; }
    .hge-header__contact .dashicons { width: 11px; height: 11px; font-size: 11px; }
    .hge-header__social-link { width: 24px; height: 24px; }
    .hge-header__social-link svg { width: 12px; height: 12px; }

    /* ---- Mobile Branding Row ---- */
    .hge-header__main .hge-header__inner { flex-wrap: nowrap; }
    .hge-header__main .hge-header__inner .hge-btn--apply { display: none; }
    .hge-header__actions { display: none; }
    .hge-header__logo { max-height: 48px; }
    .hge-header__titles { gap: 0.15rem; }
    .hge-header__name { font-size: 1.2rem; white-space: normal; letter-spacing: -0.2px; }
    .hge-header__tagline { font-size: 0.7rem; padding: 0; }
    .hge-header__tagline::before, .hge-header__tagline::after { display: none; }

    /* ---- Mobile Hamburger + Menu ---- */
    .hge-header__toggle { display: block; }
    .hge-header__nav .hge-header__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--hge-navy);
        flex-direction: column;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        padding: 0.5rem 0;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 101;
    }
    .hge-header__nav .hge-header__menu.is-open { display: flex; }
    .hge-header__nav .hge-header__menu > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .hge-header__nav .hge-header__menu > li:last-child { border-bottom: none; }
    .hge-header__nav .hge-header__menu a {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
    }
    .hge-header__nav .hge-header__menu > li.has-children > a::after { display: none; }
    .hge-header__nav .hge-header__menu ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.15);
        display: none;
    }
    .hge-header__nav .hge-header__menu li.has-children.is-open > ul { display: block; }
    .hge-header__nav .hge-header__menu ul li a {
        padding-left: 2rem;
        font-size: 0.82rem;
    }
    .hge-header__nav .hge-header__menu ul ul { left: 0; top: auto; }

    /* ---- Mobile Hero ---- */
    .hge-hero { height: 480px; min-height: 400px; }
    .hge-hero__content { padding: 0 24px; max-width: 100%; }
    .hge-hero__title { font-size: 1.75rem; white-space: normal; line-height: 1.15; }
    .hge-hero__title::after { width: 50px; }
    .hge-hero__subtitle { font-size: 0.95rem; }
    .hge-hero__location { letter-spacing: 0.06em; font-size: 0.78rem; }
    .hge-hero__actions { gap: 0.75rem; }
    .hge-hero__actions .hge-btn { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
    .hge-hero__overlay { background: linear-gradient(90deg, rgba(15,36,68,0.7) 0%, rgba(15,36,68,0.4) 50%, rgba(15,36,68,0.2) 100%); }

    /* ---- Section Spacing ---- */
    .hge-section__title { font-size: 1.5rem; }
    .hge-about { padding: 3rem 0; }
    .hge-vision { padding: 3rem 0; }
    .hge-principal { padding: 3rem 0; }
    .hge-whyus { padding: 3rem 0; }
    .hge-facilities { padding: 3rem 0; }
    .hge-gallery { padding: 3rem 0; }
    .hge-news-events { padding: 3rem 0; }
    .hge-admissions-cta { padding: 3rem 0; }
    .hge-contact { padding: 3rem 0; }
    .hge-highlights { padding: 2rem 0; }
    .hge-highlights__grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    .hge-vision__grid { grid-template-columns: 1fr; }
    .hge-whyus__grid { grid-template-columns: 1fr; }
    .hge-facilities__grid { grid-template-columns: 1fr; }
    .hge-gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .hge-contact__grid { grid-template-columns: 1fr; }
    .hge-footer__grid { grid-template-columns: 1fr; }
    .hge-news-card { grid-template-columns: 1fr; }
    .hge-news-card__image img { height: 160px; }
    .hge-principal__wrapper { grid-template-columns: 1fr; }
    .hge-principal__media { max-width: 180px; margin: 0 auto; }
    .hge-admissions-cta__actions { flex-direction: column; align-items: center; }
    .hge-leadership { padding: 3rem 0; }
    .hge-leadership__grid { grid-template-columns: 1fr; }
    .hge-leadership__card { max-height: none; }
    .hge-leadership__photo-wrap { width: 120px; height: 155px; }
    .hge-leadership__name { font-size: 1.15rem; }
    .hge-leadership__role { font-size: 0.82rem; }
}
@media (max-width: 480px) {
    .hge-header__contact { font-size: 0.7rem; gap: 0.25rem; }
    .hge-hero { height: 420px; }
    .hge-hero__title { font-size: 1.5rem; }
    .hge-hero__title::after { width: 40px; }
    .hge-hero__subtitle { font-size: 0.9rem; }
    .hge-hero__actions { flex-direction: column; width: 100%; }
    .hge-hero__actions .hge-btn { width: 100%; text-align: center; }
    .hge-section__title { font-size: 1.35rem; }
    .hge-highlights__grid { grid-template-columns: 1fr; }
    .hge-whyus__grid { grid-template-columns: 1fr; }
    .hge-facilities__grid { grid-template-columns: 1fr; }
    .hge-gallery__grid { grid-template-columns: 1fr; }
    .hge-contact__grid { grid-template-columns: 1fr; }
    .hge-admissions-cta__content h2 { font-size: 1.5rem; }
    .hge-admissions-cta__content p { font-size: 0.95rem; }
    .hge-life__item--large { height: 180px; }
    .hge-life__item { height: 140px; }
    .hge-sig-grid { grid-template-columns: 1fr; }
    .hge-sig-right { margin-top: 2rem; }
    .hge-sig-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================
 * Signature Section — Premium Design
 * ============================================= */
.hge-signature {
    padding: 6rem 0 5rem;
    background: #fafbfc;
    position: relative;
    overflow: hidden;
}
.hge-signature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hge-gold), transparent);
}

/* Header */
.hge-sig-header { text-align: center; margin-bottom: 3.5rem; }
.hge-sig-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--hge-gold);
    margin-bottom: 1rem;
}
.hge-sig-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hge-navy);
    line-height: 1.25;
    margin: 0 0 1.5rem;
    letter-spacing: -0.5px;
}
.hge-sig-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    gap: 0;
}
.hge-sig-divider span {
    display: block;
    width: 70px;
    height: 3px;
    background: var(--hge-gold);
    border-radius: 2px;
    position: relative;
}
.hge-sig-divider span::before,
.hge-sig-divider span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--hge-gold);
    opacity: 0.5;
}
.hge-sig-divider span::before { right: calc(100% + 12px); }
.hge-sig-divider span::after { left: calc(100% + 12px); }
.hge-sig-subtitle {
    font-size: 1.05rem;
    color: var(--hge-text-light);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Two-Column Grid */
.hge-sig-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* Left Column — Vision + Mission Vertical Cards */
.hge-sig-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hge-sig-vcard {
    display: block;
    background: #fff;
    border-radius: 24px;
    padding: 1.75rem 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15,36,68,0.05), 0 1px 3px rgba(0,0,0,0.03);
    border: 1px solid rgba(201,168,76,0.15);
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.35s ease;
    flex: 1;
}
.hge-sig-vcard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--hge-gold);
    border-radius: 24px 24px 0 0;
    transition: height 0.3s ease;
}
.hge-sig-vcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(15,36,68,0.1), 0 4px 12px rgba(0,0,0,0.04);
}
.hge-sig-vcard:hover::before {
    height: 5px;
}

.hge-sig-vcard-watermark {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50%;
    height: 80%;
    opacity: 0.03;
    pointer-events: none;
    background: url('../images/hge-logo.png') center/contain no-repeat;
}

.hge-sig-vcard-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--hge-navy), var(--hge-navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}
.hge-sig-vcard-icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}

.hge-sig-vcard-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin: 0 0 0.75rem;
    position: relative;
    z-index: 1;
}
.hge-sig-vcard-text {
    font-size: 0.95rem;
    color: var(--hge-text-light);
    line-height: 1.75;
    margin: 0 0 1rem;
    position: relative;
    z-index: 1;
}
.hge-sig-vcard-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hge-gold);
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: gap 0.3s ease, color 0.3s ease;
}
.hge-sig-vcard-cta::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--hge-gold);
    transition: width 0.3s ease;
}
.hge-sig-vcard:hover .hge-sig-vcard-cta { gap: 0.7rem; }
.hge-sig-vcard:hover .hge-sig-vcard-cta::after { width: 100%; }
.hge-sig-vcard-cta svg { transition: transform 0.3s ease; }
.hge-sig-vcard:hover .hge-sig-vcard-cta svg { transform: translateX(3px); }

/* Right Column */
.hge-sig-right { display: flex; flex-direction: column; gap: 1.5rem; }
.hge-sig-right-header { margin-bottom: 0; }
.hge-sig-right-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hge-navy);
    margin: 0;
}

/* Resource Panels */
.hge-sig-panel {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(15,36,68,0.04);
    border: 1px solid rgba(201,168,76,0.1);
}
.hge-sig-panel--cbse { border-left: 4px solid var(--hge-gold); }
.hge-sig-panel-head {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hge-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--hge-border);
}
.hge-sig-panel-grid { display: flex; flex-direction: column; gap: 5px; }

/* Resource Tiles */
.hge-sig-tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--hge-text);
    transition: all 0.25s ease;
    position: relative;
}
.hge-sig-tile {
    border-left: 3px solid transparent;
    transition: all 0.3s ease, border-left-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.hge-sig-tile:hover {
    background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(15,36,68,0.03));
    border-left-color: var(--hge-gold);
    transform: translateX(6px);
}
.hge-sig-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(15,36,68,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--hge-navy);
    transition: all 0.25s ease;
}
.hge-sig-tile:hover .hge-sig-tile-icon { background: rgba(15,36,68,0.12); color: var(--hge-navy); }
.hge-sig-tile-icon--gold { background: rgba(201,168,76,0.1); color: var(--hge-gold); }
.hge-sig-tile:hover .hge-sig-tile-icon--gold { background: rgba(201,168,76,0.18); }

.hge-sig-tile-text { flex: 1; min-width: 0; }
.hge-sig-tile-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hge-navy);
    margin-bottom: 2px;
    transition: color 0.25s ease;
}
.hge-sig-tile:hover .hge-sig-tile-name { color: var(--hge-navy); }
.hge-sig-tile-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--hge-text-light);
    opacity: 0.8;
}

.hge-sig-tile-ext {
    color: #cbd5e1;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.hge-sig-tile:hover .hge-sig-tile-ext {
    color: var(--hge-gold);
    transform: translateX(4px) scale(1.1);
}

/* Stats Strip */
.hge-sig-stats {
    background: var(--hge-navy);
    padding: 3.5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}
.hge-sig-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hge-gold), transparent);
}
.hge-sig-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}
.hge-sig-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hge-sig-stat-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(201,168,76,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.hge-sig-stat:hover .hge-sig-stat-ring {
    border-color: var(--hge-gold);
    transform: scale(1.05);
}
.hge-sig-stat-ring svg { width: 26px; height: 26px; stroke: var(--hge-gold); }
.hge-sig-stat-num { font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 0.25rem; }
.hge-sig-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.hge-sig-quote {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,0.45);
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Signature Section Responsive */
@media (max-width: 1024px) { .hge-sig-grid { gap: 2rem; } }
@media (max-width: 768px) {
    .hge-signature { padding: 4rem 0 3rem; }
    .hge-sig-title { font-size: 1.8rem; }
    .hge-sig-grid { grid-template-columns: 1fr; }
    .hge-sig-stats { padding: 3rem 0; }
    .hge-sig-stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .hge-sig-stat-num { font-size: 1.5rem; }
    .hge-sig-stat-ring { width: 56px; height: 56px; }
    .hge-sig-vcard { padding: 1.75rem 1.5rem; }
}
@media (max-width: 480px) {
    .hge-sig-title { font-size: 1.5rem; }
    .hge-sig-stats-grid { grid-template-columns: 1fr 1fr; }
    .hge-sig-stat-ring { width: 48px; height: 48px; }
    .hge-sig-stat-num { font-size: 1.3rem; }
    .hge-sig-stat-label { font-size: 0.72rem; }
}
