/*
Theme Name: Truth Child
Template: truth
Theme URI: https://truth.themerex.net/
Description: Truth is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: ThemeREX
Author URI: https://themerex.net/
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* =Theme customization starts here

-------------------------------------------------------------- */
    /* Hero Section */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.swiper-wrapper {
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 60px;
  max-width: 800px;
}

.hero-category {
  background: #2c5f2d;
  display: inline-block;
  padding: 5px 15px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-weight: 600;
}

.hero-title {
  color: white;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-excerpt {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 25px;
  opacity: 0.95;
}

.hero-meta {
  font-size: 14px;
  opacity: 0.8;
}

/* === Swiper Navigation and Pagination === */
.swiper-button-next,
.swiper-button-prev {
  color: #ffffff !important;
  transition: opacity 0.3s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 0.8;
}

.swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}
    
    /* Featured Grid */
    .featured-section {
        padding: 60px 0;
        background: #f8f8f8;
    }
    
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .featured-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
    
    .main-featured {
        display: grid;
        gap: 30px;
    }
    
    .featured-card {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        transition: transform 0.3s, box-shadow 0.3s;
    }
    
    .featured-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    
    .featured-card-horizontal {
        display: grid;
        grid-template-columns: 280px 1fr;
        height: 180px; /* Fixed height for all cards */
    }

    .featured-image {
        position: relative;
        overflow: hidden;
        height: 200px;
    }

    .featured-card-horizontal .featured-image {
        height: 180px; /* Fixed height matching card height */
        width: 280px; /* Fixed width */
    }

    .featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center; /* Consistent image cropping */
        transition: transform 0.3s;
    }
    
    .featured-card:hover .featured-image img {
        transform: scale(1.05);
    }
    
    .featured-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: #2c5f2d;
        color: #fff;
        padding: 5px 12px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .featured-content {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }

    .featured-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
        margin: 0 0 10px 0;
        color: #1a1a1a;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit to 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .featured-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s;
    }

    .featured-title a:hover {
        color: #2c5f2d;
    }

    .featured-excerpt {
        font-size: 14px;
        line-height: 1.5;
        color: #666;
        margin: 0 0 10px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit to 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .featured-meta {
        font-size: 12px;
        color: #999;
        margin-top: auto;
    }
    
    /* Sidebar */
    .sidebar-section {
        background: #fff;
        border-radius: 8px;
        padding: 25px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
    
    .sidebar-title {
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 3px solid #2c5f2d;
    }
    
    .trending-list {
        list-style: none;
    }
    
    .trending-item {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
    
    .trending-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .trending-number {
        font-size: 28px;
        font-weight: 900;
        color: #2c5f2d;
        line-height: 1;
    }
    
    .trending-content h4 {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .trending-content h4 a {
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .trending-content h4 a:hover {
        color: #2c5f2d;
    }
    
    .trending-views {
        font-size: 12px;
        color: #999;
    }
    
    /* Tournament Section */
    .tournament-section {
        padding: 60px 0;
        background: #fff;
    }
    
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 36px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 2px;
        position: relative;
        padding-left: 20px;
    }
    
    .section-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 40px;
        background: #2c5f2d;
    }
    
    .view-all-btn {
        background: transparent;
        color: #2c5f2d;
        border: 2px solid #2c5f2d;
        padding: 10px 25px;
        text-decoration: none;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s;
    }
    
    .view-all-btn:hover {
        background: #2c5f2d;
        color: #fff;
    }
    
    .tournament-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .tournament-card {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s;
    }
    
    .tournament-card:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-5px);
    }
    
    .tournament-image {
        height: 180px;
        overflow: hidden;
        position: relative;
    }
    
    .tournament-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .live-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #ff0000;
        color: #fff;
        padding: 5px 10px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .live-badge::before {
        content: '';
        width: 8px;
        height: 8px;
        background: #fff;
        border-radius: 50%;
        animation: pulse 1.5s infinite;
    }
    
    @keyframes pulse {
        0% { opacity: 1; }
        50% { opacity: 0.3; }
        100% { opacity: 1; }
    }
    
    .tournament-info {
        padding: 20px;
    }
    
    .tournament-date {
        font-size: 12px;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }
    
    .tournament-name {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 8px;
        color: #1a1a1a;
    }
    
    .tournament-location {
        font-size: 14px;
        color: #666;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    /* Video Section */
    .video-section {
        padding: 60px 0;
        background: #1a1a1a;
    }
    
    .video-section .section-title {
        color: #fff;
    }
    
    .video-section .section-title::before {
        background: #fff;
    }
    
    .video-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .video-card {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
    }
    
    .video-thumbnail {
        position: relative;
        padding-bottom: 56.25%;
        background: #000;
    }
    
    .video-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 80px;
        background: rgba(0, 177, 79, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }
    
    .play-button::after {
        content: '';
        width: 0;
        height: 0;
        border-left: 25px solid #fff;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
        margin-left: 5px;
    }
    
    .video-card:hover .play-button {
        transform: translate(-50%, -50%) scale(1.1);
        background: rgba(0, 177, 79, 1);
    }
    
    .video-info {
        padding: 20px;
        background: #2a2a2a;
    }
    
    .video-title {
        font-size: 16px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .video-meta {
        font-size: 13px;
        color: #999;
    }
    
    /* Newsletter Section */
    .newsletter-section {
        padding: 80px 0;
        background: linear-gradient(135deg, #2c5f2d 0%, #009940 100%);
        text-align: center;
    }
    
    .newsletter-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .newsletter-title {
        font-size: 42px;
        font-weight: 900;
        color: #fff;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    
    .newsletter-subtitle {
        font-size: 18px;
        color: rgba(255,255,255,0.9);
        margin-bottom: 40px;
    }
    
    .newsletter-form {
        display: flex;
        gap: 15px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .newsletter-input {
        flex: 1;
        padding: 15px 20px;
        border: none;
        border-radius: 50px;
        font-size: 16px;
    }
    
    .newsletter-button {
        background: #1a1a1a;
        color: #fff;
        padding: 15px 40px;
        border: none;
        border-radius: 50px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .newsletter-button:hover {
        background: #000;
        transform: translateY(-2px);
    }
    
    /* Responsive */
    @media (max-width: 968px) {
        .hero-title {
            font-size: 32px;
        }
        
        .hero-content {
            padding: 40px 20px;
        }
        
        .featured-grid {
            grid-template-columns: 1fr;
        }
        
        .featured-card-horizontal {
            grid-template-columns: 1fr;
            height: auto; /* Allow auto height on mobile */
        }

        .featured-card-horizontal .featured-image {
            height: 200px;
            width: 100%; /* Full width on mobile */
        }

        .featured-content {
            padding: 15px;
        }
        
        .section-header {
            flex-direction: column;
            gap: 20px;
            align-items: flex-start;
        }
        
        .newsletter-form {
            flex-direction: column;
        }
        
        .tournament-grid,
        .video-grid {
            grid-template-columns: 1fr;
        }
    }
        /* Category Hero Section */
    .category-hero {
        background: linear-gradient(135deg, #2c5f2d 0%, #2c5f2d 100%);
        padding: 80px 0;
        position: relative;
        overflow: hidden;
    }
    
    .category-hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 600px;
        height: 600px;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
    }
    
    .category-hero-content {
        position: relative;
        z-index: 2;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .category-breadcrumb {
        margin-bottom: 20px;
    }

    .breadcrumb {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: rgba(255,255,255,0.8);
        padding: 0;
        margin: 0;
    }
    
    .breadcrumb a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .breadcrumb a:hover {
        color: #fff;
    }
    
    .breadcrumb li:not(:last-child)::after {
        content: '/';
        margin-left: 10px;
        color: rgba(255,255,255,0.5);
    }
    
    .category-title {
        font-size: 48px;
        font-weight: 900;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 15px !important;
    }
    
    .category-description {
        font-size: 18px;
        color: rgba(255,255,255,0.9);
        max-width: 600px;
        line-height: 1.6;
    }
    
    /* Filter Bar */
    .filter-bar {
        background: #fff;
        padding: 20px 0;
        border-bottom: 1px solid #eee;
        /* position: sticky;
        top: 80px;
        z-index: 100; */
    }
    
    .filter-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .filter-tabs {
        display: flex;
        gap: 5px;
    }
    
    .filter-tab {
        padding: 10px 20px;
        background: transparent;
        border: 2px solid #e0e0e0;
        color: #666;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s;
        cursor: pointer;
    }
    
    .filter-tab:hover {
        border-color: #2c5f2d;
        color: #2c5f2d;
    }
    
    .filter-tab.active {
        background: #2c5f2d;
        border-color: #2c5f2d;
        color: #fff;
    }
    
    .view-options {
        display: flex;
        gap: 15px;
        align-items: center;
    }
    
    .sort-dropdown {
        padding: 8px 15px;
        border: 1px solid #ddd;
        background: #fff;
        font-size: 14px;
        cursor: pointer;
    }
    
    .view-toggle {
        display: flex;
        gap: 5px;
    }
    
    .view-btn {
        width: 35px;
        height: 35px;
        border: 1px solid #ddd;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .view-btn.active {
        background: #2c5f2d;
        border-color: #2c5f2d;
        color: #fff;
    }
    
    .view-btn:hover {
        border-color: #2c5f2d;
    }
    
    /* Main Content Area */
    .category-content {
        padding: 60px 0;
        background: #f8f8f8;
    }
    
    .content-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 40px;
    }
    
    /* Articles Grid */
    .articles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 30px;
    }
    
    .article-card {
        background: #F8F8F8;
        border: #f2f2f2 solid 1px;
        border-top-left-radius: 11px;
        border-top-right-radius: 11px;
        /* border-radius: 8px; */
        overflow: hidden;
        /* box-shadow: 0 5px 15px rgba(0,0,0,0.08); */
        transition: all 0.3s;
        display: flex;
        flex-direction: column;
    }
    
    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    
    .article-image {
        position: relative;
        border-top-right-radius: 8px;
        border-top-left-radius: 8px;
        padding-bottom: 60%;
        overflow: hidden;
        background: #f0f0f0;
    }
    
    .article-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }
    
    .article-card:hover .article-image img {
        transform: scale(1.05);
    }
    
    .article-category {
        position: absolute;
        top: 15px;
        left: 15px;
        background: #2c5f2d;
        color: #fff;
        padding: 5px 12px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .article-content {
        padding: 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .article-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 10px;
        flex: 1;
    }
    
    .article-title a {
        color: #1a1a1a;
        font-size: 1.8rem;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .article-title a:hover {
        color: #2c5f2d;
    }
    
    .article-excerpt {
        font-size: 14px;
        line-height: 1.5;
        color: #474747;
        margin-bottom: 15px;
    }
    
    .article-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        border-top: 1px solid #f0f0f0;
    }
    
    .article-author {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: #999;
    }
    
    .author-avatar {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #e0e0e0;
    }
    
    .article-date {
        font-size: 13px;
        color: #999;
    }
    
    /* Sidebar */
    .category-sidebar {
        position: sticky;
        top: 180px;
        height: fit-content;
    }
    
    .sidebar-widget {
        background: #fff;
        border-radius: 8px;
        padding: 25px;
        margin-bottom: 30px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
    
    .sidebar-title {
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 3px solid #2c5f2d;
    }
    
    /* Popular Posts Widget */
    .popular-posts {
        list-style: none;
    }
    
    .popular-post {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .popular-post:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .popular-post-image {
        width: 80px;
        height: 80px;
        border-radius: 5px;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .popular-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .popular-post-content {
        flex: 1;
    }
    
    .popular-post-title {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .popular-post-title a {
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .popular-post-title a:hover {
        color: #2c5f2d;
    }
    
    .popular-post-meta {
        font-size: 12px;
        color: #999;
    }
    
    /* Categories Widget */
    .categories-list {
        list-style: none;
    }
    
    .category-item {
        margin-bottom: 12px;
    }
    
    .category-item a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: #f8f8f8;
        color: #666;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s;
    }
    
    .category-item a:hover {
        background: #2c5f2d;
        color: #fff;
        padding-left: 15px;
    }
    
    .category-count {
        background: rgba(0,0,0,0.1);
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
    }
    
    /* Tags Widget */
    .tags-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tag-link {
        padding: 6px 15px;
        background: #f0f0f0;
        color: #666;
        text-decoration: none;
        font-size: 13px;
        border-radius: 20px;
        transition: all 0.3s;
    }
    
    .tag-link:hover {
        background: #2c5f2d;
        color: #fff;
        transform: translateY(-2px);
    }
    
    /* Pagination */
    .pagination {
        margin-top: 60px;
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    
    .pagination a,
    .pagination span {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        color: #666;
        text-decoration: none;
        font-weight: 600;
        border-radius: 5px;
        transition: all 0.3s;
    }
    
    .pagination a:hover {
        background: #2c5f2d;
        color: #fff;
        transform: translateY(-2px);
    }
    
    .pagination .current {
        background: #2c5f2d;
        color: #fff;
    }
    
    .pagination .prev,
    .pagination .next {
        width: auto;
        padding: 0 20px;
    }
    
    /* Load More Button */
    .load-more-container {
        text-align: center;
        margin-top: 50px;
    }
    
    .load-more-btn {
        display: inline-block;
        padding: 15px 40px;
        background: #2c5f2d;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-radius: 50px;
        transition: all 0.3s;
    }
    
    .load-more-btn:hover {
        background: #009940;
        transform: translateY(-2px);
    }
    
    /* Responsive Design */
    @media (max-width: 1200px) {
        .content-container {
            grid-template-columns: 1fr;
        }
        
        .category-sidebar {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            position: static;
        }
    }
    
    @media (max-width: 768px) {
        .category-title {
            font-size: 32px;
        }
        
        .articles-grid {
            grid-template-columns: 1fr;
        }
        
        .filter-container {
            flex-direction: column;
            gap: 20px;
        }
        
        .filter-tabs {
            overflow-x: auto;
            width: 100%;
        }
        
        .category-sidebar {
            grid-template-columns: 1fr;
        }
        
        .content-container {
            padding: 0 15px;
        }
    }

/* Ad Widget */
.ad-widget {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
}

.ad-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 10px;
}
