/* --- IAI Diniyyah Pekanbaru Premium Design System (Pelita V3 Inspired) --- */
:root {
    --navy: var(--primary-color, #002d55);
    --yellow: var(--accent-color, #ffc107);
    --blue-link: #007bff;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 45px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --wa-color: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.nav-link,
.site-name {
    font-family: 'Montserrat', sans-serif;
}

.site-content {
    padding-top: 0 !important; /* Header is sticky and in-flow, so no padding needed */
}

/* --- Hero Banner System --- */
.page-hero {
    background: var(--navy);
    background-image: linear-gradient(135deg, #002d55 0%, #004a8c 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 25px 25px;
}

.page-hero h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.breadcrumb-nav a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
}

/* --- Content Overlap --- */
.content-overlap {
    margin-top: 0; /* Hapus margin negatif agar tidak menimpa banner berlebihan */
    position: relative;
    z-index: 5;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* --- Bootstrap 5 Modal Fixes --- */
.modal-backdrop {
    z-index: 1050 !important;
}
.modal {
    z-index: 1060 !important;
}
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}
.modal-xl {
    max-width: 90vw !important;
}
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - (var(--bs-modal-margin) * 2));
}
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 30px;
}

.section-padding {
    padding: 100px 0;
}

.text-navy {
    color: var(--navy);
}

.text-yellow {
    color: var(--yellow);
}

.bg-navy {
    background-color: var(--navy);
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- Grid System --- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalSlide 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 20px;
}

.section-header.dark h2 {
    color: var(--navy);
}

.section-header.white h2 {
    color: var(--white);
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.9);
    height: 45px;
    display: flex;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Rata tengah vertikal */
    width: 100%;
    height: 100%;
}

.top-left {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-right {
    display: flex;
    gap: 25px;
}

.top-info {
    display: flex;
    align-items: center;
}

.top-info span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.top-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.top-links a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.top-links a:hover {
    color: var(--yellow);
}

/* --- Header & Navigation --- */
header {
    background: var(--white);
    height: 90px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    height: 80px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 75px; /* Perbesar logo sesuai gaya premium */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled .navbar-brand img {
    height: 60px;
}

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 10001;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-drawer.active {
    display: flex;
    transform: translateX(-320px);
}

.brand-text span {
    display: block;
    color: var(--navy);
    font-weight: 800;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-text small {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desktop-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--navy);
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    padding: 30px 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--yellow);
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 15px 0;
    display: none;
    z-index: 1001;
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--yellow);
}

/* --- Nested Dropdown Sideways --- */
.dropdown-menu-custom .nav-item {
    position: relative;
}

.dropdown-menu-custom .has-dropdown>.dropdown-menu-custom {
    top: -15px;
    /* Aligned with parent padding */
    left: 100%;
    border-top: none;
    border-left: 3px solid var(--yellow);
    border-radius: 0 8px 8px 8px;
    margin-left: 0;
}

.nav-item.has-dropdown:hover>.dropdown-menu-custom {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu-custom li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    color: var(--navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.dropdown-menu-custom li a:hover {
    background: var(--bg-light);
    color: var(--yellow);
    padding-left: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.btn-pendaftaran {
    background: var(--yellow);
    color: var(--navy);
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.btn-pendaftaran:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
}

.mobile-nav-toggle {
    display: none;
    background: var(--bg-light);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    color: var(--navy);
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-nav-toggle:hover {
    background: var(--yellow);
    color: var(--navy);
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: flex;
    }
    .desktop-nav, .btn-pendaftaran {
        display: none !important;
    }
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    background: transparent;
}

.hero-slide {
    width: 100%;
    height: 600px; /* Base height for large screens */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    background-color: transparent;
    display: flex;
    align-items: center;
    position: relative;
}

/* Position dots absolutely over the slider */
.hero-slider .owl-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}
.hero-slider .owl-theme .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.5);
}
.hero-slider .owl-theme .owl-dots .owl-dot.active span,
.hero-slider .owl-theme .owl-dots .owl-dot:hover span {
    background: var(--yellow);
}

@media (max-width: 1200px) {
    .hero-slide { height: 500px; }
}
@media (max-width: 991px) {
    .hero-slide { height: 400px; }
}
@media (max-width: 768px) {
    .hero-slide { height: 280px; }
}


.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    color: white;
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
}

.hero-line {
    width: 80px;
    height: 5px;
    background: var(--yellow);
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-hero {
    background: var(--yellow);
    color: var(--navy);
    padding: 18px 40px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: var(--transition);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    padding: 18px 40px;
    border: 2px solid white;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: var(--transition);
}

.btn-hero:hover,
.btn-hero-outline:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* --- News Cards (Vertical) --- */
.card-new {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-new:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.news .col-lg-4 {
    margin-bottom: 50px !important;
}

.card-img-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-new:hover .card-img-wrap img {
    transform: scale(1.1);
}

.badge-new {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--yellow);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 10px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.btn-read-more {
    background: var(--navy);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-read-more:hover {
    background: var(--yellow);
    color: var(--navy);
    transform: translateX(5px);
}

.meta-left {
    display: flex;
    align-items: center;
}

.card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-cat {
    color: var(--blue-link);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-new:hover .card-title {
    color: var(--yellow);
}

.card-meta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.btn-read {
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-read:hover {
    gap: 12px;
    color: var(--yellow);
}

/* --- Gallery Cards (Horizontal) --- */
.bg-navy-pattern {
    background-color: var(--navy);
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    color: white;
}

.card-horizontal {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    height: 220px;
    margin-bottom: 30px;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-horizontal:hover {
    transform: scale(1.02);
}

.card-h-img {
    width: 35%;
    position: relative;
    overflow: hidden;
}

.card-h-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 85, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 50px;
    opacity: 0;
    transition: var(--transition);
}

.card-horizontal:hover .play-overlay {
    opacity: 1;
}

.card-h-content {
    width: 65%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.card-date-box {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--yellow);
    color: var(--navy);
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-h-content h3 {
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-h-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.btn-h-lihat {
    align-self: flex-end;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    display: flex;
    align-items: center;
/* --- Footer --- */
footer {
    background: #001529;
    color: white;
    padding: 80px 0 0;
}

.footer-row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px !important;
    margin-left: -15px !important;
}

.footer-col {
    position: relative !important;
    width: 100% !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
    margin-bottom: 40px !important;
}

@media (max-width: 991px) {
    .footer-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 575px) {
    .footer-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.footer-col h4 {
    color: white;
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 35px;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 1px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
}

.footer-col p {
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--yellow);
    transform: translateX(8px);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-item i {
    color: var(--yellow);
    font-size: 16px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Sub-menu caret indicator --- */
.dropdown-menu-custom .has-dropdown>a .fa-angle-down {
    transform: rotate(-90deg);
    font-size: 11px;
}

/* --- Mobile Menu Toggle Button --- */
.mobile-nav-toggle {
    display: none;
    font-size: 26px; /* Perbesar sedikit agar mudah ditekan */
    color: var(--navy);
    cursor: pointer;
    padding: 10px;
    z-index: 1050;
    background: #f8f9fa; /* Beri background sedikit agar terlihat */
    border: none;
    border-radius: 8px;
    line-height: 1;
    transition: var(--transition);
}

/* --- Mobile Nav Backdrop --- */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.mobile-nav-backdrop.active {
    display: block;
}

.mobile-nav-drawer {
    display: none;
}

/* --- Responsive Mobile Styles --- */
@media (max-width: 991px) {

    /* Sidebar drawer approach */
    .desktop-nav {
        display: none !important;
    }

    .mobile-nav-drawer {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        z-index: 99999; /* Sangat tinggi agar di atas apapun */
        transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        flex-direction: column;
        border-left: 4px solid var(--navy);
        visibility: hidden;
    }

    .mobile-nav-drawer.active {
        right: 0;
        visibility: visible;
    }

    .mobile-nav-header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
        background: var(--bg-light);
    }

    .mobile-nav-header img {
        height: 40px;
    }

    .close-mobile-nav {
        font-size: 24px;
        color: var(--navy);
        cursor: pointer;
    }

    .mobile-nav-content {
        flex-grow: 1;
        overflow-y: auto;
        padding: 20px 0;
    }

    .mobile-nav-content .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-content .nav-item {
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }

    .mobile-nav-content .nav-link {
        padding: 15px 25px;
        color: var(--navy);
        font-weight: 700;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-nav-toggle {
    display: flex !important; /* Paksa muncul di mobile */
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1060; /* Di atas backdrop tapi di bawah drawer */
}

    /* Mobile dropdown - horizontal scrolled into view */
    .dropdown-menu-custom {
        position: static !important;
        box-shadow: none;
        padding: 5px 0 5px 15px;
        border-top: none;
        border-left: 3px solid var(--yellow);
        width: 100%;
        display: none;
        animation: none;
        background: #fafafa;
    }

    /* Override nested dropdown sideways on mobile */
    .dropdown-menu-custom .has-dropdown>.dropdown-menu-custom {
        left: 0;
        top: auto;
        border-left: 3px solid rgba(255, 193, 7, 0.5);
    }

    .nav-item.has-dropdown.active>.dropdown-menu-custom {
        display: block;
    }

    .dropdown-menu-custom li a {
        padding: 10px 15px;
        font-size: 13px;
    }

    .header-right {
        gap: 10px;
    }

    .btn-pendaftaran {
        padding: 8px 15px;
        font-size: 11px;
    }

    /* Hero responsive */
    .hero-slide {
        height: 40vh;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    /* Gallery responsive */
    .card-horizontal {
        flex-direction: column;
        height: auto;
    }

    .card-h-img {
        width: 100%;
        height: 180px;
    }

    .card-h-content {
        width: 100%;
        padding: 25px;
    }

    .card-date-box {
        left: 20px;
        top: -25px;
        transform: none;
    }

    /* News responsive */
    .news-header-top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start !important;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 575px) {
    .top-bar {
        display: none;
    }

    .container {
        padding: 0 15px;
    }

    .container-fluid {
        padding: 0 15px;
    }

    .brand-text span {
        font-size: 15px;
    }

    .brand-text small {
        display: none;
    }

    .navbar-brand img {
        height: 45px;
    }

    .btn-pendaftaran {
        padding: 8px 12px;
        font-size: 10px;
    }

    .header-right {
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .brand-text {
        display: none;
    }

    /* Sembunyikan teks di layar sangat kecil */
    .navbar-brand {
        gap: 0;
    }

    .btn-pendaftaran {
        padding: 6px 10px;
    }
}

/* --- Gallery Alternating --- */
.bg-white {
    background-color: var(--white);
    color: var(--text-dark);
}

.bg-white .section-header.dark h2 {
    color: var(--navy);
}

.bg-white .card-horizontal {
    border: 1px solid #e8e8e8;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 85, 0.98);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 800px;
    position: relative;
    text-align: center;
}

.search-container form {
    display: flex;
    border-bottom: 3px solid var(--yellow);
    padding-bottom: 15px;
}

.search-container input {
    background: transparent;
    border: none;
    color: white;
    font-size: 42px;
    font-weight: 800;
    width: 100%;
    padding: 0 20px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-container button {
    background: transparent;
    border: none;
    color: var(--yellow);
    font-size: 36px;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover {
    transform: scale(1.2);
}

.sidebar-wrapper {
    position: sticky;
    top: 100px;
}

@media (min-width: 992px) {
    .detail-row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
}

.modal-thumbs-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.close-search {
    position: absolute;
    top: -100px;
    right: 0;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: var(--transition);
}

.close-search:hover {
    color: var(--yellow);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .search-container input {
        font-size: 24px;
    }

    .search-container button {
        font-size: 24px;
    }

    .close-search {
        top: -60px;
    }
}


/* --- Page Hero Banner --- */
.page-hero {
    background: var(--navy);
    background-size: cover;
    background-position: center;
    padding: 120px 0 140px; /* Jarak lebih lega agar tidak mepet dengan header */
    color: white;
    position: relative;
    border-bottom: 5px solid var(--yellow);
}

.page-hero h1 {
    font-weight: 800;
    font-size: 52px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.breadcrumb-custom {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    justify-content: center;
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb-custom a:hover {
    color: white;
}

/* --- Content Article --- */
.content-article {
    line-height: 2;
    font-size: 18px;
    color: #333;
    position: relative;
    z-index: 5;
    background: white;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--navy);
    padding: 50px;
}

.section-padding {
    padding: 80px 0;
}

/* --- Pagination Modern --- */
.pagination-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination-container ul,
.pagination {
    display: flex;
    list-style: none;
    gap: 10px;
    padding: 0;
}

.pagination-container li a,
.pagination li a,
.pagination li span,
.pagination-container a,
.pagination-container strong,
.pagination-container b {
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    background: white;
    color: var(--navy);
    text-decoration: none !important;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    margin: 0 5px;
}

.pagination-container li.active a,
.pagination li.active a,
.pagination li.active span,
.pagination-container strong,
.pagination-container b,
.pagination-container li a:hover,
.pagination li a:hover,
.pagination-container a:hover {
    background: var(--navy);
    color: white !important;
    border-color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 45, 85, 0.2);
}

/* --- Floating WhatsApp Button --- */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: var(--wa-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.wa-float:hover {
    transform: scale(1.1) rotate(10deg);
    color: white;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

.wa-float .wa-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wa-float:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

/* --- Welcome Popup CSS Fallback --- */
.modal:not(.show) {
    display: none !important;
    pointer-events: none;
}
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}
.modal.show .modal-dialog {
    transform: none;
}
.modal-backdrop.show {
    opacity: 0.7;
    backdrop-filter: blur(5px);
}
.welcome-popup-content {
    border-radius: 20px;
    overflow: hidden;
}

.welcome-popup-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}