/* =========================================================
   site-theme.css
   Align all subpages with the landing-page (Mandiri-like) look
   ========================================================= */

:root {
    --primary: #004B87;
    --primary-dark: #003A6B;
    --primary-light: #0066AE;
    --secondary: #0077B6;
    --accent: #00A8E8;
    --text-primary: #12355b;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #e8f4fc;
    --border-color: #e6ebf2;
    --card-radius: 8px;
    --card-border: 1px solid #e6ebf2;
    --card-shadow: none;
    --card-shadow-hover: 0 8px 24px rgba(0, 46, 87, 0.08);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-pill: 2px;
}

/* ---------- Heroes / page headers ---------- */
.product-hero,
.page-hero,
.page-header,
.ppid-hero,
.audit-hero,
.publication-hero,
.profile-hero {
    background: linear-gradient(135deg, #003A6B 0%, #004B87 55%, #0066AE 100%) !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

.product-hero::before,
.product-hero::after,
.page-hero::before,
.page-hero::after,
.page-header::before,
.page-header::after,
.ppid-hero::before,
.ppid-hero::after,
.audit-hero::before,
.audit-hero::after,
.publication-hero::before,
.publication-hero::after,
.profile-hero::before,
.profile-hero::after {
    display: none !important;
}

.product-hero h1,
.page-hero h1,
.page-header h1,
.ppid-hero h1,
.audit-hero h1,
.publication-hero h1,
.profile-hero h1 {
    color: #fff !important;
    letter-spacing: -0.02em;
    font-weight: 700 !important;
}

.product-hero p,
.page-hero p,
.page-header p,
.ppid-hero p,
.audit-hero p,
.publication-hero p,
.profile-hero p,
.product-hero .subtitle,
.ppid-hero .subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.72) !important;
}

.breadcrumb a:hover {
    color: #fff !important;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ---------- Shared cards ---------- */
.product-card,
.promo-card,
.info-card,
.branch-card,
.feature-card,
.product-type-card,
.rate-card,
.profile-card,
.ppid-card,
.sidebar-card,
.audit-card,
.doc-box,
.publication-card,
.pengurus-card,
.award-card,
.step-card,
.prize-card,
.visi-card,
.misi-card,
.legal-box,
.info-box,
.map-container,
.map-link-card,
.branch-detail-card,
.promo-feature-card,
.form-card,
.simulasi-card,
.result-card,
.method-card,
.filter-tab,
.internal-links-box,
.rates-info-card {
    background: #fff !important;
    border: var(--card-border) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow) !important;
}

.product-card:hover,
.promo-card:hover,
.feature-card:hover,
.product-type-card:hover,
.publication-card:hover,
.branch-card:hover,
.ppid-card:hover,
.pengurus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover) !important;
    border-color: #c5d3e4 !important;
}

/* ---------- Publication cards ---------- */
.publication-card-header {
    background: #fff !important;
    color: #12355b !important;
    border-top: 3px solid var(--primary) !important;
    border-bottom: 1px solid #eef2f7 !important;
    padding: 16px 18px !important;
}

.publication-card-header::before {
    display: none !important;
}

.publication-card-period {
    color: #12355b !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.publication-card-year {
    color: var(--primary) !important;
    background: transparent !important;
    border: 1px solid #d7e0ea !important;
    border-radius: 2px !important;
    padding: 4px 8px !important;
}

.publication-card-icon {
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    background: #f0f5fa !important;
    border: 1px solid #e6ebf2 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.publication-card-icon svg {
    width: 16px !important;
    height: 16px !important;
    color: var(--primary) !important;
}

.publication-card-title {
    color: #12355b !important;
}

.publication-card-meta span {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: var(--text-muted) !important;
}

.btn-view {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}

.btn-view:hover {
    background: var(--primary-dark) !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-download {
    background: #fff !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
    border-radius: 2px !important;
}

.btn-download:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* ---------- Rate cards (deposito) ---------- */
.rates-section {
    background: #f5f7fa !important;
}

.rate-card {
    background: #fff !important;
    border: 1px solid #e6ebf2 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    overflow: hidden !important;
    text-align: left !important;
}

.rate-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 46, 87, 0.08) !important;
}

.rate-card.featured {
    background: #fff !important;
    color: #12355b !important;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 24px rgba(0, 46, 87, 0.08) !important;
}

.rate-header {
    background: #fff !important;
    color: #12355b !important;
    padding: 18px 22px 10px !important;
    border-bottom: none !important;
    border-top: 3px solid var(--primary) !important;
}

.rate-card.featured .rate-header {
    background: #fff !important;
}

.rate-header h3,
.rate-header {
    color: #12355b !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.rate-body {
    padding: 8px 22px 24px !important;
}

.rate-value {
    color: var(--primary) !important;
    font-size: 40px !important;
    font-weight: 800 !important;
}

.rate-card.featured .rate-value {
    color: var(--primary) !important;
}

.rate-body h4,
.rate-card.featured .rate-body h4 {
    color: var(--text-secondary) !important;
}

.rate-body p,
.rate-card.featured .rate-body p {
    color: var(--text-muted) !important;
}

/* ---------- Product type cards (kredit) ---------- */
.product-type-header,
.product-type-card > .product-type-header,
.product-type-card > div[style*="linear-gradient"] {
    background: #fff !important;
    color: #12355b !important;
    padding: 22px 24px 16px !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-top: 3px solid var(--primary) !important;
}

.product-type-header h3,
.product-type-header p,
.product-type-card > div[style*="linear-gradient"] h3,
.product-type-card > div[style*="linear-gradient"] p {
    color: #12355b !important;
    opacity: 1 !important;
}

.product-type-header p,
.product-type-card > div[style*="linear-gradient"] p {
    color: var(--text-secondary) !important;
}

.product-type-highlight {
    background: #f7fafc !important;
    border: 1px solid #eef2f7 !important;
}

.product-type-highlight-text h5 {
    color: #12355b !important;
}

.product-type-highlight-icon,
.promo-feature-icon,
.promo-kredit-highlight-icon,
.benefits-highlight-icon,
.benefit-feature-icon {
    display: none !important;
}

/* ---------- Benefits / promo sections ---------- */
.benefits-section,
.promo-kredit-section {
    background: #f5f7fa !important;
    color: #12355b !important;
}

.benefits-text h2,
.promo-kredit-text h2,
.benefits-section h2,
.promo-kredit-section h2,
.benefits-section h3,
.promo-kredit-section h3,
.benefits-section h4,
.promo-kredit-section h4 {
    color: #12355b !important;
}

.benefits-text p,
.promo-kredit-text p,
.benefits-section p,
.promo-kredit-section p {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

.benefits-highlight,
.promo-kredit-highlight,
.benefit-feature-card,
.promo-feature-card {
    background: #fff !important;
    border: 1px solid #e6ebf2 !important;
    border-radius: 8px !important;
    color: #12355b !important;
    box-shadow: none !important;
}

.benefits-highlight-text h4,
.promo-kredit-highlight-text h4,
.benefit-feature-card h4,
.promo-feature-card h4 {
    color: #12355b !important;
}

.benefits-highlight-text p,
.promo-kredit-highlight-text p,
.benefit-feature-card p,
.promo-feature-card p {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* ---------- Map header (lokasi) ---------- */
.map-container {
    background: #fff !important;
    border: 1px solid #e6ebf2 !important;
    box-shadow: none !important;
}

.map-header {
    background: #fff !important;
    color: #12355b !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-top: 3px solid var(--primary) !important;
}

.map-header h2,
.map-header {
    color: #12355b !important;
}

.map-header a {
    color: var(--primary) !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

.map-header a:hover {
    color: var(--primary-dark) !important;
}

/* Keep white text only on true brand heroes / CTA */
.product-hero h1,
.product-hero h2,
.product-hero h3,
.product-hero h4,
.page-hero h1,
.page-hero h2,
.page-header h1,
.page-header h2,
.ppid-hero h1,
.audit-hero h1,
.publication-hero h1,
.profile-hero h1,
.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section p {
    color: #fff !important;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline,
.btn-hero-primary,
.btn-hero-secondary,
.btn-cta,
.btn-cta-outline,
.btn-submit,
.btn-calculate,
.btn-slide,
.filter-tab.active,
.tab-btn.active {
    border-radius: 2px !important;
}

.btn-primary,
.btn-hero-primary,
.btn-cta,
.btn-submit,
.btn-calculate {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-primary:hover,
.btn-hero-primary:hover,
.btn-cta:hover,
.btn-submit:hover,
.btn-calculate:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-outline,
.btn-hero-secondary,
.btn-cta-outline {
    background: transparent !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
}

.btn-outline:hover,
.btn-hero-secondary:hover,
.btn-cta-outline:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.product-hero .btn-outline,
.product-hero .btn-hero-secondary,
.page-hero .btn-outline,
.page-header .btn-outline {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.product-hero .btn-outline:hover,
.product-hero .btn-hero-secondary:hover,
.page-hero .btn-outline:hover,
.page-header .btn-outline:hover {
    background: #fff !important;
    color: var(--primary) !important;
}

/* ---------- Tabs / pills / badges ---------- */
.tab-btn,
.filter-tab,
.product-feature,
.promo-badge,
.news-category,
.branch-type,
.badge:not(.footer-trust-mark) {
    border-radius: 2px !important;
}

.tab-btn,
.filter-tab {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: var(--text-secondary) !important;
    font-weight: 600;
}

.tab-btn.active,
.filter-tab.active {
    background: transparent !important;
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
}

.product-feature,
.promo-badge,
.news-category,
.branch-type {
    background: transparent !important;
    color: var(--primary) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ---------- Forms ---------- */
input,
select,
textarea,
.form-control,
.form-input,
.form-select {
    border-radius: 2px !important;
    border-color: #d7deea !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-input:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.12) !important;
    outline: none !important;
}

/* ---------- Section surfaces ---------- */
.products-section,
.info-section,
.about-section,
.profile-content-section,
.product-info-section,
.product-types-section,
.rates-section,
.branch-detail-section,
.steps-section,
.rates-info-section {
    background: #f5f7fa !important;
}

.section-header h2,
.about-content h2,
.rates-info-text h2,
.product-info-section h2 {
    color: #12355b !important;
    letter-spacing: -0.01em;
}

/* ---------- Feature / step icons ---------- */
.feature-icon,
.step-number,
.method-icon,
.award-icon,
.publication-card-icon,
.branch-icon,
.product-card-icon {
    border-radius: 50% !important;
    background: #f0f5fa !important;
    color: var(--primary) !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.feature-card {
    padding: 28px 24px !important;
    text-align: left !important;
}

.feature-card h3 {
    margin: 0 0 10px !important;
    font-size: 17px !important;
    color: #12355b !important;
}

.feature-card p {
    margin: 0 !important;
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
}

.feature-icon {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.about-features .feature-icon,
.feature-item .feature-icon {
    width: 28px !important;
    height: 28px !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
}

.features-grid,
.product-types-grid,
.steps-grid {
    gap: 20px !important;
}

/* Numbered fallback when emoji removed leaving empty icon */
.feature-icon:empty::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* ---------- Tables ---------- */
.rates-table,
.lps-rates-table,
table.data-table {
    border-collapse: collapse;
}

.rates-table th,
.lps-rates-table thead th,
table.data-table th {
    background: transparent !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px !important;
    border-bottom: 1px solid #eef2f7 !important;
}

.rates-table td,
.lps-rates-table tbody td,
table.data-table td {
    border-bottom: 1px solid #eef2f7 !important;
}

.rate-highlight,
.rate-value.highlight {
    background: transparent !important;
    color: var(--primary) !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ---------- Notes / callouts ---------- */
.lps-note,
.info-note,
.alert-info,
.lottery-highlight {
    background: #f7fafc !important;
    border: 1px solid #eef2f7 !important;
    border-radius: var(--card-radius) !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
}

/* ---------- Neutralize page-specific loud gradients ---------- */
[style*="linear-gradient(135deg, #1a5f7a"],
[style*="linear-gradient(135deg, #4a1c40"],
[style*="linear-gradient(135deg, #5b21b6"],
[style*="linear-gradient(135deg, #7c3aed"],
[style*="linear-gradient(135deg, #159895"],
[style*="linear-gradient(135deg, #0c4f8f"] {
    background: linear-gradient(135deg, #003A6B 0%, #004B87 55%, #0066AE 100%) !important;
}

/* Card headers with inline gradients should stay clean white */
.product-type-header,
.product-type-card > .product-type-header,
.product-type-card > div[style*="linear-gradient"] {
    background: #fff !important;
    color: #12355b !important;
}

/* ---------- Typography polish ---------- */
body {
    color: var(--text-primary);
}

h1, h2, h3, h4 {
    color: #12355b;
}

.product-hero h1,
.product-hero h2,
.product-hero h3,
.product-hero h4,
.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-header h1,
.page-header h2,
.ppid-hero h1,
.audit-hero h1,
.publication-hero h1,
.profile-hero h1,
.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section p,
.product-hero p,
.page-hero p,
.page-header p {
    color: #fff !important;
}

.cta-section {
    background: var(--primary) !important;
    color: #fff !important;
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 768px) {
    .product-hero,
    .page-hero,
    .page-header,
    .ppid-hero,
    .audit-hero,
    .publication-hero,
    .profile-hero {
        padding-top: 96px !important;
    }
}

/* ---------- SEO hub & keyword landing ---------- */
.seo-hub-section {
    background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
}

.seo-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.seo-hub-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 28px 24px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.seo-hub-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.seo-hub-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin: 0 0 12px;
}

.seo-hub-card h3 a {
    color: inherit;
    text-decoration: none;
}

.seo-hub-card h3 a:hover {
    text-decoration: underline;
}

.seo-hub-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 16px;
}

.seo-hub-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.seo-hub-link:hover {
    text-decoration: underline;
}

.seo-keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding-top: 8px;
}

.seo-keyword-cloud span {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.seo-article-section {
    padding: 64px 0 80px;
    background: #fff;
}

.seo-article {
    max-width: 820px;
}

.seo-article h2 {
    color: var(--primary-dark);
    font-size: 1.45rem;
    margin: 36px 0 14px;
}

.seo-article h2:first-child {
    margin-top: 0;
}

.seo-article h3 {
    color: var(--primary);
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.seo-article h3 a {
    color: inherit;
    text-decoration: none;
}

.seo-article p,
.seo-article li {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1rem;
}

.seo-article a {
    color: var(--secondary);
}

.seo-checklist {
    margin: 12px 0 24px;
    padding-left: 1.25rem;
}

.seo-checklist li {
    margin-bottom: 8px;
}

.seo-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 28px;
}

.seo-info-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 20px;
}

.seo-related {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.seo-related ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.seo-related a {
    font-weight: 600;
}

.seo-article .btn-primary,
.seo-article .btn-outline {
    display: inline-block;
    margin: 8px 8px 8px 0;
}

@media (max-width: 900px) {
    .seo-hub-grid,
    .seo-card-grid {
        grid-template-columns: 1fr;
    }
}

.seo-faq-visible {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px 28px;
    margin: 16px 0 28px;
}

.seo-faq-visible h3 {
    margin-top: 18px;
    font-size: 1.05rem;
}

.seo-faq-visible h3:first-child {
    margin-top: 0;
}

.seo-faq-visible p {
    margin: 6px 0 0;
}

/* ---------- Performance helpers ---------- */
img {
    max-width: 100%;
    height: auto;
}

.slide-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: opacity;
}

.promo-section,
.branch-section,
.faq-section,
.seo-hub-section,
.rates-info-section,
.info-section,
.about-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Open Sans'), local('OpenSans');
}

/* Responsive hero backgrounds (mobile-first LCP) */
.slide-bg-lcp,
.slide-bg.slide-bg-responsive {
    background-image: var(--hero-sm);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (min-width: 768px) {
    .slide-bg-lcp,
    .slide-bg.slide-bg-responsive {
        background-image: var(--hero-md);
    }
}
@media (min-width: 1200px) {
    .slide-bg-lcp,
    .slide-bg.slide-bg-responsive {
        background-image: var(--hero-lg);
    }
}

/* Skip link (keyboard accessibility) */
.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 10000;
    padding: 10px 16px;
    background: #003A6B;
    color: #fff !important;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 12px;
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}
