/*
 Theme Name:   Bloghash Child
 Theme URI:    https://autoakhbar.com
 Description:  AutoAkhbar Child Theme for Bloghash
 Author:       AutoAkhbar
 Author URI:   https://autoakhbar.com
 Template:     bloghash
 Version:      1.0.1
 Text Domain:  bloghash-child
*/

/* ========================================
   Hero Section Overlap Fix
   ======================================== */

/* Hero slider wrapper */
.bloghash-hero-slider {
    margin-bottom: 0 !important;
}

.bloghash-horizontal-slider {
    margin-bottom: 0 !important;
}

/* Hero ke turant baad wala container */
.bloghash-hero-slider + .bloghash-container {
    margin-top: 40px !important;
    padding-top: 0 !important;
    clear: both;
    display: block;
}

/* Content area */
.home #primary,
.blog #primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.home .site-content,
.blog .site-content {
    margin-top: 0 !important;
}

/* ========================================
   AdSense Ad Units - CLS Prevention
   Fixed reserved space taaki layout shift na ho
   ======================================== */

.autoakhbar-ad-unit {
    width: 100%;
    text-align: center;
    overflow: hidden;
    background: #f9f9f9;
    margin: 20px 0;
}

/* Desktop: 728x90 leaderboard */
.autoakhbar-ad-unit .ad-inner {
    display: inline-block;
    width: 728px;
    min-height: 90px;
    max-width: 100%;
    background: #f0f0f0;
    position: relative;
}

/* CLS fix: space reserved before ad loads */
.autoakhbar-ad-unit .ad-inner ins.adsbygoogle {
    display: block !important;
    width: 728px;
    height: 90px;
    max-width: 100%;
}

/* Ad label */
.autoakhbar-ad-unit .ad-label {
    font-size: 10px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .autoakhbar-ad-unit .ad-inner {
        width: 100%;
        min-height: 60px;
    }
    .autoakhbar-ad-unit .ad-inner ins.adsbygoogle {
        width: 100%;
        height: 60px;
    }
}

/* ========================================
   AutoAkhbar News Section - 3 Column Grid
   ======================================== */

.autoakhbar-news-section {
    padding: 30px 0 40px;
}

.autoakhbar-news-section .section-heading {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c0392b;
    display: inline-block;
}

.autoakhbar-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.autoakhbar-news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.autoakhbar-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}

.autoakhbar-news-card .card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f0f0f0;
}

.autoakhbar-news-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.autoakhbar-news-card:hover .card-thumb img {
    transform: scale(1.05);
}

.autoakhbar-news-card .card-body {
    padding: 16px;
}

.autoakhbar-news-card .card-category {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    text-decoration: none;
}

.autoakhbar-news-card .card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.autoakhbar-news-card .card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.autoakhbar-news-card .card-title a:hover {
    color: #c0392b;
}

.autoakhbar-news-card .card-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.autoakhbar-news-card .card-meta .meta-dot {
    width: 3px;
    height: 3px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
}

.autoakhbar-news-card .card-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.autoakhbar-news-placeholder {
    background: #f0f0f0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
}

/* ALL NEWS button - white text on red, fully readable */
.autoakhbar-view-all {
    text-align: center;
    margin-top: 10px;
}

.autoakhbar-view-all a {
    display: inline-block;
    padding: 11px 32px;
    background: #c0392b;
    color: #ffffff !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
    border: 2px solid #c0392b;
}

.autoakhbar-view-all a:hover {
    background: #fff !important;
    color: #c0392b !important;
    border-color: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
    .autoakhbar-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .autoakhbar-news-grid {
        grid-template-columns: 1fr;
    }
    .autoakhbar-ad-unit .ad-inner {
        width: 100%;
        min-height: 50px;
    }
}