: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.45;
}

.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.45;
}


/* ===== 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;
    }
}
