/* Custom styles for Academy LMS */

/* Set standard Bootstrap container width to 1320px */
.container, 
.container-fluid,
.container-xl,
.container-lg,
.container-md,
.container-sm,
.container-xxl {
    max-width: 1320px !important;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* The !important flag ensures our styles override the default Bootstrap styles */
@media (min-width: 576px) {
    .container-sm, .container {
        max-width: 540px !important;
    }
}

@media (min-width: 768px) {
    .container-md, .container-sm, .container {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {
    .container-lg, .container-md, .container-sm, .container {
        max-width: 960px !important;
    }
}

@media (min-width: 1200px) {
    .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1320px !important;
    }
}

@media (min-width: 1400px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1320px !important;
    }
}

/* Typography Improvements */
/* Typography Improvements */
body {
    font-family: 'Hind Siliguri', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #484848;
    line-height: 1.6;
}

/* Bengali Text Font Optimization */
[lang="bn"], 
.bengali-text,
*:lang(bn) {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Kalpurush', 'SolaimanLipi', sans-serif !important;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    color: #303030;
}

p {
    font-weight: 400;
    line-height: 1.7;
}

/* Navigation Improvements */
.navbar-nav .nav-link {
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #c80900 !important;
}

/* Top navbar styling with gradient colors */
.top-navbar {
    background: #c80900 !important;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-weight: 600 !important;
    position: relative;
    z-index: 1030;
}

.top-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #c80900, #ff3b30, #c80900);
    opacity: 0.7;
}

.top-navbar .text-dark-blue,
.top-navbar i,
.top-navbar .font-14 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.top-navbar .border-left {
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    height: 20px !important;
    margin-top: 2px;
}

/* Improved Icon Styling */
.top-navbar i {
    font-size: 18px !important;
    vertical-align: middle;
    margin-right: 6px;
    position: relative;
    top: -1px;
}

/* Telephone and Email Contact Styling */
.top-navbar a {
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.top-navbar a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Language Pill Toggle - Enhanced design */
.language-pill-toggle {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.language-pill-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.language-pill-option {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    padding: 0px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    letter-spacing: 0.5px;
}

.language-pill-option.active {
    background-color: #ffffff;
    color: #c80900 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.language-pill-option:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Contact Info Styling - Enhanced */
.contact-info-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    padding: 5px;
    transition: transform 0.2s ease;
    color: #ffffff !important;
}

.contact-info-item:hover {
    transform: translateY(-2px);
}

.contact-info-item i {
    margin-right: 8px;
    font-size: 16px;
}

/* Login/Register Toggle Slider */
.auth-toggle-container {
    display: inline-block;
    margin-left: 10px;
}

.auth-toggle {
    background-color: #f8f9fa;
    border-radius: 30px;
    padding: 4px;
    display: flex;
    position: relative;
    width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-toggle:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.auth-toggle-option {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.auth-toggle-option.active {
    color: #fff;
}

.auth-toggle-option:hover {
    text-decoration: none;
    color: #c80900;
}

.auth-toggle-option.active:hover {
    color: #fff;
}

.auth-toggle-slider {
    position: absolute;
    left: 4px;
    top: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background-color: #c80900;
    border-radius: 30px;
    transition: transform 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(200, 9, 0, 0.3);
}

/* Mobile auth toggle */
.auth-toggle-container-mobile .auth-toggle {
    width: 150px;
}

.auth-toggle-container-mobile .auth-toggle-option {
    font-size: 12px;
    padding: 6px 5px;
}

/* Second navigation bar enhancement */
.main-navbar {
    box-shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.07);
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    background-color: #ffffff;
    position: relative;
    z-index: 1020;
    transition: all 0.3s ease;
}

#navbarVacuum {
    height: 0;
    transition: height 0.3s ease;
}

.navbar-brand {
    padding: 0.3rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 45px;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.03);
}

/* New navbar button styling */
.nav-btn {
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    font-size: 14px !important;
}

.btn-danger.nav-btn {
    background-color: #c80900 !important;
    border-color: #c80900 !important;
    color: white !important;
}

.btn-danger.nav-btn:hover {
    background-color: #b50800 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(200, 9, 0, 0.25);
}

.btn-outline-danger.nav-btn {
    color: #c80900 !important;
    border-color: #c80900 !important;
    background-color: transparent !important;
}

.btn-outline-danger.nav-btn:hover {
    background-color: rgba(200, 9, 0, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(200, 9, 0, 0.15);
}

/* Register button with slight styling difference */
.register-btn {
    background-color: #f8f9fa !important;
}

.register-btn:hover {
    background-color: #f1f3f5 !important;
}

/* Main menu items */
.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.navbar-nav .nav-link {
    font-size: 15px;
    color: #484848 !important;
    position: relative;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px;
    left: 50%;
    background-color: #c80900;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 30px;
}

.navbar-nav .nav-link:hover {
    color: #c80900 !important;
}

/* User Account Dropdown Menu Styling */
.user-dropdown-menu,
.mobile-user-dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(200, 9, 0, 0.05);
    padding: 0.8rem 0;
    min-width: 240px;
    margin-top: 12px;
    border-top: 3px solid #c80900;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform-origin: top;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    background-color: #ffffff;
}

/* Show dropdown on hover */
.user-dropdown:hover .user-dropdown-menu,
.mobile-user-dropdown:hover .mobile-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu::before,
.mobile-user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #c80900;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.mobile-user-dropdown-menu::before {
    right: 10px;
}

.dropdown-item {
    padding: 0.8rem 1.2rem;
    font-size: 14px;
    font-weight: 500;
    color: #484848;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: rgba(200, 9, 0, 0.05);
    color: #c80900;
    transform: translateX(5px);
    border-left: 3px solid #c80900;
}

/* Dropdown icon container styling */
.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: rgba(200, 9, 0, 0.08);
    margin-right: 12px;
    transition: all 0.3s ease;
}

.dropdown-item:hover .dropdown-icon {
    background-color: rgba(200, 9, 0, 0.15);
    transform: scale(1.1) rotate(5deg);
}

.dropdown-icon i {
    color: #c80900;
    transition: all 0.3s ease;
}

.dropdown-item:hover .dropdown-icon i {
    color: #c80900;
    transform: scale(1.1);
}

.dropdown-divider {
    margin: 0.3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dropdown toggle button styling */
.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: 0.15em;
    transition: transform 0.2s ease;
}

.user-dropdown:hover .dropdown-toggle::after,
.mobile-user-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.user-dropdown:hover .btn-outline-danger.nav-btn,
.mobile-user-dropdown:hover .btn-outline-danger.nav-btn {
    background-color: rgba(200, 9, 0, 0.05) !important;
}

/* Mobile dropdown styling */
.mobile-user-dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    margin-top: 5px;
}

/* Sticky navbar effect */
.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    animation: slideDown 0.35s ease-out;
    padding: 10px 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Navbar toggler custom styling */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 9, 0, 0.25);
}

.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='rgba(200, 9, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Responsive adjustments for navbar */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
    
    .navbar-nav .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .navbar-nav .nav-link::after {
        bottom: 5px;
    }
    
    .navbar-nav .nav-link:hover::after {
        width: 40px;
    }
}

/* Responsive adjustments for top navbar */
@media (max-width: 767px) {
    .top-navbar .row {
        flex-direction: column;
    }
    
    .top-navbar .col-md-8,
    .top-navbar .col-md-4 {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 5px;
    }
    
    .top-navbar .col-md-4 {
        margin-top: 10px;
    }
    
    .contact-info-item {
        margin-right: 15px;
        margin-left: 15px;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
} 

/* Modern Registration Page Styling */
.login-container {
    margin: 80px 0 70px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-container:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.login-container img {
    border-radius: 20px 0 0 20px;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.login-container img:hover {
    transform: scale(1.03);
}

.login-card {
    padding: 50px 40px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.login-card h1 {
    font-size: 28px;
    font-weight: 700 !important;
    margin-bottom: 25px;
    color: #333;
    position: relative;
}

.login-card h1:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 4px;
    width: 60px;
    background: linear-gradient(to right, #c80900, #ff3b30);
    border-radius: 2px;
}

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

.form-control {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
    padding: 10px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.form-control:focus {
    border-color: #c80900;
    box-shadow: 0 0 0 3px rgba(200, 9, 0, 0.1);
}

.input-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.wizard-custom-radio {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.wizard-custom-radio-item {
    position: relative;
}

.wizard-custom-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.wizard-custom-radio-item label {
    background-color: #fff;
    border: 1px solid #e1e1e1;
    padding: 12px 20px !important;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px !important;
    color: #555;
    margin: 0;
    cursor: pointer;
}

.wizard-custom-radio-item input[type="radio"]:checked + label {
    background: linear-gradient(to right, #c80900, #ff3b30);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(200, 9, 0, 0.2);
}

.wizard-custom-radio-item:first-child label {
    border-radius: 10px 0 0 10px;
}

.wizard-custom-radio-item:last-child label {
    border-radius: 0 10px 10px 0;
}

.btn-primary {
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(to right, #c80900, #ff3b30);
    border: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(200, 9, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #b00800, #e62e24);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 9, 0, 0.3);
}

.custom-control-label {
    font-size: 14px;
    padding-left: 5px;
    color: #555;
}

.custom-control-label a {
    color: #c80900;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-control-label a:hover {
    color: #ff3b30;
    text-decoration: none;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #c80900;
    border-color: #c80900;
}

.text-secondary {
    color: #666 !important;
}

.select2-container--default .select2-selection--single {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
    padding: 10px 15px;
    font-size: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
}

.invalid-feedback {
    font-size: 13px;
    font-weight: 500;
    color: #ff3b30;
    margin-top: 5px;
}

@media (max-width: 991px) {
    .login-container {
        margin: 40px 0;
    }
    
    .login-card {
        padding: 40px 25px;
    }
}

@media (max-width: 767px) {
    .login-container img {
        border-radius: 20px 20px 0 0;
        max-height: 200px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-card h1 {
        font-size: 24px;
    }
    
    .form-control, .btn-primary {
        height: 45px;
    }
} 

/* Animations for Registration Page */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@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 pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

.fadeInDown {
    animation-name: fadeInDown;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.pulse {
    animation-name: pulse;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

.form-group.focused .input-label {
    color: #c80900;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Enhanced form styling */
.form-group {
    position: relative;
    transition: all 0.3s ease;
}

.form-control:focus + .input-label,
.form-group.focused .input-label {
    color: #c80900;
}

/* Enhance Select2 Dropdown */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #c80900;
    color: white;
}

.select2-dropdown {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e1e1;
    overflow: hidden;
}

/* Add floating label effect */
.floating-label {
    position: relative;
}

.floating-label .form-control {
    height: 56px;
    padding-top: 20px;
    padding-bottom: 0;
}

.floating-label .input-label {
    position: absolute;
    top: 17px;
    left: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-label .form-control:focus ~ .input-label,
.floating-label .form-control:not(:placeholder-shown) ~ .input-label {
    top: 8px;
    left: 16px;
    font-size: 11px;
    opacity: 0.7;
} 

/* Mobile Menu Styles */
@media (max-width: 991px) {
    /* Hide top navbar on mobile */
    .top-navbar {
        display: none !important;
    }
    
    /* Mobile sidebar menu styling */
    .navbar-toggle-content {
        position: fixed;
        top: 0;
    left: -100%; /* Position off-screen to the left */
    right: auto !important; /* Override any right positioning */
        width: 85%; /* Increased width for better visibility */
        max-width: 320px;
        height: 100vh;
        background-color: #fff;
        z-index: 1050;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.15); /* Adjusted shadow for left side */
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Enhanced easing for smoother animation */
        overflow-y: auto;
        padding: 25px !important;
    transform: translateX(0);
    }
    
    .navbar-toggle-content.mobile-menu-open {
    left: 0; /* Slide in from left */
    right: auto !important;
    transform: translateX(0);
    }
    
    /* Close button styling */
    .navbar-toggle-header {
        display: flex !important;
    justify-content: flex-start; /* Align to the left for left-side menu */
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-toggle-header .btn-transparent {
        padding: 8px;
        border-radius: 50%;
        transition: all 0.2s ease;
        background-color: rgba(200, 9, 0, 0.05);
    }
    
    .navbar-toggle-header .btn-transparent:hover {
        background-color: rgba(200, 9, 0, 0.1);
        transform: rotate(90deg);
    }
    
    /* Overlay styling */
 
    
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Prevent body scrolling when menu is open */
    body.no-scroll {
        overflow: hidden;
    }
    
    /* Mobile sidebar menu items */
    .navbar-nav .nav-item {
        margin: 8px 0;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        font-size: 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
        background-color: transparent;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        font-weight: 500;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(200, 9, 0, 0.05);
        color: #c80900;
        transform: translateX(5px);
    }
    
    /* Highlight Browse Courses - Enhanced */
    .navbar-nav .nav-link.browse-courses-link {
        background-color: rgba(200, 9, 0, 0.12);
        color: #c80900;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(200, 9, 0, 0.15);
        position: relative;
        overflow: hidden;
    }
    
    .navbar-nav .nav-link.browse-courses-link::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, rgba(200, 9, 0, 0.05), rgba(200, 9, 0, 0), rgba(200, 9, 0, 0.05));
        animation: shine 2s infinite;
    }
    
    @keyframes shine {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }
    
    .navbar-nav .nav-link.browse-courses-link:hover {
        background-color: rgba(200, 9, 0, 0.18);
        transform: translateX(5px) scale(1.02);
        box-shadow: 0 4px 12px rgba(200, 9, 0, 0.2);
    }
    
    .navbar-nav .nav-link.browse-courses-link i {
        color: #c80900;
        font-size: 18px;
    }
    
    /* Highlight Login and Registration links */
    .navbar-nav .nav-link.login-link,
    .navbar-nav .nav-link.register-link {
        background-color: rgba(200, 9, 0, 0.08);
        color: #c80900;
        font-weight: 600;
        margin-top: 5px;
    }
    
    .navbar-nav .nav-link.login-link {
        border: 1px solid rgba(200, 9, 0, 0.3);
    }
    
    .navbar-nav .nav-link.register-link {
        background-color: rgba(200, 9, 0, 0.12);
        box-shadow: 0 2px 8px rgba(200, 9, 0, 0.1);
    }
    
    .navbar-nav .nav-link.login-link:hover,
    .navbar-nav .nav-link.register-link:hover {
        background-color: rgba(200, 9, 0, 0.15);
        transform: translateX(5px);
    }
    
    .navbar-nav .nav-link.login-link i,
    .navbar-nav .nav-link.register-link i {
        color: #c80900;
    }
    
    /* Mobile language selector */
    .mobile-language-selector {
        margin: 25px 0;
        padding: 15px 0;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-language-selector .language-pill-toggle {
        width: 100%;
        justify-content: space-between;
        background-color: #f8f9fa;
        border-color: #e1e1e1;
        border-radius: 10px;
        padding: 5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .mobile-language-selector .language-pill-option {
        flex: 1;
        text-align: center;
        color: #484848;
        padding: 10px 0;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .mobile-language-selector .language-pill-option.active {
        background-color: #c80900;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(200, 9, 0, 0.25);
    }
    
    /* Enhanced mobile menu styling */
    .navbar-nav {
        padding: 0;
    }
    
    .navbar-nav .nav-link {
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        border-bottom: none;
    }
    
    .navbar-nav .nav-link i {
        margin-right: 12px;
        min-width: 20px;
        color: #c80900;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover i {
        transform: scale(1.2);
    }
}

/* Desktop Menu Styles */
@media (min-width: 992px) {
    /* Ensure navbar content is visible on desktop */
    .navbar-toggle-content {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        overflow: visible;
        padding: 0 !important;
        transform: none !important; /* Ensure no transform on desktop */
        right: auto !important; /* Reset right positioning on desktop */
    }
    
    /* Hide mobile-only elements on desktop */
    .navbar-toggle-header,
    .mobile-language-selector {
        display: none !important;
    }
    
    /* Restore desktop nav styles */
    .navbar-nav .nav-item {
        width: auto;
    }
    
    .navbar-nav .nav-link {
        border-bottom: none;
    }
}

/* Adjust main navbar for mobile */
@media (max-width: 991px) {
    .main-navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        margin: 0 auto;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
    
    /* Center the logo */
    .d-flex.align-items-center.justify-content-between.w-100 {
        position: relative;
    }
    
    .navbar-brand.navbar-order {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Adjust toggler position */
    .navbar-toggler.navbar-order {
        order: 1;
        border: none;
        padding: 8px;
        transition: all 0.2s ease;
        border-radius: 8px;
        background-color: rgba(200, 9, 0, 0.05);
    }
    
    .navbar-toggler.navbar-order:hover {
        background-color: rgba(200, 9, 0, 0.1);
    }
    
    .navbar-toggler.navbar-order:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(200, 9, 0, 0.2);
    }
    
    /* Adjust mobile auth buttons container */
    .d-lg-none.navbar-order {
        order: 3;
    }
    
    /* Remove transform-based positioning in favor of right positioning */
    #navbarContent {
        transform: none;
    }
} 

/* Fix for toggle button not working after scrolling */
.navbar-toggler:focus + .navbar-toggle-content,
.navbar-toggler:active + .navbar-toggle-content {
    left: 0 !important;
}

/* Ensure navbar content is properly hidden when not open */
@media (max-width: 991px) {
    .navbar-toggle-content {
        display: block !important;
        visibility: hidden;
        left: -100% !important;
        transition: left 0.4s ease, visibility 0.4s ease;
    }
    
    .navbar-toggle-content.mobile-menu-open {
        visibility: visible;
        left: 0 !important;
    }
} 