/* ========================================
   COLOR VARIABLES
   ======================================== */
:root {
    --grey-text: #777777;
    --primary-orange: #F58634;
    --primary-red: #ED353A;
    --dark-text: #000000;
    --light-grey: #f5f5f5;
    --border-light: #f0f0f0;
}

/* ========================================
   NAVBAR TOP BANNER
   ======================================== */
.navbar-top-banner {
    background: linear-gradient(135deg, #F58634 0%, #ED353A 100%);
    padding: 12px 0;
    position: relative;
    z-index: 1029;
    font-size: 0.85rem;
    font-weight: 500;
}

.navbar-top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 0 30px;
    color: white;
    font-weight: 600;
}

/* Search Wrapper - Left */
.navbar-search-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    max-width: 220px;
}

.navbar-search-wrapper form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 100%;
}

.navbar-search-wrapper form:hover,
.navbar-search-wrapper form:focus-within {
    background: rgba(255, 255, 255, 0.35);
}

.navbar-search-wrapper input {
    border: none;
    background: transparent;
    color: white;
    outline: none;
    padding: 6px 8px;
    font-size: 0.85rem;
    width: 100%;
    transition: all 0.3s ease;
}

.navbar-search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-search-wrapper button {
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.navbar-search-wrapper button:hover {
    transform: scale(1.1);
}

/* Center Section - Admission Only */
.navbar-center-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: white;
}

.navbar-announcement {
    color: white;
    display: inline-block;
    white-space: nowrap;
    font-weight: 600;
}

.navbar-announcement-link {
    color: #fbbf24;
    text-decoration: underline;
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar-announcement-link:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

/* Right Section - ERP and Social Icons */
.navbar-right-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* ERP Button Styling */
.erp-login-btn-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #F58634;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    height: fit-content;
}

.erp-login-btn-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 134, 52, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.erp-login-btn-new:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    border-color: rgba(245, 134, 52, 0.3);
}

.erp-login-btn-new:hover::before {
    left: 100%;
}

.erp-login-btn-new i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.erp-login-btn-new:hover i {
    transform: scale(1.1);
}

/* Social Media Icons - Right */
.navbar-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.9rem;
}

.navbar-social-link:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


.social-link:hover {
    background: white;
    color: #ED353A;
}

/* ========================================
   MAIN NAVBAR HEADER SECTION
   ======================================== */
.navbar-main {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
    overflow: visible !important;
}

.navbar-main .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.navbar-main.sticky-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1050 !important;
}

/* Top Row - Logo and College Info */
.navbar-top-row {
    padding: 5px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1050 !important;
}

/* Bottom Row - Navigation Menu */
.navbar-bottom-row {
    padding: 0;
    border-top: 1px solid #f0f0f0;
    background: white;
    overflow: visible;
}

.navbar-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    gap: 20px;
}

/* Logo Section Wrapper */
.navbar-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1050 !important;
}

.navbar-logo-group {
    flex-shrink: 0;
}

/* Logo */
.navbar-logo {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.college-logo {
    height: 100px;
    width: auto;
    display: block;
}

/* College Info */
.navbar-title-section {
    flex: 1;
    min-width: 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
}

.navbar-title-section .college-name {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #F58634 0%, #E07A2A 50%, #ED353A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-family: 'Poppins', Arial, sans-serif;
    text-shadow: 0 2px 4px rgba(245, 134, 52, 0.1);
    filter: drop-shadow(0 2px 4px rgba(245, 134, 52, 0.15));
    transition: all 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
}

.navbar-title-section .college-name:hover {
    filter: drop-shadow(0 4px 8px rgba(245, 134, 52, 0.25));
    transform: scale(1.02);
}

.navbar-title-section .college-tagline {
    font-size: 1.2rem;
    color: #555;
    margin: 0 0 8px 0;
    font-weight: 700;
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #F58634, #ED353A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
}

.navbar-title-section .college-description {
    font-size: 1rem;
    color: #000;
    margin: 0;
    font-weight: 600;
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 0.3px;
    opacity: 1;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
}

/* Header CTA Button */
.navbar-header-cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.navbar-header .call-now-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9933 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.navbar-header .call-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.navbar-header .call-now-btn i {
    font-size: 12px;
}

/* ========================================
   NAVIGATION MENU
   ======================================== */
.navbar-menu {
    background: #ffffff;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: visible !important;
    position: relative;
    z-index: 999;
}

.navbar-menu-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding: 0 30px;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.5rem;
    color: #ff9933;
}

.navbar-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    height: 100% !important;
}

.nav-item {
    position: relative !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
    z-index: auto !important;
}

.nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0 8px !important;
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    border-bottom: 3px solid transparent !important;
    position: relative !important;
    height: 100% !important;
}

.nav-link:hover {
    color: #000000 !important;
    border-bottom-color: #F58634 !important;
    background-color: rgba(245, 134, 52, 0.1) !important;
}

.nav-link.active {
    color: #F58634 !important;
    border-bottom-color: #F58634 !important;
    background-color: transparent !important;
}

.nav-link i {
    margin-left: 4px;
    font-size: 9px;

    font-size: 10px;
}

/* Call Button in Navbar Menu */
.nav-item-call-btn {
    margin-left: auto !important;
    flex: 0 0 auto !important;
}

.nav-link-call-btn {
    display: flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #ED353A 0%, #F58634 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(237, 53, 58, 0.3) !important;
    height: auto !important;
}

.nav-link-call-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(237, 53, 58, 0.4) !important;
}

.nav-link-call-btn i {
    margin-right: 6px !important;
    font-size: 12px !important;
}

/* ========================================
   DROPDOWN MENUS
   ======================================== */

/* Hide Bootstrap's default dropdown toggle chevron to avoid duplicates */
.nav-link.dropdown-toggle::after {
    display: none !important;
}

/* NOTE: All dropdown styling is handled in dropdown-fix.css to avoid conflicts */
/* Do NOT add dropdown styles here */

/* Scrollable dropdown menu - shows all options with scroll */
.dropdown-menu {
    max-height: 320px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Custom scrollbar styling for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #F58634;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #E07A2A;
}

/* ========================================
   CTA BUTTON
   ======================================== */
.navbar-cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 15px;
}

.call-now-btn {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
}

.call-now-btn:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.call-now-btn i {
    font-size: 12px;
}

/* ========================================
   ADMISSION BAR
   ======================================== */
.navbar-admission-bar {
    background: #f5f5f5;
    color: #ff9933;
    padding: 8px 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    gap: 15px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
}

.navbar-admission-bar span {
    display: inline-block;
}

.admission-divider {
    color: #ddd;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Force horizontal navbar on all screens EXCEPT very small phones */
.navbar-menu-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 0 30px !important;
    min-height: 50px !important;
}

.navbar-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    flex: 1 !important;
    height: 100% !important;
}

.nav-item {
    position: relative !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

/* Tablets (1024px and below) - Keep horizontal, just compress */
@media (max-width: 1024px) {
    .navbar-header {
        padding: 12px 15px;
        gap: 15px;
    }

    .navbar-logo {
        min-width: 70px;
    }

    .college-logo {
        width: 70px;
        height: 70px;
    }

    .navbar-title-section .college-name {
        font-size: 20px;
    }

    .navbar-title-section .college-subtitle {
        font-size: 11px;
    }

    .navbar-title-section .college-details {
        font-size: 10px;
    }

    .navbar-badges-section {
        min-width: auto;
    }

    .badge-img,
    .naac-badge {
        width: 70px;
        height: 70px;
    }

    .nav-link {
        padding: 14px 8px;
        font-size: 10px;
    }

    .call-now-btn {
        font-size: 9px;
        padding: 10px 12px;
    }

    .navbar-admission-bar {
        padding: 10px 15px;
        font-size: 12px;
    }

    /* Adjust main margin for tablet navbar height */
    .main {
        margin-top: 230px !important;
    }
}

/* Mobile (480px and below) - Allow vertical on very small screens */
@media (max-width: 480px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-top-banner {
        padding: 10px 12px;
        font-size: 12px;
        flex-wrap: wrap;
    }

    .banner-center {
        margin: 5px 0;
        order: 3;
        width: 100%;
        font-size: 11px;
    }

    .banner-left,
    .banner-right {
        font-size: 11px;
        gap: 8px;
    }

    .erp-login {
        padding: 5px 10px;
        font-size: 11px;
    }

    .navbar-header {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar-logo {
        min-width: 50px;
        order: 1;
    }

    .college-logo {
        width: 50px;
        height: 50px;
    }

    .navbar-title-section {
        order: 2;
        flex: 1;
    }

    .navbar-title-section .college-name {
        font-size: 14px;
    }

    .navbar-title-section .college-subtitle {
        font-size: 10px;
    }

    .navbar-title-section .college-details {
        font-size: 9px;
    }

    .navbar-badges-section {
        display: none;
        order: 3;
    }

    .navbar-menu {
        padding: 0 !important;
        max-height: 100px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-menu.active {
        max-height: 1000px;
    }

    .navbar-menu-wrapper {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .navbar-nav {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .nav-item {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 11px;
        border-bottom: none;
        border-left: 4px solid transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        border-left-color: white;
        border-bottom: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        background-color: #ffffff !important;
        border: none;
        box-shadow: none;
        transition: all 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }

    .dropdown-menu a {
        padding-left: 35px;
        font-size: 11px;
        border-left: 3px solid transparent;
        color: #000000 !important;
        background-color: #ffffff !important;
    }

    .dropdown-menu a:hover {
        padding-left: 40px;
        border-left-color: #ff9933;
        background-color: #f5f5f5 !important;
        color: #000000 !important;
    }

    .navbar-cta {
        width: 100%;
        justify-content: center;
    }

    .call-now-btn {
        width: 100%;
        justify-content: center;
        font-size: 11px;
        padding: 10px 12px;
    }

    .navbar-admission-bar {
        padding: 8px 12px;
        font-size: 11px;
    }

    /* Adjust body padding for mobile navbar height (approximately 180px) */
    body {
        padding-top: 180px !important;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .navbar-top-banner {
        padding: 10px 12px;
        font-size: 12px;
        flex-wrap: wrap;
    }

    .banner-center {
        margin: 5px 0;
        order: 3;
        width: 100%;
        font-size: 11px;
    }

    .banner-left,
    .banner-right {
        font-size: 11px;
        gap: 8px;
    }

    .erp-login {
        padding: 5px 10px;
        font-size: 11px;
    }

    .navbar-header {
        padding: 10px 12px;
    }

    .navbar-logo {
        min-width: 50px;
    }

    .college-logo {
        width: 50px;
        height: 50px;
    }

    .navbar-title-section .college-name {
        font-size: 14px;
    }

    .navbar-title-section .college-subtitle {
        font-size: 10px;
    }

    .navbar-title-section .college-details {
        font-size: 9px;
    }

    .navbar-badges-section {
        display: none;
    }

    .navbar-menu {
        padding: 0;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 11px;
    }

    .dropdown-menu a {
        padding-left: 35px;
        font-size: 11px;
    }

    .call-now-btn {
        font-size: 11px;
        padding: 10px 12px;
    }

    .navbar-admission-bar {
        padding: 8px 12px;
        font-size: 11px;
    }

    /* Adjust main margin for mobile navbar height */
    .main {
        margin-top: 180px !important;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
body {
    padding-top: 0 !important;
}

/* Allow dynamic padding for scroll behavior */
body > .body {
    padding-top: 0;
    margin-top: 0 !important;
    transition: padding-top 0.3s ease;
}

/* Ensure main content doesn't get overlapped - Add margin to account for fixed navbar */
.main {
    margin-top: 300px !important;
    padding-top: 0 !important;
}

.navbar-main.sticky {
    position: sticky;
    top: 0;
    width: 100%;
    left: 0;
    right: 0;
}

.navbar-main.sticky + .navbar-spacer {
    height: 380px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.nav-link:focus,
.dropdown-menu a:focus {
    outline: 2px solid #d97934;
    outline-offset: -2px;
}

/* Animation for dropdown appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    animation: slideDown 0.3s ease;
}

/* ========================================
   MARQUEE ANIMATION
   ======================================== */
.navbar-marquee-row {
    background: linear-gradient(135deg, rgba(245, 134, 52, 0.05) 0%, rgba(237, 53, 58, 0.05) 100%);
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
}

.navbar-marquee-container {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    animation: marquee 20s linear infinite !important;
    white-space: nowrap;
}

.marquee-item {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff9933;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', Arial, sans-serif;
    flex-shrink: 0;
}

.marquee-link {
    color: #ff9933;
    text-decoration: underline;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.marquee-link:hover {
    opacity: 0.8;
    color: #ff9933;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
