/* ============================================================
   NATIVE.Com — Portal Berita | Main Stylesheet
   ============================================================ */

/* ---- Self-hosted Poppins ---- */
@font-face {
    font-family: 'Poppins';
    src: url('aset/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('aset/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('aset/poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('aset/poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('aset/poppins/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('aset/poppins/Poppins-Black.ttf') format('truetype');
    font-weight: 900; font-style: normal; font-display: swap;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --navy-dark: #0a1744;
    --navy: #0d1b4a;
    --navy-light: #142057;
    --navy-lighter: #1a2a6c;
    --accent-red: #e63946;
    --accent-yellow: #f5c518;
    --white: #ffffff;
    --off-white: #f4f4f8;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --border-color: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Poppins', sans-serif;

    /* Spacing — wider for 16:9 screens */
    --container-max: 1600px;
    --section-padding: 40px 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--off-white);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

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

ul {
    list-style: none;
}

/* Mobile-only elements — hidden on desktop by default */
.nav-sidebar-header { display: none; }
.nav-close-btn      { display: none; }
.nav-backdrop       { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1000; }
.nav-toggle         { display: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--navy-dark);
    padding: 12px 0;
    width: 100%;
}

.header-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo link wrapper */
.header-logo a {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
}

/* Native logo image — header */
.header-logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Native logo image — mobile nav bar */
.nav-logo-img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Native logo image — mobile sidebar */
.sidebar-logo-img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Logo first line: NATIVE + .Com inline */
.logo-first-line {
    display: flex;
    align-items: baseline;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    font-style: italic;
    line-height: 1;
}

.logo-dot {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 800;
    /* .Com = YELLOW/GOLD */
    color: var(--accent-yellow);
    letter-spacing: 1px;
    font-style: italic;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* Social icons — circle style like screenshot */
.header-socials {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.header-socials a:hover {
    background: var(--accent-red);
    transform: scale(1.1);
    opacity: 1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
    background: var(--navy-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 10px 0;
}

.nav-list {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.nav-link {
    display: block;
    padding: 13px 22px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.nav-link.active {
    color: var(--accent-red);
    background: transparent;
    font-weight: 600;
}

/* ============================================================
   HERO SECTION — Full-width background image only, no color
   ============================================================ */

/* Section wrapper — relative so bg image can be absolute inside */
.hero-section {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* BG image layer fills the entire section */
.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Pure dark overlay — no navy color, just black transparency */
.hero-dark-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.62);
}

/* Content sits on top of the image — fills whole section */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 32px 40px 40px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    min-height: 580px;
}

/* ========== LEFT COLUMN ========== */
.hero-left {
    display: flex;
    flex-direction: column;
    padding-right: 28px;
    padding-top: 8px;
}

/* HOT NOW badge */
.hot-now-badge {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 18px;
    width: fit-content;
}

/* Large headline */
.hero-headline {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

/* Excerpt text */
.hero-excerpt {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---- TRENDING NOW (pushed to bottom of left column) ---- */
.trending-now {
    margin-top: auto;
    padding-top: 24px;
}

.trending-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.trending-bar {
    width: 4px;
    height: 16px;
    background: var(--accent-red);
    border-radius: 2px;
    flex-shrink: 0;
    display: inline-block;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.trending-card a {
    display: block;
    color: #fff;
    text-decoration: none;
}

.trending-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    margin-bottom: 8px;
}

.trending-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.45;
}

/* ========== RIGHT COLUMN: BREAKING NEWS ========== */
.hero-right {
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 22px;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
}

.breaking-news-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.breaking-news-list {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.breaking-news-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.breaking-news-item:last-child {
    border-bottom: none;
}

.breaking-news-item:hover {
    opacity: 0.8;
}

.breaking-news-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.breaking-news-text {
    flex: 1;
}

.breaking-news-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 6px;
}

.breaking-news-date {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}



/* ============================================================
   CONTENT SECTION (White BG)
   ============================================================ */
.content-section {
    background: var(--white);
    padding: 50px 0 60px;
}

.content-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
}

/* ----- Breaking News Main Card ----- */
.content-breaking {
    display: flex;
    flex-direction: column;
}

.breaking-main-card {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}

.breaking-main-card a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.breaking-main-card img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

/* Dark overlay + title — hidden by default, shown on hover */
.breaking-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    padding: 28px 24px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.breaking-card-overlay h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.breaking-main-card a:hover .breaking-card-overlay {
    opacity: 1;
}

.breaking-main-card a:hover img {
    transform: scale(1.05);
}

/* ----- Rekomendasi Grid ----- */
.content-rekomendasi {
    display: flex;
    flex-direction: column;
}

.rekomendasi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.rekomendasi-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.rekomendasi-card:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.rekomendasi-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.rekomendasi-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    margin-bottom: 8px;
}

.rekomendasi-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Rekomendasi Pagination Nav ---- */
.rekomen-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.rekomen-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--navy-dark);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.rekomen-btn:hover {
    background: var(--accent-red);
    transform: translateY(-1px);
}

.rekomen-btn:disabled {
    background: #c8ccd8;
    cursor: not-allowed;
    transform: none;
}

.rekomen-home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    font-size: 1.05rem;
    transition: background 0.2s ease, transform 0.15s ease;
}

.rekomen-home:hover {
    background: var(--accent-red);
    transform: scale(1.1);
    opacity: 1;
}

/* ============================================================
   FORM SARAN — Single column, centered card
   ============================================================ */
.saran-section {
    background: var(--off-white);
    padding: 56px 0 64px;
    border-top: 3px solid var(--navy-dark);
}

.saran-container {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Form card */
.saran-form {
    background: #fff;
    border-radius: 14px;
    padding: 32px 32px 28px;
    box-shadow: 0 4px 24px rgba(10,23,68,0.09);
}

/* Description inside form */
.saran-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

/* Category pills */
.saran-kategori-wrap {
    margin-bottom: 18px;
}

.saran-kategori-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.saran-kategori-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.saran-pill {
    padding: 7px 16px;
    border: 1.5px solid var(--navy-dark);
    border-radius: 6px;
    background: transparent;
    color: var(--navy-dark);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.saran-pill.active,
.saran-pill:hover {
    background: var(--navy-dark);
    color: #fff;
}

/* Nama + Email — 2 column */
.saran-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Pill-shaped inputs */
.saran-input {
    width: 100%;
    padding: 14px 22px;
    background: var(--navy-dark);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    outline: none;
    transition: background 0.2s ease;
}

.saran-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.saran-input:focus {
    background: var(--navy-lighter);
}

.saran-input-full {
    display: block;
    margin-bottom: 12px;
}

/* Textarea */
.saran-textarea {
    width: 100%;
    padding: 16px 22px;
    background: var(--navy-dark);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    line-height: 1.75;
    resize: none;
    outline: none;
    min-height: 130px;
    margin-bottom: 18px;
    transition: background 0.2s ease;
}

.saran-textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

.saran-textarea:focus {
    background: var(--navy-lighter);
}

.saran-submit-wrap {
    display: flex;
    justify-content: flex-end;
}

.saran-submit {
    padding: 12px 32px;
    background: var(--navy-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.5px;
}

.saran-submit:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .saran-container {
        padding: 0 16px;
    }
    .saran-form {
        padding: 22px 18px 18px;
        border-radius: 12px;
    }
    .saran-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .saran-pill { font-size: 0.78rem; padding: 6px 13px; }
    .saran-input { padding: 13px 18px; font-size: 0.88rem; }
    .saran-textarea { padding: 14px 18px; font-size: 0.88rem; min-height: 110px; }
}



/* ============================================================
   FOOTER
   ============================================================ */
/* ============================================================
   SARAN CTA WIDGET (index.html)
   ============================================================ */
.saran-cta-section {
    background: var(--navy-dark);
    padding: 28px 0;
}

.saran-cta-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.saran-cta-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}

.saran-cta-text {
    flex: 1;
}

.saran-cta-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.saran-cta-text p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

.saran-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-primary);
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.saran-cta-btn:hover {
    background: #c62936;
    transform: translateY(-2px);
    opacity: 1;
}

@media (max-width: 640px) {
    .saran-cta-container {
        flex-direction: column;
        padding: 0 16px;
        text-align: center;
        gap: 16px;
    }
    .saran-cta-text h3 { font-size: 1rem; }
    .saran-cta-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   PAGE HERO (saran.html)
   ============================================================ */
.page-hero {
    background: var(--navy-dark);
    padding: 44px 0 40px;
    border-bottom: 3px solid var(--accent-red);
}

.page-hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 14px;
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
    color: var(--accent-yellow);
    opacity: 1;
}

.page-breadcrumb .fa-chevron-right {
    font-size: 0.65rem;
}

.page-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.page-hero-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    max-width: 580px;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .page-hero { padding: 32px 0 28px; }
    .page-hero-inner { padding: 0 16px; }
    .page-hero-title { font-size: 1.6rem; }
    .page-hero-sub { font-size: 0.88rem; }
}

/* ============================================================
   FORM SUCCESS MESSAGE
   ============================================================ */
.saran-success {
    display: none;
    align-items: center;
    gap: 14px;
    background: #e8f8f0;
    border: 1.5px solid #2ecc71;
    border-radius: 10px;
    padding: 18px 22px;
    color: #166534;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-top: 8px;
    animation: fadeInUp 0.4s ease;
}

.saran-success .fa-check-circle {
    font-size: 1.6rem;
    color: #2ecc71;
    flex-shrink: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy-dark);
    color: var(--white);
}

.footer-top {
    padding: 50px 0 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Footer Brand */
.footer-brand {
    text-align: center;
}

.footer-logo {
    display: inline-block;
    border: none;
    padding: 0;
    margin-bottom: 12px;
}

/* Footer logo image — replaces text */
.footer-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-connect {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    background: var(--accent-red);
    transform: scale(1.1);
    opacity: 1;
}

/* Footer Kanal */
.footer-kanal h3,
.footer-network h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

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

.footer-kanal ul li,
.footer-network ul li {
    margin-bottom: 10px;
}

.footer-kanal ul li a,
.footer-network ul li a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-kanal ul li a:hover,
.footer-network ul li a:hover {
    color: var(--white);
    opacity: 1;
}

/* Footer Bottom — dark blue strip with NATIVE branding */
.footer-bottom {
    background: var(--navy);
    padding: 28px 0;
    text-align: center;
}

.footer-bottom-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-bottom-logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    letter-spacing: 4px;
}

.footer-bottom-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    display: block;
    margin-top: 4px;
}

/* Copyright — slightly darker bg */
.footer-copyright {
    background: #060f30;
    text-align: center;
    padding: 12px 0;
}

.footer-copyright p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   RESPONSIVE — All breakpoints
   ============================================================ */

/* Large desktop 16:9 */
@media (min-width: 1200px) {
    .hero-headline { font-size: 2.6rem; }
    .hero-container { min-height: 600px; }
    .trending-card img { height: 140px; }
    .breaking-news-item img { width: 130px; height: 85px; }
}

/* Tablet landscape (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 993px) {
    .hero-container {
        grid-template-columns: 1fr 300px;
    }
    .hero-headline { font-size: 1.7rem; }
}

/* Tablet portrait (up to 992px) */
@media (max-width: 992px) {
    /* Hero: stack to single column */
    .hero-container {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 28px;
    }
    .hero-left {
        padding-right: 0;
        padding-bottom: 24px;
    }
    .hero-right {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-left: 0;
        padding-top: 20px;
    }
    .breaking-news-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
    .hero-headline { font-size: 1.6rem; }

    /* Content */
    .content-container {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   MOBILE — 640px (9:16 Portrait)
   ============================================================ */
@media (max-width: 640px) {

    /* ---- HEADER mobile ---- */
    .header-container {
        padding: 0 14px;
    }
    .header-logo-img {
        height: 34px;
    }
    /* Hide some socials on very small screens */
    .header-socials a:nth-child(n+4) {
        display: none;
    }
    .header-socials {
        gap: 6px;
    }
    .header-socials a {
        width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }

    /* ---- NAV: Slide-in sidebar from LEFT ---- */
    .main-nav {
        z-index: 1001;
    }

    .nav-container { padding: 0 14px; }

    .nav-toggle {
        display: block;
        padding: 11px 0;
        font-size: 1.25rem;
    }

    .nav-list {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        z-index: 1002;
        padding: 0 0 30px;
        transition: left 0.35s ease, box-shadow 0.35s ease;
        box-shadow: none; /* Removed so it doesn't bleed when hidden */
        display: flex;
        overflow-y: auto;
    }

    .nav-list.show {
        left: 0;
        display: flex;
        box-shadow: 4px 0 20px rgba(0,0,0,0.5); /* Only show shadow when open */
    }

    .nav-link {
        padding: 15px 24px;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-link.active {
        background: rgba(230, 57, 70, 0.12);
        border-left: 4px solid var(--accent-red);
    }

    /* Sidebar header: logo + close button */
    .nav-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 18px 14px;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    .nav-sidebar-logo {
        display: flex;
        align-items: baseline;
        gap: 0;
    }

    .nav-sidebar-logo .logo-text {
        font-size: 1.4rem;
        font-style: italic;
        font-weight: 800;
        color: #fff;
        line-height: 1;
    }

    .nav-sidebar-logo .logo-dot {
        font-size: 1.4rem;
        font-style: italic;
        font-weight: 800;
        color: var(--accent-yellow);
        line-height: 1;
    }

    /* Close button inside sidebar header */
    .nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 50%;
        color: #fff;
        font-size: 0.95rem;
        cursor: pointer;
        z-index: 1003;
        flex-shrink: 0;
    }

    .nav-close-btn:hover {
        background: var(--accent-red);
    }

    /* Dark backdrop behind nav — show when sidebar is open */
    .nav-backdrop.show {
        display: block;
    }

    /* ---- HERO mobile ---- */
    .hero-section {
        /* Make hero fill nicely without being too tall */
        min-height: auto;
    }

    .hero-container {
        padding: 20px 14px 24px;
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
    }

    .hero-bg-image img {
        object-position: center center;
        min-height: 100%;
    }

    .hero-left {
        padding-right: 0;
        padding-bottom: 18px;
    }

    .hero-right {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-left: 0;
        padding-top: 16px;
    }

    .hero-headline {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .hero-excerpt {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hot-now-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }

    /* Trending: 2-column grid on mobile */
    .trending-now {
        padding-top: 16px;
    }

    .trending-label {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .trending-card img {
        height: 90px;
    }

    .trending-title {
        font-size: 0.78rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Breaking news sidebar: stack vertically on mobile */
    .breaking-news-title {
        font-size: 0.82rem;
        letter-spacing: 1.5px;
        padding-bottom: 10px;
        margin-bottom: 0;
    }

    .breaking-news-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .breaking-news-item {
        padding: 10px 0;
        gap: 10px;
    }

    .breaking-news-item img {
        width: 88px;
        height: 60px;
    }

    .breaking-news-text h4 {
        font-size: 0.82rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .breaking-news-date {
        font-size: 0.72rem;
    }

    /* Breaking card: on mobile hide overlay (no hover), show title below image */
    .breaking-card-overlay {
        opacity: 0 !important; /* Never show dark overlay on mobile */
    }
    .breaking-card-overlay h3 {
        display: none; /* Hide text in overlay on mobile */
    }
    .breaking-main-card {
        border-radius: 8px;
        overflow: hidden;
    }
    .breaking-main-card a {
        display: flex;
        flex-direction: column;
    }
    .breaking-main-card img {
        min-height: 220px;
        height: 220px;
        border-radius: 8px 8px 0 0;
    }
    /* Show a visible title below the image on mobile */
    .breaking-main-card a::after {
        content: attr(data-title);
        display: block;
        background: var(--navy-dark);
        color: #fff;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.4;
        padding: 12px 14px;
        border-radius: 0 0 8px 8px;
    }

    /* ---- CONTENT mobile ---- */
    .content-section { padding: 28px 0 36px; }
    .content-container {
        padding: 0 14px;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .rekomendasi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .rekomendasi-card img {
        height: 130px;
    }

    .rekomendasi-card h4 {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .rekomendasi-card p {
        font-size: 0.78rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Pagination */
    .rekomen-nav { gap: 10px; margin-top: 18px; }
    .rekomen-btn { padding: 8px 14px; font-size: 0.82rem; }

    /* ---- SARAN CTA ---- */
    .saran-cta-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px 16px;
    }
    .saran-cta-btn { width: 100%; justify-content: center; }

    /* ---- FOOTER mobile ---- */
    .footer-top { padding: 30px 0 24px; }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 14px;
        gap: 22px;
    }
    .footer-brand { grid-column: auto; }
    .footer-kanal h3,
    .footer-network h3 { font-size: 1rem; margin-bottom: 12px; }
    .footer-kanal ul li a,
    .footer-network ul li a { font-size: 0.88rem; }
    .kanal-columns { justify-content: center; }
    .footer-network ul { text-align: center; }
    .footer-bottom-logo { font-size: 1.4rem; }
    .footer-bottom-tagline { font-size: 0.75rem; }
    .footer-copyright p { font-size: 0.68rem; }
}

/* ---- Extra small / very narrow (max 400px) ---- */
@media (max-width: 400px) {
    .hero-headline { font-size: 1.15rem; }
    .trending-grid { grid-template-columns: repeat(2, 1fr); }
    .trending-card img { height: 78px; }
    .rekomendasi-grid { grid-template-columns: 1fr; }
    .header-socials a:nth-child(n+3) { display: none; }
}


/* ============================================================
   MOBILE NAV LOGO (visible only on mobile when header scrolled away)
   ============================================================ */
.nav-mobile-logo {
    display: none;           /* hidden on desktop always */
    font-family: var(--font-primary);
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nav-mobile-logo.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile-logo .logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    font-style: italic;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1;
}

.nav-mobile-logo .logo-dot {
    font-size: 1.1rem;
    font-weight: 800;
    font-style: italic;
    color: var(--accent-yellow);
    letter-spacing: 1px;
    line-height: 1;
}

@media (max-width: 640px) {
    .nav-mobile-logo {
        display: block;
        opacity: 0;           /* Hidden by default, toggled by JS */
        pointer-events: none;
    }
}

/* ============================================================
   SVG AVATAR PLACEHOLDER
   ============================================================ */
.svg-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e5e7ef;
    flex-shrink: 0;
}

.svg-avatar svg {
    width: 100%;
    height: 100%;
    display: block;
}

.svg-avatar-lg {
    width: 64px;
    height: 64px;
    border: 3px solid #dde2f0;
}
