/* 
 * Davis Station - Premium Cinematic Design System
 * Theme: Deep Obsidian, Cyber Navy & Glowing Gold
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #030712;
    --bg-deep: #070e1b;
    --bg-gradient: radial-gradient(ellipse at top, #0f1c3f 0%, #030712 100%);
    --bg-card: rgba(10, 17, 32, 0.75);
    --border-glass: rgba(var(--primary-rgb), 0.08);
    --border-glass-hover: rgba(var(--primary-rgb), 0.3);
    --primary: #fbbf24; /* Gold */
    --primary-rgb: 251, 191, 36;
    --primary-hover: var(--primary-hover);
    --secondary: #1d4ed8; /* Police Blue */
    --secondary-hover: #1e40af;
    --text-main: #f8fafc;
    --text-muted: #64748b;
    --text-gold: #fef08a;
    --success: #10b981;
    --danger: #ef4444;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glow: 0 0 25px rgba(var(--primary-rgb), 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 99px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0) 100%);
    pointer-events: none;
}

.glass-panel:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
    box-shadow: 0 30px 50px -10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(var(--primary-rgb), 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.95);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.brand-logo i {
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.5));
}

.brand-logo span {
    color: #fff;
    font-weight: 300;
}

.brand-sub {
    font-size: 0.65rem;
    color: #22c55e;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-item a {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 99px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-item a:hover, .nav-item.active a {
    color: #fff;
    background: rgba(var(--primary-rgb), 0.06);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.nav-item.btn-apply a {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #030712;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
    font-weight: 800;
}

.nav-item.btn-apply a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
    filter: brightness(1.1);
}


/* Hero Section with Cinematic Slideshow (Ken Burns Effect) */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.slideshow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transform: scale(1.15);
    transition: opacity 1.8s ease-in-out, transform 8s linear;
}

.slide.active {
    opacity: 0.45;
    z-index: 2;
    transform: scale(1.02); /* Slowly zoom out / in depending on base */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(3, 7, 18, 0.3) 50%, rgba(3, 7, 18, 0.8) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -2px;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-title span {
    color: var(--primary);
    background: linear-gradient(to right, var(--primary), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.25));
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 45px;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Custom Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #030712;
    border-color: var(--primary);
    box-shadow: 0 10px 30px -5px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(var(--primary-rgb), 0.6), 0 0 20px rgba(var(--primary-rgb), 0.2);
    filter: brightness(1.05);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-bg-deep {
    background-color: var(--bg-deep);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px;
}

.section-badge {
    color: var(--primary);
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 14px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 400;
}

/* Stats Section (Tactical HUD Highlight) */
/* Stats Section (Tactical HUD Highlight) */
.stats-tactical-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: -65px;
    position: relative;
    z-index: 10;
    padding: 35px 50px;
    background: radial-gradient(circle at center, rgba(15, 28, 63, 0.95) 0%, rgba(5, 9, 21, 0.98) 100%);
    border: 1px dashed rgba(var(--primary-rgb), 0.25);
    border-radius: 12px; /* Tactical sharper corners */
    box-shadow: 
        0 30px 60px -10px rgba(0, 0, 0, 0.95), 
        inset 0 0 30px rgba(var(--primary-rgb), 0.05),
        0 0 30px rgba(var(--primary-rgb), 0.1);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    transition: var(--transition);
}

.stats-tactical-panel:hover {
    border-color: rgba(var(--primary-rgb), 0.6);
    box-shadow: 
        0 35px 70px -10px rgba(0, 0, 0, 0.98), 
        inset 0 0 40px rgba(var(--primary-rgb), 0.1),
        0 0 40px rgba(var(--primary-rgb), 0.25);
    transform: translateY(-5px);
}

/* Management Section Grid and Cards (Independent) */
.management-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 3;
}

.management-card {
    position: relative;
    background: rgba(10, 17, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.management-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--rank-border-color, var(--primary));
    opacity: 0.8;
    z-index: 10;
}

.management-card:hover {
    transform: translateY(-8px);
    border-color: var(--rank-border-color, var(--primary));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.05);
}

.management-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.management-avatar-wrapper {
    width: 100%;
    height: 100%;
}

.management-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.management-card:hover .management-avatar-wrapper img {
    transform: scale(1.08);
}

.management-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(3, 7, 18, 0.9) 100%);
    position: relative;
}

.management-avatar-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
        rgba(255, 255, 255, 0.015) 25%, transparent 25%,
        transparent 50%, rgba(255, 255, 255, 0.015) 50%,
        rgba(255, 255, 255, 0.015) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

.management-avatar-fallback i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.12);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.management-card:hover .management-avatar-fallback i {
    color: var(--rank-border-color, var(--primary));
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    transform: scale(1.05);
}

.management-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 17, 32, 0.95) 0%, transparent 100%);
    pointer-events: none;
}

.management-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    background: rgba(10, 17, 32, 0.85);
}

.management-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
}

.management-badge-code {
    color: var(--primary);
    margin-right: 4px;
    font-weight: 900;
}

.management-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.management-age {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.management-rank {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.management-discord {
    font-size: 0.72rem;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.management-card:hover .management-discord {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.3);
    color: #c084fc;
}

/* Management grid responsive rules */
@media (max-width: 768px) {
    .management-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .management-grid {
        grid-template-columns: 1fr;
    }
}

/* Corner Brackets for Tactical HUD Look */
.hud-bracket {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary);
    pointer-events: none;
    opacity: 0.7;
    transition: var(--transition);
}

.stats-tactical-panel:hover .hud-bracket {
    opacity: 1;
    width: 22px;
    height: 22px;
}

.hud-bracket.top-left {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.hud-bracket.top-right {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
}

.hud-bracket.bottom-left {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
}

.hud-bracket.bottom-right {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

/* Grid & Scanline Backgrounds */
.hud-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(var(--primary-rgb), 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.02) 1px, transparent 1px);
    background-size: 15px 15px;
    background-position: center;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

.hud-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0), rgba(var(--primary-rgb), 0.25) 50%, rgba(var(--primary-rgb), 0) 100%);
    animation: hudScanline 6s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes hudScanline {
    0% { top: -5%; }
    100% { top: 105%; }
}

/* Ring & Status Left side */
.stats-hud-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 3;
    flex-shrink: 0;
}

.hud-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.07);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 1.5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: hudPulse 1.5s ease-in-out infinite;
}

@keyframes hudPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

.stats-hud-ring-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-hud-ring-outer {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(var(--primary-rgb), 0.4);
    border-radius: 50%;
    animation: rotateHUD 25s linear infinite;
}

.stats-tactical-panel:hover .stats-hud-ring-outer {
    border-color: var(--primary);
    animation-duration: 8s;
}

.stats-hud-ring-inner {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(10, 18, 35, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.stats-tactical-panel:hover .stats-hud-ring-inner {
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: inset 0 0 20px rgba(var(--primary-rgb), 0.05);
}

.stats-hud-number {
    font-size: 3.6rem;
    font-weight: 900;
    color: #fff;
    font-family: monospace;
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.7);
    transition: var(--transition);
}

.stats-tactical-panel:hover .stats-hud-number {
    transform: scale(1.05);
    text-shadow: 0 0 25px rgba(var(--primary-rgb), 0.9);
}

/* Tactical Content Right side */
.stats-tactical-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    flex-grow: 1;
}

.stats-tactical-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.stats-tactical-top {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.2);
}

.stats-tactical-codename {
    font-size: 0.7rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

.stats-tactical-main {
    font-size: 1.85rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

.stats-tactical-footer {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.hud-stat-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hud-stat-meta i {
    color: var(--primary);
    font-size: 0.8rem;
    opacity: 0.8;
}

@keyframes rotateHUD {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* About Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    aspect-ratio: 16 / 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 24px;
    pointer-events: none;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
}

.about-content p {
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Collage Grid */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.collage-item {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    cursor: pointer;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
}

.collage-item:hover img {
    transform: scale(1.08);
}

.collage-item.fade-out img {
    opacity: 0;
}

.collage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.2) 70%, rgba(3, 7, 18, 0) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: var(--transition);
}

.collage-item:hover .collage-overlay {
    opacity: 1;
}

.collage-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: opacity 0.4s ease;
    opacity: 1;
}

.collage-item.fade-out .collage-title {
    opacity: 0;
}

/* Blog Cards (adapted from astramedya) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.blog-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: #000;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.06);
}

.blog-card-category {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--bg-dark);
    color: var(--primary);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-weight: 550;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-card-title {
    color: var(--primary);
}

.blog-card-excerpt {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-link i {
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-link i {
    transform: translateX(6px);
}

/* Category Filter Tags Subbar */
.category-bar {
    background: rgba(7, 14, 27, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding: 18px 0;
    margin-top: 126px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 12px;
    justify-content: center;
    position: sticky;
    top: 126px;
    z-index: 50;
}

.category-tag {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    cursor: pointer;
    transition: var(--transition);
}

.category-tag:hover, .category-tag.active {
    background: var(--primary);
    color: #030712;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* Contact Info & Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
}

/* New 50/50 layout: image left, form right */
.form-image-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: stretch;
}

.dept-image-panel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 500px;
    padding: 0;
}

.dept-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dept-image-panel:hover .dept-photo {
    transform: scale(1.04);
}

.dept-photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(3, 7, 18, 0.95) 100%);
    position: relative;
}

.dept-photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
        rgba(255, 255, 255, 0.012) 25%, transparent 25%,
        transparent 50%, rgba(255, 255, 255, 0.012) 50%,
        rgba(255, 255, 255, 0.012) 75%, transparent 75%, transparent);
    background-size: 24px 24px;
}

.dept-photo-placeholder i {
    font-size: 5rem;
    color: rgba(var(--primary-rgb), 0.2);
    position: relative;
}

.dept-photo-placeholder p {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.8;
    position: relative;
}

.dept-photo-placeholder p strong {
    color: var(--primary);
    font-family: monospace;
    font-size: 0.85rem;
}

.dept-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 32px 32px;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.6) 60%, transparent 100%);
    pointer-events: none;
}

.dept-overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.dept-overlay-content h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.dept-overlay-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-info-card {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info-item {
    display: flex;
    gap: 24px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.contact-info-details h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-details p {
    font-size: 0.95rem;
    color: #94a3b8;
}

.contact-form-panel {
    padding: 50px;
}

@media (max-width: 768px) {
    .contact-form-panel {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .contact-form-panel {
        padding: 20px;
    }
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.04);
    padding: 16px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-control::placeholder {
    color: #475569;
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
}

/* Roster / Staff Cards */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.roster-card {
    position: relative;
    width: 280px;
    background: rgba(10, 17, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.roster-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--rank-border-color, var(--primary));
    opacity: 0.8;
    z-index: 10;
}

.roster-card:hover {
    transform: translateY(-8px);
    border-color: var(--rank-border-color, var(--primary));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.05);
}

.roster-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.roster-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.roster-card:hover .roster-avatar {
    transform: scale(1.08);
}

.roster-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(3, 7, 18, 0.9) 100%);
    position: relative;
}

.roster-avatar-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.015) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.015) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

.roster-avatar-fallback i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.12);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
    transition: all 0.4s ease;
}

.roster-card:hover .roster-avatar-fallback i {
    color: var(--rank-border-color, var(--primary));
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    transform: scale(1.05);
}

.roster-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 17, 32, 0.95) 0%, transparent 100%);
    pointer-events: none;
}

.roster-info {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    background: rgba(10, 17, 32, 0.85);
}

.roster-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.roster-name span {
    color: var(--primary);
    font-weight: 900;
}

.roster-age {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.rank-badge-pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

/* Rank Groupings */
.rank-group {
    margin-bottom: 60px;
}

.rank-group:last-child {
    margin-bottom: 0;
}

.rank-group-title {
    margin-bottom: 40px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.rank-group-badge-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0;
}

.rank-group .roster-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.rank-group .roster-grid .roster-card {
    width: 280px;
    max-width: 100%;
    flex-shrink: 0;
}



/* Discord CTA Banner */
.discord-cta {
    margin-top: 80px;
    padding: 70px 40px;
    text-align: center;
    background-size: cover;
    background-position: center;
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.discord-cta h3 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.discord-cta p {
    color: #93c5fd;
    margin-bottom: 35px;
    font-size: 1.15rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-discord {
    background: #5865F2;
    border-color: #5865F2;
    color: #fff;
    padding: 18px 40px;
    font-size: 1.05rem;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: #4752c4;
    border-color: #4752c4;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.6);
}

/* Gallery Wall Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/11;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.8) 60%, rgba(3, 7, 18, 0) 100%);
    padding: 40px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card-overlay {
    transform: translateY(0);
}

.gallery-card-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.gallery-card-date {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-card-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-download {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    font-size: 0.8rem;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-download:hover {
    background: var(--primary);
    color: #030712;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb),0.3);
}

/* Recruitment wizard progress bar */
.wizard-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
}

.wizard-header::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: rgba(255,255,255,0.03);
    z-index: 1;
}

.wizard-progress-bar {
    position: absolute;
    top: 25px;
    left: 8%;
    width: 0;
    height: 4px;
    background: var(--primary);
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary);
}

.step-indicator {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100px;
}

.step-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #0b111e;
    border: 3px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.step-indicator.active .step-circle {
    background: var(--bg-dark);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.35);
}

.step-indicator.completed .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #030712;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.25);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.step-indicator.active .step-label {
    color: #fff;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.45s ease-out;
}

.wizard-step.active {
    display: block;
}

/* Custom experience toggle */
.toggle-container {
    display: flex;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 5px;
    width: fit-content;
    gap: 6px;
}

.toggle-option {
    padding: 12px 30px;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.toggle-option.active {
    background: var(--primary);
    color: #030712;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* Modal Popup layout */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 4, 8, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-deep);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 24px;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 30px 70px rgba(0,0,0,0.9), var(--shadow-glow);
    overflow: hidden;
    animation: scaleUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-close {
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
}

.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body p {
    color: #cbd5e1;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.modal-body strong {
    color: #fff;
}

.modal-example-box {
    background: rgba(var(--primary-rgb), 0.03);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
    border-top: 1px solid rgba(var(--primary-rgb), 0.05);
    border-right: 1px solid rgba(var(--primary-rgb), 0.05);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.05);
}

.modal-example-box h4 {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.modal-example-box p {
    margin: 0;
    font-style: italic;
    color: #f8fafc;
    font-size: 0.95rem;
}

.modal-footer {
    padding: 24px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
}

/* Blog details page layout */
.blog-detail-container {
    max-width: 1000px;
    margin: 140px auto 100px;
}

.blog-detail-header {
    text-align: center;
    margin-bottom: 45px;
}

.blog-detail-title {
    font-size: 3.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin: 20px 0 24px;
    letter-spacing: -1.5px;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 50px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.blog-detail-body {
    font-size: 1.15rem;
    color: #e2e8f0;
    line-height: 1.9;
    padding: 40px;
    word-wrap: break-word;
    word-break: break-word;
    overflow: visible !important;
}

.blog-detail-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 24px auto;
    display: block;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.blog-detail-body video,
.blog-detail-body iframe {
    max-width: 100% !important;
    border-radius: 12px;
    margin: 24px auto;
    display: block;
}

.blog-detail-body p {
    margin-bottom: 1.25rem;
}

/* Category Badge standard styling */
.cat-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 900;
    border-radius: 8px;
    text-transform: uppercase;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    letter-spacing: 0.5px;
}

/* Pagination general layout */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 800;
    transition: var(--transition);
}

.pagination-link:hover, .pagination-link.active {
    background: var(--primary);
    color: #030712;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
}

/* Checkbox Label standard styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    user-select: none;
}

.checkbox-label input {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    cursor: pointer;
}

.link-blue {
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.link-blue:hover {
    color: #60a5fa;
}

/* Footer layout */
.footer {
    background: #02050c;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding: 80px 0 40px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-about h3 {
    color: #fff;
    font-weight: 900;
    margin-bottom: 20px;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 24px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links ul a {
    color: #94a3b8;
}

.footer-links ul a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mobile responsive menu */
.menu-btn {
    display: none;
    font-size: 1.6rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.menu-btn:hover {
    color: var(--primary);
}

/* Alerts */
.alert {
    padding: 18px 24px;
    border-radius: 14px;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 14px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--success);
    color: var(--success);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid var(--danger);
    color: var(--danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.05);
}

/* Wide Container for Widescreen HUD Screen */
.container.wide-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Live Dispatch Map Styles */
.map-hud-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    height: 680px;
    background: rgba(5, 9, 21, 0.95);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.9);
}

.map-hud-container:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
}

.map-grid-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
    background-color: #02050b;
    background-image: 
        linear-gradient(rgba(var(--primary-rgb), 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
    cursor: crosshair;
}

/* Cursor following Crosshair */
.map-crosshair {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.map-grid-wrapper:hover .map-crosshair {
    opacity: 1;
}

.ch-line-h {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(var(--primary-rgb), 0.4);
}

.ch-line-v {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(var(--primary-rgb), 0.4);
}

.ch-coords {
    position: absolute;
    top: -18px;
    left: 20px;
    font-size: 0.65rem;
    font-family: monospace;
    color: var(--primary);
    background: rgba(5, 9, 21, 0.85);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* Patrol & Incident Blips */
.map-blip {
    position: absolute;
    z-index: 5;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-blip:hover {
    transform: scale(1.2);
    z-index: 8;
}

.blip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.blip-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0;
    animation: blipPulseAnim 2s infinite ease-out;
}

@keyframes blipPulseAnim {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.blip-label {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(5, 9, 21, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    pointer-events: none;
    transition: var(--transition);
}

/* Patrol Blip Details */
.map-blip.patrol .blip-dot {
    background-color: #3b82f6; /* Blue for patrols */
    box-shadow: 0 0 10px #3b82f6;
    border: 1.5px solid #fff;
}

.map-blip.patrol .blip-pulse {
    border: 2px solid #3b82f6;
}

.map-blip.patrol:hover .blip-label {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Incident Blip Details */
.map-blip.incident {
    z-index: 6;
}

.blip-triangle {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid var(--danger);
    filter: drop-shadow(0 0 5px var(--danger));
}

.blip-ring {
    position: absolute;
    top: -9px;
    left: -9px;
    width: 30px;
    height: 30px;
    border: 2px solid var(--danger);
    border-radius: 50%;
    opacity: 0;
    animation: incidentRingAnim 1.8s infinite ease-out;
}

@keyframes incidentRingAnim {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.0); opacity: 0; }
}

.map-blip.incident .blip-label {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #fff;
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.8);
    backdrop-filter: blur(4px);
}

/* Active Incidents List Styles */
.active-incidents-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
    margin-bottom: 10px;
    max-height: 280px; /* Constrain height to prevent container growth */
}

/* Custom Scrollbar (Slider) for active incidents list and dispatch feed */
.active-incidents-list::-webkit-scrollbar,
.dispatch-feed::-webkit-scrollbar {
    width: 6px;
}
.active-incidents-list::-webkit-scrollbar-track,
.dispatch-feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.active-incidents-list::-webkit-scrollbar-thumb,
.dispatch-feed::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.2); /* Gold/orange scrollbar thumb (slider) */
    border-radius: 3px;
}
.active-incidents-list::-webkit-scrollbar-thumb:hover,
.dispatch-feed::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Incident Cards */
.incident-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    position: relative;
    animation: incidentCardFadeIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}

.incident-card:hover {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.08);
}

@keyframes incidentCardFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.incident-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
    padding-bottom: 4px;
}

.incident-card-id {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--danger);
}

.incident-card-type {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.incident-card-actions {
    display: flex;
    gap: 6px;
}

.btn-incident-action {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.btn-incident-action:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-incident-action.resolve:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: var(--danger);
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}

/* Leaflet Overrides for Custom HTML Blips & High-Tech Tooltips */
.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

.leaflet-tooltip {
    background: rgba(5, 9, 21, 0.95) !important;
    border: 1px dashed rgba(var(--primary-rgb), 0.3) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    padding: 6px 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(var(--primary-rgb), 0.05) !important;
    font-family: var(--font-sans) !important;
    opacity: 1 !important;
}

.leaflet-tooltip-bottom:before {
    border-bottom-color: rgba(var(--primary-rgb), 0.3) !important;
}
.leaflet-tooltip-top:before {
    border-top-color: rgba(var(--primary-rgb), 0.3) !important;
}
.leaflet-tooltip-left:before {
    border-left-color: rgba(var(--primary-rgb), 0.3) !important;
}
.leaflet-tooltip-right:before {
    border-right-color: rgba(var(--primary-rgb), 0.3) !important;
}

/* SVG Blip elements */
.svg-blip-dot {
    stroke-width: 1.5;
    stroke: #fff;
    r: 5px;
}

.svg-blip-pulse {
    fill: none;
    animation: svgPulseAnim 2.2s infinite ease-out;
    transform-origin: center;
}

@keyframes svgPulseAnim {
    0% { r: 5px; opacity: 0.8; }
    100% { r: 18px; opacity: 0; }
}

/* Color codes for SVG blips */
.blue-unit .svg-blip-dot {
    fill: #3b82f6; /* LSPD Blue */
}
.blue-unit .svg-blip-pulse {
    stroke: #3b82f6;
    stroke-width: 1.5;
}

.purple-unit .svg-blip-dot {
    fill: #a855f7; /* SWAT Purple */
}
.purple-unit .svg-blip-pulse {
    stroke: #a855f7;
    stroke-width: 1.5;
}

.orange-unit .svg-blip-dot {
    fill: #f97316; /* Interceptor Orange */
}
.orange-unit .svg-blip-pulse {
    stroke: #f97316;
    stroke-width: 1.5;
}

/* Static Positions for incidents */
.incident-davis {
    left: 45%;
    top: 68%;
}

.incident-vinewood {
    left: 58%;
    top: 25%;
}

.incident-pillbox {
    left: 51%;
    top: 48%;
}

.incident-vespucci {
    left: 23%;
    top: 58%;
}

/* Temporary/triggered incident styles */
.temp-incident {
    z-index: 9;
    animation: tempIncidentAnim 0.3s ease-out;
}
@keyframes tempIncidentAnim {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.temp-incident.fade-out {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

/* Map Sidebar Styles */
.map-sidebar {
    display: flex;
    flex-direction: column;
    background: rgba(10, 18, 35, 0.65);
    border-left: 1px solid rgba(var(--primary-rgb), 0.15);
    padding: 20px;
    height: 100%;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--success);
    letter-spacing: 1px;
}

.status-indicator .pulse-dot {
    background-color: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Live Dispatch Feed Scroll area */
.dispatch-feed {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 5px;
    margin-bottom: 15px;
    font-family: monospace;
}

.dispatch-feed::-webkit-scrollbar {
    width: 4px;
}
.dispatch-feed::-webkit-scrollbar-track {
    background: transparent;
}
.dispatch-feed::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: 2px;
}
.dispatch-feed::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.feed-item {
    font-size: 0.75rem;
    line-height: 1.4;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    padding-left: 8px;
    animation: feedItemFadeIn 0.3s ease-out;
}

@keyframes feedItemFadeIn {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

.feed-item.system {
    border-color: var(--primary);
    color: var(--primary);
}

.feed-item.patrol-update {
    border-color: #3b82f6;
    color: #cbd5e1;
}

.feed-item.incident-update {
    border-color: var(--danger);
    color: #fca5a5;
}

.feed-time {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.feed-msg {
    word-break: break-word;
}

.map-controls {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.control-legend {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.patrol {
    background-color: #3b82f6;
    box-shadow: 0 0 5px #3b82f6;
}

.legend-dot.incident {
    background-color: var(--danger);
    box-shadow: 0 0 5px var(--danger);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .roster-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .stats-tactical-panel {
        flex-direction: column;
        padding: 35px 25px;
        gap: 30px;
        text-align: center;
        margin-top: -45px;
    }
    .stats-tactical-content {
        width: 100%;
    }
    .stats-tactical-header {
        flex-direction: column;
        gap: 8px;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
        padding-bottom: 12px;
    }
    .stats-tactical-main {
        font-size: 1.45rem;
    }
    .map-hud-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .map-grid-wrapper {
        height: 340px;
    }
    .map-sidebar {
        border-left: none;
        border-top: 1px solid rgba(var(--primary-rgb), 0.15);
        height: 320px;
    }
    .blog-grid, .roster-grid, .gallery-grid, .collage-grid, .form-image-grid {
        grid-template-columns: 1fr;
    }
    .dept-image-panel {
        min-height: 300px;
    }
    .collage-grid {
        max-width: 400px;
        margin: 0 auto;
    }
    .menu-btn {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: #030712;
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 20px 40px rgba(0,0,0,0.9);
        gap: 15px;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-item {
        width: 100%;
        text-align: center;
    }
    .nav-item a {
        display: block;
        padding: 14px;
        font-size: 1rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Disclaimer Modal Styles */
.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 5, 12, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.disclaimer-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.disclaimer-content {
    background: rgba(10, 18, 35, 0.98);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 16px;
    padding: 30px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(var(--primary-rgb), 0.05);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.disclaimer-modal.show .disclaimer-content {
    transform: translateY(0);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.disclaimer-icon {
    font-size: 2.2rem;
    color: var(--danger);
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
    animation: pulseWarn 2s infinite;
}

@keyframes pulseWarn {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.disclaimer-header h3 {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    margin: 0;
}

.disclaimer-body {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.disclaimer-body p {
    margin-bottom: 15px;
}

.disclaimer-body p:last-child {
    margin-bottom: 0;
}

.disclaimer-body strong {
    color: var(--primary);
    font-weight: bold;
}

/* LED Police Announcement Board */
.top-announcement-bar {
    width: 100%;
    background: #050811; /* Very dark display background */
    border-bottom: 2px solid #ef4444; /* Glowing red LED bottom bezel */
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15), inset 0 0 15px rgba(239, 68, 68, 0.1);
    font-family: 'Courier New', Courier, monospace; /* Digital monospace look */
    z-index: 1002;
    overflow: hidden;
    position: relative;
}

/* Subtle dot-matrix LED screen overlay */
.top-announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(rgba(239, 68, 68, 0.05) 1.5px, transparent 1.5px),
        radial-gradient(rgba(0, 0, 0, 0.3) 1.5px, transparent 1.5px);
    background-size: 4px 4px;
    background-position: 0 0, 2px 2px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
}

.announcement-container {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 24px;
    gap: 15px;
    position: relative;
    z-index: 3;
}

.announcement-badge {
    background: #ef4444; /* Solid warning red badge */
    border: 1px solid #ff6b6b;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    text-shadow: 0 0 2px #fff;
}

.announcement-ticker {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.announcement-track {
    display: inline-flex;
    animation: marqueeScroll 40s linear infinite;
}

.announcement-text {
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #ff6b6b; /* Neon orange-red LED text */
    cursor: default;
    margin: 0;
    padding-right: 120px; /* Space between loops */
    text-shadow: 0 0 3px #ef4444, 0 0 8px rgba(239, 68, 68, 0.6);
    animation: ledFlicker 4s infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Seamless loop point */
}

@keyframes ledFlicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 3px #ef4444, 0 0 8px rgba(239, 68, 68, 0.6); }
    45% { opacity: 1; }
    46% { opacity: 0.88; text-shadow: 0 0 1px #ef4444, 0 0 4px rgba(239, 68, 68, 0.3); }
    47% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.93; }
    94% { opacity: 1; }
}

/* Discord Navbar Button Hover Effect */
.discord-icon-btn:hover {
    background: #5865F2 !important;
    color: #fff !important;
    border-color: #5865F2 !important;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
}

/* ==========================================================================
   Birimlerimiz (Units Page) Zigzag Layout Styles
   ========================================================================== */

.unit-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    position: relative;
}

.unit-row-reverse {
    flex-direction: row-reverse;
}

.unit-image {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.unit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.unit-image:hover img {
    transform: scale(1.05);
}

.unit-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

.unit-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.unit-number {
    font-size: 5rem;
    font-weight: 950;
    font-family: 'Outfit', sans-serif;
    color: rgba(var(--primary-rgb), 0.15); /* More visible golden yellow */
    line-height: 1;
    position: absolute;
    top: -45px;
    left: -10px;
    z-index: 0;
    user-select: none;
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
}

.unit-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.unit-title i {
    color: var(--primary);
    font-size: 1.8rem;
}

.unit-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    z-index: 1;
}

.unit-responsible {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #e2e8f0;
    margin-top: 10px;
    transition: var(--transition);
}

.unit-responsible i {
    color: var(--primary);
    font-size: 1.1rem;
}

.unit-responsible strong {
    color: var(--primary);
}

.unit-responsible:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

/* Responsive Styles for Units Section */
@media (max-width: 992px) {
    .unit-row, .unit-row-reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 70px;
    }
    
    .unit-image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    
    .unit-title {
        font-size: 1.8rem;
    }
    
    .unit-number {
        top: -30px;
        font-size: 3.5rem;
        color: rgba(var(--primary-rgb), 0.15);
    }
}

/* Unit Dividers */
.unit-divider {
    height: 1px;
    width: 100%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, transparent 70%);
    border-bottom: 1px dotted rgba(var(--primary-rgb), 0.15);
    margin: 50px 0;
}

/* Mobile Hero Buttons Custom Responsive Sizing */
@media (max-width: 768px) {
    .hero-actions .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}


@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .hero-actions .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
        box-sizing: border-box;
        justify-content: center;
        white-space: nowrap;
    }
}

/* Table Responsive Wrapper Utility */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 15px;
    background: transparent;
    border-radius: 8px;
}
.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}
.table-responsive th,
.table-responsive td {
    white-space: nowrap;
}

/* Public Header, Brand & Announcement Mobil Optimizasyonu */
@media (max-width: 768px) {
    .brand-logo {
        font-size: 1.3rem !important;
    }
    .brand-sub {
        font-size: 0.55rem !important;
        letter-spacing: 2px !important;
    }
    .brand img {
        height: 38px !important;
    }
    .nav-container {
        height: 70px !important;
    }
    .nav-menu {
        top: 70px !important;
        z-index: 9999 !important;
    }
    .top-announcement-bar {
        top: 70px !important;
    }
    /* Announcement text and container padding adjustments */
    .announcement-badge {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
    }
    .announcement-container {
        padding: 0 10px !important;
        gap: 8px !important;
    }
    /* Blog detail responsive padding and typography */
    .blog-detail-body {
        padding: 20px 15px !important;
        font-size: 1rem !important;
    }
    #blogFeedbackWidget {
        flex-wrap: wrap;
        gap: 10px !important;
    }
    #blogFeedbackWidget button {
        padding: 8px 16px !important;
        flex-grow: 1;
    }
}


/* --- Navbar Mobile --- */
@media (max-width: 768px) {
    .navbar {
        height: auto !important;
    }

    .nav-container {
        height: 70px !important;
        padding: 0 16px !important;
        position: relative;
    }

    .brand-logo {
        font-size: 1.3rem !important;
    }

    .brand img {
        height: 36px !important;
    }

    .menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        padding: 8px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 16px;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 20px 40px rgba(0,0,0,0.9);
        gap: 8px;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-item a {
        display: block;
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
        border: 1px solid transparent;
    }

    .nav-item.btn-apply a {
        padding: 12px 16px;
    }

    .nav-item:last-child {
        display: flex;
        justify-content: center;
    }

    /* Announcement bar on mobile */
    .top-announcement-bar {
        top: 70px !important;
    }

    /* Body margin-top adjustment */
    body {
        margin-top: 106px !important; /* 70px navbar + 36px ticker */
    }

    .hero-section {
        height: calc(100vh - 106px) !important;
    }
}

/* --- Hero Section Mobile --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
        letter-spacing: -0.5px !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .hero-badge {
        font-size: 0.7rem !important;
        padding: 8px 16px !important;
        margin-bottom: 20px !important;
    }

    .section {
        padding: 70px 0 !important;
    }

    .section-title {
        font-size: 1.9rem !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
    }

    .section-header {
        margin-bottom: 40px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
        letter-spacing: -0.3px !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    .section {
        padding: 50px 0 !important;
    }

    .section-title {
        font-size: 1.6rem !important;
    }

    .container {
        padding: 0 14px !important;
    }
}

/* --- Tactical Stats Panel Mobile --- */
@media (max-width: 768px) {
    .stats-tactical-panel {
        flex-direction: column !important;
        padding: 28px 18px !important;
        gap: 24px !important;
        text-align: center !important;
        margin-top: -35px !important;
    }

    .stats-hud-left {
        align-items: center !important;
    }

    .stats-tactical-content {
        width: 100% !important;
    }

    .stats-tactical-header {
        flex-direction: column !important;
        gap: 6px !important;
        padding-bottom: 10px !important;
    }

    .stats-tactical-main {
        font-size: 1.3rem !important;
    }

    .stats-tactical-footer {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
}

/* --- About Grid Mobile --- */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .about-content h3 {
        font-size: 1.5rem !important;
    }

    .about-content p {
        font-size: 0.95rem !important;
    }
}

/* --- Blog Grid Mobile --- */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .blog-card-content {
        padding: 20px !important;
    }

    .blog-card-title {
        font-size: 1.15rem !important;
    }

    .blog-detail-title {
        font-size: 2rem !important;
    }

    .blog-detail-container {
        margin: 100px auto 60px !important;
        padding: 0 16px !important;
    }

    .blog-detail-body {
        padding: 20px !important;
    }

    .blog-detail-meta {
        flex-wrap: wrap !important;
        gap: 12px !important;
        justify-content: center !important;
    }
}

/* --- Roster Grid Mobile --- */
@media (max-width: 768px) {
    .roster-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .rank-group .roster-grid .roster-card {
        width: 100% !important;
    }

    .roster-card {
        width: 100% !important;
    }

    .roster-name {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .roster-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .roster-info {
        padding: 14px !important;
    }

    .roster-name {
        font-size: 0.9rem !important;
    }

    .rank-badge-pill {
        font-size: 0.65rem !important;
        padding: 4px 10px !important;
    }

    .rank-group-title {
        font-size: 1.1rem !important;
    }
}

/* --- Gallery Mobile --- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .collage-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Form & Apply Page Mobile --- */
@media (max-width: 768px) {
    .form-image-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .dept-image-panel {
        min-height: 220px !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .contact-info-card {
        padding: 30px 20px !important;
        gap: 24px !important;
    }

    .contact-form-panel {
        padding: 24px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .wizard-header {
        margin-bottom: 40px !important;
        justify-content: space-between !important;
    }

    .step-circle {
        width: 42px !important;
        height: 42px !important;
        font-size: 1rem !important;
    }

    .step-label {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
    }

    .step-indicator {
        width: 80px !important;
    }

    .toggle-container {
        flex-wrap: wrap !important;
    }

    .toggle-option {
        padding: 10px 18px !important;
        font-size: 0.8rem !important;
    }

    /* Form controls: prevent iOS zoom */
    .form-control,
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* --- Management Grid Mobile --- */
@media (max-width: 768px) {
    .management-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}

@media (max-width: 480px) {
    .management-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .management-name {
        font-size: 0.88rem !important;
    }

    .management-info {
        padding: 14px !important;
    }
}

/* --- Footer Mobile --- */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 30px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center !important;
    }

    .discord-cta {
        padding: 40px 20px !important;
    }

    .discord-cta h3 {
        font-size: 1.6rem !important;
    }

    .discord-cta p {
        font-size: 1rem !important;
    }
}

/* --- Announcement Bar Mobile --- */
@media (max-width: 480px) {
    .announcement-badge {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
        letter-spacing: 0.5px !important;
    }

    .announcement-badge i {
        display: none !important;
    }

    .announcement-text {
        font-size: 0.75rem !important;
    }
}

/* --- Modals & Overlays Mobile --- */
@media (max-width: 480px) {
    .modal-content {
        border-radius: 16px !important;
        margin: 10px !important;
    }

    .modal-header {
        padding: 20px !important;
    }

    .modal-body {
        padding: 20px !important;
    }

    .modal-footer {
        padding: 16px 20px !important;
    }

    .disclaimer-content {
        padding: 20px !important;
        border-radius: 12px !important;
    }
}

/* --- Map HUD Mobile --- */
@media (max-width: 768px) {
    .map-hud-container {
        grid-template-columns: 1fr !important;
        height: auto !important;
        border-radius: 12px !important;
    }

    .map-grid-wrapper {
        height: 300px !important;
    }

    .map-sidebar {
        border-left: none !important;
        border-top: 1px solid rgba(var(--primary-rgb), 0.15) !important;
        height: 280px !important;
    }
}

/* --- Units Page Mobile --- */
@media (max-width: 768px) {
    .unit-row, .unit-row-reverse {
        flex-direction: column !important;
        gap: 24px !important;
        margin-bottom: 60px !important;
    }

    .unit-image {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
    }

    .unit-title {
        font-size: 1.5rem !important;
        gap: 10px !important;
    }

    .unit-title i {
        font-size: 1.4rem !important;
    }

    .unit-desc {
        font-size: 0.95rem !important;
    }

    .unit-number {
        top: -25px !important;
        font-size: 3rem !important;
    }

    .unit-responsible {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* --- Glass Panel general mobile --- */
@media (max-width: 480px) {
    .glass-panel {
        border-radius: 12px !important;
    }

    .btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* --- Prevent horizontal scroll everywhere --- */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}
