/* 1. Lead Section (Slider + Right Grid) */
.lead-post-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Slider CSS */
.lead-slider-wrapper {
    height: 100%;
    overflow: hidden;
}

.lead-swiper {
    width: 100%;
    height: auto;
}

/* New Slider Stacked Card CSS */
.slider-card {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.slider-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.slider-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.5s ease;
}

.slider-card:hover .slider-image img {
    transform: scale(1.05);
}

.slider-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.slider-title {
    font-size: 24px;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.slider-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.slider-title a:hover {
    color: var(--primary-color);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Lead Right 2-Posts Grid */
.lead-right-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: start;
}

.lead-grid-item {
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
    border: none;
}

.lead-grid-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.lead-grid-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lead-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.lead-grid-content {
    padding: 15px 0 0 0;
}

.lead-grid-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.lead-grid-title a {
    color: var(--text-color);
    text-decoration: none;
}

.lead-grid-title a:hover {
    color: var(--primary-color);
}

.lead-grid-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--light-text);
    margin-top: 8px;
    margin-bottom: 12px;
}

.lead-grid-meta i {
    color: var(--primary-color);
    margin-right: 4px;
}

.lead-grid-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    text-align: justify;
}

.inline-read-more {
    float: right;
    color: var(--primary-color);
    font-weight: 600;
    font-size: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 3px;
}

.inline-read-more:hover {
    color: var(--text-color);
}

/* 2. Secondary Section */
.secondary-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.secondary-post-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: stretch;
}

.secondary-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.secondary-post-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.secondary-post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.secondary-post-title a:hover {
    color: var(--primary-color);
}

.secondary-post-excerpt {
    font-size: 14px;
    color: var(--light-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.secondary-post-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.secondary-post-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.secondary-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* 3. Removed Tertiary Section */

/* Sidebar Styling */
.sidebar-ad {
    margin-bottom: 20px;
}

.sidebar-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* Removed Opinion Section styles as it's replaced by latest/popular tabs */

/* Sidebar Tabs */
.s1-sidebar-tabs {
    background: transparent;
}

.s1-tabs-box {
    background: #ffffff;
    border: 1px solid #d1d5db;
    padding: 20px;
    border-radius: 4px;
}

.s1-tabs {
    display: flex;
    flex-direction: column;
}

.s1-tab-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    background: #e2e8f0;
}

.s1-tab-nav li {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #555;
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.s1-tab-nav li.active {
    background: #ffffff;
    color: var(--text-color);
    border-top: 3px solid var(--primary-color);
}

.s1-tab-content-container {
    background: transparent;
    border-top: 1px solid #d1d5db;
    padding-top: 15px;
}

.s1-tab-pane {
    display: none;
    flex-direction: column;
}

.s1-tab-pane.active {
    display: flex;
}

.s1-tab-item {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 15px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #d1d5db;
}

.s1-tab-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.s1-tab-title {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

.s1-tab-title a {
    color: var(--text-color);
    text-decoration: none;
}

.s1-tab-title a:hover {
    color: var(--primary-color);
}

.s1-tab-image {
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.s1-tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s1-tab-more-btn {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    margin-top: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.s1-tab-more-btn:hover {
    background-color: #111;
    color: #ffffff;
}

/* Responsive Breakpoints */

@media (max-width: 768px) {
    .lead-post-container {
        grid-template-columns: 1fr;
    }
    
    .lead-swiper {
        min-height: 250px;
        margin-bottom: 20px;
    }
    
    .slider-title {
        font-size: 20px;
    }

    .lead-grid-item {
        display: grid;
        grid-template-columns: 130px 1fr;
        gap: 15px;
        align-items: start;
    }

    .lead-grid-image {
        padding-top: 70%;
    }

    .lead-grid-content {
        padding: 0;
    }

    .lead-grid-excerpt,
    .lead-grid-author {
        display: none;
    }

    .secondary-post-item {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .secondary-post-excerpt {
        display: none;
    }
    
    .tertiary-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-ad {
        display: none;
    }
}
