/* ==========================================
   GO UBT — Theme Stylesheet
   Berdasarkan template Suprast
   ========================================== */

* { box-sizing: border-box; }

body {
    font-family: var(--font, 'Inter', sans-serif);
    background-color: var(--bg, #f8fafc);
    color: var(--text, #1e293b);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ---------- Top Bar ---------- */
.top-bar {
    font-size: .85rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    background-color: #fff;
}
.top-bar a { color: var(--text); }
.top-bar a:hover { color: var(--primary); }

/* ---------- Navbar ---------- */
.navbar-sticky-transition { transition: transform .3s ease-in-out; }
.navbar-hidden { transform: translateY(-100%); }

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -.5px;
    color: var(--text) !important;
}
.brand-icon {
    background-color: var(--accent);
    color: #000;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.nav-link {
    font-weight: 500;
    color: #475569 !important;
    transition: color .2s;
    padding: .5rem .75rem !important;
    font-size: .95rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* ---------- Hero ---------- */
.hero-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #0f172a;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 15px 35px rgba(15,95,97,.15);
}
.hero-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .85;
    transition: transform .6s ease;
}
.hero-card:hover img { transform: scale(1.04); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,.92) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    padding: 2.5rem;
    pointer-events: none;   /* Klik tembus ke stretched-link di bawah */
}
.hero-content a,
.hero-content button {
    pointer-events: auto;   /* Tapi link di dalamnya tetap bisa diklik */
}
.hero-content h2, .hero-content h1 { color: #fff; letter-spacing: -.5px; }

/* ---------- Badges ---------- */
.badge-yellow {
    background-color: var(--accent);
    color: #000;
    font-weight: 600;
    padding: .45em .9em;
    border-radius: 50rem;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-trans {
    background-color: rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 500;
    padding: .45em .9em;
    border-radius: 50rem;
    font-size: .75rem;
}
.category-badge {
    display: inline-block;
    padding: .4em .8em;
    border-radius: 50rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: rgba(15,95,97,.1);
    color: var(--primary);
    text-decoration: none;
}
.category-badge:hover { background: var(--primary); color: #fff; }

/* ---------- Cards ---------- */
.card-custom {
    border: none;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.03);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}
.card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.07);
}
.card-custom img { transition: transform .4s ease; }
.card-custom:hover img.img-zoom { transform: scale(1.05); }

.card-img-wrap {
    overflow: hidden;
    border-radius: .75rem;
    aspect-ratio: 16/10;
}
.card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.card-title {
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    transition: color .2s;
}
.card-title:hover, a.card-title:hover { color: var(--primary); }

/* ---------- Section Title ---------- */
.section-title {
    font-weight: 800;
    letter-spacing: -.5px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ---------- Category Scroll Pills ---------- */
.category-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-pill {
    background: #fff;
    border: 1px solid var(--border);
    color: #475569;
    font-weight: 600;
    font-size: .85rem;
    padding: .5rem 1.25rem;
    border-radius: 50rem;
    text-decoration: none;
    display: inline-block;
    transition: all .2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,.02);
}
.category-pill:hover, .category-pill.active {
    background-color: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ---------- Article Content ---------- */
.article-content { font-size: 1.05rem; line-height: 1.8; }
.article-content p { margin-bottom: 1.5rem; color: #334155; }
.article-content h2, .article-content h3 {
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    font-weight: 500;
    color: #0f172a;
    margin: 2rem 0;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: .75rem;
    margin: 1rem 0;
}
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: .5rem; color: #334155; }

/* ---------- Ad Banner ---------- */
.ad-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #134e4a 100%);
    color: #fff;
    border-radius: 1.25rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15,95,97,.2);
}
.ad-banner .ad-label {
    position: absolute;
    top: 0; right: 0;
    padding: .5rem;
    opacity: .55;
    font-size: 10px;
    text-transform: uppercase;
}

/* ---------- Widgets ---------- */
.widget-title {
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.top10-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #f1f5f9;
}
.top10-item:last-child { border-bottom: none; padding-bottom: 0; }
.top10-num {
    font-weight: 800;
    font-size: 1.25rem;
    color: #cbd5e1;
    min-width: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.recent-item {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.recent-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.recent-thumb {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: .5rem;
    flex-shrink: 0;
}

.highlight-item {
    background-color: #fffbeb !important;
    border-left: 4px solid var(--accent);
    padding-left: 14px;
    border-radius: .5rem;
}

/* ---------- Sidebar Category Widget ---------- */
.cat-widget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .75rem;
    border-radius: .75rem;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: background .2s;
}
.cat-widget-item:hover, .cat-widget-item.active {
    background: #f1f5f9;
    color: var(--primary);
}

/* ---------- Mobile Nav ---------- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 12px; right: 12px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226,232,240,.8);
    border-radius: 50rem;
    z-index: 1040;
    padding: .75rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
}
.mobile-nav-item {
    color: #64748b;
    text-decoration: none;
    text-align: center;
    font-size: .75rem;
    font-weight: 500;
    transition: color .2s;
}
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--primary); }
.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
    display: block;
}

/* ---------- Scroll Top ---------- */
.scroll-top-btn {
    position: fixed;
    bottom: 80px; right: 20px;
    width: 42px; height: 42px;
    background-color: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
}
.scroll-top-btn.show { opacity: 1; visibility: visible; }
.scroll-top-btn:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}
@media (min-width: 992px) { .scroll-top-btn { bottom: 30px; } }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: #fff;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    margin-top: 3rem;
}
.site-footer .footer-brand { color: #fff; font-weight: 800; font-size: 1.5rem; }
.site-footer h6 { color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.6); transition: color .2s; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
    .hero-card { min-height: 380px; }
    .hero-content { padding: 1.5rem; }
}
</tbody>
