/* ==========================================================================
   GARIS BUMI - MASTER SHARED PORTAL STYLES (HEADER, NAVIGATION & FOOTER)
   Version 1.0.0
   ========================================================================== */

:root {
    --gb-primary: #064e3b;
    --gb-primary-dark: #022c22;
    --gb-accent: #10b981;
    --gb-accent-hover: #059669;
    --gb-text-dark: #0f172a;
    --gb-text-muted: #64748b;
    --gb-bg-light: #f8fafc;
    --gb-border: #e2e8f0;
    --portal-container-width: 1140px;
    --portal-sidebar-width: 330px;
    --portal-grid-gap: 40px;
    --portal-border-radius: 12px;
}

*, *:before, *:after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: #1e293b;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    width: 100%;
    position: relative;
}

/* ================= 1. ULTRA-MODERN MASTER HEADER ================= */
.site-header {
    width: 100%;
    background: #ffffff;
    position: relative;
    z-index: 990;
}

/* 1.1 Utility Top Bar */
.header-utility-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11.5px;
    color: #475569;
}

.utility-container {
    max-width: var(--portal-container-width);
    margin: 0 auto;
    padding: 7px 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.utility-left, .utility-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.utility-trending-label {
    font-weight: 700;
    color: #0f172a;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.utility-tags {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.utility-tag {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(5, 150, 105, 0.08);
    transition: all 0.2s ease;
    font-size: 11px;
}

.utility-tag:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-1px);
}

.utility-edition {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #64748b;
    padding-left: 8px;
    border-left: 1px solid #cbd5e1;
}

@media (max-width: 768px) {
    .utility-right { display: none; }
    .utility-container { justify-content: center; }
}

/* 1.2 Main Brand Header Bar */
.header-main-bar {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.header-main-container {
    max-width: var(--portal-container-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.portal-brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.portal-brand-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.portal-brand-img:hover {
    transform: scale(1.02);
}

.portal-brand-fallback {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1;
}

.portal-brand-fallback span {
    color: #059669;
}

.portal-brand-tagline {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    display: block;
    margin-top: 3px;
}

.header-right-tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.header-cta-btn * {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.header-cta-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45) !important;
}

.header-left-spacer {
    display: none;
}

@media (max-width: 768px) {
    .header-left-spacer {
        display: block;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    .header-cta-btn { display: none; }
    .header-main-bar { padding: 8px 0; }
    .header-main-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 0 12px !important;
    }
    .portal-brand-link {
        margin: 0 auto;
        justify-content: center;
        text-align: center;
    }
    .portal-brand-img { max-height: 44px; }
    .portal-brand-fallback { font-size: 20px; text-align: center; }
    .header-right-tools {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
    }
}

/* ================= 2. STICKY MASTER NAVIGATION ================= */
.cat-navbar {
    background: linear-gradient(90deg, #022c22 0%, #064e3b 45%, #064e3b 55%, #022c22 100%);
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 20px -2px rgba(2, 44, 34, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.cat-navbar.is-scrolled {
    background: rgba(2, 44, 34, 0.97) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

.sticky-brand-compact {
    display: none;
    align-items: center;
    text-decoration: none;
    margin-right: 14px;
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cat-navbar.is-scrolled .sticky-brand-compact {
    display: inline-flex;
    opacity: 1;
    transform: translateX(0);
}

.cat-nav-container {
    max-width: var(--portal-container-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    gap: 12px;
    position: relative;
}

.cat-links-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 4px 0;
}

.cat-nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    position: relative;
}

.cat-nav-link:hover {
    color: #6ee7b7;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.cat-nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(5, 150, 105, 0.4) 100%);
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.45);
}

.cat-nav-link.active .active-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #34d399;
    border-radius: 4px;
}

.cat-special-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(5, 150, 105, 0.25);
    border: 1px solid #10b981;
    color: #a7f3d0;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cat-special-pill:hover {
    background: #10b981;
    color: #ffffff;
    transform: translateY(-1px);
}

.special-glow {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: pulseBeacon 1.8s infinite;
}

/* Mobile Category Toolbar */
.cat-nav-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.cat-home-mobile {
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.btn-rubrik-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    height: 32px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    white-space: nowrap !important;
}

.btn-rubrik-toggle:hover, .btn-rubrik-toggle.active {
    background: #10b981 !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
}

.cat-special-pill-mobile {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid #10b981 !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    height: 32px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

/* Mobile Expandable Rubrik Grid Menu */
.mobile-rubrik-dropdown {
    background: #022c22;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid #10b981;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    animation: slideDownRubrik 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDownRubrik {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.rubrik-dropdown-inner {
    padding: 14px 16px 18px 16px;
    max-width: var(--portal-container-width);
    margin: 0 auto;
}

.rubrik-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: #a7f3d0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.btn-close-rubrik {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
}

.rubrik-pills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.rubrik-pill-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.rubrik-pill-item:hover, .rubrik-pill-item.active {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #ffffff;
}

.rubrik-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .cat-links-desktop, .cat-nav-action { display: none !important; }
    .cat-nav-mobile { display: flex !important; }
    .cat-navbar.is-scrolled .cat-home-mobile { display: none !important; }
    .cat-navbar.is-scrolled .cat-nav-mobile { justify-content: flex-end; gap: 8px; }
    .sticky-brand-compact { margin-right: 8px; padding-right: 8px; }
    .sticky-brand-compact img { height: 22px !important; }
}

/* ================= 3. SLEEK NEWS TICKER ================= */
.news-ticker {
    background: #022c22;
    color: #f1f5f9;
    padding: 7px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.news-ticker-inner {
    max-width: var(--portal-container-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.ticker-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.ticker-beacon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    animation: pulseBeacon 1.5s infinite;
}

.ticker-label {
    font-weight: 800;
    font-size: 10.5px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.ticker-marquee-track {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: tickerSlide 35s linear infinite;
}

.ticker-marquee-content:hover {
    animation-play-state: paused;
}

@keyframes tickerSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    margin-right: 28px;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ticker-item-link:hover {
    color: #34d399;
    text-decoration: underline;
}

.ticker-bullet {
    color: #10b981;
    font-size: 10px;
}

@keyframes pulseBeacon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ================= 4. ULTRA-MODERN MASTER FOOTER ================= */
.portal-footer {
    background: #022c22;
    color: #f1f5f9;
    margin-top: 54px;
    border-top: 3px solid #10b981;
}

.footer-inner {
    max-width: var(--portal-container-width);
    margin: 0 auto;
    padding: 44px 1rem 28px 1rem;
}

.footer-top-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 36px;
}

.footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand-logo {
    max-height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-accreditation-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    color: #a7f3d0;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-mini-newsletter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px;
    border-radius: 30px;
    max-width: 400px;
    width: 100%;
}

.footer-mini-newsletter input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    padding: 6px 14px;
    font-size: 12px;
    width: 100%;
}

.footer-mini-newsletter input::placeholder {
    color: #94a3b8;
}

.footer-mini-newsletter button {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.footer-mini-newsletter button:hover {
    background: #059669;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-col-title {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-title-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.footer-bio-text {
    font-size: 12.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0 0 18px 0;
}

.footer-social-strip {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social-btn:hover {
    background: #10b981;
    color: #ffffff;
    transform: translateY(-2px);
    border-color: #10b981;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links-list li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12.5px;
    transition: all 0.15s ease;
    display: inline-block;
}

.footer-links-list li a:hover {
    color: #34d399;
    transform: translateX(3px);
}

.footer-contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    color: #cbd5e1;
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.footer-contact-row a {
    color: #a7f3d0;
    text-decoration: none;
}

.footer-contact-row a:hover {
    text-decoration: underline;
}

.footer-contact-icon {
    flex-shrink: 0;
    font-size: 14px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #94a3b8;
}

.footer-legal-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

.footer-back-to-top {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.footer-back-to-top:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-top-strip {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-mini-newsletter {
        max-width: 100%;
    }
    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
