.awb-elementor-posts {
    display: grid;
    gap: 20px;
}

.awb-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.awb-posts-list {
    grid-template-columns: 1fr;
}

.awb-posts-masonry {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: masonry;
}

.awb-post-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.awb-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.awb-posts-list .awb-post-item {
    display: flex;
    gap: 20px;
}

.awb-posts-list .awb-post-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.awb-post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.awb-posts-list .awb-post-thumbnail img {
    height: 150px;
}

.awb-post-content {
    padding: 20px;
}

.awb-post-category {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.awb-post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.awb-post-title a {
    color: #333;
    text-decoration: none;
}

.awb-post-title a:hover {
    color: #0073aa;
}

.awb-post-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.awb-post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.awb-read-more-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.awb-read-more-btn:hover {
    background: #005a87;
}

@media (max-width: 768px) {
    .awb-posts-list .awb-post-item {
        flex-direction: column;
    }
    
    .awb-posts-list .awb-post-thumbnail {
        width: 100%;
    }
    
    .awb-post-content {
        padding: 15px;
    }
}

.teachers-list {
    display: grid;
    margin-bottom: 20px;
}
.teachers-list.columns-1 { grid-template-columns: 1fr; }
.teachers-list.columns-2 { grid-template-columns: repeat(2, 1fr); }
.teachers-list.columns-3 { grid-template-columns: repeat(3, 1fr); }
.teachers-list.columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Card Layout */
.teachers-list.layout-card .teacher-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.teachers-list.layout-card .teacher-card:hover {
    transform: translateY(-5px);
}

/* Overlay Layout */
.teachers-list.layout-overlay .teacher-image {
    position: relative;
    overflow: hidden;
}
.teachers-list.layout-overlay .image-overlay {
    position: relative;
}
.teachers-list.layout-overlay .overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.teachers-list.layout-overlay .teacher-card:hover .overlay-content {
    transform: translateY(0);
}
.teachers-list.layout-overlay .overlay-content .teacher-name a {
    color: white;
}
.teachers-list.layout-overlay .overlay-content .read-more {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

/* Minimal Layout */
.teachers-list.layout-minimal .teacher-card {
    background: transparent;
    box-shadow: none;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.teachers-list.layout-minimal .teacher-image {
    width: 80px;
    height: 80px;
    float: left;
    margin-right: 15px;
}
.teachers-list.layout-minimal .teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.teachers-list.layout-minimal .teacher-content {
    overflow: hidden;
}
.teacher-content {
    padding: 20px;
}

/* Modern Layout */
.teachers-list.layout-modern .teacher-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}
.teachers-list.layout-modern .teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.teachers-list.layout-modern .teacher-card:hover::before {
    transform: translateX(100%);
}
.teachers-list.layout-modern .teacher-name a,
.teachers-list.layout-modern .teacher-excerpt {
    color: white;
}
.teachers-list.layout-modern .read-more {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
}

/* Image Hover Effects */
.teachers-list.hover-zoom .teacher-image img {
    transition: transform 0.3s ease;
}
.teachers-list.hover-zoom .teacher-card:hover .teacher-image img {
    transform: scale(1.1);
}

.teachers-list.hover-zoom-out .teacher-image img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
.teachers-list.hover-zoom-out .teacher-card:hover .teacher-image img {
    transform: scale(1);
}

.teachers-list.hover-grayscale .teacher-image img {
    transition: filter 0.3s ease;
}
.teachers-list.hover-grayscale .teacher-card:hover .teacher-image img {
    filter: grayscale(100%);
}

/* Base Image Styles */
.teacher-image {
    overflow: hidden;
}
.teacher-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Content Styles */
.teacher-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}
.teacher-name a {
    text-decoration: none;
    transition: color 0.3s ease;
}
.teacher-excerpt {
    margin-bottom: 15px;
    line-height: 1.5;
}
.read-more {
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .teachers-list.columns-3,
    .teachers-list.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .teachers-list {
        grid-template-columns: 1fr !important;
    }
    .teachers-list.layout-minimal .teacher-image {
        float: none;
        width: 100%;
        height: 150px;
        margin-bottom: 10px;
    }
    .teachers-list.layout-minimal .teacher-image img {
        border-radius: 4px;
    }
}