*,
*::before,
*::after {
    box-sizing: border-box;
}

#root {
    padding-top: 0 !important;
    background-color: white;
}

/* ============================================= */
/*           Custom Font Definitions             */
/* ============================================= */

/* --- Poppins Regular --- */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* --- Poppins Bold --- */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* --- Poppins ExtraBold  */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/* --- Poppins Black --- */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

.container-bg {
    background-image: url('../medias/news/Background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left top;
}


/* Base Mobile Styles */
.news-hero-section {
    text-align: center;
    padding: 6rem 0.625rem;
    overflow: hidden;
}

.news-hero-section .container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.news-hero__label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    background-color: #FD865B33;
    color: #FD865B;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.news-hero__title {
    font-size: 2.75rem;
    font-weight: 500;
    color: #111111;
    line-height: 1.2;
    margin: 0 auto 1.5rem;
}

.news-hero__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #5B5B5B;
    margin: 0 auto;
    max-width: 600px;
}

@media (min-width: 768px) {
    .news-hero-section {
        padding: 8rem 2.5rem;
    }

    .news-hero__title {
        font-size: 3.5rem;
    }

    .news-hero__description {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .news-hero-section {
        padding: 8.75rem 4.375rem;
    }

    .news-hero__title {
        font-size: 4rem;
    }
}

.news-section {
    padding: 20px 12px 140px;
    display: flex;
    justify-content: center;
}

.news-wrapper {
    max-width: 1100px;
    width: 100%;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    background-color: white;
    color: #F27123;
    text-transform: capitalize;
}

.category-tab.active {
    background-color: #F27123;
    color: white;
    border-color: #ff5722;
}

.category-tab:not(.active):hover {
    background-color: #eeeeee;
}

.news-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

.news-card {
    background-color: #F5F5F5;
    border-radius: 26px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-image-container {
    width: 100%;
    padding: 6px 6px 20px;
    border-radius: 26px;
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
}

.card-image-placeholder {
    padding-top: 60%;
    position: relative;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #eeeeee;
}

.card-image-placeholder>img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.9;
}

.card-content {
    padding: 0 24px 24px;
    text-align: left;
}

.card-title {
    font-size: 22px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.card-description {
    font-size: 14px;
    font-weight: 400;
    color: #525252;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .news-section {
        padding: 20px 24px 140px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-section {
        padding: 20px 90px 140px;
    }
}