
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================
   TAMPILKAN. BERITA
   PUBLIC NEWS PORTAL
========================================== */

/* ==========================================
   01. ROOT & RESET
========================================== */

:root {
    --navy: #172438;
    --orange: #f3653b;
    --orange-hover: #e4552d;

    --white: #ffffff;
    --background: #f7f9fc;

    --text: #172438;
    --muted: #64748b;

    --border: #e5eaf0;

    --radius: 14px;

    --shadow: 0 14px 35px rgba(23, 36, 56, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================
   02. NAVBAR
========================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid #edf0f3;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar {
    min-height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}


/* ==========================================
   03. LOGO TAMPILKAN.
========================================== */

.site-header .brand,
.site-footer .brand {
    display: inline-flex;
    align-items: center;

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: 25px;
    font-weight: 800;

    letter-spacing: -1.3px;
    line-height: 1.2;

    white-space: nowrap;

    flex-shrink: 0;
}

.site-header .brand {
    color: var(--navy);
}

.site-header .brand span {
    color: var(--orange);
}

.site-footer .brand {
    color: var(--white);
    font-size: 23px;
}

.site-footer .brand span {
    color: var(--orange);
}


/* ==========================================
   04. NAVIGATION LINKS
========================================== */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1;

    gap: 30px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;

    color: #647084;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
}


/* ==========================================
   05. NAVBAR ACTIONS
========================================== */

.nav-actions {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    min-height: 52px;
    padding: 13px 23px;

    border-radius: 11px;

    background: var(--orange);
    color: var(--white);

    font-size: 14px;
    font-weight: 800;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-cta:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(243, 101, 59, 0.18);
}

.nav-cta span:last-child {
    font-size: 18px;
    line-height: 1;
}

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--white);
    color: var(--navy);

    font-size: 23px;
    line-height: 1;
}


/* ==========================================
   06. HERO
========================================== */

.hero {
    position: relative;
    overflow: hidden;

    background: var(--background);

    border-bottom: 1px solid var(--border);

    padding: 85px 0 90px;
}

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

.eyebrow,
.section-label {
    display: inline-block;

    color: var(--orange);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.hero h1 {
    max-width: 760px;

    margin-top: 18px;

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: -1.8px;
}

.hero p {
    max-width: 630px;

    margin-top: 20px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.85;
}


/* ==========================================
   07. NEWS SECTION
========================================== */

.news-section {
    min-height: 500px;
    padding: 75px 0 100px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin-top: 8px;

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;

    letter-spacing: -0.8px;
}


/* ==========================================
   08. SEARCH
========================================== */

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 32px;
}

#newsSearch {
    width: 100%;
    max-width: 420px;

    height: 48px;

    padding: 0 18px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--white);
    color: var(--navy);

    outline: none;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#newsSearch::placeholder {
    color: #94a3b8;
}

#newsSearch:focus {
    border-color: var(--orange);

    box-shadow: 0 0 0 3px rgba(243, 101, 59, 0.1);
}


/* ==========================================
   09. STATUS
========================================== */

.news-status {
    padding: 40px 20px;

    text-align: center;

    color: var(--muted);
    font-size: 14px;
}


/* ==========================================
   10. NEWS GRID
========================================== */

.news-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* ==========================================
   11. NEWS CARD
========================================== */

.news-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);

    border-color: #d7dfe8;

    box-shadow: var(--shadow);
}


/* COVER IMAGE */

.news-card-image {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #edf1f5;
}

.news-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}

.news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #edf1f5;

    color: #94a3b8;

    font-size: 14px;
    font-weight: 700;
}


/* CARD CONTENT */

.news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 22px;
}

.news-card-category {
    align-self: flex-start;

    color: var(--orange);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.news-card-title {
    margin-top: 11px;

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.5;
    letter-spacing: -0.35px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;

    overflow: hidden;
}

.news-card-title a:hover {
    color: var(--orange);
}

.news-card-summary {
    margin-top: 12px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.75;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;

    overflow: hidden;
}


/* CARD FOOTER */

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: auto;
    padding-top: 22px;

    color: var(--muted);
    font-size: 12px;
}

.news-card-read {
    color: var(--orange);

    font-size: 12px;
    font-weight: 700;
}

.news-card-read:hover {
    color: var(--orange-hover);
}


/* ==========================================
   12. PAGINATION
========================================== */

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;
    margin-top: 45px;
}

.news-page-btn {
    min-width: 40px;
    height: 40px;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--white);
    color: var(--navy);

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.news-page-btn:hover,
.news-page-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.news-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* ==========================================
   13. FOOTER
========================================== */

.site-footer {
    background: var(--navy);
    color: var(--white);

    padding: 48px 0;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 35px;
}

.footer-about p {
    margin-top: 10px;

    color: #b5c0ce;

    font-size: 13px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 12px;
}

.footer-info > p {
    color: #b5c0ce;
    font-size: 13px;
    text-align: right;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 20px;
}

.footer-links a {
    color: #b5c0ce;

    font-size: 13px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--orange);
}


/* ==========================================
   14. TABLET
========================================== */

@media (max-width: 1100px) {

    .navbar {
        gap: 18px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .nav-cta {
        padding: 12px 17px;
        font-size: 12px;
    }
}

@media (max-width: 900px) {

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .hero {
        padding: 70px 0;
    }

    .news-section {
        padding: 60px 0 80px;
    }
}


/* ==========================================
   15. MOBILE NAVBAR
========================================== */

@media (max-width: 760px) {

    .container {
        width: calc(100% - 36px);
    }

    .navbar {
        min-height: 70px;

        gap: 12px;
    }

    .site-header .brand {
        font-size: 22px;
    }

    .nav-actions {
        gap: 9px;
    }

    .nav-cta {
        min-height: 40px;

        padding: 9px 13px;

        border-radius: 9px;

        font-size: 12px;

        gap: 8px;
    }

    .nav-cta span:last-child {
        font-size: 15px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    /* MENU MOBILE DROPDOWN */

    .nav-links {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 0;

        padding: 10px 18px 18px;

        background: var(--white);

        border-bottom: 1px solid var(--border);

        box-shadow: 0 14px 24px rgba(23, 36, 56, 0.08);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        pointer-events: none;

        transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }

    .nav-links a {
        width: 100%;

        padding: 13px 12px;

        border-radius: 8px;

        font-size: 13px;
        font-weight: 700;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: #fff4ef;
        color: var(--orange);
    }

    /* HERO MOBILE */

    .hero {
        padding: 60px 0 65px;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 14px;
        line-height: 1.8;
    }

    /* NEWS MOBILE */

    .news-section {
        padding: 50px 0 70px;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .news-toolbar {
        margin-bottom: 25px;
    }

    #newsSearch {
        max-width: none;
    }

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

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

    .news-card-title {
        font-size: 17px;
    }

    /* FOOTER MOBILE */

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;

        gap: 28px;
    }

    .footer-info {
        align-items: flex-start;
    }

    .footer-info > p {
        text-align: left;
    }

    .footer-links {
        justify-content: flex-start;
    }
}


/* ==========================================
   16. SMALL MOBILE
========================================== */

@media (max-width: 380px) {

    .site-header .brand {
        font-size: 20px;
    }

    .nav-cta {
        font-size: 11px;
        padding: 8px 10px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 29px;
    }
}


/* ==========================================
   17. ACCESSIBILITY
========================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(243, 101, 59, 0.45);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ==========================================
   TOMBOL PASANG IKLAN & JADI PENULIS
========================================== */

.nav-cta-outline {
    background: #ffffff;
    color: #f3653b;
    border: 1px solid #f3653b;
}

.nav-cta-outline:hover {
    background: #fff4ef;
    color: #e4552d;
    border-color: #e4552d;
}

/* TABLET & MOBILE */

@media (max-width: 1100px) {

    .nav-actions {
        gap: 8px;
    }

    .nav-cta {
        padding-left: 12px;
        padding-right: 12px;
        gap: 7px;
    }
}

@media (max-width: 900px) {

    .nav-cta-outline {
        display: none;
    }
}

@media (max-width: 380px) {

    .nav-cta {
        padding-left: 9px;
        padding-right: 9px;
    }
}

/* ==========================================
   JADI PENULIS - MENU MOBILE
========================================== */

/* Desktop: link tambahan disembunyikan */
.mobile-writer-link {
    display: none !important;
}

/* Tablet dan HP */
@media (max-width: 900px) {

    /* Tombol outline di navbar disembunyikan */
    .nav-cta-outline {
        display: none;
    }
}

@media (max-width: 760px) {

    /* Link Jadi Penulis muncul di hamburger */
    .nav-links .mobile-writer-link {
        display: flex !important;
        align-items: center;

        color: #f3653b;
        font-weight: 700;

        border-top: 1px solid #e5eaf0;
        border-radius: 0;

        margin-top: 8px;
        padding-top: 17px;
    }

    .nav-links .mobile-writer-link:hover {
        background: #fff4ef;
    }
}

/* ==========================================
   TOMBOL PASANG IKLAN DI MENU MOBILE
========================================== */

@media (max-width: 760px) {

    .nav-links .mobile-writer-link {
        display: flex !important;
        align-items: center;
        justify-content: center;

        width: 100%;
        min-height: 44px;

        margin-top: 12px;
        padding: 12px 18px;

        background: #f3653b;
        color: #ffffff;

        border: none;
        border-radius: 9px;

        font-size: 13px;
        font-weight: 700;

        text-align: center;

        transition: background 0.2s ease;
    }

    .nav-links .mobile-writer-link:hover {
        background: #e4552d;
        color: #ffffff;
    }
}

/* ==========================================
   18. FILTER KATEGORI BERITA
========================================== */

.news-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 30px;
}

/* TOMBOL KATEGORI */

.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 17px;

    border: 1px solid #e5eaf0;
    border-radius: 9px;

    background: #ffffff;
    color: #64748b;

    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

/* HOVER */

.category-chip:hover {
    background: #fff4ef;
    border-color: #f3653b;
    color: #f3653b;
}

/* KATEGORI AKTIF */

.category-chip.active,
.category-chip.active:hover {
    background: #f3653b;
    border-color: #f3653b;
    color: #ffffff;
}

/* FOKUS KEYBOARD */

.category-chip:focus-visible {
    outline: 3px solid rgba(243, 101, 59, 0.3);
    outline-offset: 3px;
}


/* ==========================================
   FILTER KATEGORI - MOBILE
========================================== */

@media (max-width: 760px) {

    .news-categories {
        flex-wrap: nowrap;

        overflow-x: auto;
        overflow-y: hidden;

        gap: 9px;

        margin-bottom: 24px;
        padding-bottom: 8px;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .news-categories::-webkit-scrollbar {
        display: none;
    }

    .category-chip {
        flex: 0 0 auto;

        padding: 10px 15px;

        font-size: 11px;
    }
}

/* ==========================================
   FAQ JADI PENULIS
========================================== */

.writer-faq {
    padding: 80px 0 90px;
    background: #f7f9fc;
    border-top: 1px solid var(--border);
}

.writer-faq-heading {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.writer-faq-heading h2 {
    margin-top: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.35;
}

.writer-faq-heading p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.writer-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.writer-faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.writer-faq-item[open] {
    border-color: #f5b6a2;
}

.writer-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.writer-faq-item summary::-webkit-details-marker {
    display: none;
}

.writer-faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--orange);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.writer-faq-item[open] summary::after {
    content: "−";
}

.writer-faq-item summary:hover {
    color: var(--orange);
}

.writer-faq-item summary:focus-visible {
    outline: 3px solid rgba(243, 101, 59, 0.35);
    outline-offset: -3px;
}

.writer-faq-answer {
    padding: 0 24px 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.writer-faq-cta {
    margin-top: 42px;
    text-align: center;
}

.writer-faq-cta p {
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 700;
}

.writer-faq-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 24px;
    border-radius: 10px;
    background: var(--orange);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.writer-faq-button:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
}

/* FAQ MOBILE */

@media (max-width: 760px) {

    .writer-faq {
        padding: 60px 0 70px;
    }

    .writer-faq-heading {
        margin-bottom: 28px;
    }

    .writer-faq-heading h2 {
        font-size: 25px;
    }

    .writer-faq-item summary {
        padding: 18px;
        font-size: 13px;
    }

    .writer-faq-answer {
        padding: 0 18px 18px;
        font-size: 13px;
    }

    .writer-faq-cta {
        margin-top: 34px;
    }

}
/* ==========================================
   IDENTITAS PENULIS BERITA
========================================== */

.news-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.news-card-author-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5eaf0;
}

.news-card-author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.news-card-author-name {
    color: #172438;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.admin-writer-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f3653b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
}
/* ==========================================
   AVATAR PENULIS KARTU BERITA
========================================== */

.news-card-author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    flex-shrink: 0;

    border-radius: 50%;
    overflow: hidden;

    background: #fff0e9;
    color: #f3653b;

    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.news-card-author-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
