/* DigiSolly Blog Archive Styles */

/* ── Reset & base ───────────────────────── */
.ds-archive-wrap * {
    box-sizing: border-box !important;
}

.ds-archive-wrap {
    background: #0B0F14 !important;
    min-height: 100vh !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    padding-top: 80px !important;
}

/* ── Gradient text utility ──────────────── */
.ds-grad-text {
    background: linear-gradient(90deg, #00E8C8, #00C4AC) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════ */
.ds-hero {
    position: relative !important;
    padding: 72px 64px 60px !important;
    overflow: hidden !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* ── Hero with featured image background ─── */
.ds-hero-has-image {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 560px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: none !important;
}

.ds-hero-has-image::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    /* Base dark layer so even very bright images stay readable */
    background:
        linear-gradient(
            to right,
            rgba(11, 15, 20, 0.95) 0%,
            rgba(11, 15, 20, 0.82) 35%,
            rgba(11, 15, 20, 0.60) 62%,
            rgba(11, 15, 20, 0.45) 100%
        ) !important;
    z-index: 0 !important;
}

.ds-hero-content {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 620px !important;
    padding: 72px 64px !important;
}

/* Geometric accent shapes */
.ds-hero-geo-ring-lg {
    position: absolute !important;
    top: -60px !important;
    right: -60px !important;
    width: 420px !important;
    height: 420px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(0, 232, 200, 0.1) !important;
    pointer-events: none !important;
}

.ds-hero-geo-ring-sm {
    position: absolute !important;
    top: 30px !important;
    right: 80px !important;
    width: 220px !important;
    height: 220px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(0, 232, 200, 0.07) !important;
    pointer-events: none !important;
}

.ds-hero-geo-dot-orange {
    position: absolute !important;
    top: -10px !important;
    right: 240px !important;
    width: 72px !important;
    height: 72px !important;
    background: #FF5500 !important;
    opacity: 0.12 !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}

.ds-hero-geo-line {
    position: absolute !important;
    bottom: 40px !important;
    right: 100px !important;
    width: 110px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #00E8C8, transparent) !important;
    border-radius: 2px !important;
    pointer-events: none !important;
}

.ds-hero-geo-dot-teal {
    position: absolute !important;
    top: 70px !important;
    right: 360px !important;
    width: 9px !important;
    height: 9px !important;
    background: #00E8C8 !important;
    opacity: 0.3 !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}

.ds-hero-geo-dot-sm {
    position: absolute !important;
    top: 48px !important;
    right: 410px !important;
    width: 5px !important;
    height: 5px !important;
    background: #FF5500 !important;
    opacity: 0.45 !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}

/* Hero eyebrow */
.ds-hero-eyebrow {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 22px !important;
}

.ds-hero-tag {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #00E8C8 !important;
    padding: 4px 14px !important;
    border: 1px solid rgba(0, 232, 200, 0.3) !important;
    border-radius: 20px !important;
    background: rgba(0, 232, 200, 0.06) !important;
}

/* Hero title */
.ds-hero-title {
    font-family: 'Urbanist', sans-serif !important;
    font-weight: 900 !important;
    font-size: 42px !important;
    line-height: 1.12 !important;
    color: #ffffff !important;
    max-width: 600px !important;
    margin-bottom: 20px !important;
}

/* Hero excerpt */
.ds-hero-excerpt {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.48) !important;
    line-height: 1.75 !important;
    max-width: 520px !important;
    margin-bottom: 32px !important;
    font-weight: 300 !important;
}

/* Hero footer */
.ds-hero-footer {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
}

.ds-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 26px !important;
    background: linear-gradient(90deg, #00E8C8, #00C4AC) !important;
    color: #0B0F14 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    transition: opacity 0.2s !important;
}

.ds-btn-primary:hover {
    opacity: 0.88 !important;
}

.ds-hero-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.ds-author-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00E8C8, #00C4AC) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #0B0F14 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.ds-author-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.ds-hero-author-name {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.42) !important;
    font-weight: 400 !important;
}

.ds-hero-readtime {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.22) !important;
    padding-left: 14px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-left: 2px !important;
}

/* ════════════════════════════════════════
   BODY LAYOUT: LIST + SIDEBAR
════════════════════════════════════════ */
.ds-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* ── Post list ──────────────────────────── */
.ds-post-list {
    padding: 44px 52px 52px 64px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.ds-section-label {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.22) !important;
    margin-bottom: 28px !important;
}

.ds-post-row {
    display: flex !important;
    gap: 20px !important;
    padding: 22px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    align-items: flex-start !important;
    text-decoration: none !important;
    transition: opacity 0.2s !important;
}

.ds-post-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.ds-post-row:hover {
    opacity: 0.78 !important;
}

/* Thumbnail */
.ds-post-thumb {
    width: 88px !important;
    height: 70px !important;
    border-radius: 10px !important;
    background: #111827 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

.ds-post-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.ds-thumb-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #111827 !important;
}

.ds-thumb-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
}

.ds-thumb-bar-teal {
    background: linear-gradient(90deg, #00E8C8, #00C4AC) !important;
}

.ds-thumb-bar-orange {
    background: #FF5500 !important;
}

/* Post info */
.ds-post-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.ds-post-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 7px !important;
    flex-wrap: wrap !important;
}

.ds-post-cat {
    font-size: 9px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 3px 9px !important;
    border-radius: 20px !important;
}

.ds-cat-teal {
    color: #00C4AC !important;
    background: rgba(0, 196, 172, 0.1) !important;
    border: 1px solid rgba(0, 196, 172, 0.22) !important;
}

.ds-cat-orange {
    color: #FF5500 !important;
    background: rgba(255, 85, 0, 0.1) !important;
    border: 1px solid rgba(255, 85, 0, 0.22) !important;
}

.ds-cat-default {
    color: rgba(255, 255, 255, 0.38) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ds-post-title {
    font-family: 'Urbanist', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #ffffff !important;
    line-height: 1.38 !important;
    margin-bottom: 7px !important;
}

.ds-post-excerpt {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.36) !important;
    line-height: 1.65 !important;
    font-weight: 300 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.ds-post-readtime {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.2) !important;
    margin-top: 9px !important;
}

/* Pagination */
.ds-pagination {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-top: 32px !important;
    margin-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.ds-page-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    text-decoration: none !important;
    transition: all 0.15s !important;
}

.ds-page-btn:hover,
.ds-page-btn.ds-page-current {
    background: rgba(0, 232, 200, 0.1) !important;
    border-color: rgba(0, 232, 200, 0.3) !important;
    color: #00E8C8 !important;
}

.ds-page-btn.ds-page-current {
    pointer-events: none !important;
}

/* ── Sidebar ────────────────────────────── */
.ds-sidebar {
    padding: 44px 36px 52px 40px !important;
}

.ds-sidebar-section {
    margin-bottom: 36px !important;
}

.ds-sidebar-title {
    font-family: 'Urbanist', sans-serif !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    color: #ffffff !important;
    margin-bottom: 18px !important;
    letter-spacing: 0.02em !important;
}

.ds-sidebar-divider {
    height: 1px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    margin: 0 0 36px !important;
}

/* Categories */
.ds-cat-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.ds-cat-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.15s !important;
}

.ds-cat-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

.ds-cat-item-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.ds-cat-indicator {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.ds-cat-indicator-teal  { background: #00E8C8 !important; }
.ds-cat-indicator-orange { background: #FF5500 !important; }
.ds-cat-indicator-dim   { background: rgba(255, 255, 255, 0.2) !important; }

.ds-cat-name {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.52) !important;
    font-weight: 400 !important;
}

.ds-cat-count {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
}

/* Tag cloud */
.ds-tag-cloud {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}

.ds-tag {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.38) !important;
    padding: 5px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.15s !important;
    display: inline-block !important;
}

.ds-tag:hover {
    border-color: rgba(0, 232, 200, 0.35) !important;
    color: #00E8C8 !important;
}

/* Most read */
.ds-mostread-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

.ds-mr-item {
    display: flex !important;
    gap: 14px !important;
    align-items: flex-start !important;
    text-decoration: none !important;
    transition: opacity 0.2s !important;
}

.ds-mr-item:hover {
    opacity: 0.72 !important;
}

.ds-mr-num {
    font-family: 'Urbanist', sans-serif !important;
    font-weight: 900 !important;
    font-size: 26px !important;
    color: rgba(255, 255, 255, 0.06) !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    width: 28px !important;
}

.ds-mr-title {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.48) !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    padding-top: 2px !important;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
    .ds-hero {
        padding: 56px 28px 44px !important;
    }

    .ds-hero-has-image {
        min-height: 500px !important;
        background-size: cover !important;
        background-position: center top !important;
    }

    .ds-hero-content {
        padding: 56px 28px !important;
        max-width: 100% !important;
    }

    .ds-hero-has-image::before {
        background: linear-gradient(
            to bottom,
            rgba(11, 15, 20, 0.92) 0%,
            rgba(11, 15, 20, 0.80) 50%,
            rgba(11, 15, 20, 0.60) 100%
        ) !important;
    }

    .ds-hero-title {
        font-size: 30px !important;
    }

    .ds-body {
        grid-template-columns: 1fr !important;
    }

    .ds-post-list {
        padding: 36px 28px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    }

    .ds-sidebar {
        padding: 36px 28px !important;
    }
}

@media (max-width: 600px) {
    .ds-archive-wrap {
        padding-top: 60px !important;
    }

    .ds-hero {
        padding: 40px 20px 36px !important;
    }

    .ds-hero-has-image {
        min-height: 440px !important;
        background-size: cover !important;
        background-position: center top !important;
    }

    .ds-hero-has-image::before {
        background: linear-gradient(
            to bottom,
            rgba(11, 15, 20, 0.90) 0%,
            rgba(11, 15, 20, 0.78) 50%,
            rgba(11, 15, 20, 0.58) 100%
        ) !important;
    }

    .ds-hero-content {
        padding: 40px 20px !important;
    }

    .ds-hero-title {
        font-size: 26px !important;
    }

    .ds-post-row {
        flex-direction: column !important;
    }

    .ds-post-thumb {
        width: 100% !important;
        height: 140px !important;
    }
}
