/* ========================================
   Category Page Styles (Daily News)
   ======================================== */

/* Search Bar */
.search-bar {
    padding: var(--space-md) 0;
    background: var(--color-white);
}

.search-bar__form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-xs);
}

.search-bar__input {
    max-width: 15.375rem;
    width: 100%;
    height: 2.5rem;
    padding: 0 var(--space-md);
    border: 2px solid var(--color-primary);
    border-radius: 1.1875rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.search-bar__input::placeholder {
    color: var(--color-primary);
}

.search-bar__button {
    width: 2.625rem;
    height: 2.5rem;
    padding: 0;
    border: 2px solid var(--color-primary);
    border-radius: 1.1875rem;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-bar__button img {
    width: 1.375rem;
    height: 1.375rem;
}

/* Hero Section */
.hero-section {
    background: var(--color-primary);
    padding: 6.3125rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.figma.com/api/mcp/asset/72483765-ba04-4181-8748-245a961c02cc');
    background-size: cover;
    background-position: center;
    opacity: 0.68;
}

.hero-section__inner {
    position: relative;
    z-index: 1;
}

.hero-section__title {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    text-align: center;
    margin: 0;
    width: 50%;
}

/* News Section */
.news-section {
    padding: var(--space-xl) 0;
}

/* News Grid (Featured + 2 columns) */
.news-grid {
    display: flex;
    gap: 2.6875rem;
    margin-bottom: 3.625rem;
}

/* Featured Article */
.news-featured {
    flex: 0 0 28.6875rem;
    max-width: 28.6875rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-featured:hover {
    transform: translateY(-2px);
}

.news-featured__image {
    width: 23.125rem;
    height: 12.3125rem;
    margin: 0 auto 0.75rem;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.news-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured__content {
    border: 1px solid #e3e9e4;
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(26, 46, 31, 0.06);
    padding: 0.9rem 1rem 1rem;
}

.news-featured__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.news-featured__title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

.news-featured__title a {
    color: inherit;
    text-decoration: none;
}

.news-featured__title a:hover {
    color: #1f5e2a;
}

.news-featured__excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: #55645a;
    margin: 0;
}

@media (min-width: 64.01rem) {
    .news-grid {
        align-items: stretch;
    }

    .news-featured {
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }

    .news-featured__image {
        flex: 0 0 auto;
    }

    .news-featured__content {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .news-featured__excerpt {
        margin-top: 0.75rem;
    }
}

/* News Column */
.news-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* News Item */
.news-item {
    border: 1px solid #e3e9e4;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(26, 46, 31, 0.06);
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    min-height: 10.625rem;
    padding: 0.75rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-item:hover {
    box-shadow: 0 10px 24px rgba(26, 46, 31, 0.1);
    transform: translateY(-2px);
}

.news-item__category {
    flex: 0 0 3.0625rem;
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 1.5625rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-light);
    width: 46px;
    min-height: 150px;
    border-radius: 8px;
}

.news-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding-top: 0.2rem;
}

.news-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
}

.news-item__title {
    flex: 1;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0;
    line-height: 1.35;
}

.news-item__excerpt {
    font-size: 12px;
    line-height: 1.65;
    color: #55645a;
    margin: 0;
}

/* Category Badge Colors */
.news-category {
    display: inline-block;
    padding: var(--space-xs) 2.5625rem;
    font-size: 1.5625rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-light);
}

.news-category--economy,
.news-item__category--economy {
    background: #f8b4b4;
}

.news-category--health,
.news-item__category--health {
    background: #f3f7b2;
}

.news-category--lifestyle,
.news-item__category--lifestyle {
    background: #b2f7ee;
}

.news-category--culture,
.news-item__category--culture {
    background: #b2d9f7;
}

.news-category--entertainment,
.news-item__category--entertainment {
    background: #bcf7b2;
}

.news-category--tech,
.news-item__category--tech {
    background: #b2baf7;
}

.news-category--travel,
.news-item__category--travel {
    background: #f7d0b2;
}

.news-category--digital,
.news-item__category--digital {
    background: #b2baf7;
}

.news-category--medical,
.news-item__category--medical {
    background: #f7d0b2;
}

/* News Date */
.news-date {
    font-size: 1rem;
    color: var(--color-text-light);
    white-space: nowrap;
    /* background-color: var(--color-white) !important; */
    margin: 0 !important;
    background: grey !important;
    font-weight: bold;
}

/* News Separator */
.news-separator {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3.625rem auto;
    max-width: 58.4375rem;
}

/* 2 Column News Grid */
.news-grid-2col {
    display: flex;
    gap: 5.625rem;
    margin-bottom: var(--space-xl);
    position: relative;
}

.news-grid-2col::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--color-border);
    transform: translateX(-50%);
}

/* Load More Button */
.news-load-more {
    display: flex;
    justify-content: center;
    padding: var(--space-lg) 0;
}

.btn--load-more {
    min-width: 12.625rem;
    padding: var(--space-sm) var(--space-lg);
    background: #d9d9d9;
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn--load-more:hover {
    background: #c0c0c0;
}

/* Responsive Design */
@media (max-width: 64rem) {
    .hero-section__title {
        font-size: 3rem;
        width: 100%;
    }

    .news-grid {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .news-featured {
        flex: 1;
        max-width: 100%;
    }

    .news-grid-2col {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .news-grid-2col::before {
        display: none;
    }
}

@media (max-width: 48rem) {
    .search-bar__form {
        justify-content: center;
    }

    .hero-section {
        padding: var(--space-xl) 0;
    }

    .hero-section__title {
        font-size: 2rem;
    }

    .news-featured__image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .news-featured__title {
        font-size: 16px;
    }

    .news-featured__excerpt,
    .news-item__excerpt {
        font-size: 1rem;
        line-height: 1.5;
    }

    .news-item {
        min-height: auto;
        padding: 0.65rem;
    }

    .news-item__category {
        flex: 0 0 2.5rem;
        font-size: 1.25rem;
        padding: var(--space-md) var(--space-xs);
    }

    .news-item__title {
        font-size: 16px;
    }

    .news-item__excerpt {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .news-column {
        gap: var(--space-lg);
    }

    .btn--load-more {
        font-size: 1rem;
        min-width: 10rem;
    }
}
