/**
 * What Makes AISB Different Layout Styles
 * 
 * Styles for the two-column layout with featured post on left
 * and secondary posts on right with image-content arrangement
 * 
 * @package AISBKnowledgeNetworks
 * @since 1.0.0
 */

.what-makes-aisb-different {
    margin: 40px 0 20px;
}

/* Left Column - Featured Post */
.featured-post {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-image-container {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.featured-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

h3.post-title, .featured-title {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 34px;
    color: #2a548c;
    line-height: 44px;
}

.featured-description, .post-content {
    font-weight: 300;
    font-size: 18px;
    color: #2e2b2b;
    letter-spacing: -1px;
    line-height: 23px;
}

/* Right Column - Secondary Posts */
.secondary-posts {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secondary-post {
    border-bottom: 1px solid #eee;
    padding-bottom: 0;
}

.secondary-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-row {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* .post-image-col {
    flex: 0 0 120px;
    max-width: 120px;
} */

.post-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.post-content-col {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* Responsive Design */
@media (max-width: 991px) {
    .featured-title {
        font-size: 1.8rem;
    }
    
    .featured-description {
        font-size: 1rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .post-image-col {
        flex: 0 0 100px;
        max-width: 100px;
    }
    
    .post-thumbnail {
        height: 70px;
    }
}

@media (max-width: 767px) {
    .what-makes-aisb-different .row {
        flex-direction: column;
        gap: 40px;
    }
    
    .featured-image-container {
        margin-bottom: 20px;
    }
    
    .featured-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .secondary-posts {
        gap: 30px;
    }
    
    .secondary-post {
        padding-bottom: 30px;
    }
    
    .post-row {
        gap: 15px;
    }
    
    .post-image-col {
        flex: 0 0 80px;
        max-width: 80px;
    }
    
    .post-thumbnail {
        height: 60px;
    }
    
    .post-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .post-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-image-col {
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .post-thumbnail {
        height: 120px;
        width: 100%;
    }
    
    .featured-title {
        font-size: 1.4rem;
    }
}

/* Animation and Transitions */
.featured-post,
.secondary-post {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.featured-post {
    animation-delay: 0.1s;
}

.secondary-post:nth-child(1) {
    animation-delay: 0.2s;
}

.secondary-post:nth-child(2) {
    animation-delay: 0.3s;
}

.secondary-post:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-image-container img {
    width: 100%;
    height: 400px !important;
}

h3.post-title {
    margin-bottom: 5px;
}

.post-content p {
    margin: 0;
}

.post-content p {
    margin: 0;
}

.post-image-col img {
    width: 100%;
    height: 210px !important;
    border-radius: 10px !important;
}

.post-image-col {
    width: 40%;
}

.post-content-col {
    width: 60%;
}