/* Common Menu Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #ecf0f1;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fc;
--nav-gradient-start: #FC466B;
--nav-gradient-end: #3F5EFB;
    --sidebar-bg: #2c3e50;
    --sidebar-header: #1a2530;
    --sidebar-hover: #3498db;
    --sidebar-active: #e74c3c;
}

/* Top Navigation Bar Styles */
nav.navbar {
    background: linear-gradient(135deg, var(--nav-gradient-start), var(--nav-gradient-end));
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] nav.navbar {
    background: linear-gradient(135deg, #343a40, #212529);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar-brand:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link {
    font-weight: 700;
    padding: 0.8rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    color: yellow;
}

.nav-link:hover {
    background: violet;
    color: yellow;
    transform: translateY(-2px);
}

/* Underline Animation */
.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
    left: 0;
}

/* Dropdown Enhancements */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: fadeInDown 0.3s;
    background: linear-gradient(135deg, #ffe259, #ffa751);
    backdrop-filter: blur(8px);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    margin: 0.2rem 0;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, #4e73df, #224abe);
    color: white !important;
    transform: translateX(2px);
}

/* Dark mode dropdown */
[data-bs-theme="dark"] .dropdown-menu {
    background: orange;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: linear-gradient(90deg, #29c9ff, #005377);
    color: white !important;
}

/* Hover dropdown functionality for desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    
    .navbar-nav .dropdown-menu {
        margin-top: 0;
    }
}

/* Enhanced Mobile Dropdown Styles */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        display: block !important;
    }

    .navbar-nav .dropdown-menu.show {
        max-height: 500px;
        padding: 0.5rem 0;
        background-color: rgba(0,0,0,0.05);
    }

    .dropdown-item {
        padding: 0.5rem 1.5rem !important;
        color: var(--text-color) !important;
    }

    .dropdown-item:hover {
        background-color: rgba(0,0,0,0.1) !important;
    }

    .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }

    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    /* Special dropdown colors for mobile */
    .tech-dropdown, .gk-dropdown {
        background: var(--bg-color);
    }
    
    .gk-dropdown .dropdown-item {
        color: var(--text-color) !important;
    }
}

/* Left Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    color: #ffffff;
    padding: 20px 0;
    height: 100%;
    position: sticky;
    top: 0;
    overflow-y: auto;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar-header {
    padding: 15px 20px;
    background-color: var(--sidebar-header);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid var(--sidebar-hover);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
}

.sidebar-header p {
    margin: 5px 0 0;
    color: #ecf0f1;
    font-size: 0.9rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 8px 15px;
    transform: translateX(0);
    transition: transform 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
}

.sidebar-nav li:hover {
    transform: translateX(5px);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 15px;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-size: 1.0rem;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.sidebar-nav a:hover::before {
    left: 100%;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(52, 152, 219, 0.15);
    color: white;
    border-left: 4px solid var(--sidebar-hover);
}

.sidebar-nav a.active {
    background: rgba(231, 76, 60, 0.15);
    border-left: 4px solid var(--sidebar-active);
    color: #fff;
    font-weight: 500;
}

.sidebar-nav a i {
    width: 22px;
    text-align: center;
    margin-right: 12px;
    font-size: 1rem;
    transition: transform 0.3s;
}

.sidebar-nav a:hover i {
    transform: scale(1.2);
}

/* External links section */
.external-links {
    margin-top: 30px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.external-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 10px;
}

.external-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.external-links li {
    margin: 8px 0;
}

.external-links a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
    border-radius: 4px;
}

.external-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 3px solid var(--accent-color);
}

.external-links a i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Theme toggle */
.theme-toggle {
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Brand logo animations */
#brandLogo {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

#brandLogo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

#brandLogo:hover::before {
    left: 100%;
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 0.8rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    transform-origin: center;
    transition: all 0.3s ease;
}

.logo-text {
    display: inline-block;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, #7B2CBF 0%, #FF00FF 50%, #3C096C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    text-shadow: 0 0 8px rgba(123, 44, 191, 0.5);
    animation: flashAnimation 4s infinite alternate, gradientFlow 6s linear infinite;
}

@keyframes flashAnimation {
    0%, 100% { opacity: 0.9; }
    25% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 1; }
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.logo-sub {
    font-size: 1.2rem;
    color: #a6e3ff;
    font-weight: 600;
    display: block;
    letter-spacing: 1px;
    animation: subTextFloat 3s infinite ease-in-out;
}

@keyframes subTextFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

#brandLogo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    color: #ffde7d;
    text-shadow: 0 0 15px rgba(255,222,125,0.7);
}

/* Responsive styles */
@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        position: relative;
        margin-bottom: 20px;
        max-height: 400px;
        overflow-y: auto;
    }
    
    .page-wrapper {
        flex-direction: column;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Dropdown arrow animation */
.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown-toggle.expanded::after {
    transform: rotate(180deg);
}

/* Keyframes for dropdown animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PREVIOUS NEXT BUTTONS CODE */
.content-navigation {
    background: linear-gradient(to right, #f8f9fc, #ffffff);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-prev, .btn-next {
    min-width: 150px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-prev:hover, .btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-prev:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-next:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}


/* Left Sidebar Submenu Styles */
.sidebar-heading {
    padding: 10px 20px;
    margin: 15px 0 5px 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-submenu {
    position: relative;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.submenu-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.6);
}

.submenu-arrow.rotated {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 10px;
    margin: 0;
    list-style: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
}

.submenu.expanded {
    max-height: 500px;
}

.submenu li {
    margin: 0;
    border-radius: 0;
}

.submenu a {
    padding-left: 40px !important;
    font-size: 0.95rem;
    border-left: 0 !important;
    position: relative;
}

.submenu a::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.submenu a:hover::before {
    background: var(--sidebar-hover);
}

.submenu a:hover {
    background: rgba(52, 152, 219, 0.1);
    color: white;
}

.submenu a.active {
    background: rgba(231, 76, 60, 0.1);
    color: #fff;
    font-weight: 500;
}

.submenu a.active::before {
    background: var(--sidebar-active);
}

.sidebar-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Responsive styles for sidebar */
@media (max-width: 992px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 3px 0 15px rgba(0,0,0,0.2);
    }
    
    .sidebar.collapsed {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* Animation for submenu items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.submenu li {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.submenu li:nth-child(1) { animation-delay: 0.05s; }
.submenu li:nth-child(2) { animation-delay: 0.1s; }
.submenu li:nth-child(3) { animation-delay: 0.15s; }
.submenu li:nth-child(4) { animation-delay: 0.2s; }
.submenu li:nth-child(5) { animation-delay: 0.25s; }

/* Footer styles */
.site-footer {
  background: linear-gradient(135deg, #1A2980, #26D0CE);
    color: white;
    padding: 25px 0;
    margin-top: 40px;
    width: 100%;
    flex-shrink: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffde7d;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 20px 0;
    }
    
    .footer-links a {
        display: block;
        margin: 5px 0;
    }
}
