/**
 * Quotes Latest Articles Section Styles
 * Grid 2x3 layout with simple white cards
 */

/* Section Container */
.itx-quotes-latest-section {
    margin-bottom: 30px;
}

/* Grid Container */
.itx-quotes-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Card Styles */
.itx-quotes-latest-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.itx-quotes-latest-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.itx-quotes-latest-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Card Image */
.itx-quotes-latest-card-image {
    width: 100%;
    aspect-ratio: 1.73 / 1; /* Соответствует размеру 346x200 */
    overflow: hidden;
    background: #f8f9fa;
}

.itx-quotes-latest-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.itx-quotes-latest-card:hover .itx-quotes-latest-card-image img {
    transform: scale(1.05);
}

/* Card Content */
.itx-quotes-latest-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.itx-quotes-latest-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.itx-quotes-latest-card-link:hover .itx-quotes-latest-card-title {
    color: #FF9800;
}

/* Load More Button Wrapper */
.itx-quotes-latest-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Load More Button - Orange Style */
.itx-quotes-latest-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #FF9800;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.itx-quotes-latest-load-more-btn:hover {
    background: #F57C00 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
    color: white;
}

.itx-quotes-latest-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .itx-quotes-latest-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .itx-quotes-latest-card-image {
        aspect-ratio: 1.73 / 1;
    }
    
    .itx-quotes-latest-card-content {
        padding: 12px;
    }
    
    .itx-quotes-latest-card-title {
        font-size: 14px;
    }
    
    .itx-quotes-latest-load-more-btn {
        font-size: 12px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .itx-quotes-latest-grid {
        gap: 12px;
    }
    
    .itx-quotes-latest-card-content {
        padding: 10px;
    }
    
    .itx-quotes-latest-card-title {
        font-size: 13px;
    }
}

