body {
    font-family: 'Inter', sans-serif;
}

/*
 * Home Page Styles
 * School Website
 */

/* Global Variables - Birla Open Minds Brand Colors */
:root {
    --brand-primary: #ab2427; /* Updated BOM Dark Red */
    --brand-primary-dark: #A51C21; /* Darker shade for hover */
    --brand-secondary: #F05C2B; /* Updated BOM Orange */
    --footer-gradient-start: #B72025;
    --footer-gradient-end: #F58220;
    --footer-link: #fff;
    --footer-link-hover: #ffe082;
    --footer-bottom-bg: #A51C21;
    --footer-bottom-text: #fff;
    --footer-bottom-border: #b7202570;
    --text-dark: #414042; /* BOM Dark Gray (was #2d2d2d) */
    --text-light: #ffffff;
    --text-muted: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition-standard: all 0.3s ease;
    --border-radius: 0.375rem;
}

/* Footer Styles */
.footer-main {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    color: var(--footer-link);
}
.footer-bottom {
    background: var(--brand-primary-dark);
    color: var(--footer-bottom-text);
    border-top: 1px solid var(--footer-bottom-border);
}
.footer-links a {
    color: #333;
    transition: color 0.2s, transform 0.2s;
}
.footer-links a:hover {
    color:rgb(255, 236, 208) !important;
    transform: translateX(5px);
}
.footer-links li {
    transition: transform 0.2s ease;
}
.footer-links li:hover {
    transform: translateX(5px);
}
.footer-main .bi {
    color: var(--text-light);
    font-size: 1.25rem;
}

.footer-main .bi-envelope {
    color: var(--brand-primary);
}

.footer-main .contact-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-main .contact-info i {
    min-width: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-light);
}

.footer-main .contact-info.address {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.footer-main .contact-info.address i {
    display: block;
    margin-bottom: 0.25rem;
}

.footer-main .contact-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    word-break: break-all;
    max-width: 100%;
    line-height: 1.4;
}

.footer-main .contact-info.address p {
    margin: 0 0 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.footer-main .contact-info.address p::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand-primary);
}

@media (max-width: 768px) {
    .footer-main .contact-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-main .contact-info i {
        min-width: 100%;
        text-align: left;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-main .contact-info.address i {
        margin-bottom: 0.25rem;
    }
    
    .footer-main .contact-info.address p {
        padding-left: 0;
        margin-left: 0;
    }
    
    .footer-main .contact-info.address p::before {
        content: none;
    }
}

@media (max-width: 768px) {
    .footer-main .contact-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-main .contact-info i {
        min-width: 100%;
        text-align: left;
    }
}

.social-icons a {
    color: var(--footer-link);
    transition: color 0.2s, opacity 0.3s;
    opacity: 0.85;
}
.social-icons a:hover {
    color: var(--footer-link-hover);
    opacity: 1;
}

/* Hero Section - Now a Bootstrap Carousel Container */
.hero-section.carousel {
    height: 80vh;
    min-height: 600px;
    position: relative; /* Needed for absolute positioning of overlay/content */
    overflow: hidden; /* Ensure content doesn't spill */
    color: var(--text-light); /* Default text color for content */
}

.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100%; /* Make slides fill the carousel height */
}

.hero-section .carousel-item img {
    height: 100%;
    object-fit: cover; /* Cover the area, maintain aspect ratio */
    width: 100%;
}

/* Overlay and Content Styling for Carousel */
.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 1; /* Overlay sits above images but below content */
}

.hero-section .hero-content {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 90%;
    padding: 2rem 1.5rem 2rem 1.5rem;
    text-align: center;
    background: rgba(0,0,0,0.68);
    border-radius: 1.25rem;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.13);
    color: #fff;
    /* backdrop-filter removed for more image visibility */
}
.hero-section .hero-content .btn,
.hero-section .hero-content .btn.btn-outline-light,
.hero-section .hero-content .btn.btn-outline-primary {
    color: #fff;
    border-color: #fff;
}
.hero-section .hero-content .btn.btn-outline-light:hover,
.hero-section .hero-content .btn.btn-outline-primary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

@media (max-width: 767.98px) {
    .hero-section .hero-content {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        border-radius: 0.75rem;
        width: 98%;
    }
}


/* Optional: Style carousel controls and indicators if needed */
.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3); /* Semi-transparent background for icons */
    border-radius: 50%;
    padding: 1.2rem; /* Make icons a bit larger */
}

.hero-section .carousel-indicators button {
    background-color: rgba(255,255,255,0.5); /* Semi-transparent indicators */
}

.hero-section .carousel-indicators .active {
    background-color: var(--brand-secondary); /* Active indicator color */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 1.5s ease-out;
}

.hero-cta .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: var(--transition-standard);
}

.hero-cta .btn-primary {
    background-color: var(--brand-primary); /* Updated to brand-primary (Dark Red) */
    border-color: var(--brand-primary); /* Updated to brand-primary (Dark Red) */
}

.hero-cta .btn-primary:hover {
    background-color: #8d1d1f; /* Darker shade of #ab2427 */
    border-color: #8d1d1f; /* Darker shade of #ab2427 */
    transform: translateY(-2px);
}

.hero-cta .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #f7f8fa 60%, #fdf6f0 100%);
    padding: 4rem 0 3rem 0;
    border-radius: 2rem;
    margin-top: 2.5rem;
    box-shadow: 0 6px 24px 0 rgba(0,0,0,0.04);
}

.gallery-section .section-title {
    background: linear-gradient(90deg, rgba(255,255,255,0.98) 60%, rgba(255,255,255,0.7) 100%);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.04);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.gallery-section .section-divider {
    border-top: 1px solid #e5e5e5;
    margin: 3rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.2rem;
    margin-bottom: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(171,36,39,0.09), 0 1.5px 6px rgba(240,92,43,0.08);
    background: rgba(255,255,255,0.98);
    transition: box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.1rem 1.1rem 0.4rem 1.1rem;
    min-height: 225px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover {
    box-shadow: 0 16px 40px rgba(171,36,39,0.17), 0 4px 16px rgba(240,92,43,0.14);
    transform: translateY(-5px) scale(1.04);
    z-index: 2;
}

.gallery-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 1.25rem;
    box-shadow: 0 2px 14px rgba(171,36,39,0.07);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.10) rotate(-1.5deg);
    box-shadow: 0 8px 32px rgba(171,36,39,0.14);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.25) 30%, rgba(171,36,39,0.16) 100%);
    backdrop-filter: blur(2.5px);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.25rem;
    z-index: 2;
}

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

.gallery-zoom {
    font-size: 2.1rem;
    color: var(--brand-primary);
    background: rgba(255,255,255,0.88);
    border-radius: 50%;
    padding: 0.5rem 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: color 0.3s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.8);
}

.gallery-item:hover .gallery-zoom {
    color: var(--brand-secondary);
    opacity: 1;
    transform: scale(1);
}

.gallery-caption {
    text-align: center;
    font-size: 1rem;
    color: var(--brand-primary);
    margin-top: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.85;
    transition: color 0.3s;
}

.gallery-item:hover .gallery-caption {
    color: var(--brand-secondary);
    opacity: 1;
}

/* Quick/* Stats Section */
.stats-title-bg {
    background: linear-gradient(90deg, #fff 75%, #f5f7fa 100%);
    border-radius: 1.2rem;
    padding: 1.5rem 1rem 1.2rem 1rem;
    margin-bottom: 2.2rem;
    box-shadow: 0 2px 12px 0 rgba(171,36,39,0.04);
    display: inline-block;
    width: 100%;
    opacity: 0.8;
}

.quick-links {
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary)); /* Dark Red to Orange */
    padding: 3rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-lg);
}

.quick-links .section-title {
    background: linear-gradient(90deg, rgba(255,255,255,0.98) 60%, rgba(255,255,255,0.7) 100%);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.04);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.quick-links .section-title h2,
.quick-links .section-title p {
    background: none;
    color: var(--brand-primary);
    position: relative;
    z-index: 2;
}

.quick-links .section-title p {
    color: var(--brand-secondary);
}

.quick-link-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.13);
    background-color: #f8f9fa;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.quick-link-card h3 {
    font-size: 1.25rem;
    color: var(--brand-primary);
    font-weight: 600;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card .facility-description {
    font-size: 0.875rem;
    color: var(--brand-secondary);
    margin-top: 0.75rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), color 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card.open .facility-description {
    max-height: 200px;
    opacity: 1;
}

.quick-link-card p {
    font-size: 0.875rem;
    color: var(--brand-secondary);
    margin-top: 0.75rem;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Messages & Notices Section */
.messages-notices {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.message-card, .notices-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: var(--transition-standard);
}

.message-card:hover, .notices-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.message-header, .notices-header {
    padding: 1.5rem;
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary)); /* Dark Red to Orange */
    color: var(--text-light);
}

.message-header h2, .notices-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.message-divider, .notices-divider {
    height: 3px;
    width: 50px;
    background-color: var(--brand-secondary); /* Updated from brand-yellow */
    margin-top: 0.5rem;
}

.message-body {
    padding: 1.5rem;
}

.message-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--brand-secondary);
}

.message-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    text-align: center;
    color: var(--text-dark);
}

.message-author {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 600;
}

.notices-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.notices-body::-webkit-scrollbar {
    width: 5px;
}

.notices-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notices-body::-webkit-scrollbar-thumb {
    background: var(--brand-secondary); /* Updated from brand-orange */
    border-radius: 10px;
}

.notice-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.notice-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.notice-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.notice-item p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.notice-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.notice-date i {
    margin-right: 0.25rem;
}

.notice-link {
    color: var(--brand-secondary); /* Updated from brand-orange */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-standard);
}

.notice-link:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.empty-notice {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-notice i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.notices-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid #eee;
}

.messages-notices .btn.btn-outline-primary {
    color: #fff;
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    font-weight: 600;
    transition: background 0.2s, border 0.2s, color 0.2s;
}
.messages-notices .btn.btn-outline-primary:hover,
.messages-notices .btn.btn-outline-primary:focus {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: #fff;
}
.stats-section {
    padding: 4rem 0 3rem 0;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 0;
    margin-top: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(171,36,39,0.08), 0 1.5px 6px rgba(240,92,43,0.10);
}

.stat-item {
    background: rgba(255,255,255,0.08);
    border-radius: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item:hover {
    box-shadow: 0 8px 32px rgba(171,36,39,0.12);
    transform: translateY(-4px) scale(1.03);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.13);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffe082;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Featured Programs */
.featured-programs {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-divider {
    height: 4px;
    width: 100px;
    background-color: var(--brand-secondary);
    margin: 0 auto;
}

.program-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: var(--transition-standard);
}

.program-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-standard);
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-content {
    padding: 1.5rem;
    text-align: center;
}

.program-content h3 {
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.program-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.program-content .btn {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-standard);
    background-color: var(--brand-primary);
    color: var(--text-light);
    border: 1px solid var(--brand-primary);
}

.program-content .btn:hover {
    transform: translateY(-2px);
    background-color: #A31C20; /* Darker shade of --brand-primary */
    border-color: #A31C20;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-section {
        height: 70vh;
        min-height: 500px;
    }

    .message-col {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .quick-link-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .message-image {
        width: 80px;
        height: 80px;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }
}

/* Top Bar Logo and School Name */
.top-bar-logo {
    height: 65px;
    width: auto;
    max-width: 180px;
    display: block;
}

.top-bar-school-name {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: normal;
    letter-spacing: 1px;
}
@media (max-width: 991.98px) {
    .top-bar-school-name {
        font-size: 1.3rem;
    }
}
@media (max-width: 767.98px) {
    .top-bar-school-name {
        font-size: 1.1rem;
    }
}
@media (max-width: 767.98px) {
    .top-bar-logo {
        height: 36px;
        max-width: 120px;
    }
    .top-bar-school-name {
        font-size: 1rem;
    }
}

/* Top Bar Icon Brand Colors */
.top-bar .bi {
    color: var(--brand-primary) !important;
    transition: color 0.2s;
}
.top-bar .text-muted .bi { /* override text-muted color for icons */
    color: var(--brand-primary) !important;
}
.top-bar a:hover .bi-facebook {
    color: #1877f3 !important;
}
.top-bar a:hover .bi-instagram {
    color: #e4405f !important;
}
.top-bar a:hover .bi-telephone {
    color: #28a745 !important;
}


/* Navbar Enhancements */
.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: var(--shadow-md);
    background: var(--brand-secondary) !important;
}

.navbar, .navbar .navbar-brand, .navbar .nav-link, .navbar .navbar-toggler, .navbar .btn-login {
    color: #fff !important;
}

.navbar .nav-link {
    color: #fff !important;
    transition: color 0.2s;
}

.navbar .nav-link:hover, .navbar .nav-link:focus,
.navbar .nav-link.active, .navbar .nav-link:active {
    color: #fff !important;
    background: transparent !important;
    border-bottom: 3px solid #fff;
    border-radius: 0;
    box-shadow: none;
    padding-bottom: 3px;
}

.navbar .navbar-brand {
    color: #fff !important;
}

.navbar .btn-login, .navbar .btn-login:visited {
    background: #fff;
    color: var(--brand-secondary) !important;
    border: none;
}

.navbar .btn-login:hover, .navbar .btn-login:focus {
    background:var(--brand-secondary);
    color: var(--text-light) !important;
}

.navbar .dropdown-menu {
    background: var(--brand-secondary);
    color: var(--text-light);
}

.navbar .dropdown-item {
    color: var(--text-light);
}

.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
    background: var(--brand-secondary);
    color: #fff !important;
}


/* Align navbar links with logo in top bar */
.align-navbar-logo .navbar-nav {
    margin-left: 0;
}

/* Align first nav link with school name in top bar */
/* .align-navbar-schoolname {
    margin-left: 0.75rem;
} */

.align-navbar-logo {
    margin-left: 0px; /* Adjust this value for pixel-perfect alignment with the logo */
}

@media (min-width: 992px) {
  .align-navbar-logo .nav-item:first-child .nav-link {
    padding-left: 0 !important;
  }
  .navbar .btn-login {
    margin-left: 1rem;
    margin-right: 0;
    vertical-align: middle;
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--text-light);
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.navbar .btn-login:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.navbar .btn-login:active {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: var(--text-light);
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 991.98px) {
    .navbar .btn-login {
        margin-left: 0.5rem;
        margin-right: 0;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
        display: block;
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        border-radius: var(--border-radius);
    }
}





@media (min-width: 992px) {
  .align-navbar-logo .navbar-nav {
    margin-left: 52px; /* Adjust this value to match the logo's left position */
    transform: none;
  }
}
@media (max-width: 991.98px) {
  .align-navbar-logo .navbar-nav {
    margin-left: 0 !important;
    transform: none !important;
  }
}


.navbar .navbar-brand {
    font-weight: 600; /* Make brand name slightly bolder if text is used */
}

.navbar .navbar-brand img {
    max-height: 40px; /* Control logo height */
    width: auto;
}

.navbar .nav-link {
    padding-left: 0.75rem; /* Adjust spacing for nav links */
    padding-right: 0.75rem;
    margin-right: 1rem;
    font-size: 1rem; /* Increased font size */
    font-weight: 400; /* Medium weight for nav links */
    letter-spacing: 0.5px;
    transition: color 0.2s ease-in-out;
}
@media (max-width: 767.98px) {
    .navbar .nav-link {
        margin-right: 0.5rem;
    }
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--text-light)!important; /* Use brand orange for hover/active */
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,0.2); /* Lighter border for toggler */
}

.navbar .dropdown-menu {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg); /* More pronounced shadow for dropdown */
    margin-top: 0.5rem; /* Add some space between navbar and dropdown */
}

.navbar .dropdown-item {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.navbar .dropdown-item:hover {
    background-color: var(--brand-secondary);
    color: var(--text-light) !important; /* Ensure text is light on orange bg */
}

/* Top Bar Enhancements */
.top-bar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: relative;
    top: 0;
    z-index: 1030;
    overflow-x: hidden;
    padding: 0.5rem 0;
}

.top-bar .container {
    max-width: 100%;
    padding: 0 1.5rem;
    width: 100%;
}

.top-bar .row {
    min-height: 48px;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.25rem 0;
    }
    
    .top-bar .container {
        padding: 0 1rem;
    }
    
    .top-bar .row {
        padding: 0.25rem 0;
    }
}

.top-bar-logo {
    height: clamp(40px, 5vw, 120px);
    width: auto;
    max-width: clamp(150px, 25vw, 250px);
    transition: height 0.3s ease, max-width 0.3s ease;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .top-bar-logo {
        height: clamp(60px, 5vw, 150px);
        max-width: clamp(200px, 20vw, 300px);
    }
}

@media (min-width: 1400px) {
    .top-bar-logo {
        height: clamp(80px, 4vw, 180px);
        max-width: clamp(250px, 18vw, 350px);
    }
}

.top-bar-school-name {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1.2;
    margin-left: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: font-size 0.3s ease;
    flex-shrink: 0;
}

.top-bar-school-name + .top-bar-school-name {
    font-size: clamp(0.8rem, 2vw, 1rem);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.top-bar .col-auto {
    min-width: 0;
    flex-shrink: 0;
}

.top-bar .d-flex {
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .top-bar-logo,
    .top-bar .bi {
        display: none;
    }
    
    .top-bar-school-name {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-left: 0.5rem;
    }
    
    .top-bar-school-name + .top-bar-school-name {
        font-size: clamp(0.8rem, 3vw, 1.2rem);
    }
    
    .top-bar .col-auto {
        flex: 0 0 auto;
    }
    
    .top-bar .d-flex {
        gap: 0.25rem;
    }
}

@media (max-width: 576px) {
    .top-bar-logo {
        height: clamp(24px, 8vw, 36px);
        max-width: clamp(90px, 25vw, 120px);
    }
    
    .top-bar-school-name {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
    
    .top-bar .bi {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
    
    .top-bar .bi-telephone {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }
    
    .top-bar .text-muted {
        font-size: clamp(0.7rem, 2vw, 0.9rem);
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .top-bar-logo {
        height: clamp(32px, 6vw, 42px);
        max-width: clamp(100px, 20vw, 150px);
    }
    
    .top-bar-school-name {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    }
    
    .top-bar .bi {
        font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    }
    
    .top-bar .bi-telephone {
        font-size: clamp(1.4rem, 3vw, 1.7rem);
    }
    
    .top-bar .text-muted {
        font-size: clamp(0.8rem, 1.8vw, 1rem);
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .top-bar-logo {
        height: clamp(36px, 6vw, 48px);
        max-width: clamp(120px, 20vw, 180px);
    }
    
    .top-bar-school-name {
        font-size: clamp(1.4rem, 3vw, 2rem);
    }
    
    .top-bar .bi {
        font-size: clamp(1.2rem, 2vw, 1.5rem);
    }
    
    .top-bar .bi-telephone {
        font-size: clamp(1.5rem, 2.5vw, 1.8rem);
    }
    
    .top-bar .text-muted {
        font-size: clamp(0.8rem, 1.5vw, 1rem);
    }
}

.top-bar .bi {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    transition: font-size 0.3s ease;
}

.top-bar .bi-telephone {
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
}

.top-bar .text-muted {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    transition: font-size 0.3s ease;
}

.top-bar-nav .nav-link {
    color: var(--text-muted); /* Muted text color for utility links */
    padding: 0.25rem 0.5rem; /* Smaller padding for top bar links */
    font-weight: 400;
}

.top-bar-nav .nav-link:hover {
    color: var(--brand-primary); /* Use brand red for hover */
    text-decoration: none;
}

/* Adjustments for small screens if top bar content wraps badly */
@media (max-width: 767.98px) {
    .top-bar .row > div {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    .top-bar-nav {
        justify-content: center !important;
    }
    
    .top-bar-logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0.5rem;
    }
}
