/* Main Section Styles */
.main-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.main-section-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

/* Main Header Section */
.main-header-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.main-site-title {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.1;
}

.main-site-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Featured Articles - Clean Flat Design */
.featured-articles-section {
    margin-bottom: 80px;
}

.featured-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.featured-article {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.featured-article:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .article-image img {
    transform: scale(1.02);
}

.image-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #f1f3f4 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    opacity: 1;
    transition: all 0.3s ease;
}

.read-article-btn {
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.7);
}

.read-article-btn:hover {
    background: rgba(0,0,0,0.9);
}

.article-content {
    padding: 25px;
}

.article-title {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.article-title a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    opacity: 0.8;
}

.article-excerpt {
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.article-category {
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.article-read-time {
    font-weight: 500;
    opacity: 0.7;
}

/* Search Button Section - Clean Design */
.main-search-section {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 20px;
}

.main-search-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.main-search-button:hover {
    color: white;
    opacity: 0.9;
}

.search-icon {
    font-size: 1.2rem;
}

.main-search-description {
    margin-top: 16px;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* Announcements Section - Clean Design */
.announcements-section {
    margin-bottom: 40px;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.announcement-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.announcement-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.announcement-image {
    height: 160px;
    overflow: hidden;
}

.announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.announcement-card:hover .announcement-image img {
    transform: scale(1.02);
}

.announcement-image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.announcement-content {
    padding: 20px;
}

.announcement-title {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.announcement-description {
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.announcement-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.announcement-link:hover {
    color: white;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-section {
        padding: 60px 0;
    }
    
    .main-section-container {
        padding: 0 15px;
    }
    
    .main-site-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-search-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .article-content,
    .announcement-content {
        padding: 20px;
    }
    
    .article-image,
    .announcement-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .main-section {
        padding: 40px 0;
    }
    
    .main-site-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .main-search-button {
        width: 100%;
        justify-content: center;
    }
    
    .article-image,
    .announcement-image {
        height: 180px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header-section,
.featured-article,
.main-search-section,
.announcement-card {
    animation: fadeInUp 0.6s ease;
}

.main-header-section { animation-delay: 0.1s; }
.featured-article:nth-child(1) { animation-delay: 0.2s; }
.featured-article:nth-child(2) { animation-delay: 0.3s; }
.featured-article:nth-child(3) { animation-delay: 0.4s; }
.main-search-section { animation-delay: 0.5s; }
.announcement-card:nth-child(1) { animation-delay: 0.6s; }
.announcement-card:nth-child(2) { animation-delay: 0.7s; }
.announcement-card:nth-child(3) { animation-delay: 0.8s; }

/* Subtle focus states for accessibility */
.featured-article:focus-within,
.announcement-card:focus-within {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.main-search-button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}