/* ============================================================
   COWAY ARTICLES PAGE STYLES - 4-TIER RESPONSIVE & FIGMA MATCH
   ============================================================ */

.articles-page {
    background: #FFFFFF;
    color: #333333;
    min-height: 100vh;
    padding-bottom: 0;
}

/* ============================================================
   1. HERO SECTION (ARTICLE LIST)
   ============================================================ */
.articles-hero-section {
    position: relative;
    padding: 90px 0 50px;
    background: linear-gradient(180deg, #EDF5F8 0%, #FFFFFF 100%);
    text-align: center;
}

.articles-header-box {
    max-width: 760px;
    margin: 0 auto;
}

.articles-main-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1.3;
    color: #333333;
    margin: 0 0 16px;
    text-align: center;
}

.articles-title-underline {
    width: 150px;
    height: 0px;
    border: 3px solid #00A7E1;
    margin: 0 0 24px;
}

.articles-title-underline.center {
    margin: 16px auto 24px;
}

.articles-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #606060;
    margin: 0 auto;
    text-align: center;
}

/* ============================================================
   2. ARTICLES GRID & CARDS
   ============================================================ */
.articles-grid-section {
    padding: 40px 0 90px;
}

/* Empty State Styling */
.empty-state-box {
    text-align: center;
    padding: 60px 20px 100px;
}

.empty-state-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #777777;
    margin: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(3, 34, 27, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 167, 225, 0.15);
    border-color: rgba(0, 167, 225, 0.3);
}

.article-card-img-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.article-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #EAF4F8;
}

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

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

.article-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #00A7E1;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 167, 225, 0.3);
    z-index: 2;
}

.article-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.article-date {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #888888;
    display: inline-flex;
    align-items: center;
}

.article-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    margin: 0 0 12px;
}

.article-card-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.25s ease;
}

.article-card-title a:hover {
    color: #00A7E1;
}

.article-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #606060;
    margin: 0 0 24px;
    flex: 1;
}

.article-card-footer {
    margin-top: auto;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #00A7E1;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.btn-read-more:hover {
    color: #0084B4;
    gap: 12px;
}

/* ============================================================
   3. ARTICLE DETAIL PAGE STYLES
   ============================================================ */
.article-detail-page {
    padding-top: 60px;
    padding-bottom: 0;
}

.article-main-content {
    width: 100%;
    margin: 0 0 80px;
}

.article-detail-header {
    margin-bottom: 40px;
}

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

.article-header-meta .article-category-badge {
    position: static;
    display: inline-block;
    box-shadow: none;
    font-size: 13px;
    padding: 6px 16px;
}

.article-meta-item {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #777777;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-detail-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1.3;
    color: #333333;
    margin: 0 0 20px;
}

.article-featured-image-box {
    width: 100%;
    max-height: 540px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.article-featured-image {
    width: 100%;
    height: 100%;
    max-height: 540px;
    object-fit: cover;
    display: block;
}

.article-body-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 32px;
    color: #444444;
    margin-bottom: 60px;
}

.article-body-text p {
    margin-bottom: 24px;
}

.article-body-text h2, 
.article-body-text h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #333333;
    margin: 40px 0 18px;
}

/* ============================================================
   4. 3 RELATED ARTICLES SECTION
   ============================================================ */
.related-articles-section {
    padding: 90px 0;
    background: #F8FAFC;
    border-top: 1px solid #EAF0F4;
}

.section-header.center {
    text-align: center;
    margin-bottom: 48px;
}

.grid-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.3;
    color: #333333;
    margin: 0 0 16px;
    text-align: center;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (4 TIERS)
   ============================================================ */

/* Tier 2: Mac / Laptop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .articles-grid {
        gap: 24px;
    }

    .article-card-body {
        padding: 20px;
    }
}

/* Tier 3: Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .articles-hero-section {
        padding: 70px 0 40px;
    }

    .article-featured-image-box {
        max-height: 380px;
        border-radius: 16px;
    }
}

/* Tier 4: Mobile (< 768px) */
@media (max-width: 767px) {
    .articles-main-title,
    .article-detail-title,
    .grid-section-title {
        font-size: 24px !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
    }

    .articles-subtitle,
    .article-card-excerpt,
    .article-body-text,
    .article-body-text p {
        font-size: 15px !important;
        line-height: 24px !important;
        font-weight: 400 !important;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .articles-hero-section {
        padding: 50px 0 30px;
    }

    .article-card-img-wrapper {
        height: 190px;
    }

    .article-card-title {
        font-size: 18px;
        line-height: 24px;
        font-weight: 600;
    }
}
