/* Ultra Premium Blog Styles */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-cyan: #00fffc;
    --accent-glow: rgba(0, 255, 252, 0.2);
    --border-light: rgba(255, 255, 255, 0.08);
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    /* Elegant serif for headings */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
}

/* --- VISIBILITY FIXES --- */
section,
article,
.blog-post {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* --- HEADER SUPPORT (Legacy .navbar) --- */
.navbar {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.navbar:hover {
    background: rgba(5, 5, 5, 0.95);
}

.navbar .logo a {
    color: #fff;
    font-weight: 800;
    font-size: 1.6rem;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar .nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.navbar .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.navbar .nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-glow);
}

.navbar .cta-button {
    background: var(--accent-cyan);
    color: #000 !important;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.navbar .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
}

/* --- BLOG CONTAINER --- */
.blog-container {
    max-width: 800px;
    /* Narrower for better reading experience */
    margin: 0 auto;
    padding: 160px 20px 80px;
    position: relative;
}

/* --- BLOG HEADER (HERO STYLE) --- */
.blog-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.blog-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 255, 252, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 255, 252, 0.08);
    color: var(--accent-cyan);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(0, 255, 252, 0.2);
    backdrop-filter: blur(5px);
}

.blog-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: -1px;
}

.blog-meta {
    color: var(--text-muted);
    font-size: 1.05rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.blog-meta .author {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-cyan);
}

/* --- BLOG CONTENT UI IMPROVEMENTS --- */
.blog-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.blog-content p {
    margin-bottom: 2.2rem;
}

/* Intro Paragraph */
.blog-content p.intro {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #fff;
    font-weight: 400;
    border-left: 4px solid var(--accent-cyan);
    padding-left: 2rem;
    margin-bottom: 4rem;
    font-family: var(--font-heading);
}

/* Headings */
.blog-content h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: #fff;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

/* Lists */
.blog-content ul,
.blog-content ol {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    list-style: none;
    /* Custom bullets */
}

.blog-content li {
    margin-bottom: 1.2rem;
    color: var(--text-main);
    position: relative;
    padding-left: 2rem;
}

.blog-content li::before {
    content: '•';
    color: var(--accent-cyan);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.blog-content li:last-child {
    margin-bottom: 0;
}

.blog-content strong {
    color: #fff;
    font-weight: 700;
}

/* Blockquotes (if used) */
blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    color: #fff;
    text-align: center;
    margin: 4rem 0;
    padding: 2rem;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* FAQ Section */
.faq-section {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.faq-section h3 {
    color: #fff;
    margin-top: 2.5rem;
    font-size: 1.4rem;
    font-family: var(--font-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.faq-section h3::before {
    content: '?';
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background: var(--accent-cyan);
    color: #000;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
}

.faq-section h3:first-child {
    margin-top: 0;
}

/* CTA Box */
.blog-cta {
    background: linear-gradient(135deg, rgba(10, 20, 30, 1) 0%, rgba(5, 5, 5, 1) 100%);
    border: 1px solid var(--accent-cyan);
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 30px;
    margin-top: 6rem;
    box-shadow: 0 20px 60px rgba(0, 255, 252, 0.1);
    position: relative;
    overflow: hidden;
}

.blog-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 252, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.blog-cta h3 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.blog-cta p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-cyan);
    color: #000;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--accent-glow);
    background: #fff;
}

/* --- FOOTER SUPPORT --- */
footer {
    background: #020202;
    border-top: 1px solid var(--border-light);
    padding: 6rem 2rem 3rem;
    margin-top: 8rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: all 0.2s;
    font-size: 1.05rem;
}

.footer-section a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }

    .blog-container {
        padding-top: 120px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar .nav-links {
        display: none;
        /* Rely on hamburger */
    }

    .blog-content {
        font-size: 1.1rem;
    }

    .blog-content ul {
        padding: 2rem;
    }
}

/* --- BLOG INDEX PAGE STYLES --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 252, 0.1);
    background: var(--bg-card-hover);
}

.blog-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 0.8rem;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Hero Section for Index */
.hero-section {
    text-align: center;
    padding: 160px 20px 60px;
    background: radial-gradient(circle at top, rgba(0, 255, 252, 0.05), transparent 70%);
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}