/* Index page specific styles */
.hero-section {
    background-color: #f5f5f5;
    padding: 40px 0;
    margin-bottom: 30px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.8rem;
    /*margin-bottom: 20px;
    padding-bottom: 10px;*/
    border-bottom: 2px solid #eee;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /*gap: 20px;*/
    margin-bottom: 10px;
}

.featured-news {
    /*margin-bottom: 30px;*/
}

.featured-news-item {
    /*display: flex;*/
    flex-wrap: wrap;
    background-color: #fff;
    /*border-radius: 8px;*/
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-news-img {
    flex: 1;
    min-width: 300px;
}

.featured-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news-content {
    flex: 1;
    min-width: 300px;
    /*padding: 20px;*/
}

.featured-news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.featured-news-text {
    color: #666;
    margin-bottom: 15px;
}

.news-category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 10px;
}

.news-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.news-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-item-content {
    flex-grow: 1;
    padding: 15px;
}

.news-item-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-item-text {
    color: #666;
    margin-bottom: 15px;
}

.news-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.load-more {
    text-align: center;
    margin: 20px 0 40px;
}

.load-more-btn {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background-color: #3a80d2;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-text, .hero-image {
        flex: 100%;
        padding-right: 0;
    }
    
    .hero-text {
        margin-bottom: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}
