/*
 * TheSERPwire - Digital Marketing Agency
 * Homepage Styles
 */

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

:root {
    --sw-primary: #3a7bd5;
    --sw-primary-dark: #2c5fb3;
    --sw-accent: #ff7a59;
    --sw-accent-dark: #e5694d;
    --sw-dark: #1a1a2e;
    --sw-darker: #0f0f1e;
    --sw-text: #4a4a68;
    --sw-text-light: #7a7a9a;
    --sw-bg: #f8f9ff;
    --sw-white: #ffffff;
    --sw-gradient: linear-gradient(135deg, #3a7bd5 0%, #5a67d8 50%, #667eea 100%);
    --sw-gradient-accent: linear-gradient(135deg, #ff7a59 0%, #ff6b6b 100%);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--sw-text);
    line-height: 1.6;
    background: var(--sw-white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

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

/* ===== Navbar ===== */
.sw-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.3s ease;
    background: transparent;
}

.sw-navbar.scrolled {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.sw-navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.sw-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sw-white);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sw-logo img {
    height: 36px;
    width: auto;
}

.sw-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.sw-nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.sw-nav-links a:hover {
    color: var(--sw-white);
}

.sw-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sw-accent);
    transition: width 0.3s ease;
}

.sw-nav-links a:hover::after {
    width: 100%;
}

.sw-nav-cta {
    background: var(--sw-accent) !important;
    color: var(--sw-white) !important;
    padding: 10px 22px !important;
    border-radius: 8px;
    font-weight: 600 !important;
}

.sw-nav-cta::after { display: none !important; }

.sw-nav-cta:hover {
    background: var(--sw-accent-dark) !important;
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.sw-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.sw-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sw-white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===== Badge ===== */
.sw-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.1), rgba(90, 103, 216, 0.1));
    color: var(--sw-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(58, 123, 213, 0.2);
}

.sw-badge-light {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Buttons ===== */
.sw-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.sw-btn-primary {
    background: var(--sw-gradient);
    color: var(--sw-white) !important;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
}

.sw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 123, 213, 0.4);
}

.sw-btn-accent {
    background: var(--sw-accent);
    color: var(--sw-white) !important;
    box-shadow: 0 4px 15px rgba(255, 122, 89, 0.3);
}

.sw-btn-accent:hover {
    background: var(--sw-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 89, 0.4);
}

.sw-btn-outline {
    background: transparent;
    color: var(--sw-white) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.sw-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.sw-btn-white {
    background: var(--sw-white);
    color: var(--sw-primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sw-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.sw-btn-outline-white {
    background: transparent;
    color: var(--sw-white) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.sw-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--sw-white);
}

/* ===== Hero Section ===== */
.sw-hero {
    position: relative;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a3e 40%, #2d1b69 100%);
    padding: 160px 0 100px;
    overflow: hidden;
    color: var(--sw-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.sw-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(58, 123, 213, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(90, 103, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating shapes */
.sw-hero-bg::before,
.sw-hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.sw-hero-bg::before {
    width: 400px;
    height: 400px;
    background: var(--sw-primary);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.sw-hero-bg::after {
    width: 300px;
    height: 300px;
    background: #667eea;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.sw-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.sw-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.12;
    margin: 24px 0;
    color: var(--sw-white);
    letter-spacing: -1.5px;
}

.sw-gradient-text {
    background: linear-gradient(135deg, #667eea, #64b5f6, #81d4fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sw-hero-desc {
    font-size: 19px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.sw-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.sw-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.sw-stat-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, #64b5f6, #81d4fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.sw-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ===== Trusted By / Logos ===== */
.sw-trusted {
    padding: 60px 0;
    background: var(--sw-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sw-trusted-label {
    text-align: center;
    font-size: 13px;
    color: var(--sw-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 28px;
}

.sw-trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.4;
}

.sw-trusted-logos span {
    font-size: 20px;
    font-weight: 700;
    color: var(--sw-dark);
    letter-spacing: -0.5px;
}

/* ===== Section Common ===== */
.sw-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.sw-section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--sw-dark);
    margin: 16px 0;
    letter-spacing: -0.5px;
}

.sw-section-desc {
    font-size: 17px;
    color: var(--sw-text-light);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Services Section ===== */
.sw-services {
    padding: 110px 0;
    background: var(--sw-bg);
}

.sw-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.sw-service-card {
    background: var(--sw-white);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.sw-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
}

.sw-service-featured {
    background: linear-gradient(135deg, #3a7bd5 0%, #5a67d8 100%);
    color: var(--sw-white);
    border: none;
}

.sw-service-featured h3 { color: var(--sw-white); }
.sw-service-featured p { color: rgba(255, 255, 255, 0.85); }
.sw-service-featured .sw-service-icon { color: rgba(255, 255, 255, 0.9); }
.sw-service-featured .sw-service-features li { color: rgba(255, 255, 255, 0.9); }
.sw-service-featured .sw-service-features li::before { color: #81d4fa; }

.sw-featured-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--sw-accent);
    color: var(--sw-white);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sw-service-icon {
    color: var(--sw-primary);
    margin-bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.08), rgba(90, 103, 216, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-service-featured .sw-service-icon {
    background: rgba(255, 255, 255, 0.15);
}

.sw-service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--sw-dark);
    margin-bottom: 12px;
}

.sw-service-card p {
    font-size: 15px;
    color: var(--sw-text);
    line-height: 1.65;
    margin-bottom: 20px;
}

.sw-service-features li {
    font-size: 14px;
    color: var(--sw-text);
    padding: 5px 0;
    padding-left: 24px;
    position: relative;
}

.sw-service-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--sw-primary);
    font-weight: 700;
}

/* ===== Why Us Section ===== */
.sw-why-us {
    padding: 110px 0;
    background: var(--sw-white);
}

.sw-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.sw-why-card {
    padding: 40px;
    border-radius: 16px;
    background: var(--sw-bg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.35s ease;
}

.sw-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.sw-why-number {
    font-size: 44px;
    font-weight: 900;
    background: var(--sw-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.sw-why-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--sw-dark);
    margin-bottom: 10px;
}

.sw-why-card p {
    font-size: 15px;
    color: var(--sw-text);
    line-height: 1.65;
}

/* ===== Process Section ===== */
.sw-process {
    padding: 110px 0;
    background: var(--sw-bg);
}

.sw-process-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.sw-process-step {
    text-align: center;
    flex: 1;
    max-width: 250px;
    padding: 0 16px;
}

.sw-process-number {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--sw-gradient);
    color: var(--sw-white);
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 25px rgba(58, 123, 213, 0.25);
}

.sw-process-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sw-dark);
    margin-bottom: 10px;
}

.sw-process-content p {
    font-size: 14px;
    color: var(--sw-text-light);
    line-height: 1.65;
}

.sw-process-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--sw-primary), rgba(58, 123, 213, 0.15));
    margin-top: 34px;
    flex-shrink: 0;
}

/* ===== CTA Section ===== */
.sw-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a3e 40%, #2d1b69 100%);
    color: var(--sw-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sw-cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(58, 123, 213, 0.12), transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.sw-cta-content {
    position: relative;
    z-index: 1;
}

.sw-cta h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--sw-white);
    letter-spacing: -0.5px;
}

.sw-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ===== Blog Section ===== */
.sw-blog-section {
    padding: 110px 0;
    background: var(--sw-white);
}

.sw-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.sw-blog-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--sw-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    display: block;
    color: inherit !important;
}

.sw-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
}

.sw-blog-image {
    height: 210px;
    background-size: cover;
    background-position: center;
    background-color: var(--sw-bg);
}

.sw-blog-no-image {
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.06), rgba(90, 103, 216, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-blog-body {
    padding: 28px;
}

.sw-blog-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sw-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sw-blog-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sw-dark);
    margin-bottom: 12px;
    line-height: 1.45;
}

.sw-blog-excerpt {
    font-size: 14px;
    color: var(--sw-text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.sw-blog-date {
    font-size: 13px;
    color: var(--sw-text-light);
}

/* ===== Footer ===== */
.sw-footer {
    background: var(--sw-darker);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 0;
}

.sw-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sw-footer-brand h3 {
    color: var(--sw-white);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
}

.sw-footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.sw-footer-social {
    display: flex;
    gap: 12px;
}

.sw-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

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

.sw-footer-col h4 {
    color: var(--sw-white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sw-footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    padding: 6px 0;
}

.sw-footer-col a:hover {
    color: var(--sw-white);
    padding-left: 4px;
}

.sw-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
}

.sw-footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
}

.sw-footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sw-hero-title { font-size: 44px; }
    .sw-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .sw-services-grid, .sw-why-grid, .sw-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .sw-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .sw-process-connector { display: none; }
    .sw-process-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .sw-process-step { max-width: 100%; }
    .sw-section-title { font-size: 34px; }
}

@media (max-width: 768px) {
    .sw-nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 30, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .sw-nav-links.active { display: flex; }
    .sw-menu-toggle { display: block; }

    .sw-hero { padding: 120px 0 70px; min-height: auto; }
    .sw-hero-title { font-size: 34px; letter-spacing: -1px; }
    .sw-hero-desc { font-size: 16px; }

    .sw-services, .sw-why-us, .sw-process, .sw-blog-section { padding: 80px 0; }
    .sw-services-grid, .sw-why-grid, .sw-blog-grid { grid-template-columns: 1fr; }
    .sw-process-grid { grid-template-columns: 1fr; }

    .sw-cta h2 { font-size: 30px; }
    .sw-section-title { font-size: 28px; }
    .sw-section-header { margin-bottom: 44px; }

    .sw-hero-buttons { flex-direction: column; align-items: center; }
    .sw-btn { width: 100%; max-width: 300px; text-align: center; }

    .sw-footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .sw-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .sw-hero-title { font-size: 28px; }
    .sw-stat-number { font-size: 32px; }
    .sw-hero-stats { gap: 16px; }
    .sw-container { padding: 0 16px; }
}

/* ===================================================================
   BLOG PAGE STYLES
   =================================================================== */

/* Blog Hero */
.blog-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0d1b33 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(58,123,213,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero-content {
    max-width: 640px;
}

.blog-hero-label {
    display: inline-block;
    background: rgba(58,123,213,0.15);
    color: #64b5f6;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.blog-hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

/* Blog Section */
.blog-section {
    padding: 48px 0 80px;
    background: #f8f9fb;
}

/* Category Filters */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.blog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #e2e5ea;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-filter-btn:hover {
    color: var(--sw-primary);
    border-color: var(--sw-primary);
    background: rgba(58,123,213,0.04);
}

.blog-filter-btn.active {
    background: var(--sw-primary);
    color: #fff;
    border-color: var(--sw-primary);
}

.blog-filter-btn.active .blog-filter-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.blog-filter-count {
    background: #eef1f5;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
}

.blog-results-info {
    font-size: 14px;
    color: #888;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecf0;
}

.blog-results-cat {
    color: var(--sw-primary);
    font-weight: 500;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

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

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e9ecf0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Featured card spans 2 columns */
.blog-card-featured {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
}

.blog-card-featured .blog-card-image {
    width: 55%;
    height: auto;
    min-height: 320px;
}

.blog-card-featured .blog-card-body {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-featured .blog-card-title { font-size: 22px; }
.blog-card-featured .blog-card-excerpt { font-size: 15px; -webkit-line-clamp: 4; }

.blog-card-image {
    display: block;
    height: 200px;
    overflow: hidden;
    background: #eef1f5;
    position: relative;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.blog-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sw-primary);
    text-decoration: none;
    margin-bottom: 8px;
}

.blog-card-cat:hover { text-decoration: underline; }

.blog-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover { color: var(--sw-primary); }

.blog-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #999;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.blog-card-author,
.blog-card-date,
.blog-card-read {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
}

.blog-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sw-primary);
    background: #fff;
    border: 1px solid #e2e5ea;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-page-btn:hover { background: var(--sw-primary); color: #fff; border-color: var(--sw-primary); }

.blog-page-numbers {
    display: flex;
    gap: 4px;
}

.blog-page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-page-num:hover { background: #eef1f5; color: var(--sw-primary); }
.blog-page-num.active { background: var(--sw-primary); color: #fff; font-weight: 700; }
.blog-page-dots { display: flex; align-items: center; padding: 0 4px; color: #aaa; }

/* Blog Empty State */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}
.blog-empty svg { margin-bottom: 16px; }
.blog-empty h3 { color: #333; font-size: 20px; margin-bottom: 8px; }
.blog-empty p { margin-bottom: 24px; }

/* Blog CTA */
.blog-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 100%);
}

.blog-cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.blog-cta-inner h2 {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.blog-cta-inner p {
    color: rgba(255,255,255,0.65);
    font-size: 16px;
    margin-bottom: 28px;
}

.related-heading {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 28px;
}

/* ===================================================================
   ARTICLE PAGE STYLES
   =================================================================== */

.article-hero {
    padding: 130px 0 48px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0d1b33 100%);
}

.article-hero-content { max-width: 780px; }

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 13px;
}

.article-breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.article-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.article-breadcrumb svg { color: rgba(255,255,255,0.3); }

.article-category {
    display: inline-block;
    background: rgba(58,123,213,0.15);
    color: #64b5f6;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.article-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 24px;
}

/* Article Meta */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}

.article-author-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.article-date-read {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.article-share {
    display: flex;
    gap: 8px;
}

.article-share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.article-share-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Featured Image */
.article-featured-image {
    margin-top: -24px;
    padding-bottom: 40px;
    background: #f8f9fb;
}

.article-featured-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

/* Article Body */
.article-body {
    background: #f8f9fb;
    padding-bottom: 60px;
}

.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

/* Article Content */
.article-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e9ecf0;
    font-size: 16.5px;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 36px 0 14px;
    padding-top: 16px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 28px 0 10px;
}

.article-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 22px 0 8px;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content a {
    color: var(--sw-primary);
    text-decoration: underline;
    text-decoration-color: rgba(58,123,213,0.3);
    text-underline-offset: 3px;
}

.article-content a:hover { text-decoration-color: var(--sw-primary); }

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.article-content ul, .article-content ol {
    margin: 14px 0 18px 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--sw-primary);
    background: rgba(58,123,213,0.04);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.article-content th, .article-content td {
    padding: 10px 14px;
    border: 1px solid #e9ecf0;
    text-align: left;
}

.article-content th {
    background: #f4f6f8;
    font-weight: 600;
    color: #1a1a2e;
}

.article-content pre, .article-content code {
    font-family: 'Fira Code', monospace;
    background: #f4f6f8;
    border-radius: 6px;
}

.article-content code {
    padding: 2px 6px;
    font-size: 0.9em;
}

.article-content pre {
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.article-toc {
    background: #fff;
    border: 1px solid #e9ecf0;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}

.article-toc h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-link {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    line-height: 1.4;
    margin-bottom: 2px;
}

.toc-link:hover { color: var(--sw-primary); background: rgba(58,123,213,0.04); }
.toc-link.active { color: var(--sw-primary); border-left-color: var(--sw-primary); font-weight: 600; background: rgba(58,123,213,0.04); }
.toc-link.toc-sub { padding-left: 24px; font-size: 12px; }

.article-sidebar-cta {
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 100%);
    border-radius: 14px;
    padding: 26px;
    color: #fff;
}

.article-sidebar-cta h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.article-sidebar-cta p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin-bottom: 18px;
}

/* Article Tags */
.article-tags-section {
    background: #f8f9fb;
    padding-bottom: 40px;
}

.article-tags-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid #e9ecf0;
}

.article-tag-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #888;
}

.article-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sw-primary);
    background: rgba(58,123,213,0.08);
    text-decoration: none;
    transition: all 0.2s;
}

.article-tag:hover { background: var(--sw-primary); color: #fff; }

/* ===================================================================
   BLOG & ARTICLE RESPONSIVE
   =================================================================== */

@media (max-width: 1024px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 { font-size: 30px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card-featured {
        grid-column: span 1;
        flex-direction: column;
    }
    .blog-card-featured .blog-card-image {
        width: 100%;
        height: 200px;
        min-height: auto;
    }
    .blog-card-featured .blog-card-body { padding: 22px; }
    .blog-card-featured .blog-card-title { font-size: 17px; }
    .blog-grid-3 { grid-template-columns: 1fr; }
    .article-hero h1 { font-size: 26px; }
    .article-meta { flex-direction: column; align-items: flex-start; }
    .article-content { padding: 24px; font-size: 15px; }
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    .blog-pagination { flex-wrap: wrap; }
    .blog-page-numbers { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .blog-filters { gap: 6px; }
    .blog-filter-btn { padding: 6px 12px; font-size: 13px; }
    .blog-cta-inner h2 { font-size: 24px; }
    .article-content { padding: 18px; }
    .article-content h2 { font-size: 20px; }
}
