:root {
    --green-primary: #1a7a3c;
    --green-dark: #0f5a2a;
    --green-light: #2e9d52;
    --yellow-primary: #fdd835;
    --yellow-light: #fff176;
    --maroon: #8b1a1a;
    --maroon-dark: #6b1212;
    --cream: #fdf8ee;
    --cream-dark: #f5ead6;
    --text-dark: #1a1a1a;
    --text-muted: #5a5a5a;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

/* Top Bar */
.top-bar {
    background: var(--green-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: var(--yellow-primary);
}

.top-bar a:hover {
    color: var(--yellow-light);
}

.top-bar i {
    margin-right: 6px;
    color: var(--yellow-primary);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.cms-admin-mode .header {
    top: 42px;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    max-width: 1280px;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 340px;
    text-decoration: none;
}

.logo-area img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--green-primary);
    flex-shrink: 0;
}

.logo-text {
    min-width: 0;
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-primary);
    line-height: 1.2;
    white-space: nowrap;
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--maroon);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo-text .location {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--green-primary);
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.main-nav {
    flex: 0 1 auto;
    min-width: 0;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: 8px;
    color: var(--text-dark);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--green-primary);
    color: var(--white);
}

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 50%, var(--green-light) 100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/gate.jpg') center/cover no-repeat;
    opacity: 0.25;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(253, 216, 53, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(253, 216, 53, 0.1) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 80px 20px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero-content .motto {
    font-size: 1.1rem;
    color: var(--yellow-primary);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--yellow-primary);
    color: var(--green-dark);
    border-color: var(--yellow-primary);
}

.btn-primary:hover {
    background: var(--yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 216, 53, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--green-primary);
    transform: translateY(-2px);
}

.btn-maroon {
    background: var(--maroon);
    color: var(--white);
    border-color: var(--maroon);
}

.btn-maroon:hover {
    background: var(--maroon-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 26, 26, 0.4);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--yellow-primary);
}

.hero-badge {
    position: absolute;
    bottom: -15px;
    left: -15px;
    background: var(--maroon);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.hero-badge i {
    color: var(--yellow-primary);
    margin-right: 8px;
}

/* Stats */
.stats-section {
    background: var(--white);
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 35px 20px;
    border-right: 1px solid var(--cream-dark);
    transition: background var(--transition);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: var(--cream);
}

.stat-item i {
    font-size: 2rem;
    color: var(--green-primary);
    margin-bottom: 10px;
}

.stat-item .number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--maroon);
    display: block;
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .tag {
    display: inline-block;
    background: rgba(26, 122, 60, 0.1);
    color: var(--green-primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-primary), var(--yellow-primary));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* About Preview */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image .experience-badge {
    position: absolute;
    top: 20px;
    right: -20px;
    background: var(--yellow-primary);
    color: var(--green-dark);
    padding: 20px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: var(--shadow);
    text-align: center;
    line-height: 1.2;
}

.about-image .experience-badge span {
    font-size: 1.8rem;
}

.about-image .experience-badge small {
    font-size: 0.65rem;
    font-weight: 600;
}

.about-content h3 {
    font-size: 1.8rem;
    color: var(--green-dark);
    margin-bottom: 15px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.feature-list {
    margin: 25px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-weight: 500;
}

.feature-list i {
    color: var(--green-primary);
    font-size: 1.1rem;
    width: 24px;
}

/* Facilities Cards */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.facility-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-bottom: 4px solid transparent;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--green-primary);
}

.facility-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform var(--transition);
}

.facility-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.facility-card .icon i {
    font-size: 1.6rem;
    color: var(--white);
}

.facility-card h3 {
    font-size: 1.15rem;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.facility-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* House System */
.houses-section {
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
    color: var(--white);
}

.houses-section .section-header h2 {
    color: var(--white);
}

.houses-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.houses-section .section-header::after {
    background: linear-gradient(90deg, var(--yellow-primary), var(--white));
}

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

.house-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition);
}

.house-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.house-card .house-color {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--white);
}

.house-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.house-card p {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(26, 122, 60, 0.85));
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    padding: 70px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.page-banner .breadcrumb {
    margin-top: 10px;
    font-size: 0.95rem;
    opacity: 0.85;
    position: relative;
}

.page-banner .breadcrumb a {
    color: var(--yellow-primary);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform var(--transition);
}

.contact-info-card:hover {
    transform: translateX(5px);
}

.contact-info-card .icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-card .icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.contact-info-card h4 {
    color: var(--green-dark);
    margin-bottom: 5px;
}

.contact-info-card p,
.contact-info-card a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-info-card a:hover {
    color: var(--green-primary);
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    color: var(--green-dark);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--cream-dark);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition);
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-primary);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Academics */
.academics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.academic-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.academic-card:hover {
    transform: translateY(-5px);
}

.academic-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.academic-card .content {
    padding: 25px;
}

.academic-card h3 {
    color: var(--green-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.academic-card h3 i {
    color: var(--yellow-primary);
    background: var(--green-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Leadership */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.leader-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition);
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.leader-card .info {
    padding: 20px;
}

.leader-card h3 {
    color: var(--green-dark);
    font-size: 1.1rem;
}

.leader-card p {
    color: var(--maroon);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Transport */
.transport-section {
    background: var(--white);
}

.transport-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.transport-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cream-dark);
    font-weight: 500;
}

.transport-features i {
    color: var(--yellow-primary);
    background: var(--green-primary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 60px;
}

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

.footer-brand img {
    width: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    border: 3px solid var(--yellow-primary);
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer h4 {
    color: var(--yellow-primary);
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--yellow-primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--yellow-primary);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom span {
    color: var(--yellow-primary);
}

.footer-bottom p {
    margin: 0;
}

.footer-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(253, 216, 53, 0.35);
    color: var(--yellow-primary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
}

.footer-admin-link:hover {
    background: var(--yellow-primary);
    color: var(--green-dark);
    border-color: var(--yellow-primary);
}

.footer-admin-link--bottom {
    margin-top: 0;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.footer-admin-link--bottom:hover {
    color: var(--green-dark);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--green-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--yellow-primary);
    color: var(--green-dark);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-toggle {
        display: block;
    }

    .header .container {
        flex-wrap: wrap;
        position: relative;
    }

    .logo-area {
        max-width: calc(100% - 50px);
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        display: none;
        padding: 12px 16px 18px;
        z-index: 1001;
        width: 100%;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-nav a {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 14px;
        min-width: 0;
        display: none;
        background: transparent;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .about-grid,
    .contact-grid,
    .transport-content {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .houses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .facilities-grid,
    .academics-grid,
    .houses-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--cream-dark);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .top-bar .container {
        justify-content: center;
        text-align: center;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-area img {
        width: 50px;
        height: 50px;
    }
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown > a i {
    font-size: 0.65rem;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 1100;
    list-style: none;
    margin: 0;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    padding: 10px 16px;
    border-radius: 0;
    font-size: 0.88rem;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: var(--cream);
    color: var(--green-primary);
}

/* New School Pages */
.section-alt {
    background: var(--cream);
}

.page-banner--compact {
    padding: 40px 0 30px;
}

.admissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.admission-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--green-primary);
}

.admission-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(26, 122, 60, 0.1);
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.admission-steps {
    margin-top: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

.infrastructure-grid,
.achievements-grid,
.events-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.infrastructure-card,
.achievement-card,
.event-card,
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.infrastructure-card:hover,
.achievement-card:hover,
.event-card:hover,
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.infrastructure-image,
.achievement-image,
.event-image,
.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.infrastructure-image img,
.achievement-image img,
.event-image img,
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.infrastructure-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.infrastructure-body,
.achievement-body,
.event-body,
.blog-body {
    padding: 22px;
}

.infra-category,
.achievement-category,
.event-category,
.blog-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--green-primary);
    margin-bottom: 8px;
}

.infra-features {
    margin-top: 12px;
    padding: 0;
    list-style: none;
}

.infra-features li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.infra-features i {
    color: var(--green-primary);
    margin-right: 8px;
}

.achievement-year {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--yellow-primary);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.event-card {
    position: relative;
}

.event-card--upcoming {
    border: 2px solid var(--green-primary);
}

.event-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--maroon);
    color: var(--white);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    line-height: 1.1;
}

.event-date-badge .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.event-date-badge .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-location,
.event-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.blog-image {
    display: block;
}

.blog-image .blog-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--green-primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-body h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.blog-body h3 a {
    color: var(--text-dark);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--green-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-single-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.blog-single h1 {
    font-size: 2.2rem;
    margin: 12px 0 16px;
}

.blog-single-image {
    margin: 24px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.blog-single-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.blog-content {
    line-height: 1.9;
    color: var(--text-muted);
}

.blog-sidebar {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.recent-posts {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.recent-posts li {
    padding: 12px 0;
    border-bottom: 1px solid var(--cream-dark);
}

.recent-posts a {
    color: var(--text-dark);
    font-weight: 500;
}

.recent-posts small {
    display: block;
    color: var(--text-muted);
    margin-top: 4px;
}

.notices-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--green-primary);
}

.notice-card--pinned {
    border-left-color: var(--maroon);
    background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}

.notice-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.notice-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(26, 122, 60, 0.1);
    color: var(--green-primary);
}

.notice-type--admission { background: rgba(139, 26, 26, 0.1); color: var(--maroon); }
.notice-type--job { background: rgba(253, 216, 53, 0.2); color: #8a6d00; }

.notice-pin {
    font-size: 0.8rem;
    color: var(--maroon);
    font-weight: 600;
}

.notice-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: auto;
}

.notice-image {
    margin-top: 16px;
    border-radius: var(--radius);
    overflow: hidden;
}

.notice-image img {
    max-width: 100%;
    height: auto;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.download-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
}

.download-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(26, 122, 60, 0.1);
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.download-section {
    margin-bottom: 40px;
}

.download-section-title {
    margin-bottom: 20px;
    color: var(--green-primary);
}

.home-updates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.home-notices-list,
.home-blog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-notice-item,
.home-blog-item {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.home-blog-item {
    display: flex;
    gap: 14px;
    align-items: center;
}

.home-blog-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.home-notice-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--green-primary);
    margin-bottom: 4px;
}

.home-notice-item strong,
.home-blog-item strong {
    display: block;
    color: var(--text-dark);
}

.home-notice-item small,
.home-blog-item small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.pagination-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

@media (max-width: 992px) {
    .infrastructure-grid,
    .achievements-grid,
    .events-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-single-layout {
        grid-template-columns: 1fr;
    }

    .admissions-grid,
    .home-updates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .infrastructure-grid,
    .achievements-grid,
    .events-grid,
    .blog-grid,
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

/* SEO / AEO helpers */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aeo-answer:not(.visually-hidden) {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    background: rgba(26, 122, 60, 0.08);
    border-left: 4px solid var(--green-primary);
    border-radius: var(--radius);
    font-size: 1.05rem;
    color: var(--text-dark);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0 20px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 18px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    color: var(--green-primary);
    font-size: 1.4rem;
    font-weight: 400;
}

.faq-item[open] summary::after { content: '–'; }

.faq-answer {
    padding: 0 0 18px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--cream-dark);
    padding-top: 14px;
}
