
:root {
    --primary: #ef693b;
    --primary-hover: #db562a;
    --dark: #17263a;
    --text: #27364a;
    --muted: #758092;
    --border: #e9edf1;
    --background: #ffffff;
    --soft: #f7f8fa;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.section-padding {
    padding: 90px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 14px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: .25s ease;
}

.btn span {
    font-size: 17px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    border-color: #dce2e8;
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.header {
    height: 82px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.navbar {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1.8px;
    color: var(--dark);
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: #596578;
    font-size: 13px;
    font-weight: 700;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions .nav-cta {
    order: 1;
}

.nav-actions .language-switch {
    order: 2;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 26px;
    color: var(--dark);
}

.hero {
    padding: 75px 0 85px;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.eyebrow,
.section-kicker {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff2ec;
    border-radius: 30px;
    padding: 11px 15px;
    margin-bottom: 27px;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.hero h1,
.section-heading h2,
.about-content h2,
.cta-card h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--dark);
    letter-spacing: -2.5px;
}

.hero h1 {
    font-size: clamp(39px, 4.2vw, 61px);
    line-height: 1.16;
    font-weight: 800;
    max-width: 620px;
}

.hero h1 span {
    color: var(--primary);
    display: block;
}

.hero-content > p {
    font-size: 15px;
    line-height: 1.95;
    color: var(--muted);
    max-width: 480px;
    margin-top: 25px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-note {
    margin-top: 45px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.note-symbol {
    color: var(--primary);
    font-size: 23px;
}

.hero-visual {
    position: relative;
    padding: 18px 18px 0 0;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 75%;
    height: 85%;
    right: -10px;
    top: -5px;
    border-radius: 28px;
    background: #fce8df;
}

.hero-image {
    position: relative;
    height: 440px;
    border-radius: 20px;
    overflow: hidden;
    background: #e9d8c8;
}

.hero-image img {
    height: 100%;
    object-fit: cover;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 45%, rgba(0,0,0,.68));
}

.hero-image-caption {
    position: absolute;
    z-index: 2;
    left: 28px;
    bottom: 28px;
    color: white;
}

.hero-image-caption span {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-image-caption strong {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 31px;
    line-height: 1.2;
}

.floating-label {
    position: absolute;
    right: -18px;
    top: 45px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    color: var(--dark);
    font-size: 13px;
    font-weight: 800;
    transform: rotate(5deg);
}

.search-section {
    position: relative;
    z-index: 2;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 12px 12px 24px;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(21,38,58,.07);
    background: white;
}

.search-icon {
    font-size: 31px;
    line-height: 1;
    color: #9aa4b1;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 0;
    color: var(--dark);
    font-size: 14px;
}

.search-box input::placeholder {
    color: #a0a8b4;
}

.featured-section {
    background: white;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.section-heading h2 {
    font-size: clamp(29px, 3vw, 39px);
    line-height: 1.25;
    margin: 13px 0;
}

.section-heading h2 em,
.about-content h2 em,
.cta-card h2 em {
    font-style: normal;
    color: var(--primary);
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.section-count {
    font-weight: 800;
    font-size: 13px;
    color: #a4acb8;
    white-space: nowrap;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.featured-card {
    grid-column: span 2;
    min-width: 0;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    transition: .3s ease;
}

.featured-card:nth-child(-n+2) {
    grid-column: span 3;
}

.featured-card:hover,
.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(19,37,58,.10);
}

.featured-image {
    height: 245px;
    overflow: hidden;
    position: relative;
    background: #eef0f2;
}

.featured-card:nth-child(-n+2) .featured-image {
    height: 285px;
}

.featured-image img,
.ad-image img {
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.featured-card:hover img,
.ad-card:hover img {
    transform: scale(1.045);
}

.featured-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,.10);
}

.featured-body {
    padding: 21px;
}

.card-category {
    display: inline-block;
    color: var(--primary);
    background: #fff1eb;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.featured-body h3 {
    font-size: 20px;
    margin-top: 13px;
    color: var(--dark);
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: -.5px;
}

.featured-body p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.7;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.card-bottom span {
    font-size: 11px;
    color: #98a2b1;
}

.card-bottom button,
.ad-card button {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
}

.discover-section {
    background: var(--soft);
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.filter-list {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid #e2e6ec;
    background: white;
    border-radius: 9px;
    padding: 11px 17px;
    color: #657184;
    font-size: 12px;
    font-weight: 700;
    transition: .2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--dark);
    border-color: var(--dark);
    color: white;
}

.result-count {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ad-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
    background: white;
    transition: .3s ease;
}

.ad-image {
    height: 175px;
    overflow: hidden;
    background: #e8ecf0;
}

.ad-body {
    padding: 17px;
}

.ad-body h3 {
    font-size: 15px;
    color: var(--dark);
    margin: 11px 0 7px;
}

.ad-body p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.65;
    min-height: 40px;
}

.ad-bottom {
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ad-bottom span {
    font-size: 11px;
    color: #9ba4b1;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.empty-state {
    text-align: center;
    padding: 65px 20px;
}

.empty-icon {
    font-size: 50px;
    color: var(--primary);
}

.empty-state h3 {
    color: var(--dark);
    margin: 12px 0;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 22px;
}

.about-section {
    padding: 100px 0;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.about-content h2 {
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.2;
    margin: 18px 0 22px;
}

.about-content p {
    font-size: 14px;
    line-height: 2;
    color: var(--muted);
    max-width: 460px;
}

.about-feature {
    display: flex;
    gap: 25px;
    padding: 23px 0;
    border-bottom: 1px solid var(--border);
}

.about-feature:first-child {
    padding-top: 0;
}

.about-feature > span {
    font-size: 15px;
    color: var(--primary);
    font-weight: 800;
}

.about-feature h3 {
    font-size: 17px;
    color: var(--dark);
    margin-bottom: 8px;
}

.about-feature p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}

.cta-section {
    padding-bottom: 90px;
}

.cta-card {
    background: var(--dark);
    color: white;
    border-radius: 22px;
    padding: 60px 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.cta-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ff9d78;
}

.cta-card h2 {
    font-size: clamp(30px, 3vw, 43px);
    color: white;
    margin: 14px 0;
}

.cta-card p {
    font-size: 13px;
    color: #bbc6d4;
    line-height: 1.8;
}

.btn-light {
    background: white;
    color: var(--dark);
}

.btn-light:hover {
    background: #f1f2f4;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 45px 0 25px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-main p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #687487;
    font-size: 12px;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding-top: 22px;
    margin-top: 45px;
    color: #98a2ae;
    font-size: 11px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,20,35,.75);
    backdrop-filter: blur(5px);
}

.modal-panel {
    position: relative;
    z-index: 1;
    background: white;
    width: min(480px, 100%);
    border-radius: 18px;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-panel > img {
    height: 260px;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    background: white;
    border-radius: 50%;
    font-size: 25px;
    z-index: 2;
}

.modal-content {
    padding: 26px;
}

.modal-category {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
}

.modal-content h2 {
    color: var(--dark);
    margin: 12px 0;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.modal-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* TABLET */

@media (max-width: 1000px) {
    .nav-links {
        gap: 18px;
    }

    .hero-layout {
        gap: 35px;
    }

    .hero-image {
        height: 380px;
    }

    .ads-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-layout {
        gap: 50px;
    }
}

/* MOBILE */

@media (max-width: 768px) {
    .container {
        width: min(100% - 36px, 1180px);
    }

    .header {
        height: 68px;
    }

    .logo {
        font-size: 23px;
    }

    .nav-cta {
        padding: 11px 13px;
        font-size: 11px;
    }

    .menu-toggle {
        display: block;
        margin-left: 15px;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        background: white;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 18px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 25px rgba(0,0,0,.05);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: .25s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 13px 8px;
        width: 100%;
    }

    .hero {
        padding: 48px 0 50px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: clamp(36px, 8vw, 49px);
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-note {
        margin-top: 27px;
    }

    .hero-visual {
        padding-right: 10px;
    }

    .hero-image {
        height: 330px;
    }

    .floating-label {
        right: 0;
        font-size: 11px;
    }

    .search-box {
        padding: 9px 9px 9px 14px;
        gap: 8px;
    }

    .search-box input {
        font-size: 12px;
    }

    .search-box .btn {
        padding: 12px;
        font-size: 11px;
    }

    .search-box .btn span {
        display: none;
    }

    .section-padding {
        padding: 65px 0;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        letter-spacing: -1.5px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .featured-card,
    .featured-card:nth-child(-n+2) {
        grid-column: span 1;
    }

    .featured-card:first-child {
        grid-column: span 2;
    }

    .featured-image,
    .featured-card:nth-child(-n+2) .featured-image {
        height: 170px;
    }

    .featured-card:first-child .featured-image {
        height: 250px;
    }

    .featured-body {
        padding: 15px;
    }

    .featured-body h3 {
        font-size: 15px;
    }

    .featured-body p {
        font-size: 12px;
    }

    .card-bottom {
        flex-wrap: wrap;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-list {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .filter-list::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .ads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .ad-image {
        height: 140px;
    }

    .ad-body {
        padding: 13px;
    }

    .ad-body h3 {
        font-size: 13px;
    }

    .ad-body p {
        font-size: 11px;
    }

    .ad-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-section {
        padding: 70px 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-section {
        padding-bottom: 65px;
    }

    .cta-card {
        padding: 35px 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-main,
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 390px) {
    .container {
        width: calc(100% - 28px);
    }

    .nav-cta {
        font-size: 10px;
        padding: 10px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .search-box .btn {
        padding: 11px 9px;
        font-size: 10px;
    }

    .featured-image,
    .featured-card:nth-child(-n+2) .featured-image {
        height: 135px;
    }

    .featured-card:first-child .featured-image {
        height: 220px;
    }

    .ad-image {
        height: 120px;
    }
}


/* =====================================================
   FIX GAMBAR IKLAN - OTOMATIS SESUAI UKURAN ASLI
===================================================== */

/* KOTAK GAMBAR */

.featured-image,
.featured-card:nth-child(-n+2) .featured-image,
.featured-card:first-child .featured-image,
.ad-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    overflow: hidden;
    background: #f5f5f5;
}

/* GAMBAR TAMPIL UTUH */

.featured-image img,
.ad-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
}

/* HILANGKAN ZOOM AGAR POSTER TIDAK TERPOTONG */

.featured-card:hover img,
.ad-card:hover img {
    transform: none;
}

/* POPUP DETAIL IKLAN */

.modal-panel > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

/* ==========================================
   FIX KARTU IKLAN & GAMBAR KOSONG
========================================== */

/* Kartu mengikuti kontennya */
/* KARTU IKLAN SAMA TINGGI */

.featured-card,
.ad-card {
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

/* ISI KARTU */

.featured-body,
.ad-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* BATASI DESKRIPSI MAKSIMAL 3 BARIS */

.featured-body p,
.ad-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    min-height: 0;
}

/* LOKASI DAN DETAIL SELALU DI BAWAH */

.card-bottom,
.ad-bottom {
    margin-top: auto;
    padding-top: 15px;
}

/* Kotak gambar */
.featured-image,
.featured-card:nth-child(-n+2) .featured-image,
.featured-card:first-child .featured-image,
.ad-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    overflow: hidden;
    background: #f3f5f7;
}

/* Gambar asli tidak terpotong */
.featured-image img,
.ad-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Saat gambar gagal dimuat */
.featured-image.no-image,
.ad-image.no-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder */
.no-image img {
    display: none;
}

.no-image::after {
    content: "Gambar belum tersedia";
    font-size: 12px;
    color: #98a2b1;
    font-weight: 600;
    text-align: center;
    padding: 15px;
}

/* LANGUAGE TOGGLE - MODERN */

.language-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    flex-shrink: 0;
}

.language-switch button {
    min-width: 42px;
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.25s ease;
}

.language-switch button.active {
    background: #ffffff;
    color: #f2653b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.language-switch button:not(.active):hover {
    color: #f2653b;
    background: rgba(255, 255, 255, 0.5);
}

/* URUTAN NAVBAR KHUSUS MOBILE */

@media (max-width: 768px) {

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-actions .nav-cta {
        order: 1;
    }

    .nav-actions .language-switch {
        order: 2;
    }

    .nav-actions .menu-toggle {
        order: 3;
        margin-left: 0;
    }

}

/* ==========================================
   FIX RESPONSIVE MOBILE - TAMPILKAN
========================================== */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: calc(100% - 32px);
        max-width: 100%;
    }

    /* NAVBAR */

    .navbar {
        gap: 8px;
        min-width: 0;
    }

    .logo {
        font-size: 20px;
        flex-shrink: 0;
    }

    .nav-actions {
        gap: 6px;
        min-width: 0;
    }

    .nav-cta {
        padding: 10px 9px;
        font-size: 10px;
    }

    .language-switch {
        padding: 3px;
        gap: 2px;
    }

    .language-switch button {
        min-width: 30px;
        height: 30px;
        padding: 0 6px;
        font-size: 11px;
    }

    .menu-toggle {
        margin-left: 0;
        font-size: 23px;
        flex-shrink: 0;
    }

    /* HERO */

    .hero-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .hero-content,
    .hero-visual {
        min-width: 0;
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(30px, 8vw, 42px);
        letter-spacing: -1.5px;
        overflow-wrap: break-word;
    }

    .hero-content > p {
        max-width: 100%;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-actions .btn {
        max-width: 100%;
        padding: 12px 14px;
        font-size: 11px;
    }

    .hero-visual {
        padding-right: 0;
    }

    .hero-image {
        width: 100%;
    }

}

/* ==========================================
   NAVBAR MOBILE - CLEAN
========================================== */

/* Sembunyikan link tambahan pada desktop */
.mobile-advertise {
    display: none !important;
}

@media (max-width: 768px) {

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .navbar .logo {
        font-size: 22px;
        flex-shrink: 0;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
    }

    /* Sembunyikan tombol Pasang Iklan di navbar HP */
    .nav-actions .nav-cta {
        display: none;
    }

    /* Pilihan bahasa */
    .language-switch {
        padding: 3px;
        gap: 2px;
    }

    .language-switch button {
        min-width: 34px;
        height: 32px;
        padding: 0 7px;
        font-size: 11px;
    }

    /* Hamburger */
    .nav-actions .menu-toggle {
        display: block;
        flex-shrink: 0;
        font-size: 25px;
        padding: 4px;
        margin: 0;
    }

    /* Tombol Pasang Iklan dalam menu */
    .nav-links .mobile-advertise {
        display: block !important;
        width: 100%;
        margin-top: 12px;
        padding: 13px 16px;
        background: var(--primary);
        color: white;
        border-radius: 10px;
        text-align: center;
        font-weight: 700;
    }
}

/* =====================================================
   TOMBOL BAGIKAN IKLAN
===================================================== */

.share-ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 9px 14px;
    border: 1px solid #f46b42;
    border-radius: 9px;

    background: #fff;
    color: #f46b42;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.25s ease;
}

.share-ad-btn:hover {
    background: #fff1eb;
    border-color: #ea5b32;
    color: #ea5b32;
}

.share-ad-btn:active {
    transform: scale(0.97);
}

/* Jaga posisi tombol dalam kotak iklan */

.featured-card .card-bottom,
.ad-card .ad-bottom {
    flex-wrap: wrap;
    gap: 10px;
}

/* =====================================================
   PERBAIKAN TOMBOL IKLAN DI MOBILE
===================================================== */

@media (max-width: 768px) {

    /* Tombol Detail dan Bagikan sejajar */
    .ad-card .ad-bottom,
    .featured-card .card-bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: center;
    }

    /* Lokasi tetap di atas tombol */
    .ad-card .ad-bottom > span,
    .featured-card .card-bottom > span {
        grid-column: 1 / -1;
    }

    /* Tombol Detail */
    .ad-card .ad-bottom > button[data-ad-id],
    .featured-card .card-bottom > button[data-ad-id] {
        width: 100%;
        min-width: 0;
        padding: 9px 4px;
        font-size: 12px;
        white-space: nowrap;
        text-align: center;
    }

    /* Tombol Bagikan */
    .ad-card .share-ad-btn,
    .featured-card .share-ad-btn {
        width: 100%;
        min-width: 0;
        padding: 9px 4px;
        font-size: 12px;
        white-space: nowrap;
    }
}
/* ==========================================
   MOBILE - TOMBOL IKLAN UNGGULAN
========================================== */

@media (max-width: 768px) {

    .featured-card .card-bottom {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
    }

    .featured-card .card-bottom > span {
        grid-column: 1;
        font-size: 11px;
    }

    .featured-card .card-bottom > button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0;
        padding: 9px 5px;
        font-size: 11px;
        line-height: 1.3;
        text-align: center;
        white-space: normal;
        border-radius: 8px;
    }
}
/* ==========================================
   POPUP DETAIL - TOMBOL SEJAJAR DI HP
========================================== */

.modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    width: 100%;
}

.modal-actions #modalLink,
.modal-actions #modalShareBtn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    margin: 0;
    padding: 12px 6px;

    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    white-space: normal;

    border-radius: 10px;
}
