/* Reset ve Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --accent-color: #14b8a6;
    --accent-hover: #0d9488;
    --accent-light: #5eead4;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    
    /* Curved Design */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    align-self: center;
}

.logo:hover .logo-circle {
    transform: rotate(360deg) scale(1.1);
}

.logo:hover .logo-text {
    transform: scale(1.05);
}

.logo-text {
    font-size: 28px;
    font-weight: 400;
    font-family: 'Commando', sans-serif;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    transition: transform 0.3s ease;
    text-transform: uppercase;
}

.logo-text-commando {
    font-family: 'Commando', sans-serif;
    font-weight: 400;
}

/* Navigation */
.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
}

/* Base Nav Link */
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 14px;
}

/* Dropdown Menu - Clean Design */
.nav-item.dropdown {
    position: relative;
}

/* Dropdown nav-link - NO visual changes on hover */
.nav-item.dropdown > .nav-link {
    background: transparent !important;
    border-radius: 0 !important;
}

.nav-item.dropdown > .nav-link:hover,
.nav-item.dropdown:hover > .nav-link {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.nav-item.dropdown > .nav-link::before {
    display: none !important;
}

.dropdown-icon {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.nav-item.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px; /* Gap between nav-item and dropdown to prevent accidental mouse leave */
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px var(--shadow-lg);
    list-style: none;
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
    pointer-events: none;
}

/* Keep dropdown open when hovering over nav-item or dropdown menu */
/* Only show dropdown if it has dropdown-open class to prevent multiple dropdowns */
.nav-item.dropdown.dropdown-open .dropdown-menu,
.nav-item.dropdown.dropdown-open .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--accent-light);
    padding-left: 24px;
}

.dropdown-menu a i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: visible;
}

/* Hero section'a background image eklendiyse overlay ekle */
.hero-section[style*="background-image"] {
    background-blend-mode: overlay;
}

.hero-section[style*="background-image"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    overflow: visible;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    padding: 0 10px;
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(20, 184, 166, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(20, 184, 166, 0.6);
}

/* Statistics Section */
.stats-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-tertiary);
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-lg);
    border-color: var(--accent-color);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.stat-card:nth-child(1) .stat-icon {
    color: #3b82f6;
}

.stat-card:nth-child(2) .stat-icon {
    color: #10b981;
}

.stat-card:nth-child(3) .stat-icon {
    color: #06b6d4;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 400;
}

.gallery-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item-home {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-tertiary);
    aspect-ratio: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.gallery-item-home:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.gallery-item-home img,
.gallery-item-home video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item-home:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    pointer-events: none;
}

.gallery-item-home:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-grid-home {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-section {
        padding: 60px 0;
    }
}

/* Page Content */
.page-header {
    padding: 60px 0 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content {
    padding: 60px 0;
}

.content-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-xl);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px var(--shadow);
}

/* Footer */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 20px;
    justify-items: start;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 20px;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px var(--shadow-lg);
    }

    .main-nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 30px;
        border-radius: 0;
        width: 100%;
        justify-content: flex-start;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .dropdown-menu a {
        padding: 12px 30px 12px 50px;
    }

    .hero-section {
        padding: 80px 0 60px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-card {
        padding: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: start;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }

    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn-primary {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Drivers Section */
.drivers-section {
    padding: 80px 0;
    background: var(--bg-primary);
    min-height: 70vh;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 400;
}

.drivers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.driver-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    max-width: 450px;
}

.driver-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.driver-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(20, 184, 166, 0.3);
}

.driver-card:hover::before {
    transform: scaleX(1);
}

.driver-avatar-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.driver-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.driver-avatar[style*="object-fit: contain"] {
    background: white;
    padding: 10px;
    border-radius: 50%;
}

.driver-card:hover .driver-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.4);
}

.driver-avatar-placeholder {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    border: 4px solid var(--accent-color);
}

.driver-info {
    position: relative;
}

.driver-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.driver-roles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.driver-role-badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg-primary);
    color: var(--accent-light);
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    width: fit-content;
    min-width: 120px;
    text-align: center;
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.8), 0 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.driver-role-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(94, 234, 212, 0.05));
    border-radius: var(--radius-md);
    z-index: -1;
}

.driver-card:hover .driver-role-badge {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border-color: var(--accent-light);
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.8), 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 30px rgba(20, 184, 166, 0.4) inset;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.7);
}

.drivers-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.drivers-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.drivers-empty p {
    font-size: 1.2rem;
}

/* Responsive for Drivers */
@media (max-width: 1200px) {
    .drivers-grid {
        gap: 25px;
    }
    
    .driver-card {
        flex: 1 1 calc(33.333% - 17px);
        min-width: 250px;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .drivers-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .drivers-grid {
        gap: 20px;
    }
    
    .driver-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
        max-width: 350px;
        padding: 25px 15px;
    }
    
    .driver-avatar {
        width: 100px;
        height: 100px;
    }
    
    .driver-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .drivers-grid {
        gap: 20px;
    }
    
    .driver-card {
        flex: 1 1 100%;
        min-width: 200px;
        max-width: 300px;
    }
    
    .driver-avatar {
        width: 90px;
        height: 90px;
    }
    
    .driver-name {
        font-size: 1.1rem;
    }
}

/* Apply Section */
.apply-section {
    padding: 80px 20px;
    background: var(--bg-primary);
    min-height: calc(100vh - 200px);
}

.apply-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.apply-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.discord-login-box {
    text-align: center;
    padding: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 2px dashed var(--accent-color);
}

.discord-login-box h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.discord-login-box p {
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #5865F2;
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.welcome-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.ban-blocked-message {
    text-align: center;
    padding: 40px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: #fca5a5;
}

.ban-blocked-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.ban-blocked-message h3 {
    margin-bottom: 10px;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    padding: 25px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group .required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
}

.btn-fetch {
    padding: 12px 20px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-fetch:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.player-info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-top: 10px;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player-details strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.join-date {
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.ban-count {
    color: #fca5a5;
    font-size: 0.9rem;
}

.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: var(--accent-color);
    background: rgba(20, 184, 166, 0.05);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span,
.checkbox-label input[type="checkbox"]:checked + span {
    color: var(--accent-light);
    font-weight: 600;
}

.form-help {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.btn-submit {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.4);
}

.logout-section {
    margin-top: 30px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.loading-spinner {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: var(--accent-color);
}

.loading-spinner i {
    font-size: 1.2rem;
}

.tmp-error {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tmp-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.tmp-error.ban-error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-weight: 600;
}

/* Application Status Box */
.application-status-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
}

.status-header i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.status-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.status-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.status-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    width: fit-content;
    text-align: center;
}

.status-badge-large.status-pending {
    background: rgba(251, 191, 36, 0.2);
    border: 2px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.status-badge-large.status-approved {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.status-badge-large.status-rejected,
.status-badge-large.status-declined {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.status-badge-large.status-inactive {
    background: rgba(148, 163, 184, 0.2);
    border: 2px solid rgba(148, 163, 184, 0.4);
    color: #94a3b8;
}

.status-badge-large.status-blacklisted {
    background: rgba(139, 69, 19, 0.2);
    border: 2px solid rgba(139, 69, 19, 0.4);
    color: #8b4513;
}

.application-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.status-note {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(20, 184, 166, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-md);
}

.status-note i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 2px;
}

.status-note p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.status-note.status-success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
}

.status-note.status-success i {
    color: #22c55e;
}

.status-note.status-error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

.status-note.status-error i {
    color: #ef4444;
}

.status-note.status-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
}

.status-note.status-info i {
    color: #3b82f6;
}

@media (max-width: 768px) {
    .apply-container {
        padding: 25px 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
}

/* ========================================
   Gallery Page Styles
   ======================================== */

.gallery-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.gallery-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 184, 166, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 5px 25px rgba(20, 184, 166, 0.4);
}

.filter-btn .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-left: 4px;
}

.filter-btn.active .count {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-container {
    padding: 40px 0 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(20, 184, 166, 0.3);
    border-color: var(--accent-color);
    z-index: 10;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-overlay-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.gallery-item-type {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    transition: all 0.3s ease;
    font-weight: 600;
}

.gallery-item:hover .gallery-item-type {
    background: var(--accent-color);
    transform: scale(1.1);
}

.empty-gallery {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-gallery i {
    font-size: 80px;
    margin-bottom: 30px;
    opacity: 0.3;
    display: block;
}

.empty-gallery h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 95%;
    max-height: 95vh;
    position: relative;
    cursor: default;
    animation: zoomIn 0.3s ease;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-toolbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10002;
    pointer-events: none;
}

.lightbox-counter {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    pointer-events: auto;
}

.lightbox-controls {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.lightbox-btn {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-image-container {
    position: relative;
    display: none;
    max-width: 95vw;
    max-height: 95vh;
    overflow: auto;
    cursor: grab;
    scroll-behavior: smooth;
}

.lightbox-image-container:active {
    cursor: grabbing;
}

.lightbox-image {
    max-width: 100%;
    max-height: 95vh;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    transform-origin: center center;
    user-select: none;
}

.lightbox-video {
    max-width: 100%;
    max-height: 95vh;
    display: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-navigation {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-navigation:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    color: white;
    animation: slideUp 0.3s ease 0.2s both;
    max-width: 80%;
    z-index: 10003;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.lightbox-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.lightbox-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Gallery Responsive */
@media (max-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-overlay {
        padding: 30px;
    }
    
    .gallery-overlay-content h3 {
        font-size: 1.3rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .lightbox-toolbar {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .lightbox-counter {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-navigation {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-info {
        bottom: 10px;
        padding: 12px 20px;
        max-width: 90%;
    }
    
    .lightbox-info h3 {
        font-size: 1.1rem;
    }
    
    .lightbox-info p {
        font-size: 0.9rem;
    }
}

/* Events Page Styles */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--bg-secondary);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px var(--shadow);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
    border-color: var(--accent-color);
}

.event-banner {
    width: 100%;
    aspect-ratio: 4 / 1;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
}

.event-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.event-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.event-banner-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.event-banner-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
}

.event-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.event-detail-item i {
    color: var(--accent-color);
    width: 16px;
    text-align: center;
}

.event-details-btn {
    margin-top: auto;
    padding: 12px 24px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.event-details-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
}

.event-details-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-content {
        padding: 20px;
    }
}

/* News Detail Page Styles */
.news-detail-article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.news-detail-banner {
    width: 100%;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
}

.news-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.news-banner-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--accent-color);
}

.news-banner-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.7;
    color: var(--text-secondary);
}

.news-default-banner {
    width: 100%;
    height: 100%;
    position: relative;
}

.news-default-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.news-detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.news-detail-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-detail-summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    font-style: italic;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.news-detail-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
    margin-top: 0;
}

.news-detail-content > *:first-child {
    margin-top: 0;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3 {
    color: var(--accent-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.news-detail-content h1 {
    font-size: 2rem;
}

.news-detail-content h2 {
    font-size: 1.6rem;
}

.news-detail-content h3 {
    font-size: 1.3rem;
}

.news-detail-content p {
    margin-bottom: 10px;
    margin-top: 0;
}

.news-detail-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.news-detail-content a:hover {
    color: var(--accent-light);
}

.news-detail-content code {
    background: rgba(20, 184, 166, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.news-detail-content pre {
    background: rgba(20, 184, 166, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.news-detail-content pre code {
    background: none;
    padding: 0;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 10px 0;
    padding-left: 30px;
}

.news-detail-content li {
    margin-bottom: 8px;
}

.news-detail-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 15px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.news-detail-content blockquote p {
    margin: 5px 0;
}

.news-detail-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
}

.news-pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .news-detail-article {
        padding: 20px;
    }
    
    .news-detail-title {
        font-size: 1.8rem;
    }
}

/* ========================================
   Recruitment Categories Styles
   ======================================== */

.categories-list {
    margin-top: 40px;
    animation: fadeIn 0.6s ease-in;
}

.categories-list h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.category-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(94, 234, 212, 0.05));
    border: 2px solid rgba(20, 184, 166, 0.2);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    flex: 1 1 calc(25% - 18px);
    min-width: 280px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.category-card:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(94, 234, 212, 0.1));
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.15), 0 0 1px rgba(20, 184, 166, 0.3);
    transform: translateY(-8px) scale(1.02);
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.category-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.category-card .btn-primary {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.category-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(20, 184, 166, 0.5);
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
}

.category-card:nth-child(1) { animation: fadeIn 0.6s ease-in 0.1s both; }
.category-card:nth-child(2) { animation: fadeIn 0.6s ease-in 0.2s both; }
.category-card:nth-child(3) { animation: fadeIn 0.6s ease-in 0.3s both; }
.category-card:nth-child(4) { animation: fadeIn 0.6s ease-in 0.4s both; }

/* Recruitment Responsive Design */
@media (max-width: 1600px) {
    .category-card {
        flex: 1 1 calc(33.333% - 16px);
        max-width: 420px;
    }
}

@media (max-width: 1200px) {
    .category-card {
        flex: 1 1 calc(50% - 12px);
        max-width: 380px;
    }
}

@media (max-width: 1024px) {
    .category-card {
        flex: 1 1 calc(50% - 12px);
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        gap: 16px;
    }
    
    .category-card {
        flex: 1 1 100%;
        min-width: 200px;
        max-width: 100%;
        padding: 20px 16px;
    }
    
    .categories-list h2 {
        font-size: 24px;
    }
}

/* Transcript Error Page Styles */
body.error-page {
    background: linear-gradient(135deg, #2C2F33 0%, #23272A 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.error-container {
    background: rgba(47, 49, 54, 0.8);
    border: 2px solid #40444B;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.error-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ED4245 0%, #D13536 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 50px;
}

.error-code {
    font-size: 48px;
    font-weight: 700;
    color: #ED4245;
    margin: 20px 0;
    letter-spacing: 2px;
}

.error-title {
    font-size: 28px;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 600;
}

.error-message {
    font-size: 16px;
    color: #B9BBBE;
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-details {
    background: rgba(32, 34, 37, 0.6);
    border-left: 4px solid #ED4245;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 30px;
    text-align: left;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #40444B;
    color: #FFFFFF;
}

.btn-secondary:hover {
    background: #36393F;
    transform: translateY(-2px);
}

/* Transcript Error Page Button */
.btn-error-page {
    background: #40444B;
    color: #B9BBBE;
    border: 1px solid #5865F2;
}

.btn-error-page:hover {
    background: #36393F;
    color: #FFFFFF;
}

/* Calendar Section Styles */
.calendar-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.calendar-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-top: 30px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-nav-btn {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.calendar-nav-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.calendar-today-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.calendar-today-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.calendar-month-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    text-align: center;
}

.calendar-view-toggle {
    display: flex;
    gap: 5px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: var(--accent-color);
    color: white;
}

.view-btn:hover:not(.active) {
    color: var(--text-primary);
}

.calendar-container {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border-color);
}

.calendar-grid.month-view {
    grid-auto-rows: 100px;
}

.calendar-day-header {
    background: var(--bg-tertiary);
    padding: 4px 6px;
    text-align: center;
    font-weight: 700;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.calendar-day-header:first-child {
    border-top-left-radius: var(--radius-sm);
}

.calendar-day-header:nth-child(7) {
    border-top-right-radius: var(--radius-sm);
}

.calendar-day-cell {
    background: var(--bg-primary);
    height: 100px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    transition: background 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Round corners for last row cells */
.calendar-day-cell.last-row-first {
    border-bottom-left-radius: var(--radius-sm);
}

.calendar-day-cell.last-row-last {
    border-bottom-right-radius: var(--radius-sm);
}

/* For week view - round all corners */
.calendar-grid.week-view .calendar-day-header:first-child {
    border-top-left-radius: var(--radius-sm);
}

.calendar-grid.week-view .calendar-day-header:nth-child(7) {
    border-top-right-radius: var(--radius-sm);
}

.calendar-grid.week-view .calendar-day-cell:first-child {
    border-bottom-left-radius: var(--radius-sm);
}

.calendar-grid.week-view .calendar-day-cell:nth-child(7) {
    border-bottom-right-radius: var(--radius-sm);
}

.calendar-day-cell:hover {
    background: var(--bg-secondary);
}

.calendar-day-cell.other-month {
    opacity: 1;
}

.calendar-day-cell.other-month .calendar-day-number {
    opacity: 0.4;
}

.calendar-day-cell.today {
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid var(--accent-color);
}

.calendar-day-cell.today .calendar-day-number {
    color: var(--accent-color);
    font-weight: 700;
}

.calendar-day-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    flex-shrink: 0;
    line-height: 1.2;
}

.calendar-day-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 100%;
}

/* Custom scrollbar for calendar events */
.calendar-day-events::-webkit-scrollbar {
    width: 6px;
}

.calendar-day-events::-webkit-scrollbar-track {
    background: transparent;
}

.calendar-day-events::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.calendar-day-events::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.calendar-event-item {
    background: var(--accent-color);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    flex-shrink: 0;
}

.calendar-event-item:hover {
    background: var(--accent-hover);
    transform: translateX(2px);
}

/* Week view specific styles - same as month view */
.calendar-grid.week-view {
    grid-auto-rows: 100px;
}

.calendar-grid.week-view .calendar-day-cell {
    height: 100px;
}

.calendar-grid.week-view .calendar-day-events {
    overflow-y: auto;
    max-height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-wrapper {
        padding: 20px 15px;
    }
    
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calendar-month-year {
        order: -1;
        margin-bottom: 15px;
    }
    
    .calendar-nav-btn,
    .calendar-today-btn {
        flex: 1;
    }
    
    .calendar-view-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .calendar-grid.month-view {
        grid-auto-rows: 80px;
    }
    
    .calendar-day-cell {
        height: 80px;
        padding: 4px 3px;
    }
    
    .calendar-day-number {
        font-size: 14px;
    }
    
    .calendar-event-item {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .calendar-grid.week-view {
        grid-auto-rows: 80px;
    }
    
    .calendar-grid.week-view .calendar-day-cell {
        height: 80px;
    }
    
    .calendar-grid.week-view .calendar-day-events {
        overflow-y: auto;
        max-height: 100%;
    }
}

