/* ================================================
   LAPAS WONOGRI - STYLESHEET (COMPLETE & RESPONSIVE)
   File: style.css
   ================================================ */

:root {
    --primary-color: #06213E;
    --secondary-color: #3949ab;
    --accent-color: #5c6bc0;
    --light-bg: #f5f7fa;
    --dark-text: #2c3e50;
    --gold: #F5BB69;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    padding-top: 0;
    margin: 0;
}

/* ================================================
   NAVBAR STYLES - FIXED POSITION
   ================================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.15) !important;
    padding: 1rem 0 !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.navbar.scrolled {
    padding: 0.5rem 0 !important;
    box-shadow: 0 6px 30px rgba(0,0,0,.25) !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    font-size: 2rem;
    color: var(--gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.nav-link {
    color: rgba(255,255,255,.9) !important;
    font-weight: 500;
    transition: all .3s;
    padding: 8px 16px !important;
    border-radius: 8px;
    margin: 0 4px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,.15);
    color: #fff !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    transition: all .3s;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    transform: translateX(5px);
}

/* ================================================
   LOGIN BUTTON - ICON ONLY MINIMALIS
   ================================================ */
.login-glass {
    padding: 6px 14px !important;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    color: white !important;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.login-glass:hover {
    background: rgba(255,255,255,0.15);
}

.login-glass i {
    font-size: 1.2rem;
    transition: transform 0.3s, color 0.3s;
}

.login-glass:hover i {
    transform: scale(1.3);
    color: #00ffff;
}

/* ================================================
   HERO CAROUSEL - FULLY RESPONSIVE
   ================================================ */
#heroCarousel {
    margin-top: 76px;
}

.carousel-item {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(27, 67, 50, 0.55) 0%,
        rgba(45, 106, 79, 0.45) 40%,
        rgba(212, 175, 55, 0.25) 100%
    );
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item.active img {
    transform: scale(1.1);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    text-align: left;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.slide-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a237e;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero:hover {
    background: linear-gradient(135deg, #ffed4e, #fff176);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    color: #1a237e;
}

/* ================================================
   FIX HERO CAROUSEL MOBILE - CAPTION TETAP DI DALAM
   ================================================ */

/* Desktop */
#heroCarousel {
    margin-top: 76px;
}

.carousel-item {
    height: 600px;
    position: relative;
    overflow: hidden;
}

/* Tablet */
@media (max-width: 991px) {
    .carousel-item {
        height: 550px;
    }
}

/* Tablet Small */
@media (max-width: 768px) {
    #heroCarousel {
        margin-top: 70px;
    }
    
    .carousel-item {
        height: 520px;
    }
    
    .carousel-caption {
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 85%;
        padding: 28px 30px;
        text-align: center;
        margin: 0 auto;
    }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translate(-50%, -60%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }
    
    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .slide-subtitle {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    .btn-hero {
        padding: 10px 26px;
        font-size: 0.9rem;
    }
}

/* Mobile Large (iPhone 14, Galaxy S21, dll) */
@media (max-width: 576px) {
    #heroCarousel {
        margin-top: 65px;
    }
    
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption {
        max-width: 90%;
        padding: 24px 20px;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    
    .slide-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .slide-subtitle {
        font-size: 0.85rem;
        margin-bottom: 14px;
        line-height: 1.5;
    }
    
    .btn-hero {
        padding: 9px 22px;
        font-size: 0.85rem;
    }
}

/* Mobile Medium (iPhone SE, dll) */
@media (max-width: 480px) {
    .carousel-item {
        height: 480px;
    }
    
    .carousel-caption {
        max-width: 92%;
        padding: 22px 18px;
    }
    
    .slide-title {
        font-size: 1.3rem;
        margin-bottom: 9px;
    }
    
    .slide-subtitle {
        font-size: 0.82rem;
        margin-bottom: 12px;
        line-height: 1.45;
    }
    
    .btn-hero {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

/* Mobile Small (iPhone 5, Galaxy Fold, dll) */
@media (max-width: 375px) {
    .carousel-item {
        height: 460px;
    }
    
    .carousel-caption {
        max-width: 94%;
        padding: 20px 16px;
    }
    
    .slide-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .slide-subtitle {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }
    
    .btn-hero {
        padding: 7px 18px;
        font-size: 0.76rem;
    }
}

/* Extra Small (Fold phones, very small screens) */
@media (max-width: 320px) {
    .carousel-item {
        height: 440px;
    }
    
    .carousel-caption {
        max-width: 96%;
        padding: 18px 14px;
    }
    
    .slide-title {
        font-size: 1.1rem;
        margin-bottom: 7px;
    }
    
    .slide-subtitle {
        font-size: 0.74rem;
        margin-bottom: 9px;
    }
    
    .btn-hero {
        padding: 6px 16px;
        font-size: 0.72rem;
    }
}

/* Pastikan caption tidak overflow dan tetap di dalam container */
.carousel-caption {
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Pastikan tombol tidak terpotong */
.btn-hero {
    white-space: nowrap;
    overflow: visible !important;
    box-sizing: border-box;
}

/* Fix untuk container di mobile - TETAP OVERFLOW HIDDEN */
@media (max-width: 576px) {
    .carousel-inner,
    .carousel,
    #heroCarousel {
        overflow: hidden !important;
    }
    
    /* Beri jarak pada carousel controls agar tidak overlap caption */
    .carousel-control-prev {
        left: 8px !important;
    }
    
    .carousel-control-next {
        right: 8px !important;
    }
}

/* ===============================
   STATS SECTION
   =============================== */
.stats-section.public {
    padding: 70px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #eef5ff 100%);
}

.stats-section.public .row > div {
    display: flex;
}

.stats-section.public .stat-card {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    width: 100%;
    min-height: 155px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stats-section.public .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.stats-section.public .stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.stat-icon.blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-icon.green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.stat-icon.purple { background: linear-gradient(135deg, #a855f7, #9333ea); }

.stats-section.public .stat-number {
    font-size: 30px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.stats-section.public .stat-label {
    margin-top: 6px;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

/* ================================================
   RESPONSIVE STATS - GRID 2x2 DI MOBILE
   ================================================ */
@media (max-width: 768px) {
    .stats-section {
        padding: 50px 0 !important;
    }
    
    /* Grid 2 kolom untuk tablet ke bawah */
    .stats-section .row > div {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .stat-card {
        padding: 25px 20px !important;
        min-height: 145px !important;
        gap: 18px !important;
    }
    
    .stat-icon {
        width: 58px !important;
        height: 58px !important;
    }
    
    .stat-icon i {
        font-size: 1.6rem !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.82rem !important;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 22px 18px !important;
        min-height: 140px !important;
    }
    
    .stat-icon {
        width: 54px !important;
        height: 54px !important;
    }
    
    .stat-icon i {
        font-size: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 1.6rem !important;
    }
    
    .stat-label {
        font-size: 0.78rem !important;
    }
}

@media (max-width: 400px) {
    .stat-card {
        padding: 20px 15px !important;
        min-height: 135px !important;
        gap: 15px !important;
    }
    
    .stat-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .stat-icon i {
        font-size: 1.4rem !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
}

/* ================================================
   BADGE KATEGORI
   ================================================ */
.badge-kategori {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-penting { 
    background: #dc3545; 
    color: white; 
}

.badge-berita { 
    background: #0d6efd; 
    color: white; 
}

.badge-baru { 
    background: #198754; 
    color: white; 
}

.badge-pengumuman { 
    background: #ffc107; 
    color: #000; 
}

/* ================================================
   NEWS SECTION
   ================================================ */
.news-section {
    background: white;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid #f1f1f1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: #ffd700;
}

.news-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    margin-bottom: 15px;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    background: linear-gradient(135deg, #ffd700, #F6AD55);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1A202C;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #ffd700;
}

.news-card-text {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-read-more:hover {
    gap: 12px;
    color: #0a58ca;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

.btn-all-news {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #F6AD55);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.btn-all-news:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
    color: #1a237e;
}

@media (max-width: 768px) {
    .news-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        margin-bottom: 40px;
    }
    
    .news-card-img {
        height: 200px;
    }
    
    .news-card-body {
        padding: 25px;
    }
    
    .news-card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .news-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 35px;
    }
    
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-card-img {
        height: 180px;
    }
    
    .news-card-body {
        padding: 20px;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
    
    .news-card-text {
        font-size: 0.9rem;
    }
    
    .btn-read-more {
        font-size: 0.85rem;
    }
    
    .btn-all-news {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* ================================================
   INFO SECTION
   ================================================ */
.info-section {
    background: white;
    padding: 80px 0;
}

.info-img-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.2);
}

.info-img-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,.4), transparent);
    transform: rotate(45deg);
    transition: all .8s;
}

.info-img-wrapper:hover::before {
    left: 100%;
}

.info-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .6s;
}

.info-img-wrapper:hover img {
    transform: scale(1.05);
}

.about-text {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #5a6c7d;
    text-align: justify;
    margin-bottom: 20px;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #F6AD55);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    border: none;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
    color: #1a237e;
}

@media (max-width: 768px) {
    .info-section {
        padding: 60px 0;
    }
    
    .about-text {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .info-section {
        padding: 50px 0;
    }
    
    .btn-primary-custom {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* ================================================
   QUICK MENU - RESPONSIVE 2x2 GRID
   ================================================ */
.quick-menu {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.quick-menu::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(57, 73, 171, 0.15) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.quick-menu::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(92, 107, 192, 0.15) 0%, transparent 70%);
    bottom: -250px;
    left: -250px;
    animation: float 8s ease-in-out infinite 4s;
}

.quick-menu-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,.1);
    transition: all .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quick-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity .5s;
}

.quick-menu-item:hover::before {
    opacity: 1;
}

.quick-menu-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0,0,0,.2);
}

.quick-menu-item i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    transition: all .5s;
    position: relative;
    z-index: 1;
}

.quick-menu-item:hover i {
    -webkit-text-fill-color: white;
    transform: scale(1.2) rotateY(360deg);
}

.quick-menu-item h5 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    transition: color .5s;
}

.quick-menu-item:hover h5 {
    color: white;
}

.quick-menu-item p {
    position: relative;
    z-index: 1;
    transition: color .5s;
    color: #5a6c7d;
    margin: 0;
    font-size: 0.95rem;
}

.quick-menu-item:hover p {
    color: rgba(255,255,255,.95);
}

/* ================================================
   RESPONSIVE QUICK MENU - GRID 2x2 DI MOBILE
   ================================================ */
@media (max-width: 991px) {
    .quick-menu {
        padding: 60px 0;
    }
    
    /* Grid 2 kolom untuk tablet ke bawah */
    .quick-menu .row > div {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .quick-menu-item {
        padding: 35px 25px;
        margin-bottom: 20px;
    }
    
    .quick-menu-item i {
        font-size: 3rem;
    }
    
    .quick-menu-item h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .quick-menu {
        padding: 50px 0;
    }
    
    /* Tetap 2 kolom di mobile */
    .quick-menu .row > div {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px;
    }
    
    .quick-menu-item {
        padding: 25px 15px;
        margin-bottom: 15px;
    }
    
    .quick-menu-item i {
        font-size: 2.3rem;
        margin-bottom: 12px;
    }
    
    .quick-menu-item h5 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .quick-menu-item p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (max-width: 400px) {
    .quick-menu-item {
        padding: 20px 12px;
    }
    
    .quick-menu-item i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .quick-menu-item h5 {
        font-size: 0.88rem;
    }
    
    .quick-menu-item p {
        font-size: 0.75rem;
    }
}

/* ================================================
   TOMBOL RESPONSIVE - TIDAK TERPOTONG DI MOBILE
   ================================================ */

/* Tombol Hero Carousel */
.btn-hero {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a237e;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Tombol Primary Custom (Info Section) */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #F6AD55);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    border: none;
    white-space: nowrap;
}

/* Tombol All News */
.btn-all-news {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #F6AD55);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    white-space: nowrap;
}

/* ================================================
   RESPONSIVE TOMBOL - UKURAN DISESUAIKAN
   ================================================ */
@media (max-width: 768px) {
    .btn-hero {
        padding: 9px 24px;
        font-size: 0.9rem;
    }
    
    .btn-primary-custom,
    .btn-all-news {
        padding: 13px 32px;
        font-size: 0.95rem;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .btn-hero {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .btn-primary-custom,
    .btn-all-news {
        padding: 12px 28px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    /* Pastikan container tidak overflow */
    .carousel-caption,
    .info-section .col-lg-6,
    .text-center {
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .btn-hero {
        padding: 7px 18px;
        font-size: 0.8rem;
    }
    
    .btn-primary-custom,
    .btn-all-news {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .btn-hero {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    
    .btn-primary-custom,
    .btn-all-news {
        padding: 9px 20px;
        font-size: 0.8rem;
    }
}

/* Hover Effect untuk Semua Tombol */
.btn-hero:hover,
.btn-primary-custom:hover,
.btn-all-news:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.btn-primary-custom:hover,
.btn-all-news:hover {
    color: #1a237e;
}

/* ================================================
   FIX OVERFLOW CONTAINER DI MOBILE
   ================================================ */
@media (max-width: 576px) {
    /* Pastikan container tidak potong tombol */
    .carousel-caption {
        padding: 20px 20px !important;
        max-width: 92% !important;
    }
    
    .info-section .container,
    .news-section .container,
    .quick-menu .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Spacing untuk tombol */
    .btn-primary-custom,
    .btn-all-news {
        margin-top: 10px;
    }
}

/* ================================================
   FOOTER - GELAP ELEGAN AGAK TERANG
   ================================================ */
footer {
    background: linear-gradient(135deg, #111111 0%, #222222 100%);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 20px;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #ffd700;
}

footer p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all .3s;
}

footer a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    margin: 0 8px;
    transition: all .3s;
    backdrop-filter: blur(6px);
    color: #fff;
}

.social-links a:hover {
    background: #ffd700;
    color: #111111;
    transform: translateY(-5px) rotate(360deg);
}

footer hr {
    border-color: rgba(255,255,255,0.15);
    margin: 30px 0 20px;
}

/* ================================================
   ANIMATIONS
   ================================================ */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   LANDSCAPE MODE
   ================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .carousel-item {
        height: 100vh;
    }
    
    .carousel-caption {
        padding: 15px 20px;
    }
    
    .slide-title {
        font-size: 1.3rem;
    }
    
    .slide-subtitle {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}

/* ================================================
   PRELOADER
   ================================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 20000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: opacity .3s ease !important;
}

.spinner-border {
    color: #ffffff !important;
    border-color: #ffffff !important;
    border-right-color: transparent !important;
}

.preloader p {
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-top: 20px !important;
    letter-spacing: 0.3px !important;
}

/* Caption Adjustment - Tidak Overlap dengan Controls */
@media (max-width: 576px) {
    .carousel-caption {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}

/* ================================================
   CAROUSEL CONTROLS - VERSI FINAL BERSIH
   ================================================ */

.carousel-control-prev,
.carousel-control-next {
    width: 45px !important;
    height: 45px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0.9 !important;
    z-index: 999 !important;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
}

.carousel-control-prev {
    left: 15px !important;
    right: auto !important;
}

.carousel-control-next {
    right: 15px !important;
    left: auto !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 45px !important;
    height: 45px !important;
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    border-radius: 50% !important;
    display: block !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5) !important;
    background-size: 50% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: all 0.3s ease !important;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a237e'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a237e'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.7) !important;
}

/* Desktop */
@media (min-width: 992px) {
    .carousel-control-prev,
    .carousel-control-next {
        opacity: 0 !important;
    }
    .carousel:hover .carousel-control-prev,
    .carousel:hover .carousel-control-next {
        opacity: 1 !important;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 42px !important;
        height: 42px !important;
    }
    .carousel-control-prev { left: 12px !important; }
    .carousel-control-next { right: 12px !important; }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 42px !important;
        height: 42px !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px !important;
        height: 40px !important;
    }
    .carousel-control-prev { left: 10px !important; }
    .carousel-control-next { right: 10px !important; }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 38px !important;
        height: 38px !important;
    }
    .carousel-control-prev { left: 8px !important; }
    .carousel-control-next { right: 8px !important; }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 38px !important;
        height: 38px !important;
    }
}

/* Container Fix */
#heroCarousel,
#heroCarousel .carousel,
#heroCarousel .carousel-inner {
    overflow: hidden !important;
}