/* ═══════════════════════════════════════════════════════════════
   ALOCEAN.TECH — Dark Space Theme
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #0d1233;
    --bg-card: rgba(13, 18, 51, 0.7);
    --bg-card-hover: rgba(20, 28, 70, 0.8);
    --accent: #00bfff;
    --accent-dark: #0099cc;
    --accent-glow: rgba(0, 191, 255, 0.3);
    --accent-glow-strong: rgba(0, 191, 255, 0.6);
    --text-primary: #e8eaf6;
    --text-secondary: #9aa0c0;
    --text-muted: #5c6190;
    --border: rgba(0, 191, 255, 0.15);
    --border-hover: rgba(0, 191, 255, 0.35);
    --success: #00e676;
    --error: #ff5252;
    --warning: #ffc107;
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

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

a:hover {
    color: #fff;
}

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


/* ── Neon Text Effect ─────────────────────────────────────────── */
.neon-text {
    color: var(--accent);
    text-shadow:
        0 0 7px var(--accent-glow),
        0 0 20px var(--accent-glow),
        0 0 42px rgba(0, 191, 255, 0.15);
}


/* ── Glass Card ───────────────────────────────────────────────── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}


/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px var(--accent-glow-strong);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

.btn-danger {
    background: var(--error);
    color: #fff;
}

.btn-danger:hover {
    background: #ff1744;
    transform: translateY(-1px);
}


/* ── Navbar ───────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 14, 39, 0.95);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 45px;
    width: auto;
    transition: all var(--transition);
}

.navbar.scrolled .nav-logo-img {
    height: 36px;
}

.footer-logo-img {
    height: 90px;
    width: auto;
    margin-bottom: 1rem;
}

.logo-main {
    color: #fff;
}

.logo-dot {
    color: var(--accent);
}

.logo-tech {
    color: var(--accent);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--accent);
    background: rgba(0, 191, 255, 0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    border-radius: 2px;
}


/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 191, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}


/* ── Sections ─────────────────────────────────────────────────── */
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}


/* ── Article Cards ────────────────────────────────────────────── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px var(--accent-glow);
    color: inherit;
}

.card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(0, 191, 255, 0.05));
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.card-date {
    color: var(--text-muted);
}

.card-read {
    color: var(--accent);
    font-weight: 600;
    transition: all var(--transition);
}

.article-card:hover .card-read {
    transform: translateX(4px);
}


/* ── Mon Histoire ─────────────────────────────────────────────── */
.section-histoire {
    padding: 6rem 0;
}

.histoire-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

.histoire-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.histoire-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.histoire-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.histoire-text:first-of-type {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
}

.histoire-timeline {
    display: flex;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex: 1;
    min-width: 120px;
    transition: all var(--transition);
}

.timeline-item:hover {
    border-color: var(--accent);
    background: rgba(0, 191, 255, 0.1);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.timeline-event {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.25rem;
}


/* ── Categories Grid ──────────────────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow);
    background: rgba(0, 191, 255, 0.08);
    color: var(--text-primary);
}

.category-icon {
    font-size: 2.5rem;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.category-card:hover .category-name {
    color: var(--accent);
}


/* ── Article Page ─────────────────────────────────────────────── */
.article-page {
    padding-top: 6rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb-sep {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.article-header {
    margin-bottom: 2rem;
}

.article-category-badge {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 50px;
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-content {
    padding: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.article-content h2 {
    font-size: 1.6rem;
    color: var(--accent);
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.article-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content em {
    color: var(--text-muted);
    font-style: italic;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.share-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* ── Comments ─────────────────────────────────────────────────── */
.comments-section {
    margin-top: 3rem;
}

.comment-count {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.comment-form {
    padding: 2rem;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 700;
    color: var(--accent);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-body {
    color: var(--text-secondary);
    line-height: 1.7;
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}


/* ── Related Articles ─────────────────────────────────────────── */
.related-articles {
    margin-bottom: 3rem;
}

.related-articles .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}


/* ── Category Page ────────────────────────────────────────────── */
.category-page {
    padding-top: 7rem;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-header-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.category-header-title {
    font-size: 2.5rem;
    font-weight: 900;
}

.category-header-count {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}


/* ── 404 ──────────────────────────────────────────────────────── */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.error-content {
    text-align: center;
    padding: 4rem;
    max-width: 500px;
    margin: 0 auto;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-content h2 {
    margin-bottom: 0.5rem;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}


/* ── Flash Messages ───────────────────────────────────────────── */
.flash-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    animation: flashIn 0.3s ease, flashOut 0.3s ease 3s forwards;
}

.flash-success {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--success);
}

.flash-error {
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: var(--error);
}

@keyframes flashIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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


/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    background: rgba(5, 7, 18, 0.8);
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-manifesto {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-nav h4,
.footer-info h4 {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-admin-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.footer-admin-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* ── Histoire Page ────────────────────────────────────────────── */
.histoire-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

.histoire-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.25;
}

.histoire-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.histoire-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    z-index: 1;
}

.histoire-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}

.histoire-hero-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.histoire-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #00bfff 50%, #80dfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.histoire-hero-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* Chapters */
.histoire-chapter {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.histoire-chapter.chapter-alt {
    background: rgba(0, 191, 255, 0.02);
}

.chapter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.chapter-grid.chapter-img-left {
    direction: ltr;
}

.chapter-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.chapter-image:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.chapter-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.chapter-image-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.chapter-image-duo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.chapter-era {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 50px;
    margin-bottom: 1rem;
}

.chapter-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: left;
}

.chapter-text p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

.chapter-text strong {
    color: var(--text-primary);
}

.chapter-highlight {
    font-size: 1.2rem !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--accent);
    background: rgba(0, 191, 255, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0 !important;
}

/* Career Timeline */
.chapter-career {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.chapter-career .chapter-title {
    text-align: center;
}

.chapter-career-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.career-timeline {
    position: relative;
    text-align: left;
}

.career-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.career-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: 1.5rem;
}

.career-dot {
    position: absolute;
    left: 13px;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow-strong);
    z-index: 1;
}

.career-content {
    padding: 1.5rem;
}

.career-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.career-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* New Life section */
.chapter-newlife {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.chapter-newlife .chapter-title {
    text-align: center;
}

.newlife-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.newlife-card {
    padding: 2rem;
    transition: all var(--transition);
}

.newlife-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.newlife-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.newlife-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.newlife-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Conclusion */
.histoire-conclusion {
    padding: 6rem 0;
    text-align: center;
}

.conclusion-content {
    max-width: 700px;
    margin: 0 auto;
}

.conclusion-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.conclusion-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.conclusion-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.conclusion-separator {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.conclusion-platforms {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.platform-badge {
    padding: 0.6rem 1.25rem;
    background: rgba(0, 191, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.conclusion-highlight {
    font-size: 2rem;
    font-weight: 900;
    margin: 2rem 0;
}

.conclusion-final {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-top: 2rem;
}


/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .histoire-card {
        padding: 2rem;
    }

    .histoire-timeline {
        flex-direction: column;
    }

    .chapter-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .chapter-grid.chapter-img-left .chapter-image {
        order: -1;
    }

    .newlife-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-card {
        padding: 1.25rem 0.75rem;
    }
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
    backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 191, 255, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

/* ── Language Bar ─────────────────────────────────────────────── */
.lang-bar {
    background: rgba(5, 7, 20, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 0.35rem 0;
    position: relative;
    z-index: 1001;
}

.lang-bar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.lang-selector {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.lang-current:hover {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.lang-flag {
    font-size: 1rem;
}

.lang-arrow {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.2s;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(13, 18, 51, 0.97);
    border: 1px solid var(--border);
    border-radius: 8px;
    list-style: none;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    overflow: hidden;
    z-index: 1002;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(0, 191, 255, 0.1);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--accent);
    background: rgba(0, 191, 255, 0.05);
}

/* Hide Google Translate bar */
.goog-te-banner-frame, .skiptranslate, #goog-gt-tt {
    display: none !important;
}

body { top: 0 !important; }
