/* ========================================= */
/* ARTICLES PAGE SPECIFIC STYLES             */
/* Works alongside style.css                 */
/* ========================================= */

/* ========================================= */
/* ARTICLES HERO                             */
/* ========================================= */

.articles-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #eef7ff 100%);
    padding: 60px 0;
}

.articles-hero .hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--gradient-main);
    border-radius: 50%;
    filter: blur(150px);
    opacity: .15;
    animation: float 7s infinite alternate;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes float {
    from { transform: translate(-50%, -55%); }
    to   { transform: translate(-50%, -45%); }
}

.articles-hero-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
}

.articles-hero-content .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(34, 122, 184, 0.1), rgba(61, 182, 90, 0.1));
    border: 1px solid rgba(34, 122, 184, 0.15);
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.articles-hero-content .hero-badge i {
    font-size: 16px;
}

.articles-hero-content h1 {
    font-size: 52px;
    color: #0f172a;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.articles-hero-content p {
    font-size: 20px;
    line-height: 1.8;
    opacity: .75;
    color: #475569;
    max-width: 550px;
    margin: 0 auto;
}

/* ========================================= */
/* FILTER SECTION                            */
/* ========================================= */

.articles-filter-section {
    padding: 30px 0;
    background: #fff;
    border-bottom: 1px solid rgba(34, 122, 184, 0.08);
    position: sticky;
    top: 70px;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border-radius: 30px;
    border: 2px solid transparent;
    background: #f1f5f9;
    color: #475569;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: rgba(34, 122, 184, 0.08);
    color: var(--blue);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 8px 25px rgba(34, 122, 184, 0.25);
}

.filter-btn i {
    font-size: 13px;
}

/* ========================================= */
/* ARTICLES GRID                             */
/* ========================================= */

.articles-section {
    padding: 60px 0 80px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ARTICLE CARD */
.article-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(34, 122, 184, 0.15);
    border-color: rgba(34, 122, 184, 0.1);
}

.article-card.hidden {
    display: none;
}

/* ARTICLE IMAGE */
.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

/* CATEGORY BADGE */
.article-category {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--gradient-main);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(34, 122, 184, 0.3);
    z-index: 5;
}

.article-category i {
    font-size: 12px;
}

/* ARTICLE BODY */
.article-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* META */
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.article-date i,
.article-read-time i {
    font-size: 14px;
}

/* TITLE */
.article-body h3 {
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 14px;
    font-weight: 800;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.article-card:hover .article-body h3 {
    color: var(--blue);
}

/* DESCRIPTION */
.article-body p {
    color: #64748b;
    line-height: 1.85;
    font-size: 15px;
    margin-bottom: 20px;
    flex: 1;
}

/* READ MORE */
.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.article-read-more i {
    transition: transform 0.3s ease;
    font-size: 13px;
}

.article-read-more:hover {
    color: var(--green);
    gap: 14px;
}

.article-read-more:hover i {
    transform: translateX(-4px);
}

html[dir="ltr"] .article-read-more:hover i {
    transform: translateX(4px);
}

/* ========================================= */
/* LOAD MORE                                 */
/* ========================================= */

.load-more-wrapper {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    padding: 16px 40px;
    border-radius: 50px;
    border: 2px solid var(--blue);
    background: transparent;
    color: var(--blue);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(34, 122, 184, 0.25);
}

.load-more-btn i {
    font-size: 16px;
}

/* ========================================= */
/* NEWSLETTER SECTION                        */
/* ========================================= */

.newsletter-section {
    padding: 60px 0 80px;
}

.newsletter-box {
    background: linear-gradient(135deg, #0f172a, #1a3350);
    border-radius: 35px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

.newsletter-box::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(rgba(34, 122, 184, 0.15), transparent 70%);
    top: -150px;
    left: -150px;
    border-radius: 50%;
}

.newsletter-box::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(rgba(61, 182, 90, 0.12), transparent 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #227ab8, #3db65a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(34, 122, 184, 0.3);
}

.newsletter-content h3 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 900;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.8;
}

/* NEWSLETTER FORM */
.newsletter-form {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.newsletter-input-wrapper {
    position: relative;
    flex: 1;
}

.newsletter-input-wrapper i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

html[dir="rtl"] .newsletter-input-wrapper i {
    right: 18px;
}

html[dir="ltr"] .newsletter-input-wrapper i {
    left: 18px;
}

.newsletter-input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

html[dir="rtl"] .newsletter-input-wrapper input {
    padding-right: 48px;
}

html[dir="ltr"] .newsletter-input-wrapper input {
    padding-left: 48px;
}

.newsletter-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(34, 122, 184, 0.2);
}

.newsletter-form button {
    padding: 16px 28px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.newsletter-form button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.4);
}

/* ========================================= */
/* RESPONSIVE                                */
/* ========================================= */

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .articles-hero-content h1 {
        font-size: 40px;
    }

    .articles-hero-content p {
        font-size: 18px;
    }

    .newsletter-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .newsletter-form {
        width: 100%;
        max-width: none;
    }

    .newsletter-icon {
        margin: 0 auto 20px;
    }
}

@media (max-width: 768px) {
    .articles-hero {
        min-height: 40vh;
        padding: 40px 0;
    }

    .articles-hero-content h1 {
        font-size: 30px;
    }

    .articles-hero-content p {
        font-size: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .filter-wrapper {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .article-image {
        height: 200px;
    }

    .article-body {
        padding: 22px;
    }

    .article-body h3 {
        font-size: 18px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }

    .newsletter-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .articles-hero-content h1 {
        font-size: 24px;
    }

    .article-meta {
        gap: 10px;
    }

    .article-date,
    .article-read-time {
        font-size: 12px;
    }

    .load-more-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================= */
/* LTR OVERRIDES                             */
/* ========================================= */

html[dir="ltr"] .article-category {
    right: auto;
    left: 16px;
}

html[dir="ltr"] .article-read-more:hover i {
    transform: translateX(4px);
}