/* ==========================================================================
   BADILAG JOOMLA 6 TEMPLATE - TATA KELOLA WEBSITE SK 2722/DJA/SK.TI1/X/2026
   Visual Identity, WCAG 2.1 Accessibility & Responsive UI
   ========================================================================== */

:root {
    --pa-primary: #056e4f;
    --pa-primary-dark: #034d37;
    --pa-primary-light: #e6f3ef;
    --pa-secondary: #ff9900;
    --pa-secondary-hover: #e68a00;
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-bg: #f8f9fa;
    --base-font-size: 16px;
}

.pagenavigation {
    display: none;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: var(--bs-body-font-family);
    background-color: var(--bs-body-bg);
    color: #212529;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main#main-content {
    flex: 1 0 auto;
}

/* ==========================================================================
   1. COLOR UTILITIES & BUTTONS
   ========================================================================== */
.bg-pa-primary { background-color: var(--pa-primary) !important; }
.text-pa-primary { color: var(--pa-primary) !important; }
.border-pa-primary { border-color: var(--pa-primary) !important; }

.bg-pa-secondary { background-color: var(--pa-secondary) !important; }
.text-pa-secondary { color: var(--pa-secondary) !important; }
.border-pa-secondary { border-color: var(--pa-secondary) !important; }

.btn-pa-secondary {
    background-color: var(--pa-secondary);
    color: #111827;
    border-color: var(--pa-secondary);
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-pa-secondary:hover, .btn-pa-secondary:focus {
    background-color: var(--pa-secondary-hover);
    border-color: var(--pa-secondary-hover);
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
}

.btn-pa-primary {
    background-color: var(--pa-primary);
    color: #ffffff;
    border-color: var(--pa-primary);
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-pa-primary:hover, .btn-pa-primary:focus {
    background-color: var(--pa-primary-dark);
    border-color: var(--pa-primary-dark);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(5, 110, 79, 0.3);
}

/* Tipografi */
.font-display { font-family: 'Montserrat', system-ui, sans-serif; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--pa-primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--pa-primary-dark); }

/* ==========================================================================
   2. HEADER & NAVIGATION (6 CORE MENUS)
   ========================================================================== */

/* Prevent navbar content overflow at any breakpoint */
.navbar > .container-xl,
.navbar > .container-lg {
    flex-wrap: nowrap;
}
.navbar-brand-row {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}
.navbar-brand {
    min-width: 0;
    flex: 0 1 auto;
}
.navbar-brand > div {
    min-width: 0;
}
.navbar-brand-copy {
    max-width: 390px;
}
.navbar-brand-kicker {
    color: #374151;
    font-size: 0.82rem;
    line-height: 1.25;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}
.navbar-brand-title {
    font-size: 0.88rem;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 390px;
}
.navbar-collapse {
    flex-grow: 1;
    flex-shrink: 1;
}

.topbar-wrapper {
    background-color: var(--pa-primary-dark);
    color: #ffffff;
    font-size: 0.85rem;
}
.topbar-wrapper > .container-lg {
    min-height: 2.35rem;
}
.topbar-contact {
    flex-wrap: wrap;
    row-gap: 0.25rem !important;
}
.topbar-social {
    font-size: 0.95rem;
}
.topbar-language-switcher {
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    padding-left: 0.65rem;
    white-space: nowrap;
}
.topbar-language-link {
    border-radius: 0.25rem;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 0.15rem 0.3rem;
    text-decoration: none;
}
.topbar-language-link.active {
    color: var(--pa-secondary);
}
.topbar-language-link:hover,
.topbar-language-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
}
.topbar-wrapper .topbar-siwas {
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
}
.topbar-wrapper .topbar-siwas:hover,
.topbar-wrapper .topbar-siwas:focus {
    color: #111827 !important;
}
.topbar-wrapper a {
    color: #ffffff;
    transition: opacity 0.2s ease;
}
.topbar-wrapper a:hover {
    color: var(--pa-secondary) !important;
}

.navbar-nav .nav-link {
    color: #374151;
    font-weight: 600;
    font-size: 0.925rem;
    padding: 0.5rem 0.6rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.navbar-nav .nav-link:hover {
    color: var(--pa-primary);
}
.navbar-nav .nav-link.active {
    color: var(--pa-primary) !important;
    font-weight: 700;
    border-bottom: 3px solid var(--pa-secondary);
}
.dropdown-menu {
    border-top: 3px solid var(--pa-secondary) !important;
    border-radius: 0.375rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--pa-primary-light);
    color: var(--pa-primary);
}

/* Sidebar Sub-Navigasi */
.sidebar-nav-link {
    color: #374151;
    border-left: 4px solid transparent;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}
.sidebar-nav-link:hover {
    background-color: var(--pa-primary-light);
    color: var(--pa-primary);
}
.sidebar-nav-link.active {
    background-color: var(--pa-primary);
    color: #ffffff !important;
    border-left: 4px solid var(--pa-secondary);
}
.sidebar-nav-link.active i {
    color: var(--pa-secondary) !important;
}

/* ==========================================================================
   3. HERO SLIDER EKONOMIS (MAKSIMAL 3-5 SLIDE)
   ========================================================================== */
.badilag-slider .carousel-item {
    min-height: 55vh;
    position: relative;
}
.badilag-slider .carousel-item.has-background-image {
    min-height: 0;
    overflow: hidden;
}
.badilag-slider .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 110, 79, 0.92) 0%, rgba(5, 110, 79, 0.75) 60%, rgba(3, 77, 55, 0.6) 100%);
    opacity: var(--badilag-slider-overlay-opacity, 0.35);
    z-index: 1;
}
.badilag-slider-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.badilag-slider .hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.badilag-slider .carousel-item:not(.has-background-image) .hero-content {
    position: relative;
    min-height: 55vh;
    z-index: 2;
}
#hero-carousel .hero-content {
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   4. SHORTCUTS CARDS (AKSES <= 2 KLIK)
   ========================================================================== */
.card-shortcut {
    transition: all 0.25s ease-in-out;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    background-color: #f8f9fa;
}
.card-shortcut:hover {
    background-color: var(--pa-primary) !important;
    border-color: var(--pa-primary);
    color: #ffffff !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(5, 110, 79, 0.15) !important;
}
.card-shortcut .bi {
    color: var(--pa-primary);
    transition: color 0.25s ease;
}
.card-shortcut:hover .bi {
    color: var(--pa-secondary) !important;
}
.card-shortcut:hover h3, .card-shortcut:hover h4 {
    color: #ffffff !important;
}
.card-shortcut:hover p {
    color: #e5e7eb !important;
}

/* ==========================================================================
   5. LINE CLAMP & CARDS
   ========================================================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* ==========================================================================
   6. FITUR AKSESIBILITAS RAMAH DISABILITAS / WCAG 2.1
   ========================================================================== */
.a11y-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1055;
}
.a11y-panel {
    width: 290px;
    display: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}
.a11y-panel.show {
    display: block;
}

/* Mode Kontras Tinggi (High Contrast Mode) */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}
body.high-contrast header,
body.high-contrast nav,
body.high-contrast section,
body.high-contrast .card,
body.high-contrast .bg-white,
body.high-contrast .bg-light,
body.high-contrast .modal-content,
body.high-contrast footer,
body.high-contrast .list-group-item,
body.high-contrast .topbar-wrapper,
body.high-contrast .dropdown-menu {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}
body.high-contrast a,
body.high-contrast button,
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast h4,
body.high-contrast p, body.high-contrast span, body.high-contrast td, body.high-contrast th,
body.high-contrast i, body.high-contrast li {
    color: #ffff00 !important;
}
body.high-contrast .btn-pa-secondary,
body.high-contrast .btn-pa-primary,
body.high-contrast .badge {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}
body.high-contrast .card-shortcut {
    border: 1px solid #ffff00 !important;
}

/* ==========================================================================
   7. JOOMLA CORE STYLES & OVERRIDES
   ========================================================================== */
.com-content-article, .item-page {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.page-header h1, .page-header h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--pa-primary);
    font-weight: 700;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--pa-secondary);
    padding-bottom: 0.5rem;
}
.breadcrumb {
    background: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.breadcrumb a {
    color: var(--pa-primary);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb-item.active {
    color: #6c757d;
}

.pa-article-menu {
    position: sticky;
    top: 8.5rem;
}
.pa-article-menu .nav-link {
    border-left: 4px solid transparent;
    border-radius: 0.375rem;
    color: #374151;
    font-weight: 600;
    line-height: 1.45;
    padding: 0.65rem 0.8rem;
}
.pa-article-menu .nav-link:hover,
.pa-article-menu .nav-link:focus {
    background: var(--pa-primary-light);
    color: var(--pa-primary);
}
.pa-article-menu .nav-link.active {
    border-left-color: var(--pa-secondary);
    background: var(--pa-primary);
    color: #fff;
}
@media (max-width: 991.98px) {
    .pa-article-menu {
        position: static;
    }
}

/* Category blog cards */
#joomla-component-area .com-content-category-blog > h1,
#joomla-component-area .com-content-category-blog > h2,
#joomla-component-area .com-content-category > h1,
#joomla-component-area .com-content-category > h2 {
    color: var(--pa-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}
#joomla-component-area .com-content-category-blog .category-desc,
#joomla-component-area .com-content-category .category-desc {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--pa-secondary);
    border-radius: 0.5rem;
    background: #f5f8f7;
    color: #53645e;
}
#joomla-component-area .com-content-category-blog__items.items-leading,
#joomla-component-area .com-content-category-blog__items:not(.items-leading) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
#joomla-component-area .com-content-category-blog__items.items-leading {
    margin-bottom: 1.5rem;
}
#joomla-component-area .com-content-category-blog__item {
    min-width: 0;
    margin: 0;
}
#joomla-component-area .com-content-category__articles {
    margin-top: 1.5rem;
}
#joomla-component-area .com-content-category__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
#joomla-component-area .com-content-category__filter .form-select,
#joomla-component-area .com-content-category__filter .form-control,
#joomla-component-area .com-content-category__filter .inputbox {
    max-width: 24rem;
    border-color: #d7e2de;
    border-radius: 0.5rem;
}
#joomla-component-area .com-content-category__filter .btn {
    border-radius: 0.5rem;
    font-weight: 700;
}
#joomla-component-area .com-content-category__table {
    overflow: hidden;
    border-color: #e0e8e5;
    border-radius: 0.75rem;
    background: #fff;
}
#joomla-component-area .com-content-category__table thead th {
    padding: 0.9rem 1rem;
    border-color: #e0e8e5;
    background: var(--pa-primary);
    color: #fff;
}
#joomla-component-area .com-content-category__table tbody th,
#joomla-component-area .com-content-category__table tbody td {
    padding: 0.85rem 1rem;
    border-color: #e8eeeb;
    color: #46564f;
}
#joomla-component-area .com-content-category__table a {
    color: var(--pa-primary);
    font-weight: 600;
    text-decoration-color: transparent;
    text-underline-offset: 0.2em;
}
#joomla-component-area .com-content-category__table a:hover {
    color: var(--pa-primary-dark);
    text-decoration-color: var(--pa-secondary);
}
.pa-announcement-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(16, 75, 58, 0.1);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(26, 54, 45, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.pa-announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(26, 54, 45, 0.13);
}
.pa-announcement-card__visual {
    position: relative;
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--pa-primary), var(--pa-primary-dark));
    text-decoration: none;
}
.pa-announcement-card__visual::after {
    position: absolute;
    top: -3.25rem;
    right: -2rem;
    width: 11rem;
    height: 11rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 1.5rem rgba(255, 255, 255, 0.06), 0 0 0 3rem rgba(255, 255, 255, 0.04);
    content: "";
    pointer-events: none;
}
.pa-announcement-card__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pa-announcement-card__icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.13);
    font-size: 1.5rem;
}
.pa-announcement-card__visual-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}
.pa-announcement-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}
.pa-announcement-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    color: #64736d;
    font-size: 0.78rem;
}
.pa-announcement-card__badge {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: var(--pa-primary);
    background: rgba(16, 75, 58, 0.09);
    font-weight: 700;
}
.pa-announcement-card__title {
    margin: 0 0 0.65rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.45;
}
.pa-announcement-card__title a {
    color: var(--pa-primary);
    text-decoration: none;
}
.pa-announcement-card__title a:hover {
    color: var(--pa-primary-dark);
    text-decoration: underline;
    text-decoration-color: var(--pa-secondary);
    text-underline-offset: 0.2em;
}
.pa-announcement-card__summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 1rem;
    color: #65716c;
    font-size: 0.9rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.pa-announcement-card__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #edf1ef;
}
.pa-announcement-card__link {
    color: var(--pa-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}
.pa-announcement-card__link:hover {
    color: var(--pa-primary-dark);
    text-decoration: underline;
}

/* System Messages */
#system-message-container {
    margin-bottom: 1.5rem;
}
.alert-message {
    border-radius: 0.375rem;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    justify-content: center;
}
.pagination .page-item .page-link {
    color: var(--pa-primary);
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.85rem;
}
.pagination .page-item.active .page-link {
    background-color: var(--pa-primary);
    border-color: var(--pa-primary);
    color: #ffffff;
}
#joomla-component-area .com-content-category-blog__navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
#joomla-component-area .com-content-category-blog__pagination,
#joomla-component-area .com-content-category-blog__pagination .pagination {
    width: 100%;
}
#joomla-component-area .com-content-category-blog__pagination .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
}
#joomla-component-area .com-content-category-blog__pagination .page-link {
    padding-right: 0.55rem;
    padding-left: 0.55rem;
}
#joomla-component-area .com-content-category-blog__counter {
    order: 2;
    float: none !important;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    text-align: center;
}

@media (max-width: 575.98px) {
    #joomla-component-area .com-content-category-blog__items.items-leading,
    #joomla-component-area .com-content-category-blog__items:not(.items-leading) {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
    #joomla-component-area .com-content-category__pagination .pagination,
    #joomla-component-area .com-content-category-blog__pagination .pagination {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .pa-announcement-card__visual {
        min-height: 125px;
    }
    .pa-announcement-card__body {
        padding: 1rem;
    }
    .pa-announcement-card__title {
        font-size: 1rem;
    }
}

/* Responsive adjustments */
/* ---- Navbar XL fix: 1200-1399px (navbar-expand-xl range) ---- */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-brand-kicker {
        font-size: 0.68rem;
        white-space: nowrap;
    }
    .navbar-brand-title {
        font-size: 0.74rem !important;
        max-width: none;
        line-height: 1.15;
        white-space: nowrap;
        overflow-wrap: normal;
    }
    .navbar-nav .nav-link {
        font-size: 0.8rem !important;
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
        letter-spacing: -0.01em;
    }
    .navbar-nav .dropdown-toggle::after {
        margin-left: 0.15em;
    }
    .navbar-nav > li.nav-item > .btn {
        font-size: 0.78rem;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
}

@media (min-width: 1200px) {
    .navbar-brand-copy {
        max-width: none;
        white-space: nowrap;
    }
    .navbar-brand-kicker {
        color: #24415d;
        font-size: 0.68rem;
        line-height: 1.15;
        letter-spacing: 0.025em;
        white-space: nowrap;
    }
    .navbar-brand-title {
        font-size: 0.74rem;
        line-height: 1.15;
        max-width: none;
        white-space: nowrap;
        overflow-wrap: normal;
    }
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        margin-top: 0.75rem;
    }
    .badilag-slider .carousel-item {
        min-height: 48vh;
    }
}

@media (max-width: 1199.98px) {
    .navbar > .container-xl,
    .navbar > .container-lg {
        flex-wrap: wrap;
    }
    .navbar-brand-row {
        position: relative;
        flex: 0 0 100%;
        justify-content: center;
        min-height: 55px;
    }
    .navbar-brand {
        position: absolute;
        left: 50%;
        top: 50%;
        justify-content: center;
        max-width: calc(100% - 5.5rem);
        margin: 0;
        transform: translate(-50%, -50%);
    }
    .navbar-toggler {
        z-index: 1;
        display: flex;
        width: 40px;
        height: 36px;
        flex: 0 0 40px;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 0;
    }
    .navbar-brand-copy {
        display: block !important;
        max-width: min(390px, calc(100vw - 8rem));
    }
    .navbar-brand-kicker {
        font-size: clamp(0.44rem, 2vw, 0.65rem);
        white-space: nowrap;
    }
    .navbar-brand-title {
        max-width: 100%;
        font-size: clamp(0.5rem, 2.1vw, 0.68rem);
        white-space: nowrap;
        overflow-wrap: normal;
    }
    .navbar-collapse {
        flex-basis: 100%;
    }
}

@media (max-width: 575.98px) {
    .badilag-slider .carousel-item {
        min-height: 40vh;
    }
    .display-5 {
        font-size: 1.85rem;
    }
    .a11y-widget {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 767.98px) {
    .badilag-slider .carousel-item.has-background-image.active,
    .badilag-slider .carousel-item.has-background-image.carousel-item-next,
    .badilag-slider .carousel-item.has-background-image.carousel-item-prev {
        display: grid;
        grid-template-areas: "slide";
    }
    .badilag-slider .carousel-item.has-background-image .badilag-slider-image {
        grid-area: slide;
        align-self: center;
    }
    .badilag-slider .carousel-item.has-background-image .hero-content {
        position: relative;
        inset: auto;
        min-height: 0;
        grid-area: slide;
        padding: 1rem !important;
        background: transparent;
    }
    .badilag-slider .carousel-item.has-background-image .badge {
        margin-bottom: 0.5rem !important;
    }
    .badilag-slider .carousel-item.has-background-image h1 {
        margin-bottom: 0;
        font-size: clamp(1.25rem, 5vw, 2rem);
        line-height: 1.15;
    }
    .badilag-slider .carousel-item.has-background-image .hero-content p {
        margin-top: 0.5rem !important;
        margin-bottom: 0;
        font-size: clamp(0.85rem, 3.2vw, 1rem) !important;
        line-height: 1.35;
    }
    .badilag-slider .carousel-item.has-background-image .hero-content .mt-4 {
        margin-top: 0.75rem !important;
    }
}

.badilag-article-groups .badilag-article-image {
    height: 11rem;
    object-fit: cover;
}
