/*
Theme Name: Xoá Mù AI
Theme URI: https://xoamuai.io.vn
Description: Theme chính thức của Xoá Mù AI — Nền tảng đào tạo và ứng dụng AI thực chiến.
Version: 1.0.0
Author: Xoá Mù AI
Text Domain: xoamuai
*/

/* ===== CSS VARIABLES ===== */
:root {
    --bg-dark: #0D1117;
    --bg-card-dark: #161B22;
    --bg-light: #F5F7FA;
    --blue: #4F8EF7;
    --blue-hover: #3a7be8;
    --cyan: #00D4C8;
    --white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-gray: #6B7280;
    --text-light: #C9D1D9;
    --border: #E5E7EB;
    --border-dark: #30363D;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --max-w: 1200px;
    --header-h: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ===== CONTAINER ===== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p { line-height: 1.7; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary {
    background: var(--blue);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79,142,247,0.35);
    color: white;
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    color: white;
}
.btn-dark {
    background: var(--bg-dark);
    color: var(--white);
}
.btn-dark:hover {
    background: #1c2a3a;
    transform: translateY(-2px);
    color: white;
}
.btn-ghost {
    background: rgba(79,142,247,0.1);
    color: var(--blue);
    border: 1px solid rgba(79,142,247,0.25);
}
.btn-ghost:hover {
    background: var(--blue);
    color: white;
}

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(79,142,247,0.12);
    color: var(--blue);
    border: 1px solid rgba(79,142,247,0.25);
    margin-bottom: 20px;
}

/* ===== SECTION ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-dark); color: var(--white); }
.section-gray { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-gray); max-width: 560px; margin: 0 auto; font-size: 17px; }
.section-dark .section-header p { color: var(--text-light); }
.section-cta { text-align: center; margin-top: 48px; }

/* ===== HEADER ===== */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
    height: var(--header-h);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
#site-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
}
#site-nav a {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
#site-nav a:hover,
#site-nav .current a { color: var(--white); background: rgba(255,255,255,0.08); }
.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-cta .btn { padding: 9px 18px; font-size: 14px; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--white);
    font-size: 22px;
    line-height: 1;
}

/* ===== HERO ===== */
.hero {
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(79,142,247,0.13) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(0,212,200,0.09) 0%, transparent 50%);
    padding: 100px 0 80px;
    color: var(--white);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(79,142,247,0.12);
    border: 1px solid rgba(79,142,247,0.3);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 480px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.hero-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 360px;
    width: 100%;
}
.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.hero-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.hero-card-title { color: var(--white); font-size: 15px; font-weight: 600; }
.hero-card-sub { color: var(--text-light); font-size: 12px; }
.hero-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.hero-stat {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.hero-stat-num { font-size: 22px; font-weight: 800; color: var(--blue); }
.hero-stat-label { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.progress-row { margin-bottom: 10px; }
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}
.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    text-align: center;
    padding: 16px 24px;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label { font-size: 14px; color: var(--text-gray); font-weight: 500; }

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(79,142,247,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-gray); font-size: 15px; margin-bottom: 20px; }
.service-link {
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.service-link:hover { gap: 8px; }

/* ===== WHY US ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 64px;
}
.why-item { display: flex; gap: 20px; }
.why-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(79,142,247,0.2);
    line-height: 1;
    flex-shrink: 0;
    width: 72px;
    text-align: right;
}
.why-content h3 { color: var(--white); margin-bottom: 10px; }
.why-content p { color: var(--text-light); font-size: 15px; }

/* ===== COURSE CARDS ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-thumb {
    height: 180px;
    background: linear-gradient(135deg, #0D1117, #1a2a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
}
.course-level {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(79,142,247,0.9);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}
.course-body { padding: 20px; }
.course-body h3 { font-size: 16px; margin-bottom: 8px; }
.course-body p { color: var(--text-gray); font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.course-meta { display: flex; justify-content: space-between; align-items: center; }
.course-price { font-size: 18px; font-weight: 700; color: var(--blue); }
.course-meta .btn { padding: 8px 16px; font-size: 13px; }

/* ===== TESTIMONIAL ===== */
.testimonial {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #091428 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}
.testimonial-quote {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: var(--text-light);
    max-width: 720px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.testimonial-quote strong { color: var(--white); font-style: normal; }
.testimonial-author { font-size: 14px; color: var(--blue); font-weight: 600; }

/* ===== BLOG PREVIEW ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb {
    height: 160px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.post-body { padding: 20px; }
.post-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.post-body h3 { font-size: 16px; margin-bottom: 8px; }
.post-body h3 a { color: var(--text-dark); transition: var(--transition); }
.post-body h3 a:hover { color: var(--blue); }
.post-body p { color: var(--text-gray); font-size: 14px; margin-bottom: 16px; }
.post-meta { font-size: 13px; color: var(--text-gray); }

/* ===== NEWSLETTER ===== */
.newsletter {
    background: linear-gradient(135deg, rgba(79,142,247,0.07), rgba(0,212,200,0.07));
    border: 1px solid rgba(79,142,247,0.2);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
}
.newsletter h2 { margin-bottom: 12px; }
.newsletter p { color: var(--text-gray); margin-bottom: 28px; font-size: 17px; }
.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}
.newsletter-form input:focus { border-color: var(--blue); }

/* ===== FOOTER ===== */
#site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-dark);
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand p {
    font-size: 14px;
    color: var(--text-light);
    max-width: 260px;
    margin-bottom: 20px;
    line-height: 1.7;
}
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
    color: var(--text-light);
    font-weight: 700;
}
.social-link:hover { background: var(--blue); color: white; }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-light); transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-contact p { font-size: 14px; color: var(--text-light); margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; }
.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-gray);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    background: var(--bg-dark);
    background-image: radial-gradient(ellipse at 30% 50%, rgba(79,142,247,0.1) 0%, transparent 60%);
    padding: 64px 0;
    color: var(--white);
    text-align: center;
}
.page-hero .badge { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 14px; }
.page-hero p { color: var(--text-light); max-width: 560px; margin: 0 auto; font-size: 17px; }

/* ===== PRODUCT / COURSE GRID (inner pages) ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.product-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--blue);
}
.product-icon { font-size: 40px; margin-bottom: 16px; }
.product-card h3 { font-size: 17px; margin-bottom: 10px; }
.product-card p { color: var(--text-gray); font-size: 14px; margin-bottom: 20px; flex: 1; line-height: 1.6; }
.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 16px;
}
.product-price span { font-size: 14px; font-weight: 400; color: var(--text-gray); }
.product-features {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.product-features li {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: flex-start;
    gap: 7px;
}
.product-features li::before {
    content: '✓';
    color: var(--blue);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.product-card .btn { width: 100%; justify-content: center; }

/* ===== PRICING TABLE ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}
.pricing-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
}
.pricing-card.featured {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue), 0 20px 40px rgba(79,142,247,0.15);
}
.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}
.pricing-icon { font-size: 36px; margin-bottom: 14px; }
.pricing-card h3 { margin-bottom: 8px; }
.pricing-card .desc { color: var(--text-gray); font-size: 14px; margin-bottom: 20px; }
.pricing-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}
.pricing-amount small { font-size: 14px; font-weight: 400; color: var(--text-gray); }
.pricing-period { font-size: 13px; color: var(--text-gray); margin-bottom: 24px; }
.pricing-features { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li {
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.pricing-features li .check { color: var(--blue); font-weight: 700; flex-shrink: 0; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-visual {
    background: var(--bg-card-dark);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    color: white;
    border: 1px solid var(--border-dark);
}
.about-visual-icon { font-size: 72px; margin-bottom: 20px; }
.about-visual h3 { color: white; margin-bottom: 10px; font-size: 1.3rem; }
.about-visual p { color: var(--text-light); font-size: 14px; }
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}
.about-stat {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.about-stat-num { font-size: 24px; font-weight: 800; color: var(--blue); }
.about-stat-label { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.about-content h2 { margin-bottom: 16px; }
.about-content p { color: var(--text-gray); margin-bottom: 16px; font-size: 16px; }
.values-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(79,142,247,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.value-item h4 { margin-bottom: 4px; }
.value-item p { color: var(--text-gray); font-size: 14px; margin: 0; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
}
.contact-info h2 { margin-bottom: 14px; }
.contact-info > p { color: var(--text-gray); margin-bottom: 36px; font-size: 16px; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon {
    width: 44px;
    height: 44px;
    background: rgba(79,142,247,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-item h4 { margin-bottom: 3px; font-size: 13px; color: var(--text-gray); font-weight: 500; }
.contact-item p { font-size: 15px; font-weight: 600; color: var(--text-dark); margin: 0; }
.contact-form {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-dark); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
    appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,142,247,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; margin-top: 4px; font-size: 16px; padding: 14px; }

/* ===== BLOG ARCHIVE ===== */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.blog-post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.blog-post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-post-thumb {
    height: 220px;
    background: linear-gradient(135deg, var(--bg-dark), #1a2a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}
.blog-post-body { padding: 24px; }
.blog-post-cat { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.blog-post-body h2 { font-size: 18px; margin-bottom: 10px; }
.blog-post-body h2 a { color: var(--text-dark); transition: var(--transition); }
.blog-post-body h2 a:hover { color: var(--blue); }
.blog-post-body p { color: var(--text-gray); font-size: 14px; margin-bottom: 16px; }
.blog-post-footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-gray); }
.read-more { color: var(--blue); font-weight: 600; font-size: 13px; }

/* ===== SINGLE POST ===== */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.post-content-area h1 { margin-bottom: 16px; }
.post-meta-bar {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-gray);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.post-body p { margin-bottom: 16px; color: #374151; line-height: 1.8; }
.post-body h2 { margin: 36px 0 16px; }
.post-body h3 { margin: 28px 0 12px; }
.post-body img { border-radius: var(--radius-sm); margin: 24px 0; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 16px; }
.post-body li { margin-bottom: 6px; color: #374151; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-widget { background: var(--bg-light); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.sidebar-widget h4 { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* ===== PAYWALL ===== */
.paywall-notice {
    background: linear-gradient(135deg, rgba(79,142,247,0.05), rgba(0,212,200,0.05));
    border: 1px solid rgba(79,142,247,0.2);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    margin: 32px 0;
}
.paywall-notice h3 { margin-bottom: 12px; }
.paywall-notice p { color: var(--text-gray); margin-bottom: 24px; }

/* ===== CATEGORY FILTER ===== */
.cat-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}
.cat-filter a {
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    color: var(--text-gray);
    transition: var(--transition);
}
.cat-filter a:hover,
.cat-filter a.active {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* ===== GENERIC PAGE ===== */
.generic-page { padding: 64px 0; }
.generic-page .entry-content h2 { margin: 32px 0 14px; }
.generic-page .entry-content h3 { margin: 24px 0 10px; }
.generic-page .entry-content p { margin-bottom: 16px; color: #374151; }
.generic-page .entry-content ul,
.generic-page .entry-content ol { padding-left: 24px; margin-bottom: 16px; }
.generic-page .entry-content li { margin-bottom: 6px; color: #374151; }

/* ===== NOT FOUND ===== */
.not-found { padding: 100px 0; text-align: center; }
.not-found h1 { font-size: 6rem; color: var(--blue); margin-bottom: 16px; }
.not-found h2 { margin-bottom: 12px; }
.not-found p { color: var(--text-gray); margin-bottom: 28px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .post-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    #site-nav { display: none; }
    #site-nav.open {
        display: block;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0; bottom: 0;
        background: var(--bg-dark);
        padding: 20px;
        z-index: 999;
        overflow-y: auto;
    }
    #site-nav.open ul { flex-direction: column; gap: 4px; }
    #site-nav.open a { display: block; padding: 13px 16px; font-size: 16px; }
    .nav-toggle { display: block; }
    .header-cta .btn-ghost { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
    .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; gap: 28px; }
    .courses-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .blog-posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .newsletter { padding: 36px 20px; }
    .newsletter-form { flex-direction: column; }
    .contact-form { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .about-grid { gap: 40px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .cat-filter { justify-content: flex-start; }
}
