:root {
    --primary-red: #C4161C;
    --white: #FFFFFF;
    --gold: #F4C430;
    --dark: #1E1E1E;
    --navy-blue: #1F2A44;
    --light-gray: #F5F5F5;
    --primary-color: #1a5f7a;
    --secondary-color: #57cc99;
    --footer-bg: #1E1E1E;
    --primary-blue: #4361ee;
    --primary-purple: #7209b7;
    --primary-green: #4cc9f0;
    --accent-orange: #f72585;
    --accent-yellow: #ffd166;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient-1: linear-gradient(135deg, #4f46e5, #8b5cf6);
    --gradient-2: linear-gradient(135deg, #06b6d4, #3b82f6);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    line-height: 1.6;
    overflow: visible;
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: var(--dark);
}

/* Topbar.css */
.topbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #f9655b, #ee821a);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    z-index: 1100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.topbar-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.topbar-container div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-container div:first-child span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Topbar */
@media (max-width: 768px) {
    .topbar {
        padding: 6px 0;
        font-size: 12px;
    }

    .topbar-container {
        width: 95%;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .topbar-container div {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .topbar {
        font-size: 11px;
    }

    .topbar-container div {
        flex-direction: column;
        gap: 3px;
    }

    .topbar-container div span {
        margin: 0 5px;
    }
}


/* Navbar.css */
.navbar-custom {
    background: var(--primary-red);
    padding: 5px 0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 3px rgb(58 3 3 / 50%);
    z-index: 9999;
    border-bottom: 2px solid yellow;
}

.navbar-custom.scrolled {
    background: var(--primary-red)!important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    /*padding: 8px 0;*/
}

.topbar-custom.scrolledhide {
    display: none;
}

.logo-img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.navbar-custom .navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 15px !important;
    margin: 0 5px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled .navbar-nav .nav-link {
    color: var(--white) !important;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: #000 !important;
    background-color: #fff95b !important;
}

.navbar-custom.scrolled .navbar-nav .nav-link:hover {
    color: var(--gold) !important;
}

.navbar-custom .navbar-nav .nav-link {
    position: relative;
}

/* Underline using ::before so ::after arrow remains safe */
.navbar-custom .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

/* Hover underline */
.navbar-custom .navbar-nav .nav-link:hover::before {
    width: calc(100% - 30px);
}


/* Dropdown Styles */
.dropdown-menu-custom {
    background: var(--white);
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 220px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-menu-custom .dropdown-item {
    color: #333;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-menu-custom .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--gold);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

.dropdown-menu-custom .dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    color: var(--primary-red);
    padding-left: 30px;
}

.dropdown-menu-custom .dropdown-item:hover::before {
    height: 60%;
}

/* Hover dropdown enable */
.navbar-custom .dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Smooth animation */
.navbar-custom .dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.navbar-custom .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Admission/Payment Button */
.payment-btn {
    background: #091970;
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.payment-btn:hover {
    background: var(--primary-red) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-custom.scrolled .navbar-nav .payment-btn {
    background: var(--primary-red);
    color: var(--white) !important;
}

.navbar-custom.scrolled .navbar-nav .payment-btn:hover {
    color: var(--white) !important;
}

/* Navbar Toggler */
.navbar-toggler-custom {
    border: none;
    padding: 5px;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom.scrolled .navbar-toggler-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23c8102e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-custom {
        padding: 8px 15px;
    }

    .logo-img {
        height: 40px;
    }

    /* .navbar-nav {
        padding: 1px 0;
    } */

    .navbar-custom .navbar-nav .nav-link {
        padding: 12px 15px !important;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-custom.scrolled .navbar-nav .nav-link {
        color: var(--white) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu-custom {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--gold);
        border-radius: 0;
        padding: 0;
        margin-left: 20px;
    }

    .dropdown-menu-custom .dropdown-item {
        color: rgba(255, 255, 255, 0.95) !important;
        padding: 10px 15px 10px 25px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu-custom .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--gold) !important;
        padding-left: 30px !important;
    }

    .payment-btn {
        margin: 15px 15px 0 15px;
        display: block;
        text-align: center;
        width: calc(100% - 30px);
    }

    .navbar-custom .navbar-nav .nav-link::after {
        display: none;
    }
}

/* Dropdown arrow */
.dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

.navbar-custom.scrolled .dropdown-toggle::after {
    border-top-color: var(--primary-red);
}

.navbar-custom .dropdown-toggle::after {
    border-top-color: var(--white);
}

.navbar-custom .dropdown-toggle:hover::after {
    border-top-color: #f0ff6b;
}

.navbar-custom.scrolled .dropdown-toggle:hover::after {
    border-top-color: var(--gold);
}