.announcement-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 10px 0;
    position: relative;
    z-index: 1040;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 12px;
}

.announcement-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.announcement-badge {
    background: rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.announcement-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.announcement-link:hover {
    opacity: 1;
    color: #ffffff;
}

.announcement-close {
    position: absolute;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    padding: 5px;
}

.announcement-close:hover {
    opacity: 1;
}

.announcement-bar.hidden {
    display: none;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    position: sticky;
    top: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    max-width: 1320px;
    margin: 0 auto;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 12px;
}

.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.nav-link {
    color: #6b7280;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 15px;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102,126,234,0.08);
}

.nav-link.active {
    color: #667eea;
    background: rgba(102,126,234,0.1);
    font-weight: 600;
}

.nav-link {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px 3px 0 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-login {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-login:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.3);
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-dashboard {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-dashboard:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(16, 185, 129, 0.4);
    color: white;
}

.navbar-toggler {
    width: 36px;
    height: 36px;
    padding: 8px;
    border: none;
    background: transparent;
    position: relative;
    display: none;
    cursor: pointer;
}

.navbar-toggler span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1f2937;
    margin: 4px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar-toggler:hover span {
    background: #667eea;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

@media (max-width: 1200px) {
    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar-brand {
        margin-right: 0;
    }
    
    .navbar {
        padding: 12px 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .logo-img {
        width: 42px;
        height: 42px;
    }
    
    .announcement-bar {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .announcement-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    
    .announcement-close {
        right: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .announcement-link {
        display: none;
    }
    
    .offcanvas {
        max-width: 280px;
    }
    
    .logo-img {
        width: 38px;
        height: 38px;
    }
}

body {
    margin: 0;
    padding: 0;
}

main {
    padding-top: 0;
}

.hero-section {
    margin-top: 0;
}

section:first-of-type {
    padding-top: 0;
}

/* Mobile Menu Offcanvas Styles */
.offcanvas {
    border: none;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.offcanvas-header .logo-img {
    width: 40px;
    height: 40px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 18px;
    opacity: 0.6;
    margin: 0;
    padding: 8px;
}

.btn-close:hover {
    opacity: 1;
}

.offcanvas-body {
    padding: 0;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav a:hover {
    background: #f9fafb;
    color: #667eea;
}

.mobile-nav a.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 600;
}

.mobile-nav a i {
    width: 20px;
    margin-right: 12px;
}

.mobile-actions {
    padding: 24px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.btn-logout {
    background: #ef4444;
    color: white;
}

.btn-logout:hover {
    background: #dc2626;
    color: white;
}

.mobile-footer {
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

