/*
Theme Name: News Gallery
Theme URI: https://themearile.com/news-gallery-theme/
Template: newsexo
Author: ThemeArile
Version: 1.6
*/

/* Reset & Global */
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #222;
    background-color: #f7f7f8;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
.hb-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
}
a { text-decoration: none; color: inherit; }

/* ================= 1. HEADER & NAVIGATION ================= */
.hb-top-branding {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #ebebeb;
}
.hb-branding-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hb-logo-text {
    font-size: 26px;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.5px;
}
.hb-logo-text span { color: #880000; }
.hb-date-top { font-size: 12px; color: #777; }

.hb-nav-bar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 999;
}
.hb-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hb-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.hb-menu li { position: relative; }
.hb-menu li a {
    display: block;
    padding: 14px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.hb-menu li a:hover,
.hb-menu li.current-menu-item a {
    color: #880000;
    border-bottom: 3px solid #880000;
}
.hb-search-trigger a {
    font-size: 16px;
    color: #111;
    padding: 10px;
}

/* ================= 2. HERO 5-GRID ================= */
.hb-hero-5grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 20px 0 10px 0;
    height: 480px;
}
.hb-hero-main {
    height: 100%;
    position: relative;
    overflow: hidden;
}
.hb-hero-lead-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}
.hb-hero-lead-card img,
.hb-hero-sub-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.hb-hero-lead-card:hover img,
.hb-hero-sub-card:hover img {
    transform: scale(1.04);
}
.hb-hero-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
}
.hb-hero-sub-card {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Hero Overlays & Badges */
.hb-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    color: #fff;
    pointer-events: none;
}
.hb-hero-overlay.sub-overlay { padding: 12px; }
.hb-hero-overlay a { pointer-events: auto; }
.hb-lead-title {
    font-size: 20px;
    font-weight: 800;
    margin: 8px 0;
    line-height: 1.3;
    color: #fff;
}
.hb-sub-title {
    font-size: 13px;
    font-weight: 700;
    margin: 5px 0;
    line-height: 1.3;
    color: #fff;
}
.hb-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 2px;
    text-transform: capitalize;
}
.hb-badge-red { background: #d0021b; }
.hb-badge-purple { background: #6200ea; }

.hb-meta-row, .hb-meta-row-sm {
    font-size: 11px;
    color: #ccc;
    display: flex;
    gap: 10px;
}

/* ================= 3. BREAKING NEWS BAR ================= */
.hb-breaking-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ebebeb;
    padding: 8px 12px;
    margin-bottom: 25px;
}
.hb-breaking-tag {
    background: #111;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 8px;
    letter-spacing: 0.5px;
}
.hb-breaking-tag span { color: #fff; }
.hb-breaking-ticker {
    flex-grow: 1;
    margin: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
}
.hb-breaking-ticker a:hover { color: #880000; }
.hb-ticker-arrows { display: flex; gap: 4px; }
.hb-arr {
    border: 1px solid #ddd;
    background: #fff;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
}

/* ================= 4. 2-COLUMN BODY LAYOUT ================= */
.hb-main-columns {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Category Headings */
.hb-sec-head {
    border-bottom: 2px solid #880000;
    margin-bottom: 20px;
}
.hb-sec-title {
    background: #880000;
    color: #fff;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 800;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* India / Entertainment 2-Col Grid */
.hb-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}
.hb-large-post-card {
    background: #fff;
    border: 1px solid #ebebeb;
}
.hb-card-img img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}
.hb-card-details { padding: 15px; }
.hb-entry-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.35;
}
.hb-entry-title a:hover { color: #880000; }
.hb-entry-excerpt {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
}
.hb-entry-meta, .hb-entry-meta-sm {
    font-size: 11px;
    color: #999;
    display: flex;
    gap: 10px;
}

/* Compact Horizontal List */
.hb-compact-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}
.hb-compact-item {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 10px;
    border: 1px solid #ebebeb;
}
.hb-compact-thumb { flex: 0 0 90px; height: 65px; }
.hb-compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hb-compact-text h4 { font-size: 13px; margin: 0 0 5px 0; line-height: 1.3; }
.hb-compact-text h4 a:hover { color: #880000; }

/* ================= 5. SIDEBAR WIDGETS ================= */
.hb-promo-box {
    background: #fff;
    padding: 15px;
    border: 1px solid #ebebeb;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 25px;
}

/* Discover More */
.hb-discover-widget {
    background: #f1f5fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}
.hb-widget-title-clean {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #2c3e50;
}
.hb-discover-links { list-style: none; padding: 0; margin: 0; }
.hb-discover-links li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e1e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}
.hb-discover-links li a:hover { color: #880000; }

/* Popular Posts */
.hb-popular-widget {
    background: #fff;
    border: 1px solid #ebebeb;
    margin-bottom: 25px;
}
.hb-popular-header {
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
}
.hb-tab-nav {
    display: flex;
    border-bottom: 1px solid #ebebeb;
}
.hb-tab-nav span {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}
.hb-tab-nav span.active {
    font-weight: 700;
    color: #111;
    border-bottom: 2px solid #880000;
}
.hb-popular-items { padding: 12px; }
.hb-pop-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}
.hb-pop-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.hb-pop-thumb { flex: 0 0 70px; height: 55px; }
.hb-pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hb-pop-info h5 { margin: 0 0 4px 0; font-size: 12px; line-height: 1.3; }
.hb-pop-info h5 a:hover { color: #880000; }
.hb-pop-date { font-size: 10px; color: #999; }

/* ================= 6. FOOTER ================= */
.hb-site-footer {
    background: #111;
    color: #ccc;
    padding: 40px 0 20px 0;
}
.hb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.hb-footer-logo { font-size: 22px; font-weight: 900; color: #fff; }
.hb-footer-logo span { color: #880000; }
.hb-footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 15px; }
.hb-footer-menu { list-style: none; padding: 0; margin: 0; }
.hb-footer-menu li { margin-bottom: 8px; font-size: 13px; }
.hb-footer-menu li a:hover { color: #fff; }
.hb-footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

/* ================= 7. MOBILE RESPONSIVE ================= */
@media (max-width: 991px) {
    .hb-hero-5grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hb-hero-main { height: 280px; }
    .hb-hero-subgrid { height: 350px; }
    .hb-main-columns { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hb-two-col-grid,
    .hb-compact-list-grid {
        grid-template-columns: 1fr;
    }
    .hb-footer-grid { grid-template-columns: 1fr; }
}
/* Social Media Icons Grid */
.hb-social-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.hb-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2a2a2a;
    color: #ffffff;
    border-radius: 4px;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Individual Brand Hover Colors */
.hb-social-btn.fb:hover {
    background: #1877f2;
    color: #fff;
    transform: translateY(-3px);
}
.hb-social-btn.tw:hover {
    background: #000000;
    border: 1px solid #444;
    color: #fff;
    transform: translateY(-3px);
}
.hb-social-btn.insta:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    color: #fff;
    transform: translateY(-3px);
}
.hb-social-btn.yt:hover {
    background: #ff0000;
    color: #fff;
    transform: translateY(-3px);
}
.hb-social-btn.tg:hover {
    background: #0088cc;
    color: #fff;
    transform: translateY(-3px);
}
.hb-social-btn.rss:hover {
    background: #f26522;
    color: #fff;
    transform: translateY(-3px);
}