/* ============================
   BERITA DAN ARTIKEL PAGE
   ============================ */
.page-section {
    background: var(--White-200, #F8FAFC);
    min-height: 100vh;
}

/* ============================
   ARTICLE DETAIL PAGE
   ============================ */
.berita-detail-back {
    padding-top: 40px;
    padding-bottom: 24px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #03225D;
    transition: opacity var(--transition-fast);
}

.btn-back:hover {
    opacity: 0.8;
}

.btn-back img {
    width: 20px;
    height: 20px;
    display: block;
}

.berita-detail-section {
    padding-bottom: 80px;
}

.article-detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

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

.article-detail-category {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #03225D;
    background: rgba(3, 34, 93, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
}

.article-detail-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
}

.article-detail-views {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
}

.article-detail-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    color: #1C252E;
    margin: 0 0 32px 0;
}

.article-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 32px;
    display: block;
}

.article-detail-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 180%;
    color: #374151;
}

.article-detail-description img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 24px 0;
}

.article-detail-description h2,
.article-detail-description h3,
.article-detail-description h4 {
    font-weight: 600;
    color: #1C252E;
    margin: 32px 0 16px 0;
}

.article-detail-description h2 {
    font-size: 32px;
    line-height: 140%;
}

.article-detail-description h3 {
    font-size: 24px;
    line-height: 140%;
}

.article-detail-description h4 {
    font-size: 20px;
    line-height: 140%;
}

.article-detail-description p {
    margin-bottom: 16px;
}

.article-detail-description ul,
.article-detail-description ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-detail-description li {
    margin-bottom: 8px;
}

/* ============================
   HEADER SECTION
   ============================ */
.berita-header-section {
    padding-top: 130px;
    padding-bottom: 20px;
}

.berita-page-header {
    text-align: center;
}

.berita-page-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4B698C;
    display: block;
    margin-bottom: 12px;
}

.berita-page-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 44px;
    color: #1C252E;
    margin: 0;
}

/* ============================
   HEADLINE SECTION
   ============================ */
.headline-section {
    margin-bottom: 80px;
}

.headline-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.headline-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 100px;
    padding: 16px;
    background: #C30608;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
    z-index: 10;
}

.headline-nav-btn:hover {
    opacity: 0.9;
}

.headline-nav-btn img {
    width: 16px;
    height: 16px;
    display: block;
}

.headline-prev img {
    transform: rotate(180deg);
}

.headline-carousel {
    flex: 1;
}

.headline-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.headline-bullet {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    opacity: 0.32;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
}

.headline-bullet::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #03225D;
}

.headline-bullet.active {
    opacity: 1;
}

.headline-bullet.active::before {
    width: 18px;
    height: 8px;
    border-radius: 4px;
}

/* ============================
   HEADLINE CARD
   ============================ */
.headline-card {
    width: 100%;
    height: 390px;
    border-radius: 48px;
    padding: 24px;
    background: var(--White-100, #FFFFFF);
    box-shadow: 0px 8px 100px 0px rgba(0, 0, 0, 0.07);
    display: flex;
    gap: 32px;
}

.headline-card-image {
    width: 528px;
    height: 336px;
    border-radius: 32px;
    overflow: hidden;
    flex-shrink: 0;
}

.headline-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.headline-card-placeholder {
    width: 100%;
    height: 100%;
    background: #F0F0F0;
    border-radius: 32px;
}

.headline-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.headline-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 150%;
    color: #03221B;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.headline-card-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 180%;
    color: #727272;
    margin: 0 0 24px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.headline-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    height: 48px;
    padding: 0 24px;
    border-radius: 100px;
    background: transparent;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #03225D;
    transition: opacity var(--transition-fast);
}

.headline-card-btn:hover {
    opacity: 0.8;
}

.headline-card-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

/* ============================
   OTHER ARTICLES SECTION
   ============================ */
.other-articles-section {
    background: #FFFFFF;
    padding-top: 80px;
    padding-bottom: 80px;
}

.other-articles-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 44px;
    color: #1C252E;
    margin: 0 0 48px 0;
}

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

.other-articles-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* ============================
   OTHER ARTICLE CARD
   ============================ */
.other-article-card {
    height: 490px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.other-article-card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.other-article-card-placeholder {
    background: #F0F0F0;
}

.other-article-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.other-article-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.other-article-card-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #E2E8F0;
    display: block;
    margin-bottom: 12px;
}

.other-article-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 150%;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.other-article-card-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #E8E8E8;
    margin: 0 0 16px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
}

.other-article-card:hover .other-article-card-desc {
    max-height: none;
    opacity: 1;
}

.other-article-card-btn {
    display: inline-flex;
    align-items: end;
    justify-content: end;
    gap: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: #FFFFFF;
    transition: opacity var(--transition-fast);
}

.other-article-card-btn:hover {
    opacity: 0.8;
}

.other-article-card-btn img {
    width: 14px;
    height: 14px;
    display: block;
}

/* ============================
   PAGINATION (from katalog-produk)
   ============================ */
.pagination-btn {
    width: 42px;
    height: 42px;
    border-radius: 25px;
    background: #FFFFFF80;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.pagination-btn:hover {
    background: #FFFFFF;
}

.pagination-btn img {
    width: 20px;
    height: 20px;
    display: block;
}

.pagination-btn-right img {
    transform: rotate(180deg);
}

.pagination-number {
    width: 42px;
    height: 42px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.pagination-number.active {
    background: #03225D;
    color: #FFFFFF;
}

.pagination-number:not(.active) {
    background: #03225D4D;
    color: #FFFFFF;
}

.pagination-number:not(.active):hover {
    background: #03225D;
}

.pagination-btn.disabled,
.pagination-number.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================
   RESPONSIVE - TABLET
   ============================ */
@media (max-width: 1200px) {
    .other-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .berita-header-section {
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .berita-page-label {
        font-size: 16px;
    }

    .berita-page-title {
        font-size: 28px;
        line-height: 36px;
    }

    .headline-section {
        margin-bottom: 60px;
    }

    .headline-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .headline-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .headline-prev {
        left: -24px;
    }

    .headline-next {
        right: -24px;
    }

    .headline-card {
        flex-direction: column;
        height: auto;
    }

    .headline-card-image {
        width: 100%;
        height: 250px;
    }

    .headline-card-content {
        padding: 16px 0;
    }

    .headline-card-title {
        font-size: 20px;
    }

    .headline-card-desc {
        font-size: 16px;
    }

    .other-articles-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .other-articles-title {
        font-size: 28px;
        line-height: 36px;
    }

    .other-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .other-article-card {
        height: 400px;
    }

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

/* ============================
   RESPONSIVE - MOBILE
   ============================ */
@media (max-width: 575px) {
    .berita-header-section {
        padding-top: 40px;
        padding-bottom: 32px;
    }

    .berita-page-label {
        font-size: 14px;
    }

    .berita-page-title {
        font-size: 24px;
        line-height: 32px;
    }

    .headline-section {
        margin-bottom: 40px;
    }

    .headline-wrapper {
        gap: 12px;
    }

    .headline-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .headline-prev {
        left: -16px;
    }

    .headline-next {
        right: -16px;
    }

    .headline-card {
        border-radius: 24px;
        padding: 16px;
        gap: 16px;
    }

    .headline-card-image {
        height: 200px;
        border-radius: 16px;
    }

    .headline-card-title {
        font-size: 18px;
        line-height: 130%;
    }

    .headline-card-desc {
        font-size: 14px;
        line-height: 160%;
    }

    .headline-card-btn {
        font-size: 16px;
        height: 40px;
        padding: 0 16px;
    }

    .headline-card-btn img {
        width: 20px;
        height: 20px;
    }

    .other-articles-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .other-articles-title {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 32px;
    }

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

    .other-article-card {
        height: 350px;
    }

    .other-article-card-overlay {
        padding: 20px;
    }

    .other-article-card-date {
        font-size: 12px;
    }

    .other-article-card-title {
        font-size: 18px;
        line-height: 130%;
    }

    .other-article-card-desc {
        font-size: 14px;
    }

    .other-article-card-btn {
        font-size: 14px;
    }

    .other-article-card-btn img {
        width: 12px;
        height: 12px;
    }

    /* Article Detail Responsive */
    .berita-detail-back {
        padding-top: 24px;
        padding-bottom: 16px;
    }

    .article-detail-title {
        font-size: 28px;
        line-height: 130%;
        margin-bottom: 24px;
    }

    .article-detail-image {
        max-height: 300px;
        margin-bottom: 24px;
    }

    .article-detail-description {
        font-size: 16px;
    }

    .article-detail-description h2 {
        font-size: 24px;
    }

    .article-detail-description h3 {
        font-size: 20px;
    }

    .article-detail-description h4 {
        font-size: 18px;
    }
}
