/* Google Fonts: Outfit for Headings, Inter for Body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #0A2540;     /* Prestigious Dark Navy */
    --secondary-color: #F4B942;   /* Vibrant Amber Gold */
    --accent-color: #D90429;      /* Call to Action Crimson Red */
    --light-bg: #F8FAFC;          /* Soft Gray Blue */
    --white: #FFFFFF;
    --dark-text: #0F172A;
    --light-text: #64748B;
    --border-color: #E2E8F0;
    --transition-speed: 0.4s;
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glow-shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
    --gold-glow: 0 0 15px rgba(244, 185, 66, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top bar */
.top-bar {
    background-color: #051321;
    color: var(--white);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar .info-item {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}

.top-bar .info-item svg {
    width: 14px;
    height: 14px;
    fill: var(--secondary-color);
    margin-right: 6px;
}

/* Main Header */
.main-header {
    background: rgba(10, 37, 64, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--secondary-color);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.logo-section img {
    height: 60px;
    width: 60px;
    margin-right: 15px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    object-fit: cover;
    box-shadow: var(--gold-glow);
}

.brand-text h1 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

.brand-text p {
    font-size: 0.8rem;
    color: var(--white);
    opacity: 0.85;
    font-weight: 500;
}

@media (min-width: 1200px) {
    .navbar ul {
        list-style: none;
        display: flex;
        align-items: center;
    }

    .navbar li {
        margin-left: 25px;
    }
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-headings);
    transition: var(--transition-speed);
    position: relative;
    padding: 8px 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-speed);
}

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

.navbar a:hover::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    padding: 8px 18px !important;
    border-radius: 4px;
    font-weight: 700 !important;
}

.nav-btn:hover {
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.nav-btn::after {
    display: none !important;
}

/* Custom Header Navbar Spacing adjustments to prevent overflow */
.navbar-nav .nav-link {
    font-size: 0.88rem !important;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
}
.navbar-nav .nav-btn {
    font-size: 0.88rem !important;
    padding: 6px 12px !important;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider {
    position: relative;
    height: calc(90vh - 94px);
    min-height: 480px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    transform: scale(1.1);
    transition: transform 6s ease;
}

.slide.active .slide-img {
    transform: scale(1);
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    line-height: 1.15;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    font-weight: 300;
}

.slide-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-headings);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4);
    transition: var(--transition-speed);
}

.slide-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(244, 185, 66, 0.4);
    transform: translateY(-3px);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-speed);
}

.slider-arrow:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* ==========================================================================
   Admission Banner (Ticker)
   ========================================================================== */
.admission-banner {
    background: linear-gradient(135deg, var(--accent-color) 0%, #A9001D 100%);
    color: var(--white);
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admission-badge {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 16px;
    font-weight: 800;
    border-radius: 4px;
    font-family: var(--font-headings);
    animation: pulse 2s infinite;
    flex-shrink: 0;
    margin-right: 20px;
    letter-spacing: 0.5px;
}

.admission-ticker {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.admission-ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
    font-weight: 700;
    font-size: 1.05rem;
}

.admission-ticker span strong {
    color: var(--secondary-color);
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 185, 66, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(244, 185, 66, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 185, 66, 0); }
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section {
    padding: 80px 10%;
}

.section-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

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

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-header p {
    color: var(--light-text);
    margin-top: 15px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-header p {
    color: #E2E8F0;
    opacity: 0.8;
}

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

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

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.about-feature-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-feature-card p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    text-align: center;
}

.about-badge span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

/* ==========================================================================
   Facilities Section (From School Image Board)
   ========================================================================== */
.facilities-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.facility-column {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}

.facility-column h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(244, 185, 66, 0.2);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.facility-column h3 svg {
    width: 24px;
    height: 24px;
    fill: var(--secondary-color);
    margin-right: 10px;
}

.facility-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.facility-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    transition: all var(--transition-speed);
}

.facility-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.facility-icon-wrap {
    background: rgba(244, 185, 66, 0.15);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.facility-icon-wrap svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary-color);
}

.facility-text {
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
}

/* ==========================================================================
   CMS Login Styling
   ========================================================================== */
.login-body {
    background: linear-gradient(135deg, #051321 0%, #0A2540 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
}

.login-card h2 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.login-card p {
    color: #94A3B8;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

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

.form-label {
    display: block;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-speed);
}

.form-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.login-btn {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-headings);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-speed);
    margin-top: 10px;
}

.login-btn:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.login-error {
    background: rgba(217, 4, 41, 0.15);
    border: 1px solid var(--accent-color);
    color: #FF8A9A;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: none;
}

.back-home {
    display: inline-block;
    margin-top: 25px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-speed);
}

.back-home:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   CMS Admin Dashboard Styling
   ========================================================================== */
.admin-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--secondary-color);
}

.admin-title-section {
    display: flex;
    align-items: center;
}

.admin-title-section h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.admin-logout {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-speed);
}

.admin-logout:hover {
    background-color: var(--white);
    color: var(--accent-color);
}

.admin-container {
    padding: 40px 5%;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.admin-sidebar {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--glow-shadow);
    align-self: start;
}

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin-bottom: 10px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition-speed);
}

.admin-menu a.active, .admin-menu a:hover {
    background-color: rgba(10, 37, 64, 0.05);
    color: var(--primary-color);
}

.admin-menu a svg {
    width: 18px;
    height: 18px;
    fill: var(--light-text);
    margin-right: 10px;
}

.admin-menu a.active svg, .admin-menu a:hover svg {
    fill: var(--primary-color);
}

.admin-content {
    background: var(--white);
    border-radius: 12px;
    padding: 35px;
    box-shadow: var(--glow-shadow);
}

.admin-section-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.admin-form-group {
    margin-bottom: 25px;
}

.admin-label {
    display: block;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.admin-input-text {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-speed);
}

.admin-input-text:focus {
    border-color: var(--primary-color);
}

.admin-file-upload {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: var(--transition-speed);
}

.admin-file-upload:hover {
    border-color: var(--primary-color);
    background: rgba(10, 37, 64, 0.02);
}

.admin-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.current-logo-preview {
    width: 100px;
    height: 100px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    object-fit: cover;
    margin-top: 15px;
}

.admin-btn-save {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-headings);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-speed);
}

.admin-btn-save:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Slider Table in CMS */
.slides-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    margin-bottom: 25px;
}

.slides-table th {
    background-color: #F1F5F9;
    color: var(--primary-color);
    font-family: var(--font-headings);
    font-weight: 700;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid var(--border-color);
}

.slides-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.slide-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.admin-btn-delete {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-speed);
}

.admin-btn-delete:hover {
    background-color: #A9001D;
}

.alert-success {
    background-color: #DCFCE7;
    border: 1px solid #86EFAC;
    color: #166534;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 500;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
    background-color: #051321;
    color: var(--white);
    padding: 60px 10% 20px;
    border-top: 4px solid var(--secondary-color);
}

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

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-speed);
}

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

.footer-contact-item {
    display: flex;
    margin-bottom: 12px;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary-color);
    margin-right: 12px;
    flex-shrink: 0;
}

.footer-contact-text {
    font-size: 0.9rem;
    color: #94A3B8;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #64748B;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .logo-section img {
        height: 38px !important;     /* Shrink logo image on mobile */
        width: 38px !important;
        margin-right: 8px !important;
    }
    
    .brand-text h1 {
        font-size: 1.05rem !important; /* Scale down school title on mobile */
        letter-spacing: 0.2px !important;
    }
    
    .brand-text p {
        display: none !important;      /* Hide CBSE affiliation text on mobile */
    }
    
    .slide-content h2 {
        font-size: 1.6rem !important;
    }
    
    .slide-content p {
        font-size: 0.9rem !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199px) {
    .navbar-collapse {
        background: rgba(10, 37, 64, 0.98);
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    .navbar-nav {
        align-items: flex-start !important;
    }
    .navbar-nav .nav-item {
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 10px;
    }
    .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }
}

/* Micro-adjustments for standard desktop/laptop screens (1200px to 1399px) to prevent menu overflow */
@media (min-width: 1200px) and (max-width: 1399px) {
    .main-header {
        padding: 10px 3% !important; /* Save container horizontal padding */
    }
    .logo-section img {
        height: 42px !important;     /* Shrink logo image */
        width: 42px !important;
        margin-right: 8px !important;
    }
    .brand-text h1 {
        font-size: 1.15rem !important; /* Scale down school title */
        letter-spacing: 0.5px !important;
    }
    .brand-text p {
        display: none !important;      /* Hide the long CBSE affiliation text in the header to save ~250px space */
    }
    .navbar li {
        margin-left: 10px !important;  /* Bring menu items closer together */
    }
    .navbar-nav .nav-link {
        font-size: 0.8rem !important;  /* Shrink text size slightly */
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
    }
    .navbar-nav .nav-btn {
        font-size: 0.8rem !important;
        padding: 4px 10px !important;
    }
}

/* Paragraph Justification Style */
p {
    text-align: justify;
}
.text-center p, p.text-center {
    text-align: center;
}
.text-end p, p.text-end {
    text-align: right;
}
.text-start p, p.text-start {
    text-align: left;
}
