/* ===================================================================
 * 8. Homepage - Dual Category Blocks (Modern Screenshot 2 Style)
 * Features: Expert Text (Excerpt) & 7 Devices Responsive
 * =================================================================== */

.dual-category-block-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px auto;
    max-width: 1200px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 1. Header Style: Red Base Line, Blue Under Text */
.dual-category-block {
    display: flex;
    flex-direction: column;
}

.dual-category-title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #dd0000; /* Full width Red line */
    position: relative;
}

.dual-category-title span {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: #111;
    padding-bottom: 8px;
    border-bottom: 6px solid #0010a0; /* Thick Blue line under text */
    position: relative;
    top: 2px;
}

.dual-category-title span a {
    color: inherit;
    text-decoration: none;
}

/* 2. List Item Styling */
.dcb-post-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dcb-list-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid #f2f2f2;
}

.dcb-list-item:last-child {
    border-bottom: none;
}

/* 3. Thumbnail & Date Overlay (Screenshot 2 Style) */
.dcb-thumb-container {
    flex: 0 0 120px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.dcb-thumb-container img {
    width: 120px !important;
    height: 100px !important;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.dcb-list-item:hover .dcb-thumb-container img {
    transform: scale(1.05);
}

.dcb-date-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    font-size: 9px;
    color: #777;
    font-weight: 800;
    text-transform: uppercase;
    border-top-right-radius: 2px;
}

/* 4. Content Area: Title & Expert Text (Excerpt) */
.dcb-content-small {
    flex: 1;
}

.dcb-title-small {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 6px 0;
}

.dcb-title-small a {
    color: #111;
    text-decoration: none;
    transition: 0.2s;
}

.dcb-title-small a:hover {
    color: #0010a0;
}

/* Expert Text (Excerpt) Styling */
.dcb-excerpt-small {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Shows only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 5. Navigation (If used) */
.dcb-nav {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.dcb-nav a {
    width: 32px;
    height: 32px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.dcb-nav a:hover {
    border-color: #0010a0;
    color: #0010a0;
}

/* ============================================================
   BREAKPOINTS FOR 7 DEVICES
   ============================================================ */

/* [1] 4K Ultra Wide (2000px+) */
@media (min-width: 2000px) {
    .dual-category-block-wrapper { max-width: 1600px; gap: 30px; }
}

/* [2] Standard Desktop (1200px - 1999px) - Default styles above */

/* [3] Laptop / Tablet Landscape (1024px - 1199px) */
@media (max-width: 1199px) {
    .dual-category-block-wrapper { gap: 25px; }
    .dcb-title-small { font-size: 12px; }
}

/* [4] Tablet Portrait (768px - 1023px) */
@media (max-width: 1023px) {
    .dual-category-block-wrapper { gap: 20px; }
    .dcb-thumb-container { flex: 0 0 100px; }
    .dcb-thumb-container img { width: 100px !important; height: 70px !important; }
    .dcb-excerpt-small { -webkit-line-clamp: 1; } /* Sano screen ma 1 line excerpt */
}

/* [5] Mobile Large / Phablet (481px - 767px) */
@media (max-width: 767px) {
    .dual-category-block-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .dcb-excerpt-small { -webkit-line-clamp: 2; }
}

/* [6] Mobile Medium (376px - 480px) */
@media (max-width: 480px) {
    .dcb-thumb-container { flex: 0 0 110px; }
    .dcb-thumb-container img { width: 110px !important; height: 75px !important; }
    .dcb-title-small { font-size: 15px; }
}

/* [7] Mobile Small (Up to 375px) */
@media (max-width: 375px) {
    .dual-category-title span { font-size: 14px; }
    .dcb-list-item { gap: 10px; }
    .dcb-thumb-container { flex: 0 0 90px; }
    .dcb-thumb-container img { width: 90px !important; height: 60px !important; }
    .dcb-title-small { font-size: 12px; }
    .dcb-excerpt-small { display: none; } /* Space bachuna hide gariyeko */
}