/* Import Google Font Kanit */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

.str-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Kanit', sans-serif;
}

.str-news-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
    border-bottom: 3px solid #007bff;
    padding-bottom: 15px;
}

.str-news-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
    justify-content: center;
}

.str-news-item {
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
    max-width: 300px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.str-news-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.str-news-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.str-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.str-news-item:hover .str-news-image img {
    transform: scale(1.05);
}

.str-news-content {
    padding: 25px;
}

.str-news-item-title {
    font-size: 1.3em;
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-weight: 600;
}

.str-news-item-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.str-news-item-title a:hover {
    color: #007bff;
}

.str-news-meta {
    margin-bottom: 10px;
}

.str-news-date {
    color: #666;
    font-size: 0.9em;
    font-weight: 400;
}

.str-news-excerpt {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .str-news-item {
        flex: 0 0 calc(33.333% - 15px);
        min-width: 280px;
    }
}

@media (max-width: 900px) {
    .str-news-item {
        flex: 0 0 calc(50% - 15px);
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .str-news-container {
        padding: 15px;
    }
    
    .str-news-title {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .str-news-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .str-news-item {
        flex: 0 0 100%;
        max-width: 400px;
        min-width: auto;
    }
    
    .str-news-image {
        height: 200px;
    }
    
    .str-news-content {
        padding: 20px;
    }
    
    .str-news-item-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .str-news-title {
        font-size: 1.8em;
    }
    
    .str-news-image {
        height: 160px;
    }
    
    .str-news-content {
        padding: 12px;
    }
    
    .str-news-item-title {
        font-size: 1em;
    }
    
    .str-news-excerpt {
        font-size: 0.9em;
    }
}

/* Loading animation */
.str-news-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.str-news-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 