:root {
    --bg-color: #050508;
    --text-color: #e0e0e0;
    --neon-color: #ff0055;
    --neon-cyan: #00f3ff;
    /* Default, will be overridden by JS */
    --neon-glow: drop-shadow(0 0 10px var(--neon-color));
    --panel-bg: rgba(13, 13, 20, 0.6);
    --panel-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

h1,
h2,
h3,
.neon-text,
.nav-links a {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

/* Background Effects */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 85, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(600px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 15s linear infinite;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

@keyframes gridMove {
    0% {
        transform: perspective(600px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(600px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.25));
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Typography & Neon */
.neon-text {
    color: var(--neon-color);
    text-shadow: 0 0 10px var(--neon-color), 0 0 20px var(--neon-color);
}

.cyan-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--panel-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--neon-cyan);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.nav-links a:hover::after,
.nav-links a.admin-link::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.admin-link {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Hero Section */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 3px 3px 0px var(--neon-color), -3px -3px 0px var(--neon-cyan);
    letter-spacing: 6px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #bbb;
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 45px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 4px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: rgba(0, 243, 255, 0.05);
}

.btn-primary:hover {
    background: rgba(0, 243, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6), inset 0 0 15px rgba(0, 243, 255, 0.4);
    border-color: #fff;
    text-shadow: 0 0 8px #fff;
    transform: translateY(-2px);
}

/* Sections */
.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 45px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    color: #ddd;
    font-size: 1.2rem;
    line-height: 1.9;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.7;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--neon-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(15px, 9999px, 81px, 0); }
    20% { clip: rect(69px, 9999px, 35px, 0); }
    40% { clip: rect(110px, 9999px, 91px, 0); }
    60% { clip: rect(11px, 9999px, 20px, 0); }
    80% { clip: rect(4px, 9999px, 99px, 0); }
    100% { clip: rect(58px, 9999px, 43px, 0); }
}

/* News Section & Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.news-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 0, 85, 0.15);
    border-color: rgba(255, 0, 85, 0.4);
}

.news-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 3px;
    background: var(--neon-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.news-card:hover::after {
    transform: scaleX(1);
}

.news-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: filter 0.4s ease;
    filter: brightness(0.8) contrast(1.1);
}

.news-card:hover .news-card-img {
    filter: brightness(1) contrast(1.1);
}

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

.news-date {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    margin-bottom: 12px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.4;
    transition: color 0.3s;
}

.news-card:hover .news-title {
    color: var(--neon-cyan);
}

.news-summary {
    color: #aaa;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.btn-read-more {
    align-self: flex-start;
    color: var(--neon-color);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-read-more:hover {
    border-bottom-color: var(--neon-color);
    text-shadow: 0 0 8px var(--neon-color);
    color: #fff;
}

/* News Detail Page */
.news-detail-container {
    max-width: 900px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 30px;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
    padding-left: 20px;
}

.btn-back::before {
    content: '←';
    position: absolute;
    left: 0;
    transition: left 0.3s;
    color: var(--neon-cyan);
}

.btn-back:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.btn-back:hover::before {
    left: -5px;
    text-shadow: 0 0 8px var(--neon-cyan);
}

.news-detail-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
    border: 1px solid var(--panel-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    position: relative;
}

.news-header {
    margin-bottom: 35px;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 25px;
    position: relative;
}

.news-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 100px; height: 1px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.news-detail-title {
    font-size: 2.8rem;
    color: #fff;
    margin-top: 15px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.news-content-body {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #ddd;
    background: var(--panel-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--panel-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.news-content-body p {
    margin-bottom: 25px;
}

.loading-text {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: #888;
    font-size: 1.3rem;
    letter-spacing: 3px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 10px var(--neon-cyan); color: #fff; }
    100% { opacity: 0.5; }
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(5, 5, 8, 0.9);
    border-top: 1px solid var(--panel-border);
    color: #666;
    margin-top: 80px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

footer #footer-title {
    color: #aaa;
    transition: color 0.3s, text-shadow 0.3s;
}

footer:hover #footer-title {
    color: var(--neon-color);
    text-shadow: 0 0 10px var(--neon-color);
}/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-page {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-page:hover:not(:disabled) {
    background: rgba(0, 243, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    text-shadow: 0 0 5px #fff;
}

.btn-page:disabled {
    border-color: #555;
    color: #555;
    cursor: not-allowed;
    background: transparent;
}

.page-info {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
}