/* 1. Lead Section (Slider + Right Grid) */
.lead-post-container {
    display: grid;
    grid-template-columns: 1fr 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 1fr;
    gap: 0;
    align-content: start;
}

.lead-grid-item {
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
    border: none;
}

.lead-grid-item:first-child {
    border-right: 1px solid var(--border-color);
    padding-right: 15px;
}

.lead-grid-item:last-child {
    padding-left: 15px;
}

.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;
}

.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. Tertiary Section */
.tertiary-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    row-gap: 30px;
}

.tertiary-post-item {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 15px;
    align-items: start;
}

.tertiary-post-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.tertiary-post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.tertiary-post-title a:hover {
    color: var(--primary-color);
}

.tertiary-post-image {
    width: 100%;
}

.tertiary-post-image img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
    background-color: #eee;
}

/* Sidebar Styling */
.sidebar-ad {
    margin-bottom: 20px;
}

.sidebar-ad img {
    width: 100%;
    height: auto;
    display: block;
}

.opinion-widget {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
}

.opinion-widget-title {
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
    color: var(--text-color);
}

.opinion-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e2e8f0;
}

.opinion-list::-webkit-scrollbar {
    width: 6px;
}

.opinion-list::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

.opinion-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.opinion-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.opinion-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.opinion-icon {
    width: 45px;
    height: 45px;
    background-color: #e2e8f0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.opinion-content {
    display: flex;
    flex-direction: column;
}

.opinion-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.opinion-title a {
    color: var(--text-color);
    text-decoration: none;
}

.opinion-author {
    font-size: 14px;
    color: var(--light-text);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .opinion-widget {
        background-color: transparent;
        padding: 0;
        border-top: 2px solid var(--primary-color);
        padding-top: 20px;
    }
}

@media (max-width: 991px) {
    .tertiary-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@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-excerpt,
    .lead-grid-author {
        display: none;
    }

    .secondary-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .secondary-post-item {
        align-items: center;
    }

    .secondary-post-excerpt {
        display: none;
    }
    
    .tertiary-posts-grid {
        grid-template-columns: 1fr;
    }
}
