/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=optimized');

/* ===== CSS Variables - Dark Theme (Default) ===== */
:root {
    --bg-primary: #080b14;
    --bg-secondary: #0e1425;
    --bg-card: rgba(18, 24, 42, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    --color-primary: #4f8ef7;
    --color-secondary: #7c3aed;
    --color-accent: #06b6d4;
    --color-success: #10b981;
    --color-warn: #f59e0b;

    --gradient-primary: linear-gradient(135deg, #4f8ef7 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #4f8ef7 100%);
    --gradient-hero: linear-gradient(135deg, #080b14 0%, #0e1425 50%, #130f2a 100%);

    --text-primary: #f0f4ff;
    --text-secondary: #8892aa;
    --text-muted: #4a5568;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(79, 142, 247, 0.4);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(79, 142, 247, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;

    --navbar-bg: rgba(8, 11, 20, 0.85);
    --navbar-border: rgba(255, 255, 255, 0.08);
}

/* ===== Light Theme ===== */
body.light-theme {
    --bg-primary: #f7f8fc;
    --bg-secondary: #eef0f8;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(0, 0, 0, 0.03);
    --bg-glass-hover: rgba(0, 0, 0, 0.06);

    --text-primary: #0d1117;
    --text-secondary: #4a5568;
    --text-muted: #9ca3af;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(79, 142, 247, 0.5);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(79, 142, 247, 0.15);

    --gradient-hero: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 50%, #f4f0ff 100%);

    --navbar-bg: rgba(247, 248, 252, 0.9);
    --navbar-border: rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--navbar-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    background: var(--navbar-bg);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1.25rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
    min-width: 0;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--gradient-primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: white;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-link.active {
    color: var(--color-primary);
    background: rgba(79, 142, 247, 0.1);
}

/* Hide icons on desktop nav — they're for mobile only */
.nav-link i {
    display: none;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.88rem;
}

.icon-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* Theme toggle special styling */
#themeToggle {
    position: relative;
    overflow: hidden;
}

#themeToggle .fa-sun {
    color: var(--color-warn);
}

#themeToggle .fa-moon {
    color: #a5b4fc;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.nav-item-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-item-dropdown:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: dropIn 0.2s ease;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all var(--transition);
}

.dropdown-content a:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.dropdown-content a i {
    width: 16px;
    color: var(--color-primary);
}

/* ── Tools Category Cluster Dropdown ──────────────────────────── */
.tools-nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
    opacity: 0.6;
}

/* Tools count badge */
.tools-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 100px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.tools-nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── Category Cluster Mega Menu ───────────────────────────────── */
.tc-mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.97);
    transform-origin: top center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-width: 900px;
    max-width: 1120px;
    width: max-content;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.3s;
    z-index: 1001;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.tools-nav-dropdown:hover .tc-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Mega header */
.tc-mega-header {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}

.tc-mega-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap 0.25s ease, color 0.2s;
}

.tc-mega-all:hover {
    gap: 0.75rem;
    color: var(--color-primary);
}

.tc-mega-all i:last-child {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.tc-mega-all:hover i:last-child {
    transform: translateX(3px);
}

/* ── Cluster Grid ──────────────────────────────── */
.tc-clusters {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* Custom scrollbar for tool clusters dropdown */
.tc-clusters::-webkit-scrollbar {
    width: 6px;
}

.tc-clusters::-webkit-scrollbar-track {
    background: transparent;
}

.tc-clusters::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.tc-clusters::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

@media (max-width: 1100px) {
    .tc-clusters {
        grid-template-columns: repeat(4, 1fr);
    }
    .tc-mega-menu {
        min-width: 680px;
        max-width: 92vw;
    }
}

@media (max-width: 860px) {
    .tc-clusters {
        grid-template-columns: repeat(3, 1fr);
    }
    .tc-mega-menu {
        min-width: 480px;
        max-width: 92vw;
    }
}

@media (max-width: 640px) {
    .tc-clusters {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Individual Cluster ────────────────────────── */
.tc-cluster {
    padding: 0.9rem 0.8rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    min-width: 0;
}

.tc-cluster:nth-child(5n) {
    border-right: none;
}

@media (max-width: 1100px) {
    .tc-cluster:nth-child(5n) { border-right: 1px solid var(--border-color); }
    .tc-cluster:nth-child(4n) { border-right: none; }
}

@media (max-width: 860px) {
    .tc-cluster:nth-child(4n) { border-right: 1px solid var(--border-color); }
    .tc-cluster:nth-child(3n) { border-right: none; }
}

@media (max-width: 640px) {
    .tc-cluster:nth-child(3n) { border-right: 1px solid var(--border-color); }
    .tc-cluster:nth-child(2n) { border-right: none; }
}

.tc-cluster:last-child {
    border-right: none;
}

/* Cluster header */
.tc-cluster-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.tc-cluster-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--cluster-color, var(--color-primary));
    border-radius: 2px;
}

.tc-cluster-icon {
    width: 24px;
    height: 24px;
    background: var(--cluster-color, var(--color-primary));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    color: white;
    flex-shrink: 0;
}

.tc-cluster-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.tc-cluster-count {
    margin-left: auto;
    font-size: 0.62rem;
    color: var(--text-muted);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 0.05rem 0.35rem;
    border-radius: 100px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Tools in cluster ──────────────────────────── */
.tc-cluster-tools {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tc-tool-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.15s ease;
    text-decoration: none !important;
    font-size: 0.78rem;
}

.tc-tool-item:hover {
    background: rgba(79, 142, 247, 0.06);
    color: var(--color-primary);
    transform: translateX(2px);
}

.tc-tool-icon {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: white;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.tc-tool-item:hover .tc-tool-icon {
    opacity: 1;
}

.tc-tool-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* ── Mega Footer ────────────────────────────────── */
.tc-mega-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}

.tc-mega-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.55rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
}

/* On mobile: hide dropdown */
@media (max-width: 768px) {
    .tc-mega-menu {
        display: none !important;
    }

    .tools-nav-dropdown .dropdown-trigger {
        justify-content: flex-start;
    }

    .dropdown-arrow {
        display: none !important;
    }

    .tools-count-badge {
        display: none !important;
    }

    .tc-mega-header,
    .tc-mega-footer {
        display: none;
    }
}

/* Mobile menu backdrop */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.nav-backdrop.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 769px) {
    .nav-backdrop {
        display: none;
    }
}

/* Hide mobile back button everywhere (no longer needed) */
.tools-mobile-back {
    display: none !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.mobile-toggle:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
    transform-origin: center;
}

.mobile-toggle.active {
    background: rgba(79, 142, 247, 0.1);
    border-color: rgba(79, 142, 247, 0.3);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(79, 142, 247, 0.35);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79, 142, 247, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ===== HERO SECTION ===== */
/* ===== UNIFIED INNER PAGE HERO ===== */
.learn-hero {
    position: relative;
    padding: calc(64px + 3.5rem) 0 3rem;
    overflow: hidden;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.learn-hero-orb-1 {
    position: absolute; width: 500px; height: 500px; border-radius: 50%;
    filter: blur(100px); top: -20%; left: -8%;
    background: radial-gradient(circle, rgba(79,142,247,.12), transparent 70%);
    pointer-events: none;
}
.learn-hero-orb-2 {
    position: absolute; width: 400px; height: 400px; border-radius: 50%;
    filter: blur(100px); bottom: -20%; right: -5%;
    background: radial-gradient(circle, rgba(124,58,237,.1), transparent 70%);
    pointer-events: none;
}
.learn-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(79,142,247,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,142,247,.035) 1px, transparent 1px);
    background-size: 55px 55px;
    pointer-events: none;
}
.learn-hero .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.learn-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 700px;
}
.learn-hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: .35rem;
    animation: heroFadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.learn-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes heroFadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .learn-hero { padding: calc(64px + 2.5rem) 0 2rem; }
}
@media (max-width: 480px) {
    .learn-hero { padding: calc(64px + 1.5rem) 0 1.5rem; }
}
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}

/* Hero background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image:
        url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?w=1800&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.06;
}

body.light-theme .hero-bg-image {
    opacity: 0.04;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(79, 142, 247, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 80%, rgba(6, 182, 212, 0.07) 0%, transparent 60%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 142, 247, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 142, 247, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 142, 247, 0.2), transparent 70%);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 70%);
    top: 20%;
    right: 5%;
    animation-delay: 4s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
    bottom: 10%;
    left: 40%;
    animation-delay: 8s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -25px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.97);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 142, 247, 0.1);
    border: 1px solid rgba(79, 142, 247, 0.25);
    color: var(--color-primary);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-badge i {
    color: var(--color-warn);
    font-size: 0.8rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.75;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero code preview floating card */
.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    z-index: 1;
    display: none;
}

@media (min-width: 1100px) {
    .hero-visual {
        display: block;
    }

    .hero-content {
        max-width: 580px;
    }
}

.hero-code-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    backdrop-filter: blur(20px);
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

.code-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.code-dots {
    display: flex;
    gap: 5px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) {
    background: #ff5f56;
}

.code-dots span:nth-child(2) {
    background: #ffbd2e;
}

.code-dots span:nth-child(3) {
    background: #27c93f;
}

.code-file-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Space Grotesk', monospace;
}

.code-body {
    padding: 1.25rem;
    font-family: 'Space Grotesk', 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.9;
}

.code-line {
    display: flex;
    gap: 1rem;
}

.code-num {
    color: var(--text-muted);
    min-width: 1.5rem;
    text-align: right;
    user-select: none;
    font-size: 0.75rem;
}

.kw {
    color: #c792ea;
}

.fn {
    color: #82aaff;
}

.str {
    color: #c3e88d;
}

.cm {
    color: #546e7a;
    font-style: italic;
}

.var {
    color: #f78c6c;
}

/* ===== INDEX PAGE ENHANCEMENTS ===== */

/* ── Hero entrance animations ─── */
.hero-animate {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp .7s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero badge pulse dot ─── */
.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: badgePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
    50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* ── Animated gradient text ─── */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        #4f8ef7 0%,
        #7c3aed 25%,
        #06b6d4 50%,
        #4f8ef7 75%,
        #7c3aed 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    to { background-position: 200% center; }
}

/* ── Primary button glow ─── */
.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--gradient-primary);
    z-index: -1;
    filter: blur(14px);
    opacity: .45;
    transition: opacity .3s;
}

.btn-glow:hover::after {
    opacity: .7;
}

/* ── Code card line highlight ─── */
.code-line {
    transition: background .4s ease, padding-left .3s ease;
    border-radius: 4px;
    padding: 1px 4px;
    margin: 0 -4px;
}

.code-line-highlight {
    background: rgba(79,142,247,.08);
    padding-left: 8px;
}

/* ── Code card blinking cursor ─── */
.code-cursor {
    width: 2px;
    height: 14px;
    background: var(--color-primary);
    position: absolute;
    bottom: 52px;
    left: 220px;
    animation: cursorBlink 1s step-end infinite;
    border-radius: 1px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-code-card {
    position: relative;
}

/* ── Scroll reveal animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s cubic-bezier(.22,1,.36,1),
                transform .6s cubic-bezier(.22,1,.36,1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Enhanced card hover effects ─── */
.featured-card,
.video-card,
.path-card,
.tool-card,
.blog-card {
    transition: transform .35s cubic-bezier(.22,1,.36,1),
                border-color .35s ease,
                box-shadow .35s ease;
}

.featured-card:hover,
.video-card:hover,
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(79,142,247,.12), 0 0 0 1px rgba(79,142,247,.1);
}

.path-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(79,142,247,.12), 0 0 0 1px rgba(79,142,247,.1);
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(79,142,247,.15), 0 0 0 1px rgba(79,142,247,.15);
}

/* ── Tool icon hover animation ─── */
.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(79,142,247,.3);
    transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}

.tool-icon {
    background: var(--gradient-primary);
    transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}

/* ── Path icon color variants ─── */
.path-icon-laravel {
    background: linear-gradient(135deg, #ff2d20, #e3342f);
}

.path-icon-react {
    background: linear-gradient(135deg, #61dafb, #21a0c8);
}

.path-icon-fullstack {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.path-card:hover .path-icon {
    transform: scale(1.08) rotate(-3deg);
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}

.path-icon {
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}

/* ── Play button pulse on hover ─── */
.featured-card:hover .play-button,
.video-card:hover .play-overlay {
    animation: playPulse 1.2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(79,142,247,.5); }
    50% { box-shadow: 0 4px 30px rgba(79,142,247,.7), 0 0 0 8px rgba(79,142,247,.1); }
}

/* ── Section title accent line ─── */
.section-title {
    position: relative;
}

.section-header:not(.centered) .section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: .5rem;
}

.section-header.centered .section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: .5rem auto 0;
}

/* ── Blog card image overlay gradient ─── */
.blog-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,.3), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
}

.blog-card:hover .blog-image::after {
    opacity: 1;
}

/* ── Stats separator dots ─── */
.hero-stats .stat {
    position: relative;
}

.hero-stats .stat + .stat::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-color);
}

/* ── Floating particles (subtle background) ─── */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(79,142,247,.3);
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(90vh) scale(1); }
    90% { opacity: .5; }
    100% { transform: translateY(-10vh) scale(.5); opacity: 0; }
}

/* ── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    .hero-animate,
    .reveal,
    .hero-orb,
    .hero-particle,
    .gradient-text-animated,
    .hero-code-card,
    .code-cursor,
    .hero-badge-dot {
        animation: none !important;
    }
    .hero-animate { opacity: 1; transform: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    gap: 1rem;
}

.section-header.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 500px;
}

.link-with-arrow {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--transition);
    white-space: nowrap;
}

.link-with-arrow:hover {
    gap: 0.7rem;
}

/* ===== FEATURED GRID ===== */
.featured-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-slow);
    backdrop-filter: blur(12px);
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.featured-main {
    grid-row: span 2;
}

.featured-image {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 240px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-card:hover .featured-image img {
    transform: scale(1.04);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(79, 142, 247, 0.5);
    transition: transform var(--transition);
}

.featured-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.featured-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.featured-content {
    padding: 1.25rem;
}

.content-category {
    display: inline-block;
    background: rgba(79, 142, 247, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.featured-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.featured-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.content-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.content-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.tool-icon-featured,
.blog-icon-featured {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.tool-icon-featured {
    background: linear-gradient(135deg, rgba(79, 142, 247, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--color-primary);
}

.blog-icon-featured {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
    color: var(--color-secondary);
}

.tool-stats-mini {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== VIDEO GRID ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    backdrop-filter: blur(12px);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.06);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    opacity: 0;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(79, 142, 247, 0.5);
}

.video-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
}

.video-info {
    padding: 1rem 1.1rem;
}

.video-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.video-description {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.65rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.video-category {
    background: rgba(79, 142, 247, 0.1);
    color: var(--color-primary);
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.video-views {
    color: var(--text-muted);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== PATHS GRID ===== */
.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.path-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition-slow);
    backdrop-filter: blur(12px);
}

.path-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.path-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.path-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.path-card>p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.path-topics {
    margin-bottom: 1.25rem;
}

.path-topics li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0.3rem 0;
}

.path-topics i {
    color: var(--color-success);
    font-size: 0.75rem;
}

/* ===== TOOLS GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-slow);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: 0;
}

.tool-card:hover::before {
    opacity: 0.05;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.tool-card>* {
    position: relative;
    z-index: 1;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.9rem;
}

.tool-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.tool-users {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Tools Category Section ────────────────────────────── */
.tools-category-section {
    margin-bottom: 0.5rem;
}

.tools-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.tools-category-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.tools-category-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.tools-category-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.tools-category-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0.1rem 0 0 0;
}

.tools-category-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-weight: 700;
    white-space: nowrap;
}

.tools-section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
    opacity: 0.5;
}

/* ── Tools Filter Bar (tools page) ──────────────────────── */
.tools-filter-bar {
    position: sticky;
    top: 68px;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.tf-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tf-pills {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.tf-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .9rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    font-family: inherit;
}

.tf-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.tf-pill.active {
    background: rgba(79,142,247,.12);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.tf-pill i {
    font-size: .78rem;
    opacity: .85;
}

.tf-pill .cnt {
    font-size: .7rem;
    font-weight: 700;
    background: rgba(255,255,255,.07);
    padding: .08rem .38rem;
    border-radius: 100px;
    min-width: 18px;
    text-align: center;
}

.tf-pill.active .cnt {
    background: rgba(79,142,247,.18);
}

.tf-search-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: .45rem 1rem;
    transition: border-color .2s;
    flex-shrink: 0;
}

.tf-search-wrap:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79,142,247,.1);
}

.tf-search-wrap i {
    color: var(--text-muted);
    font-size: .85rem;
}

.tf-search-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: .875rem;
    width: 200px;
}

.tf-search-wrap input::placeholder {
    color: var(--text-muted);
}

/* Sort dropdown */
.tf-sort-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tf-sort-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: .82rem;
    font-weight: 500;
    font-family: inherit;
    padding: .45rem 1.8rem .45rem .75rem;
    cursor: pointer;
    transition: all .18s;
    outline: none;
    min-width: 100px;
}

.tf-sort-select:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.tf-sort-select:focus {
    border-color: var(--color-primary);
    color: var(--text-primary);
}

.tf-sort-arrow {
    position: absolute;
    right: .6rem;
    pointer-events: none;
    font-size: .65rem;
    color: var(--text-muted);
    transition: transform .2s;
}

.tf-sort-select:focus + .tf-sort-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* Clear button */
.tf-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .85rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.tf-clear-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239,68,68,.06);
}

.tf-clear-btn:active {
    transform: scale(.96);
}

.tf-clear-btn i {
    font-size: .72rem;
}

@media (max-width: 768px) {
    .tools-filter-bar {
        position: relative;
        top: 0;
    }

    .tf-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .tf-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tf-pills::-webkit-scrollbar {
        display: none;
    }

    .tf-pill {
        flex-shrink: 0;
    }

    .tf-search-wrap {
        width: 100%;
    }

    .tf-search-wrap input {
        width: 100%;
        min-width: 0;
    }

    .tf-sort-select {
        min-width: 100px;
    }
}


/* Tools large grid (tools page) */
.tools-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Reset anchor defaults for card links */
a.tool-card-large,
a.tool-card-large:visited,
a.tool-card-large:link {
    text-decoration: none;
    color: var(--text-primary);
}

.tool-card-large {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex !important;
    flex-direction: column;
    transition: all var(--transition-slow);
    backdrop-filter: blur(12px);
    text-decoration: none !important;
    color: var(--text-primary) !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tool-card-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.tool-card-large:hover::before {
    opacity: 0.05;
}

.tool-card-large:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    color: var(--text-primary) !important;
}

.tool-card-large>* {
    position: relative;
    z-index: 1;
}

.tool-icon-large {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.tool-card-large h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-card-large p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.tool-badge {
    background: rgba(79, 142, 247, 0.15);
    color: var(--color-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    backdrop-filter: blur(12px);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.blog-image,
.blog-thumbnail {
    position: relative;
    overflow: hidden;
}

.blog-image img,
.blog-thumbnail img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

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

.blog-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.28rem 0.75rem;
    border-radius: 100px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-content {
    padding: 1.25rem;
}

.blog-content h3 a {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.blog-content h3 a:hover {
    color: var(--color-primary);
}

.blog-content>p,
.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-title a {
    color: inherit;
    transition: color var(--transition);
}

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

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.tag {
    background: var(--bg-glass);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.73rem;
    border: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════
   NEWSLETTER — REDESIGNED
   ═══════════════════════════════════════════════ */
.newsletter-section {
    position: relative;
    background: var(--bg-secondary);
    padding: 4.5rem 0;
    overflow: hidden;
}

.newsletter-inner {
    position: relative;
    background: linear-gradient(135deg, rgba(79,142,247,.04), rgba(124,58,237,.04));
    border: 1px solid rgba(79,142,247,.15);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    overflow: hidden;
}

.newsletter-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    top: -50%;
    right: -5%;
    background: radial-gradient(circle, rgba(79,142,247,.12), transparent 70%);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-text {
    flex: 1;
    min-width: 280px;
}

.ns-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(79,142,247,.1);
    border: 1px solid rgba(79,142,247,.2);
    color: var(--color-primary);
    padding: .25rem .75rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .85rem;
}

.newsletter-text h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: .5rem;
    letter-spacing: -.02em;
    line-height: 1.3;
}

.newsletter-text p {
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.6;
    max-width: 480px;
}

.newsletter-text p strong {
    color: var(--color-primary);
}

.newsletter-form {
    flex-shrink: 0;
    min-width: 320px;
    max-width: 420px;
}

.ns-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: .35rem .35rem .35rem 1rem;
    transition: border-color .2s, box-shadow .2s;
}

.ns-input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79,142,247,.1);
}

.ns-input-icon {
    color: var(--text-muted);
    font-size: .85rem;
    flex-shrink: 0;
}

.ns-input-group input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: .88rem;
    font-family: inherit;
    padding: .55rem .65rem;
    outline: none;
    min-width: 0;
}

.ns-input-group input[type="email"]::placeholder {
    color: var(--text-muted);
}

.ns-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all .2s;
    flex-shrink: 0;
}

.ns-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79,142,247,.35);
}

.ns-submit-btn i {
    font-size: .78rem;
}

.ns-disclaimer {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: .55rem;
    text-align: center;
}

/* ═══════════════════════════════════════════════
   FOOTER — REDESIGNED
   ═══════════════════════════════════════════════ */
.footer {
    position: relative;
    background: var(--bg-secondary);
    padding: 0 0 2rem;
    overflow: hidden;
}

.footer-accent-line {
    height: 3px;
    background: var(--gradient-primary);
    width: 100%;
    opacity: .6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding: 3.5rem 0 3rem;
    flex-wrap: wrap;
}

/* ── Brand Column ─── */
.footer-brand {
    flex: 1.5;
    min-width: 280px;
    max-width: 380px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    text-decoration: none;
}

.fl-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.fl-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.02em;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: .85rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

/* ── Social Links ─── */

.fs-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: .65rem;
}

.fs-links {
    display: flex;
    gap: .4rem;
}

.fs-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: .88rem;
    transition: all .25s cubic-bezier(.22,1,.36,1);
    text-decoration: none;
    position: relative;
}

.fs-link:hover {
    transform: translateY(-3px);
    color: white;
    border-color: transparent;
}

.fs-link.yt:hover {
    background: #ff0033;
    box-shadow: 0 4px 14px rgba(255,0,51,.35);
}

.fs-link.gh:hover {
    background: #333;
    box-shadow: 0 4px 14px rgba(51,51,51,.35);
}

.fs-link.li:hover {
    background: #0a66c2;
    box-shadow: 0 4px 14px rgba(10,102,194,.35);
}

.fs-link.tw:hover {
    background: #1da1f2;
    box-shadow: 0 4px 14px rgba(29,161,242,.35);
}

/* ── Links Columns ─── */
.footer-links {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-width: 320px;
}

.footer-column h4 {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer-column h4 i {
    color: var(--color-primary);
    font-size: .78rem;
    width: 22px;
    height: 22px;
    background: rgba(79,142,247,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: .4rem;
}

.footer-column ul li a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--text-secondary);
    font-size: .85rem;
    transition: all .2s;
    text-decoration: none;
    padding: .2rem 0;
}

.footer-column ul li a i {
    font-size: .55rem;
    color: var(--text-muted);
    transition: all .2s;
}

.footer-column ul li a:hover {
    color: var(--color-primary);
    transform: translateX(3px);
}

.footer-column ul li a:hover i {
    color: var(--color-primary);
    transform: translateX(1px);
}

/* ── Bottom Bar ─── */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

.fb-left,
.fb-center,
.fb-right {
    flex: 1;
}

.fb-left p {
    color: var(--text-muted);
    font-size: .83rem;
}

.fb-left strong {
    color: var(--text-primary);
}

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

.fb-center p {
    color: var(--text-muted);
    font-size: .83rem;
}

.fb-center i {
    color: #ef4444;
    animation: fbHeartBeat 1.4s ease-in-out infinite;
    display: inline-block;
}

@keyframes fbHeartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.fb-right {
    text-align: right;
}

.fb-back-top {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--text-muted);
    font-size: .83rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: .4rem .85rem;
    border-radius: var(--radius-sm);
}

.fb-back-top:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(79,142,247,.06);
    transform: translateY(-2px);
}

.fb-back-top i {
    font-size: .75rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: calc(64px + 3.5rem) 0 2.5rem;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(79,142,247,.12), transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(124,58,237,.1), transparent 45%),
        linear-gradient(rgba(79, 142, 247, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 142, 247, 0.04) 1px, transparent 1px);
    background-size: auto auto, auto auto, 50px 50px, 50px 50px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 40%, transparent 100%);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    animation: heroFadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    display: inline-block;
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* ═══════════════════════════════════════════════
   POST / TOOL DETAIL — SHARED HERO
   ═══════════════════════════════════════════════ */

.pd-hero {
    padding: calc(68px + 3.5rem) 0 3rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.pd-hero-orb-1 {
    position: absolute; width: 500px; height: 500px; border-radius: 50%;
    filter: blur(100px); top: -20%; left: -8%;
    background: radial-gradient(circle, rgba(79,142,247,.12), transparent 70%);
    pointer-events: none;
}
.pd-hero-orb-2 {
    position: absolute; width: 400px; height: 400px; border-radius: 50%;
    filter: blur(100px); bottom: -20%; right: -5%;
    background: radial-gradient(circle, rgba(124,58,237,.1), transparent 70%);
    pointer-events: none;
}
.pd-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(79,142,247,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,142,247,.035) 1px, transparent 1px);
    background-size: 55px 55px;
    pointer-events: none;
}
.pd-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 960px) {
    .pd-hero-inner.has-cover {
        grid-template-columns: 1.3fr .7fr;
        gap: 3.5rem;
    }
}

/* Breadcrumb */
.pd-crumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}
.pd-crumb a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.pd-crumb a:hover { color: var(--color-primary); }
.pd-crumb-sep { font-size: .6rem; color: var(--text-muted); opacity: .5; }

/* Badges */
.pd-badges {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.pd-cat-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(79,142,247,.1); border: 1px solid rgba(79,142,247,.22);
    color: var(--color-primary);
    padding: .25rem .75rem; border-radius: 100px;
    font-size: .75rem; font-weight: 700;
}
.pd-diff-chip {
    display: inline-flex; align-items: center;
    padding: .25rem .75rem; border-radius: 100px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.pd-diff-chip.beginner    { background: rgba(16,185,129,.12); color: #10b981; border: 1px solid rgba(16,185,129,.25); }
.pd-diff-chip.intermediate{ background: rgba(245,158,11,.12);  color: #f59e0b; border: 1px solid rgba(245,158,11,.25); }
.pd-diff-chip.advanced    { background: rgba(239,68,68,.12);   color: #ef4444; border: 1px solid rgba(239,68,68,.25); }
.pd-type-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2);
    color: #10b981; padding: .25rem .75rem; border-radius: 100px;
    font-size: .75rem; font-weight: 700;
}

/* Title */
.pd-h1 {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: .9rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pd-excerpt {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 620px;
}

/* Meta row */
.pd-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.pd-author-chip {
    display: flex;
    align-items: center;
    gap: .55rem;
}
.pd-author-av {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: .9rem; font-weight: 700; flex-shrink: 0;
}
.pd-author-chip img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); }
.pd-author-name { font-size: .88rem; font-weight: 700; color: var(--text-primary); display: block; }
.pd-author-label { font-size: .73rem; color: var(--text-muted); display: block; }
.pd-meta-sep { width: 1px; height: 26px; background: var(--border-color); }
.pd-stats-row {
    display: flex;
    gap: 1.1rem;
    font-size: .82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.pd-stats-row span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.pd-stats-row i { color: var(--color-primary); }

/* Action buttons */
.pd-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.pd-action-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .48rem .95rem; border-radius: var(--radius-md);
    font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: all .2s; font-family: inherit; text-decoration: none;
    border: 1px solid var(--border-color);
    background: var(--bg-glass); color: var(--text-secondary);
}
.pd-action-btn:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-glass-hover); }
.pd-action-btn.github:hover { border-color: #fff; color: var(--text-primary); }
.pd-action-btn.share-btn {
    background: var(--gradient-primary); border: none; color: white;
}
.pd-action-btn.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(79,142,247,.4); }

/* Cover image */
.pd-hero-cover {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pd-hero-cover::before {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(79,142,247,.22), transparent 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
    animation: pdGlow 6s ease-in-out infinite alternate;
}
@keyframes pdGlow { from { opacity: .6; transform: scale(1); } to { opacity: 1; transform: scale(1.1); } }
.pd-cover-frame {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 5px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.pd-cover-frame:hover { transform: translateY(-5px) rotate(.4deg); box-shadow: var(--shadow-lg), 0 0 50px rgba(79,142,247,.32); }
.pd-cover-frame img {
    width: 100%; height: auto;
    border-radius: calc(var(--radius-lg) - 5px);
    display: block; object-fit: cover;
}

/* ── Detail hero responsive ── */
@media (max-width: 768px) {
    .pd-hero { padding: calc(68px + 2.5rem) 0 2rem; }
    .pd-h1 { font-size: clamp(1.4rem, 6vw, 1.85rem); }
    .pd-excerpt { font-size: .95rem; }
    .pd-meta { flex-direction: column; align-items: flex-start; gap: .65rem; }
    .pd-meta-sep { display: none; }
    .pd-actions { flex-direction: column; align-items: stretch; }
    .pd-action-btn { justify-content: center; }
}
@media (max-width: 480px) {
    .pd-hero { padding: calc(68px + 1.5rem) 0 1.5rem; }
    .pd-badges { gap: .35rem; }
    .pd-cat-chip, .pd-diff-chip, .pd-type-chip { font-size: .68rem; padding: .2rem .55rem; }
    .pd-stats-row { gap: .6rem; font-size: .75rem; }
}
@media (max-width: 360px) {
    .pd-h1 { font-size: 1.25rem; }
    .pd-crumb { font-size: .72rem; }
    .pd-cat-chip, .pd-diff-chip, .pd-type-chip { font-size: .65rem; padding: .18rem .45rem; }
}

/* ===== FILTER SECTION ===== */
.filter-section {
    padding: 1.25rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 64px;
    z-index: 100;
    backdrop-filter: blur(16px);
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.45rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: border-color var(--transition);
}

.filter-search:focus-within {
    border-color: var(--color-primary);
}

.filter-search i {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.filter-search input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    min-width: 200px;
    outline: none;
}

.filter-search input::placeholder {
    color: var(--text-muted);
}

/* Load more */
.load-more-container {
    text-align: center;
    padding-top: 2.5rem;
}

/* ===== ABOUT PAGE ===== */
.about-section {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    transition: all var(--transition-slow);
    backdrop-filter: blur(12px);
}

.team-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.team-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.team-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 0.9rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.team-social a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.team-social a:hover {
    color: var(--color-primary);
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
}

.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 130px;
}

/* ===== DETAIL PAGES ===== */
.detail-header {
    padding: calc(64px + 3rem) 0 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.detail-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.detail-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.detail-content-section {
    padding: 3rem 0;
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.75rem;
}

.main-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.video-container iframe,
.video-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-interface {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.content-section {
    margin-bottom: 1.75rem;
}

.content-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.content-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.content-section ul {
    margin-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.content-section li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.resources-list {
    list-style: none;
    margin-left: 0;
}

.resources-list li {
    margin-bottom: 0.6rem;
}

.resources-list a {
    color: var(--color-primary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
}

.resources-list a:hover {
    color: var(--text-primary);
}

/* ===== DROPDOWN (Auth) ===== */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 64px);
    padding-top: 64px;
}

.auth-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===== SEARCH RESULT ITEMS (Styled) ===== */
.search-results-count {
    padding: 0.65rem 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-glass-hover);
    padding-left: 1.4rem;
}

.search-result-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.search-result-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-excerpt {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.result-badge {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.search-shortcut {
    padding: 0.15rem 0.45rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* ===== SEARCH MODAL ===== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-modal.active {
    display: flex;
}

.search-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.search-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-input-wrapper i {
    color: var(--text-muted);
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.search-close:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.search-results {
    overflow-y: auto;
}

.search-empty {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-muted);
}

.search-empty i {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.25rem;
    color: var(--text-primary);
    transition: background var(--transition);
}

.search-result-item:hover {
    background: var(--bg-glass-hover);
}

.result-type {
    background: rgba(79, 142, 247, 0.1);
    color: var(--color-primary);
    padding: 0.18rem 0.55rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.result-title {
    font-size: 0.9rem;
}

/* ===== UTILITIES ===== */
.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

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

/* ── Toast / Modal Utility Replacements (was Bootstrap) ── */
.toast-container {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-container .toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    padding: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.text-bg-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}

.toast.text-bg-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
    font-size: 0.85rem;
}

.toast-header .btn-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.toast-header .btn-close::before,
.toast-header .btn-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.toast-header .btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.toast-header .btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.toast-header .btn-close:hover {
    opacity: 1;
}

.toast-body {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
}

.toast.show {
    display: block;
}

.toast.fade {
    transition: opacity 0.15s linear;
}

/* Utility replacements */
.position-fixed { position: fixed; }
.top-0 { top: 0; }
.end-0 { right: 0; }
.p-3 { padding: 1rem; }
.container-fluid { width: 100%; padding-right: 1rem; padding-left: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.ms-2 { margin-left: 0.5rem; }
.me-2 { margin-right: 0.5rem; }
.me-auto { margin-right: auto; }
.border-0 { border: none !important; }
.align-items-start { align-items: flex-start; }
.d-flex { display: flex; }

/* ===== SEO COLLAPSE (Tool Pages - Top) ===== */
.seo-collapse {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.seo-collapse summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: .85rem 1.5rem;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary);
    list-style: none;
    transition: color .2s, background .2s;
    user-select: none;
}

.seo-collapse summary:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,.02);
}

.seo-collapse summary::-webkit-details-marker {
    display: none;
}

.seo-collapse summary::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    font-size: .8rem;
    transition: transform .35s cubic-bezier(.22,1,.36,1);
    opacity: .5;
}

.seo-collapse[open] summary::after {
    transform: rotate(180deg);
}

/* ── Animated body wrapper ── */
.seo-collapse .seo-body-wrap {
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.22,1,.36,1), opacity .3s ease;
    max-height: 0;
    opacity: 0;
}
.seo-collapse.open .seo-body-wrap {
    max-height: 3000px;
    opacity: 1;
}

.seo-collapse .seo-body {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
}

.seo-collapse .seo-body h2 {
    margin-top: 1.5rem;
    margin-bottom: .6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.seo-collapse .seo-body h2:first-child {
    margin-top: 0;
}

.seo-collapse .seo-body h3 {
    margin-top: 1.2rem;
    margin-bottom: .4rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.seo-collapse .seo-body p {
    margin-bottom: .65rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: .88rem;
}

.seo-collapse .seo-body p:last-child {
    margin-bottom: 0;
}

/* ── List fixes: prevent numbered/bullet overlap in seo-body ── */
.seo-collapse .seo-body ol,
.seo-collapse .seo-body ul {
    padding-left: 1.75rem;
    margin-bottom: .85rem;
}
.seo-collapse .seo-body ol {
    list-style: decimal;
    list-style-position: outside;
}
.seo-collapse .seo-body ul {
    list-style: disc;
    list-style-position: outside;
}
.seo-collapse .seo-body li {
    margin-bottom: .45rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: .88rem;
}
.seo-collapse .seo-body li strong {
    color: var(--text-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

::selection {
    background: var(--color-primary);
    color: white;
}

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

    .featured-main {
        grid-row: span 1;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .detail-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-content {
        gap: 0.5rem;
        height: 60px;
        padding: 0;
    }

    .logo {
        gap: 8px;
        font-size: 1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100dvh - 60px);
        background: var(--bg-secondary);
        flex: none !important;
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 0.75rem;
        gap: 0.15rem;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999;
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.3s ease,
                    visibility 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin: 0 !important;
        width: 100%;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu li:nth-child(1) { transition-delay: 0.06s; }
    .nav-menu li:nth-child(2) { transition-delay: 0.10s; }
    .nav-menu li:nth-child(3) { transition-delay: 0.14s; }
    .nav-menu li:nth-child(4) { transition-delay: 0.18s; }
    .nav-menu li:nth-child(5) { transition-delay: 0.22s; }

    body.menu-open {
        overflow: hidden;
    }

    .nav-link {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        border-radius: var(--radius-md);
        font-weight: 600;
        border: 1px solid transparent;
        transition: all 0.2s ease;
    }

    .nav-link:hover {
        background: var(--bg-glass-hover);
    }

    .nav-link i {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        color: var(--color-primary);
        background: rgba(79, 142, 247, 0.08);
        border-radius: 8px;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    .nav-link:hover i,
    .nav-link.active i {
        background: rgba(79, 142, 247, 0.15);
    }

    .nav-link.active {
        background: rgba(79, 142, 247, 0.08);
        border-color: rgba(79, 142, 247, 0.15);
        color: var(--color-primary);
    }

    .nav-actions {
        gap: 0.35rem;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

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

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

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

    .newsletter-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        min-width: 0;
    }

    .ns-input-group {
        flex-direction: column;
        padding: .75rem;
        gap: .5rem;
    }

    .ns-input-group input[type="email"] {
        width: 100%;
        text-align: center;
    }

    .ns-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-desc {
        max-width: 100%;
    }

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

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

    .page-header h1 {
        font-size: 1.8rem;
    }

    .filter-section {
        position: relative;
        top: 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Small screens (480px and below) ─── */
@media (max-width: 480px) {
    .nav-content {
        height: 56px;
        gap: 0.3rem;
    }

    .logo-text {
        display: none;
    }

    .logo {
        gap: 6px;
    }

    .nav-menu {
        top: 56px;
        height: calc(100dvh - 56px);
        width: 100%;
        max-width: 100%;
    }

    .nav-actions {
        gap: 0.25rem;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .hero-stats .stat {
        min-width: 40%;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .footer-column h4 {
        font-size: 0.75rem;
    }

    .footer-column a {
        font-size: 0.8rem;
    }

    .filter-tabs {
        gap: 0.3rem;
    }

    .filter-tab {
        font-size: 0.8rem;
        padding: 0.38rem 0.75rem;
    }

    .search-modal-content {
        max-width: 95%;
        margin: 0 0.5rem;
    }

    .search-result-item {
        padding: 0.7rem 1rem;
        gap: 0.6rem;
    }

    .search-result-img,
    .search-result-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .search-result-title {
        font-size: 0.82rem;
    }
}

/* ─── Extra small screens (below 400px) ─── */
@media (max-width: 399px) {
    .nav-content {
        height: 52px;
        gap: 0.2rem;
    }

    .nav-menu {
        top: 52px;
        height: calc(100dvh - 52px);
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .logo {
        gap: 5px;
    }

    .icon-btn {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    .mobile-toggle {
        width: 32px;
        height: 32px;
        padding: 7px;
    }

    .mobile-toggle span {
        width: 16px;
    }

    .container {
        padding: 0 0.6rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .dropdown-trigger {
        font-size: 0.85rem;
        padding: 0.7rem 0.9rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-search input {
        width: 100%;
        font-size: 0.8rem;
    }

    .filter-search {
        min-width: 0;
    }

    /* Search modal on smallest screens */
    .search-modal {
        padding-top: 2vh;
    }

    .search-modal-content {
        max-width: 98%;
        max-height: 85vh;
    }

    .search-header {
        padding: 0.7rem 0.75rem;
    }

    .search-input-wrapper input {
        font-size: 0.85rem;
    }

    .search-result-item {
        padding: 0.55rem 0.75rem;
        gap: 0.5rem;
    }

    .search-result-img,
    .search-result-icon {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .search-result-title {
        font-size: 0.75rem;
    }
}






/* ── Learn Page Extras ─────────────────────────────── */

/* Category pills row */
.learn-categories {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(12px);
}

.cat-pill:hover,
.cat-pill.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(79, 142, 247, 0.08);
}

.cat-pill .cat-count {
    background: var(--bg-glass);
    padding: 0.1rem 0.45rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Featured strip */
.featured-strip {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.featured-strip .post-card-featured {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.35s;
    backdrop-filter: blur(12px);
}

.featured-strip .post-card-featured:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.post-card-featured .pf-img {
    position: relative;
    overflow: hidden;
}

.post-card-featured .pf-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}

.post-card-featured:hover .pf-img img {
    transform: scale(1.05);
}

.pf-img .pf-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pf-img .pf-cat {
    position: absolute;
    bottom: 0.7rem;
    left: 0.7rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 600;
}

.post-card-featured .pf-body {
    padding: 1.1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pf-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pf-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.post-card-featured h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.post-card-featured .pf-excerpt {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0.9rem;
}

.pf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.pf-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pf-author img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.pf-author span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pf-stats {
    display: flex;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pf-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Post grid (all posts) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.35s;
    backdrop-filter: blur(12px);
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.post-card .pc-img {
    position: relative;
    overflow: hidden;
}

.post-card .pc-img img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.4s;
}

.post-card:hover .pc-img img {
    transform: scale(1.05);
}

.pc-img .pc-cat {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.22rem 0.65rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.post-card .pc-body {
    padding: 1rem 1.15rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.diff-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 100px;
    text-transform: uppercase;
}

.diff-beginner {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.diff-intermediate {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.diff-advanced {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.post-card h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.45rem;
    color: var(--text-primary);
}

.post-card p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0.9rem;
}

.pc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
}

.pc-author {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pc-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.pc-author span {
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pc-info {
    display: flex;
    gap: 0.5rem;
    font-size: 0.73rem;
    color: var(--text-muted);
}

.pc-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Tags row inside post card */
.pc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.pc-tags .t {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.12rem 0.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
}

/* Side panel */
.learn-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.learn-sidebar {
    position: sticky;
    top: calc(64px + 1.5rem);
}

.sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(12px);
}

.sidebar-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-post-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-item:hover h5 {
    color: var(--color-primary);
}

.popular-post-item img {
    width: 60px;
    height: 42px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.popular-post-item h5 {
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.popular-post-item span {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.sidebar-tag {
    display: inline-block;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    font-size: 0.78rem;
    margin: 0.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Pagination */
.pagination-row {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    padding-top: 2.5rem;
    flex-wrap: wrap;
}

.page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

@media (max-width: 1024px) {
    .featured-strip {
        grid-template-columns: 1fr 1fr;
    }

    .featured-strip .post-card-featured:first-child {
        grid-column: span 2;
    }

    .learn-layout {
        grid-template-columns: 1fr;
    }

    .learn-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 640px) {
    .featured-strip {
        grid-template-columns: 1fr;
    }

    .featured-strip .post-card-featured:first-child {
        grid-column: span 1;
    }

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











/* ===== SERVICES PAGE STYLES ===== */
.services-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}

.services-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.services-hero .hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 10% 50%, rgba(79, 142, 247, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 90% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
}

.services-hero .hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 142, 247, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 142, 247, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.services-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.services-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 142, 247, 0.1);
    border: 1px solid rgba(79, 142, 247, 0.25);
    color: var(--color-primary);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-slow);
    backdrop-filter: blur(12px);
    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 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.3rem 0;
}

.service-features li i {
    color: var(--color-success);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Process section */
.process-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    transition: all var(--transition-slow);
    backdrop-filter: blur(12px);
}

.process-step:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1rem;
}

.process-step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* Tech stack */
.tech-section {
    padding: var(--spacing-2xl) 0;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
    backdrop-filter: blur(12px);
}

.tech-item:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tech-item i {
    font-size: 1.2rem;
}

/* CTA section */
.services-cta {
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(79, 142, 247, 0.08) 0%, transparent 70%);
}

.cta-card>* {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats bar */
.stats-bar {
    background: var(--bg-secondary);
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stats-bar-item .stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stats-bar-item .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-card h2 {
        font-size: 1.7rem;
    }
}














/* ========================================================= */
/* Newsletter Modal - Site Color Matched Integration         */
/* ========================================================= */

/* Dialog container limits */
.newsletter-modal-width {
    max-width: 720px !important;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Master content card wrapper */
.newsletter-modal-content {
    background: linear-gradient(135deg, #09090b 0%, #11142a 60%, #070814 100%) !important;
    border: 1px solid #2563eb !important;
    /* Matched to site blue accent border */
    border-radius: 24px !important;
    color: #f4f4f5 !important;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25) !important;
    /* Glowing Blue/Purple shadow */
    overflow: hidden;
    position: relative;
}

/* Floating exit cross interaction */
.newsletter-btn-close {
    position: absolute !important;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    padding: 12px !important;
    opacity: 0.7;
    transition: all 0.2s ease-in-out;
    z-index: 1055 !important;
    border: none !important;
}

.newsletter-btn-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    opacity: 1;
    transform: rotate(90deg);
}

.newsletter-btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Flexbox Split Engine */
.newsletter-flex-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 340px;
}

/* Left side art section */
.newsletter-art-side {
    flex: 0 0 40%;
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Right side content layout */
.newsletter-form-side {
    flex: 0 0 60%;
    padding: 45px 40px 45px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Text Stylings */
.newsletter-modal-title {
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

/* Heading Accent Gradient - Color Matched to Site Title Theme */
.gradient-accent-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.newsletter-modal-description {
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Form Layout Stack */
.modern-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Input Fields with glowing icons */
.input-glow-wrapper {
    position: relative;
    width: 100%;
}

.input-prefix-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    z-index: 5;
    font-size: 0.95rem;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid #2563eb !important;
    /* Input matches branding blue */
    border-radius: 12px !important;
    color: #fff !important;
    padding: 14px 16px 14px 46px !important;
    font-size: 0.95rem;
    width: 100% !important;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    box-shadow: 0 0 15px rgba(37, 99, 219, 0.4) !important;
    border-color: #3b82f6 !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Call-to-action Premium Gradient Button - Matched perfectly to "Watch Tutorials" button */
.btn-primary-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    /* Clean white text matching your layout buttons */
    font-weight: 600;
    text-transform: none;
    /* Removed harsh uppercase style */
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-radius: 12px !important;
    border: none !important;
    padding: 14px 20px !important;
    width: 100% !important;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
    color: #ffffff !important;
}

/* Custom Vector Visual Icon Graphic */
.newsletter-icon-container {
    position: relative;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}

.newsletter-icon-glyph {
    font-size: 5.5rem;
    color: rgba(59, 130, 246, 0.2);
    transform: rotate(-12deg);
}

.newsletter-icon-code {
    font-size: 2.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Mobile Layout Fixes */
@media (max-width: 768px) {
    .newsletter-modal-width {
        max-width: 450px !important;
    }

    .newsletter-flex-container {
        flex-direction: column;
    }

    .newsletter-art-side {
        display: none;
    }

    .newsletter-form-side {
        flex: 0 0 100%;
        padding: 40px 25px 35px 25px;
    }

    .newsletter-modal-title {
        font-size: 1.75rem;
    }

    .learn-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .cat-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.4rem 0.8rem;
        border-radius: var(--radius-sm);
        background: var(--bg-glass);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
        cursor: pointer;
        transition: var(--transition);
    }

    .cat-pill.active,
    .cat-pill:hover {
        background: var(--bg-glass-hover);
        border-color: var(--border-hover);
        color: var(--color-primary);
    }

    .learn-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    @media (min-width: 992px) {
        .learn-layout {
            flex-direction: row;
        }

        .learn-sidebar {
            flex: 0 0 300px;
        }

        .posts-grid {
            flex: 1;
        }
    }

    .learn-sidebar {
        width: 100%;
    }

    .sidebar-box {
        background: var(--bg-card);
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
    }
}










/* Improved Learn Page - No Image Version */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.35s;
    height: 100%;
    padding: 1.25rem;
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.post-card h3 {
    font-size: 1.12rem;
    line-height: 1.35;
    margin-bottom: 0.55rem;
    font-weight: 700;
}

.pc-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.pc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.7rem 0;
}

.pc-tags .t {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 0.12rem 0.55rem;
    border-radius: 9999px;
}

.pc-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.learn-layout {
    display: grid;
    grid-template-columns: 2.65fr 1fr;
    /* Wider main content */
    gap: 2.5rem;
    align-items: start;
}

.learn-sidebar {
    position: sticky;
    top: calc(64px + 2rem);
}

@media (max-width: 1100px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .learn-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}



/* ── You Might Also Need Section (Tool Pages) ──────────────── */
.might-need-section {
    padding: 2.5rem 0 4rem;
    background: var(--bg-primary);
}
.might-need-header {
    text-align: center;
    margin-bottom: 2rem;
}
.might-need-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .35rem;
}
.might-need-header p {
    color: var(--text-secondary);
    font-size: .9rem;
}
.might-need-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: .75rem;
}
.might-need-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    text-decoration: none;
    transition: all .2s;
    backdrop-filter: blur(12px);
}
.might-need-link:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(79,142,247,.1);
}
.might-need-link .mn-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
    color: white;
}
.might-need-link .mn-text {
    flex: 1;
    min-width: 0;
}
.might-need-link .mn-name {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .1rem;
}
.might-need-link .mn-desc {
    display: block;
    font-size: .75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.might-need-link .mn-arrow {
    color: var(--text-muted);
    font-size: .7rem;
    transition: transform .2s;
    flex-shrink: 0;
}
.might-need-link:hover .mn-arrow {
    transform: translateX(3px);
    color: var(--color-primary);
}

@media (max-width: 640px) {
    .might-need-grid {
        grid-template-columns: 1fr;
    }
}
