/**
 * EZcontractPRO - Learn/AEO Pages Stylesheet
 * Answer Engine Optimization styles for contractor education content
 */

/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
    /* Slate Palette */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    /* Primary - Teal/Cyan */
    --primary-700: #0e7490;
    --primary-600: #0891b2;
    --primary-500: #06b6d4;
    --primary-400: #22d3ee;
    --primary-300: #67e8f9;

    /* Secondary - Violet */
    --accent-600: #7c3aed;
    --accent-500: #8b5cf6;
    --accent-400: #a78bfa;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Base */
    --bg-primary: #ffffff;
    --bg-secondary: var(--slate-50);
    --bg-tertiary: var(--slate-100);
    --text-primary: var(--slate-900);
    --text-secondary: var(--slate-600);
    --text-muted: var(--slate-500);
    --border-color: var(--slate-200);

    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===========================================
   DARK MODE
   =========================================== */
body.dark-mode {
    --bg-primary: var(--slate-900);
    --bg-secondary: var(--slate-800);
    --bg-tertiary: var(--slate-700);
    --text-primary: var(--slate-50);
    --text-secondary: var(--slate-300);
    --text-muted: var(--slate-400);
    --border-color: var(--slate-700);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

/* ===========================================
   RESET & BASE
   =========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-400);
}

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

/* ===========================================
   UTILITIES
   =========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================================
   NAVIGATION
   =========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--slate-800);
}

.nav-logo-text span {
    color: var(--primary-500);
}

.dark-mode .nav-logo-text {
    color: white;
}

.footer .nav-logo-text {
    color: white;
}

.footer .nav-logo-text span {
    color: var(--primary-400);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-500);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--primary-500);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
    color: white;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
}

.btn-ghost:hover {
    color: var(--primary-500);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 16px;
}

.mobile-menu a {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===========================================
   BREADCRUMBS
   =========================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--primary-500);
}

.breadcrumbs .separator {
    color: var(--slate-400);
}

/* ===========================================
   HERO / DIRECT ANSWER SECTION
   =========================================== */
.answer-hero {
    padding: 120px 0 60px;
    background: var(--bg-primary);
    position: relative;
}

.answer-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.answer-hero .container {
    position: relative;
    z-index: 1;
}

.answer-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Direct Answer Box - The AEO highlight */
.direct-answer {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(6, 182, 212, 0.04));
    border-left: 4px solid var(--primary-500);
    padding: 24px 28px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0 32px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.dark-mode .direct-answer {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(6, 182, 212, 0.06));
}

.direct-answer strong {
    color: var(--primary-600);
}

.dark-mode .direct-answer strong {
    color: var(--primary-400);
}

/* Video Embed */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-top: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.dark-mode .video-embed {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.video-fallback {
    text-align: center;
    margin-top: 12px;
}

.video-fallback a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.video-fallback a:hover {
    color: #ff0000;
}

.video-fallback a i {
    font-size: 1.1rem;
}

/* Pillar tag */
.pillar-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.pillar-tag i {
    font-size: 0.75rem;
}

/* ===========================================
   CONTENT SECTIONS
   =========================================== */
.content-section {
    padding: 48px 0;
}

.content-section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-500);
    font-size: 1.25rem;
}

/* Pain Acknowledgment Section */
.pain-section {
    background: var(--bg-secondary);
    padding: 48px 0;
}

.pain-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
}

.pain-content p {
    margin-bottom: 16px;
}

/* Explanation Section */
.explanation-section {
    padding: 48px 0;
}

.explanation-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.explanation-content p {
    margin-bottom: 20px;
}

.explanation-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.explanation-content ul,
.explanation-content ol {
    margin: 16px 0 24px 24px;
}

.explanation-content li {
    margin-bottom: 12px;
}

/* ===========================================
   STEP CARDS (HowTo)
   =========================================== */
.steps-grid {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.step-card {
    display: flex;
    gap: 20px;
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.dark-mode .step-card {
    background: var(--slate-800);
}

.step-card:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-md);
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

/* ===========================================
   EZP MENTION SECTION
   =========================================== */
.ezp-mention {
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    padding: 48px 0;
    color: white;
}

.ezp-mention-card {
    display: flex;
    gap: 32px;
    align-items: center;
}

.ezp-mention-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.ezp-mention-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.ezp-mention-content p {
    color: var(--slate-300);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.ezp-mention-content .btn {
    margin-top: 8px;
}

/* ===========================================
   FAQ SECTION
   =========================================== */
.faq-section {
    padding: 48px 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 24px auto 0;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: var(--primary-500);
}

.faq-question i {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===========================================
   RELATED PAGES
   =========================================== */
.related-section {
    padding: 48px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.related-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dark-mode .related-card {
    background: var(--slate-800);
}

.related-card:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.related-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.related-card .pillar-tag {
    margin-top: 12px;
    font-size: 0.7rem;
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--slate-300);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================
   COMMUNITY Q&A SECTION
   =========================================== */
.community-qa-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.community-qa-section .section-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.qa-item {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-light);
    position: relative;
}

.qa-item.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 4px 20px rgba(6, 182, 212, 0.1);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), #0e7490);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge i {
    margin-right: 4px;
}

.qa-question {
    margin-bottom: 16px;
}

.qa-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--slate-200), var(--slate-300));
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.author-avatar.ezp_team {
    background: linear-gradient(135deg, var(--primary), #0e7490);
    color: white;
}

.author-avatar.expert {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--text-primary);
    font-size: 14px;
}

.author-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.author-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 8px;
}

.author-badge.ezp {
    background: rgba(6, 182, 212, 0.15);
    color: var(--primary);
}

.author-badge.expert {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.question-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.qa-meta {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.qa-meta i {
    margin-right: 6px;
    color: var(--text-muted);
}

.qa-answers {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qa-answer {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    margin-left: 20px;
    border-left: 3px solid var(--border-light);
}

.qa-answer.ezp_team {
    border-left-color: var(--primary);
    background: rgba(6, 182, 212, 0.05);
}

.qa-answer.expert {
    border-left-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

.qa-answer .qa-author {
    margin-bottom: 8px;
}

.qa-answer .author-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.answer-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 8px;
}

.answer-helpful {
    font-size: 12px;
    color: var(--text-muted);
}

.answer-helpful i {
    margin-right: 4px;
}

.qa-cta {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

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

/* Ask Question Form */
.ask-form {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.ask-form h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.ask-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ask-form .form-group {
    margin-bottom: 16px;
}

.ask-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.ask-form input,
.ask-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ask-form input:focus,
.ask-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.ask-form textarea {
    resize: vertical;
    min-height: 100px;
}

.ask-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.ask-form .form-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

/* ===========================================
   HUB PAGE
   =========================================== */
.hub-hero {
    padding: 120px 0 60px;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
}

.hub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hub-hero .container {
    position: relative;
    z-index: 1;
}

.hub-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hub-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Pillar Cards Grid */
.pillars-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.pillar-card {
    background: var(--bg-primary);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dark-mode .pillar-card {
    background: var(--slate-800);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-500);
}

.pillar-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pillar-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pillar-card .article-count {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dark-mode .pillar-card .article-count {
    background: var(--slate-700);
}

/* Featured Articles */
.featured-section {
    padding: 60px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.featured-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dark-mode .featured-card {
    background: var(--slate-800);
}

.featured-card:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-md);
}

.featured-card-content {
    padding: 24px;
}

.featured-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.featured-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-500);
}

.featured-card .read-more i {
    transition: transform 0.2s ease;
}

.featured-card:hover .read-more i {
    transform: translateX(4px);
}

/* ===========================================
   PILLAR PAGE
   =========================================== */
.pillar-hero {
    padding: 120px 0 60px;
    position: relative;
}

.pillar-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;
}

.pillar-hero .container {
    position: relative;
    z-index: 1;
}

.pillar-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    margin-bottom: 24px;
}

.pillar-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pillar-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
}

/* Articles List */
.articles-section {
    padding: 48px 0;
    background: var(--bg-secondary);
}

.articles-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.article-item {
    background: var(--bg-primary);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dark-mode .article-item {
    background: var(--slate-800);
}

.article-item:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-md);
}

.article-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.article-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.article-item .arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.dark-mode .article-item .arrow {
    background: var(--slate-700);
}

.article-item:hover .arrow {
    background: var(--primary-500);
    color: white;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: var(--slate-900);
    padding: 60px 0 32px;
    color: var(--slate-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--slate-400);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--slate-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary-500);
    color: white;
}

.footer h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-links a {
    color: var(--slate-400);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.footer-payment img {
    height: 28px;
    opacity: 0.8;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hub-hero h1 {
        font-size: 2rem;
    }

    .answer-hero h1 {
        font-size: 1.85rem;
    }

    .pillar-hero h1 {
        font-size: 2rem;
    }

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

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

    .step-card {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .ezp-mention-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cta-section h2 {
        font-size: 1.65rem;
    }

    .article-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-item .arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hub-hero,
    .answer-hero,
    .pillar-hero {
        padding-top: 100px;
    }

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

    .direct-answer {
        padding: 20px;
        font-size: 1.05rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Success message for Q&A form */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message i {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 16px;
}

.success-message h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-message p {
    color: var(--text-secondary);
}

/* Responsive for Q&A form */
@media (max-width: 600px) {
    .ask-form .form-row {
        grid-template-columns: 1fr;
    }

    .qa-answer {
        margin-left: 0;
    }

    .qa-meta {
        flex-direction: column;
        gap: 8px;
    }
}
