/*
 * NPL Sports Pro Theme - News Blocks Styles
 * File: Assets/css/news-blocks.css
 */

/* ===================================================================
 * TABLE OF CONTENTS
 * 1. Homepage & Plugin Styles (Card Layout)
 * 2. Homepage Layout Grid
 * 3. Breaking News Slider Ticker
 * 4. Three Column Post Slider (Travel Guides)
 * 5. Global News - Two Column Layout
 * 6. Post Slider Styles (With Overlay)
 * 7. Classic News Block (Style G)
 * 8. News Block (Style H)
 * 9. News Block (Style J)
 * 10. News Block - Triple Column (Style K)
 * 11. NPL Card News Block
 * 12. NPL Gallery Slider (Final Fix)
 * 13. Responsive Styles - News Blocks
 * =================================================================== */

/* ===================================================================
 * 1. Homepage & Plugin Styles (CARD LAYOUT)
 * =================================================================== */
#primary > main > section { 
    background-color: #fff; 
    padding: 10px; 
    border: 1.5px solid #e5e5e5; 
    margin-bottom: 10px;
    position: relative;
}
#primary > main > section:last-of-type {
    margin-bottom: 0;
}
.category-block-style-1 .block-content-wrapper { display: grid; gap: 20px; }
.category-block-style-1 .featured-post .entry-title { font-size: 24px; line-height: 1.3; margin: 10px 0; }
.category-block-style-1 .entry-meta { font-size: 12px; color: #888; margin-bottom: 10px; }
.category-block-style-1 .post-list-item { display: flex; gap: 15px; align-items: center; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dotted #ccc; }
.category-block-style-1 .post-list-item:last-child { border-bottom: none; }
.category-block-style-1 .post-list-content .entry-title { font-size: 15px; margin: 0 0 5px 0; font-weight: 500; }
.two-column-category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.category-column .post-list-item { display: flex; gap: 15px; align-items: center; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dotted #ccc; }
.category-column .post-list-item:last-child { border-bottom: none; }
.category-column .post-list-thumbnail { flex-shrink: 0; width: 80px; height: 60px; }
.category-column .post-list-thumbnail img { width: 100%; height: 350px; object-fit: cover; }
.category-column .entry-title { font-size: 14px; margin: 0; font-weight: 500; }
.full-width-featured-post .post-thumbnail { margin-bottom: 15px; display: block; }
.full-width-featured-post .entry-title { font-size: 28px; margin: 0 0 10px 0; }
.full-width-featured-post .entry-meta { font-size: 13px; color: #777; margin-bottom: 15px; }
.four-column-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-post-item .post-thumbnail img { width: 100%; height: 150px; object-fit: cover; }
.grid-post-item .entry-title { font-size: 15px; margin: 10px 0 0 0; font-weight: 500; }
#primary > main > section.homepage-section { 
    background-color: #fff; 
    padding: 0px; 
    border: 1.5px solid #e5e5e5; 
    margin-bottom: 10px;
}
#primary > main > section.homepage-section:last-of-type {
    margin-bottom: 0;
}

/* ===================================================================
 * 2. Homepage Layout Grid
 * =================================================================== */
.homepage-content-wrapper {
    display: grid;
    gap: 20px;
}
.content-area-fullwidth { width: 100%; max-width: 100%; padding: 0; }
.page-entry-fullwidth .builder-block .container { max-width: 1100px; }

/* ===================================================================
 * 3. Breaking News Slider Ticker
 * =================================================================== */
.breaking-news-slider-wrapper {
    background-color: #f1f1f1;
    border-bottom: 1.5px solid #e5e5e5;
    padding: 5px 0;
	margin-top: 5px;
	margin-bottom: 5px;
    height: 35px;
    overflow: hidden;
}
.breaking-news-slider-wrapper .container {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}
.breaking-news-slider-wrapper .ticker-label {
    background-color: #0010a0;
    color: #fff;
    padding: 5px 5px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-right: 15px;
}
.breaking-news-slider {
    flex-grow: 1;
    overflow: hidden;
    height: 100%;
}
.breaking-news-slider .swiper-slide {
    display: flex;
    align-items: center;
    font-size: 12px;
}
.breaking-news-slider .swiper-slide a {
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.breaking-news-slider .swiper-slide a:hover {
    color: #dd0000;
}
.breaking-news-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 15px;
    flex-shrink: 0;
}
.breaking-news-nav .swiper-button-next,
.breaking-news-nav .swiper-button-prev {
    position: relative; 
    width: 28px;
    height: 28px;
    margin: 0 0 0 4px;
    background-color: #0010a0;
    border-radius: 0;
    transition: opacity 0.3s ease;
}
.breaking-news-nav .swiper-button-next::after,
.breaking-news-nav .swiper-button-prev::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.breaking-news-nav .swiper-button-prev::after { content: '\f053'; }
.breaking-news-nav .swiper-button-next::after { content: '\f054'; }
.breaking-news-nav .swiper-button-next:hover,
.breaking-news-nav .swiper-button-prev:hover { opacity: 0.8; }

/* ===================================================================
 * 4. Three Column Post Slider (Travel Guides)
 * =================================================================== */
.category-slider-e {
    border-top: 1px solid #e5e5e5;
    padding-top: 15px !important;
}
.section-title.travel-title::after { background-color: #8bc34a; }
.three-column-slider-wrapper { position: relative; padding: 0; }
.three-column-slider .swiper-slide { height: auto; }
.grid-post-item-e {
    position: relative;
    min-height: 280px; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
    border-radius: 5px;
}
.grid-post-item-e::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    border-radius: 5px;
}
.grid-post-item-e .grid-post-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.grid-post-item-e .grid-post-content {
    position: relative;
    z-index: 3;
    color: #fff;
}
.grid-post-content .grid-post-category {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.grid-post-content .grid-post-title {
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
    font-weight: 700;
}
.grid-post-content .grid-post-title a {
    color: #fff;
    text-decoration: none;
}
.three-column-slider-wrapper .swiper-button-prev,
.three-column-slider-wrapper .swiper-button-next {
    top: 50%;
    transform: translateY(-50%);
    background-color: #0010a0;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease;
}
.three-column-slider-wrapper .swiper-button-prev:hover,
.three-column-slider-wrapper .swiper-button-next:hover { background-color: #dd0000; }
.three-column-slider-wrapper .swiper-button-prev::after,
.three-column-slider-wrapper .swiper-button-next::after { font-size: 16px; font-weight: bold; }
.three-column-slider-wrapper .swiper-button-prev.three-col-prev { left: 15px; }
.three-column-slider-wrapper .swiper-button-next.three-col-next { right: 15px; }

/* ===================================================================
 * 5. Global News - Two Column Layout
 * =================================================================== */
.category-block.category-block-style-1 .block-content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr; 
    gap: 15px; 
}
.category-block-style-1 .post-list-thumbnail {
    flex-basis: 80px; 
    flex-shrink: 0;
}
.category-block-style-1 .post-list-thumbnail img {
    width: 100%;
    height: 80px; 
    object-fit: cover;
}

/* ===================================================================
 * 6. Post Slider Styles (WITH OVERLAY)
 * =================================================================== */
.section-post-slider .slider-post-item {
    border: none;
    background-color: transparent;
}
.section-post-slider .slider-post-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
}
.section-post-slider .slider-post-thumbnail img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.section-post-slider .slider-post-item a:hover .slider-post-thumbnail img {
    transform: scale(1.05);
}
.section-post-slider .slider-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    color: #fff;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 16, 160, 0.85) 0%, rgba(0, 16, 160, 0) 100%);
    box-sizing: border-box;
}
.section-post-slider .slider-post-title {
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 10px 0;
}
.section-post-slider .slider-post-title a,
.section-post-slider .slider-post-excerpt {
    color: #fff;
    text-decoration: none;
}
.slider-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px; 
    font-size: 13px;
    margin-bottom: 15px;
    color: #fff;
    opacity: 0.9;
}
.slider-post-meta span { display: inline-flex; align-items: center; }
.slider-post-meta i { margin-right: 6px; }
.slider-post-meta a { color: #fff; font-weight: bold; text-decoration: none; }
.slider-post-meta a:hover { text-decoration: underline; }
.slider-post-excerpt { font-size: 15px; line-height: 1.6; opacity: 0.9; }
.slider-post-excerpt p { margin: 0; }
.post-slider-container .swiper-button-next.post-slider-next,
.post-slider-container .swiper-button-prev.post-slider-prev { color: #fff; }

/* ===================================================================
 * 7. Classic News Block (STYLE G)
 * =================================================================== */
.classic-news-block-g .section-title { margin-bottom: 20px; }
.classic-block-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px; 
    gap: 20px;
    padding: 10px;
}
.classic-featured-post {
    position: relative;
    background-size: cover;
    background-position: center;
    display: non;
    flex-direction: non;
    justify-content: center; 
    color: #fff;
    min-height: 250px; 
}
.classic-featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0) 60%);
    z-index: 1;
    border-radius: 4px; 
}
.classic-featured-post,
.classic-featured-post a.grid-post-link {
    border-radius: 4px; 
}
.classic-featured-content, .classic-action-bar { position: relative; z-index: 2; }
.classic-featured-content { padding: 20px; }
.classic-featured-title { font-size: 24px; line-height: 1.3; margin: 0 0 15px 0; }
.classic-featured-title a { color: #fff; text-decoration: none; }
.classic-action-bar {
    display: flex;
    background-color: transparent; 
}
.classic-action-bar .action-btn {
    padding: 8px 12px;
    background-color: #ff6600; 
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    border-right: 1px solid rgba(255,255,255,0.2);
    margin-right: 5px; 
    border-radius: 3px;
}
.classic-action-bar .action-btn:last-child { border-right: none; margin-right: 0; }
.classic-action-bar .action-btn:hover { opacity: 0.85; }
.classic-post-list { border-left: 1px solid #f0f0f0; padding-left: 20px; }
.classic-list-item { display: non; gap: 15px; align-items: flex-start; padding-bottom: 15px; margin-bottom: 15px; }
.classic-list-item:last-child { margin-bottom: 0; padding-bottom: 0; }
.classic-list-thumbnail img { width: 350px; height: 230px; object-fit: cover; flex-shrink: 0; }
.classic-list-title { font-size: 16px; font-weight: bold; margin: 0; line-height: 1.4; }
.classic-list-title a { color: #333; text-decoration: none; }
.classic-list-excerpt { font-size: 14px; color: #555; line-height: 1.6; margin-top: 8px; }
.classic-list-excerpt p { margin: 0; }


/* ===================================================================
 * 8. News Block (STYLE H)
 * =================================================================== */
.news-block-h .section-title.style-h-title span {
    color: #d13639; font-size: 18px; font-weight: 700; text-transform: uppercase; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; display: inline-block;
}
.news-block-h .section-title.style-h-title { margin-bottom: 20px; padding-bottom: 0; border-bottom: none; }
.post-list-wrapper.style-h { display: flex; flex-direction: column; gap: 20px; }
.style-h .list-post-item { display: flex; align-items: flex-start; }
.style-h .list-post-thumbnail { flex: 0 0 100px; margin-right: 15px; }
.style-h .list-post-thumbnail img { display: block; width: 100%; height: auto; }
.style-h .list-post-content { flex: 1; }
.style-h .list-post-title { margin: 0 0 5px 0; font-size: 16px; line-height: 1.4; }
.style-h .list-post-title a { color: #222; text-decoration: none; font-weight: 700; }
.style-h .list-post-title a:hover { color: #d13639; }
.style-h .list-post-meta { font-size: 13px; color: #888; }
.style-h .list-post-meta .category-link { color: #d13639; font-weight: 600; text-decoration: none; margin-right: 10px; }
.style-h .list-post-meta .category-link:hover { text-decoration: underline; }

/* ===================================================================
 * 9. News Block (STYLE J)
 * =================================================================== */
.news-block-j { padding: 20px; border: 1px solid #eee; background: #fff; }
.block-j__title { color: #d13639; font-size: 18px; font-weight: 700; text-transform: uppercase; margin: 0 0 15px 0; padding-bottom: 10px; position: relative; }
.block-j__title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 3px; background-color: #d13639; }
.block-j__post-list { display: flex; flex-direction: column; gap: 15px; }
.block-j__post-item { display: flex; align-items: flex-start; }
.block-j__post-thumbnail { flex-shrink: 0; width: 100px; margin-right: 15px; }
.block-j__post-thumbnail img { display: block; width: 100%; height: auto; }
.block-j__post-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 0 0 8px 0; }
.block-j__post-title a { color: #222; text-decoration: none; }
.block-j__post-title a:hover { color: #d13639; }
.block-j__post-meta { font-size: 13px; color: #888; }
.block-j__post-category a { color: #d13639; font-weight: 600; text-decoration: none; margin-right: 10px; }
.block-j__post-category a:hover { text-decoration: underline; }

/* ===================================================================
 * 10. News Block - Triple Column (STYLE K)
 * =================================================================== */
.triple-column-block-k { padding-top: 20px; margin-top: 20px; }
.triple-column-wrapper { display: flex; gap: 30px; }
.triple-column-item { flex: 1; min-width: 0; }
.triple-column-item .column-title { font-size: 14px; margin: 0 0 15px 0; padding-bottom: 10px; border-bottom: 2px solid var(--accent-color, #dd0000); text-transform: uppercase; font-weight: 700; }
.triple-column-item .column-title a { color: #333; text-decoration: none; transition: color 0.3s; }
.triple-column-item .column-title a:hover { color: var(--accent-color, #dd0000); }
.tc-featured-post { margin-bottom: 20px; }
.tc-featured__thumb { margin-bottom: 15px; }
.tc-featured__thumb img { width: 100%; height: 220px; object-fit: cover; }
.tc-featured__title { font-size: 20px; line-height: 1.4; margin: 0; font-weight: 700; }
.tc-featured__title a { color: #c0392b; text-decoration: none; transition: color 0.3s ease; }
.tc-featured__title a:hover { color: #333; }
.tc-list-posts { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.tc-list-item { display: flex; gap: 15px; align-items: flex-start; }
.tc-list-item__thumb { flex-shrink: 0; width: 100px; }
.tc-list-item__thumb img { width: 100%; height: 70px; object-fit: cover; }
.tc-list-item__title { font-size: 15px; line-height: 1.5; margin: 0; font-weight: 600; }
.tc-list-item__title a { color: #444; text-decoration: none; transition: color 0.3s ease; }
.tc-list-item__title a:hover { color: #c0392b; }
.tc-text-links { display: flex; flex-direction: column; gap: 15px; }
.tc-text-item__title { font-size: 15px; line-height: 1.5; margin: 0; font-weight: 500; padding-left: 15px; position: relative; }
.tc-text-item__title::before { content: '\f105'; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 3px; color: #ccc; font-size: 12px; }
.tc-text-item__title a { color: #555; text-decoration: none; transition: color 0.3s ease; }
.tc-text-item__title a:hover { color: #000; }

/* ===================================================================
 * 11. NPL Card News Block
 * =================================================================== */
.npl-card-block__featured .npl-card-block__thumb img { width: 100%; height: auto; margin-bottom: 15px; border-radius: 3px; }
.npl-card-block__title { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 0 0 10px 0; }
.npl-card-block__title a { color: #333; text-decoration: none; }
.npl-card-block__title a:hover { color: #0010a0; }
.npl-card-block__meta { font-size: 13px; color: #777; margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 15px; }
.npl-card-block__meta i { margin-right: 5px; }
.npl-card-block__excerpt { font-size: 15px; line-height: 1.6; color: #555; margin-bottom: 20px; }
.npl-card-block__excerpt p { margin: 0; }
.npl-card-block__readmore { display: inline-block; padding: 8px 20px; background-color: #08a3ba; color: #fff; font-weight: bold; font-size: 14px; text-decoration: none; border-radius: 3px; transition: opacity 0.2s ease; }
.npl-card-block__readmore:hover { opacity: 0.8; }
.npl-card-block__list { margin-top: 20px; padding-top: 20px; border-top: 1px solid #f0f0f0; display: flex; flex-direction: column; gap: 20px; }
.npl-card-block__list-item { display: flex; gap: 15px; align-items: center; }
.npl-card-block__list-thumb img { width: 100px; height: 70px; object-fit: cover; border-radius: 3px; }
.npl-card-block__list-title { font-size: 16px; font-weight: 500; line-height: 1.4; margin: 0; }
.npl-card-block__list-title a { color: #444; text-decoration: none; }
.npl-card-block__list-title a:hover { color: #0010a0; }
.npl-card-block__list-date { font-size: 12px; color: #888; display: block; margin-top: 5px; }
.npl-card-block__list-date i { margin-right: 4px; }

/* ===================================================================
 * 12. NPL Gallery Slider (Final Fix)
 * =================================================================== */
.npl-gallery-slider-wrapper { position: relative; }
.npl-gallery-slider-main { position: relative; margin-bottom: 10px; }
.npl-gallery-slider-main .swiper-slide { position: relative; overflow: hidden; }
.npl-gallery-slider-main .swiper-slide img { width: 100%; height: 450px; object-fit: cover; display: block; }
.npl-gallery-slider-main .gallery-slider-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px; background: rgba(0, 16, 160, 0.5); color: #fff; }
.npl-gallery-slider-main .entry-title { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 10px 0; color: #fff; }
.npl-gallery-slider-main .entry-meta { font-size: 12px; opacity: 0.9; display: flex; flex-wrap: wrap; gap: 0 15px; }
.npl-gallery-slider-main .entry-meta span { display: inline-block; line-height: 1.5; }
.npl-gallery-slider-main .entry-meta a { color: #fff; }
.npl-gallery-slider-thumbs { height: 80px; padding: 0 40px; }
.npl-gallery-slider-thumbs .swiper-slide { width: auto; height: 100%; opacity: 0.5; cursor: pointer; transition: opacity 0.3s ease; border: 2px solid transparent; box-sizing: border-box; }
.npl-gallery-slider-thumbs .swiper-slide:hover { opacity: 1; }
.npl-gallery-slider-thumbs .swiper-slide-thumb-active { opacity: 1; border-color: #0010a0; }
.npl-gallery-slider-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.npl-gallery-slider-thumbs .swiper-button-next,
.npl-gallery-slider-thumbs .swiper-button-prev { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; background-color: #0010a0; color: #fff; margin-top: 0; border-radius: 0; transition: background-color 0.3s ease; }
.npl-gallery-slider-thumbs .swiper-button-next:hover,
.npl-gallery-slider-thumbs .swiper-button-prev:hover { background-color: #e50914; }
.npl-gallery-slider-thumbs .swiper-button-next::after,
.npl-gallery-slider-thumbs .swiper-button-prev::after { font-size: 12px; font-weight: 900; }
.npl-gallery-slider-thumbs .swiper-button-prev { left: 0; }
.npl-gallery-slider-thumbs .swiper-button-next { right: 0; }
.npl-gallery-slider-thumbs .swiper-button-disabled { opacity: 0.4; cursor: auto; background-color: #555; }

/* ===================================================================
 * 13. Responsive Styles - News Blocks (7 Devices)
 * =================================================================== */
@media (min-width: 1441px) {
    .boxed-layout .homepage-content-wrapper { grid-template-columns: 1fr 420px; }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .boxed-layout .homepage-content-wrapper { grid-template-columns: 1fr 400px; }
}

@media (max-width: 1024px) {
    .triple-column-wrapper {
        flex-direction: column;
        gap: 40px; 
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .boxed-layout .homepage-content-wrapper { grid-template-columns: 1fr 320px; gap: 15px; }
}

@media (max-width: 991px) {
    .category-block.category-block-style-1 .block-content-wrapper {
        grid-template-columns: 1fr; 
    }
    .classic-block-wrapper {
        grid-template-columns: 1fr; 
    }
    .classic-post-list {
        border-left: none;
        padding-left: 0;
        margin-top: 30px; 
    }
    .dual-category-block-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .boxed-layout .homepage-content-wrapper { display: block; }
    .homepage-content-wrapper #secondary { margin-top: 30px; width: 100%; }
}

@media (max-width: 767px) {
    .npl-gallery-slider-main .swiper-slide img {
        height: 300px; /* Reduced height for mobile */
    }
}

@media (max-width: 480px) {
    .classic-featured-title { font-size: 20px; }
    .classic-list-title { font-size: 15px; }
    .triple-column-wrapper { gap: 30px; }
    .tc-featured__title { font-size: 18px; }
    .tc-list-item__title, .tc-text-item__title { font-size: 14px; }
}