@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --bg-color: #030712;
    --card-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --accent-hover: #0ea5e9;
    --danger: #ef4444;
    --success: #22c55e;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Glassmorphism */
header {
    background-color: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--text-primary);
}

.logo-bm {
    height: 32px;
    opacity: 0.8;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 80vh;
    min-height: 600px;
    width: 100%;
    margin-top: 0;
    overflow: hidden;
}

.carousel-inner {
    height: 100%;
    width: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-media img, .hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.4) 0%, rgba(3, 7, 18, 0.95) 100%);
}

.hero-content-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-color);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-summary {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Article Grid */
main {
    padding-top: 100px; /* Offset for fixed header */
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    padding-bottom: 80px;
}

.article-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.article-card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-card-image {
    transform: scale(1.05);
}

.article-card-content {
    padding: 24px;
}

.article-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.article-card-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: var(--bg-color);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

/* Single Article Page Specifics */
.single-article-container {
    padding-top: 120px;
    padding-bottom: 100px;
}

.single-article-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.single-article-header {
    text-align: center;
    margin-bottom: 50px;
}

.single-article-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-color);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.single-article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.single-article-summary {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.single-article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.single-article-media {
    margin-bottom: 60px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: #000;
}

.single-article-media img,
.single-article-media video {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.single-article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.single-article-body p {
    margin-bottom: 32px;
}

.single-article-body h2, 
.single-article-body h3 {
    margin-top: 48px;
    margin-bottom: 24px;
    color: var(--accent);
}

.single-article-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

/* Footer */
footer {
    padding: 60px 0;
    background: rgba(3, 7, 18, 0.8);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Styles (Slightly improved) */
.admin-table {
    width: 100%;
    background: var(--card-bg);
    border-radius: 16px;
    border-collapse: collapse;
    overflow: hidden;
    margin: 40px 0;
}

.admin-table th, .admin-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-carousel {
        height: 70vh;
    }
}
