/* ========================================
   RELATED POSTS CARDS - RESPONSIVE FIX
   ======================================== */

/* Container - Force grid layout */
.elementor-posts--skin-cards.elementor-grid,
.elementor-posts-container.elementor-posts--skin-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Individual Post Item */
.elementor-posts--skin-cards .elementor-post.elementor-grid-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
}

/* Card Container - BETTER SIZE */
.elementor-posts--skin-cards .elementor-post__card {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(62, 39, 35, 0.12) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    min-height: 380px !important;
    max-height: 420px !important;
    display: flex !important;
    flex-direction: column !important;
}

.elementor-posts--skin-cards .elementor-post__card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(62, 39, 35, 0.18) !important;
}

/* Thumbnail Image */
.elementor-posts--skin-cards .elementor-post__thumbnail {
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #3e2723 0%, #6d4c41 100%) !important;
}

.elementor-posts--skin-cards .elementor-post__thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.elementor-posts--skin-cards .elementor-post__card:hover .elementor-post__thumbnail img {
    transform: scale(1.08) !important;
}

/* Text Content Area */
.elementor-posts--skin-cards .elementor-post__text {
    padding: 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Title */
.elementor-posts--skin-cards .elementor-post__title {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 12px 0 !important;
    min-height: 48px !important;
}

.elementor-posts--skin-cards .elementor-post__title a {
    color: #3e2723 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.3s ease !important;
}

.elementor-posts--skin-cards .elementor-post__title a:hover {
    color: #8d6e63 !important;
}

/* Excerpt */
.elementor-posts--skin-cards .elementor-post__excerpt {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 0 0 16px 0 !important;
    flex: 1 !important;
}

.elementor-posts--skin-cards .elementor-post__excerpt p {
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Read More Button */
.elementor-posts--skin-cards .elementor-post__read-more {
    display: inline-block !important;
    padding: 10px 20px !important;
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    align-self: flex-start !important;
    margin-top: auto !important;
}

.elementor-posts--skin-cards .elementor-post__read-more:hover {
    background: linear-gradient(135deg, #5d4037 0%, #8d6e63 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(62, 39, 35, 0.3) !important;
}

/* Meta Data (Date) */
.elementor-posts--skin-cards .elementor-post__meta-data {
    padding: 12px 20px !important;
    border-top: 1px solid #f0f0f0 !important;
    font-size: 12px !important;
    color: #999 !important;
    background: #fafafa !important;
}

/* ========================================
   TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .elementor-posts--skin-cards.elementor-grid,
    .elementor-posts-container.elementor-posts--skin-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .elementor-posts--skin-cards .elementor-post__card {
        min-height: 360px !important;
        max-height: 400px !important;
    }

    .elementor-posts--skin-cards .elementor-post__thumbnail {
        height: 160px !important;
    }

    .elementor-posts--skin-cards .elementor-post__title {
        font-size: 16px !important;
    }
}

/* ========================================
   MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    .elementor-posts--skin-cards.elementor-grid,
    .elementor-posts-container.elementor-posts--skin-cards {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .elementor-posts--skin-cards .elementor-post__card {
        flex-direction: row !important;
        min-height: 160px !important;
        max-height: 180px !important;
    }

    .elementor-posts--skin-cards .elementor-post__thumbnail {
        width: 140px !important;
        min-width: 140px !important;
        height: auto !important;
        min-height: 160px !important;
    }

    .elementor-posts--skin-cards .elementor-post__text {
        padding: 16px !important;
        flex: 1 !important;
    }

    .elementor-posts--skin-cards .elementor-post__title {
        font-size: 15px !important;
        margin-bottom: 8px !important;
        min-height: auto !important;
    }

    .elementor-posts--skin-cards .elementor-post__excerpt {
        font-size: 13px !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 10px !important;
    }

    .elementor-posts--skin-cards .elementor-post__excerpt p {
        -webkit-line-clamp: 2 !important;
    }

    .elementor-posts--skin-cards .elementor-post__read-more {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    .elementor-posts--skin-cards .elementor-post__meta-data {
        display: none !important;
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .elementor-posts--skin-cards .elementor-post__card {
        min-height: 140px !important;
        max-height: 160px !important;
    }

    .elementor-posts--skin-cards .elementor-post__thumbnail {
        width: 120px !important;
        min-width: 120px !important;
        min-height: 140px !important;
    }

    .elementor-posts--skin-cards .elementor-post__text {
        padding: 12px !important;
    }

    .elementor-posts--skin-cards .elementor-post__title {
        font-size: 14px !important;
    }

    .elementor-posts--skin-cards .elementor-post__excerpt {
        display: none !important;
    }

    .elementor-posts--skin-cards .elementor-post__read-more {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
}
