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

:root {
    /* Professional Academic Palette: Navy Blue and Gold/Amber */
    --primary-color: #003366; 
    --primary-dark: #002244;
    --secondary-color: #FFB81C; 
    --secondary-dark: #D49A15;
    
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #718096;
    --text-white: #ffffff;
    
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    --border-radius: 4px; /* Sharper corners look more formal */
    --container-width: 1200px;
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-medium);
    line-height: 1.6;
    background-color: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif; /* Classic serif for headings */
    color: var(--text-dark);
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background-color 0.3s ease;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--text-white);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact span {
    margin-right: 1.5rem;
}

.top-bar-contact i {
    color: var(--secondary-color);
    margin-right: 0.4rem;
}

.top-bar-links a {
    margin-left: 1.5rem;
    color: #e2e8f0;
}

.top-bar-links a:hover {
    color: var(--secondary-color);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    color: var(--text-white);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
}

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

.btn-outline-light:hover {
    background-color: var(--text-white);
    color: var(--primary-dark);
}

/* Header */
header {
    background-color: var(--text-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    margin-right: 1rem;
    height: 60px;
    width: auto;
}

.school-name h1 {
    color: var(--primary-color) !important; /* This ensures it stays Navy Blue (#003366) */
    font-size: 1.5rem;
    margin-bottom: 0;
}

.school-name p {
    color: var(--primary-dark); /* Keeps the subtitle/location a complementary dark blue */
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    margin-right: 2rem;
}

.nav-link {
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.hamburger {
    display: none;
    color: var(--primary-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 34, 68, 0.75), rgba(0, 34, 68, 0.85)),
                url('../images/WhatsApp\ Image\ 2026-07-04\ at\ 12.00.20\ PM\ (1).jpeg') center/cover no-repeat;
    height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-white);
    max-width: 800px;
}

.hero-title {
    color: var(--text-white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: #e2e8f0;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 3rem 0;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-number {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Section Header Shared */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    color: var(--primary-dark);
}

.heading-divider {
    height: 3px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 1rem auto 1.5rem;
}

.section-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--text-white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--secondary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 51, 102, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

.feature-card h3 {
    color: var(--primary-dark);
}

/* Announcements Section */
.announcements-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.announcement-card {
    display: flex;
    background: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.announcement-card:hover {
    box-shadow: var(--shadow-md);
}

.announcement-date {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.announcement-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Merriweather', serif;
}

.announcement-date .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.announcement-content {
    padding: 1.5rem;
}

.announcement-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

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

.read-more:hover {
    color: var(--secondary-dark);
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 34, 68, 0.9), transparent);
    color: var(--text-white);
}

.gallery-overlay h3 {
    color: var(--text-white);
    margin: 0;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 0 0;
    border-top: 5px solid var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    margin-right: 1rem;
    background: var(--text-white);
    padding: 5px;
    border-radius: 4px;
}

.footer-logo h3 {
    color: var(--text-white);
    margin: 0;
}

.footer-info p {
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 0.85rem;
    color: #a0aec0;
}

.footer-links ul li a {
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact ul li i {
    width: 25px;
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: #001a33;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom a {
    color: #a0aec0;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* =========================================
   ABOUT PAGE SPECIFIC STYLES
========================================= */

/* Inner Page Header */
.page-header {
    background: linear-gradient(rgba(0, 34, 68, 0.8), rgba(0, 34, 68, 0.9)),
                url('../images/WhatsApp\ Image\ 2026-07-04\ at\ 12.00.21\ PM.jpeg') center/cover no-repeat;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.relative-z {
    position: relative;
    z-index: 10;
}

.page-title {
    color: var(--secondary-color); /* Gold color for the page title */
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-white);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Two Column Grid used in History and Principal Sections */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.align-center {
    align-items: center;
}

/* History Section */
.history-section {
    padding: 5rem 0;
}

.history-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--text-white);
}

/* Mission & Vision Section */
.mission-vision-section {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mv-card {
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.mv-card .feature-icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mission-card {
    background-color: var(--primary-color);
}

.vision-card {
    background-color: var(--secondary-dark); 
}

.mv-card h3 {
    color: var(--text-white);
    font-size: 1.75rem;
}

.mv-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

/* Principal Section */
.principal-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.principal-signature h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.principal-signature p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Utility to explicitly set footer logo text color to Gold as requested */
.text-stat-color {
    color: var(--secondary-color) !important;
}

/* Mobile Responsiveness for About Page */
@media (max-width: 767px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .principal-image, .history-image {
        order: -1; /* Puts image above text on mobile */
    }
}

/* =========================================
   GALLERY PAGE SPECIFIC STYLES
========================================= */

.full-gallery-section {
    padding: 5rem 0;
    background-color: var(--background);
}

/* Gallery Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

/* Dedicated Gallery Grid Adjustments */
.page-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Enhancing the overlay text for the dedicated page */
.gallery-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-overlay p {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    margin-top: 0.25rem;
}

/* Load More Button Style */
.btn-outline-dark {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-outline-dark:hover {
    background-color: var(--primary-dark);
    color: var(--text-white);
}

/* =========================================
   ADMISSIONS PAGE SPECIFIC STYLES
========================================= */

/* Process Section */
.process-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-step {
    background: var(--background-alt);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.process-step h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Requirements & Form Section */
.requirements-form-section {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.document-list {
    margin-top: 1.5rem;
}

.document-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.document-list li i {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.15rem;
}

/* Form Styles */
.form-container {
    background-color: var(--text-white);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary-color);
}

.form-container h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.form-container p {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.inquiry-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.inquiry-form .form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.inquiry-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--background-alt);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.2);
    background-color: var(--text-white);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.05rem;
    padding: 1rem;
}

/* Mobile Responsiveness for Form */
@media (max-width: 767px) {
    .inquiry-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
}

/* =========================================
   CONTACT PAGE SPECIFIC STYLES
========================================= */

.contact-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.align-start {
    align-items: flex-start;
}

/* Contact Info Cards */
.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--secondary-color);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1.25rem;
    margin-top: 0.2rem;
    width: 25px;
    text-align: center;
}

.info-text h4 {
    color: var(--primary-dark);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.info-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
}

/* Google Maps Container */
.map-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    display: block;
}

/* Adjustments for the Contact Form */
.contact-form .form-group {
    margin-bottom: 1.25rem;
}

/* Mobile Responsiveness for Contact Page */
@media (max-width: 991px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .contact-details-wrapper, .form-container {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .top-bar { display: none; }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--text-white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
        margin: 0;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        padding: 0 1.5rem;
    }
    
    .nav-cta {
        display: none; /* Hide on mobile to save space, rely on hamburger */
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}