/* Articles Page - Blog Style Standardization */

/* Articles Section - Blog Layout */
.articles-section {
    width: 100%;
    background: #ffffff;
    padding: 60px 5% 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    min-height: calc(100vh - 400px);
    margin-bottom: 0;
}

/* Articles Header */
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.articles-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    margin: 0 auto;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    flex: 1;
}

/* Filter Section */
.filter-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    right: 0;
    top: 0;
}

.filter-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.custom-dropdown {
    position: relative;
    width: 200px;
}

.selected {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.selected:hover {
    background: #fafafa;
    border-color: #ff6b00;
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.15);
    transform: translateY(-1px);
}

.selected::after {
    content: '▼';
    font-size: 11px;
    color: #666;
    margin-left: 10px;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.custom-dropdown.open .selected::after {
    transform: rotate(180deg);
}

.options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.custom-dropdown.open .options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.options li {
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

.options li:last-child {
    border-bottom: none;
}

.options li:hover {
    background: linear-gradient(90deg, #fff5f0 0%, #fff 100%);
    color: #ff6b00;
    padding-left: 22px;
    font-weight: 600;
}

.options li:active {
    background: #ff6b00;
    color: white;
}

/* Articles Grid - Blog Style */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin: 0 auto;
    padding: 0 0 40px 0;
    width: 100%;
    min-height: 200px;
}

/* Article Card - Blog Style */
.article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    height: 100%;
    min-height: 480px;
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.15);
    transform: translateY(-4px);
    border-color: #ff6b00;
}

/* Article Image - Fit card nicely */
.article-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
    background: #f5f5f5;
}

.article-card:hover img {
    transform: scale(1.05);
}

/* Article Content */
.article-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

/* Article Category Badge */
.category-bubble {
    display: inline-block;
    background: #ff6b00;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 12px;
    align-self: flex-start;
}

/* Article Title */
.article-card h4 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.5 !important;
    letter-spacing: -0.2px !important;
    transition: color 0.3s ease;
    text-align: left !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-card h4 strong {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
}

.article-card:hover h4 {
    color: #ff6b00;
}

/* Article Date */
.article-date {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
    text-align: left !important;
}

.article-date i {
    color: #666 !important;
    font-size: 0.9rem !important;
    margin-right: 2px !important;
}

.article-date span {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    font-weight: 500 !important;
}

/* Article Excerpt/Description - Hidden */
.article-card p:not(.article-date) {
    display: none !important;
}

/* Ensure all text in article cards uses Poppins */
.article-card * {
    font-family: 'Poppins', sans-serif;
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .articles-section {
        padding: 50px 4% 70px 4%;
    }

    .articles-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .articles-header h2 {
        width: 100%;
    }

    .filter-section {
        position: relative;
        align-items: center;
        width: 100%;
        right: auto;
        top: auto;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }

    .article-card {
        min-height: 450px;
    }

    .article-card img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .articles-section {
        padding: 40px 3% 60px 3%;
        min-height: calc(100vh - 350px);
    }

    .articles-header {
        margin-bottom: 40px;
        padding-bottom: 20px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .articles-header h2 {
        font-size: 2rem;
        width: 100%;
        text-align: center;
    }

    .filter-section {
        position: relative;
        width: 100%;
        align-items: center;
        right: auto;
        top: auto;
    }

    .custom-dropdown {
        width: 100%;
        max-width: 280px;
    }

    .selected {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .options {
        max-height: 250px;
    }

    .options li {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-card {
        min-height: auto;
    }

    .article-card img {
        height: 280px;
    }

    .article-card-content {
        padding: 18px;
        min-height: auto;
    }

    .article-card h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .articles-section {
        padding: 30px 15px 50px 15px;
        min-height: calc(100vh - 300px);
    }

    .articles-header {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }

    .articles-header h2 {
        font-size: 1.75rem;
    }

    .filter-section {
        width: 100%;
    }

    .custom-dropdown {
        width: 100%;
        max-width: 100%;
    }

    .selected {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .options {
        max-height: 220px;
        border-radius: 8px;
    }

    .options li {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .options li:hover {
        padding-left: 18px;
    }

    .articles-grid {
        gap: 20px;
    }

    .article-card {
        min-height: auto;
        border-radius: 10px;
    }

    .article-card img {
        height: 260px;
    }

    .article-card-content {
        padding: 15px;
        min-height: auto;
    }

    .article-card h4 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .article-date {
        font-size: 0.85rem !important;
    }
}

