/* assets/css/custom.css */
/* Custom theme styles for Ayushman Card WB theme */

:root {
    --orange: #ED8216;
    --dark-green: #077C16;
    --light-green: #50A415;
    --dark-blue: #012752;
}

/* Base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #FDFAF5;
    color: #0D1B1E;
    -webkit-font-smoothing: antialiased;
}

.font-display {
    font-family: 'Sora', system-ui, sans-serif;
}

/* Utility classes */
.bg-wb {
    background-color: #006E51;
}
.bg-wbd {
    background-color: #004D39;
}
.bg-wbl {
    background-color: #E6F4EF;
}
.bg-saffron {
    background-color: #E8480C;
}
.bg-gold {
    background-color: #D4930A;
}
.text-wb {
    color: #006E51;
}
.text-wbd {
    color: #004D39;
}
.text-saffron {
    color: #E8480C;
}
.text-gold {
    color: #D4930A;
}
.border-wb {
    border-color: #006E51;
}
.hover\:bg-wb:hover {
    background-color: #006E51;
}
.hover\:bg-wbd:hover {
    background-color: #004D39;
}
.hover\:text-wb:hover {
    color: #006E51;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.site-header.header-scroll {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Alert strip */
.alert-strip {
    background: #E8480C;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Hero sections */
.hero-gradient {
    background: linear-gradient(135deg, #003D2D 0%, #006E51 50%, #004D39 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 55%;
    height: 130%;
    background: radial-gradient(ellipse at center, rgba(212, 147, 10, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #FDFAF5;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.art-hero {
    background: linear-gradient(135deg, #003D2D 0%, #006E51 45%, #004D39 100%);
    position: relative;
    overflow: hidden;
}

.art-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Section pill */
.s-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E6F4EF;
    color: #006E51;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid #b2dcc8;
    margin-bottom: 12px;
}

/* Category pills */
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Blog cards */
.blog-card {
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 110, 81, 0.12);
    border-color: #006E51;
}

/* QA Cards */
.qa-card {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.qa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 110, 81, 0.14);
    border-color: #006E51;
}

/* Featured card */
.featured-card {
    transition: transform 0.22s, box-shadow 0.22s;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Ticker */
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-inner {
    display: inline-block;
    animation: tick 32s linear infinite;
}

.ticker-inner:hover {
    animation-play-state: paused;
}

@keyframes tick {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Float animation */
.card-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* FAQ Accordion */
details>summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

.fq {
    transition: transform 0.22s;
}

details[open] .fq {
    transform: rotate(45deg);
}

/* Table styles */
.ztable tr:nth-child(even) td {
    background: #F0F9F5;
}

.ztable td,
.ztable th {
    padding: 10px 14px;
    font-size: 13px;
}

.ztable th {
    background: #006E51;
    color: #fff;
    font-weight: 600;
    text-align: left;
}

/* Article body typography */
.article-body h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0D1B1E;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #E6F4EF;
}

.article-body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #004D39;
    margin: 1.5rem 0 0.6rem;
}

.article-body p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #374151;
    margin: 0 0 1rem 1.2rem;
}

.article-body li {
    margin-bottom: 0.35rem;
}

.article-body ul li {
    list-style: disc;
}

.article-body ol li {
    list-style: decimal;
}

.article-body strong {
    color: #0D1B1E;
    font-weight: 700;
}

.article-body a {
    color: #006E51;
    text-decoration: underline;
    font-weight: 500;
}

.article-body blockquote {
    background: #FFF8E7;
    border-left: 4px solid #D4930A;
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    font-size: 0.82rem;
    color: #78500A;
    margin: 1rem 0;
    line-height: 1.7;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.article-body table th {
    background: #006E51;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
}

.article-body table td {
    padding: 9px 14px;
    border-bottom: 1px solid #f0f9f5;
    color: #374151;
}

.article-body table tr:nth-child(even) td {
    background: #F0F9F5;
}

.article-body hr {
    border: none;
    border-top: 1px solid #E6F4EF;
    margin: 2rem 0;
}

/* Inline CTA */
.inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #006E51;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 100px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.inline-cta:hover {
    background: #004D39;
}

.inline-cta-gold {
    background: #D4930A;
}

.inline-cta-gold:hover {
    background: #b87b08;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #006E51;
    border-radius: 3px;
}

/* TOC links */
.toc-link {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    color: #64748B;
    border-left: 2px solid transparent;
    transition: all 0.15s;
    font-weight: 500;
}

.toc-link:hover,
.toc-link.active {
    color: #006E51;
    border-left-color: #D4930A;
    background: #F0F9F5;
    border-radius: 0 6px 6px 0;
}

/* Share buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}

.share-wa {
    background: #25D366;
    color: #fff;
}
.share-wa:hover {
    background: #1DAA56;
}
.share-tw {
    background: #1DA1F2;
    color: #fff;
}
.share-tw:hover {
    background: #0d8ecf;
}
.share-fb {
    background: #1877F2;
    color: #fff;
}
.share-fb:hover {
    background: #0d65d9;
}
.share-cp {
    background: #F1F5F9;
    color: #374151;
    border: 1px solid #E2E8F0;
}
.share-cp:hover {
    background: #E2E8F0;
}

/* Related cards */
.rel-card {
    transition: all 0.2s ease;
}

.rel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(0, 110, 81, 0.18);
}

/* Live dot */
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
    display: inline-block;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Reading progress */
#readProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #D4930A, #006E51);
    z-index: 999;
    transition: width 0.1s linear;
}

/* Mobile drawer */
#mobileDrawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: #004D39;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
}

#mobileDrawer.open {
    transform: translateX(0);
}

#drawerOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#drawerOverlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Newsletter background */
.nl-bg {
    background: linear-gradient(135deg, #004D39 0%, #006E51 60%, #0a7a5e 100%);
}

/* Tag filter */
.tag-btn {
    transition: all 0.18s;
    cursor: pointer;
}

.tag-btn.active {
    background: #006E51;
    color: #fff;
    border-color: #006E51;
}

/* Nav active */
.nav-active {
    background: #E6F4EF;
    color: #006E51;
}

/* Fade up animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.5s ease both;
}

/* Mobile sticky CTA */
@media (max-width: 1024px) {
    .mobile-sticky-cta {
        position: fixed;
        bottom: 0;
        inset-x: 0;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        padding: 10px 12px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        z-index: 50;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }
}