:root {
    --primary: #1E3A8A;
    --primary-light: #2563EB;
    --primary-soft: #EFF6FF;
    --secondary-soft: #F8FAFC;
    --white: #FFFFFF;
    --dark: #111827;
    --text: #1F2937;
    --muted: #6B7280;
    --border: #E5E7EB;
    --danger: #DC2626;
    --success: #16A34A;
    --shadow: 0 18px 45px rgba(30, 58, 138, 0.10);
    --radius: 22px;
}



.logo-image img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    color: var(--text);
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    min-height: 86px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(37,99,235,.25);
}

.brand-text strong {
    display: block;
    color: var(--dark);
    font-size: 18px;
}

.brand-text span {
    font-size: 13px;
    color: var(--muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
    transition: .25s ease;
}

.nav-menu a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.hero {
    padding: 72px 0 46px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 36px;
    align-items: center;
}

.badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid #DBEAFE;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.hero h1 {
    margin: 18px 0;
    font-size: clamp(34px, 3vw, 60px);
    line-height: 1.23;
    letter-spacing: -1.6px;
    color: var(--dark);
}

.hero p {
    max-width: 690px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--muted);
}

.hero-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.stat-grid {
    display: grid;
    gap: 14px;
}

.stat-card {
    background: linear-gradient(135deg, #FFFFFF, #EFF6FF);
    border: 1px solid #DBEAFE;
    border-radius: 22px;
    padding: 22px;
}

.stat-card strong {
    display: block;
    color: var(--primary);
    font-size: 30px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 600;
}

.search-box {
    margin: 24px 0 34px;
    background: white;
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
    display: grid;
    grid-template-columns: 1fr 180px 130px;
    gap: 12px;
}

.search-box input,
.search-box select,
.form-control {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 15px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.search-box input:focus,
.search-box select:focus,
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.btn {
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 12px 28px rgba(37,99,235,.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-light {
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-danger {
    background: #FEE2E2;
    color: var(--danger);
}

.btn-success {
    background: #DCFCE7;
    color: var(--success);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 22px;
}

.section-title h2 {
    margin: 0;
    color: var(--dark);
    font-size: 30px;
    letter-spacing: -.6px;
}

.section-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.journal-card {
    animation: none;
    position: relative;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    border-radius: var(--radius);
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: none;
    transition: transform 0.4s ease-in-out, box-shadow 0.3s ease-in-out;
}

.journal-card:hover {
    transform: translateY(-7px) rotateX(1deg) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cover-wrap {
    height: 320px;
    background: linear-gradient(135deg, #DBEAFE, #FFFFFF);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    width: 74%;
    height: 82%;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 40px rgba(37,99,235,.25);
}

.cover-placeholder span {
    font-size: 13px;
    opacity: .86;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cover-placeholder strong {
    font-size: 24px;
    line-height: 1.25;
}

.journal-content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pill {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.journal-content h3 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 20px;
    line-height: 1.35;
}

.journal-content p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 18px;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    padding: 52px 0 80px;
}

.detail-cover {
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    border-radius: 20px;
}

.detail-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.detail-content h1 {
    margin: 10px 0 16px;
    color: var(--dark);
    font-size: 38px;
    line-height: 1.15;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.info-row {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.info-row span {
    color: var(--muted);
    font-weight: 700;
}

.info-row strong {
    text-align: right;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 26px 0;
    color: var(--muted);
    text-align: center;
    background: white;
}

/* Admin */
.admin-body {
    background: #F8FAFC;
}

.login-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(430px, 100%);
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 34px;
}

.login-card h1 {
    margin: 10px 0 4px;
    color: var(--dark);
}

.login-card p {
    color: var(--muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dark);
}

.alert {
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert-danger {
    background: #FEE2E2;
    color: var(--danger);
}

.alert-success {
    background: #DCFCE7;
    color: var(--success);
}

.admin-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #0F245E;
    color: white;
    padding: 24px;
}

.sidebar .logo {
    background: white;
    color: var(--primary);
}

.sidebar a {
    display: block;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 14px;
    margin: 7px 0;
    font-weight: 700;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255,255,255,.12);
    color: white;
}

.admin-main {
    padding: 32px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 18px;
}

.admin-top h1 {
    margin: 0;
    color: var(--dark);
}

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(15,23,42,.06);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.thumb {
    width: 62px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--primary-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

@media (max-width: 900px) {
    .hero-grid,
    .detail-layout,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}


.current-issue-box {
    background: linear-gradient(135deg, #EFF6FF, #FFFFFF);
    border: 1px solid #DBEAFE;
    border-radius: 18px;
    padding: 14px 16px;
    margin: 4px 0 18px;
}

.current-issue-box span {
    display: block;
    color: #1E3A8A;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.current-issue-box strong {
    display: block;
    color: #111827;
    font-size: 15px;
    line-height: 1.5;
}

.current-issue-box.large {
    padding: 20px;
    margin: 18px 0 22px;
}

.current-issue-box.large strong {
    font-size: 22px;
}


/* Finishing UI: spacing current issue ke tombol */
.journal-card .current-issue-box {
    margin: 12px 0 24px;
}

.journal-card .card-actions {
    margin-top: 4px;
}

.detail-content .current-issue-box {
    margin-bottom: 24px;
}


.search-box-advanced {
    grid-template-columns: 1fr 170px 170px 120px;
}

@media (max-width: 900px) {
    .search-box-advanced {
        grid-template-columns: 1fr;
    }
}


/* ===== FIX LAYOUT FILTER & DASHBOARD ===== */
.search-box-advanced {
    grid-template-columns: minmax(260px, 1fr) 170px 190px 120px !important;
    align-items: center;
}

.search-box-advanced .btn {
    width: 100%;
}

@media (max-width: 900px) {
    .search-box-advanced {
        grid-template-columns: 1fr !important;
    }
}

.table-wrap table {
    min-width: 980px;
}

td .badge-list,
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-small {
    display: inline-flex;
    align-items: center;
    background: #EFF6FF;
    color: #1E3A8A;
    border: 1px solid #DBEAFE;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.form-control[multiple] {
    min-height: 128px;
    padding: 10px;
}

.form-help {
    display: block;
    margin-top: 6px;
    color: #6B7280;
    font-size: 12px;
    line-height: 1.5;
}

.journal-card .meta {
    gap: 7px;
}

.journal-card .current-issue-box {
    margin: 12px 0 26px !important;
}


/* ===== FINAL UI FIX ===== */
.meta .badge-list {
    display: inline-flex;
}

.meta .badge-small,
.meta .pill {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.akreditasi-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 10px;
}

.akreditasi-row select {
    width: 100%;
}

.akreditasi-remove {
    min-width: 42px;
    padding: 10px 12px;
}

.current-issue-link {
    color: #1E3A8A;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.current-issue-link:hover {
    color: #2563EB;
}

.dashboard-current-issue {
    max-width: 230px;
    line-height: 1.5;
}


/* ===== FIX AKREDITASI DROPDOWN ROW ===== */
.akreditasi-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.akreditasi-row select.form-control {
    width: 100% !important;
    min-height: 46px !important;
}

.akreditasi-remove {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
}


/* ===== AKREDITASI ROW FINAL FIX V3 ===== */
.akreditasi-field {
    width: 100%;
}

.akreditasi-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.akreditasi-row .form-control {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
}

.akreditasi-row .akreditasi-remove {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 !important;
}


/* ===== AKREDITASI FINAL FIX V4 ===== */
.form-group.akreditasi-field {
    width: 100% !important;
}

#akreditasi-container {
    width: 100% !important;
}

#akreditasi-container .akreditasi-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: stretch !important;
    width: 100% !important;
    gap: 10px !important;
    margin: 0 0 10px 0 !important;
}

#akreditasi-container .akreditasi-row select.form-control {
    display: block !important;
    flex: 1 1 auto !important;
    width: calc(100% - 56px) !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
}

#akreditasi-container .akreditasi-row button.akreditasi-remove {
    display: inline-flex !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    max-width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    border-radius: 14px !important;
    line-height: 1 !important;
}

#add-akreditasi {
    margin-top: 8px !important;
}


/* ===== POLISHED MULTI SELECT AKREDITASI ===== */
.akreditasi-field {
    grid-column: 1 / -1;
}

.multi-select-wrap {
    background: linear-gradient(180deg, #FFFFFF, #F8FAFC);
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.06);
}

.akreditasi-multiselect {
    width: 100% !important;
    min-height: 185px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    padding: 8px !important;
    outline: none !important;
    overflow-y: auto !important;
    font-weight: 700;
}

.akreditasi-multiselect:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10) !important;
}

.akreditasi-multiselect option {
    padding: 10px 12px;
    border-radius: 10px;
    margin: 3px 0;
    color: #111827;
}

.akreditasi-multiselect option:checked {
    background: linear-gradient(135deg, #1E3A8A, #2563EB) !important;
    color: #FFFFFF !important;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: #6B7280;
    font-size: 12px;
    line-height: 1.55;
}


/* ===== PREMIUM HOMEPAGE ANIMATION UI ===== */
body {
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, .10), transparent 28%),
        radial-gradient(circle at 90% 8%, rgba(30, 58, 138, .10), transparent 28%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 45%, #F1F5F9 100%) !important;
}

.navbar {
    box-shadow: 0 14px 35px rgba(15, 23, 42, .04);
}

.logo {
    position: relative;
    overflow: hidden;
    display: flex;              /* penting */
    align-items: center;
    justify-content: center;
}

/* logo image */
.logo img {
    width: 70%;                 /* sesuaikan agar tidak kepotong */
    height: 70%;
    object-fit: contain;
    z-index: 2;
}

.logo::after {
    content: "";
    z-index: 1;
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
    transform: translateX(-120%) rotate(25deg);
    animation: logoShine 4s ease-in-out infinite;
}

.hero {
    position: relative;
    padding: 88px 0 58px !important;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -140px;
    background: radial-gradient(circle, rgba(37,99,235,.16), transparent 68%);
    pointer-events: none;
    animation: floatGlow 7s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    left: -150px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(30,58,138,.12), transparent 68%);
    pointer-events: none;
    animation: floatGlow 8s ease-in-out infinite alternate-reverse;
}

.hero-grid {
    position: relative;
    z-index: 2;
}

.badge {
    animation: fadeUp .7s ease both;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .10);
}

.hero h1 {
    animation: fadeUp .8s ease .08s both;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 48%, #2563EB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.hero p {
    animation: fadeUp .8s ease .16s both;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    animation: fadeScale .85s ease .18s both;
    border: 1px solid rgba(219, 234, 254, .9) !important;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(37,99,235,.08), transparent);
    transform: translateX(-100%);
    animation: panelShine 5s ease-in-out infinite;
}

.stat-card {
    transition: .28s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, .12);
}

.search-box {
    animation: fadeUp .75s ease .25s both;
    border: 1px solid rgba(219,234,254,.95) !important;
    box-shadow: 0 18px 45px rgba(30, 58, 138, .09) !important;
}

.search-box input,
.search-box select {
    transition: .25s ease;
}

.search-box input:hover,
.search-box select:hover {
    border-color: #BFDBFE;
    background: #FBFDFF;
}

.section-title {
    animation: fadeUp .75s ease .32s both;
}

.catalog-grid {
    perspective: 1000px;
}

.journal-card {
    animation: none;
    position: relative;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: none;
}

.catalog-grid .journal-card:nth-child(1) { animation-delay: .06s; }
.catalog-grid .journal-card:nth-child(2) { animation-delay: .12s; }
.catalog-grid .journal-card:nth-child(3) { animation-delay: .18s; }
.catalog-grid .journal-card:nth-child(4) { animation-delay: .24s; }
.catalog-grid .journal-card:nth-child(5) { animation-delay: .30s; }
.catalog-grid .journal-card:nth-child(6) { animation-delay: .36s; }

.journal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(37,99,235,.16), transparent 34%, rgba(30,58,138,.08));
    opacity: 0;
    transition: .32s ease;
    pointer-events: none;
    z-index: 1;
}

.journal-card:hover::before {
    opacity: 1;
}

.journal-card:hover {
    transform: translateY(-10px) rotateX(1deg) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cover-wrap {
    position: relative;
}

.cover-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.32), transparent 70%);
    transform: translateX(-120%);
    transition: .65s ease;
}

.journal-card:hover .cover-wrap::after {
    transform: translateX(120%);
}

.cover-wrap img {
    transition: transform .45s ease, filter .45s ease;
}

.journal-card:hover .cover-wrap img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.03);
}

.cover-placeholder {
    transition: transform .35s ease;
}

.journal-card:hover .cover-placeholder {
    transform: scale(1.035);
}

.journal-content {
    position: relative;
    z-index: 2;
}

.pill {
    transition: .25s ease;
}

.journal-card:hover .pill {
    background: #DBEAFE;
}

.current-issue-box {
    position: relative;
    overflow: hidden;
}

.current-issue-box::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -40px;
    top: -35px;
    background: radial-gradient(circle, rgba(37,99,235,.18), transparent 65%);
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.32), transparent);
    transform: translateX(-120%);
    transition: .55s ease;
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn-primary:hover,
.btn-light:hover {
    transform: translateY(-3px);
}

.btn-light {
    border: 1px solid #DBEAFE;
}

.footer {
    background: rgba(255,255,255,.82) ;
    backdrop-filter: blur(12px);
}

/* Premium responsive refinements */
@media (max-width: 620px) {
    .hero {
        padding: 54px 0 34px !important;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .journal-card:hover {
        transform: translateY(-6px) !important;
    }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoShine {
    0%, 55% {
        transform: translateX(-120%) rotate(25deg);
    }
    75%, 100% {
        transform: translateX(120%) rotate(25deg);
    }
}

@keyframes panelShine {
    0%, 60% {
        transform: translateX(-100%);
    }
    82%, 100% {
        transform: translateX(100%);
    }
}

@keyframes floatGlow {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(-24px, 18px, 0) scale(1.08);
    }
}


/* ===== WAVE OPENING + SCROLL REVEAL ===== */
.hero .badge,
.hero h1,
.hero p,
.hero-panel,
.search-box,
.section-title {
    animation: none;
    opacity: 1;
}

.hero .badge { animation-delay: .08s; }
.hero h1 { animation-delay: .18s; }
.hero p { animation-delay: .30s; }
.hero-panel { animation-delay: .42s; }
.search-box { animation-delay: .54s; }
.section-title { animation-delay: .66s; }

.catalog-grid .journal-card {
    opacity: 0;
    transform: translateY(42px) scale(.97);
    animation: none !important;
}

.catalog-grid .journal-card.reveal {
    animation: scrollWaveIn .85s cubic-bezier(.16,1,.3,1) forwards !important;
}

.catalog-grid .journal-card.reveal:nth-child(3n+1) {
    animation-delay: .05s !important;
}

.catalog-grid .journal-card.reveal:nth-child(3n+2) {
    animation-delay: .16s !important;
}

.catalog-grid .journal-card.reveal:nth-child(3n) {
    animation-delay: .27s !important;
}

@keyframes waveRise {
    0% {
        opacity: 0;
        transform: translateY(36px) scale(.97);
        filter: blur(8px);
    }
    55% {
        opacity: 1;
        transform: translateY(-6px) scale(1.01);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes scrollWaveIn {
    0% {
        opacity: 0;
        transform: translateY(46px) scale(.96);
        filter: blur(7px);
    }
    55% {
        opacity: 1;
        transform: translateY(-8px) scale(1.01);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* FORCE FIX LOGO SIZE (FINAL) */
.navbar .logo.logo-image {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    padding: 4px !important;
}

.navbar .logo.logo-image img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
}

/* FIX FLOATING WHATSAPP */
.whatsapp-float {
    position: fixed !important;
    width: 60px !important;
    height: 60px !important;
    right: 20px !important;
    bottom: 20px !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    z-index: 9999 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-shadow: 2px 2px 8px rgba(0,0,0,0.3) !important;
    overflow: hidden !important;
}

.whatsapp-float img,
.whatsapp-icon {
    width: 35px !important;
    height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    object-fit: contain !important;
    display: block !important;
}

/* ===== DETAIL JOURNAL CLEAN FINAL ===== */
.detail-layout {
    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;
    gap: 34px !important;
    align-items: start !important;
    padding: 52px 0 80px !important;
}

.detail-cover {
    background: #FFFFFF !important;
    border: 1px solid #DBEAFE !important;
    border-radius: 28px !important;
    padding: 18px !important;
    box-shadow: 0 20px 48px rgba(30, 58, 138, .10) !important;
    position: sticky !important;
    top: 110px !important;
}

.detail-cover > img {
    width: 100% !important;
    border-radius: 20px !important;
    display: block !important;
}

.sidebar-meta {
    margin-top: 16px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.detail-cover .pill,
.detail-cover .badge-small {
    min-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sidebar-current-issue {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
    border-radius: 18px !important;
    padding: 14px 16px !important;
}

.detail-content {
    background: #FFFFFF !important;
    border: 1px solid #DBEAFE !important;
    border-radius: 28px !important;
    padding: 32px !important;
    box-shadow: 0 20px 48px rgba(30, 58, 138, .10) !important;
}

.detail-content > .btn-light {
    margin-bottom: 18px !important;
}

.detail-content h1 {
    margin: 0 0 20px !important;
    color: #0F172A !important;
    font-size: clamp(30px, 3vw, 42px) !important;
    line-height: 1.18 !important;
    letter-spacing: -1px !important;
}

.info-list {
    display: grid !important;
    gap: 10px !important;
    margin: 0 0 24px !important;
}

.info-row {
    min-height: 52px !important;
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

.info-row span {
    color: #64748B !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.info-row strong {
    color: #0F172A !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-align: right !important;
}

.stat-grid-2x2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 24px 0 30px !important;
}

.stat-box {
    min-height: 112px !important;
    background: linear-gradient(135deg, #FFFFFF, #EFF6FF) !important;
    border: 1px solid #DBEAFE !important;
    border-radius: 22px !important;
    padding: 18px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    transition: .25s ease !important;
}

.stat-box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px rgba(30, 58, 138, .10) !important;
}

.stat-box span {
    display: block !important;
    color: #1E3A8A !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    margin-bottom: 8px !important;
}

.stat-box strong {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    color: #0F172A !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
}

.stat-box small {
    color: #64748B !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.stat-box.accepted {
    background: linear-gradient(135deg, #FFFFFF, #F0FDF4) !important;
    border-color: rgba(22, 163, 74, .30) !important;
}

.stat-box.accepted span,
.stat-box.accepted strong,
.stat-box.accepted small {
    color: #16A34A !important;
}

.stat-box.rejected {
    background: linear-gradient(135deg, #FFFFFF, #FEF2F2) !important;
    border-color: rgba(220, 38, 38, .28) !important;
}

.stat-box.rejected span,
.stat-box.rejected strong,
.stat-box.rejected small {
    color: #DC2626 !important;
}

.detail-content h2 {
    margin: 0 0 12px !important;
    color: #0F172A !important;
    font-size: 24px !important;
    letter-spacing: -.4px !important;
}

.detail-content p {
    background: #F8FAFC !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 18px !important;
    padding: 18px !important;
    line-height: 1.85 !important;
    color: #4B5563 !important;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr !important;
    }

    .detail-cover {
        position: static !important;
    }
}

@media (max-width: 620px) {
    .stat-grid-2x2 {
        grid-template-columns: 1fr !important;
    }
}

/* ===== FOOTER PREMIUM FINAL ===== */
.footer.footer-advanced {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(246, 140, 25, .22), transparent 26%),
        radial-gradient(circle at 88% 0%, rgba(37, 99, 235, .18), transparent 30%),
        linear-gradient(135deg, #07111F 0%, #0F172A 52%, #111827 100%) !important;
    color: rgba(255,255,255,.82) !important;
    margin-top: 80px !important;
    padding: 58px 0 0 !important;
    border-top: 0 !important;
    text-align: left !important;
    backdrop-filter: none !important;
}

.footer.footer-advanced::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent, rgba(255,255,255,.05), transparent);
    pointer-events: none;
}

.footer-premium-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr .9fr 1.35fr;
    gap: 28px;
    align-items: stretch;
    padding-bottom: 42px;
}

.footer-brand-card,
.footer-info-card,
.footer-map-card {
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    backdrop-filter: none;
}

.footer-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #FFFFFF;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    box-shadow: 0 18px 38px rgba(0,0,0,.18);
}

.footer-logo-wrap img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.footer.footer-advanced h3,
.footer.footer-advanced h4 {
    color: #FFFFFF !important;
    margin: 0 0 14px !important;
    letter-spacing: -.2px;
}

.footer.footer-advanced h3 {
    font-size: 24px;
}

.footer.footer-advanced h4 {
    font-size: 17px;
}

.footer.footer-advanced p {
    color: rgba(255,255,255,.72) !important;
    line-height: 1.85;
    margin: 0;
}

.footer-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 12px;
}

.footer-info-card li {
    display: grid;
    gap: 3px;
    color: rgba(255,255,255,.72);
}

.footer-info-card li span {
    font-size: 12px;
    color: rgba(255,255,255,.48);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 800;
}

.footer-info-card li strong {
    color: #FFFFFF;
    font-size: 14px;
}

.footer-subtitle {
    margin-top: 22px !important;
}

.footer-map-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.footer-map-head p {
    font-size: 14px;
}

.footer-map-head a {
    flex: 0 0 auto;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #f68c19, #f9a94a);
    text-decoration: none;
    font-weight: 900;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(246,140,25,.25);
}

.map-embed {
    width: 100%;
    height: 240px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 20px 45px rgba(0,0,0,.22);
    background: rgba(255,255,255,.08);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,.10) !important;
    text-align: center !important;
    padding: 20px 0 !important;
    color: rgba(255,255,255,.58) !important;
    font-size: 14px;
}

@media (max-width: 980px) {
    .footer-premium-grid {
        grid-template-columns: 1fr;
    }

    .map-embed {
        height: 260px;
    }
}

@media (max-width: 620px) {
    .footer.footer-advanced {
        padding-top: 38px !important;
    }

    .footer-brand-card,
    .footer-info-card,
    .footer-map-card {
        padding: 22px;
        border-radius: 24px;
    }

    .footer-map-head {
        flex-direction: column;
    }

    .map-embed {
        height: 220px;
    }
}

/* FORCE 4 JURNAL PER BARIS */
.catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.cover-wrap {
    height: 245px !important;
}

.journal-content {
    padding: 16px !important;
}

.journal-content h3 {
    font-size: 16px !important;
}

.journal-content p {
    font-size: 13px !important;
}

.card-actions .btn {
    padding: 10px 12px !important;
    font-size: 12px !important;
}

/* Mobile */
@media (max-width: 760px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    .catalog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== ADMIN SEARCH PREMIUM FIX ===== */
.panel .admin-search-box {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(520px, 1fr) 120px auto !important;
    gap: 12px !important;
    align-items: center !important;
    margin: 20px 0 28px !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #FFFFFF, #F8FAFC) !important;
    border: 1px solid #DBEAFE !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 32px rgba(30, 58, 138, 0.08) !important;
}

.panel .admin-search-box input[type="text"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    padding: 0 16px !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 14px !important;
    background: #FFFFFF !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    outline: none !important;
}

.panel .admin-search-box input[type="text"]::placeholder {
    color: #9CA3AF !important;
    font-weight: 500 !important;
}

.panel .admin-search-box input[type="text"]:focus {
    border-color: #f68c19 !important;
    box-shadow: 0 0 0 4px rgba(246, 140, 25, 0.14) !important;
}

.panel .admin-search-box .btn {
    height: 50px !important;
    padding: 0 22px !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
    font-size: 14px !important;
}

@media (max-width: 900px) {
    .panel .admin-search-box {
        grid-template-columns: 1fr !important;
    }

    .panel .admin-search-box .btn {
        width: 100% !important;
    }
}

/* ===== FOOTER 4 COLUMN FINAL FIX ===== */
.footer-advanced .footer-premium-grid {
    width: min(1280px, calc(100% - 40px)) !important;
    display: grid !important;
    grid-template-columns: 1.05fr .9fr 1.35fr .85fr !important;
    gap: 28px !important;
    align-items: stretch !important;
}

/* Pastikan semua card sejajar */
.footer-brand-card,
.footer-info-card,
.footer-map-card,
.footer-stat-card {
    min-width: 0 !important;
}

/* Card Statistik */
.footer-stat-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.footer-stat-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(circle at 85% 10%, rgba(246,140,25,.24), transparent 34%),
        radial-gradient(circle at 10% 90%, rgba(37,99,235,.18), transparent 36%);
    pointer-events: none;
}

.footer-stat-card > * {
    position: relative;
    z-index: 2;
}

.footer-stat-card h4 {
    margin: 0 0 10px;
    color: #FFFFFF;
    font-size: 17px;
    }

.footer-stat-card p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    line-height: 1.7;
}

.footer-stat-card a {
    display: inline-flex;
    max-width: 100%;
    padding: 10px;
    margin-top: 50px;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 16px 35px rgba(0,0,0,.20);
}

.footer-stat-card img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsif */
@media (max-width: 1200px) {
    .footer-advanced .footer-premium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .footer-advanced .footer-premium-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   MEDIVARA SCIENTIFIC CENTER - CLEAN BLUE TEAL THEME
   This final block replaces older pink overrides and removes
   conflicting hero-about pseudo overlays.
========================================================= */
:root {
    --primary: #0B3A75;
    --primary-light: #1FB7B6;
    --primary-soft: #EAF8F8;
    --secondary-soft: #F4FBFB;
    --white: #FFFFFF;
    --dark: #08243F;
    --text: #16364F;
    --muted: #5B7080;
    --border: #BFE6E6;
    --shadow: 0 18px 45px rgba(11, 58, 117, .12);
    --radius: 22px;
}

body {
    background: linear-gradient(180deg, #F7FCFC 0%, #FFFFFF 48%, #F1FAFA 100%) !important;
    color: var(--text) !important;
}

.navbar {
    background: rgba(247, 252, 252, .94) !important;
    border-bottom: 1px solid rgba(191, 230, 230, .9) !important;
    box-shadow: 0 12px 30px rgba(11, 58, 117, .06) !important;
}

.logo,
.cover-placeholder,
.btn-primary,
.akreditasi-multiselect option:checked {
    background: linear-gradient(135deg, #0B3A75, #118C9B, #1FB7B6) !important;
    color: #FFFFFF !important;
    box-shadow: 0 14px 32px rgba(31, 183, 182, .24) !important;
}

.navbar .logo.logo-image {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    padding: 6px !important;
    background: #FFFFFF !important;
    border-radius: 18px !important;
    border: 1px solid rgba(191, 230, 230, .95) !important;
    box-shadow: 0 12px 26px rgba(11, 58, 117, .10) !important;
}

.navbar .logo.logo-image img {
    width: 66px !important;
    height: 66px !important;
    max-width: 66px !important;
    max-height: 66px !important;
    object-fit: contain !important;
}

.logo::after {
    display: none !important;
}

.brand-text strong {
    color: #08243F !important;
    font-size: 18px !important;
}

.brand-text span {
    color: #5B7080 !important;
}

.brand-text span::after {
    content: none !important;
}

.nav-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.nav-menu a {
    color: #5B7080 !important;
    font-size: 14px;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #0B3A75 !important;
    background: #EAF8F8 !important;
}

/* About hero */
.hero-about {
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh !important;
    padding: 96px 0 110px !important;
    display: flex !important;
    align-items: flex-start !important;
    background:
        linear-gradient(
            90deg,
            rgba(247, 252, 252, .94) 0%,
            rgba(247, 252, 252, .86) 28%,
            rgba(247, 252, 252, .48) 54%,
            rgba(247, 252, 252, .14) 78%,
            rgba(247, 252, 252, 0) 100%
        ),
        url('../img/about-midwife-bg.png') center bottom / cover no-repeat !important;
    background-color: #EAF8F8 !important;
}

/* Remove all old conflicting overlays */
.hero-about::before,
.hero-about::after {
    content: none !important;
    display: none !important;
    background: none !important;
    animation: none !important;
}

.hero-about > .container,
.hero-about .container {
    width: min(1180px, calc(100% - 40px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-about-grid {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    min-height: auto !important;
    padding-top: 26px !important;
    align-content: start !important;
}

.hero-copy {
    max-width: 760px !important;
    margin-left: 0 !important;
    padding: 0 !important;
    transform: none !important;
    position: relative !important;
    z-index: 3 !important;
}

.badge,
.section-kicker,
.pill,
.btn-light,
.badge-small {
    background: #EAF8F8 !important;
    color: #0B3A75 !important;
    border: 1px solid #BFE6E6 !important;
}

.hero-about h1,
.hero h1 {
    color: #08243F !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.hero-about h1 {
    font-size: clamp(2.55rem, 5.3vw, 4.55rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 18px !important;
}

.hero-about p {
    max-width: 760px !important;
    color: #29485D !important;
    font-size: 1.2rem !important;
    line-height: 1.78 !important;
}

.hero-actions {
    margin-top: 22px !important;
}

/* Foundation cards */
.about-profile-inside {
    width: 100% !important;
    margin-top: 12px !important;
    position: relative !important;
    z-index: 3 !important;
}

.about-profile-inside .profile-grid {
    display: grid !important;
    grid-template-columns: 1.28fr .86fr .86fr !important;
    gap: 16px !important;
}

.about-profile-inside .profile-card {
    padding: 21px 24px !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .84) !important;
    border: 1px solid rgba(191, 230, 230, .94) !important;
    box-shadow: 0 18px 44px rgba(11, 58, 117, .11) !important;
    backdrop-filter: blur(7px) !important;
}

.about-profile-inside .profile-card-main {
    background: linear-gradient(135deg, rgba(234, 248, 248, .90), rgba(255, 255, 255, .84)) !important;
}

.about-profile-inside .profile-card h3,
.profile-card h3,
.service-card h3 {
    color: #0B3A75 !important;
}

.about-profile-inside .profile-card h3 {
    font-size: 16px !important;
    line-height: 1.28 !important;
    margin: 0 0 11px 0 !important;
}

.about-profile-inside .profile-card p,
.about-profile-inside .profile-card-main p {
    color: #29485D !important;
    font-size: 14.35px !important;
    line-height: 1.58 !important;
    text-align: justify !important;
    text-justify: inter-word !important;
    margin: 0 !important;
}

/* Journal catalog section */
.journals-section {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0 !important;
    padding-top: 46px !important;
    padding-bottom: 40px !important;
    background: #EAF8F8 !important;
    box-shadow: 0 0 0 100vmax #EAF8F8 !important;
    clip-path: inset(0 -100vmax) !important;
}

.journals-section::before {
    content: "" !important;
    position: absolute !important;
    left: -100vmax !important;
    right: -100vmax !important;
    top: 0 !important;
    height: 120px !important;
    background: linear-gradient(180deg, #EAF8F8 0%, rgba(244, 251, 251, .8) 65%, rgba(244, 251, 251, 0) 100%) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.section-title-centered {
    justify-content: center;
    text-align: center;
    margin-bottom: 26px;
}

.section-title h2 {
    color: #08243F !important;
}

.section-title p {
    color: #5B7080 !important;
}

.stat-card,
.current-issue-box,
.stat-box {
    background: linear-gradient(135deg, #FFFFFF, #EAF8F8) !important;
    border-color: #BFE6E6 !important;
}

.stat-card strong,
.current-issue-box span,
.current-issue-link,
.stat-box span {
    color: #0B3A75 !important;
}

.search-box {
    border: 1px solid rgba(191, 230, 230, .95) !important;
    box-shadow: 0 18px 45px rgba(11, 58, 117, .08) !important;
}

.search-box input:focus,
.search-box select:focus,
.form-control:focus,
.panel .admin-search-box input[type="text"]:focus,
.akreditasi-multiselect:focus {
    border-color: #1FB7B6 !important;
    box-shadow: 0 0 0 4px rgba(31, 183, 182, .14) !important;
}

.search-box input:hover,
.search-box select:hover {
    border-color: #8DDBD9 !important;
    background: #F7FCFC !important;
}

/* Cards and buttons */
.journal-card {
    border-color: rgba(191, 230, 230, .95) !important;
    box-shadow: 0 16px 34px rgba(11, 58, 117, .07) !important;
}

.journal-card::before {
    background: linear-gradient(135deg, rgba(31, 183, 182, .16), transparent 34%, rgba(11, 58, 117, .08)) !important;
}

.journal-card:hover {
    box-shadow: 0 18px 42px rgba(11, 58, 117, .14) !important;
}

.cover-wrap {
    background: linear-gradient(135deg, #EAF8F8, #FFFFFF) !important;
}

.current-issue-box::before {
    background: radial-gradient(circle, rgba(31, 183, 182, .22), transparent 65%) !important;
}

.btn-light {
    border: 1px solid #BFE6E6 !important;
}

.btn-light:hover {
    background: #DDF5F5 !important;
    color: #0B3A75 !important;
}

.service-section {
    padding-top: 42px;
    padding-bottom: 34px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    padding: 24px;
    transition: .25s ease;
    background: rgba(255,255,255,.94);
    border: 1px solid #BFE6E6;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(11, 58, 117, .09);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(11, 58, 117, .13);
}

.service-card span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0B3A75, #1FB7B6);
    color: white;
    font-weight: 900;
    margin-bottom: 16px;
}

.service-card p {
    color: #5B7080;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Sidebar/Admin/Footer */
.sidebar {
    background: linear-gradient(180deg, #08243F 0%, #0B3A75 100%) !important;
}

.sidebar .logo {
    background: #FFFFFF !important;
    color: #0B3A75 !important;
    box-shadow: 0 14px 28px rgba(0,0,0,.15) !important;
}

.multi-select-wrap,
.panel .admin-search-box,
.hero-panel,
.detail-cover,
.detail-content,
.panel,
.login-card,
.footer-logo-wrap {
    border-color: rgba(191, 230, 230, .96) !important;
    box-shadow: 0 20px 48px rgba(11, 58, 117, .10) !important;
}

.footer.footer-advanced {
    background:
        radial-gradient(circle at 12% 10%, rgba(31, 183, 182, .24), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(11, 58, 117, .20), transparent 32%),
        linear-gradient(135deg, #061A2D 0%, #0B3A75 52%, #08243F 100%) !important;
}

.footer-map-head a {
    background: linear-gradient(135deg, #0B3A75, #1FB7B6) !important;
    box-shadow: 0 14px 30px rgba(31,183,182,.25) !important;
}

.footer-stat-card::before {
    background:
        radial-gradient(circle at 85% 10%, rgba(31,183,182,.26), transparent 34%),
        radial-gradient(circle at 10% 90%, rgba(11,58,117,.20), transparent 36%) !important;
}

.footer-logo-wrap img {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
}

.whatsapp-float {
    background: #25D366 !important;
}

/* Responsive */
@media (max-width: 980px) {
    .hero-about {
        min-height: auto !important;
        padding-top: 88px !important;
        padding-bottom: 90px !important;
        background:
            linear-gradient(180deg, rgba(247, 252, 252, .95) 0%, rgba(247, 252, 252, .88) 48%, rgba(234, 248, 248, .72) 100%),
            url('../img/about-midwife-bg.png') 70% bottom / cover no-repeat !important;
    }

    .about-profile-inside .profile-grid,
    .service-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .about-profile-inside .profile-card-main {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 720px) {
    .hero-about {
        padding-top: 82px !important;
        padding-bottom: 78px !important;
    }

    .about-profile-inside .profile-grid,
    .service-grid {
        grid-template-columns: 1fr !important;
    }

    .about-profile-inside .profile-card p,
    .about-profile-inside .profile-card-main p {
        font-size: 13.8px !important;
        line-height: 1.56 !important;
    }

    .nav-menu {
        justify-content: flex-start;
    }
}


/* =========================================================
   PREMIUM SCROLL EFFECT V3 LITE - MEDIVARA
   Efek tetap terasa seperti V3, tetapi lebih ringan:
   - fade + slide ringan
   - sedikit zoom
   - tanpa blur berat
   - tanpa parallax
   - animasi hanya sekali saat elemen masuk layar
========================================================= */

html {
    scroll-behavior: smooth;
}

/* Navbar premium tetapi ringan */
.navbar {
    background: rgba(247, 252, 252, .86) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 14px 36px rgba(8, 36, 63, .08) !important;
}

/* Ambience hero ringan, tanpa animasi berulang */
.hero-about {
    position: relative !important;
    isolation: isolate;
}

.hero-about::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(circle at 18% 24%, rgba(31, 183, 182, .10), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(234,248,248,.16) 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.hero-about-grid,
.hero-copy,
.about-profile-inside {
    position: relative !important;
    z-index: 3 !important;
}

/* Mode JS aktif */
body.has-scroll-reveal .reveal-item {
    opacity: 0;
    transform: translateY(36px) scale(.975);
    filter: none;
    transition:
        opacity .72s cubic-bezier(.16, 1, .3, 1),
        transform .72s cubic-bezier(.16, 1, .3, 1),
        box-shadow .32s ease,
        border-color .28s ease,
        background .28s ease !important;
    will-change: opacity, transform;
}

body.has-scroll-reveal .reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Variasi arah tetap ada, tetapi lebih ringan */
body.has-scroll-reveal .reveal-left {
    transform: translateX(-34px) translateY(20px) scale(.98);
}

body.has-scroll-reveal .reveal-right {
    transform: translateX(34px) translateY(20px) scale(.98);
}

body.has-scroll-reveal .reveal-left.is-visible,
body.has-scroll-reveal .reveal-right.is-visible {
    transform: translateX(0) translateY(0) scale(1);
}

body.has-scroll-reveal .reveal-zoom {
    transform: translateY(28px) scale(.96);
}

body.has-scroll-reveal .reveal-zoom.is-visible {
    transform: translateY(0) scale(1);
}

/* Delay tetap terasa, tetapi tidak terlalu lama */
body.has-scroll-reveal .reveal-delay-1 { transition-delay: .00s !important; }
body.has-scroll-reveal .reveal-delay-2 { transition-delay: .07s !important; }
body.has-scroll-reveal .reveal-delay-3 { transition-delay: .14s !important; }
body.has-scroll-reveal .reveal-delay-4 { transition-delay: .21s !important; }

/* Hover premium tetapi ringan */
.profile-card,
.stat-card,
.search-box,
.journal-card,
.service-card {
    transition:
        transform .32s cubic-bezier(.16, 1, .3, 1),
        box-shadow .32s cubic-bezier(.16, 1, .3, 1),
        border-color .25s ease,
        background .25s ease !important;
}

.profile-card:hover,
.stat-card:hover,
.search-box:hover,
.service-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 22px 52px rgba(11, 58, 117, .14) !important;
}

.journal-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 56px rgba(11, 58, 117, .15) !important;
}

/* Tombol lebih hidup tapi tidak berat */
.btn-primary,
.btn-light {
    transition:
        transform .26s cubic-bezier(.16, 1, .3, 1),
        box-shadow .26s ease,
        filter .26s ease !important;
}

.btn-primary:hover,
.btn-light:hover {
    transform: translateY(-4px) !important;
    filter: brightness(1.03) saturate(1.06);
}

/* Input focus ringan */
.search-box input,
.search-box select,
.form-control {
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease,
        background .22s ease !important;
}

.search-box input:focus,
.search-box select:focus,
.form-control:focus {
    transform: translateY(-1px);
}

/* Fallback tanpa JS */
.reveal-item {
    opacity: 1;
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: .001ms !important;
    }

    body.has-scroll-reveal .reveal-item,
    body.has-scroll-reveal .reveal-item.is-visible {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}


/* =========================================================
   MEDIVARA V2 FINAL TUNING
   - Hide small section labels on Journal Catalog and Services
   - Compact About hero so 100% view shows more background and cards
   - Mission list numbering
   - English stat labels already changed in index.php
========================================================= */

/* Hide label kecil yang tampil di atas judul section */
.journals-section .section-kicker,
.service-section .section-kicker {
    display: none !important;
}

/* About dibuat lebih compact agar saat zoom/browser 100% lebih banyak terlihat */
.hero-about {
    min-height: calc(100vh - 86px) !important;
    padding-top: 48px !important;
    padding-bottom: 54px !important;
    align-items: flex-start !important;
    background-position: center bottom !important;
}

/* Kurangi jarak kosong bagian atas */
.hero-about-grid {
    padding-top: 0 !important;
    gap: 18px !important;
}

/* Badge About Us tetap ada, tetapi posisinya lebih rapat */
.hero-copy .badge {
    margin-bottom: 8px !important;
}

/* Headline sedikit lebih compact agar card ikut terlihat */
.hero-about h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.95rem) !important;
    line-height: 1.04 !important;
    margin-top: 12px !important;
    margin-bottom: 14px !important;
}

/* Paragraf hero dipadatkan sedikit */
.hero-about p {
    font-size: .96rem !important;
    line-height: 1.62 !important;
    max-width: 710px !important;
}

/* Tombol lebih rapat */
.hero-actions {
    margin-top: 16px !important;
    gap: 10px !important;
}

.hero-actions .btn {
    padding: 11px 16px !important;
    margin-bottom: 45px;
}

/* Card foundation dibuat tetap terbaca tapi lebih ringkas */
.about-profile-inside {
    margin-top: 4px !important;
}

.about-profile-inside .profile-grid {
    gap: 14px !important;
    align-items: stretch !important;
}

.about-profile-inside .profile-card {
    padding: 17px 20px !important;
    border-radius: 20px !important;
}

.about-profile-inside .profile-card h3 {
    font-size: 15px !important;
    margin-bottom: 8px !important;
    line-height: 1.24 !important;
}

.about-profile-inside .profile-card p,
.about-profile-inside .profile-card-main p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: justify !important;
}

/* Mission numbering */
.mission-card {
    overflow: hidden;
}

.mission-list {
    margin: 0 !important;
    padding-left: 18px !important;
    color: #29485D !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

.mission-list li {
    margin-bottom: 5px !important;
    padding-left: 2px !important;
}

.mission-list li:last-child {
    margin-bottom: 0 !important;
}

/* Section title setelah label dihide tetap rapi */
.section-title-centered h2 {
    margin-top: 0 !important;
}

/* Responsive agar tidak terlalu sesak di layar kecil */
@media (max-width: 980px) {
    .hero-about {
        min-height: auto !important;
        padding-top: 44px !important;
        padding-bottom: 48px !important;
    }

    .hero-about h1 {
        font-size: clamp(2rem, 7vw, 3.2rem) !important;
    }

    .about-profile-inside .profile-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .about-profile-inside .profile-card-main {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 720px) {
    .hero-about {
        padding-top: 36px !important;
        padding-bottom: 42px !important;
    }

    .about-profile-inside .profile-grid {
        grid-template-columns: 1fr !important;
    }

    .mission-list {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}


/* =========================================================
   MEDIVARA V3 REQUESTED MINOR UPDATE
   - Background about zoomed out and moved slightly upward
   - Keep current structure and visual style
   - Make first view at 100% show the hero more completely
========================================================= */

/* Brand subtitle can be longer without breaking header */
.brand-text span {
    max-width: 620px !important;
    display: block !important;
    white-space: normal !important;
    line-height: 1.35 !important;
}

/* About background: zoom out and move upward so heads are visible with space */
.hero-about {
    min-height: calc(100vh - 76px) !important;
    padding-top: 44px !important;
    padding-bottom: 46px !important;
    background:
        linear-gradient(
            90deg,
            rgba(247, 252, 252, .94) 0%,
            rgba(247, 252, 252, .86) 28%,
            rgba(247, 252, 252, .48) 54%,
            rgba(247, 252, 252, .14) 78%,
            rgba(247, 252, 252, 0) 100%
        ),
        url('../img/about-midwife-bg.png') 58% 38% / 92% auto no-repeat !important;
    background-color: #EAF8F8 !important;
}

/* Reduce top empty area while preserving current composition */
.hero-about-grid {
    padding-top: 0 !important;
    gap: 14px !important;
}

.hero-copy .badge {
    margin-bottom: 6px !important;
}

.hero-about h1 {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
}

.hero-about p {
    line-height: 1.58 !important;
}

.hero-actions {
    margin-top: 14px !important;
}

.about-profile-inside {
    margin-top: 0 !important;
}

.about-profile-inside .profile-grid {
    gap: 13px !important;
    margin-top: 50px;
}

.about-profile-inside .profile-card {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

/* Keep mission numbering compact and readable */
.mission-list {
    padding-left: 18px !important;
}

.mission-list li {
    margin-bottom: 4px !important;
}

/* Footer address readability */
.footer-info-card p {
    line-height: 1.65 !important;
}

/* Responsive fallback: use cover on smaller screens */
@media (max-width: 1200px) {
    .hero-about {
        background:
            linear-gradient(
                90deg,
                rgba(247, 252, 252, .94) 0%,
                rgba(247, 252, 252, .86) 30%,
                rgba(247, 252, 252, .48) 58%,
                rgba(247, 252, 252, .14) 82%,
                rgba(247, 252, 252, 0) 100%
            ),
            url('../img/about-midwife-bg.png') 68% 38% / cover no-repeat !important;
    }
}

@media (max-width: 980px) {
    .brand-text span {
        max-width: 420px !important;
    }

    .hero-about {
        min-height: auto !important;
        padding-top: 42px !important;
        padding-bottom: 46px !important;
        background:
            linear-gradient(180deg, rgba(247, 252, 252, .95) 0%, rgba(247, 252, 252, .88) 48%, rgba(234, 248, 248, .72) 100%),
            url('../img/about-midwife-bg.png') 70% 38% / cover no-repeat !important;
    }
}

@media (max-width: 720px) {
    .brand-text span {
        max-width: 260px !important;
        font-size: 11px !important;
    }

    .hero-about {
        padding-top: 34px !important;
        padding-bottom: 40px !important;
    }
}


/* =========================================================
   MEDIVARA V4 BACKGROUND FULL WIDTH TUNING
   Tujuan:
   - background About Us lebih full kanan-kiri
   - kepala orang tetap terlihat penuh
   - struktur, teks, card, dan layout tidak diubah
========================================================= */

/* Desktop besar: gambar dibuat cover full, posisi agak ke atas agar kepala tidak terpotong */
.hero-about {
    background:
        linear-gradient(
            90deg,
            rgba(247, 252, 252, .94) 0%,
            rgba(247, 252, 252, .84) 25%,
            rgba(247, 252, 252, .45) 50%,
            rgba(247, 252, 252, .13) 74%,
            rgba(247, 252, 252, 0) 100%
        ),
        url('../img/about-midwife-bg.png') center 30% / cover no-repeat !important;
    background-color: #EAF8F8 !important;
}

/* Pastikan layer ambience tidak menutupi komposisi background */
.hero-about::before {
    background:
        radial-gradient(circle at 16% 22%, rgba(31, 183, 182, .08), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(234,248,248,.12) 100%) !important;
}

/* Untuk layar sangat lebar, posisikan background tetap full dan kepala aman */
@media (min-width: 1400px) {
    .hero-about {
        background:
            linear-gradient(
                90deg,
                rgba(247, 252, 252, .94) 0%,
                rgba(247, 252, 252, .84) 25%,
                rgba(247, 252, 252, .44) 50%,
                rgba(247, 252, 252, .12) 74%,
                rgba(247, 252, 252, 0) 100%
            ),
            url('../img/about-midwife-bg.png') center 28% / cover no-repeat !important;
    }
}

/* Laptop/tablet: tetap cover, sedikit geser kanan agar subjek utama tidak hilang */
@media (max-width: 1200px) {
    .hero-about {
        background:
            linear-gradient(
                90deg,
                rgba(247, 252, 252, .95) 0%,
                rgba(247, 252, 252, .86) 32%,
                rgba(247, 252, 252, .48) 60%,
                rgba(247, 252, 252, .16) 84%,
                rgba(247, 252, 252, 0) 100%
            ),
            url('../img/about-midwife-bg.png') 62% 30% / cover no-repeat !important;
    }
}

/* Mobile: tetap nyaman dibaca */
@media (max-width: 980px) {
    .hero-about {
        background:
            linear-gradient(
                180deg,
                rgba(247, 252, 252, .96) 0%,
                rgba(247, 252, 252, .90) 48%,
                rgba(234, 248, 248, .76) 100%
            ),
            url('../img/about-midwife-bg.png') 68% 30% / cover no-repeat !important;
    }
}


/* =========================================================
   MEDIVARA V5 MINOR FIXES - FAVICON DETAIL OVERFLOW
   Fokus:
   - menghilangkan offside/horizontal scroll ke kanan
   - menjaga tampilan yang sudah ada
   - tidak mengubah struktur layout
========================================================= */

/* Kunci utama agar halaman tidak bisa digeser ke kanan */
html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Beberapa browser tetap menghitung elemen fixed/pseudo melewati viewport */
main,
.navbar,
.footer,
.footer.footer-advanced,
.hero-about,
.journals-section,
.service-section {
    max-width: 100vw !important;
    overflow-x: clip !important;
}

/* Fallback untuk browser yang belum mendukung overflow: clip */
@supports not (overflow: clip) {
    main,
    .navbar,
    .footer,
    .footer.footer-advanced,
    .hero-about,
    .journals-section,
    .service-section {
        overflow-x: hidden !important;
    }
}

/* Pastikan pseudo-element full-width tidak memicu horizontal scroll */
.hero-about::before,
.hero-about::after,
.journals-section::before,
.journals-section::after,
.service-section::before,
.service-section::after,
.footer.footer-advanced::before,
.footer-stat-card::before {
    max-width: 100vw !important;
}

/* Floating WhatsApp tidak boleh menambah lebar halaman */
.whatsapp-float {
    right: 20px !important;
    max-width: 60px !important;
}

/* Jika ada gambar besar, jangan melebihi kontainer */
img,
iframe {
    max-width: 100%;
}

