/* Section 3 Wrapper */
.section-3-wrapper {
    background-color: #f4f6f8;
    padding: 30px 0;
    margin-bottom: 15px;
}

/* Header */
.s3-main-header {
    margin-bottom: 25px;
    text-align: center;
}

.s3-main-header h2 {
    /* Managed by .center-unique-title in style.css */
}

.s3-main-header h2 a {
    color: inherit;
    text-decoration: none;
}

/* Top Grid (Lead + Ad) */
.s3-top-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 25px;
}

.s3-lead-post {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.s3-lead-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.s3-lead-image a {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.s3-lead-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.s3-lead-post:hover .s3-lead-image img {
    transform: scale(1.05);
}

.s3-lead-content {
    display: flex;
    flex-direction: column;
}

.s3-lead-title {
    font-size: 28px;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.s3-lead-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.s3-lead-title a:hover {
    color: var(--primary-color);
}

.s3-lead-excerpt {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.s3-lead-excerpt::after {
    content: "";
    display: table;
    clear: both;
}

.s3-lead-read-more {
    float: right;
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.s3-lead-read-more:hover {
    color: #111;
}

.s3-lead-read-more i {
    font-size: 12px;
    margin-left: 2px;
}

.s3-ad-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.s3-side-ad img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Bottom Grid (4 Posts) */
.s3-bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.s3-grid-item {
    display: flex;
    flex-direction: column;
}

.s3-grid-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    margin-bottom: 12px;
}

.s3-grid-image a {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.s3-grid-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.s3-grid-item:hover .s3-grid-image img {
    transform: scale(1.05);
}

.s3-grid-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.s3-grid-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.s3-grid-title a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .s3-top-grid {
        grid-template-columns: 1fr;
    }
    
    .s3-ad-col {
        justify-content: center;
        margin-top: 20px;
    }

    .s3-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .s3-lead-post {
        grid-template-columns: 1fr;
    }
    
    .s3-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
