/* ── DSHM Cards & Homepage Sections ─────────────────────── */

/* Section wrapper */
.dshm-section-wrap {
    padding: 48px 0;
    font-family: var(--dshm-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}
.dshm-section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.dshm-section-heading {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    color: var(--dshm-text, #111827);
    margin: 0 !important;
    white-space: nowrap;
}
.dshm-section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--dshm-violet, #7c3aed), transparent);
    border-radius: 2px;
}

/* Grid layouts */
.dshm-grid {
    display: grid;
    gap: 24px;
}
.dshm-grid--1col { grid-template-columns: 1fr; }
.dshm-grid--2col { grid-template-columns: repeat(2, 1fr); }
.dshm-grid--3col { grid-template-columns: repeat(3, 1fr); }
.dshm-grid--4col { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.dshm-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(124,58,237,0.1);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.dshm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(124,58,237,0.15);
}
.dshm-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0ede9;
}
.dshm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.dshm-card:hover .dshm-card-img img { transform: scale(1.06); }
.dshm-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}
.dshm-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--dshm-violet, #7c3aed);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}
.dshm-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dshm-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dshm-text, #111827);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dshm-card-exc {
    font-size: 13px;
    color: var(--dshm-text-muted, #6b7280);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.dshm-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(124,58,237,0.08);
    margin-top: auto;
}
.dshm-card-date, .dshm-card-time {
    font-size: 11px;
    color: var(--dshm-text-light, #9ca3af);
}
.dshm-card-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* List layout */
.dshm-list { display: flex; flex-direction: column; gap: 12px; }
.dshm-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.dshm-list-item:hover {
    border-color: var(--dshm-violet, #7c3aed);
    box-shadow: 0 4px 16px rgba(124,58,237,0.1);
    transform: translateX(4px);
}
.dshm-list-img {
    width: 72px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.dshm-list-img img { width: 100%; height: 100%; object-fit: cover; }
.dshm-list-body { flex: 1; min-width: 0; }
.dshm-list-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dshm-violet, #7c3aed);
    display: block;
    margin-bottom: 4px;
}
.dshm-list-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dshm-text, #111827);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dshm-list-meta {
    font-size: 11px;
    color: var(--dshm-text-light, #9ca3af);
    display: flex;
    gap: 8px;
}
.dshm-list-arrow { color: var(--dshm-violet-light, #a78bfa); flex-shrink: 0; }

/* Featured layout */
.dshm-featured-wrap { padding: 48px 0; }
.dshm-featured-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: start;
}
.dshm-featured-hero {
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.dshm-featured-hero-img {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
}
.dshm-featured-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.dshm-featured-hero:hover .dshm-featured-hero-img img { transform: scale(1.04); }
.dshm-featured-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px 32px;
    background: linear-gradient(transparent, rgba(10,4,26,0.82));
}
.dshm-featured-cat {
    display: inline-block;
    background: var(--dshm-violet, #7c3aed);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.dshm-featured-title {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 10px;
}
.dshm-featured-exc {
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    margin: 0 0 12px;
    line-height: 1.5;
}
.dshm-featured-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}
.dshm-featured-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dshm-featured-side .dshm-card {
    flex-direction: row;
    align-items: stretch;
}
.dshm-featured-side .dshm-card-img {
    width: 96px;
    height: auto;
    aspect-ratio: auto;
    flex-shrink: 0;
    border-radius: 0;
}
.dshm-featured-side .dshm-card-body { padding: 12px 14px; }
.dshm-featured-side .dshm-card-title { font-size: 13px; -webkit-line-clamp: 3; }
.dshm-featured-side .dshm-card-exc { display: none; }

/* Slider */
.dshm-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dshm-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    flex: 1;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.dshm-slider::-webkit-scrollbar { display: none; }
.dshm-slider .dshm-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}
.dshm-slider-btn {
    background: rgba(255,255,255,0.95);
    border: 1.5px solid rgba(124,58,237,0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dshm-violet, #7c3aed);
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dshm-slider-btn:hover {
    background: var(--dshm-violet, #7c3aed);
    color: #fff;
    border-color: var(--dshm-violet, #7c3aed);
}

/* ── Single Article Page ─────────────────────────────────── */
.dshm-single-wrap {
    font-family: var(--dshm-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

/* Page progress */
#dshm-page-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(124,58,237,0.12);
    z-index: 9999;
}
#dshm-page-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--dshm-violet, #7c3aed), #a78bfa);
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
}

/* Breadcrumbs */
.dshm-breadcrumbs {
    background: rgba(245,243,255,0.6);
    border-bottom: 1px solid rgba(124,58,237,0.08);
    padding: 12px 0;
}
.dshm-breadcrumbs-inner {
    max-width: calc(var(--dshm-reading-width, 720px) + 80px);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
}
.dshm-breadcrumbs a {
    color: var(--dshm-violet, #7c3aed);
    text-decoration: none;
    font-weight: 500;
}
.dshm-breadcrumbs a:hover { text-decoration: underline; }
.dshm-breadcrumbs span[aria-current="page"] { color: var(--dshm-text-muted, #6b7280); }
.dshm-bc-sep { color: var(--dshm-text-light, #9ca3af); }

/* Single main */
.dshm-single-main {
    max-width: calc(var(--dshm-reading-width, 720px) + 80px);
    margin: 0 auto;
}

/* Hero */
.dshm-single-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    margin-bottom: 0;
}
.dshm-single-hero-img {
    aspect-ratio: 4 / 5;
    max-height: 70vh;
    overflow: hidden;
}
.dshm-single-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}
.dshm-single-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 40px 24px;
    background: linear-gradient(transparent, rgba(10,4,26,0.5));
}
.dshm-single-cat {
    display: inline-block;
    background: var(--dshm-violet, #7c3aed);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
}

/* Single Header */
.dshm-single-header {
    padding: 36px 40px 0;
    max-width: var(--dshm-reading-width, 720px);
    margin: 0 auto;
}
.dshm-single-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--dshm-text, #111827);
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}
.dshm-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}
.dshm-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--dshm-text-muted, #6b7280);
}
.dshm-meta-avatar {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
}
.dshm-single-excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: var(--dshm-text-muted, #6b7280);
    border-left: 3px solid var(--dshm-violet, #7c3aed);
    padding-left: 18px;
    font-style: italic;
    margin: 0;
}

/* Single Body */
.dshm-single-body {
    padding: 36px 40px 60px;
    max-width: var(--dshm-reading-width, 720px);
    margin: 0 auto;
}
.dshm-wp-content p { font-size: 16px; line-height: 1.85; color: var(--dshm-text, #111827); margin-bottom: 20px; }
.dshm-wp-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 16px; color: var(--dshm-text, #111827); }
.dshm-wp-content h3 { font-size: 18px; font-weight: 600; margin: 28px 0 12px; }
.dshm-wp-content img { max-width: 100%; height: auto; border-radius: 12px; }
.dshm-wp-content ul, .dshm-wp-content ol { padding-left: 24px; margin-bottom: 20px; }
.dshm-wp-content li { margin-bottom: 8px; line-height: 1.7; font-size: 16px; }
.dshm-wp-content a { color: var(--dshm-violet, #7c3aed); }
.dshm-wp-content blockquote {
    border-left: 3px solid var(--dshm-violet, #7c3aed);
    padding: 16px 20px;
    margin: 24px 0;
    background: rgba(124,58,237,0.04);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 17px;
}

/* Archive page */
.dshm-archive-wrap {
    font-family: var(--dshm-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}
.dshm-archive-header {
    background: linear-gradient(135deg, var(--dshm-violet, #7c3aed) 0%, #5b21b6 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.dshm-archive-header-inner { max-width: 600px; margin: 0 auto; }
.dshm-archive-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
}
.dshm-archive-desc { font-size: 16px; color: rgba(255,255,255,0.78); margin: 0; }

.dshm-archive-filters {
    border-bottom: 1px solid rgba(124,58,237,0.1);
    padding: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.dshm-archive-filters-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dshm-filter-btn {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--dshm-text-muted, #6b7280);
    border: 1px solid rgba(124,58,237,0.15);
    background: transparent;
    transition: all 0.2s;
}
.dshm-filter-btn:hover, .dshm-filter-btn.active {
    background: var(--dshm-violet, #7c3aed);
    color: #fff;
    border-color: var(--dshm-violet, #7c3aed);
}
.dshm-archive-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}
.dshm-archive-pagination {
    margin-top: 40px;
    text-align: center;
}
.dshm-archive-pagination .page-numbers {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.dshm-archive-pagination .page-numbers li a,
.dshm-archive-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(124,58,237,0.2);
    font-size: 14px;
    text-decoration: none;
    color: var(--dshm-text, #111827);
    transition: all 0.2s;
}
.dshm-archive-pagination .page-numbers li a:hover,
.dshm-archive-pagination .page-numbers li span.current {
    background: var(--dshm-violet, #7c3aed);
    color: #fff;
    border-color: var(--dshm-violet, #7c3aed);
}
.dshm-archive-empty { text-align: center; padding: 60px 20px; }

/* No articles notice */
.dshm-no-articles { color: var(--dshm-text-muted, #6b7280); text-align: center; padding: 24px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .dshm-grid--4col { grid-template-columns: repeat(2, 1fr); }
    .dshm-grid--3col { grid-template-columns: repeat(2, 1fr); }
    .dshm-featured-layout { grid-template-columns: 1fr; }
    .dshm-featured-hero-img { aspect-ratio: 16/9; max-height: 50vh; }
    .dshm-featured-side {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .dshm-featured-side .dshm-card { flex-direction: column; }
    .dshm-featured-side .dshm-card-img { width: 100%; aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
    .dshm-grid--3col, .dshm-grid--2col { grid-template-columns: 1fr; }
    .dshm-featured-side { grid-template-columns: 1fr; }
    .dshm-slider .dshm-card { flex: 0 0 240px; }
    .dshm-slider-btn { display: none; }
    .dshm-single-header { padding: 24px 20px 0; }
    .dshm-single-body { padding: 24px 20px 48px; }
    .dshm-breadcrumbs-inner { padding: 0 20px; }
    .dshm-single-hero-img { aspect-ratio: 4/5; max-height: 60vw; }
}
