/* ============================================
   BookMySales - Global Styles
   Modern, Light & Clean Design
   ============================================ */

:root {
    /* Primary Colors */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --primary-lighter: #818cf8;
    
    /* Secondary Colors */
    --secondary: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #34d399;
    --accent: #a78bfa;
    --accent-dark: #8b5cf6;
    --warning: #fbbf24;
    --warning-dark: #f59e0b;
    
    /* Light Background Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: #ffffff;
    
    /* Dark Theme (for header/footer/hero only) */
    --dark: #1e293b;
    --dark-secondary: #334155;
    --dark-tertiary: #475569;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-light: #f8fafc;
    --text-gray: #e2e8f0;
    --text-dark: #1e293b;
    --text-dark-secondary: #475569;
    --text-muted: #64748b;
    
    /* Borders & Shadows */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-cta: linear-gradient(135deg, #4f46e5 0%, #6366f1 25%, #8b5cf6 50%, #a855f7 75%, #c026d3 100%);
    
    /* Spacing */
    --section-padding: 80px;
    --section-padding-mobile: 50px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

/* ============================================
   Header / Navigation
   ============================================ */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
    margin-left: -12px;
}

.logo a {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.logo img {
    height: 54px;
    width: 220px;
    max-width: 220px;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: var(--transition-normal);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Desktop only elements */
.desktop-only {
    display: inline-flex;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    z-index: 1002;
}

/* ============================================
   Hero Section (Dark with white text)
   ============================================ */
.hero-section {
    background: var(--gradient-hero);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.hero-section .subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    padding: 14px 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Sections (Light backgrounds)
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   Stats Section (Dark with white text)
   ============================================ */
.stats-section {
    padding: 60px 0;
    background: var(--dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-card .number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-card .label {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Service Cards (Light backgrounds)
   ============================================ */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
    padding-left: 22px;
    position: relative;
    font-size: 0.9rem;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* ============================================
   Team Grid (Light backgrounds)
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.team-card {
    text-align: center;
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    border: 3px solid var(--primary-light);
}

.team-card h4 {
    color: var(--text-dark);
    margin-bottom: 4px;
    font-size: 1.1rem;
    font-weight: 700;
}

.team-card .position {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============================================
   Client Logos (Light backgrounds)
   ============================================ */
.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.client-logos a {
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 60px;
}

.client-logos a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.client-logos img {
    max-height: 40px;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(30%) opacity(0.7);
    transition: var(--transition-normal);
}

.client-logos a:hover img {
    filter: grayscale(0%) opacity(1);
}

/* ============================================
   Beautiful CTA Section
   ============================================ */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-cta);
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255,255,255,0.15) 0%, transparent 50%);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 550px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-white {
    background: white;
    color: var(--primary);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-btn-white:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cta-btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    padding: 16px 36px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* ============================================
   Footer (Dark with white text)
   ============================================ */
.main-footer {
    background: var(--dark);
    color: var(--text-gray);
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-white);
    font-weight: 700;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 54px;
    width: 220px;
    max-width: 220px;
    display: block;
    object-fit: contain;
}

.footer-column p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--primary-lighter);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    color: var(--text-gray);
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Form Elements
   ============================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition-normal);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ============================================
   Case Study Cards
   ============================================ */
.case-study-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.case-study-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.case-study-card h4 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.case-study-card .results {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.case-study-card .result-item {
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 130px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-cta,
    .cta-button.header-cta {
        display: none !important;
    }
    
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 0;
        gap: 0;
        display: none;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        z-index: 99999;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a {
        padding: 16px 24px;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
        text-align: center;
        display: block;
        color: #1e293b;
        font-size: 15px;
        background: #ffffff;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: #f1f5f9;
        color: #4f46e5;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .main-nav {
        height: 72px;
        padding: 0;
        position: relative;
    }
    
    .main-header {
        position: fixed;
        z-index: 1001;
    }
    
    .hero-section {
        padding: 110px 0 70px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px 16px;
    }
    
    .stat-card .number {
        font-size: 1.75rem;
    }
    
    .stat-card .label {
        font-size: 11px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .cta-section {
        padding: 70px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn-white,
    .cta-btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .logo img {
        height: 54px;
        width: 220px;
        max-width: 220px;
    }
    
    .logo {
        margin-left: -8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    .logo img {
        height: 54px;
        width: 220px;
        max-width: 220px;
    }
    
    .logo {
        margin-left: -6px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .stats-grid {
        gap: 10px;
    }
    
    .stat-card {
        padding: 16px 12px;
    }
    
    .stat-card .number {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 24px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.hidden { display: none; }
.visible { display: block; }

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--transition-smooth);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Blog
   ============================================ */
.blog-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 42%, #334155 100%);
    padding: 100px 0 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.45) 0%, transparent 42%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.35) 0%, transparent 48%),
        linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.5) 100%);
    pointer-events: none;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 40%, rgba(79, 70, 229, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 75% 60%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.blog-hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Match .hero-section h1 / .hero-section .subtitle for consistency site-wide */
.blog-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.blog-hero-lead {
    color: var(--text-gray);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.blog-list-section {
    padding: 64px 0 110px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #f1f5f9 50%, var(--bg-primary) 100%);
    position: relative;
}

.blog-list-wrap {
    position: relative;
    z-index: 1;
}

/* Extra space before footer when there are no posts (avoids CTA sitting on the fold) */
.blog-list-section--empty {
    padding-bottom: 120px;
}

.blog-empty {
    text-align: center;
    padding: 56px 32px 60px;
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.blog-empty p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Primary CTA on light card (do not use .btn-secondary here — that style is for dark heroes) */
.blog-empty-cta {
    display: inline-flex;
    text-decoration: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 28px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(79, 70, 229, 0.12), var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.15);
}

.blog-card:hover::before {
    opacity: 1;
}

/* Compact thumbnail so titles & excerpt balance the card (not image-dominated) */
.blog-card-image-wrap {
    display: block;
    height: 168px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--bg-tertiary) 0%, #e2e8f0 100%);
    position: relative;
}

@media (min-width: 480px) {
    .blog-card-image-wrap {
        height: 188px;
    }
}

.blog-card-image-shine {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.blog-card:hover .blog-card-image-shine {
    opacity: 1;
}

.blog-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--transition-smooth);
}

.blog-card:hover .blog-card-image-wrap img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 22px 24px 26px;
}

.blog-card-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Align with .section-header h2 scale on cards */
.blog-card h2 {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 700;
    margin: 8px 0 12px;
    line-height: 1.35;
    color: var(--text-dark);
}

.blog-card h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.65;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}

.blog-meta-views {
    color: var(--text-muted);
}

.blog-card-read {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.blog-card-read:hover {
    text-decoration: underline;
}

/* Single post */
.blog-single-section {
    padding: 0 0 100px;
    background: var(--bg-primary);
    position: relative;
}

.blog-single-hero-accent {
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.95;
}

/* Single post layout: main column + optional sidebar */
.blog-single-layout {
    display: grid;
    gap: 36px;
    align-items: start;
    padding-top: 40px;
}

.blog-single-layout--with-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 40px 48px;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.blog-single-layout:not(.blog-single-layout--with-sidebar) {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.blog-single-main {
    min-width: 0;
    max-width: 720px;
}

.blog-single-layout--with-sidebar .blog-single-main {
    max-width: none;
}

/* Sidebar */
.blog-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .blog-single-layout--with-sidebar .blog-single-sidebar {
        position: sticky;
        top: 96px;
    }
}

.blog-sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    box-shadow: var(--shadow-sm);
}

.blog-sidebar-heading {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.blog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-sidebar-list li + li {
    border-top: 1px solid var(--border-light);
    margin-top: 14px;
    padding-top: 14px;
}

.blog-sidebar-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}

.blog-sidebar-card:hover {
    opacity: 0.92;
}

.blog-sidebar-card:hover .blog-sidebar-card-title {
    color: var(--primary);
}

.blog-sidebar-card-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.blog-sidebar-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-sidebar-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.blog-sidebar-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.blog-sidebar-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.blog-sidebar-card-excerpt {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
}

.blog-sidebar-widget--cta {
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    border: none;
    color: var(--text-gray);
    text-align: center;
    padding: 22px 18px;
}

.blog-sidebar-cta-text {
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 14px;
    color: #e2e8f0;
}

.blog-sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-sidebar-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .blog-single-layout--with-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-single-main {
        order: 0;
        max-width: 720px;
    }

    .blog-single-sidebar {
        order: 1;
        position: static;
    }
}

.blog-breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.blog-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-breadcrumb-current {
    color: var(--text-dark-secondary);
}

.blog-single-header {
    margin-bottom: 32px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.blog-single-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Match .section-header h2 / body copy rhythm */
.blog-single-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.blog-single-deck {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 640px;
}

.blog-single-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-single-featured {
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-tertiary);
    aspect-ratio: 2 / 1;
    max-height: min(380px, 44vh);
}

.blog-single-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.blog-share-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-right: 8px;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.blog-share-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.blog-share-fb { background: #1877f2; color: #fff; }
.blog-share-tw { background: #000; color: #fff; }
.blog-share-li { background: #0a66c2; color: #fff; }
.blog-share-wa { background: #25d366; color: #fff; }
.blog-share-copy {
    background: var(--bg-secondary);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.blog-content.prose {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
    max-width: 100%;
}

@media (min-width: 768px) {
    .blog-content.prose {
        font-size: 1.05rem;
        line-height: 1.8;
    }
}

.blog-content.prose h2,
.blog-content.prose h3,
.blog-content.prose h4 {
    margin-top: 1.75em;
    margin-bottom: 0.65em;
    font-weight: 700;
    color: var(--text-dark);
}

.blog-content.prose p {
    margin-bottom: 1.15em;
}

.blog-content.prose ul,
.blog-content.prose ol {
    margin: 1em 0 1.15em 1.35em;
}

.blog-content.prose a {
    color: var(--primary);
}

.blog-content.prose blockquote {
    margin: 1.5em 0;
    padding: 16px 22px;
    border-left: 4px solid var(--primary);
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-dark-secondary);
}

.blog-content.prose .blog-inline-img,
.blog-content.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.25em 0;
}

.blog-comments {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.blog-comments h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.blog-comments-count {
    font-weight: 600;
    color: var(--text-muted);
}

.blog-flash {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.blog-flash-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.blog-flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.blog-comment {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.blog-comment:last-of-type {
    border-bottom: none;
}

.blog-comment-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 8px;
}

.blog-comment-meta time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-comment-body p {
    color: var(--text-dark-secondary);
    line-height: 1.65;
    margin: 0;
}

.blog-comment-form-wrap {
    margin-top: 40px;
    padding: 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.blog-comment-form-wrap h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.blog-comment-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.blog-comment-form {
    position: relative;
}

.blog-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .blog-form-row {
        grid-template-columns: 1fr;
    }
}

.blog-form-group {
    margin-bottom: 16px;
}

.blog-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.blog-form-group input,
.blog-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
}

.blog-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.blog-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.blog-submit-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.blog-back {
    margin-top: 48px;
}

.blog-back a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.blog-back a:hover {
    text-decoration: underline;
}

.blog-not-found {
    text-align: center;
    padding: 80px 20px;
}

.blog-not-found h1 {
    margin-bottom: 16px;
}

.blog-not-found a {
    color: var(--primary);
    font-weight: 600;
}

/* Floating WhatsApp: label + circular button with clear gap between */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100100;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: transform var(--transition-fast), filter var(--transition-fast);
    filter: drop-shadow(0 4px 14px rgba(37, 211, 102, 0.38));
}

.whatsapp-float:hover {
    transform: scale(1.02);
    color: #ffffff;
    filter: drop-shadow(0 6px 18px rgba(37, 211, 102, 0.48));
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.55);
    outline-offset: 4px;
    border-radius: 999px;
}

.whatsapp-float__label {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #25d366;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.whatsapp-float__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 12px;
        font-size: 0.8125rem;
        gap: 10px;
    }

    .whatsapp-float__label {
        padding: 10px 16px;
    }

    .whatsapp-float__icon {
        width: 52px;
        height: 52px;
    }

    .whatsapp-float__icon svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 420px) {
    .whatsapp-float__label {
        display: none;
    }

    .whatsapp-float {
        filter: drop-shadow(0 4px 12px rgba(37, 211, 102, 0.45));
    }
}
