/*
 * Professional News Magazine Typography System
 * Inspired by Digiqole News Theme
 */

:root {
    --primary-text: var(--heading-text, #111);
    --secondary-text: var(--body-text, #666);
    --meta-text: var(--body-text, #999);
    --accent-color: var(--primary-color, #fc4a00);

    --cat-video: #dc3545;

    --digi-orange: linear-gradient(20deg, var(--primary-color, #f84270) 0%, #fe803b 100%);
    --header-bg: #fff;
    --nav-bg: var(--primary-color, #fc4a00);

    --heading-font: 'Barlow', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* 1. HEADLINES */
.news-title-hero,
.news-title-section,
.news-title-card,
.news-title-list {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.news-title-hero {
    font-size: 34px;
}

.news-title-section {
    font-size: 22px;
}

.news-title-card {
    font-size: 16px;
}

.news-title-list {
    font-size: 14px;
}

.news-title-hero a,
.news-title-section a,
.news-title-card a,
.news-title-list a {
    color: inherit;
    text-decoration: none;
}

.news-title-hero:hover,
.news-title-section:hover,
.news-title-card:hover,
.news-title-list:hover {
    color: var(--accent-color);
}

/* 2. CATEGORY BADGE */
.news-badge {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
    background: var(--accent-color);
    transition: opacity 0.3s;
}

.news-badge:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

.news-badge.tech {
    background: var(--cat-tech);
}

.news-badge.lifestyle {
    background: var(--cat-lifestyle);
}

.news-badge.travel {
    background: var(--cat-travel);
}

.news-badge.video {
    background: var(--cat-video);
}

/* 3. POST META INFORMATION */
.news-meta {
    font-size: 12px;
    color: var(--meta-text);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    color: #ccc;
}

.news-meta i {
    font-size: 11px;
}

/* 4. AUTHOR STYLE */
.news-author {
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-text);
    transition: color 0.3s;
}

.news-author:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* 5. DATE STYLE */
.news-date {
    font-size: 12px;
    color: #999;
}

/* 6. GRID POST TEXT STYLE */
.news-grid-card {
    display: flex;
    flex-direction: column;
}

.news-grid-card .news-badge {
    margin-bottom: 8px;
}

.news-grid-card .news-title-card {
    margin-bottom: 6px;
}

/* 6a. VIDEO DARK SECTION REFINEMENTS */
.fp-video-dark {
    background: #1a1a1a;
    padding: 40px 0;
    border-radius: 8px;
}

.fp-video-dark .news-title-section {
    color: #fff;
}

.fp-video-dark .news-title-card a {
    color: #eee;
}

.fp-video-dark .news-meta {
    color: #bbb;
}

.fp-video-dark .news-date {
    color: #aaa;
}

.fp-video-item {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #333;
    transition: background 0.3s;
}

.fp-video-item:hover {
    background: #2a2a2a;
}

/* 7. SIDEBAR POST TEXT */
.news-sidebar-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.news-sidebar-item .thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.news-sidebar-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-sidebar-item .content .news-title-list {
    font-size: 13px;
    margin-bottom: 4px;
}

/* 8. POPULAR POST LIST (Numbered) */
.news-popular-list {
    counter-reset: popular-counter;
}

.news-popular-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
}

.news-popular-item::before {
    counter-increment: popular-counter;
    content: counter(popular-counter);
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* 9. FEATURED POST & FP-CARD OVERLAY (Pixel-Perfect matching) */
.news-overlay-card,
.fp-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    background-color: #eee;
}

.fp-card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.fp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-bg,
.fp-card:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.news-overlay-card .content,
.fp-card-body {
    position: relative;
    z-index: 2;
    padding: 15px;
    width: 100%;
}

.fp-card .news-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}

.fp-card .news-title-card,
.news-overlay-card .news-title-hero,
.news-overlay-card .news-title-section {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.fp-card .news-meta {
    color: rgba(255, 255, 255, 0.8) !important;
}

.news-overlay-card .content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

.news-overlay-card .news-title-hero,
.news-overlay-card .news-title-section {
    color: #fff;
}

.news-overlay-card .news-meta {
    color: rgba(255, 255, 255, 0.8);
}

/* 10. HOVER EFFECTS */
.news-thumb-zoom {
    overflow: hidden;
}

.news-thumb-zoom img {
    transition: transform 0.5s ease;
}

.news-thumb-zoom:hover img {
    transform: scale(1.05);
}

/* 10a. PLAY BUTTON STYLE */
.fp-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 74, 87, 0.4);
    transition: transform 0.3s;
}

.fp-video-thumb:hover .fp-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 11. SIDEBAR SOCIAL (Single Line) */
.news-social-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
}

.news-social-row a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.news-social-row a:hover {
    transform: translateY(-3px);
}

.news-social-row a i {
    font-size: 18px;
    margin-bottom: 5px;
}

.news-social-row a .count {
    font-size: 12px;
    font-weight: 700;
}

.news-social-row a .label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.8;
}

.news-social-row .facebook {
    background: #3b5998;
}

.news-social-row .twitter {
    background: #1da1f2;
}

.news-social-row .youtube {
    background: #ff0000;
}

.news-social-row .instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* 12. LATEST UPDATES (Post Update Slug) */
.news-update-slug {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fdf2f3;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    margin-bottom: 20px;
}

.news-update-slug .slug-label {
    background: var(--accent-color);
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 2px;
}

.news-update-slug .update-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 14. HEADER DR-FIX (Slim & Precise) */
.topbar-black {
    background: #111;
    color: #fff;
    padding: 6px 0;
    font-size: 12px;
}

.header-middle-area {
    padding: 10px 0 !important;
}

.header-gradient {
    background: var(--digi-orange) !important;
}

.navbar-nav>li>a {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    padding: 15px 20px !important;
}

.navbar-nav>li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 15. TRENDING SLIDER */
.trending-slider {
    margin: 20px 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: var(--accent-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 14px;
}

/* 13. RESPONSIVE TYPOGRAPHY */
@media (max-width: 991px) {
    .news-title-hero {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .news-title-hero {
        font-size: 24px;
    }

    .news-title-section {
        font-size: 18px;
    }

    .header-middle-area.style8 {
        padding: 10px 0;
    }

    .fp-video-item {
        padding: 10px;
    }

    .navbar-toggler {
        padding: 5px 10px;
        background: var(--accent-color);
        border-radius: 4px;
    }
}