/* Articles Section */
.articles-section {
    position: relative;
    overflow: hidden;
}

.articles-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(206, 160, 5, 0.05) 0%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: 0;
}

.articles-section .container {
    position: relative;
    z-index: 1;
}

.articles-section .heading {
    text-align: center;
    margin-bottom: 60px;
}

.articles-section .heading h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.articles-section .heading p {
    font-size: 14px;
    font-weight: 400;
    color: #cea005;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Article Card */
.article-card {
    border-radius: 16px;
    overflow: hidden;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(31, 31, 31, 0.15);
}

/* Article Image */
.article-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #cea005;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(206, 160, 5, 0.3);
}

/* Article Content */
.article-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #757575;
    font-weight: 500;
}

.article-date svg {
    color: #cea005;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: #cea005;
}

.article-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #5a5a5a;
    margin-bottom: 24px;
    flex-grow: 1;
    max-height: 6.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cea005;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.3s ease;
}

.article-link:hover {
    gap: 12px;
}

.article-link svg {
    transition: transform 0.3s ease;
}

.article-card:hover .article-link svg {
    transform: translateX(4px);
}

/* Articles CTA */
.articles-cta {
    margin-top: 20px;
}

.articles-section .btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    color: #fff;
    padding: 0.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 1rem;
    background: var(--text-color);
    box-shadow: 4px 5px 4.9px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    &:hover {
        color: var(--background-color);
        background: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 4px 7px 6px rgba(0, 0, 0, 0.3);
        text-decoration: none;
    }
    svg {
        width: 16px;
    }
}

.articles-section .btn:hover {
    background: #b89004;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(206, 160, 5, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .articles-section .heading h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .articles-section {
        padding: 70px 0;
    }

    .articles-section .heading {
        margin-bottom: 40px;
    }

    .articles-section .heading h1 {
        font-size: 36px;
    }

    .articles-section .heading p {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .article-image {
        height: 200px;
    }

    .article-content {
        padding: 24px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .articles-section {
        padding: 50px 0;
    }

    .articles-section .heading h1 {
        font-size: 28px;
    }

    .articles-section .heading p {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .article-card {
        border-radius: 12px;
    }

    .article-image {
        height: 180px;
    }

    .article-category {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .article-content {
        padding: 20px;
    }

    .article-meta {
        gap: 15px;
    }

    .article-date,
    .article-read-time {
        font-size: 12px;
    }

    .article-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .article-excerpt {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .article-link {
        font-size: 13px;
    }

    .articles-section .btn {
        padding: 14px 32px;
        font-size: 14px;
    }
}

/* Loading State */
.article-card.loading .article-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility */
.article-card:focus {
    outline: 3px solid #cea005;
    outline-offset: 4px;
}

.article-link:focus {
    outline: 2px solid #cea005;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .articles-section {
        background: white;
        padding: 40px 0;
    }

    .article-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }

    .article-link {
        display: none;
    }
}
