/*
 * Krutsha AI Blog — Official Design System (https://krutsha.app/)
 * Warm Light Aesthetic · Architectural Grid · Copper Accent · Crisp Modern Typography
 */

/* ============================================================
   CSS CUSTOM PROPERTIES (Official Krutsha AI Brand Palette)
   ============================================================ */
:root {
    /* Brand Colors (White, Black & Sky Blue) */
    --primary: #0284C7;
    --primary-gradient: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
    --primary-hover: #0369A1;
    --primary-light: #F0F9FF;
    --primary-border: #BAE6FD;

    /* Neutrals & Surfaces (Clean White & Deep Obsidian Black) */
    --bg-body: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-subtle: #F1F5F9;

    /* Typography */
    --text-main: #0F172A;
    --text-heading: #000000;
    --text-muted: #64748B;
    --text-subtle: #94A3B8;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;

    /* Accents & Shadows */
    --accent-glow: rgba(2, 132, 199, 0.12);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(2, 132, 199, 0.08);
    --shadow-lg: 0 16px 40px rgba(2, 132, 199, 0.12);

    --color-whatsapp: #22C55E;
    --color-whatsapp-light: #DCFCE7;

    /* Layout & Radii */
    --card-radius: 20px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    background-color: var(--bg-body);
}

body {
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Typography Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-heading);
}

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

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

/* Text Utilities */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-muted) !important;
}

.form-text {
    color: var(--text-muted) !important;
}

.bg-surface {
    background-color: var(--bg-surface) !important;
}

.bg-card {
    background-color: var(--bg-card) !important;
}

/* ============================================================
   FLOATING PILL NAVBAR (Matches krutsha.app Header)
   ============================================================ */
.site-header-wrapper {
    position: sticky;
    top: 1rem;
    z-index: 99999 !important;
    width: 100%;
    padding: 0 1rem;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.site-header-wrapper .container {
    max-width: 1380px;
    width: 100%;
    position: relative;
    z-index: 99999 !important;
    display: flex;
    justify-content: center;
    padding: 0;
}

.navbar {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
    padding: 0.45rem 1.15rem !important;
    min-height: 52px;
    border-radius: 9999px !important;
    width: auto;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 99999 !important;
    overflow: visible !important;
    transition: all 0.3s ease;
}

.navbar-collapse {
    overflow: visible !important;
}

@media (max-width: 991.98px) {
    .site-header-wrapper {
        top: 0.5rem;
        padding: 0 0.5rem;
    }

    .navbar {
        border-radius: 20px !important;
        padding: 0.5rem 0.85rem !important;
        width: 100% !important;
    }
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 1.25rem;
}

.navbar-brand img {
    height: 38px;
    max-height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.navbar-brand img:hover {
    transform: scale(1.02);
}

.nav-item.dropdown {
    position: relative;
    z-index: 999999 !important;
}

.nav-link {
    font-weight: 600;
    color: #1E293B !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.86rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
}

@media (min-width: 992px) and (max-width: 1200px) {
    .nav-link {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.8rem !important;
    }

    .navbar {
        padding: 0.35rem 0.85rem !important;
    }
}

.nav-search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 0.95rem;
    background: transparent;
    transition: all 0.2s ease;
}

.nav-search-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.08);
}

/* ============================================================
   DROPDOWN SUBMENUS (Floating Solid Cards - High z-index)
   ============================================================ */
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22), 0 6px 18px rgba(15, 23, 42, 0.1) !important;
    padding: 0.6rem !important;
    min-width: 230px !important;
    margin-top: 0.65rem !important;
    z-index: 999999 !important;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.dropdown-item {
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 10px !important;
    transition: all 0.15s ease !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 0.5rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    transform: translateX(3px);
}

.dropdown-overview-item {
    background-color: var(--bg-surface) !important;
    color: var(--text-heading) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border: 1px solid var(--border-color);
}

.dropdown-overview-item:hover {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    border-color: var(--primary-border);
}

.dropdown-divider {
    border-top: 1px solid var(--border-color) !important;
    margin: 0.35rem 0.25rem !important;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.35em;
    vertical-align: 0.15em;
    border-top: 0.3em solid currentColor;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* ============================================================
   HERO BANNER & PARTNER BADGES (Matches Parent Site)
   ============================================================ */
.hero-section {
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 520px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.03) 45%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    color: var(--text-heading);
    line-height: 1.18;
}

.hero-title .highlight-text {
    color: #2563EB;
    background: none;
    -webkit-text-fill-color: #2563EB;
    display: inline-block;
    padding-bottom: 0.1em;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
}

/* Pill Badges (Matches Parent Site) */
.partner-badge-wrapper {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #DBEAFE;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    letter-spacing: -0.01em;
    text-transform: none;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    color: #1E293B;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.feature-pill:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

/* ============================================================
   BUTTONS (Matches Parent Website)
   ============================================================ */
.btn-primary {
    background: var(--primary-gradient) !important;
    color: #FFFFFF !important;
    border: none !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: var(--radius-pill) !important;
    padding: 0.75rem 1.6rem !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.28) !important;
    transition: all 0.25s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.38) !important;
    color: #FFFFFF !important;
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-main);
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* ============================================================
   POST CARDS (Clean White Surface with Ambient Hover)
   ============================================================ */
.post-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

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

.card-img-wrapper {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .card-img-top {
    transform: scale(1.04);
}

.dynamic-featured-graphic {
    transition: transform 0.4s ease, filter 0.3s ease;
    user-select: none;
}

.post-card:hover .dynamic-featured-graphic {
    transform: scale(1.03);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body {
    padding: 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    color: var(--text-heading) !important;
}

.card-title a {
    color: inherit;
}

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

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
    border-radius: var(--card-radius);
}

/* ============================================================
   CATEGORY & META BADGES
   ============================================================ */
.category-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--primary-border);
    transition: all 0.2s ease;
}

.category-badge:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.reading-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.page-link {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-pill) !important;
    margin: 0 0.2rem;
    padding: 0.55rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* ============================================================
   POST CONTENT & ARTICLE TYPOGRAPHY
   ============================================================ */
.post-content {
    background: transparent;
    padding: 1.5rem 0;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #1E293B;
}

.post-content h2 {
    margin-top: 3.2rem;
    margin-bottom: 1.2rem;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-heading);
}

.post-content h3 {
    margin-top: 2.6rem;
    margin-bottom: 1rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-heading);
}

.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
}

.post-content p {
    margin-bottom: 1.6rem;
    color: #334155;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.6rem;
    padding-left: 1.6rem;
    color: #334155;
}

.post-content li {
    margin-bottom: 0.6rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.2rem 1.8rem;
    margin: 2.2rem 0;
    background: var(--bg-surface);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: #1E293B;
}

.post-content img {
    max-width: 100%;
    border-radius: var(--card-radius);
    margin: 2.2rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    font-weight: 600;
}

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

.post-content pre {
    background: #0F172A;
    color: #F8FAFC;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.92rem;
    margin: 2.2rem 0;
    box-shadow: var(--shadow-md);
}

.post-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Tables in Post Content */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.post-content table th {
    background: #0F172A;
    color: #FFFFFF;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
}

.post-content table td {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border-color);
    color: #334155;
    font-size: 0.95rem;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.form-control {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.form-control:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-subtle);
}

/* ============================================================
   FOOTER (Pure Jet Black Theme - Matches User Request)
   ============================================================ */
.footer-section {
    background: #000000 !important;
    color: #F8FAFC;
    padding: 5rem 0 3rem;
    margin-top: 6rem;
    position: relative;
    border-top: 1px solid #18181B;
}

.footer-section h4,
.footer-section h5,
.footer-section h6 {
    color: #FFFFFF !important;
}

.footer-section p {
    color: #A1A1AA;
}

.footer-section .newsletter-form .form-control {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid #27272A !important;
}

.footer-section a {
    color: #A1A1AA;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #FFFFFF;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 2.5rem 0;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #A1A1AA;
    font-size: 1.15rem;
    background: #121212;
    border: 1px solid #27272A;
    transition: all 0.25s ease;
}

.social-icon-btn:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}



/* ============================================================
   ARTICLE / PUBLICATION VIEW (World-Class Editorial Design)
   ============================================================ */
.article-main-title {
    font-size: clamp(2rem, 3.8vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #0F172A;
    line-height: 1.22;
}

.article-type-pill {
    background: #0F172A;
    color: #F8FAFC;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
}

.article-cat-pill {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.article-cat-pill:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.sidebar-cat-pill {
    background: #FFFFFF;
    color: #334155;
    border: 1px solid #E2E8F0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sidebar-cat-pill:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-border);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.1);
}

.article-meta-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.author-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #FFFFFF;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.article-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #FFFFFF;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    text-decoration: none;
}

.article-share-btn:hover {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
    transform: translateY(-2px);
}

.article-takeaways-card {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-left: 5px solid var(--primary);
}

.article-tag-pill {
    background: #FFFFFF;
    color: #475569;
    border: 1px solid #E2E8F0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-tag-pill:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-border);
}

.article-share-footer {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.btn-whatsapp {
    background-color: #25D366 !important;
    color: #FFFFFF !important;
    border: 1px solid #22C55E !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.28) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #1EBE5D !important;
    color: #FFFFFF !important;
    border-color: #16A34A !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.38) !important;
}

.btn-whatsapp i {
    font-size: 1.15em !important;
    color: #FFFFFF !important;
    line-height: 1 !important;
}

.article-share-btn.share-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #FFFFFF;
}

.author-bio-box {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

/* Post Content Body Enhancements & Compact Professional Typography */
.post-content {
    font-size: 1.06rem;
    line-height: 1.68;
    color: #334155;
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.68;
}

.post-content ul,
.post-content ol {
    margin-top: 0.35rem;
    margin-bottom: 1.15rem;
    padding-left: 1.4rem;
}

.post-content li {
    margin-bottom: 0.35rem;
    line-height: 1.58;
}

.post-content li p {
    margin-bottom: 0.2rem;
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.03em;
    margin-top: 2.2rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #E2E8F0;
}

.post-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
}

.post-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.5rem;
    background: var(--bg-surface);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #1E293B;
    font-size: 1.08rem;
    line-height: 1.6;
}

.post-content pre {
    background: #0F172A !important;
    color: #F8FAFC !important;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    font-size: 0.92rem;
    overflow-x: auto;
    border: 1px solid #1E293B;
    margin: 1.75rem 0;
}

.post-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

.post-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.post-content th {
    background: #0F172A;
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-align: left;
}

.post-content td {
    padding: 0.85rem 1.1rem;
    border-top: 1px solid #F1F5F9;
    font-size: 0.92rem;
    color: #334155;
}

.post-content tr:nth-child(even) td {
    background-color: #F8FAFC;
}

.post-content tr:hover td {
    background-color: var(--primary-light);
}

/* ============================================================
   ULTRA-RESPONSIVE ADAPTIVE LAYOUT (All Screen Sizes)
   ============================================================ */

/* Mobile & Tablet Header Navigation (< 992px) */
@media (max-width: 991.98px) {
    .site-header-wrapper {
        top: 0.5rem;
        padding: 0 0.5rem;
    }

    .navbar {
        border-radius: 20px !important;
        padding: 0.5rem 0.85rem !important;
    }

    .navbar-brand img {
        height: 36px !important;
        max-height: 36px !important;
    }

    .navbar-toggler {
        padding: 0.35rem 0.65rem;
        border-radius: 10px;
        background: #F8FAFC;
        border: 1px solid #E2E8F0 !important;
    }

    .navbar-collapse {
        background: #FFFFFF !important;
        border-radius: 18px !important;
        padding: 1rem !important;
        margin-top: 0.75rem !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12) !important;
    }

    .navbar-nav {
        gap: 0.35rem !important;
        width: 100%;
    }

    .nav-link {
        padding: 0.6rem 1rem !important;
        border-radius: 10px !important;
        font-size: 0.92rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static !important;
        float: none !important;
        box-shadow: none !important;
        border: 1px solid #E2E8F0 !important;
        background: #F8FAFC !important;
        border-radius: 12px !important;
        margin: 0.35rem 0 !important;
        padding: 0.4rem !important;
        transform: none !important;
        width: 100% !important;
    }

    .dropdown-item {
        padding: 0.55rem 0.85rem !important;
        font-size: 0.88rem !important;
    }
}

/* Tablet & Mobile Layout (< 768px) */
@media (max-width: 767.98px) {
    .article-main-title {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }

    .article-meta-card {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.85rem !important;
        padding: 1rem !important;
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.65;
    }

    .post-content h2 {
        font-size: 1.45rem;
        margin-top: 1.8rem;
    }

    .post-content h3 {
        font-size: 1.2rem;
        margin-top: 1.4rem;
    }

    .post-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .post-content pre {
        padding: 1rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .article-takeaways-card {
        padding: 1.15rem !important;
    }

    .article-share-footer {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 1.25rem !important;
    }

    .author-bio-box .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-bio-box .d-flex .d-flex {
        justify-content: center;
    }

    .footer-section {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Small Smartphone Screen (< 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2.75rem 0 2rem;
    }

    .hero-title {
        font-size: 1.95rem !important;
        line-height: 1.22 !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    .partner-badge-wrapper {
        gap: 0.35rem;
    }

    .partner-badge {
        font-size: 0.68rem !important;
        padding: 0.35rem 0.75rem !important;
    }

    .article-featured-banner img {
        border-radius: 14px !important;
        max-height: 280px !important;
    }

    .post-card .card-img-wrapper {
        height: 180px;
    }
}

/* Responsive Mobile Touch Targets & Overflow Safeguards */
html, body {
    overflow-x: clip;
    max-width: 100vw;
}

@media (max-width: 767.98px) {
    /* Prevent iOS Input Auto-Zoom */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* 44px Minimum Touch Targets on Mobile Navigation */
    .navbar-nav .nav-link,
    .navbar-nav .dropdown-item,
    .btn,
    .sidebar-cat-pill {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Post Tables Horizontal Scroll Safeguard */
    .post-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* A consistent reading rhythm for article content and supporting sections. */
.post-content { --article-space: clamp(1.25rem, 2vw, 1.75rem); overflow-wrap: anywhere; }
.post-content h2 { font-size:clamp(1.35rem,2.4vw,1.7rem); line-height:1.3; margin:2rem 0 .85rem; }
.post-content h3 { font-size:clamp(1.15rem,2vw,1.35rem); line-height:1.35; margin:1.5rem 0 .75rem; }
.post-content h4 { font-size:1.1rem; line-height:1.4; margin:1.25rem 0 .65rem; }
.post-content a:not(.btn):not(.article-tag-pill) { color:var(--primary-dark,#b45309); text-decoration:underline; text-underline-offset:3px; }
.post-content a:focus-visible,.post-content summary:focus-visible { outline:3px solid var(--primary); outline-offset:4px; border-radius:4px; }
.post-content .article-support-card,.post-content .article-study-cta,.post-content .article-share-footer { margin:var(--article-space) 0 !important; padding:var(--article-space) !important; border:1px solid #e2e8f0; border-radius:16px; box-shadow:none; background:#fff; }
.post-content .article-takeaways-card { background:#fff8f1; border-color:#fed7aa; }
.post-content .article-glossary { background:#f8fafc; }
.post-content .article-support-title { font-size:1.12rem !important; font-weight:750; margin:0 0 .85rem !important; padding:0; border:0; letter-spacing:-.015em; text-transform:none !important; }
.post-content .article-support-card p,.post-content .article-support-card li { font-size:1rem; line-height:1.65; color:#334155; }
.post-content .article-support-card :last-child { margin-bottom:0; }
.post-content .article-study-cta { background:#fff8f1; border-color:#fed7aa; }
.post-content .article-brief-heading { border-left:3px solid var(--primary); padding-left:.85rem; border-bottom:0; }
.post-content .article-faq { margin:.65rem 0; border:1px solid #e2e8f0; border-radius:12px; background:#fff; scroll-margin-top:100px; }
.post-content .article-faq summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; cursor:pointer; padding:1rem 1.2rem; font-weight:650; font-size:1rem; line-height:1.5; list-style:none; color:#0f172a; }
.post-content .article-faq summary::-webkit-details-marker { display:none; }
.post-content .article-faq summary::after { content:'+'; font-size:1.35rem; color:var(--primary-dark,#b45309); flex:none; }
.post-content .article-faq[open] summary::after { content:'−'; }
.post-content .article-faq[open] summary { background:#f8fafc; border-radius:12px 12px 0 0; }
.post-content .article-faq-answer { padding:1rem 1.2rem; border-top:1px solid #e2e8f0; }
.post-content .article-faq-answer > :last-child { margin-bottom:0; }
.article-title { text-wrap:balance; }
@media(max-width:767px) { .post-content { font-size:1rem; line-height:1.7; } .post-content .article-faq summary,.post-content .article-faq-answer { padding:1rem; } .post-content .article-study-cta .btn { width:100%; } }

.post-content .article-brief-body { background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:1rem 1.2rem; margin-bottom:1.5rem; }
