/* Global Styles & Variables */
:root {
    --primary-color: #1a237e;
    /* Royal Blue */
    --primary-dark: #000051;
    --secondary-color: #fbc02d;
    /* Gold */
    --accent-color: #c62828;
    /* Red */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --off-white: #f5f7fa;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--off-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--off-white);
}

.bg-white {
    background-color: var(--white);
}

.bg-primary {
    background-color: var(--primary-color);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title.white {
    color: var(--white);
}

.section-title.white::after {
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    position: relative;
    z-index: 101;
}

.marquee-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    margin-right: 20px;
}

.marquee-container span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

.registration-btn {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border: none;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.registration-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Header & Navbar */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    /* Full width */
    padding: 0 40px;
    /* More padding for edges */
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-circle {
    width: 90px;
    /* Medium size */
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--secondary-color);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-identity h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    /* Slightly larger */
    color: var(--primary-color);
    line-height: 1.2;
}

.school-identity p {
    font-size: 0.9rem;
    color: #8B4513;
    font-weight: 700;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 0;
    font-size: 1rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link .arrow {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Underline effect */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item:hover .nav-link::before {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.dropdown a:hover {
    background-color: var(--off-white);
    color: var(--primary-color);
    padding-left: 25px;
    /* Slide effect */
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    /* Or specifically 300px sidebar */
    height: 100%;
    background-color: var(--white);
    z-index: 2000;
    padding: 20px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-width: 300px;
    margin-left: auto;
    /* Push to right */
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-menu-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    margin-bottom: 30px;
}

.mobile-links a {
    display: block;
    font-size: 1.2rem;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* Hero Section */
.hero {
    height: 85vh;
    position: relative;
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-btn {
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    margin: 0 10px;
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 192, 45, 0.4);
}

.cta-btn.secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-btn.secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Info Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -50px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.info-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.info-card.highlight {
    background-color: var(--primary-color);
    color: var(--white);
}

.info-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Split Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

/* Notice Board */
.notice-board {
    background-color: var(--white);
    border: 1px solid #ddd;
    height: 300px;
    overflow: hidden;
    position: relative;
    padding: 20px;
    border-top: 5px solid var(--accent-color);
}

.notice-marquee {
    display: flex;
    flex-direction: column;
    /* We can animate this up or just let it be a static list visually, 
       but standard notice boards often scroll up. Let's make it static first or keyframe it. */
    /* Let's try a simple vertical scroll animation */
    animation: scrollUp 15s linear infinite;
}

.notice-board:hover .notice-marquee {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

.notice-item {
    display: block;
    margin-bottom: 20px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.notice-item .date {
    background-color: var(--secondary-color);
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 10px;
}

.notice-item .text {
    font-weight: 500;
}

.view-all-btn,
.read-more-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

.view-all-btn:hover,
.read-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Principal Section */
.principal-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.principal-img-box {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.principal-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.principal-text h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 1.8rem;
}

.principal-text p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1rem;
}

.principal-text p i {
    color: var(--primary-color);
    font-weight: 500;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 25px;
    color: var(--accent-color);
    text-align: right;
}

/* Why Choose Us */
.pattern-bg {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Footer */
.main-footer {
    background-color: #111;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

.map-placeholder {
    width: 100%;
    height: 150px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Animation Classes (used by JS or CSS) */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .marquee-container {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .grid-3 {
        margin-top: 0;
    }

    .principal-content {
        flex-direction: column;
        align-items: center;
    }

    .principal-img-box {
        width: 100%;
        max-width: 300px;
        position: static;
    }
}

/* Mandatory Disclosure Tables */
.disclosure-section {
    background-color: var(--white);
}

.disclosure-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.disclosure-card h2 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 0;
    background-color: #f9f9f9;
}

.table-responsive {
    overflow-x: auto;
}

.disclosure-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
}

.disclosure-table th, 
.disclosure-table td {
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
}

.disclosure-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.disclosure-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.disclosure-table tbody tr:hover {
    background-color: #f1f3f5;
}

.disclosure-table td.text-center, 
.disclosure-table th.text-center {
    text-align: center;
}

.doc-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.doc-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}
/* Album Gallery Grid */
.gallery-section {
    background-color: var(--off-white);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.album-card {
    display: block;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none; /* In case it's a link */
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.album-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.album-card:hover .album-image img {
    transform: scale(1.08);
}

.album-info {
    padding: 20px;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.album-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.album-card:hover .album-info h3 {
    color: var(--primary-color);
}

.album-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    background-color: var(--off-white);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Contact Page Styles */
.contact-section {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    background-color: var(--off-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--secondary-color);
    background-color: var(--primary-dark);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-text h4 {
    margin-bottom: 5px;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.info-text p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.contact-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid #eee;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 51, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Admission Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    transform: translateY(-50px) scale(0.9);
    transition: all 0.4s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 4px solid var(--secondary-color);
}

.popup-overlay.show .popup-content {
    transform: translateY(0) scale(1);
}

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-popup-btn:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.popup-body {
    padding: 40px 30px;
    text-align: center;
}

.popup-body h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.popup-body h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.popup-body p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.5;
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.popup-cta {
    padding: 12px 25px;
}

.popup-close {
    padding: 12px 25px;
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-dark);
    margin: 0;
}

.popup-close:hover {
    background-color: #f1f1f1;
    color: var(--text-dark);
}

@media (max-width: 500px) {
    .popup-actions {
        flex-direction: column;
    }
}