/* ============================================================
   Archive page — featured section + tab toggle
   ============================================================ */

/* ----------------------------------------------------------
   Blog hero (inside header-internal.php)
   ---------------------------------------------------------- */

.blog-hero-wrap.header-internal {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

.blog-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.blog-hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left !important;
    align-items: flex-start !important;
}

.blog-hero-title {
    font-size: 48px !important;
    font-weight: 750 !important;
    color: #111827 !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.02em;
    text-shadow: none !important;
    filter: none !important;
    text-align: left !important;
}

.blog-hero-desc {
    font-size: 16px !important;
    color: #6b7280 !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-align: left !important;
}

.blog-hero-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-hero-follow-label {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: 'Inter', sans-serif;
    margin-right: 4px;
}

.blog-hero-soc-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.blog-hero-soc-link:hover {
    opacity: 1;
}

.blog-hero-soc-link img {
    width: 24px;
    height: 24px;
}

/* Right: categories */
.blog-hero-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-hero-topics-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.blog-hero-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.blog-hero-cat-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    text-decoration: none !important;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.blog-hero-cat-pill:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.blog-hero-cat-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-hero-cat-pill:hover .blog-hero-cat-name {
    color: #1d4ed8;
}

.blog-hero-cat-count {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    font-family: 'Inter', sans-serif;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 2px 8px;
    line-height: 1.4;
}

.blog-hero-cat-pill:hover .blog-hero-cat-count {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ----------------------------------------------------------
   Category / tag archive header
   ---------------------------------------------------------- */

.archive-page-header {
    padding-top: 114px !important;
    padding-bottom: 32px !important;
}

.archive-page-header .breadcrumbs {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.archive-page-header .breadcrumbs a {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.archive-page-header .breadcrumbs a:hover {
    color: #2563eb;
}

.archive-page-header .breadcrumbs .bc-sep {
    margin: 0 6px;
    color: #9ca3af;
}

.archive-page-header .breadcrumbs .bc-current {
    color: #9ca3af;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
}

.archive-page-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------
   Featured hero layout
   ---------------------------------------------------------- */

.featured-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.featured-section-header {
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.featured-section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.featured-layout {
    display: grid;
    grid-template-columns: 58% 1fr;
    gap: 16px;
    align-items: stretch;
}

/* Big left card */
.featured-main-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    text-decoration: none !important;
    background: #ffffff;
    transition: background 0.15s ease;
}

.featured-main-card:hover {
    background: #f5f6f8;
}

.featured-main-card .gd-card-arrow {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.featured-main-card:hover .gd-card-arrow {
    opacity: 1;
}

.featured-main-thumb {
    margin: 12px 12px 0;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #ededed;
}

.featured-main-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 22px;
    flex: 1;
}

.featured-cat {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.featured-main-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.featured-main-excerpt {
    font-size: 16px !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-main-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}

.featured-meta {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-family: 'Inter', sans-serif !important;
}

.featured-read-btn {
    /*display: inline-flex;*/
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    font-family: 'Inter', sans-serif;
}

.featured-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    transform: rotate(180deg);
}

/* Right sidebar — 4 small stacked cards */
.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.featured-side-card {
    display: flex;
    align-items: center;
    border-radius: 12px;
    text-decoration: none !important;
    background: #ffffff;
    flex: 1;
    overflow: hidden;
    transition: background 0.15s ease;
}

.featured-side-card:hover {
    background: #f5f6f8;
}

.featured-side-thumb {
    flex-shrink: 0;
    width: 150px;
    aspect-ratio: 16 / 10;
    margin: 8px 0 8px 8px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 1px solid #ededed;
}

.featured-side-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    padding: 8px 12px 8px 16px;
}

.featured-side-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-side-meta {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    margin-top: 5px;
}

/* ----------------------------------------------------------
   Section header: title + toggle
   ---------------------------------------------------------- */

.archive-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.archive-section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.archive-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    padding: 0;
}

.archive-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    padding: 8px 14px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-font-smoothing: antialiased;
}

.archive-tab.active {
    background: #f3f4f6;
    color: #111827;
    /*font-weight: 600;*/
}

.archive-tab:hover:not(.active) {
    color: #374151;
}

/* ----------------------------------------------------------
   Tab panels
   ---------------------------------------------------------- */

.archive-tab-panel {
    padding-top: 16px;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 900px) {
    /* Hero: stack columns */
    .blog-hero-wrap .blog-hero-layout {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    /* Hero left: center on mobile */
    .blog-hero-left {
        text-align: center !important;
        align-items: center !important;
    }

    .blog-hero-socials {
        justify-content: center;
    }

    /* Featured: main card full width, side cards single column */
    .featured-layout {
        grid-template-columns: 1fr;
    }

    .featured-sidebar {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 580px) {
    /* Categories single column */
    .blog-hero-cats {
        grid-template-columns: 1fr;
    }

    /* All Articles header: keep on one row, allow wrap only if truly needed */
    .archive-section-header {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .archive-section-title {
        white-space: nowrap;
    }
}
