/* ============================================================
   TRACER STUDY UII — Public CSS
   app/Views/css/public.css  (di-serve dari public/assets/css/public.css)
   ============================================================ */

/* ── Variables ── */
:root {
    --uii-blue:    #003f7f;
    --uii-blue2:   #1a5ca8;
    --uii-yellow:  #f5c400;
    --uii-yellow2: #e6b800;
    --uii-yellow3: #f6d206;
    --uii-dark:    #0d2240;
    --uii-light:   #f0f5fb;
    --uii-border:  #e3eaf4;
    --font-main:   'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: #1a2b3c;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR KUNING ── */
.site-topbar {
    background: var(--uii-yellow);
    padding: .3rem 0;
    font-size: .78rem;
    font-weight: 600;
    color: var(--uii-dark);
    /* Tidak sticky — ikut scroll */
}
.topbar-link {
    color: var(--uii-dark);
    text-decoration: none;
    opacity: .8;
    transition: opacity .15s;
}
.topbar-link:hover { opacity: 1; color: var(--uii-dark); }
.topbar-sep { opacity: .4; margin: 0 .4rem; }
.lang-switcher-top {
    display: flex;
    align-items: center;
    gap: 2px;
}
.lang-btn-top {
    font-size: .72rem;
    font-weight: 700;
    color: var(--uii-dark);
    text-decoration: none;
    padding: 2px 7px;
    border-radius: 10px;
    opacity: .65;
    transition: all .15s;
    display: flex;
    align-items: center;
}
.lang-btn-top.active {
    background: var(--uii-dark);
    color: var(--uii-yellow) !important;
    opacity: 1;
}
.lang-btn-top:hover:not(.active) { opacity: 1; color: var(--uii-dark); }

/* ── NAVBAR BIRU (sticky) ── */
.site-navbar {
    background: var(--uii-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 40, 100, .25);
}
.site-navbar .navbar-brand img { height: 36px; }
.site-navbar .nav-link {
    color: rgba(255, 255, 255, .85) !important;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .3px;
    padding: .45rem .85rem !important;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, .12);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 3px 6px;
}
.lang-btn {
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    padding: 2px 7px;
    border-radius: 12px;
    letter-spacing: .5px;
    transition: all .15s;
}
.lang-btn.active    { background: var(--uii-yellow); color: var(--uii-dark) !important; }
.lang-btn:hover:not(.active) { color: #fff; }

/* ── BUTTONS ── */
.btn-uii {
    background: var(--uii-yellow);
    color: var(--uii-dark);
    font-weight: 700;
    border: none;
    padding: .65rem 1.5rem;
    border-radius: 8px;
    transition: background .15s, transform .1s, box-shadow .15s;
}
.btn-uii:hover {
    background: var(--uii-yellow2);
    color: var(--uii-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 196, 0, .35);
}
.btn-uii:active { transform: translateY(0); }

.btn-uii-outline {
    background: transparent;
    color: var(--uii-yellow);
    border: 2px solid var(--uii-yellow);
    font-weight: 700;
    padding: .6rem 1.4rem;
    border-radius: 8px;
    transition: all .15s;
}
.btn-uii-outline:hover {
    background: var(--uii-yellow);
    color: var(--uii-dark);
}

/* ── SLIDESHOW HERO ── */
.hero-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--uii-dark);
    /* Tinggi responsif — aspek rasio landscape */
    aspect-ratio: 16 / 6;
    max-height: 600px;
}
@media (max-width: 768px) {
    .hero-slideshow { aspect-ratio: 4 / 3; max-height: none; }
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
    pointer-events: none;
}
.slide.active {
    opacity: 1;
    pointer-events: auto;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Overlay gradient untuk teks di atas gambar */
.slide-overlay {
    position: absolute;
    inset: 0;
    /*background: linear-gradient(
        90deg,
        rgba(10, 25, 60, .72) 0%,
        rgba(10, 25, 60, .35) 55%,
        rgba(10, 25, 60, .05) 100%
    );*/
}
@media (max-width: 768px) {
    .slide-overlay {
        background: linear-gradient(
            180deg,
            rgba(10,25,60,.2) 0%,
            rgba(10,25,60,.75) 100%
        );
    }
}
.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 4%;
    color: #fff;
    z-index: 2;
}
@media (max-width: 768px) {
    .slide-content {
        top: auto;
        bottom: 1.5rem;
        transform: none;
    }
}
.slide-content .slide-label {
    display: inline-block;
    background: var(--uii-yellow);
    color: var(--uii-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: .25rem .75rem;
    border-radius: 20px;
    margin-bottom: .75rem;
}
.slide-content h2 {
    font-size: clamp(1.3rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .6rem;
    max-width: 560px;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.slide-content p {
    font-size: clamp(.82rem, 1.4vw, 1rem);
    color: rgba(255,255,255,.85);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
@media (max-width: 576px) {
    .slide-content p { display: none; }
    .slide-content h2 { font-size: 1.2rem; }
}

/* Prev / Next buttons */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
    backdrop-filter: blur(4px);
}
.slide-btn:hover { background: rgba(255,255,255,.32); }
.slide-btn-prev { left: 1rem; }
.slide-btn-next { right: 1rem; }

/* Dots */
.slide-dots {
    position: absolute;
    bottom: 1rem;
    right: 1.2rem;
    z-index: 10;
    display: flex;
    gap: .4rem;
}
.slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .2s, transform .2s;
    border: none;
    padding: 0;
}
.slide-dot.active {
    background: var(--uii-yellow);
    transform: scale(1.3);
}

/* Hero steps card (dipakai di section bawah slideshow) */
.steps-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 1.5rem;
}
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.step-item:last-of-type { border-bottom: none; }
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--uii-yellow);
    color: var(--uii-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    flex-shrink: 0;
}
.step-text {
    color: rgba(255, 255, 255, .85);
    font-size: .88rem;
    line-height: 1.5;
}
.step-text strong { color: #fff; }

/* Stats bar (pindah ke bawah slideshow) */
.hero-stats-bar {
    background: var(--uii-dark);
    padding: .9rem 0;
    border-bottom: 3px solid var(--uii-yellow);
}
.hero-stat-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1.5rem;
    border-right: 1px solid rgba(255,255,255,.12);
}
.hero-stat-item:last-child { border-right: none; }
.hero-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--uii-yellow);
    line-height: 1;
}
.hero-stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.65);
    line-height: 1.3;
}

/* ── SECTIONS ── */
.section-tag {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--uii-blue2);
    background: var(--uii-light);
    padding: .3rem .85rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: .75rem;
}
.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--uii-dark);
}

/* About */
.about-section { padding: 2rem 0; background: #fff; }
.about-card {
    border: 1px solid var(--uii-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: box-shadow .2s, transform .15s;
    height: 100%;
}
.about-card:hover {
    box-shadow: 0 8px 28px rgba(0, 40, 100, .1);
    transform: translateY(-3px);
}
.about-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* How-to */
.howto-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--uii-light) 0%, #fff 100%);
}
.howto-step { text-align: center; padding: 1.5rem 1rem; }
.howto-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--uii-blue);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(0, 63, 127, .25);
}
.howto-connector {
    position: absolute;
    top: 28px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: linear-gradient(90deg, var(--uii-blue) 0%, var(--uii-blue2) 100%);
    opacity: .2;
}

/* Video */
.video-section { padding: 1rem 0; background: #fff; }
.video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 40, 100, .12);
    aspect-ratio: 16 / 9;
}
.video-wrapper iframe { width: 100%; height: 100%; border: none; }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--uii-yellow) 0%, #f0b800 100%);
    padding: 4rem 0;
    text-align: center;
}
.cta-section h2 { color: var(--uii-dark); font-weight: 800; }
.cta-section p  { color: rgba(13, 34, 64, .75); }

/* CTA WHITE */
.cta-section-white {
    /*background: linear-gradient(135deg, var(--uii-yellow) 0%, #f0b800 100%);*/
    padding: 4rem 0;
    text-align: center;
}
.cta-section-white h2 { color: var(--uii-dark); font-weight: 800; }
.cta-section-white p  { color: rgba(13, 34, 64, .75); }

/* ── FOOTER ── */
.site-footer {
    background: var(--uii-blue);
    color: rgba(255, 255, 255, .8);
    padding: 2.5rem 0 1.2rem;
}
.site-footer h6 {
    color: var(--uii-yellow);
    font-weight: 700;
    letter-spacing: .5px;
}
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.site-footer a:hover { color: var(--uii-yellow); }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--uii-yellow); color: var(--uii-dark); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: .78rem;
    color: rgba(255, 255, 255, .45);
}

/* ── FOOTER YELLOW ── */
.site-footer-yellow {
    background: var(--uii-yellow3);
    color: rgba(0, 0, 0, 0.8);
    padding: 2.5rem 0 1.2rem;
    font-size: 1rem;
    font-weight: 600;
}
.site-footer-yellow h6 {
    color: var(--uii-blue);
    font-weight: 700;
    letter-spacing: .5px;
}
.site-footer-yellow a { color: rgba(12, 2, 65, 0.7); text-decoration: none; }
.site-footer-yellow a:hover { color: var(--uii-blue); }
.footer-social-yellow a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: rgba(7, 4, 88, 0.771);
    font-size: 1rem;
    transition: background .15s, color .15s;
}
.footer-social-yellow a:hover { background: var(--uii-yellow); color: var(--uii-dark); }
.footer-bottom-yellow {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: .78rem;
    color: rgba(0, 0, 0, 0.804);
}

/* ── AUTH PAGES ── */
.auth-section {
    min-height: calc(100vh - 68px);
    /*background: linear-gradient(135deg, var(--uii-dark) 0%, var(--uii-blue) 100%);*/
    display: flex;
    align-items: center;
    padding: 3rem 0;
}
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
}
.auth-card-header {
    background: linear-gradient(135deg, var(--uii-blue) 0%, var(--uii-blue2) 100%);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    color: #fff;
}
.auth-card-body { padding: 2rem; }
.auth-divider {
    border-top: 1px solid var(--uii-border);
    margin: 1.2rem 0;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
    box-shadow: 0 0 0 3px rgba(0, 63, 127, .15);
    border-color: var(--uii-blue2);
}
.auth-card .input-group-text {
    background: var(--uii-light);
    border-right: none;
    color: var(--uii-blue2);
}
.auth-card .input-group .form-control { border-left: none; }

/* Token input */
.token-inputs { display: flex; gap: .5rem; justify-content: center; margin: 1.5rem 0; }
.token-digit {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #d0dcea;
    border-radius: 12px;
    color: var(--uii-dark);
    transition: border-color .15s, box-shadow .15s;
}
.token-digit:focus {
    border-color: var(--uii-yellow);
    box-shadow: 0 0 0 3px rgba(245, 196, 0, .2);
    outline: none;
}

/* ── FINISH PAGE ── */
.finish-section {
    min-height: calc(100vh - 140px);
    background: linear-gradient(135deg, var(--uii-dark) 0%, var(--uii-blue) 100%);
    display: flex;
    align-items: center;
    padding: 3rem 0;
}
.finish-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}
.finish-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #2e7d32;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(46, 125, 50, .2);
}

/* ── RESPONSIVE ── */
@media (max-width: 576px) {
    .hero-section     { padding: 4rem 0 3rem; min-height: auto; }
    .hero-title       { font-size: 1.75rem; }
    .hero-stats       { gap: 1.2rem; }
    .hero-stat-num    { font-size: 1.4rem; }
    .steps-card       { margin-top: 2rem; }
    .token-digit      { width: 42px; height: 52px; font-size: 1.2rem; }
    .about-section,
    .howto-section,
    .video-section    { padding: 3rem 0; }
}

