/*
 Theme Name:   Daily Jharkhand
 Theme URI:    https://dailyjharkhand.com
 Description:  A modern Hindi news theme for Daily Jharkhand, child of GeneratePress.
 Author:       Daily Jharkhand
 Author URI:   https://dailyjharkhand.com
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  dailyjharkhand
 Tags:         news, hindi, rtl-language-support, custom-menu, custom-logo, featured-images
*/

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
    --red: #e2001a;
    --red-dark: #c5000f;
    --red-light: #ff1a34;
    --dark: #1a1a1a;
    --dark-2: #2d2d2d;
    --gray-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #222222;
    --text-body: #444444;
    --text-light: #888888;
    --border: #e5e5e5;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
    --radius: 3px;
    --fast: 0.2s ease;
    --smooth: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Noto Sans Devanagari', 'Roboto', system-ui, sans-serif;
    background: var(--gray-bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

a { text-decoration: none !important; color: inherit; transition: color var(--fast); }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

.dj-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Hide GP default elements */
.site-header, .main-navigation, .site-footer,
#page > .site-header, #page > .site-footer { display: none !important; }
.site-content { padding: 0 !important; margin: 0 !important; }
.inside-article { padding: 0 !important; }
.entry-content { margin: 0 !important; }
#page { max-width: 100% !important; }
.site { max-width: 100% !important; }
.grid-container { max-width: 100% !important; padding: 0 !important; }

/* =========================================================
   1. TOP BAR
   ========================================================= */
.dj-top-bar {
    background: var(--red);
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
}

.dj-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dj-top-bar-date { color: #fff; font-weight: 600; font-size: 15px; line-height: 1; }

.dj-top-bar-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dj-top-bar-links a {
    color: rgba(255,255,255,0.9);
    padding: 2px 8px;
    border-right: 1px solid rgba(255,255,255,0.3);
    font-size: 12px;
}

.dj-top-bar-links a:last-child { border-right: none; }
.dj-top-bar-links a:hover { color: #fff; }

.dj-top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dj-top-bar-social {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.dj-top-bar-social a {
    color: rgba(255,255,255,0.9);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--fast);
}

.dj-top-bar-social a:hover { color: #fff; background: rgba(255,255,255,0.2); }
.dj-top-bar-social svg { width: 16.5px; height: 16.5px; fill: currentColor; }

.dj-top-bar-tagline {
    font-size: 15.5px;
    font-weight: 600;
    font-style: italic;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 8px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

/* =========================================================
   2. HEADER
   ========================================================= */
.dj-header {
    background: var(--white);
    padding: 0;
    border-bottom: 3px solid var(--red);
}

.dj-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
}

.dj-logo-area {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.dj-logo-area img {
    max-height: 70px;
    width: auto;
}

.dj-logo-map {
    width: 70px;
    height: 70px;
    position: relative;
}

.dj-logo-map svg { width: 100%; height: 100%; }

.dj-logo-text {
    display: flex;
    flex-direction: column;
}

.dj-logo-tagline {
    font-size: 11px;
    color: var(--red);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-top: 2px solid var(--red);
    padding-top: 2px;
    margin-top: 2px;
}

.dj-header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    overflow: visible;
    padding: 0 15px;
    min-width: 0; /* CRITICAL: Allows flex child to shrink below content size */
}

/* Prevents visual scrambling before JS calculates the Mega Dropdown */
.dj-nav-loading {
    overflow: hidden !important;
}

.dj-primary-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.dj-primary-menu > li {
    display: inline-block;
}

.dj-primary-menu a {
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all var(--fast);
    white-space: nowrap;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
}

.dj-primary-menu a:hover { 
    color: var(--red); 
    background: rgba(226,0,26,0.08); 
}

/* Priority+ Mega Dropdown Styles */
.dj-more-menu-item {
    position: relative;
}

.dj-more-menu-item > a {
    color: var(--red);
    background: rgba(226,0,26,0.05);
}

.dj-more-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 500px; /* Force it to be wide */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: var(--radius);
    padding: 20px;
    margin: 0;
    list-style: none;
    display: none;
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.05);
    
    /* CSS Multi-Column Magic */
    column-width: 150px;
    column-gap: 20px;
}

.dj-more-menu-item:hover .dj-more-dropdown {
    display: block;
    animation: fadeIn 0.2s ease-out forwards;
}

.dj-more-dropdown li {
    display: block;
    break-inside: avoid; /* Don't break links across columns */
    margin-bottom: 5px;
}

.dj-more-dropdown a {
    width: 100%;
    padding: 8px 10px;
    font-size: 15px;
}

.dj-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dj-inline-search {
    display: flex;
    align-items: center;
    background: var(--gray-bg);
    border: 2px solid var(--border);
    border-radius: 25px;
    overflow: hidden;
    transition: all var(--fast);
    width: 170px;
}

.dj-inline-search:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(226,0,26,0.1);
    width: 260px;
}

.dj-inline-search input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    outline: none;
    min-width: 0;
}

.dj-inline-search input[type="search"]::placeholder {
    color: var(--text-light);
}

/* Remove default search input clear button in WebKit */
.dj-inline-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.dj-inline-search-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--red) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    margin: 2px;
    flex-shrink: 0;
    transition: all var(--fast);
    padding: 0;
}

.dj-inline-search-btn:hover {
    background: var(--red-dark) !important;
    transform: scale(1.05);
}

.dj-inline-search-btn svg {
    width: 16px;
    height: 16px;
    fill: #ffffff !important;
}

/* =========================================================
   3. BREAKING NEWS TICKER
   ========================================================= */
.dj-breaking-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.dj-breaking-inner {
    display: flex;
    align-items: center;
    height: 40px;
}

.dj-breaking-label {
    background: var(--red);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 0 16px 0 15px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    height: 40px;
    display: flex;
    align-items: center;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.dj-blink-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    margin-left: 12px;
    animation: djBlink 0.8s infinite alternate;
}

@keyframes djBlink {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.dj-ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-left: 15px;
}

.dj-ticker-content {
    display: flex;
    animation: dj-ticker 8s linear infinite;
    white-space: nowrap;
    gap: 60px;
}

.dj-ticker-content a {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-body);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dj-ticker-content a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dj-ticker-content a:hover { color: var(--red); }

@keyframes dj-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================================
   4. MAIN LAYOUT
   ========================================================= */
.dj-main-area { padding: 20px 0; }

.dj-content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    align-items: start;
}

/* =========================================================
   5. HERO SLIDER
   ========================================================= */
.dj-hero-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    height: 420px;
}

.dj-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    z-index: 1;
}

.dj-slider-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.dj-slider-slide.active ~ .dj-slider-slide {
    transform: translateX(100%);
}

.dj-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dj-slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.1) 65%, transparent 100%);
}

.dj-cat-badge {
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 3px;
    display: inline-block;
}

.dj-slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    z-index: 2;
}

.dj-slider-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-slider-title a { color: #fff; }
.dj-slider-title a:hover { color: rgba(255,255,255,0.9); }

.dj-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--fast);
}
.dj-slider-arrow svg {
    width: 22px;
    height: 22px;
}

.dj-slider-arrow:hover { 
    background: var(--red); 
    border-color: var(--red);
    transform: translateY(-50%) scale(1.1);
}
.dj-slider-arrow.prev { left: 12px; }
.dj-slider-arrow.next { right: 12px; }

/* =========================================================
   6. SIDEBAR - मुख्य समाचार
   ========================================================= */
.dj-sidebar-main {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dj-sidebar-header {
    padding: 11px 15px;
    border-bottom: 2px solid var(--red);
    background: var(--white);
}

.dj-sidebar-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.dj-sidebar-posts { padding: 0; }

.dj-sidebar-post {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    transition: background var(--fast);
}

.dj-sidebar-post:last-child { border-bottom: none; }
.dj-sidebar-post:hover { background: #fafafa; }

.dj-sidebar-post-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.dj-sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dj-sidebar-post-thumb .dj-placeholder {
    width: 100%;
    height: 100%;
}

.dj-sidebar-post-content { flex: 1; }

.dj-sidebar-post-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-sidebar-post:hover .dj-sidebar-post-title,
.dj-sidebar-post-title a:hover { color: var(--red); }

.dj-post-time {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.dj-post-time svg { width: 12px; height: 12px; fill: currentColor; }

/* =========================================================
   7. CATEGORY SECTIONS
   ========================================================= */
.dj-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dj-static-list {
    background: #fff;
    padding: 15px;
    border: 1px solid var(--border);
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dj-static-list-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.dj-static-list-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.dj-static-list-thumb {
    width: 130px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.dj-static-list-thumb img, .dj-static-list-thumb .dj-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dj-static-list-content {
    flex: 1;
}

.dj-static-list-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-static-list-item:hover .dj-static-list-title {
    color: var(--red);
}

.dj-category-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    margin-top: 15px;
    align-items: start;
}

.dj-categories-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dj-sticky-sidebar {
    position: sticky;
    top: 20px;
}

/* Recent Posts Widget */
.dj-recent-posts-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dj-widget-header {
    padding: 13px 18px;
    border-bottom: 3px solid var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dj-widget-header svg {
    width: 24px;
    height: 24px;
    fill: var(--red);
}

.dj-widget-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.dj-recent-post-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: all var(--fast);
    cursor: pointer;
    align-items: center;
}

.dj-recent-post-item:last-child { border-bottom: none; }
.dj-recent-post-item:hover { background: #fafafa; }

.dj-recent-post-num {
    width: 36px;
    height: 36px;
    color: var(--red);
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
}

.dj-recent-post-info { flex: 1; min-width: 0; }

.dj-recent-post-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-recent-post-excerpt {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-recent-post-item:hover .dj-recent-post-title { color: var(--red); }

.dj-recent-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
}

.dj-recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dj-recent-post-thumb .dj-placeholder {
    width: 100%;
    height: 100%;
    font-size: 0;
}

.dj-recent-post-meta {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.dj-recent-post-meta svg { width: 11px; height: 11px; fill: currentColor; }

/* =========================================================
   CATEGORY SECTION GENERAL
   ========================================================= */
.dj-cat-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dj-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    background: var(--red);
}

.dj-weather-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 16px;
}

.dj-weather-city {
    font-weight: 800;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 10px;
}

.dj-weather-status {
    font-weight: 600;
}

.dj-weather-icon {
    font-size: 17px;
}

.dj-weather-temp {
    font-weight: 800;
}

.dj-cat-header-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dj-cat-header-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.dj-cat-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.dj-cat-see-all {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
}

.dj-cat-see-all:hover { opacity: 1; color: #fff; text-decoration: underline; }
.dj-cat-see-all svg { width: 12px; height: 12px; fill: currentColor; }

/* =========================================================
   LAYOUT A: Featured Left + List Right
   ========================================================= */
.dj-layout-a {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dj-layout-a-featured {
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border);
}

.dj-layout-a-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 340px;
}

.dj-layout-a-featured .dj-placeholder {
    height: 100%;
    min-height: 340px;
}

.dj-layout-a-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.dj-layout-a-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.dj-layout-a-featured-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-layout-a-featured-title a { color: #fff; }

.dj-layout-a-featured-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 8px;
}

.dj-layout-a-featured-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.dj-layout-a-featured-meta svg { width: 12px; height: 12px; fill: currentColor; }

.dj-layout-a-list {
    display: flex;
    flex-direction: column;
}

.dj-layout-a-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: background var(--fast);
}

.dj-layout-a-item:last-child { border-bottom: none; }
.dj-layout-a-item:hover { background: #fafafa; }

.dj-layout-a-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
}

.dj-layout-a-thumb img,
.dj-layout-a-thumb .dj-placeholder { width: 100%; height: 100%; object-fit: cover; }

.dj-layout-a-content { flex: 1; }

.dj-layout-a-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-layout-a-item:hover .dj-layout-a-title { color: var(--red); }

/* =========================================================
   LAYOUT B: 3-Column Grid
   ========================================================= */
.dj-layout-b {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 18px;
}

.dj-layout-b-card { transition: transform var(--smooth); }
.dj-layout-b-card:hover { transform: translateY(-3px); }

.dj-layout-b-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 16/10;
    position: relative;
}

.dj-layout-b-thumb img,
.dj-layout-b-thumb .dj-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform var(--smooth); }

.dj-layout-b-card:hover .dj-layout-b-thumb img,
.dj-layout-b-card:hover .dj-layout-b-thumb .dj-placeholder { transform: scale(1.05); }

.dj-layout-b-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-layout-b-card:hover .dj-layout-b-title,
.dj-layout-b-title a:hover { color: var(--red); }

/* =========================================================
   LAYOUT C: Horizontal List
   ========================================================= */
.dj-layout-c { padding: 18px; }

.dj-layout-c-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--fast);
}

.dj-layout-c-item:last-child { border-bottom: none; }
.dj-layout-c-item:hover { padding-left: 5px; }

.dj-layout-c-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
}

.dj-layout-c-thumb img,
.dj-layout-c-thumb .dj-placeholder { width: 100%; height: 100%; object-fit: cover; }

.dj-layout-c-content { flex: 1; }

.dj-layout-c-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-layout-c-item:hover .dj-layout-c-title,
.dj-layout-c-title a:hover { color: var(--red); }

.dj-layout-c-desc {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   LAYOUT D: 4-Column Card Grid
   ========================================================= */
.dj-layout-d {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 18px;
}

.dj-layout-d-card { transition: transform var(--smooth); }
.dj-layout-d-card:hover { transform: translateY(-3px); }

.dj-layout-d-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 16/10;
}

.dj-layout-d-thumb img,
.dj-layout-d-thumb .dj-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--smooth);
}

.dj-layout-d-card:hover .dj-layout-d-thumb img,
.dj-layout-d-card:hover .dj-layout-d-thumb .dj-placeholder { transform: scale(1.06); }

.dj-layout-d-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-layout-d-card:hover .dj-layout-d-title,
.dj-layout-d-title a:hover { color: var(--red); }

/* =========================================================
   LAYOUT E: Featured + Side List
   ========================================================= */
.dj-layout-e {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 18px;
}

.dj-layout-e-big {
    grid-row: span 2;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.dj-layout-e-big img,
.dj-layout-e-big .dj-placeholder { height: 100%; min-height: 280px; width: 100%; object-fit: cover; }

.dj-layout-e-big-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.dj-layout-e-big-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.dj-layout-e-big-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-layout-e-big-title a { color: #fff; }

.dj-layout-e-big-time {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.dj-layout-e-small {
    display: flex;
    gap: 15px;
    align-items: center;
    transition: transform var(--fast);
}

.dj-layout-e-small:hover { transform: translateX(3px); }

.dj-layout-e-sm-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
}

.dj-layout-e-sm-thumb img,
.dj-layout-e-sm-thumb .dj-placeholder { width: 100%; height: 100%; object-fit: cover; }

.dj-layout-e-sm-content { flex: 1; }

.dj-layout-e-sm-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-layout-e-small:hover .dj-layout-e-sm-title,
.dj-layout-e-sm-title a:hover { color: var(--red); }

/* =========================================================
   LAYOUT F: 2x2 Card Grid
   ========================================================= */
.dj-layout-f {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 18px;
}

.dj-layout-f-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--smooth);
}

.dj-layout-f-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.dj-layout-f-thumb { aspect-ratio: 16/10; overflow: hidden; }

.dj-layout-f-thumb img,
.dj-layout-f-thumb .dj-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--smooth);
}

.dj-layout-f-card:hover .dj-layout-f-thumb img,
.dj-layout-f-card:hover .dj-layout-f-thumb .dj-placeholder { transform: scale(1.05); }

.dj-layout-f-body { padding: 14px; }

.dj-layout-f-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-layout-f-card:hover .dj-layout-f-title,
.dj-layout-f-title a:hover { color: var(--red); }

/* =========================================================
   PLACEHOLDERS (for posts without images)
   ========================================================= */
.dj-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, #333, #222, #444);
}

/* =========================================================
   8. FOOTER
   ========================================================= */
.dj-footer {
    background: #1a1a1e;
    color: #b0b0b0;
    margin-top: 30px;
    border-top: 4px solid var(--red);
}

.dj-footer-main {
    padding: 40px 0 30px;
}

.dj-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Logo + Brand Column */
.dj-footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dj-footer-main-logo a {
    display: inline-block;
}

.dj-footer-main-logo img {
    max-height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.dj-footer-text-logo {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.dj-footer-tagline {
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

/* Footer Widget Titles */
.dj-footer-widget-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}

.dj-footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

/* Footer Links */
.dj-footer-links li {
    margin-bottom: 10px;
}

.dj-footer-links a {
    color: #999;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dj-footer-links a::before {
    content: '›';
    color: var(--red);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.dj-footer-links a:hover {
    color: var(--red);
}

/* Follow Us Social Box */
.dj-footer-social-box {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.dj-social-box-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.dj-rss-icon {
    width: auto;
    height: 32px;
    color: #fff;
    flex-shrink: 0;
}

.dj-social-box-text {
    display: flex;
    flex-direction: column;
}

.dj-social-box-text strong {
    font-size: 15px;
    color: #fff;
    font-weight: 700;
}

.dj-social-box-text span {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.dj-social-box-icons {
    display: flex;
    gap: 8px;
}

.dj-social-box-icons a {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s;
}

.dj-social-box-icons a:hover {
    transform: translateY(-3px);
}

.dj-social-box-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Specific Social Brand Colors */
.dj-btn-fb { background-color: #1877F2; }
.dj-btn-x { background-color: #000000; border: 1px solid rgba(255,255,255,0.2); }
.dj-btn-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.dj-btn-yt { background-color: #FF0000; }

/* Footer Contact */
.dj-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #999;
}

.dj-footer-contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(226,0,26,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dj-footer-contact-icon svg {
    width: 14px;
    height: 14px;
    fill: var(--red);
}

.dj-footer-contact-text {
    display: flex;
    flex-direction: column;
}

.dj-footer-contact-text a {
    color: #999;
    transition: color 0.2s;
}

.dj-footer-contact-text a:hover {
    color: var(--red);
}

.dj-footer-contact-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    font-weight: 600;
}

/* Newsletter */
.dj-footer-newsletter {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.dj-footer-newsletter-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.dj-footer-newsletter-desc {
    font-size: 13px;
    color: #888;
    margin: 0 0 10px;
}

.dj-footer-newsletter-form {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.dj-footer-newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

.dj-footer-newsletter-form input::placeholder {
    color: #666;
}

.dj-top-bar {
    background: var(--red);
    color: #fff;
    padding: 4px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.dj-footer-newsletter-form button {
    padding: 10px 16px;
    background: var(--red);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.dj-footer-newsletter-form button:hover {
    background: var(--red-dark);
}

/* Copyright */
.dj-copyright {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    margin-top: 20px;
}

.dj-copyright-inner {
    text-align: center;
    font-size: 14px;
    color: #888;
}

/* Back to Top */
.dj-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(226,0,26,0.4);
    transition: all 0.25s ease;
    z-index: 999;
}

.dj-back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(226,0,26,0.5);
}
/* =========================================================
   9. SINGLE POST PAGE
   ========================================================= */
.dj-single-wrap {
    padding: 20px 0 40px;
    background: #f5f5f5;
}

/* Breadcrumbs */
.dj-breadcrumbs {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    padding: 10px 0;
}

.dj-breadcrumbs a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s;
}

.dj-breadcrumbs a:hover { color: var(--red-dark); }

.dj-breadcrumb-sep {
    margin: 0 6px;
    color: #ccc;
}

.dj-breadcrumb-current {
    color: #666;
}

/* Layout */
.dj-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

/* Article */
.dj-article {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    overflow: hidden;
    padding: 30px;
}

.dj-article-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.dj-article-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.dj-article-summary {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 20px;
}

/* Author & Meta */
.dj-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.dj-article-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dj-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dj-author-info {
    display: flex;
    flex-direction: column;
}

.dj-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.dj-author-date {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Circle Share Icons (top) */
.dj-share-top {
    display: flex;
    gap: 8px;
}

.dj-share-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: all 0.25s ease;
    text-decoration: none;
}

.dj-share-circle svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.dj-share-fb { background: #1877f2; }
.dj-share-fb:hover { background: #0d65d9; transform: translateY(-2px); }
.dj-share-tw { background: #1a1a1a; }
.dj-share-tw:hover { background: #333; transform: translateY(-2px); }
.dj-share-wa { background: #25d366; }
.dj-share-wa:hover { background: #1fb855; transform: translateY(-2px); }
.dj-share-tg { background: #0088cc; }
.dj-share-tg:hover { background: #006da5; transform: translateY(-2px); }

/* Featured Image */
.dj-article-featured {
    margin: 0 -30px 25px;
    overflow: hidden;
}

.dj-article-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.dj-image-caption {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 8px 30px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

/* Article Content */
.dj-article-content {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dj-article-content p { margin-bottom: 18px; }

.dj-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 10px 0;
}

.dj-article-content h2,
.dj-article-content h3,
.dj-article-content h4 {
    color: #1a1a1a;
    margin-top: 28px;
    margin-bottom: 12px;
}

.dj-article-content blockquote {
    border-left: 4px solid var(--red);
    background: #fdf6f6;
    margin: 20px 0;
    padding: 16px 20px;
    font-style: italic;
    color: #555;
    border-radius: 0 6px 6px 0;
}

.dj-article-content a {
    color: var(--red);
    text-decoration: underline !important;
}

/* Tags (dark pill style) */
.dj-article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.dj-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: #222;
    border-radius: var(--radius);
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.dj-tag:hover {
    background: var(--red);
    color: #fff;
}

/* Bottom Share (large colored bars like reference) */
.dj-share-bottom-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 20px;
}

.dj-share-big {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: opacity 0.2s;
}

.dj-share-big svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.dj-share-big:hover { opacity: 0.85; }
.dj-share-big.dj-share-fb { background: #4267b2; }
.dj-share-big.dj-share-tw { background: #1a1a1a; }
.dj-share-big.dj-share-wa { background: #25d366; }
.dj-share-big.dj-share-tg { background: #0088cc; }

/* Related Stories (3-col grid) */
.dj-related-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.dj-related-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.dj-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dj-related-card {
    text-decoration: none;
    display: block;
    transition: transform 0.2s;
}

.dj-related-card:hover { transform: translateY(-3px); }

.dj-related-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    margin-bottom: 10px;
}

.dj-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dj-related-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dj-related-card:hover .dj-related-title { color: var(--red); }

/* Prev / Next Navigation */
.dj-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.dj-post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: #fafafa;
    border-radius: var(--radius);
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.25s;
}

.dj-post-nav-item:hover {
    background: #fff;
    border-color: var(--red);
    box-shadow: 0 2px 10px rgba(226,0,26,0.08);
}

.dj-post-next { text-align: right; }

.dj-nav-label {
    font-size: 12px;
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dj-nav-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.dj-post-nav-item:hover .dj-nav-title { color: var(--red); }

/* Single Sidebar */
.dj-single-sidebar {
    position: sticky;
    top: 20px;
}

.dj-sidebar-widget {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* =========================================================
   10. MOBILE HAMBURGER MENU
   ========================================================= */
.dj-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.dj-mobile-toggle svg {
    width: 26px;
    height: 26px;
    fill: #333;
}

.dj-mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

.dj-mobile-overlay.active {
    display: block;
    opacity: 1;
}

.dj-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.dj-mobile-menu.active {
    right: 0;
}

.dj-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid var(--red);
}

.dj-mobile-menu-header img {
    max-height: 36px;
    width: auto;
}

.dj-mobile-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 4px;
    line-height: 1;
}

.dj-mobile-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.dj-mobile-nav a:hover {
    background: #fef2f2;
    color: var(--red);
    padding-left: 28px;
}

/* =========================================================
   11. CAROUSEL ANIMATION
   ========================================================= */
.dj-slider-slide {
    transition: opacity 0.6s ease-in-out;
}

/* =========================================================
   12. TITLE CLAMP (2 lines max)
   ========================================================= */
.dj-title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Archive Grid default: 3 columns */
.dj-archive-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* =========================================================
   PAGE TEMPLATE
   ========================================================= */
.dj-page-wrapper {
    padding: 40px 20px;
    background-color: var(--light-gray);
}

.dj-page-container {
    max-width: 800px; /* Forces optimal reading width */
    margin: 0 auto;   /* Perfect centering */
    width: 100%;
}

.dj-page-article {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dj-page-article .dj-article-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
    text-align: left;
}

.dj-page-article .dj-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .dj-content-layout { grid-template-columns: 1fr; }
    .dj-category-with-sidebar { grid-template-columns: 1fr; }
    .dj-header-nav { display: none; }
    .dj-mobile-toggle { display: block; }
    .dj-mobile-menu { display: block; }
    .dj-layout-a { grid-template-columns: 1fr; }
    .dj-layout-b { grid-template-columns: repeat(2, 1fr); }
    .dj-single-layout { grid-template-columns: 1fr; }
    .dj-single-sidebar { position: static; }
    .dj-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .dj-container { padding: 0 12px; }
    .dj-top-bar-links { display: none; }
    .dj-top-bar-tagline { display: none; }
    .dj-top-bar { padding: 4px 0; font-size: 11px; }
    .dj-top-bar-date { font-size: 13px; }
    .dj-header-inner { padding: 8px 0; }
    .dj-logo-area { display: block; margin: 8px 0; }
    .dj-logo-area img { max-height: 40px; margin: 4px 0; }
    .dj-inline-search { max-width: 140px; }
    .dj-inline-search input { padding: 6px 8px; font-size: 12px; }
    .dj-inline-search-btn { padding: 6px 10px; }
    .dj-breaking-label { font-size: 16px; padding: 0 16px 0 12px; }
    .dj-ticker-content a { font-size: 13px; }
    .dj-layout-d { grid-template-columns: 1fr; }
    .dj-layout-e { grid-template-columns: 1fr; }
    .dj-layout-e-big { grid-row: span 1; }
    .dj-layout-f { grid-template-columns: 1fr; }
    .dj-layout-b { grid-template-columns: 1fr; }
    .dj-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .dj-copyright-inner { flex-direction: column; gap: 8px; text-align: center; }
    .dj-slider-content { padding: 15px 15px; }
    .dj-slider-title { font-size: 20px; }
    .dj-slider-slide { height: 260px; }
    .dj-article { padding: 16px; }
    .dj-article-title { font-size: 22px; }
    .dj-article-featured { margin: 0 -16px 20px; }
    .dj-article-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
    .dj-share-top { margin-top: 4px; }
    .dj-article-content { font-size: 15px; line-height: 1.8; }
    .dj-post-nav { grid-template-columns: 1fr; }
    .dj-related-grid { grid-template-columns: 1fr; }
    .dj-share-bottom-bar { grid-template-columns: repeat(4, 1fr); }
    .dj-share-big { padding: 12px 8px; }
    /* Category / Archive pages: single column */
    .dj-section-grid { grid-template-columns: 1fr !important; }
    /* Title clamp for all post cards */
    .dj-card-title,
    .dj-sidebar-post-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .dj-hero-slider { height: 260px; }
    .dj-section-header h2 { font-size: 18px; }
    .dj-main-area { padding: 12px 0; }
    .dj-archive-grid { grid-template-columns: 1fr; }
    .dj-two-cols { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .dj-container { padding: 0 10px; }
    .dj-footer-grid { grid-template-columns: 1fr; }
    .dj-slider-slide { height: 220px; }
    .dj-hero-slider { height: 220px; }
    .dj-slider-title { font-size: 16px; }
    .dj-article-title { font-size: 20px; }
    .dj-share-circle { width: 34px; height: 34px; }
    .dj-share-circle svg { width: 15px; height: 15px; }
    .dj-related-heading { font-size: 17px; }
    .dj-breadcrumbs { font-size: 12px; }
    .dj-page-article { padding: 20px; }
}

/* Slider Arrow Mobile Sizing */
@media (max-width: 768px) {
    .dj-slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* =========================================================
   ARCHIVE & INDEX UTILITY CLASSES
   ========================================================= */
.dj-cat-section {
    margin-bottom: 25px;
}

.dj-cat-title {
    font-size: 22px;
}

.dj-archive-grid {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dj-index-grid {
    grid-template-columns: repeat(3, 1fr);
}

.dj-pagination-wrap {
    text-align: center;
    padding: 30px 0;
}

.dj-empty-state {
    padding: 60px;
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
}

/* =========================================================
   PHASE 2 UTILITY CLASSES (SVGs, Placeholders, Empty States)
   ========================================================= */
.dj-meta-icon {
    margin-right: 4px;
    vertical-align: middle;
}

.dj-placeholder-green {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5016, #1a3a0a, #3a6b22);
}

.dj-placeholder-red {
    height: 100%;
    min-height: 340px;
    background: linear-gradient(135deg, #8b1a1a, #5a0d0d, #b02d2d);
}

.dj-placeholder-dark {
    height: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, #3a3a4a, #2a2a38, #4a4a5c);
}

.dj-empty-state-small {
    padding: 20px;
    text-align: center;
    color: #888;
}

.dj-empty-state-mini {
    padding: 15px;
    text-align: center;
    color: #888;
}

.dj-mb-0 {
    margin-bottom: 0 !important;
}

/* =========================================================
   COMMENTS AREA
   ========================================================= */
.dj-comments-area {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border);
}

.dj-comments-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 20px;
}

.dj-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.dj-comment-list .comment {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.dj-comment-list .comment:last-child {
    border-bottom: none;
}

.dj-comment-list .comment-body {
    display: flex;
    gap: 12px;
}

.dj-comment-list .comment-author img {
    border-radius: 50%;
}

.dj-comment-list .comment-author .fn {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
}

.dj-comment-list .comment-metadata {
    font-size: 12px;
    color: var(--text-light);
}

.dj-comment-list .comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
    margin-top: 8px;
}

.dj-no-comments {
    color: var(--text-light);
    font-style: italic;
    padding: 15px 0;
}

.dj-comments-area .comment-respond {
    margin-top: 20px;
}

.dj-comments-area .comment-reply-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.dj-comments-area .comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.dj-comments-area .comment-form input[type="text"],
.dj-comments-area .comment-form input[type="email"],
.dj-comments-area .comment-form input[type="url"],
.dj-comments-area .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    transition: border-color var(--fast);
    margin-bottom: 15px;
}

.dj-comments-area .comment-form input:focus,
.dj-comments-area .comment-form textarea:focus {
    border-color: var(--red);
    outline: none;
}

.dj-comments-area .comment-form .submit {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--fast);
}

.dj-comments-area .comment-form .submit:hover {
    background: var(--red-dark);
}

/* =========================================================
   UPDATED DATE (single.php)
   ========================================================= */
.dj-updated-date {
    margin-top: 2px;
}

