/* ==========================================================================
   TechNovate - Clean Minimal WordPress Blog Theme Layer
   (Astra / Kadence / GeneratePress style)
   Loaded AFTER style.css on the PUBLIC site only (admin is untouched).
   Principles: white space, flat cards, rounded images, simple typography,
   no heavy borders, no dark blocks, no overlays.
   ========================================================================== */

:root {
    --font-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wp-line: #eceff3;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

[data-theme="dark"] {
    --wp-line: #1b2744;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body {
    background-color: var(--bg-primary);
    font-size: 16px;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    line-height: 1.32;
}

::selection {
    background: var(--brand-primary);
    color: #fff;
}

.main-wrapper {
    padding: 2rem 0 3rem;
}

/* --------------------------------------------------------------------------
   Header (simple white bar, thin divider)
   -------------------------------------------------------------------------- */
.top-bar {
    padding: 0.38rem 0;
    font-size: 0.78rem;
}

.ticker-badge {
    border-radius: 3px;
}

.site-header {
    background: var(--bg-primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--wp-line);
    box-shadow: none;
}

.header-inner {
    height: 76px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Category menu (light, text links with underline)
   -------------------------------------------------------------------------- */
.category-nav-strip {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--wp-line);
}

.category-nav-container {
    padding: 0 1rem;
    gap: 8px;
}

.category-nav-scroll {
    gap: 0.15rem;
    padding: 0;
}

.cat-pill {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.85rem 0.95rem 0.8rem;
    gap: 0;
}

.cat-pill svg {
    display: none;
}

.cat-pill:hover {
    background: transparent;
    color: var(--brand-primary);
    border-color: transparent;
}

.cat-pill.active {
    background: transparent;
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    font-weight: 600;
}

.cat-nav-arrow {
    box-shadow: none;
    width: 30px;
    height: 30px;
}

.cat-nav-arrow:hover {
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Section headings (simple title + short accent line)
   -------------------------------------------------------------------------- */
.section-header {
    border-bottom: 1px solid var(--wp-line);
    padding-bottom: 0.85rem;
    margin-bottom: 1.6rem;
    gap: 1rem;
}

.section-header::after {
    bottom: -1px;
    width: 52px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-primary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.section-title svg,
.section-title i {
    color: var(--brand-primary);
}

.section-view-all {
    font-size: 0.85rem;
    font-weight: 600;
}

.full-width-showcase-section {
    border-top: 0;
    padding-top: 0;
    margin-top: 3rem;
}

/* --------------------------------------------------------------------------
   Hero (clean: image on top, text below / simple side list)
   -------------------------------------------------------------------------- */
.featured-hero-section {
    margin-bottom: 3rem;
}

.hero-grid {
    gap: 2rem;
    align-items: start;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 2.5rem;
    }
}

.hero-main-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.hero-main-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.hero-main-img-wrap {
    aspect-ratio: 16 / 9;
    max-height: none;
    border-radius: var(--radius-lg);
}

.hero-main-card:hover .hero-main-img {
    transform: scale(1.03);
}

.hero-badge-overlay {
    top: 14px;
    bottom: auto;
    left: 14px;
}

.badge-pill {
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.7rem;
}

.badge-primary {
    box-shadow: none;
}

.hero-main-body {
    padding: 1.25rem 0 0;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.hero-main-title a,
[data-theme="dark"] .hero-main-title a {
    color: var(--text-primary);
}

.hero-main-title a:hover,
[data-theme="dark"] .hero-main-title a:hover {
    color: var(--brand-primary);
}

.hero-main-summary {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.hero-main-footer {
    border-top: 0;
    padding-top: 0;
}

.hero-footer-meta {
    font-size: 0.8rem;
}

.hero-read-more {
    font-size: 0.875rem;
}

/* Side list */
.hero-sub-stack {
    gap: 0;
}

.hero-sub-card {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--wp-line);
    border-radius: 0;
    box-shadow: none;
    padding: 1.2rem 0;
    gap: 1.1rem;
    align-items: flex-start;
}

.hero-sub-card:first-child {
    padding-top: 0;
}

.hero-sub-card:last-child {
    border-bottom: 0;
}

.hero-sub-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--wp-line);
}

.hero-sub-img-wrap {
    width: 150px;
    min-width: 150px;
    height: 104px;
    border-radius: var(--radius-md);
}

.hero-sub-card:hover .hero-sub-img {
    transform: scale(1.05);
}

.hero-sub-body {
    justify-content: flex-start;
}

.hero-sub-cat {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.hero-sub-title {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.hero-sub-summary {
    display: none;
}

@media (max-width: 560px) {
    .hero-sub-img-wrap {
        width: 110px;
        min-width: 110px;
        height: 82px;
    }
    .hero-sub-title {
        font-size: 0.95rem;
    }
    .hero-main-summary {
        font-size: 0.92rem;
    }
}

/* --------------------------------------------------------------------------
   Article cards (flat, rounded image, text below)
   -------------------------------------------------------------------------- */
.article-grid {
    gap: 2rem 1.75rem;
}

.article-card {
    background: transparent;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.article-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.article-card .card-img-wrapper {
    border-radius: var(--radius-lg);
}

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

.card-cat-badge {
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a !important;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.28rem 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.article-card .card-body {
    padding: 1.05rem 0 0;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.42;
    margin-bottom: 0.55rem;
}

.card-summary {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0.9rem;
}

.card-footer {
    border-top: 0;
    padding-top: 0;
    font-size: 0.78rem;
}

.read-more-link {
    font-size: 0.85rem;
    font-weight: 600;
}

/* List style (latest stories) */
.article-card-horizontal {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--wp-line);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
}

.article-card-horizontal:last-child {
    border-bottom: 0;
}

.article-card-horizontal:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--wp-line);
}

.article-card-horizontal .card-img-wrapper {
    border-radius: var(--radius-lg);
}

@media (min-width: 680px) {
    .article-card-horizontal {
        gap: 1.6rem;
    }
    .article-card-horizontal .card-img-wrapper {
        width: 300px;
        min-height: 0;
        align-self: flex-start;
        border-radius: var(--radius-lg);
    }
}

.article-card-horizontal:hover .card-img {
    transform: scale(1.05);
}

.article-card-horizontal .card-body {
    padding: 0.15rem 0 0;
    justify-content: flex-start;
}

.article-card-horizontal .card-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.meta-row {
    font-size: 0.8rem;
}

.bento-main-spotlight {
    border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   Sidebar widgets
   -------------------------------------------------------------------------- */
.sidebar {
    gap: 1.75rem;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--wp-line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: none;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    border-bottom: 1px solid var(--wp-line);
    padding-bottom: 0.8rem;
    margin-bottom: 1.15rem;
}

.widget-title::after {
    bottom: -1px;
    width: 44px;
    height: 3px;
    border-radius: 3px;
}

.widget-category-item a {
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.7rem;
}

/* --------------------------------------------------------------------------
   Single article
   -------------------------------------------------------------------------- */
.article-main-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.badge-cat {
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.article-prose {
    font-size: 1.08rem;
    line-height: 1.9;
}

.article-prose img {
    border-radius: var(--radius-md);
}

.share-bar {
    border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   Footer (keep original dark footer, only typography polish)
   -------------------------------------------------------------------------- */
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
}
