/*
 * DigiAsset Directory Pro - Public Stylesheet (Professional Redesign)
 * Current version including all fixes and user modifications.
 */

/* --- NEW UNIVERSAL HEADER STYLES (FileCR REPLICA) --- */
.dad-universal-header-wrap { background-color: #f4f7f9; border-bottom: 1px solid #e9eef2; padding-top: 0px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); width: 100vw; position: relative; left: 50%; margin-left: -50vw; visibility: hidden; }
.dad-universal-header-wrap.dad-header-visible { visibility: visible; }
.header-wrap-info { background: linear-gradient(to right, #00b4d8, #0077b6); width: 100%; color: #fff; border-top: 1px solid #48cae4; position: relative; }
.dad-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 15px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.header-wrap-info .header-wrap-title { font-size: 1.6em; font-weight: 600; margin: 0; color: #fff; }
.header-wrap-info .header-wrap-breadcrumbs { font-size: 0.9em; }
.header-wrap-info .header-wrap-breadcrumbs a { color: #fff; text-decoration: none; opacity: 0.8; }
.header-wrap-info .header-wrap-breadcrumbs a:hover { opacity: 1; }

/* --- Global Layout & Font --- */
body.single-digi_asset, .dad-download-page, body.single-dad_news, body.post-type-archive-dad_news { background-color: #f4f7f9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body.single-digi_asset #primary.content-area, .dad-download-page #primary.content-area, body.single-dad_news #primary.content-area, body.post-type-archive-dad_news #primary.content-area { width: 100% !important; max-width: 1200px !important; margin: 30px auto !important; float: none !important; padding: 0 15px !important; box-sizing: border-box; }
body.single-digi_asset .entry-header, body.single-dad_news .entry-header { display: none; }

/* --- Main Asset Container --- */
.dad-single-asset-redesigned { border: none; padding: 0; background: transparent; }
.layout-desktop { display: block; }
.layout-mobile { display: none; }

/* --- Asset Header (Icon + Title) --- */
.asset-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; margin-bottom: 25px; padding: 25px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.asset-icon img { width: 80px; height: 80px; border-radius: 12px; }
.asset-title-group { display: flex; flex-direction: column; align-items: center; }
.asset-title-group .entry-title { font-size: 1.8em; font-weight: 700; margin: 0 0 5px; }
.asset-short-description { font-size: 1.1em; color: #555; margin-top: 10px; }

/* --- Main Layout --- */
.asset-main-layout { display: grid; grid-template-columns: 1fr; gap: 30px; }

/* --- White Container Styles --- */
.asset-main-content .asset-content-box, .asset-sidebar .sidebar-box, .layout-mobile .asset-content-box, .layout-mobile .sidebar-box { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 30px; }
.asset-header { margin-bottom: 25px; }
.section-title { font-size: 1.5em; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #e9eef2; font-weight: 600; }

/* --- Sidebar --- */
.sidebar-title { font-size: 1.3em; margin: 0 0 20px 0; font-weight: 600; padding-bottom: 15px; border-bottom: 1px solid #e9eef2; }

/* --- Product Information List Styles --- */
.info-list .info-item { display: flex; justify-content: space-between; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.info-list .info-item:last-child { border-bottom: none; }
.info-list .info-item .info-label { font-weight: 400; color: #555; padding-right: 10px; }
.info-list .info-item .info-value { color: #222; text-align: right; font-weight: 600; }
.info-tags { margin-top: 20px; }
.info-tags a { display: inline-block; background: #e9eef2; color: #007bff; padding: 5px 10px; border-radius: 4px; text-decoration: none; margin: 0 5px 5px 0; font-size: 0.9em; font-weight: 500; }
.info-tags a:hover { background: #007bff; color: #fff; }

/* --- Download Box Styles --- */
.sidebar-box.download-box-new { text-align: center; padding: 25px; }
.download-box-new .stats-bar { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; color: #555; }
.download-box-new .stat-item { display: flex; align-items: center; gap: 8px; }
.download-box-new .stat-item img { width: 16px; height: 16px; }
.download-box-new .stat-item .button.favorite { background: none; border: none; padding: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; color: #ff0000; }
.download-box-new .stat-item .button.favorite img { width: 16px; height: 16px; filter: invert(15%) sepia(99%) saturate(7408%) hue-rotate(357deg) brightness(96%) contrast(111%); }
.download-box-new .stat-item .button.favorite.liked, .download-box-new .stat-item .button.favorite:hover { color: #cc0000; }
.download-box-new .stat-item .button.favorite.liked img, .download-box-new .stat-item .button.favorite:hover img { filter: invert(11%) sepia(72%) saturate(6281%) hue-rotate(357deg) brightness(83%) contrast(113%); }

.visitor-rating { margin-bottom: 15px; direction: rtl; text-align: center; }
.visitor-rating .star { font-size: 28px; color: #ddd; cursor: pointer; transition: color 0.2s; }
.visitor-rating:not(.rated) .star:hover, .visitor-rating:not(.rated) .star:hover ~ .star, .visitor-rating.rated .star.selected, .visitor-rating.rated .star.selected ~ .star { color: #ffc107; }
.visitor-rating.rated .star { cursor: default; }
.download-box-new .rating-summary { margin-bottom: 20px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 0.9em; color: #666; }
.rating-summary .numeric-rating { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.rating-summary .stars, .asset-reputation .stars, .asset-col-reputation .stars { display: inline-block; font-size: 18px; --rating: 0; --star-background: #ddd; --star-color: #ffc107; --percent: calc(var(--rating) / 5 * 100%); }
.rating-summary .stars::before, .asset-reputation .stars::before, .asset-col-reputation .stars::before { content: '★★★★★'; letter-spacing: 2px; background: linear-gradient(90deg, var(--star-color) var(--percent), var(--star-background) var(--percent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.download-box-new .file-size { font-size: 2.8em; font-weight: 700; color: #222; line-height: 1.1; margin-bottom: 20px; }
.download-box-new .button-stack { display: grid; gap: 10px; }
.torrent-button-group { display: flex; gap: 5px; }
.dad-button-new { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; font-size: 1em; font-weight: 600; text-decoration: none; border-radius: 6px; border: none; cursor: pointer; transition: all 0.2s ease-in-out; box-sizing: border-box; }
.dad-button-new.primary { background-color: #ffc107; color: #222 !important; }
.dad-button-new.primary:hover { background-color: #e6ac00; }
.dad-button-new.torrent { background-color: #008080; color: #fff !important; flex-grow: 1; }
.dad-button-new.torrent:hover { background-color: #006666; }
.dad-button-new.icon-button { background-color: #ffc107; color: #fff !important; padding: 12px; width: auto; min-width: 44px; flex-shrink: 0; }
.dad-button-new.icon-button:hover { background-color: #006666; }
.dad-button-new.version-history-link { background-color: #6c757d; color: #fff !important; }
.dad-button-new.version-history-link:hover { background-color: #5a6268; }
.dad-button-new.version-history-link img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

/* --- Version History List Styles --- */
.version-history-list .version-history-header { display: none; font-weight: bold; color: #333; padding-bottom: 10px; border-bottom: 2px solid #ddd; margin-bottom: 10px; }
.version-history-list .version-item { display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: center; padding: 15px 0; border-bottom: 1px solid #e9eef2; }
.version-history-list .version-item:last-child { border-bottom: none; }
.version-date { font-weight: 600; color: #333; margin-bottom: 5px; grid-column: 1 / -1; }
.version-info { grid-column: 1 / 2; text-align: left; }
.version-download { grid-column: 2 / 3; text-align: center; }
.version-info strong { display: block; margin-bottom: 5px; }
.version-info span { display: block; color: #666; font-size: 0.9em; }
.version-download span { display: block; font-size: 0.8em; color: #777; margin-top: 5px; }

/* --- Social Share Buttons --- */
.social-share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social-share-buttons .social-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff !important; text-decoration: none; transition: transform 0.2s, opacity 0.2s; border: none; cursor: pointer; }
.social-share-buttons .social-button img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.social-share-buttons .social-button:hover { transform: scale(1.1); opacity: 0.9; }
.social-button.whatsapp { background-color: #25D366; }
.social-button.telegram { background-color: #0088cc; }
.social-button.reddit { background-color: #FF4500; }
.social-button.pinterest { background-color: #E60023; }
.social-button.facebook { background-color: #1877F2; }
.social-button.twitter { background-color: #000000; }
.social-button.email { background-color: #777; }
.social-button.copy-link { background-color: #007bff; }

/* --- Comments Area --- */
#comments { margin-top: 30px; background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
#comments .comments-title, #comments .comment-reply-title { font-size: 1.5em; font-weight: 600; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #e9eef2; }
.comment-form-comment label { display: none; }
.comment-form-comment textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 6px; background: #f9fafb; font-size: 1em; min-height: 120px; box-sizing: border-box; margin-bottom: 15px; }
.comment-form-author label, .comment-form-author input { display: block; width: 100%; }
.comment-form-author input { padding: 12px; border: 1px solid #ddd; border-radius: 6px; background: #f9fafb; font-size: 1em; margin-top: 5px; }
.form-submit .submit { background: #008080; margin: 10px; color: #fff; border: none; padding: 12px 25px; border-radius: 25px; cursor: pointer; font-weight: bold; font-size: 1em; transition: background-color 0.2s; }
.form-submit .submit:hover { background: #006666; }
.comment-list { list-style: none; padding: 0; margin: 30px 0 0 0; }
.comment-list .comment { padding: 20px 0; border-top: 1px solid #e9eef2; }
.comment-list .comment:first-child { border-top: none; padding-top: 0; }
.comment-list .comment-body { display: flex; gap: 15px; align-items: flex-start; }
.comment-list .comment-author .avatar { border-radius: 50%; width: 40px; height: 40px; }
.comment-content-wrapper { flex: 1; }
.comment-author { font-weight: bold; display: inline; font-size: 1em; }
.comment-meta { font-size: 0.85em; color: #777; margin-left: 10px; }
.comment-meta a { text-decoration: none; color: #777; }
.comment-content { margin-top: 8px; color: #333; line-height: 1.6; }
.reply { text-align: right; margin-top: -15px; }
.reply .comment-reply-link { color: #555; text-decoration: none; font-size: 0.9em; font-weight: 500; }
.comment-notes { font-size: 0.9em; color: #666; margin-bottom: 15px; }
.comment-form-rating { display: none; }
body.single-digi_asset .comment-form-email { display: block !important; }

/* --- Media Slider --- */
.asset-media-slider { position: relative; overflow: hidden; margin-top: 25px; margin-bottom: 25px; background-color: #000; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); aspect-ratio: 16 / 9; }
.slider-slides { display: flex; height: 100%; transition: transform 0.5s ease-in-out; }
.slider-slides .slide { flex: 0 0 100%; min-width: 100%; box-sizing: border-box; height: 100%; display: flex; align-items: center; justify-content: center; }
.slider-slides .slide img { width: 100%; height: 100%; object-fit: contain; }
.slider-slides .slide .asset-video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding-bottom: 0; }
.slider-slides .slide .asset-video-wrapper iframe { width: 100%; height: 100%; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background-color: #ffc107; color: #222; border: none; cursor: pointer; z-index: 10; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, opacity 0.3s, transform 0.2s; opacity: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.asset-media-slider:hover .slider-nav { opacity: 1; }
.slider-nav:hover { background-color: #e6ac00; transform: translateY(-50%) scale(1.1); }
.slider-nav img { width: 24px; height: 24px; filter: brightness(0) saturate(100%) invert(12%) sepia(1%) saturate(14%) hue-rotate(315deg) brightness(99%) contrast(84%); }
.slider-nav.prev { left: 15px; }
.slider-nav.next { right: 15px; }
.slider-nav:disabled { opacity: 0.2; cursor: default; transform: translateY(-50%) scale(1); }

/* --- Lightbox --- */
.dad-lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 10000; padding: 15px; box-sizing: border-box; }
.dad-lightbox-container { position: relative; max-width: 90%; max-height: 90%; }
.dad-lightbox-container img { max-width: 100%; max-height: 90vh; display: block; }
.dad-lightbox-close { position: absolute; top: -15px; right: -15px; color: #fff; background: #000; width: 30px; height: 30px; text-align: center; line-height: 30px; font-size: 24px; border-radius: 50%; cursor: pointer; }

/* --- Tablet & Desktop Media Queries --- */
@media (min-width: 768px) {
    .asset-header { flex-direction: row; text-align: left; align-items: center; }
    .asset-title-group { align-items: flex-start; }
    .info-list .info-item { flex-direction: row; align-items: center; }
    .info-list .info-item span:last-child { margin-top: 0; }
    .version-history-list .version-history-header { display: grid; grid-template-columns: 150px 1fr 120px; gap: 20px; }
    .version-history-list .version-item { display: grid; grid-template-columns: 150px 1fr 120px; text-align: left; grid-template-areas: "date info download"; align-items: center; }
    .version-history-list .version-item .version-date { grid-area: date; margin-bottom: 0; }
    .version-history-list .version-item .version-info { grid-area: info; }
    .version-history-list .version-item .version-download { grid-area: download; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
}
@media (min-width: 992px) { .asset-main-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
@media (max-width: 991px) { .layout-desktop { display: none; } .layout-mobile { display: block; } }
@media (max-width: 767px) { .header-wrap-info .dad-container { justify-content: center; text-align: center; } .header-wrap-info .header-wrap-breadcrumbs { display: none; } }

/* --- Ad Styles --- */
.dad-ad-container { margin: 20px auto; text-align: center; }
.dad-ad-container img { max-width: 100%; height: auto; }
.dad-ad-placeholder { background-color: #f0f6ff; border: 2px dashed #a0c4ff; color: #4a5568; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; min-height: 90px; padding: 20px; box-sizing: border-box; }

/* --- Download Page Design --- */
.dad-download-page .dad-download-wrapper { max-width: 600px; margin: 0 auto; padding: 50px 0; }
.dad-download-box { background: #ffffff; border: 1px solid #e9eef2; border-radius: 12px; padding: 40px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dad-download-box .download-icon { margin-bottom: 10px; }
.dad-download-box .download-icon img { width: 80px; height: 80px; }
.dad-download-box .download-info h1 { font-size: 2em; font-weight: 700; margin: 0 0 5px 0; color: #2d3748; }
.dad-download-box .download-info p { margin: 0 0 20px 0; color: #718096; font-size: 1.1em; }
#download-process-area .dad-button-new { width: auto; padding: 14px 40px; font-size: 1.1em; font-weight: 700; background-color: #48bb78; color: #fff !important; border-radius: 50px; box-shadow: 0 4px 14px rgba(72, 187, 120, 0.3); transition: all 0.3s ease; }
#download-process-area .dad-button-new:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4); }
.dad-download-box .zip-password { color: #e53e3e; font-size: 1em; margin-top: 25px; background-color: #fff5f5; padding: 8px 15px; border-radius: 6px; display: inline-block; }
#countdown-area p { color: #4a5568; font-weight: 500; margin-top: 5px; }
#countdown-area .countdown-timer { font-size: 2.5em; font-weight: 700; color: #2d3748; margin-bottom: 15px; }
.progress-bar-container { width: 80%; height: 8px; background-color: #e2e8f0; border-radius: 4px; overflow: hidden; margin: 0 auto; }
.progress-bar { width: 0%; height: 100%; background-color: #48bb78; border-radius: 4px; transition: width 1s linear; }

/* Related Posts */
.related-posts-section { margin-top: 50px; }
.related-posts-section h2 { font-size: 1.6em; font-weight: 700; color: #2d3748; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #48bb78; display: inline-block; }
.related-posts-grid { display: grid; gap: 20px; }
.related-post-item { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 15px; align-items: center; text-decoration: none; color: #333; padding: 15px; background: #fff; border-radius: 8px; border: 1px solid #e9eef2; transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease; }
.related-post-item:hover { transform: translateY(-3px); box-shadow: 0 7px 25px rgba(0,0,0,0.08); border-color: #48bb78; }
.related-post-thumb img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; }
.related-post-info h3 { margin: 0 0 5px; font-size: 1.1em; color: #2d3748; font-weight: 600; }
.related-post-info span { font-size: 0.9em; color: #718096; }
.related-post-reputation { text-align: center; }
.related-post-reputation strong { display: block; font-size: 0.8em; color: #a0aec0; margin-bottom: 5px; font-weight: 500; }
.related-post-meta { font-weight: 600; text-align: right; color: #4a5568; }

/* --- Homepage Asset Layout Styles --- */
.dad-homepage-layout { display: grid; grid-template-columns: 1fr; gap: 30px; }
.dad-homepage-main {
    background: #fff;
    border: 1px solid #e9eef2;
    border-radius: 8px;
    overflow: hidden; /* To contain the rounded corners of the tabs */
}
.dad-homepage-platform-section, .dad-sidebar-section { background: #fff; border: 1px solid #e9eef2; border-radius: 8px; padding: 20px; margin-bottom: 30px; }

/* --- REVISED: Homepage Latest News Section Styles (Mobile First) --- */
.dad-latest-news-section {
    grid-column: 1 / -1;
    padding: 20px 0;
    background-color: #f9fafb;
    border-top: 1px solid #e9eef2;
    margin-top: 30px;
    overflow: hidden;
}

.dad-latest-news-section .dad-section-header {
    background-color: #fff;
    border: 1px solid #e9eef2;
    border-left: 5px solid #0077b6;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
}

.dad-latest-news-section .dad-section-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dad-latest-news-section .dad-section-title .news-icon {
    width: 28px;
    height: 28px;
    color: #0077b6;
}

.dad-latest-news-section .dad-view-all-button {
    background-color: transparent;
    border: 2px solid #0077b6;
    color: #0077b6;
    font-weight: 700;
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9em;
}

.dad-latest-news-section .dad-view-all-button:hover {
    background-color: #0077b6;
    color: #fff;
}


/* Mobile & Default Styles: 2x2 Grid now */
.dad-homepage-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default to 2 columns */
    gap: 15px;
    padding: 0 20px 15px 20px;
}

.dad-news-card-v2 {
    /* Removed slider-specific styles */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e9eef2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}
.dad-news-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #0077b6;
}

.dad-news-card-v2 .news-card-thumbnail-v2 {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.dad-news-card-v2 .news-card-thumbnail-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.dad-news-card-v2:hover .news-card-thumbnail-v2 img {
    transform: scale(1.05);
}

.dad-news-card-v2 .news-card-content-v2 {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dad-news-card-v2 .news-card-title-v2 {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
    color: #2d3748;
    flex-grow: 1;
}

.dad-news-card-v2 .news-card-meta-v2 {
    font-size: 0.8em;
    color: #718096;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
    margin-top: auto;
}

.dad-news-card-v2 .news-card-meta-v2 .news-author {
    font-weight: 500;
}

/* Tablet View: Also 2 columns, just adjust padding */
@media (min-width: 600px) {
    .dad-latest-news-section {
        padding: 20px;
    }
    .dad-homepage-news-grid {
        padding: 0;
    }
     .dad-latest-news-section .dad-section-header {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Desktop View: Four Columns */
@media (min-width: 992px) {
    .dad-homepage-news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dad-style-update .dad-section-header { border-bottom: 1px solid #ddd; padding-bottom: 10px; margin-bottom: 0; }
.dad-style-update .dad-section-title { font-size: 1.4em; }
.dad-view-all-button { background-color: #f0f0f0; border: 1px solid #ccc; border-radius: 4px; padding: 5px 15px; text-decoration: none; color: #333; font-size: 0.9em; font-weight: 600; }
.dad-view-all-button:hover { background-color: #e0e0e0; }
.dad-asset-list-v2 { background-color: #fff; border: 1px solid #e9eef2; border-top: none; padding: 0 20px; }
.dad-asset-row { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: inherit; min-height: 100px; box-sizing: border-box; }
.dad-asset-row:last-child { border-bottom: none; }
.asset-col-icon { flex: 0 0 15%; }
.asset-col-title { flex: 0 0 40%; padding-right: 15px; }
.asset-col-platform { flex: 0 0 15%; }
.asset-col-reputation { flex: 0 0 20%; }
.asset-col-filesize { flex: 0 0 10%; }
.dad-asset-row .asset-icon { position: relative; flex-shrink: 0; }
.dad-asset-row .asset-icon img { width: 64px; height: 64px; border-radius: 8px; }
.dad-asset-row .asset-title-group { flex-grow: 1; }
.dad-asset-row .asset-title-group .asset-title { font-size: 1.1em; font-weight: 600; margin: 0 0 5px 0; color: #2d3748; transition: color 0.2s; }
.dad-asset-row:hover .asset-title { color: #007bff; }
.dad-asset-row .asset-title-group .asset-excerpt { font-size: 0.9em; color: #718096; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dad-asset-row .asset-title-group .asset-categories a { font-size: 0.85em; color: #007bff; text-decoration: none; }
.dad-asset-row .asset-title-group .asset-categories a:hover { text-decoration: underline; }
.asset-col-platform, .asset-col-reputation, .asset-col-filesize { text-align: center; color: #555; font-size: 0.9em; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid #f0f0f0; height: 100%; min-height: 70px; }
.asset-col-platform .platform-icon-name { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 5px; }
.asset-col-platform .platform-icon-small { width: 20px; height: 20px; }
.asset-col-reputation .reputation-label { display: block; margin-bottom: 5px; }
.asset-col-platform .platform-downloads, .asset-col-reputation .view-count { display: flex; align-items: center; justify-content: center; gap: 5px; color: #718096; }
.asset-col-platform .platform-downloads svg { fill: #718096; width: 14px; height: 14px; }
.asset-col-reputation .stars { font-size: 18px; }
.asset-col-filesize { font-weight: 600; font-size: 1.1em; color: #333; }

/* --- Homepage Redesign V3 --- */

/* Hero Section */
.dad-hero-section {
    background: linear-gradient(to right, #0077b6, #00b4d8);
    color: #fff;
    padding: 50px 0 20px 0; /* Reduced bottom padding */
    text-align: center;
    margin-bottom: 30px;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
}
.dad-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.dad-hero-content h1 {
    font-size: 2.5em;
    margin: 0 0 10px;
}
.dad-hero-content p {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
}

/* Tabs Container */
.dad-tabs-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    border: none; /* Removed border to avoid double-border */
}

/* Tabs Navigation */
.dad-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e9eef2;
    background: #f9fafb;
}
.dad-tabs-nav li {
    flex-grow: 1;
    text-align: center;
}
.dad-tabs-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    justify-content: center;
}
.dad-tabs-nav a:hover {
    background: #f0f2f5;
    color: #000;
}
.dad-tabs-nav a.active {
    color: #0077b6;
    border-bottom-color: #0077b6;
    background: #fff;
}
.dad-tabs-nav .platform-icon {
    width: 20px;
    height: 20px;
}

/* Tabs Content */
.dad-tab-content {
    display: none;
    padding: 5px;
}
.dad-tab-content.active {
    display: block;
}

/* --- Homepage Redesign V4 --- */

.dad-asset-grid-v4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 20px;
}

.dad-asset-card-v4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #e9eef2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.dad-asset-card-v4:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: #0077b6;
}


.dad-asset-card-v4 .asset-rank {
    font-size: 1.1em;
    color: #888;
    width: 30px;
    text-align: center;
}

.dad-asset-card-v4 .asset-card-icon {
    position: relative;
    margin-bottom: 10px;
}

.dad-asset-card-v4 .asset-card-icon img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
}

.dad-asset-card-v4 .asset-card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dad-asset-card-v4 .asset-title {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 5px;
    line-height: 1.3;
}

.dad-asset-card-v4 .asset-category {
    font-size: 0.9em;
    color: #777;
    display: block;
    margin-bottom: 8px;
}

.dad-asset-card-v4 .asset-rating {
    font-size: 0.9em;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dad-asset-card-v4 .asset-rating .star {
    color: #ffb900;
    font-size: 1.1em;
    margin-left: 4px;
}

/* View All Button */
.dad-view-all-container {
    text-align: center;
    margin-top: 25px;
}
.dad-view-all-button-v4 {
    display: inline-block;
    background-color: #f0f2f5;
    color: #333;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.dad-view-all-button-v4:hover {
    background-color: #e9eef2;
}


/* Sidebar V2 */
.dad-sidebar-section.dad-style-update { padding: 15px; }
.dad-sidebar-section.dad-style-update .dad-section-header { padding-bottom: 10px; margin-bottom: 10px; }
.dad-sidebar-asset-list-v2 .dad-sidebar-asset-item-v2 { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; text-decoration: none; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.dad-sidebar-asset-list-v2 .dad-sidebar-asset-item-v2:last-child { border-bottom: none; }
.dad-sidebar-asset-list-v2 .dad-sidebar-asset-item-v2:hover .asset-title { color: #007bff; }
.dad-sidebar-asset-item-v2 .asset-icon img { width: 48px; height: 48px; border-radius: 6px; }
.dad-sidebar-asset-item-v2 .asset-info .asset-title { font-size: 1em; font-weight: 600; color: #333; margin: 0 0 4px 0; transition: color 0.2s; }
.dad-sidebar-asset-item-v2 .asset-info .asset-category { font-size: 0.85em; color: #718096; }
.dad-sidebar-asset-item-v2 .asset-filesize { font-size: 0.9em; font-weight: 600; color: #555; }

/* Asset Tag Styles */
.asset-tag {
    position: absolute;
    top: -4px;
    left: 8px;
    background-color: #6c757d;
    color: #fff;
    padding: 1px 5px;
    font-size: 6px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    line-height: 1.5;
    z-index: 1;
}
.asset-tag.tag-recommended { background-color: #28a745; }
.asset-tag.tag-pre-activated { background-color: #007bff; }
.asset-tag.tag-new { background-color: #fd7e14; }
.asset-tag.tag-hot { background-color: #dc3545; }

/* --- Search Bar --- */
.dad-asset-search-container {
    margin-top: 25px;
}
.dad-asset-search-form .search-form-inner {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}
.dad-asset-search-form .search-field-wrapper {
    flex-grow: 1;
}
.dad-asset-search-form .search-field {
    width: 100%;
    padding: 15px 20px;
    border: none;
    font-size: 1em;
    background: transparent;
    color: #333;
}
.dad-asset-search-form .platform-filter-wrapper {
    border-left: 1px solid #e9eef2;
}
.dad-asset-search-form .platform-select {
    padding: 15px 20px;
    border: none;
    background: transparent;
    font-size: 1em;
    color: #555;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 40px;
}
.dad-asset-search-form .search-submit {
    background-color: #0077b6;
    color: #fff;
    border: none;
    padding: 15px 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.dad-asset-search-form .search-submit:hover {
    background-color: #005f8a;
}

/* --- Search Results & Archive Headers --- */
.dad-search-results-page .header-wrap-info,
body.post-type-archive-dad_news .header-wrap-info {
    margin-bottom: 30px;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
}
.dad-search-results-page .search-title span {
    font-weight: bold;
}
.search-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}
.search-main-content {
    max-width: 800px;
}
.search-sidebar .widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.search-sidebar .widget:last-child {
    margin-bottom: 0;
}
.search-sidebar .widget-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9eef2;
}
.search-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-sidebar .dad-filter-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s, color 0.2s;
}
.search-sidebar .dad-filter-list li a:hover {
    background-color: #f0f2f5;
}
.search-sidebar .dad-filter-list .filter-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 3px;
    transition: all 0.2s;
}
.search-sidebar .dad-filter-list .filter-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.search-sidebar .dad-filter-list a.active .filter-checkbox {
    background-color: #28a745;
    border-color: #28a745;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9" fill="none"><path d="M1 4.5L4.5 8L11 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}
.search-sidebar .dad-filter-list a.active {
    font-weight: 600;
    color: #000;
}


.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 20px;
}
.search-results-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.search-result-item {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px 100px;
    gap: 20px;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9eef2;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item .asset-icon {
    position: relative;
}
.search-result-item .asset-icon img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
}
.search-result-item .asset-title {
    font-size: 1.2em;
    margin: 0 0 5px;
}
.search-result-item .asset-title a {
    text-decoration: none;
    color: #222;
}
.search-result-item .asset-meta {
    text-align: center;
    width: auto;
}
.search-result-item .asset-meta .meta-label {
    font-size: 0.8em;
    color: #777;
    display: block;
}
.search-result-item .asset-filesize .meta-value {
    font-weight: 600;
}

.search-result-item .asset-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.search-result-item .asset-platform .platform-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.search-result-item .asset-platform .meta-label {
    margin-bottom: 0;
}

.dad-sort-by-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ddd;
    padding: 8px 30px 8px 15px;
    border-radius: 4px;
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E');
    background-position: right 10px center;
    background-repeat: no-repeat;
    cursor: pointer;
    font-size: 0.9em;
}

/* --- No Results Found --- */
.no-results-found {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.no-results-illustration {
    max-width: 150px;
    margin-bottom: 20px;
}
.no-results-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}
.no-results-text {
    color: #666;
    margin: 0 0 25px;
}
.no-results-button {
    display: inline-block;
    background-color: #343a40;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.no-results-button:hover {
    background-color: #23272b;
    color: #fff !important;
}


@media (max-width: 991px) {
    .dad-asset-grid-v4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-layout {
        grid-template-columns: 1fr;
    }
    .search-sidebar {
        margin-bottom: 0; /* FIX: Remove extra space on mobile */
    }
    .search-result-item {
        grid-template-columns: 64px 1fr auto;
        grid-template-areas: 
            "icon details filesize"
            "icon meta meta";
        gap: 10px 20px;
    }
    .search-result-item .asset-icon { grid-area: icon; }
    .search-result-item .asset-details { grid-area: details; }
    .search-result-item .asset-filesize { grid-area: filesize; }
    .search-result-item .asset-meta-wrapper { 
        grid-area: meta;
        display: flex;
        gap: 20px;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
        margin-top: 10px;
    }
    .search-result-item .asset-platform,
    .search-result-item .asset-reputation {
        flex-direction: row;
    }
}

@media (max-width: 767px) {
    .dad-asset-row { display: flex; flex-wrap: wrap; }
    .asset-col-icon { flex: 0 0 64px; }
    .asset-col-title { flex: 1 1 auto; }
    .asset-col-platform, .asset-col-reputation, .asset-col-filesize { flex: 1 1 50%; border-left: none; text-align: left; padding-top: 10px; }
    .asset-col-platform .platform-icon-name, .asset-col-platform .platform-downloads { justify-content: flex-start; }
    .asset-col-reputation { align-items: flex-start; }
    .asset-col-filesize { text-align: right; }
    .dad-asset-grid-v4 {
        gap: 15px;
        padding: 15px;
    }
    .dad-asset-card-v4 {
        flex-direction: column;
        padding: 15px 8px;
        text-align: center;
    }
    .dad-asset-card-v4 .asset-card-icon img {
        width: 50px;
        height: 50px;
        margin: 0 0 10px;
    }
    .dad-asset-card-v4 .asset-title {
        font-size: 0.9em;
    }
    .dad-asset-card-v4 .asset-category,
    .dad-asset-card-v4 .asset-rating {
        font-size: 0.8em;
    }
    .dad-asset-card-v4 .asset-rating {
        justify-content: center;
    }
    .asset-tag {
        left: 50%;
        transform: translateX(-50%);
        top: -4px;
    }
    .dad-asset-search-form .search-form-inner {
        flex-direction: column;
    }
    .dad-asset-search-form .platform-filter-wrapper {
        border-left: none;
        border-top: 1px solid #e9eef2;
    }
    
    /* ** NEW: Mobile/Tablet Search Result Item Styles ** */
    .search-result-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "icon title filesize"
            "icon meta-platform meta-reputation";
        align-items: center;
        gap: 5px 15px;
        padding: 15px;
    }
    .search-result-item .asset-icon {
        grid-area: icon;
        align-self: center;
    }
    .search-result-item .asset-details {
        grid-area: title;
        align-self: end;
        padding-bottom: 2px;
    }
    .search-result-item .asset-title {
        font-size: 1.1em;
    }
    .search-result-item .asset-filesize {
        grid-area: filesize;
        align-self: start;
        text-align: right;
    }
    .search-result-item .asset-platform {
        grid-area: meta-platform;
        justify-self: start;
    }
    .search-result-item .asset-reputation {
        grid-area: meta-reputation;
        justify-self: end;
        padding-left: 0;
    }
    .search-result-item .asset-meta {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .search-result-item .asset-meta .meta-label {
        display: none;
    }
    .search-result-item .asset-platform .platform-icon {
        width: 18px;
        height: 18px;
    }
    .search-result-item .asset-reputation .stars {
        font-size: 16px;
    }

    .dad-sidebar-ad-widget {
        display: none;
    }
}

@media (min-width: 992px) { .dad-homepage-layout { grid-template-columns: 2fr 1fr; } }

/* --- Developer Page Styles --- */
.page-template-page-developers .developer-list-item {
    grid-template-columns: 80px 1fr 150px auto;
    gap: 20px;
}
.page-template-page-developers .developer-list-item .asset-reputation {
    display: none;
}
.page-template-page-developers .developer-list-item .developer-platforms {
    justify-content: center;
}
@media (max-width: 767px) {
    .page-template-page-developers .developer-list-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "icon details"
            "icon platforms";
        align-items: center;
        gap: 5px 15px;
    }
    .page-template-page-developers .developer-list-item .asset-icon {
        grid-area: icon;
    }
    .page-template-page-developers .developer-list-item .asset-details {
        grid-area: details;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }
    .page-template-page-developers .developer-list-item .asset-filesize {
        grid-area: details;
        justify-self: end;
        align-self: center;
    }
    .page-template-page-developers .developer-list-item .asset-platform.developer-platforms {
        grid-area: platforms;
        justify-content: flex-start;
        padding-top: 5px;
    }
     .page-template-page-developers .developer-list-item .asset-reputation {
        display: none;
    }
    .page-template-page-developers .developer-list-item .developer-platforms .platform-icon {
        width: 18px;
        height: 18px;
    }
}
/* --- END: Developer Page Styles --- */

/* --- NEW: Search Error Message Style --- */
.dad-search-error {
    display: none;
    color: #D8000C;
    background-color: #FFD2D2;
    border: 1px solid #D8000C;
    border-radius: 6px;
    padding: 10px 15px;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

/* --- NEW: Responsive Homepage Tabs --- */
.dad-tabs-nav .platform-tab-name {
    display: none; /* Hide platform name on mobile devices by default */
}

.dad-tabs-nav a {
    justify-content: center; /* Center the icon on mobile */
}

/* Show the platform name on tablets and larger screens */
@media (min-width: 768px) {
    .dad-tabs-nav .platform-tab-name {
        display: inline; /* Or 'block' if you prefer */
    }
}

/* --- NEW: Hero Stats Section --- */
.dad-hero-stats-wrapper {
    width: 100%;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.dad-hero-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.dad-hero-stats .stat-item {
    text-align: center;
    color: #fff;
    position: relative;
    flex: 1;
}

/* Vertical line separator */
.dad-hero-stats .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 1px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.2);
}

.dad-hero-stats .stat-value {
    display: block;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 3px;
}

.dad-hero-stats .stat-label {
    display: block;
    font-size: 0.85em;
    opacity: 0.8;
}

/* Responsive adjustments for stats */
@media (max-width: 767px) {
    .dad-hero-stats-wrapper {
        border-top: none;
        margin-top: 20px;
        padding-top: 0;
    }
    .dad-hero-stats {
        flex-direction: row;
        justify-content: center;
    }
    .dad-hero-stats .stat-item:not(:last-child)::after {
        display: none;
    }
    .dad-hero-stats .stat-total-software,
    .dad-hero-stats .stat-last-update {
        display: none;
    }
    .dad-hero-stats .stat-item {
        padding-bottom: 0;
        border-bottom: none;
    }
}

/* --- NEW: News Post Styles --- */

/* Single News Article Page */
body.single-dad_news #primary.content-area {
    max-width: 1200px !important; 
}

.dad-single-news-article {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dad-single-news-article .entry-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9eef2;
    text-align: left;
}

.dad-single-news-article .entry-title {
    font-size: 2.2em;
    font-weight: 700;
    margin: 0 0 10px;
}

.dad-single-news-article .entry-meta {
    font-size: 0.9em;
    color: #777;
}

.dad-single-news-article .entry-meta .byline,
.dad-single-news-article .entry-meta .posted-on {
    margin-right: 15px;
}

.dad-single-news-article .post-thumbnail {
    margin-bottom: 25px;
}

.dad-single-news-article .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.dad-single-news-article .entry-content {
    line-height: 1.7;
    font-size: 1.1em;
}

.dad-single-news-article .entry-content p {
    margin-bottom: 1.5em;
}

.asset-sidebar .sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asset-sidebar .sidebar-box ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.asset-sidebar .sidebar-box ul li:last-child {
    border-bottom: none;
}

.asset-sidebar .sidebar-box ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.asset-sidebar .sidebar-box ul li a:hover {
    color: #007bff;
}


/* News Archive Page */
.archive.post-type-archive-dad_news .page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9eef2;
}

.archive.post-type-archive-dad_news .page-title {
    font-size: 2.5em;
    font-weight: 700;
}

.archive.post-type-archive-dad_news .dad-asset-card-v4 .asset-excerpt {
    font-size: 0.9em;
    color: #555;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
}

/* --- NEW: Author Box Styles --- */
.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-top: 30px;
}

.author-box .author-avatar img {
    border-radius: 50%;
}

.author-box .author-info .author-name {
    margin: 0 0 5px;
    font-size: 1.2em;
    font-weight: 600;
}

.author-box .author-info .author-description {
    margin: 0;
    font-size: 0.95em;
    color: #555;
}

.dad-news-desktop-share {
    display: block;
}

.dad-news-mobile-share {
    display: none;
}

@media (max-width: 991px) {
    .dad-news-desktop-share {
        display: none;
    }
    .dad-news-mobile-share {
        display: block;
    }
}


/* --- REVISED: Homepage Latest News Section Styles (Mobile First) --- */
.dad-latest-news-section {
    grid-column: 1 / -1;
    padding: 20px 0;
    background-color: #f9fafb;
    border-top: 1px solid #e9eef2;
    margin-top: 30px;
    overflow: hidden;
}

.dad-latest-news-section .dad-section-header {
    background-color: #fff;
    border: 1px solid #e9eef2;
    border-left: 5px solid #0077b6;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
}

.dad-latest-news-section .dad-section-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dad-latest-news-section .dad-section-title .news-icon {
    width: 28px;
    height: 28px;
    color: #0077b6;
}

.dad-latest-news-section .dad-view-all-button {
    background-color: transparent;
    border: 2px solid #0077b6;
    color: #0077b6;
    font-weight: 700;
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9em;
}

.dad-latest-news-section .dad-view-all-button:hover {
    background-color: #0077b6;
    color: #fff;
}


/* Mobile & Default Styles: Flexbox Slider */
.dad-homepage-news-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 0 20px 15px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.dad-homepage-news-grid::-webkit-scrollbar {
    display: none;
}

.dad-news-card-v2 {
    scroll-snap-align: center;
    flex: 0 0 85%;
    width: 85%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e9eef2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}
.dad-news-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #0077b6;
}

.dad-news-card-v2 .news-card-thumbnail-v2 {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.dad-news-card-v2 .news-card-thumbnail-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.dad-news-card-v2:hover .news-card-thumbnail-v2 img {
    transform: scale(1.05);
}

.dad-news-card-v2 .news-card-content-v2 {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dad-news-card-v2 .news-card-title-v2 {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
    color: #2d3748;
    flex-grow: 1;
}

.dad-news-card-v2 .news-card-meta-v2 {
    font-size: 0.8em;
    color: #718096;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
    margin-top: auto;
}

.dad-news-card-v2 .news-card-meta-v2 .news-author {
    font-weight: 500;
}

/* Tablet View: Two Columns */
@media (min-width: 600px) {
    .dad-latest-news-section {
        padding: 20px;
    }
    .dad-homepage-news-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        padding: 0;
    }
     .dad-news-card-v2 {
        flex-basis: auto;
        width: auto;
    }
     .dad-latest-news-section .dad-section-header {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Desktop View: Four Columns */
@media (min-width: 992px) {
    .dad-homepage-news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* --- START: NEW STYLES FOR REDESIGNED NEWS ARCHIVE --- */

.news-archive-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.news-sidebar .widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.news-sidebar .widget-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9eef2;
    font-weight: 600;
}

.news-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar ul li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}
.news-sidebar ul li:last-child a {
    border-bottom: none;
}
.news-sidebar ul li a:hover {
    color: #007bff;
}


/* Featured Article */
.featured-news-article {
    margin-bottom: 30px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: block;
}
.featured-news-article .featured-news-link {
    text-decoration: none;
    color: #fff;
    display: block;
}
.featured-news-article .featured-news-thumbnail {
    position: relative;
}
.featured-news-article .featured-news-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}
.featured-news-article .featured-news-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.featured-news-article:hover .featured-news-thumbnail img {
    transform: scale(1.05);
}
.featured-news-article .featured-news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    z-index: 2;
}
.featured-news-article .entry-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 10px;
}
.featured-news-article .entry-meta {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 15px;
}
.featured-news-article .entry-meta span:not(:last-child) {
    margin-right: 15px;
}
.featured-news-article .entry-excerpt {
    opacity: 0.9;
    line-height: 1.6;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.news-card .news-card-link {
    text-decoration: none;
    color: inherit;
}
.news-card .news-card-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.news-card .news-card-content {
    padding: 20px;
}
.news-card .entry-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}
.news-card .entry-meta {
    font-size: 0.85em;
    color: #777;
}

/* Responsive Layout for News Archive */
@media (min-width: 992px) {
    .news-archive-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 767px) {
    .featured-news-article .entry-title {
        font-size: 1.5em;
    }
    .featured-news-article .entry-excerpt {
        display: none;
    }
}

/* --- START: News Archive Sidebar Widget --- */
.news-sidebar .widget .dad-sidebar-asset-list-v2 .asset-info .asset-title {
    font-size: 0.95em; /* A bit smaller for a sidebar list */
    font-weight: 600;
    line-height: 1.3;
}
/* --- END: News Archive Sidebar Widget --- */


/* --- START: Single News Sidebar "Recent News" Styles --- */
.sidebar-recent-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-recent-news-list .sidebar-recent-news-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}
.sidebar-recent-news-list .sidebar-recent-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-recent-news-list .sidebar-recent-news-item:first-child {
    padding-top: 0;
}
.sidebar-recent-news-list .sidebar-recent-news-item:hover .entry-title {
    color: #007bff;
}

.sidebar-recent-news-thumbnail {
    flex-shrink: 0;
}
.sidebar-recent-news-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.sidebar-recent-news-content .entry-title {
    font-size: 1em;
    font-weight: 600;
    line-height: 1.4;
    color: #2d3748;
    margin: 0 0 5px;
    transition: color 0.2s;
}
.sidebar-recent-news-content .entry-date {
    font-size: 0.8em;
    color: #718096;
}
/* --- END: Single News Sidebar "Recent News" Styles --- */

/* --- START: Single News Header Meta Styles --- */
.single-dad_news .header-wrap-info .dad-container {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 5px; /* Reduced padding */
    padding-bottom: 5px; /* Reduced padding */
}

.header-content-left {
    margin-bottom: 10px;
}
.single-dad_news .header-wrap-info .header-wrap-title {
    font-size: 2em; /* Reduced font size */
    font-weight: 600; /* Adjusted font weight */
}

.header-wrap-meta {
    margin-top: 8px; /* Reduced margin */
    font-size: 0.9em;
    opacity: 0.9;
}
.header-wrap-meta span {
    margin-right: 5px;
}
.header-wrap-meta a {
    color: #fff;
    font-weight: 500; /* Adjusted font weight */
    text-decoration: none;
}
.header-wrap-meta a:hover {
    text-decoration: underline;
}

/* On larger screens, put breadcrumbs back on the right */
@media (min-width: 768px) {
    .single-dad_news .header-wrap-info .dad-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .header-content-left {
        margin-bottom: 0;
    }
}

/* --- END: Single News Header Meta Styles --- */

/* --- END: NEW STYLES FOR REDESIGNED NEWS ARCHIVE --- */

