﻿
/* ================================================
   BPJS PAGE - DASHBOARD REDESIGN
   Consistent with redesign_core styles
   ================================================ */

html {
    scroll-behavior: smooth;
}

/* Match team.php background (index_redesign) */
.dashboard-wrapper,
.main-content-dashboard {
    background: linear-gradient(180deg, #eaf6ff 0%, #dff1ff 45%, #f4fbff 100%);
}

/* Neutralize legacy green accents on BPJS page */
.dashboard-wrapper {
    --green: #111111;
    --primary-green: #111111;
    --dark-green: #1e3a5f;
}

/* Header */
.dashboard-header.dashboard-header-bpjs {
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.28) 0%, rgba(15, 39, 68, 0.20) 55%, rgba(10, 22, 40, 0.34) 100%),
        url("../images/Jembatan Barelang.png"),
        linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, var(--blue-primary) 100%);
    background-size: cover, 106%, cover;
    background-position: center, 26% 54%, center;
    background-repeat: no-repeat;
    padding: 72px 50px 96px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.dashboard-header.dashboard-header-bpjs::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(180deg, rgba(10, 22, 40, 0.18) 0%, rgba(10, 22, 40, 0.30) 100%),
        linear-gradient(110deg, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0.46) 50%, rgba(255, 255, 255, 0) 67%);
    background-size: auto, auto, 220% 100%;
    background-position: center, center, -160% 0;
    opacity: 1;
    pointer-events: none;
    animation: barelangReveal 4.4s ease-in-out infinite alternate, barelangShimmer 6.2s linear infinite;
}

.dashboard-header.dashboard-header-bpjs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.dashboard-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.header-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 2px 10px rgba(10, 22, 40, 0.55);
}

.dashboard-header-bpjs h1 {
    color: white;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.93);
    font-size: 14px;
    max-width: 560px;
    line-height: 1.6;
    text-shadow: 0 3px 14px rgba(10, 22, 40, 0.5);
    margin: 0;
}

.header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    border: none;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-header-bpjs .btn-primary,
.dashboard-header-bpjs .btn-secondary {
    background: rgba(10, 22, 40, 0.38);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    backdrop-filter: blur(2px);
}

.dashboard-header-bpjs .btn-primary:hover,
.dashboard-header-bpjs .btn-secondary:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* Body */
.dashboard-body {
    padding: 0 50px 50px;
    flex: 1;
}

/* Section shell */
.section-container {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    min-width: 0;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    isolation: isolate;
}

.section-container.section-elevated {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.section-container:hover {
    transform: translateY(-2px);
    border-color: #9fcbff;
    box-shadow: 0 16px 34px rgba(30, 64, 175, 0.14);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
    border-bottom: 2px solid #b9dcff;
    padding-bottom: 10px;
}

.section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--navy);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Intro */
.bpjs-intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.bpjs-intro-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    isolation: isolate;
}

.bpjs-intro-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--blue-primary);
    box-shadow: 0 16px 30px rgba(30, 64, 175, 0.15);
}

.bpjs-intro-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 13px;
}

.bpjs-intro-card strong {
    color: var(--blue-primary);
}

.bpjs-highlight-list {
    display: grid;
    gap: 12px;
}

.bpjs-highlight {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: var(--white-blue);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.bpjs-highlight i {
    color: var(--blue-primary);
    font-size: 14px;
}

.bpjs-alert-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0.06) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    isolation: isolate;
}

.bpjs-alert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.55);
}

.alert-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gold);
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.alert-content h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.alert-content p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 13px;
}

/* Programs */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.program-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 20px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    isolation: isolate;
}

.program-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 32px rgba(30, 64, 175, 0.16);
    border-color: var(--blue-primary);
}

.program-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--navy);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.program-item h3 {
    color: var(--navy);
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 800;
}

.program-item p {
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    isolation: isolate;
}

.faq-item:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--blue-primary);
    box-shadow: 0 15px 30px rgba(30, 64, 175, 0.14);
}

.faq-item h3 {
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 12px;
}

.faq-item p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 13px;
}

.faq-item ul {
    color: var(--gray-600);
    padding-left: 18px;
    margin: 0 0 10px;
}

.faq-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-item strong {
    color: var(--navy);
}

.faq-note {
    background: var(--white-blue);
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed var(--blue-light);
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 10px;
}

.faskes-link {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 700;
}

.faskes-link:hover {
    text-decoration: underline;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gallery-item {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.42), transparent 34%),
        linear-gradient(160deg, #0f2747 0%, #163b67 58%, #1f5ea8 100%);
    border-radius: 18px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    border: 1px solid rgba(147, 197, 253, 0.28);
    box-shadow: 0 18px 34px rgba(15, 39, 71, 0.16);
    min-height: 280px;
    isolation: isolate;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    color: var(--white);
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 34px rgba(30, 64, 175, 0.16);
    border-color: rgba(255, 255, 255, 0.38);
}

.gallery-item::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -48px;
    right: -40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: auto auto 18px 18px;
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    transform: rotate(18deg);
    pointer-events: none;
    z-index: 0;
}

.gallery-item > * {
    position: relative;
    z-index: 1;
}

.gallery-item-program {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.24), transparent 34%),
        linear-gradient(160deg, #0f2747 0%, #163b67 58%, #1f5ea8 100%);
}

.gallery-item-register {
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.24), transparent 36%),
        linear-gradient(160deg, #123052 0%, #185a90 56%, #2b7ec1 100%);
}

.gallery-item-benefit {
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.2), transparent 35%),
        linear-gradient(160deg, #102542 0%, #144d67 54%, #1b7c8e 100%);
}

.gallery-icon {
    width: 84px;
    height: 84px;
    border-radius: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--gold);
    font-size: 32px;
    backdrop-filter: blur(10px);
}

.gallery-item h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    color: var(--white);
    max-width: 220px;
    text-align: center;
    font-weight: 700;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1400;
    padding: 24px;
    background-color: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(6px);
}

.modal-close {
    position: fixed;
    top: 16px;
    right: 18px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
    z-index: 1401;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
}

.modal-close:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.2);
}

.modal-content {
    margin: 60px auto 0;
    display: block;
    width: 90%;
    max-width: 1200px;
    height: calc(100vh - 180px);
    position: relative;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    background: #000;
}

.modal-caption {
    text-align: center;
    color: white;
    padding: 16px;
    font-size: 13px;
    margin-top: 6px;
}

/* Form Section */
.form-notice {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-notice i {
    color: var(--red);
    font-size: 18px;
    margin-top: 2px;
}

.form-notice p {
    color: var(--gray-600);
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.form-notice a {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 700;
}

.form-notice a:hover {
    text-decoration: underline;
}

.form-wrapper {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    isolation: isolate;
}

.form-wrapper:hover {
    transform: translateY(-3px);
    border-color: var(--blue-primary);
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.14);
}

.bpjs-iframe {
    width: 100%;
    height: 820px;
    border: none;
    display: block;
}

.form-instructions {
    background: var(--white-blue);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--gray-200);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    isolation: isolate;
}

.form-instructions:hover {
    transform: translateY(-3px);
    border-color: var(--blue-primary);
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.12);
}

.form-instructions h3 {
    color: var(--navy);
    margin-bottom: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 800;
}

.form-instructions ol {
    color: var(--gray-600);
    padding-left: 18px;
    margin: 0;
    font-size: 13px;
}

.form-instructions li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.contact-item {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: relative;
    isolation: isolate;
}

.contact-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 30px rgba(30, 64, 175, 0.14);
    border-color: var(--blue-primary);
}

/* Decorative hover ring like home/news */
.section-container::after,
.bpjs-intro-card::after,
.bpjs-alert-card::after,
.program-item::after,
.faq-item::after,
.form-wrapper::after,
.form-instructions::after,
.contact-item::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(147, 197, 253, 0.22));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: -1;
}

.section-container:hover::after,
.bpjs-intro-card:hover::after,
.bpjs-alert-card:hover::after,
.program-item:hover::after,
.faq-item:hover::after,
.form-wrapper:hover::after,
.form-instructions:hover::after,
.contact-item:hover::after {
    opacity: 1;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--navy);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
}

.contact-item h3 {
    color: var(--navy);
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
}

.contact-item p {
    color: var(--gray-600);
    margin: 0;
    font-size: 13px;
}

.contact-item a {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 700;
}

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

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 32px 50px;
    color: var(--gray-500);
    font-size: 13px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
    background: var(--white);
}

.dashboard-footer p {
    margin: 6px 0;
}

.dashboard-footer a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.dashboard-footer a:hover {
    color: var(--blue-accent);
}

/* Responsive Design */
@media (min-width: 768px) {
    .dashboard-header-bpjs h1 {
        font-size: 38px;
        letter-spacing: 2px;
    }

    .dashboard-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .header-actions {
        flex-direction: row;
        align-items: center;
    }

    .programs-grid,
    .gallery-grid,
    .contact-grid,
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bpjs-intro-grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
}

@media (min-width: 992px) {
    .programs-grid,
    .gallery-grid,
    .contact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .dashboard-header.dashboard-header-bpjs {
        padding: 60px 30px 80px;
        background-size: cover, 106%, cover;
        background-position: center, 28% 56%, center;
    }

    .dashboard-body {
        padding: 0 30px 40px;
    }
}

@media (max-width: 992px) {
    .dashboard-header.dashboard-header-bpjs {
        padding: 44px 16px 64px;
        min-height: 360px;
        background-size: cover, 146%, cover;
        background-position: center, 34% 62%, center;
    }

    .dashboard-body {
        padding: 0 20px 36px;
    }

    .section-container.section-elevated {
        margin-top: -24px;
    }
}

@media (max-width: 768px) {
    .header-actions {
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .section-container {
        padding: 18px;
        border-radius: 18px;
    }

    .gallery-item {
        min-height: 240px;
        padding: 20px;
    }

    .bpjs-iframe {
        height: 640px;
    }

    .modal-content {
        width: 95%;
        height: calc(100vh - 160px);
    }
}

@media (max-width: 480px) {
    .dashboard-header.dashboard-header-bpjs {
        padding: 44px 16px 64px;
        min-height: 360px;
        background-size: cover, 146%, cover;
        background-position: center, 34% 62%, center;
    }

    .dashboard-body {
        padding: 0 14px 30px;
    }

    .section-container {
        padding: 16px;
    }

    .bpjs-iframe {
        height: 560px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .modal-content {
        height: calc(100vh - 170px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-header.dashboard-header-bpjs {
        animation: none !important;
        background-size: cover, 106%, cover;
        background-position: center, 26% 54%, center;
    }

    .dashboard-header.dashboard-header-bpjs::before {
        animation: none !important;
        opacity: 0.1;
    }

    .section-container,
    .bpjs-intro-card,
    .bpjs-alert-card,
    .program-item,
    .faq-item,
    .gallery-item,
    .form-wrapper,
    .form-instructions,
    .contact-item {
        transition: none !important;
        transform: none !important;
    }
}

@keyframes barelangReveal {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.10;
    }
}

@keyframes barelangShimmer {
    0% {
        background-position: center, center, -130% 0;
    }

    100% {
        background-position: center, center, 145% 0;
    }
}
