/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a2536 0%, #2c3e50 100%);
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    padding-top: 0;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    min-height: 65px;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
}

/* Navbar Left - Logo */
.navbar-left {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    gap: 0.6rem;
    letter-spacing: -0.3px;
}

.logo-image {
    max-height: 40px;
    vertical-align: middle;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.logo-text {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: -0.2px;
}

/* Navbar Center - Navigation Links */
.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: center;
}

.nav-item {
    position: relative;
    white-space: nowrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: #e8f4fd;
    font-weight: 600;
    padding: 0.6rem 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-size: 0.9rem;
    letter-spacing: 0.1px;
    position: relative;
    border-radius: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
    background: rgba(52, 152, 219, 0.15);
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.2rem;
    color: #bdc3c7;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: #3498db;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding: 0.6rem 0;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu a:hover::before {
    width: 100%;
}

.dropdown-menu a:hover {
    color: #3498db;
    transform: translateX(4px);
}

/* Navbar Right - Hamburger */
.navbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Hamburger Menu */
.navbar-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1003;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.navbar-hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar-hamburger svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.navbar-hamburger svg line {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* Hamburger Animation */
.navbar-hamburger.active svg line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-hamburger.active svg line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.navbar-hamburger.active svg line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(0);
}

.mobile-sidebar.active {
    right: 0;
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo .logo-text {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
}

.sidebar-close {
    background: none;
    border: none;
    color: #2c3e50;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-close:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    border-bottom: 1px solid rgba(52, 152, 219, 0.05);
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: left;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.sidebar-link:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    color: #3498db;
    transform: translateX(5px);
}

.sidebar-arrow {
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #7f8c8d;
}

.sidebar-dropdown.active .sidebar-arrow {
    transform: rotate(180deg);
    color: #3498db;
}

.sidebar-submenu {
    list-style: none;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-submenu.active {
    max-height: 500px;
}

.sidebar-submenu a {
    display: block;
    padding: 1rem 2rem;
    color: #34495e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.sidebar-submenu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-submenu a:hover::before {
    width: 100%;
}

.sidebar-submenu a:hover {
    color: #3498db;
    transform: translateX(8px);
}

.sidebar-footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(52, 152, 219, 0.1);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
}

.sidebar-contact {
    text-align: center;
}

.sidebar-contact p {
    margin: 0.5rem 0;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-contact p:first-child {
    color: #3498db;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Footer Styles (migrated from style.css for global use) */
.footer {
    background: #0b1536;
    color: #fff;
    padding: 4rem 0 2rem 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}
.footer-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-link {
    width: 40px;
    height: 40px;
    background: #1a2536;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.social-link:hover {
    background: #2056e3;
    transform: translateY(-2px);
}
.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #2056e3;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}
.contact-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: #2056e3;
}
.footer-bottom {
    border-top: 1px solid #1a2536;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copyright p {
    color: #999;
    margin: 0;
    font-size: 0.9rem;
}
.footer-legal {
    display: flex;
    gap: 2rem;
}
.footer-legal a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-legal a:hover {
    color: #2056e3;
}
@media (max-width: 1000px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 2rem 0;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    .social-links {
        justify-content: center;
    }
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.25rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.6rem 0.4rem;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.6rem 0.3rem;
    }
    
    .dropdown-menu {
        min-width: 170px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}

/* Additional Responsive Fixes */
@media (max-width: 900px) {
    .navbar-center {
        display: none !important;
    }
    
    .navbar-hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
    }
    
    .navbar-hamburger svg {
        stroke: #ffffff !important;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3)) !important;
    }
    
    .navbar {
        padding: 0 1rem;
        justify-content: space-between;
        min-height: 60px;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .logo-image {
        max-height: 35px;
    }
    
    /* Ensure mobile sidebar is properly positioned */
    .mobile-sidebar {
        right: -320px;
        left: auto;
    }
    
    .mobile-sidebar.active {
        right: 0;
        left: auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 0.75rem;
        min-height: 55px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo-image {
        max-height: 32px;
    }
    
    .mobile-sidebar {
        width: 280px;
        right: -280px;
        left: auto;
    }
    
    .mobile-sidebar.active {
        right: auto;
        left: 0;
    }
    
    .navbar-hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
    }
    
    .navbar-hamburger svg {
        stroke: #ffffff !important;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3)) !important;
    }

}

@media (max-width: 480px) {
    .mobile-sidebar {
        width: 100%;
        right: -100%;
        left: auto;
    }
    
    .mobile-sidebar.active {
        right: 0;
        left: auto;
    }
    
    .navbar {
        padding: 0 0.5rem;
        min-height: 50px;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo-image {
        max-height: 30px;
    }
    
    .navbar-hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
    }
    
    .navbar-hamburger svg {
        width: 22px !important;
        height: 22px !important;
        stroke: #ffffff !important;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3)) !important;
    }
    
    .sidebar-header {
        padding: 1.5rem 1rem;
    }
    
    .sidebar-nav {
        padding: 1rem 0;
    }
    
    /* Ensure overlay covers full screen */
    .sidebar-overlay {
        width: 100vw;
        height: 100vh;
    }
}