/* ==============================================
   WINVN — style.css
   ============================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #1e73be;
    --secondary: #dd9933;
    --alert: #dd3333;
    --success: #81d742;
    --heading: #dd3333;
    --dark: #000000;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #000;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--alert);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    color: var(--heading);
    margin: 1.2em 0 .6em;
    line-height: 1.3;
}

h1 {
    font-size: 1.65rem;
}

h2 {
    font-size: 1.35rem;
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1em;
    text-align: justify;
}

ul {
    padding-left: 1.3em;
    margin: 0 0 1em;
}

li {
    margin-bottom: .4em;
}

/* ============ CONTAINER ============ */
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============ HEADER ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 65px;
    padding: 8px 15px;
    max-width: 1050px;
    margin: 0 auto;
}

.logo a {
    display: block;
}

.logo img {
    max-height: 65px;
    width: auto;
    border-radius: 8px !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: transform .15s, filter .2s;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn-primary {
    background: var(--alert);
}

.btn-secondary {
    background: var(--secondary);
}

.btn-glow::before,
.btn-glow::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    border-radius: 7px;
    z-index: -1;
    animation-duration: 2s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
}

.btn-glow::before {
    left: 0;
    top: 0;
    box-shadow: 0 0 17px 3px #fff700, 0 0 4px 2px #fff700;
    animation-name: yellow-shadow;
}

.btn-glow::after {
    right: 0;
    bottom: 0;
    box-shadow: 0 0 17px 3px rgb(255, 0, 200), 0 0 4px 2px rgb(255, 0, 200);
    animation-name: cyan-shadow;
}

@keyframes yellow-shadow {
    0% {
        top: 0;
        left: 0;
    }

    25% {
        top: 50%;
        left: 0;
    }

    50% {
        top: 50%;
        left: 50%;
    }

    75% {
        top: 0;
        left: 50%;
    }

    100% {
        top: 0;
        left: 0;
    }
}

@keyframes cyan-shadow {
    0% {
        right: 0;
        bottom: 0;
    }

    25% {
        right: 0;
        bottom: 50%;
    }

    50% {
        right: 50%;
        bottom: 50%;
    }

    75% {
        right: 50%;
        bottom: 0;
    }

    100% {
        right: 0;
        bottom: 0;
    }
}

/* ============ SECTION TITLE ============ */
.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 20px;
    text-align: center;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--heading), transparent);
    border-radius: 2px;
}

.section-title-main {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--heading);
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ============ CONTENT ============ */
.content-wrap {
    padding: 10px 0 30px;
}

.card {
    border: 2px solid rgba(226, 43, 43, .97);
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 20px;
    background: #fff;
}

blockquote {
    border-left: 4px solid var(--alert);
    margin: 0 0 1em;
    padding: .6em 1em;
    background: #fbf2f2;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

blockquote p {
    margin: 0;
}

/* ============ HERO SLIDER (SLIDER) ============ */
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1400 / 467;
    /* rasio default: lebar penuh, tinggi proporsional */
    border-radius: 20px;
    overflow: hidden;
    margin: 0 0 15px;
    background: #111;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

.hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.hero-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Gambar SELALU memenuhi seluruh area (desktop & mobile) */
.hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    /* isi penuh, crop bagian berlebih */
    object-position: center;
    border-radius: 0 !important;
    /* ikuti sudut container */
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Tombol Navigasi */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(2px);
}

.hero-nav:hover {
    background: rgba(0, 0, 0, .75);
}

.hero-nav.prev {
    left: 12px;
}

.hero-nav.next {
    right: 12px;
}

/* Titik Navigasi (Dots) */
.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Mobile: rasio sedikit lebih tinggi agar gambar tetap terlihat jelas */
@media (max-width: 549px) {
    .hero-slider {
        aspect-ratio: 1400 / 467;
    }

    /* ← SAMAKAN DENGAN GAMBAR */
    .hero-nav {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .hero-nav.prev {
        left: 6px;
    }

    .hero-nav.next {
        right: 6px;
    }

    .hero-dots {
        bottom: 8px;
        gap: 6px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }
}

/* ============ BACA SELENGKAPNYA ============ */
.rut_gon {
    position: relative;
    overflow: hidden;
    padding-bottom: 25px;
    margin-bottom: 20px;
    transition: height .4s ease;
}

.rut_gon-toggle {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: #fff;
    z-index: 10;
}

.rut_gon-toggle::before {
    content: "";
    display: block;
    height: 55px;
    margin-top: -45px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 100%);
}

.rut_gon-toggle a {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    padding: 6px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.rut_gon-toggle a::after {
    content: '';
    display: inline-block;
    margin: -2px 0 0 6px;
    vertical-align: middle;
    border-top: 6px solid #fff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.rut_gon-toggle.less a::after {
    border-top: 0;
    border-bottom: 6px solid #fff;
}

.rut_gon-toggle.less::before {
    display: none;
}

/* ============ FAQ ACCORDION ============ */
.accordion {
    border-radius: 12px;
    overflow: hidden;
}

.accordion-item {
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

.accordion-item summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 45px 14px 18px;
    font-weight: 700;
    color: #222;
    background: #f7f7f7;
    position: relative;
    transition: background .2s;
    user-select: none;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary:hover {
    background: #eee;
}

.accordion-item summary::after {
    content: '▾';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--alert);
    transition: transform .2s;
}

.accordion-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.accordion-item[open] summary {
    background: #fdecec;
    color: var(--alert);
}

.accordion-content {
    padding: 14px 18px;
    border-top: 1px solid #eee;
    animation: fadeIn .25s ease;
}

.accordion-content p {
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============ FOOTER ============ */
.footer {
    background: #000;
    color: #fff;
    padding: 30px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-col {
    background: #0a0a0a;
    border-radius: 20px;
    padding: 15px;
}

.footer-col h4 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-col p,
.footer-col li {
    color: #ddd;
    font-size: .92rem;
}

.footer-col ul {
    padding-left: 0;
    list-style: none;
}

.footer-col li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}

.footer-col li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--alert);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-col a {
    color: #ff0;
}

.footer-col a:hover {
    color: red;
}

.footer-logo {
    width: 100%;
    border-radius: 12px !important;
    margin-bottom: 12px;
}

.footer-bottom {
    background: #000;
    text-align: center;
    padding: 18px 15px;
    border-top: 1px solid #222;
    margin-top: 25px;
    color: #aaa;
    font-size: .85rem;
}

/* ============ AMPLOP MERAH MELAYANG ============ */
.hb-wrapper {
    position: fixed;
    top: 45%;
    right: 10px;
    width: 130px;
    height: 150px;
    z-index: 9999;
    cursor: pointer;
}

.hb-wrapper .bonus {
    position: absolute;
    bottom: 5px;
    left: 50%;
    margin-left: -30px;
    width: 60px;
    height: 80px;
    border-radius: 10px;
    background: #ff0000;
    overflow: hidden;
    animation: shaking 1.2s ease infinite;
    box-shadow: 0 4px 14px rgba(255, 0, 0, .45);
}

.hb-wrapper .bonus::before {
    content: '$';
    position: absolute;
    top: 22px;
    left: 50%;
    margin-left: -15px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #ff0000;
    background: #ff0;
    border-radius: 50%;
    z-index: 4;
}

.hb-wrapper .bonus::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 80px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 3px 0 2px #ff0;
    z-index: 3;
}

.hb-wrapper .surprises .fly {
    position: absolute;
    top: 45px;
    left: 50%;
    color: #ff0000;
    font-weight: 700;
    font-size: 12px;
    opacity: 0;
    animation: flying 1.65s ease-in-out infinite;
}

.hb-wrapper .surprises .fly:nth-child(1) {
    animation-delay: 1.5s;
    margin-left: -50px;
}

.hb-wrapper .surprises .fly:nth-child(2) {
    animation-delay: 1.2s;
    margin-left: -30px;
}

.hb-wrapper .surprises .fly:nth-child(3) {
    animation-delay: 0.9s;
    margin-left: -60px;
}

.hb-wrapper .surprises .fly:nth-child(4) {
    animation-delay: 1.6s;
    margin-left: -20px;
}

.hb-wrapper .surprises .fly:nth-child(5) {
    animation-delay: 0.3s;
    margin-left: -70px;
}

.hb-wrapper .surprises .fly:nth-child(6) {
    animation-delay: 0.15s;
    margin-left: -10px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 0;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    z-index: 5;
    line-height: 1;
}

.close-btn:hover {
    background: #000;
}

@keyframes shaking {
    0% {
        margin-left: -30px;
    }

    10% {
        margin-left: -38px;
    }

    20% {
        margin-left: -30px;
    }

    30% {
        margin-left: -38px;
    }

    40% {
        margin-left: -30px;
    }

    50% {
        margin-left: -34px;
    }

    65% {
        bottom: 20px;
    }

    100% {
        bottom: 5px;
    }
}

@keyframes flying {
    0% {
        transform: rotate(20deg);
        opacity: 0;
    }

    50% {
        transform: rotate(-20deg);
        opacity: 1;
    }

    100% {
        top: -60px;
        transform: rotate(20deg);
        opacity: 0;
    }
}

/* ============ BACK TO TOP ============ */
.back-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    color: var(--primary);
    font-size: 1.4rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
    transition: background .2s;
}

.back-top.show {
    display: flex;
}

.back-top:hover {
    background: var(--primary);
    color: #fff;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 849px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title-main {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 9px 16px;
        font-size: .75rem;
    }
}

@media (max-width: 549px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 10px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hb-wrapper {
        right: -60px;
        top: 38%;
        transform: scale(.85);
    }

    .section-title-main {
        font-size: 1rem;
    }

    .card {
        padding: .75rem;
    }

    p {
        text-align: left;
    }
}

/* ================= Review WINVN ================= */
.review-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
}

.review-card {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.review-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.4;
    color: #1f2937;
    font-weight: 700;
}

.review-rating {
    margin-bottom: 10px;
    color: #f5b301;
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1;
}

.review-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

/* Tampilan ponsel */
@media (max-width: 600px) {
    .review-card {
        padding: 15px 16px;
    }

    .review-card h3 {
        font-size: 16px;
    }

    .review-rating {
        font-size: 16px;
    }

    .review-card p {
        font-size: 14px;
        line-height: 1.65;
    }
}

.logo-link .logo-winvn,
img.logo-winvn {
    height: 70px !important;
    width: auto !important;
    max-width: 240px !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .hb-wrapper {
        right: 12px;
        bottom: 80px;
        /* naikkan supaya tidak tertutup tombol chat */
        width: 74px;
        height: 74px;
        z-index: 2147483000;
        /* level maksimal, mengalahkan chat widget */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hb-wrapper .fly {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .hb-wrapper {
        width: 64px;
        height: 64px;
        bottom: 74px;
        right: 10px;
    }
}