/* CSS Variables */
:root {
    --primary-color: #002366;
    /* Deep Royal Blue */
    --secondary-color: #FFD700;
    /* Golden Yellow */
    --accent-color: #D32F2F;
    /* Red */
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #D32F2F, #b71c1c);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b71c1c, #8b0000);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 215, 0, 0.7);
    color: #FFD700;
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
}

.btn-text {
    color: var(--accent-color);
    font-weight: 600;
}

.btn-text:hover {
    color: var(--primary-color);
}

/* Premium Header Styles */
.main-header {
    background: url('images/header-bg.png') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 1rem 0;
    /* Compact padding */
    position: relative;
    border-bottom: 0;
    /* Seamless stack */
    z-index: 1001;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Use space-between to handle logo-content-badge spacing */
    gap: 1rem;
    position: relative;
    height: 100%;
}

.header-logo-img {
    height: 75px;
    /* Reduced as requested */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.header-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Position Estd. Badge Absolute Right */
.estd-badge {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-heading);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: none;
    box-shadow: none;
    padding: 0;
}

.header-content h1 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 0.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 700;
}

.header-content .address {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    margin-bottom: 0.3rem;
    color: #eee;
    text-transform: uppercase;
}

.header-bottom {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.2rem;
    width: 100%;
}

.header-bottom .motto {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.header-bottom .motto .highlight {
    color: var(--secondary-color);
    font-family: var(--font-main);
    font-style: normal;
}

.header-bottom .affiliation {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0;
}


/* Navigation */
.navbar {
    background: linear-gradient(to right, #001f5c, #002366, #001f5c);
    /* Premium Gradient */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1002;
    /* Increased z-index to stay above header */
    height: 60px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle top light */
}

.nav-container {
    display: flex;
    justify-content: center;

    .houses-section {
        padding: 4rem 0;
        background: #fff;
    }

    .houses-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }

    .house-card {
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        padding: 2.5rem;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid #eee;
        position: relative;
        overflow: hidden;
    }

    .house-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .house-icon-wrapper {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        font-size: 2rem;
        color: #fff;
    }

    .house-card h3 {
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
        font-weight: 700;
    }

    .house-motto {
        font-family: 'Playfair Display', serif;
        font-style: italic;
        color: #666;
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    /* Red House */
    .house-red {
        border-top: 5px solid #e74c3c;
    }

    .house-red .house-icon-wrapper {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    }

    .house-red h3 {
        color: #c0392b;
    }

    /* Green House */
    .house-green {
        border-top: 5px solid #2ecc71;
    }

    .house-green .house-icon-wrapper {
        background: linear-gradient(135deg, #2ecc71, #27ae60);
        box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    }

    .house-green h3 {
        color: #27ae60;
    }

    /* Yellow House */
    .house-yellow {
        border-top: 5px solid #f1c40f;
    }

    .house-yellow .house-icon-wrapper {
        background: linear-gradient(135deg, #f1c40f, #f39c12);
        box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
    }

    .house-yellow h3 {
        color: #d35400;
    }

    /* --- Clubs Section --- */
    .clubs-section {
        padding: 4rem 0;
        background: #f9f9f9;
    }

    .clubs-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }

    .club-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        height: 100%;
    }

    .club-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .club-image {
        height: 180px;
        background: #eee;
        position: relative;
        overflow: hidden;
    }

    .club-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .club-card:hover .club-image img {
        transform: scale(1.1);
    }

    .club-content {
        padding: 1.5rem;
    }

    .club-content h4 {
        color: var(--primary-color);
        margin-bottom: 0.5rem;
        font-size: 1.25rem;
    }

    .club-content p {
        font-size: 0.95rem;
        color: #555;
        line-height: 1.6;
    }

    /* --- POSH Section --- */
    .posh-section {
        padding: 4rem 0;
        background: #fff;
    }

    .posh-container {
        background: linear-gradient(to right, #ffffff, #f0f4f8);
        border-left: 5px solid var(--primary-color);
        padding: 3rem;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }

    .posh-header {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    .posh-header i {
        font-size: 2.5rem;
        color: var(--primary-color);
    }

    .posh-header h2 {
        margin: 0;
        color: var(--primary-color);
    }

    .posh-content h4 {
        color: var(--secondary-color);
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .posh-list {
        list-style: none;
        padding: 0;
        margin-top: 1rem;
    }

    .posh-list li {
        padding-left: 1.5rem;
        position: relative;
        margin-bottom: 0.5rem;
        color: #555;
    }

    .posh-list li::before {
        content: "\f00c";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        left: 0;
        color: var(--secondary-color);
    }

    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 3rem;
    /* Elegant spacing */
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 1.2rem 0;
    position: relative;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Premium Gold Contact Button */
.btn-nav {
    display: inline-block !important;
    /* Required for min-width and padding to work */
    background: linear-gradient(135deg, #FFD700, #FDB931);
    /* Gold Gradient */
    color: var(--primary-color) !important;
    padding: 0.7rem 1.5rem !important;
    /* Force Height/Width change */
    min-width: 125px !important;
    /* Force Broad shape */
    text-align: center;
    border-radius: 4px;
    /* Rectangular shape */
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(253, 185, 49, 0.3);
    text-transform: uppercase;
}

.btn-nav:hover {
    background: linear-gradient(135deg, #FDB931, #FFD700);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 185, 49, 0.5);
}

/* Remove ::after for button */
.btn-nav::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    position: absolute;
    left: 1rem;
    /* Positioning for mobile */
}

/* Hero Section Updates */
.hero {
    height: calc(100vh - 250px);
    /* Adjust height based on header */
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 0;
    /* Removed margin-top */
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .highlight {
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hero Buttons Row */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-buttons .btn {
    min-width: 240px;
    text-align: center;
    font-size: 0.85rem;
    padding: 1rem 1.5rem;
    letter-spacing: 0.8px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
}

.principal-msg {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Academic Excellence */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 35, 102, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

/* Notice Board & News Section */
.notice-news-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.notice-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.section-header-left h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header-left .line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-bottom: 2rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-content .date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: fit-content;
}

.notice-board-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
    /* Ensure header stays on top */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.notice-board-header h3 {
    color: white;
    margin-bottom: 0;
}

.notice-board-container {
    height: 400px;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    background: white;
    /* Ensure background is solid */
}

.notice-list {
    padding: 0 1.5rem;
    animation: scrollUp 15s linear infinite;
}

.notice-board-container:hover .notice-list {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.notice-list li {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list a {
    display: block;
    color: var(--text-dark);
}

.notice-list a:hover p {
    color: var(--primary-color);
}

.new-tag {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.notice-list p {
    display: inline;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.download-icon {
    float: right;
    color: #888;
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(0, 35, 102, 0.9), rgba(0, 35, 102, 0.9)), url('images/hero-1.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    border-top: 4px solid var(--secondary-color);
}

.quote-icon {
    font-size: 2rem;
    color: rgba(0, 35, 102, 0.1);
    margin-bottom: 1rem;
}

.achievement-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.student-info h4 {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.student-info span {
    font-size: 0.85rem;
    color: #777;
}

/* Campus Life (Redesigned) */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.campus-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.campus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.campus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.campus-card:hover::before {
    opacity: 0.6;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    color: white;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.campus-card:hover .card-content {
    transform: translateY(0);
}

.card-content h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.campus-card:hover .card-content p {
    opacity: 1;
}

.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.card-wide {
    grid-column: span 2;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

.modal-large {
    max-width: 900px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* CBSE Modal Styles */
.cbse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cbse-item h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.doc-list li {
    margin-bottom: 0.5rem;
}

.doc-list a {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-list a:hover {
    color: var(--accent-color);
}

.cbse-table-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.cbse-table {
    width: 100%;
    border-collapse: collapse;
}

.cbse-table th,
.cbse-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cbse-table th {
    background-color: var(--primary-color);
    color: white;
}

.cbse-table tr:hover {
    background-color: #f5f5f5;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.map-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    height: 150px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Welcome Section */
.welcome-section {
    background-color: white;
    padding: 2.5rem 0;
    /* Changed from 4rem to 2.5rem for reduced vertical space */
}

.welcome-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    /* Text gets more space, Image is compact on right */
    gap: 3rem;
    align-items: center;
}

.welcome-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.highlight-text {
    color: var(--secondary-color);
    /* Gold highlight */
}

.welcome-divider {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.welcome-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

.welcome-image-container {
    display: flex;
    justify-content: center;
}

.saint-figure {
    text-align: center;
    background: white;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #eee;
}

.saint-img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    /* Limit height */
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.saint-figure figcaption {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .welcome-grid {
        grid-template-columns: 1fr;
    }
}

/* Leadership & Notice Section */
.leadership-notice-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Leadership takes more space */
    gap: 3rem;
    align-items: start;
}

.office-bearers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Cards in a row */
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.bearer-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.bearer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.bearer-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: 3px solid var(--secondary-color);
}

.bearer-info h4 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.bearer-info p {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Office Bearers Carousel */
.bearers-carousel {
    position: relative;
    max-width: 100%;
    margin: 1.5rem 0;
}

.bearers-track-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.bearers-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bearer-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.bearer-card-large {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bearer-img-large {
    width: 200px;
    /* Wider */
    height: 260px;
    /* Taller (Portrait Mode) */
    border-radius: 10px;
    /* Rounded Rectangle */
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bearer-info-large h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.bearer-info-large p {
    font-size: 1rem;
    color: #555;
    font-weight: 600;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 31, 92, 0.8);
    /* Primary color with opacity */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* Ensure Notice Board fits new container */
.notice-column-shifted {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

@media (max-width: 992px) {
    .leadership-notice-grid {
        grid-template-columns: 1fr;
        /* Stack on tablet */
    }

    .office-bearers-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Keep 3 row on tablet */
    }
}

@media (max-width: 576px) {
    .office-bearers-grid {
        grid-template-columns: 1fr;
        /* Stack bearers on mobile */
    }
}

/* Principal Section Styles (Existing) */
@media (max-width: 992px) {
    .main-header {
        padding: 1.5rem 0;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .header-logo-img {
        height: 80px;
    }

    .header-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .notice-grid {
        grid-template-columns: 1fr;
    }

    .campus-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .card-large {
        grid-column: span 2;
        height: 300px;
    }

    .card-wide {
        grid-column: span 2;
        height: 200px;
    }

    .campus-card {
        height: 200px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        position: absolute;
        /* Changed from fixed to align with navbar */
        top: 100%;
        /* Start directly below navbar */
        left: 0;
        width: 100%;
        max-height: calc(100vh - 60px);
        /* Allow scrolling */
        overflow-y: auto;
        /* Enable scroll if content overflows */
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem 0;
        /* Reduced padding */
        transform: scaleY(0);
        /* Animate height/scale instead of left */
        transform-origin: top;
        transition: transform 0.3s ease-in-out;
        justify-content: flex-start;
        gap: 0;
        /* Remove gap, use padding on items */
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        transform: scaleY(1);
        /* Show menu */
        /* left: 0; removed */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .hero-buttons .btn {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-content h1 {
        font-size: 1.4rem;
    }

    .header-content .address {
        font-size: 0.9rem;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 1001;
    border-top: 3px solid var(--secondary-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: slideIn 0.3s ease;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    text-transform: none;
}

/* Ensure reset for dropdown items */
.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown i {
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.3s;
}

.dropdown:hover>a>i {
    transform: rotate(180deg);
}

.news-item .date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.news-item a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-item a:hover {
    color: var(--primary-color);
}

/* Premium Recent Events Card */
.recent-events-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-event {
    position: relative;
}

.featured-image-container {
    position: relative;
    overflow: hidden;
}

.featured-image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-event:hover .featured-image-container img {
    transform: scale(1.05);
}

.date-badge-large {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.date-badge-large .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.date-badge-large .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
}

.featured-content {
    padding: 1.5rem;
}

.featured-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.featured-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 0 1.5rem;
}

.upcoming-events-list {
    padding: 1.5rem;
    background: #fafafa;
    flex-grow: 1;
}

.event-item-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
}

.event-item-compact:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.date-badge-small {
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    text-align: center;
    min-width: 60px;
}

.date-badge-small .day {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.date-badge-small .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
}

.event-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-dark);
}

.event-info a {
    font-size: 0.85rem;
    color: #666;
    transition: color 0.2s;
}

.event-info a:hover {
    color: var(--primary-color);
}

/* Principal's Message Section */
.principal-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.principal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.principal-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

.principal-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 35, 102, 0.9);
    color: white;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(5px);
}

.principal-badge span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.principal-badge small {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.principal-content blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
}

.principal-content p {
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.signature {
    height: 120px;
    opacity: 0.8;
}

/* Fix Overlap Issue */
.notice-news-section {
    padding-bottom: 6rem;
    /* Increased padding */
}

.recent-events-card {
    margin-bottom: 2rem;
    /* Ensure spacing below card */
}

@media (max-width: 992px) {
    .principal-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* =========================================
   GALLERY PAGE STYLES
   ========================================= */

.gallery-section {
    padding: 3rem 0;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    aspect-ratio: 4/3;
    /* Enforce consistent aspect ratio */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   SOCIAL MEDIA STYLES
   ========================================= */

/* Social Media Section */
.social-feed-section {
    background: #f4f6f9;
    padding: 4rem 0;
    text-align: center;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.social-card {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 5px solid #ccc;
}

.social-card.facebook-card {
    border-color: #1877F2;
}

.social-card.instagram-card {
    border-color: #E1306C;
}

.social-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
}

.social-card iframe {
    width: 100%;
    max-width: 500px;
    /* Limit width to Facebook's max supported width */
    border: none;
    overflow: hidden;
    height: 500px;
    margin: 0 auto;
    /* Ensure centering if block */
    display: block;
}

/* =========================================
   VIDEO TOUR PAGE STYLES
   ========================================= */

.video-display-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #f4f6f9);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    /* 2 columns on desktop */
    gap: 2.5rem;
    padding: 2rem 0;
}

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    width: 100%;
    position: relative;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

.video-info {
    padding: 1.5rem;
    text-align: left;
}

.video-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.video-info p {
    color: #666;
    font-size: 0.95rem;
}

/* =========================================
   SCHOOL PROFILE PAGE STYLES
   ========================================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
    display: flex;
    gap: 10px;
}

.info-list li strong {
    color: #333;
    min-width: 120px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.info-table th,
.info-table td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: left;
}

.info-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.stat-box {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

/* Cleaned up redundant styles */

/* =========================================
   POSTER / EVENTFUL PAST STYLES
   ========================================= */
.poster-container {
    padding: 2rem 0;
    text-align: center;
    background-color: #f9f9f9;
}

.poster-frame {
    display: inline-block;
    max-width: 100%;
    border: 10px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    /* transition: transform 0.3s ease; */
    /* Optional hover effect */
}

.poster-frame img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================
   NEWS & SOCIAL HOME PAGE SPLIT
   ========================================= */
.news-social-section {
    padding: 4rem 0;
    background: #fdfdfd;
}

.news-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.news-column {
    flex: 3;
    /* 60% approx */
    min-width: 350px;
}

.social-column {
    flex: 2;
    /* 40% approx */
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* News Cards */
.news-card-home {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.news-card-home:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-date-badge {
    background: var(--light-bg);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    min-width: 80px;
    height: fit-content;
}

.news-date-badge .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.news-date-badge .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666;
    margin-top: 5px;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.news-content h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.read-more-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more-link:hover {
    text-decoration: underline;
}

.view-all-btn-container {
    margin-top: 2rem;
    text-align: left;
}

/* Adjust social card for sidebar */
.social-column .social-card {
    max-width: 100%;
    min-width: 0;
}

/* =========================================
   SCROLLING NEWS MARQUEE STYLES
   ========================================= */

.news-marquee-container {
    height: 450px;
    /* Fixed height panel */
    overflow: hidden;
    position: relative;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
}

.news-marquee-content {
    display: flex;
    flex-direction: column;
    /* margins handle spacing now */
    animation: newsScroll 35s linear infinite;
    -webkit-animation: newsScroll 35s linear infinite;
    will-change: transform;
}

.news-marquee-container:hover .news-marquee-content {
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
}

@keyframes newsScroll {
    0% {
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
    }
}

/* Scrollable News Card */
.news-card-scroll {
    background: #fff;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--secondary-color);
    transition: background 0.2s;
    margin-bottom: 1.5rem;
    /* Explicit spacing */
}

.news-card-scroll:hover {
    background: #fffef8;
}

.news-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.news-title-scroll {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.news-date-small {
    font-size: 0.8rem;
    background: var(--light-bg);
    padding: 2px 8px;
    border-radius: 4px;
    color: #666;
    white-space: nowrap;
}

.news-desc-scroll {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Standard property */
    /* Show 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.read-more-scroll {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.read-more-scroll:hover {
    text-decoration: underline;
}

/* =========================================
   NEW SOCIAL LINK CARDS (Minimal & Clean)
   ========================================= */
.social-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2.5rem;
    border-radius: 12px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.social-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.social-link-card i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

/* Brand Specific Colors (Border only initially) */
.social-fb {
    border-color: #1877F2;
    color: #1877F2;
}

.social-fb i {
    color: #1877F2;
}

.social-fb:hover {
    background: #1877F2;
    color: #fff;
}

.social-fb:hover i {
    color: #fff;
}


.social-insta {
    border-color: #E1306C;
    color: #E1306C;
}

.social-insta i {
    color: #E1306C;
}

.social-insta:hover {
    background: #E1306C;
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    border-color: transparent;
    color: #fff;
}

.social-insta:hover i {
    color: #fff;
}


.social-yt {
    border-color: #FF0000;
    color: #FF0000;
}

.social-yt i {
    color: #FF0000;
}

.social-yt:hover {
    background: #FF0000;
    color: #fff;
}

.social-yt:hover i {
    color: #fff;
}


/* =========================================
   HALL OF FAME MARQUEE STYLES
   ========================================= */
.hall-of-fame-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    /* More breathing room */
    background: #fdfdfd;
    /* Subtle off-white bg */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hall-of-fame-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.hall-of-fame-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Moves half the width (the first set of 10) then snaps back */
}

/* Updated Card for Marquee */
.achievement-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Deeper shadow */
    flex: 0 0 400px;
    /* Fixed width to ensure 3 fit on typical desktop */
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
    white-space: normal;
    /* Ensure text wraps inside card */
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    /* Push to bottom */
}

.student-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* =========================================
   FACULTY PAGE STYLES
   ========================================= */
/* Hero Section */
.faculty-hero-section {
    margin-bottom: 3rem;
}

.faculty-group-photo img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.faculty-description {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.faculty-description .lead {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Accordion Styles */
.faculty-accordion {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background-color: #003366;
    /* Deep Blue */
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.accordion-header:hover {
    background-color: var(--secondary-color);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(45deg);
    /* Turn + to x */
}

.accordion-content {
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 1.5rem;
    /* Padding added via JS/transition logic */
}

/* Content inside Accordion */
.accordion-body {
    padding: 1.5rem 0;
}

.faculty-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.faculty-list-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    min-width: 250px;
    flex: 1;
    border-left: 4px solid var(--secondary-color);
}

.faculty-list-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.faculty-list-card span {
    font-size: 0.9rem;
    color: #666;
}

.faculty-list-simple ul {
    list-style: none;
    padding: 1.5rem 0;
    column-count: 2;
    /* Two columns for simple lists */
}

.faculty-list-simple li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
}

/* =========================================
   SCHOOL LIFE PAGE STYLES
   ========================================= */

/* --- House System --- */
.houses-section {
    padding: 4rem 0;
    background: #fff;
}

.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.house-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.house-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.house-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
}

.house-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.house-motto {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Red House */
.house-red {
    border-top: 5px solid #e74c3c;
}

.house-red .house-icon-wrapper {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.house-red h3 {
    color: #c0392b;
}

/* Green House */
.house-green {
    border-top: 5px solid #2ecc71;
}

.house-green .house-icon-wrapper {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.house-green h3 {
    color: #27ae60;
}

/* Yellow House */
.house-yellow {
    border-top: 5px solid #f1c40f;
}

.house-yellow .house-icon-wrapper {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
}

.house-yellow h3 {
    color: #d35400;
}

/* --- Clubs Section --- */
.clubs-section {
    padding: 4rem 0;
    background: #f9f9f9;
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.club-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.club-image {
    height: 180px;
    background: #eee;
    position: relative;
    overflow: hidden;
}

.club-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.club-card:hover .club-image img {
    transform: scale(1.1);
}

.club-content {
    padding: 1.5rem;
}

.club-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.club-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* --- POSH Section --- */
.posh-section {
    padding: 4rem 0;
    background: #fff;
}

.posh-container {
    background: linear-gradient(to right, #ffffff, #f0f4f8);
    border-left: 5px solid var(--primary-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.posh-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.posh-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.posh-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.posh-content h4 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.posh-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.posh-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: #555;
}

.posh-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* =========================================
   DOWNLOADS PAGE STYLES
   ========================================= */

.downloads-section {
    padding: 4rem 0;
    background: #fdfdfd;
}

.downloads-category {
    margin-bottom: 4rem;
}

.downloads-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.file-icon {
    width: 60px;
    height: 60px;
    background: #f0f4f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.file-icon.pdf {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.file-icon.doc {
    color: #2980b9;
    background: rgba(41, 128, 185, 0.1);
}

.file-info {
    flex-grow: 1;
}

.file-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

.file-meta {
    font-size: 0.85rem;
    color: #888;
}

.btn-download {
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download:hover {
    background: var(--secondary-color);
    color: #fff;
}

@media (max-width: 500px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .file-info {
        width: 100%;
        margin-bottom: 1rem;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   FACILITIES PAGE STYLES
   ========================================= */

.facilities-page-section {
    padding: 4rem 0;
    background: #fff;
}

/* Spotlight Section (Zig-Zag) */
.spotlight-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-bottom: 6rem;
}

.spotlight-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.spotlight-row.reverse {
    flex-direction: row-reverse;
}

.spotlight-img {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    height: 350px;
}

.spotlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.spotlight-row:hover .spotlight-img img {
    transform: scale(1.05);
}

.spotlight-content {
    flex: 1;
}

.spotlight-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.spotlight-content h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    bottom: -8px;
    left: 0;
}

.spotlight-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-top: 1.5rem;
}

/* Facilities Grid Section */
.facility-grid-section {
    padding-top: 2rem;
}

.section-label {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.grid-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.facility-card {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facility-card:hover img {
    transform: scale(1.1);
}

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Solid dark background for readability */
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.facility-overlay h4 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: #f1c40f;
    /* Changed to Bright Yellow/Gold */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.facility-overlay p {
    font-size: 1rem;
    color: #ffffff;
    /* Explicitly White */
    opacity: 1;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-weight: 500;
}

.facility-card:hover .facility-overlay p {
    max-height: 100px;
    margin-top: 0.5rem;
}

/* Spotlight Mobile Responsiveness */
@media (max-width: 900px) {

    .spotlight-row,
    .spotlight-row.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .spotlight-img {
        width: 100%;
        height: 250px;
    }

    .spotlight-content {
        text-align: center;
    }

    .spotlight-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* =========================================
   FACILITY POPUP MODAL
   ========================================= */
.facility-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.facility-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

#facilityModalImg {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    display: block;
}

.facility-modal-text {
    padding: 2rem;
    text-align: center;
}

#facilityModalTitle {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#facilityModalDesc {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.facility-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.facility-close:hover,
.facility-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 700px) {
    .facility-modal-content {
        width: 95%;
    }
}

/* =========================================
   LIBRARY PAGE STYLES
   ========================================= */

.library-page-section {
    padding: 4rem 0;
    background: #fdfdfd;
}

.library-feature-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.library-img {
    flex: 1;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.library-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.library-feature-split:hover .library-img img {
    transform: scale(1.05);
}

.library-text {
    flex: 1;
}

.library-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.library-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

.library-highlights {
    list-style: none;
    padding: 0;
}

.library-highlights li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.05rem;
    color: #444;
}

.library-highlights li::before {
    content: "\f02d";
    /* Book icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Stats Bar */
.library-stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color), #004080);
    border-radius: 12px;
    color: #fff;
    text-align: center;
    flex-wrap: wrap;
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .library-feature-split {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .library-img {
        width: 100%;
        height: 300px;
    }

    .library-text h2 {
        font-size: 2rem;
    }

    .library-text p {
        text-align: center;
    }

    .library-highlights {
        text-align: left;
        display: inline-block;
    }

    .library-stats-bar {
        flex-direction: column;
        gap: 2rem;
    }
}

/* =========================================
   FEE STRUCTURE PAGE STYLES
   ========================================= */
.fee-page-section {
    padding: 4rem 0;
    background: #fdfdfd;
}

.fee-tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.fee-tab {
    padding: 1rem 2rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.fee-tab:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.fee-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
}

.fee-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.fee-content.active {
    display: block;
}

.fee-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    max-width: 900px;
    margin: 0 auto;
}

.fee-card h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table th,
.fee-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.fee-table th {
    background: #f9f9f9;
    font-weight: 700;
    color: var(--primary-color);
}

.fee-table tr:hover {
    background: #fbfbfb;
}

.fee-total-row td {
    background: #eef4fb;
    color: var(--primary-color);
    font-size: 1.2rem;
    border-top: 2px solid var(--primary-color);
}

.fee-rules {
    margin-top: 4rem;
    background: #fff5e6;
    /* Soft orange/yellow bg for importance */
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
}

.fee-rules h3 {
    color: #d35400;
    /* Darker orange */
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.fee-rules ul {
    padding-left: 1.5rem;
}

.fee-rules li {
    margin-bottom: 0.8rem;
    color: #555;
}

@media (max-width: 600px) {
    .fee-tabs-container {
        flex-direction: column;
    }

    .fee-tab {
        width: 100%;
        text-align: center;
    }

    .fee-table th,
    .fee-table td {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */
.contact-hero-bg {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('images/hero-1.jpg');
    /* Fallback or specific bg */
    background-size: cover;
    background-position: center;
}

.contact-page-section {
    padding: 4rem 0;
    background: #fdfdfd;
}

.contact-grid {
    display: grid;
    /* grid-template-columns: 1fr 1.2fr; Removed split */
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    gap: 3rem;
    align-items: start;
}

.centered-grid .contact-info-wrapper {
    padding-right: 0;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.justify-center {
    justify-content: center;
}

/* Contact Info Side */
.contact-info-wrapper {
    padding-right: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    /* Center alignment for better visual balance */
    gap: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.icon-box {
    background: var(--primary-color);
    color: #fff;
    width: 60px;
    /* Increased size */
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.text-box {
    flex: 1;
    /* Take remaining space */
}

.text-box h4 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.text-box p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.text-box a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.text-box a:hover {
    color: var(--primary-color);
}

.sub-text {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.3rem !important;
}

.connect-social h4 {
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--primary-color);
}

.social-icons-row {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.facebook {
    background: #3b5998;
}

.social-icon.instagram {
    background: #E1306C;
}

.social-icon.youtube {
    background: #FF0000;
}

/* Contact Form Side */
.contact-form-wrapper {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--secondary-color);
}

.form-header h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    margin-bottom: 2rem;
}

.modern-form .form-group {
    margin-bottom: 1.5rem;
}

.modern-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.modern-form .required {
    color: #e74c3c;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Map Section */
.map-section {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-wrapper {
        padding-right: 0;
        order: 2;
        /* Put form first on mobile? Or info first? Standard is info first usually, but form is important. Let's keep info first */
        order: 1;
    }

    .contact-form-wrapper {
        order: 2;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}