
/* Top Contact Bar Styles */
.top-contact-bar {
    background-color: #2b2b2b;
    color: white;
    padding: 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    gap: 100px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #c74444;
}

.contact-item i {
    font-size: 15px;
}

.admission-btn {
    background-color: #c74444;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    animation: blink 1.5s infinite;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.admission-btn:hover {
    transform: scale(1.05);
    color: white;
}

.admission-btn i {
    font-size: 15px;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

.right-section {
    display: flex;
    align-items: center;
    gap: 50px;
}

.transfer-item, .email-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.transfer-item:hover, .email-item:hover {
    color: #c74444;
}

.transfer-item i, .email-item i {
    font-size: 15px;
}

.navbar-blur {
    /* Blur navbar */
    backdrop-filter: blur(70px);
    -webkit-backdrop-filter: blur(70px);
    background-color: #ffffffff;
    padding: 3px 20px;
    position: fixed;
    box-shadow: 0 8px 4px rgba(0, 0, 0, 0.09);
    top: 47px; /* Added for top contact bar */
    z-index: 1030; /* Ensures it sits just below the top bar */
    width: 100%;
}

/* NEW: Styles for the currently active link (Home) */
.active-link .nav-link {
    color: #ba2a21 !important;
    text-decoration: underline; 
    text-underline-offset: 6px; 
    text-decoration-color: #ba2a21;
    text-decoration-thickness: 2px;
}

.nav-link {
    color: black !important;
    font-weight: 500;
    /* Removed ineffective gap property. Spacing is now handled by mx-2 on the list item. */
}

.nav-link:hover { 
    color:#ba2a21!important;
    
}
.dropdown-item {
    /* Keeping this as per your original code, though it currently overrides the white color from .top-bar-link */
    color: #212529 !important; 
}
.dropdown-item:hover { 
    /* Changed to black for better contrast on the white dropdown menu */
    color:rgb(0, 0, 0)!important;
    
}

/* Dropdown Menu */
ul .dropdown-menu {
    background-color: #ffffffff;
    border: none;
}

/* Ensure cards have enough spacing from navbar */
.content-padding {
    padding-top: 165px; /* Adjust this value if your top bars change size (Top Bar + Main Nav) */
}

/* Responsive adjustments without class changes */
@media (max-width: 767.98px) {
    .top-contact-bar {
        flex-wrap: wrap;
        gap: 15px 30px;
        padding: 12px 20px;
        justify-content: center;
    }

    .right-section {
        flex-wrap: wrap;
        gap: 15px 30px;
        justify-content: center;
        width: 100%;
    }

    .contact-item, .transfer-item, .email-item {
        font-size: 13px;
    }

    .admission-btn {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .py-2 .container .d-flex > ul {
        justify-content: center !important;
        text-align: center;
    }
    .py-2 .list-inline-item.me-4, .py-2 .list-inline-item.mx-1 {
        margin-right: 0.5rem !important;
        margin-left: 0.5rem !important;
    }
    .py-2 {
        font-size: 0.8rem;
        padding: 0.25rem 1rem;
    }
    .content-padding {
        padding-top: 240px;
    }
    .navbar-blur {
        top: 115px;
    }
    .navbar-collapse {
        padding-top: 1rem;
        background-color: rgba(255, 255, 255, 0.95);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        width: 120px;
    }
    .py-2 .list-inline-item {
        display: block;
        margin-bottom: 0.25rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .mobile-gujarati p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    .top-contact-bar {
        font-size: 12px;
        gap: 12px 20px;
    }
    
    .contact-item, .transfer-item, .email-item {
        font-size: 12px;
    }
    
    .admission-btn {
        font-size: 13px;
        padding: 7px 20px;
    }
}

.navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(50%);
}