/* News Portal CI4 Custom Styles */

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Utility Classes */
.text-justify {
    text-align: justify !important;
}

.min-vh-50 {
    min-height: 50vh !important;
}

/* Home Page Background */
/* .home-page-bg {
    background: url('/images/gallery/bg4.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    position: static;
} */

.home-page-bg::before {
    content: '';
    position: static;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: auto; /* Normal stacking */
}

.home-page-bg > * {
    position: relative;
    z-index: auto; /* Normal stacking - no elevation */
}

.section_gap {
    padding-top: 80px;
    padding-right: 0px;
    padding-bottom: 20px;
    padding-left: 0px;
}

/* Header & Navigation */
.header-area {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 76px;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 15px 20px !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #325ace !important;
    opacity: 1.00;
    font-weight: 500 !important;
}

.navbar-nav .nav-link.active {
    color: #325ace !important;
}

/* Banner Carousel */
.banner-carousel .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
    bottom: 50px;
}

.carousel-caption h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Home Page Carousel - Compact Size */
#carouselExampleIndicators {
    margin-top: 40px;
    margin-bottom: 50px;
    padding-top: 20px;
}

/* #carouselExampleIndicators .carousel-item {
    /* padding: 20px 0;
} */

#carouselExampleIndicators .carousel-item .row {
    margin: 0;
}

#carouselExampleIndicators .carousel-item .col-lg-8 img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover;
    border-radius: 10px;
}

#carouselExampleIndicators .carousel-item .col-lg-4 {
    padding: 20px;
}

#carouselExampleIndicators .carousel-item h1 {
    font-size: 20px !important;
    line-height: 1.3;
    margin-bottom: 15px;
}

#carouselExampleIndicators .carousel-item p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

#carouselExampleIndicators .carousel-item .date {
    margin-bottom: 15px;
}

#carouselExampleIndicators .carousel-item .date a {
    font-size: 12px;
    padding: 5px 10px;
}

/* Responsive Carousel */
@media (max-width: 992px) {
    #carouselExampleIndicators .carousel-item .col-lg-8 img {
        height: 200px !important;
        margin-bottom: 20px;
    }

    #carouselExampleIndicators .carousel-item h1 {
        font-size: 18px !important;
    }
}

@media (max-width: 768px) {
    #carouselExampleIndicators .carousel-item .col-lg-8 img {
        height: 180px !important;
    }

    #carouselExampleIndicators .carousel-item h1 {
        font-size: 16px !important;
    }

    #carouselExampleIndicators .carousel-item {
        padding: 15px 0;
    }

    /* Home Background Responsive - Mobile */
    .home-page-bg {
        background-attachment: scroll;
    }

    .home-page-bg::before {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #007bff;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-card-content {
    padding: 25px;
}

/* Rounded Image Styles for Home Page */
/* Editor's Choice Images */
.choice_item img.choice {
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.choice_item img.choice:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Latest News Images */
.latest_news .media img.img-fluid {
    border-radius: 12px;
    transition: all 0.3s ease;
    max-width: 300px;
    height: 180px;
    object-fit: cover;
}

.latest_news .media img.img-fluid:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Gaming Corner Small Images */
.choice_item.small img.img-fluid {
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 120px;
    object-fit: cover;
}

.choice_item.small img.img-fluid:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Gaming Corner Large Images */
.choice_item:not(.small) img.img-fluid {
    border-radius: 15px;
    transition: all 0.3s ease;
    width: 100%;
    /* height: 250px; */
    object-fit: cover;
}

.choice_item:not(.small) img.img-fluid:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #007bff;
}

.news-card-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-card-meta {
    display: flex;
    justify-content: between;
    align-items: center;
    color: #999;
    font-size: 12px;
}

.news-card-date {
    margin-right: auto;
}

.news-card-read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.news-card-read-more:hover {
    text-decoration: underline;
}

/* Sidebar Widgets */
.widget {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #007bff;
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.post-content h5 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-content h5 a {
    color: #333;
    text-decoration: none;
}

.post-content h5 a:hover {
    color: #007bff;
}

.post-date {
    color: #999;
    font-size: 12px;
    margin: 0;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list li a {
    display: block;
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-list li a:hover {
    color: #007bff;
    padding-left: 10px;
}

/* Trending Posts Widget */
.trending-post-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.trending-post-item:last-child {
    border-bottom: none;
}

.trending-post-item h6 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.trending-post-item h6 a {
    color: #333;
    text-decoration: none;
}

.trending-post-item h6 a:hover {
    color: #007bff;
}

/* News Detail Page */
.news-detail-content {
    background: #ffffffaa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-header {
    margin-bottom: 30px;
}

.news-meta {
    margin-bottom: 15px;
}

.news-meta .category {
    background: #007bff;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 15px;
}

.news-meta .date {
    color: #999;
    font-size: 14px;
}

.news-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    margin: 0;
}

.news-featured-image {
    margin: 30px 0;
    text-align: center;
}

.news-featured-image img {
    max-width: 100%;
    border-radius: 10px;
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Share Buttons */
.news-share {
    border-top: 2px solid #f0f0f0;
    padding-top: 30px;
}

.news-share h5 {
    margin-bottom: 15px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn.facebook {
    background: #3b5998;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pagination li {
    margin: 0;
}

.pagination li a {
    display: block;
    padding: 12px 18px;
    color: #666;
    text-decoration: none;
    border-right: 1px solid #eee;
    transition: all 0.3s ease;
}

.pagination li:last-child a {
    border-right: none;
}

.pagination li a:hover,
.pagination li.active a {
    background: #007bff;
    color: white;
}

/* Footer CI3 Style */
.footer-area {
    background: #04091e;
    padding-top: 60px;
}

.ab_widgets img {
    margin-bottom: 25px;
    max-width: 150px;
}

.f_title {
    background: #161a29;
    border-left: 3px solid #325ace;
    margin-bottom: 30px;
}

.f_title h3 {
    padding-left: 15px;
    font-size: 18px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: #fff;
    line-height: 40px;
    margin-bottom: 0;
}

.single-footer-widget {
    margin-bottom: 30px;
}

.single-footer-widget p {
    color: #777777;
    margin-bottom: 0px;
    max-width: 325px;
}

.single-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-footer-widget ul li {
    margin-bottom: 12px;
}

.single-footer-widget ul li a {
    line-height: 25px;
    display: inline-block;
    color: #777;
    transition: all 0.3s linear;
    text-decoration: none;
}

.single-footer-widget ul li a:hover {
    color: #ef8427;
}

.single-footer-widget ul li:last-child {
    margin-bottom: 0px;
}

.m_news_widgets .m_news .media {
    margin-bottom: 25px;
}

.m_news_widgets .m_news .media .d-flex {
    padding-right: 20px;
}

.m_news_widgets .m_news .media .d-flex img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
}

.m_news_widgets .m_news .media .media-body h4 {
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    transition: all 300ms linear 0s;
    margin-bottom: 5px;
}

.m_news_widgets .m_news .media .media-body h4:hover {
    color: #ff1857;
}

.m_news_widgets .m_news .media .media-body .date {
    margin-bottom: 0px;
}

.m_news_widgets .m_news .media .media-body .date a {
    color: #777;
    font-size: 12px;
}

.m_news_widgets .m_news .media:last-child {
    margin-bottom: 0px;
}

.f_social_wd p {
    font-size: 14px;
    color: #777777;
    margin-bottom: 15px;
}

.f_social_wd .f_social a {
    font-size: 14px;
    color: #cccccc;
    transition: all 0.3s linear;
    margin-right: 20px;
    text-decoration: none;
}

.f_social_wd .f_social a:hover {
    color: #ef8427;
}

.footer-bottom {
    border-top: 1px solid #333333;
    background: #04091e;
    /* padding: 20px 0; */
}

.footer-bottom .footer-text {
    margin-bottom: 0px;
    color: #777777;
}

.footer-bottom .footer-text i {
    color: #ff1857;
}

.footer-bottom .footer-text a {
    color: #ff1857;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-detail-content {
        /* padding: 20px; */
    }

    .news-title {
        font-size: 24px;
    }

    /* Responsive Rounded Images */
    .latest_news .media img.img-fluid {
        max-width: 250px;
        height: 150px;
        border-radius: 10px;
    }

    .choice_item img.choice {
        border-radius: 12px;
    }

    .choice_item:not(.small) img.img-fluid {
        height: 200px;
        border-radius: 12px;
    }

    .choice_item.small img.img-fluid {
        height: 100px;
        border-radius: 8px;
    }

    .carousel-caption h3 {
        font-size: 20px;
    }

    .section_gap {
        padding: 40px 0;
    }

    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .news-card-content {
        padding: 20px;
    }

    .widget {
        padding: 20px;
    }

    .popular-post-item {
        flex-direction: column;
        text-align: center;
    }

    .popular-post-item img {
        margin: 0 0 10px 0;
        width: 100%;
        height: 150px;
    }
}

/* Enhanced Button Styles for Carousel and Components */
.genric-btn.success.circle.small {
    background: linear-gradient(135deg, #f0872a, #f0872a);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.genric-btn.success.circle.small:hover {
    background: linear-gradient(135deg, #f0872a, #f0872a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.genric-btn.danger.circle.arrow {
    background: linear-gradient(135deg, #325ace, #325ace);
    border: none;
    /* padding: 0.75rem 2rem; */
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.genric-btn.danger.circle.arrow:hover {
    background: linear-gradient(135deg, #325ace, #325ace);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(128, 128, 128, 0.4);
    color: white;
    text-decoration: none;
}

.genric-btn.danger.circle.arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.genric-btn.danger.circle.arrow:hover::before {
    left: 100%;
}

/* Enhanced Home Page Background */
.home-page-bg {
    background: linear-gradient(rgba(255, 255, 255, 0.876), rgb(255, 255, 255)), url('/images/gallery/bg8.jpg') no-repeat center center;
    /* background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%),
                url('/images/gallery/bg4.jpg') no-repeat center center; */
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    position: static;
}

.home-page-bg::before {
    content: '';
    position: static;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(255, 255, 255, 0.92); */
    z-index: 1;
    backdrop-filter: blur(1px);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}