/* ============================================
   MOBILE HEADER - SMOOTH TRANSITION
   ============================================ */
.header-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header-nav-wrapper.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    background: #151515;
}

.header {
    background: #1a1a1a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { display: flex; align-items: center; }

.brand-logo {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 6px;
}

.seven {
    grid-column: 1;
    grid-row: 1;
    font-size: 28px;
    font-weight: 900;
    color: #f5a623;
    font-style: italic;
    line-height: 1;
    position: relative;
    align-self: center;
}

.seven sup {
    font-size: 9px;
    color: #f5a623;
    position: absolute;
    top: 0;
    right: -8px;
}

.brand-logo-img {
    grid-column: 2;
    grid-row: 1;
    height: 18px;
    width: auto;
    object-fit: contain;
    display: block;
    line-height: 0;
}

.brand-info {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: flex-start;
    margin-top: -2px;
}

.brand-info .subtitle {
    font-size: 7px;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icons svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-icons svg:hover {
    stroke: #f5a623;
    transform: scale(1.15);
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px 3px;
    align-items: flex-end;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
    height: 36px;
    z-index: 1001;
}

.hamburger-btn:hover { background: rgba(255, 255, 255, 0.08); }

.hamburger-line {
    display: block;
    height: 2px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) { width: 22px; }
.hamburger-line:nth-child(2) { width: 17px; }
.hamburger-line:nth-child(3) { width: 12px; }

.hamburger-btn:hover .hamburger-line { background: #f5a623; }

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    border-radius: 0 0 12px 12px;
}

.menu-overlay.active {
    max-height: 100vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.menu-overlay-content {
    height: 100vh;
    overflow-y: auto;
    padding: 16px;
}

.menu-section { margin-bottom: 20px; }

.menu-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.menu-item-icon {
    width: 20px;
    height: 20px;
    margin-right: 14px;
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.menu-item-text {
    flex: 1;
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
}

.menu-item-arrow {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #666;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-item-highlight {
    background: rgba(245, 166, 35, 0.15);
    border-color: rgba(245, 166, 35, 0.3);
}

.menu-item-highlight .menu-item-text {
    color: #f5a623;
    font-weight: 600;
}

.menu-item-highlight .menu-item-icon { stroke: #f5a623; }

.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.channel-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.channel-item-text {
    font-size: 12px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.nav-tabs {
    background: #222;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid #333;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
    padding: 10px 12px;
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    background: none;
    letter-spacing: 0.2px;
}

.nav-tab:hover { color: white; }
.nav-tab.active { color: white; }

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f5a623;
    border-radius: 2px 2px 0 0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.new-badge {
    background: #e60012;
    color: white;
    font-size: 7px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
    position: absolute;
    top: 4px;
    right: 2px;
    letter-spacing: 0.5px;
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-tab-wrapper { position: relative; }

.more-news {
    background: white;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.more-news-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.more-news-label {
    font-size: 12px;
    color: #333;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-partners {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    flex: 1;
}

.news-partners::-webkit-scrollbar { display: none; }

.partner-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.partner-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}

.partner-logo img {
    height: 12px;
    width: auto;
    object-fit: contain;
    display: block;
}

.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 97;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.dummy-content {
    background: white;
    padding: 20px 16px;
}

.dummy-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
    text-align: justify;
}

.dummy-content h2 {
    font-size: 18px;
    color: #1a1a1a;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f5a623;
}

.dummy-content h2:first-child { margin-top: 0; }

.desktop-header { display: none; }
.desktop-nav { display: none; }
.desktop-menu-overlay { display: none; }

/* ============================================
   DESKTOP VERSION (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
    
    /* Terapkan Font Manrope khusus untuk elemen Desktop */
    .desktop-header,
    .desktop-nav,
    .desktop-search input,
    .btn-gabung-plus,
    .desktop-nav-item,
    .more-news,
    .more-news-label,
    .desktop-menu-grid .desktop-nav-item,
    .desktop-brand-subtitle {
        font-family: 'Manrope', sans-serif;
    }

    body { max-width: 100%; }

    /* Parallax Ad & Scroll Banner sudah dihapus */
    .header-nav-wrapper {
        display: none !important;
    }

    .desktop-header,
    .desktop-nav {
        display: block;
    }

    /* ============================================
       DESKTOP HEADER - SMOOTH EFFECTS
       ============================================ */
    .desktop-header {
        background: #000;
        border-bottom: 1px solid #333;
        transition: 
            box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            background-color 0.3s ease,
            backdrop-filter 0.3s ease,
            -webkit-backdrop-filter 0.3s ease;
    }

    /* State saat scroll - lebih smooth */
    .desktop-header.scrolled {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        border-bottom-color: #444;
    }

    .desktop-header-inner {
        max-width: 1024px;
        margin: 0 auto;
        padding: 16px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .desktop-brand {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
    }

    .desktop-brand-logo {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0 6px;
    }

    .desktop-brand-logo .seven {
        grid-column: 1;
        grid-row: 1;
        font-size: 32px;
        font-weight: 900;
        color: #f5a623;
        font-style: italic;
        line-height: 1;
        position: relative;
        align-self: center;
    }

    .desktop-brand-logo .seven sup {
        font-size: 11px;
        color: #f5a623;
        position: absolute;
        top: 0;
        right: -10px;
    }

    .desktop-brand-logo .desktop-brand-logo-img {
        grid-column: 2;
        grid-row: 1;
        height: 24px;
        width: auto;
        object-fit: contain;
        display: block;
        line-height: 0;
    }

    .desktop-brand-info {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        align-items: flex-start;
        margin-top: -2px;
    }

    .desktop-brand-subtitle {
        font-size: 7px;
        color: #cccccc;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-weight: 500;
        line-height: 1;
    }

    .desktop-search {
        flex: 1;
        max-width: 400px;
        position: relative;
    }

    .desktop-search input {
        width: 100%;
        padding: 10px 0 10px 16px;
        background: #333;
        border: none;
        border-radius: 6px;
        color: #fff;
        font-size: 14px;
        outline: none;
        transition: background 0.2s ease, box-shadow 0.2s ease;
    }

    .desktop-search input::placeholder { color: #999; }
    .desktop-search input:focus { 
        background: #444;
        box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.2);
    }

    .desktop-search-icon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        stroke: #999;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
    }

    .desktop-actions {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-shrink: 0;
    }

    .btn-gabung-plus {
        background: #1a73e8;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
        white-space: nowrap;
    }

    .btn-gabung-plus:hover { 
        background: #1557b0;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
    }

    .desktop-action-icons {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .desktop-action-icons svg {
        width: 22px;
        height: 22px;
        stroke: #ffffff;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .desktop-action-icons svg:hover {
        stroke: #f5a623;
        transform: scale(1.1);
    }

    /* ============================================
       DESKTOP NAV - STICKY + SMOOTH TRANSITION
       ============================================ */
    .desktop-nav {
        background: #000;
        border-bottom: 1px solid #333;
        position: sticky;
        top: 0;
        z-index: 100;
        transition: 
            box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            background-color 0.3s ease,
            backdrop-filter 0.3s ease,
            -webkit-backdrop-filter 0.3s ease;
    }

    .desktop-nav.scrolled {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
        border-bottom-color: #444;
    }

    .desktop-nav-inner {
        max-width: 1024px;
        margin: 0 auto;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .desktop-nav-menu {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        gap: 24px;
    }

    .desktop-nav-item,
    .desktop-nav-item-wrapper {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .desktop-nav-item {
        padding: 10px 0;
        color: #ffffff;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        position: relative;
        transition: color 0.2s ease;
        cursor: pointer;
        display: inline-block;
    }

    .desktop-nav-item:hover { color: #f5a623; }

    .desktop-nav-item-wrapper {
        position: relative;
    }

    .desktop-new-badge {
        position: absolute;
        top: 4px;
        left: 50%;
        transform: translateX(-50%);
        background: #e60012;
        color: white;
        font-size: 8px;
        font-weight: 800;
        padding: 1px 5px;
        border-radius: 3px;
        letter-spacing: 0.5px;
        animation: badgePulse 1.5s ease-in-out infinite;
        pointer-events: none;
    }

    .desktop-hamburger {
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px 0px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex-shrink: 0;
        margin-left: 8px;
    }

    .desktop-hamburger-line {
        display: block;
        width: 22px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .desktop-hamburger:hover .desktop-hamburger-line {
        background: #f5a623;
    }

    /* ============================================
       DESKTOP MENU OVERLAY
       ============================================ */
    .desktop-menu-overlay {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        border-top: 1px solid #333;
        border-radius: 0 0 8px 8px;
    }

    .desktop-menu-overlay.active {
        max-height: 500px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    }

    .desktop-menu-overlay-inner {
        max-width: 1024px;
        margin: 0 auto;
        padding: 16px 24px;
        display: flex;
        justify-content: flex-end;
    }

    .desktop-menu-grid {
        width: 304px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .desktop-menu-grid .desktop-nav-item {
        padding: 12px 0;
        display: block;
    }

    .desktop-menu-grid .desktop-nav-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 4px;
    }

    .desktop-menu-grid .desktop-new-badge {
        top: 2px;
        font-size: 7px;
        padding: 1px 4px;
    }

    /* More News Desktop */
    .more-news {
        background: white;
        max-width: 1024px;
        margin: 0 auto;
        padding: 14px 24px;
        border-bottom: 1px solid #eee;
    }

    .more-news-inner {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .news-partners {
        overflow-x: visible;
        flex: 0;
    }

    .partner-logo img {
        height: 14px;
    }
}