/* Main Grid 2 Styles */

.main-grid-2-wrap {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 0px;
    box-sizing: border-box;
}

.main-grid-2-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card Style */
.main-grid-2-item {
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.main-grid-2-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Thumbnail Area (380x380 equivalent ratio) */
.grid-2-thumb {
    width: 100%;
    position: relative;
    /* Default 1:1 Aspect Ratio (fallback) */
    padding-top: 100%;
    background-color: #f5f5f5;
}

/* Aspect Ratio Variations */
.ratio-16-9 .grid-2-thumb {
    padding-top: 56.25%;
    /* 16:9 */
}

.ratio-4-3 .grid-2-thumb {
    padding-top: 75%;
    /* 4:3 */
}

.ratio-1-1 .grid-2-thumb {
    padding-top: 100%;
    /* 1:1 */
}

.grid-2-thumb .thumb-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.grid-2-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    /* Move transition to img */
}

/* Hover effect on image */
.main-grid-2-item:hover .grid-2-thumb img {
    transform: scale(1.05);
}

/* Content Area (380x265 target height) */
/* Content Area (Auto height) */
.grid-2-content {
    /* Removed padding to re-apply below if needed or keep existing */
    padding: 20px 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex-grow: 1;
    /* Stretch to fill if card height is fixed by grid */
}

/* Category & Top Meta */
.grid-2-meta-top {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* .grid-2-cat { } */

/* Title */
.grid-2-title {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;
    color: #111;

    /* 2 lines max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 58px;
    /* Fixed height for alignment (21 * 1.4 * 2 lines approx) */
}

.grid-2-title a {
    text-decoration: none;
    color: inherit;
}

.grid-2-title a:hover {
    text-decoration: none;
}

/* Description */
.grid-2-desc {
    font-size: 17px;
    line-height: 1.6;
    /* Comfortable spacing */
    color: #555;
    margin-top: 5px;
    margin-bottom: auto;
    /* Push date to bottom */

    /* 3 lines max */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 82px;
    /* Fixed height (17 * 1.6 * 3 lines approx) */
}

.grid-2-desc p {
    margin: 0;
}

/* Footer / Date */
.grid-2-footer {
    border-top: none;
    margin-top: 15px;
    text-align: right;
}

.grid-2-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Load More Button */
.main-grid-2-more {
    text-align: center;
    margin-top: 50px;
}

.winit-grid-2-load-more {
    display: inline-block;
    padding: 12px 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
    background: #fff;
}

.winit-grid-2-load-more:hover {
    background: #f9f9f9;
    border-color: #bbb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	
    .main-grid-2-list {
        grid-template-columns: 1fr;
        /* 1 Column */
        gap: 25px;
    }

    .grid-2-content {
        height: auto;
        /* Allow auto height on mobile if safer, or keep fixed styling */
        min-height: 265px;
    }

    .main-grid-2-wrap {
        margin: 25px auto;
        padding: 0 15px;
    }
}