﻿/* ========================================
   MetaNfo – Premium Front-End Styles
   Ultra-Modern Dark Theme v3.0 (Mobile First)
   ======================================== */

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

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

:root {
    --bg: #030014;
    --bg-alt: #0a0a2e;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(99, 102, 241, 0.3);
    --text: #f0f0ff;
    --text-secondary: rgba(240, 240, 255, 0.7);
    --text-muted: rgba(240, 240, 255, 0.4);
    --accent: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #ec4899;
    --cyan: #22d3ee;
    --emerald: #34d399;
    --amber: #f59e0b;
    --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    --gradient-2: linear-gradient(135deg, #06b6d4, #6366f1);
    --gradient-3: linear-gradient(135deg, #ec4899, #f97316);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #ef4444);
    --glow-purple: rgba(99, 102, 241, 0.15);
    --glow-pink: rgba(236, 72, 153, 0.12);
    --glow-cyan: rgba(34, 211, 238, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 1240px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 70px;
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.05);
    --bg-glass: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(99, 102, 241, 0.2);
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --glow-purple: rgba(99, 102, 241, 0.05);
    --glow-pink: rgba(236, 72, 153, 0.04);
    --glow-cyan: rgba(34, 211, 238, 0.04);
}

.btn-theme-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-theme-toggle:hover {
    background: var(--bg-card-hover);
    transform: rotate(15deg);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
    padding-top: var(--header-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0.8em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    max-width: var(--max-width);
}

/* ========= NAVBAR ========= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(3, 0, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(3, 0, 20, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

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

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.navbar-brand .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: block;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    z-index: 1001;
    padding: 5px;
}

.navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #05051a;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 15px;
    list-style: none;
}

.navbar-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.navbar-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-links .btn-admin {
    background: var(--gradient-1);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    text-align: center;
    margin-top: 10px;
    border: none;
}

/* Desktop Navbar */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }

    .navbar-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: transparent;
        padding: 0;
        border: none;
        gap: 20px;
        box-shadow: none;
    }

    .navbar-links a {
        font-size: 14px;
        padding: 8px 16px;
        border: none;
        border-radius: 8px;
        transition: all 0.3s;
    }

    .navbar-links a:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.05);
    }

    .navbar-links .btn-admin {
        margin-top: 0;
        padding: 8px 20px;
    }
}

/* ========= HERO SECTION ========= */
.hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero {
        padding: 140px 0 100px;
    }
}

/* Hero Glows */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.hero-glow-1 {
    width: 300px;
    height: 300px;
    background: var(--glow-purple);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

@media (min-width: 768px) {
    .hero-glow-1 {
        width: 700px;
        height: 700px;
        opacity: 0.4;
        top: -250px;
    }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 80%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .badge-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 .gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    min-width: 80px;
}

.hero-stat .value {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ========= MARQUEE ========= */
.marquee-section {
    padding: 15px 0;
    overflow: hidden;
    border-block: 1px solid var(--border);
    background: rgba(99, 102, 241, 0.02);
}

.marquee-track {
    display: flex;
    gap: 20px;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

@keyframes marqueeScroll {
    to {
        transform: translateX(-50%);
    }
}

/* ========= SECTION COMMONS ========= */
.section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ========= GRADIENT TEXT ========= */
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========= TEXT COLORS ========= */
.text-secondary {
    color: var(--text-secondary) !important;
}

/* ========= GLASS BACKGROUND ========= */
.bg-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ========= CTA CARD ========= */
.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.cta-card h2,
.cta-card h3 {
    margin-bottom: 12px;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========= STEP CARDS ========= */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

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

.step-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ========= SINGLE POST CONTENT (Legacy) ========= */
.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.single-post-content h2 {
    color: var(--cyan);
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-size: 1.5rem;
}

.single-post-content p {
    margin-bottom: 1.5em;
}

.single-post-content ul {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.single-post-content li {
    margin-bottom: 0.75em;
    line-height: 1.7;
}

/* ========= POST CONTENT EXTRAS ========= */
.post-content ul,
.post-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.post-content li {
    margin-bottom: 0.75em;
    line-height: 1.7;
    color: var(--text-secondary);
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
}

.post-content blockquote,
blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content blockquote p,
blockquote p {
    margin: 0;
    font-style: italic;
}

/* ========= CARD COMPONENT ========= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5em;
}

.card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
}

/* ========= FEATURE ICON ========= */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    line-height: 1;
}

/* ========= FEATURED POST (BENTO STYLE) ========= */
.featured-post {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
}

@media (min-width: 768px) {
    .featured-post {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
    }
}

.featured-post:hover {
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.featured-post-image {
    min-height: 250px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .featured-post-image {
        min-height: 400px;
    }
}

.featured-post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .featured-post-content {
        padding: 48px;
    }
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.featured-post-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.featured-post-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========= POST CARDS ========= */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

.post-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.2);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-alt);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .card-image img {
    transform: scale(1.08);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-meta .category {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.post-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.post-card:hover h3 {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}



.post-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.post-card-meta .category {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

.post-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========= UTILITIES ========= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-hero {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
}

.btn-hero-primary {
    background: var(--gradient-1);
    color: #fff;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--border);
}

/* ========= FOOTER ========= */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

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

/* ========= PARTICLES ========= */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ========= SINGLE POST ========= */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.single-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    color: var(--cyan);
    margin-top: 2em;
}

.post-content p {
    margin-bottom: 1.5em;
}

/* ========= UTILITY CLASSES ========= */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-20 {
    margin-top: 5rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

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

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

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

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 10px;
    display: inline-block;
    padding: 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
}

/* ========= FAQ ACCORDION ========= */
details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

details[open] {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    font-size: 1.1rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    animation: fadeIn 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========= FORM & ALERTS ========= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ========= MORE UTILITIES ========= */
.w-full {
    width: 100%;
}

.block {
    display: block;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.hover-underline:hover {
    text-decoration: underline;
}

.flex {
    display: flex;
}

.items-start {
    align-items: flex-start;
}

.gap-4 {
    gap: 1rem;
}

.text-accent {
    color: var(--accent);
}

/* Fix line-clamp lints */
.featured-post-content p,
.post-card h3,
.post-card .excerpt {
    line-clamp: 3;
    -webkit-line-clamp: 3;
}

.post-card h3 {
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

/* ========= AUTHOR BOX (E-E-A-T) ========= */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 48px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.author-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========= SHARE SECTION ========= */
.share-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.share-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.share-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* ========= BLOG DISCLAIMER ========= */
.blog-disclaimer {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(255, 200, 0, 0.05);
    border: 1px solid rgba(255, 200, 0, 0.15);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-disclaimer strong {
    color: var(--text);
}

/* ========= SINGLE POST CONTENT TYPOGRAPHY ========= */
.single-post-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text);
}

.single-post-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cyan, #22d3ee);
    margin-top: 2.5em;
    margin-bottom: 0.8em;
}

.single-post-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.single-post-content p {
    margin-bottom: 1.4em;
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.4em;
}

.single-post-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.single-post-content table th,
.single-post-content table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.single-post-content table th {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    font-weight: 700;
}

.single-post-content table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.single-post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.single-post-content strong {
    color: var(--text);
    font-weight: 700;
}

.single-post-content section {
    margin-bottom: 1em;
}

/* ========= SINGLE POST META ========= */
.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ========= SINGLE POST HERO IMAGE ========= */
.single-post-hero-image {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .single-post-hero-image {
        height: 300px;
    }
}

/* ========= BENTO GRID ========= */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: repeat(2, 280px);
    }
}

.bento-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    transition: all 0.5s var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    z-index: 1;
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
}

.bento-main {
    grid-row: span 2;
}

.bento-image {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.bento-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(3, 0, 20, 0.95) 90%);
}

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

.bento-item:hover .bento-image img {
    transform: scale(1.1);
}

.bento-content {
    margin-top: auto;
    padding: 30px;
}

.bento-main .bento-content h3 {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #bababa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-minor .bento-content h3 {
    font-size: 20px;
    line-height: 1.4;
}

.category-pill {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.bento-main p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more span {
    transition: transform 0.3s;
}

.bento-item:hover .read-more span {
    transform: translateX(5px);
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.outline-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
    font-weight: 800;
}

/* ========= CATEGORY MARQUEE ========= */
.marquee-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    gap: 40px;
    width: fit-content;
}

.marquee-item {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.marquee-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

/* ========= NEWSLETTER ========= */
.newsletter-section {
    padding: 100px 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.newsletter-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-card h2 {
    font-size: 42px;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.newsletter-card p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .newsletter-form {
        flex-direction: row;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border);
        padding: 8px;
        border-radius: 50px;
    }
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: 50px;
    color: var(--text);
    outline: none;
}

@media (min-width: 768px) {
    .newsletter-form input {
        border: none;
    }
}

/* ========= SOCIAL ICONS & SHARING ========= */
.share-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.share-btn.x-twitter:hover {
    background: #000;
    border-color: #333;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social .social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-social .social-icon:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ========= PREMIUM UX v7.0: TABLE OF CONTENTS ========= */
.table-of-contents {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 3rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.toc-header span {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.toc-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toc-toggle:hover {
    background: var(--bg-alt);
    color: var(--text-primary);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: block;
}

.toc-list li a:hover {
    color: var(--accent);
    padding-left: 8px;
}

/* ========= PREMIUM UX v7.0: AJAX SEARCH ========= */
.nav-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-search-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 0 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.btn-search-toggle:hover {
    opacity: 1;
}

.search-dropdown-card {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: none;
    /* Managed by JS */
    z-index: 1000;
    transform-origin: top right;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.search-input-inner {
    position: relative;
    margin-bottom: 15px;
}

.search-input-inner input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 12px 15px;
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    font-size: 14px;
}

.search-loading-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

#ajax-search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s;
    margin-bottom: 8px;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.search-result-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-alt);
}

.search-result-info {
    flex: 1;
    overflow: hidden;
}

.search-result-info h5 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.search-result-info span {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
}