/* Articles Section */
.articles-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.articles-container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    display: block;
}

@media (min-width: 768px) {
    .articles-container {
        width: 85%;
    }
}

@media (min-width: 1024px) {
    .articles-container {
        width: 80%;
    }
}

/* Section Title */
.articles-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .articles-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .articles-title {
        font-size: 2.5rem;
    }
}

.articles-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-align: center;
}

/* Filter Pills */
.articles-filters {
    margin-bottom: 2rem;
}

.articles-filters ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.articles-filters li {
    margin: 0;
}

/* Filter Tabs - Horizontal Centered Layout */
.filter-tabs-wrapper {
    margin-bottom: 2rem;
    width: 100%;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.filter-tabs li {
    margin: 0;
}

.filter-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #e5e7eb;
    color: #374151;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background-color: #16a34a;
    color: white;
    border-color: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* Activity pages use blue */
.activity-page .filter-btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Articles List - Simple Block Layout */
.articles-list {
    width: 100%;
}

/* Article Item - Horizontal Layout */
.article-item {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
    margin-bottom: 2rem; /* Gap between articles */
}

/* Hidden articles take no space */
.article-item[style*="display: none"] {
    margin-bottom: 0;
}

.article-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .article-item {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Left Content Section */
.article-content-left {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
}

/* Date Badge */
.article-date-badge {
    flex-shrink: 0;
    text-align: center;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.75rem;
    min-width: 70px;
    height: fit-content;
}

.date-month {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-day {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    line-height: 1;
    margin: 0.25rem 0;
}

.date-year {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Article Text Content */
.article-text-content {
    flex: 1;
}

.article-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 1.25rem;
    }
}

/* Meta Info - Badge Style */
.article-meta {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.813rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.article-meta-item i {
    margin-right: 0.375rem;
    font-size: 0.875rem;
}

.article-meta-item.location {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.article-meta-item.location i {
    color: #2563eb;
}

.article-meta-item.activity {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.article-meta-item.activity i {
    color: #16a34a;
}

/* Buttons Section */
.article-buttons {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.article-btn {
    display: inline-flex;
    align-items: center;
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #d1d5db;
}

.article-btn:hover {
    background-color: #d1d5db;
    border-color: #9ca3af;
}

.article-btn i {
    margin-left: 0.5rem;
}

/* Right Image Section */
.article-image-wrapper {
    flex-shrink: 0;
    width: 100%;
    height: 200px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
}

@media (min-width: 768px) {
    .article-image-wrapper {
        width: 200px;
        margin-top: 0;
        margin-left: 1.5rem;
        display: flex;
    }
}

.article-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex: 1;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    flex: 1;
}

.article-item:hover .article-image {
    transform: scale(1.05);
}

/* Video Overlay */
.article-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.article-video-overlay i {
    color: white;
    font-size: 2.5rem;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
