/*
Theme Name: TradeIndonesia
Theme URI: https://beta.tradeindonesia.co.id
Description: Child theme for GeneratePress — TradeIndonesia corporate identity
Author: TradeIndonesia Dev Team
Template: generatepress
Version: 1.3.0
Text Domain: tradeindonesia
TEMA: Arctic Ocean — Deep Ocean #0C1F35 · Arctic Cyan #38BDF8
      Steel Night #0F2740 · Ice Mist #E7F9FF · Frost Blue #B6E8FA
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --navy:        #0C1F35;   /* Deep Ocean  — ganti dari #003366 */
  --gold:        #38BDF8;   /* Arctic Cyan — ganti dari #D4AF37 */
  --gold-light:  #7DD3FC;   /* Cyan terang  — ganti dari #E8CB5B */
  --steel-night: #0F2740;
  --ice-mist:    #E7F9FF;
  --frost-blue:  #B6E8FA;
  --cream:       #E7F9FF;
}

/* ============================================================
   TYPOGRAPHY & GLOBAL
   ============================================================ */
body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, .font-display {
    font-family: 'Cormorant Garamond', Georgia, serif;
}
#navbar a,
#navbar button,
#topbar a,
#topbar span,
#topbar div {
    font-size: inherit;
}

/* ============================================================
   1. SCROLLBAR & BASE UTILITIES
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream, #E7F9FF); }
::-webkit-scrollbar-thumb { background: var(--navy, #0C1F35); border-radius: 10px; }
html { scroll-behavior: smooth; }

/* ============================================================
   2. NAVBAR — SOLID COLOR
   ============================================================ */
#navbar {
    background: rgba(12, 31, 53, 0.87);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    transition: background 0.35s ease, box-shadow 0.35s ease,
                padding 0.35s ease, top 0.35s ease;
    position: fixed !important;
    left: 0;
    right: 0;
    z-index: 50;
}
#navbar::before { display: none !important; }
#navbar > * {
    position: relative;
    z-index: 1;
}
#navbar.scrolled {
    background: var(--navy, #0C1F35) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.28) !important;
    border-bottom-color: rgba(56, 189, 248, 0.2) !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

/* ============================================================
   3. HERO BACKGROUNDS
   ============================================================ */
.archive-hero-bg, .article-hero-bg {
    background-image:
        linear-gradient(
            to right,
            rgba(12, 31, 53, 0.95)  0%,
            rgba(15, 39, 64, 0.88) 50%,
            rgba(12, 31, 53, 0.95) 100%
        ),
        var(--custom-hero-bg, url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjisFl_fYK4rgp9Ez1dfPufaNbpL5siW8iAsLPK5Bnyg304mtc2ifUQjgPo07C_IF5sh1RHpcPN0dQFB4iZ88wC2cmD2k3egBMNutM0nwLUmKQv0V1kq2LmZYrL9rd8RLXa-O2iy92lHUQHnHVbEt_QnQxHhV9noSMAgFWHAXHTvszFHxV1WZrtjrC4Quc/s1200/TradeIndonesia%20007_1_Global-Trade-scaled.jpg')) !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}
.hero-grid-overlay {
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ============================================================
   4. ANIMATIONS & CARD COMPONENTS
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }
.fade-up.delay-6 { transition-delay: 0.6s; }
.fade-up.delay-7 { transition-delay: 0.7s; }
.fade-up.delay-8 { transition-delay: 0.8s; }

.artikel-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.artikel-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(12, 31, 53, 0.12); border-color: rgba(56, 189, 248, 0.35); }

.tag-pill { transition: background 0.2s, color 0.2s, border-color 0.2s; }
.tag-pill:hover, .tag-pill.active { background: var(--navy, #0C1F35); color: #fff; border-color: var(--navy, #0C1F35); }

/* ============================================================
   5. ARTICLE CONTENT — TYPOGRAPHY
   ============================================================ */
.article-body p { margin-bottom: 1.25rem; color: #374151; }
.article-body h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 600; color: var(--navy, #0C1F35); margin-top: 2.5rem; margin-bottom: 1rem; }
.article-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; color: var(--navy, #0C1F35); margin-top: 2rem; margin-bottom: 0.75rem; }
.article-body ul { list-style-type: disc; margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-body ol { list-style-type: decimal; margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; color: #374151; }
.article-body blockquote { border-left: 3px solid var(--gold, #38BDF8); padding-left: 1.25rem; margin: 1.5rem 0; font-style: italic; color: #4B5563; }
.article-body strong { color: var(--navy, #0C1F35); font-weight: 600; }
.article-body a {
    color: var(--navy, #0C1F35);
    text-decoration: none;
    border-bottom: 2px solid var(--gold, #38BDF8);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}
.article-body a:hover {
    color: var(--gold, #38BDF8);
    background-color: rgba(56, 189, 248, 0.1);
}
.article-body img { border-radius: 1rem; margin: 1.5rem 0; width: 100%; height: auto; }
.article-body figure { margin: 2rem 0; }
.article-body figcaption { text-align: center; font-size: 0.8rem; color: #9CA3AF; margin-top: 0.5rem; }

/* ============================================================
   6. INLINE RELATE "BACA JUGA" & WIDGETS
   ============================================================ */
.inline-relate-detik {
    border-left: 5px solid var(--navy, #0C1F35);
    padding-left: 1rem;
    margin: 2rem 0;
}
.inline-relate-detik .inline-relate-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.3rem;
}
.article-body .inline-relate-detik a.inline-relate-title {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy, #0C1F35);
    line-height: 1.4;
    text-decoration: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    background-color: transparent !important;
    transition: color 0.2s ease;
}
.article-body .inline-relate-detik a.inline-relate-title:hover {
    color: var(--gold, #38BDF8) !important;
    background-color: transparent !important;
}

/* Sidebar Widgets */
.sidebar-widget { background: #fff; border: 1px solid rgba(12, 31, 53, 0.08); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-widget h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold, #38BDF8);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(12, 31, 53, 0.08);
}
.sidebar-widget ul {
    margin-left: 0 !important;
    list-style: none !important;
}
.sidebar-widget ul.space-y-4 li a.group .min-w-0 { flex: 1; min-width: 0; }

/* Reading Progress Bar */
#reading-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
    background: linear-gradient(90deg, var(--gold, #38BDF8), var(--gold-light, #7DD3FC));
    width: 0%;
    transition: width 0.1s linear;
}

/* Share Buttons */
.share-btn { transition: transform 0.2s, background 0.2s, color 0.2s; }
.share-btn:hover { transform: translateY(-2px); }

/* ============================================================
   7. ARCHIVE — FILTER, SEARCH, PAGINATION
   ============================================================ */
.filter-btn { transition: all 0.2s ease; }
.filter-btn:hover, .filter-btn.active { background: var(--navy, #0C1F35); color: #fff; border-color: var(--navy, #0C1F35); }

.search-input:focus {
    border-color: var(--gold, #38BDF8) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
    outline: none;
}

/* ============================================================
   7B. ARCHIVE SEARCH OVERRIDE
   ============================================================ */
.archive-hero-bg form input[type="text"],
.archive-hero-bg form input[type="search"] {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 9999px !important;
    color: #ffffff !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 0.875rem 3.5rem 0.875rem 1.5rem !important;
    box-shadow: none !important;
}
.archive-hero-bg form input[type="text"]::placeholder,
.archive-hero-bg form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}
.archive-hero-bg form input[type="text"]:focus,
.archive-hero-bg form input[type="search"]:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.3) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Pagination */
.pagination-wrapper { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(12, 31, 53, 0.15);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy, #0C1F35);
    transition: all 0.2s ease;
    text-decoration: none;
}
.pagination-wrapper a:hover,
.pagination-wrapper span.current {
    background-color: var(--navy, #0C1F35);
    color: #ffffff;
    border-color: var(--navy, #0C1F35);
}

/* ============================================================
   8. OVERRIDE MENU GENERATEPRESS — DESKTOP
   ============================================================ */
.custom-menu-colors ul,
.custom-menu-colors li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.custom-menu-colors > ul {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    flex-wrap: nowrap !important;
}
.custom-menu-colors > ul > li {
    position: relative !important;
}
.custom-menu-colors > ul > li > a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap;
    text-decoration: none !important;
    padding: 1rem 0.9rem !important;
    display: inline-block !important;
    transition: color 0.2s ease !important;
    background: transparent !important;
    border-radius: 0.375rem !important;
}
.custom-menu-colors > ul > li > a:hover,
.custom-menu-colors > ul > li.current-menu-item > a,
.custom-menu-colors > ul > li.current-menu-parent > a {
    color: var(--gold, #38BDF8) !important;
    background: rgba(255,255,255,0.06) !important;
}

/* SUB-MENU: Hover Bridge */
.custom-menu-colors ul.sub-menu {
    position: absolute !important;
    left: 0 !important;
    top: 100% !important;
    padding-top: 0.6rem !important;
    min-width: 14rem !important;
    z-index: 500 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-4px) !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
}
.custom-menu-colors ul.sub-menu::after {
    content: '';
    position: absolute;
    top: 0.6rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14), 0 0 0 1px rgba(12, 31, 53, 0.06);
    z-index: -1;
}
.custom-menu-colors > ul > li:hover > ul.sub-menu,
.custom-menu-colors > ul > li.sfHover > ul.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}
.custom-menu-colors ul.sub-menu > li {
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.custom-menu-colors ul.sub-menu > li > a {
    display: block !important;
    padding: 0.6rem 1.25rem !important;
    color: var(--navy, #0C1F35) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    background: transparent !important;
    text-decoration: none !important;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: background 0.18s ease, color 0.18s ease !important;
}
.custom-menu-colors ul.sub-menu > li > a:hover {
    color: var(--gold, #38BDF8) !important;
    background: #E7F9FF !important;
}
.custom-menu-colors ul.sub-menu > li:last-child > a {
    padding-bottom: 0.75rem !important;
}

/* ============================================================
   9. OVERRIDE MENU GENERATEPRESS — MOBILE
   ============================================================ */
svg.hidden { display: none !important; }
.custom-menu-colors-mobile ul,
.custom-menu-colors-mobile li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.custom-menu-colors-mobile > ul {
    display: flex !important;
    flex-direction: column !important;
    padding: 0.75rem !important;
    gap: 0.125rem !important;
}
.custom-menu-colors-mobile ul > li > a {
    color: rgba(255, 255, 255, 0.88) !important;
    display: block !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}
.custom-menu-colors-mobile ul > li > a:hover,
.custom-menu-colors-mobile ul > li.current-menu-item > a {
    color: var(--gold, #38BDF8) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}
.custom-menu-colors-mobile ul.sub-menu {
    display: flex !important;
    flex-direction: column !important;
    padding: 0.25rem 0 0.25rem 1rem !important;
    border-left: 2px solid rgba(56, 189, 248, 0.3) !important;
    margin: 0 0 0.25rem 1rem !important;
}
.custom-menu-colors-mobile ul.sub-menu > li > a {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.65) !important;
    border-radius: 0.375rem !important;
}
.custom-menu-colors-mobile ul.sub-menu > li > a:hover {
    color: var(--gold, #38BDF8) !important;
    background: rgba(255,255,255,0.06) !important;
}

/* ============================================================
   10. BREADCRUMB RANKMATH
   ============================================================ */
.rankmath-breadcrumb-custom span.last,
.rankmath-breadcrumb-custom strong,
.rankmath-breadcrumb-custom .breadcrumb_last {
    color: var(--gold, #38BDF8) !important;
    font-weight: 500;
}

/* ============================================================
   11. SECTION LABEL
   ============================================================ */
.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold, #38BDF8);
}

/* ============================================================
   12. TABLE OF CONTENTS LINK
   ============================================================ */
.toc-link { transition: color 0.2s, padding-left 0.2s; }
.toc-link:hover, .toc-link.active { color: var(--gold, #38BDF8); padding-left: 0.5rem; }

/* ============================================================
   13. LOGO
   ============================================================ */
.ti-logo-img {
    max-height: var(--ti-logo-height, 40px);
    width: auto;
    object-fit: contain;
    display: block;
}

/* ============================================================
   14. LANGUAGE SWITCHER & LOGIN BUTTON
   ============================================================ */
#ti-lang-switcher {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    overflow: hidden;
    font-size: 10px !important;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}
#ti-lang-switcher a,
#ti-lang-switcher li a {
    display: inline-block;
    padding: 4px 8px !important;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}
#ti-lang-switcher a.active-lang {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
}
#ti-lang-switcher a:hover {
    color: #ffffff;
}
#ti-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6rem !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.55) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 20px !important;
    padding: 0.28rem 0.65rem !important;
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
}
#ti-login-btn:hover {
    border-color: var(--gold, #38BDF8) !important;
    color: var(--gold, #38BDF8) !important;
}

/* ============================================================
   15. FOOTER WIDGET AREAS
   ============================================================ */
.footer-widget-title,
.footer-col .widget-title {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: var(--gold, #38BDF8) !important;
    margin-bottom: 1.1rem !important;
    padding-bottom: 0.65rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.footer-nav-list,
.footer-col ul.menu,
.footer-col ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}
.footer-nav-list li,
.footer-col ul.menu li,
.footer-col ul li {
    margin: 0 !important;
    padding: 0 !important;
}
.footer-nav-list li a,
.footer-col ul.menu li a,
.footer-col ul li a {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
    padding: 0.1rem 0 !important;
}
.footer-nav-list li a:hover,
.footer-col ul.menu li a:hover,
.footer-col ul li a:hover {
    color: #fff !important;
}
.footer-col ul.menu ul.sub-menu,
.footer-col ul .sub-menu {
    display: none !important;
}
.footer-contact-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}
.footer-contact-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.78rem !important;
    line-height: 1.6 !important;
}
.footer-contact-list li svg {
    color: var(--gold, #38BDF8) !important;
    flex-shrink: 0 !important;
    margin-top: 3px !important;
}
.footer-contact-list li a {
    color: rgba(255,255,255,0.55) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
.footer-contact-list li a:hover {
    color: #fff !important;
}
.footer-col .textwidget,
.footer-col .widget_text .textwidget {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.8rem !important;
    line-height: 1.7 !important;
}
.footer-col .textwidget a {
    color: rgba(255,255,255,0.65) !important;
    transition: color 0.2s !important;
}
.footer-col .textwidget a:hover {
    color: var(--gold, #38BDF8) !important;
}
.footer-col .widget_recent_entries ul {
    gap: 0.5rem !important;
}
.footer-col .widget_recent_entries ul li a {
    font-size: 0.78rem !important;
}

/* ============================================================
   16. ARCHIVE SEARCH INPUT & SCROLLBAR
   ============================================================ */
.search-input:focus {
    border-color: var(--gold, #38BDF8) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}