html,
body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
}

.container,
.row {
    overflow: visible !important;
}
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --gray-text: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #4cc9f0);
}

body {
    background-color: #f5f7fb;
    color: var(--dark-text);
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed; /* ubah sticky jadi fixed */
    top: 0;
    left: 0;
    width: 100%; /* biar full width */
    z-index: 1000;
    padding: 10px 0;
}
/* Style dasar link */
.main-header .nav-link {
    position: relative;
    padding: 8px 15px 5px;
    transition: color 0.3s ease;
}

/* Animasi garis bawah saat hover */
.main-header .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #0d6efd;
    transition: width 0.3s ease;
}

/* Saat hover garis muncul */
.main-header .nav-link:hover::after {
    width: 100%;
}

/* Jika active: garis langsung ada, tanpa animasi */
.main-header .nav-link.active {
    color: #0d6efd !important;
}

.main-header .nav-link.active::after {
    width: 100%; /* garis langsung full */
    transition: none; /* tidak ada animasi */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    color: var(--dark-text);
    transition: var(--transition);
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::before {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0;
    color: white;
    overflow: hidden;
}

/* Setelah load, tambahin class untuk aktifkan gradient */

/* Konten tetap di atas */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Keyframes smooth blur fade */
@keyframes bgSmoothIn {
    from {
        filter: blur(30px);
        opacity: 0;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}


.hero-title {
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}


.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}
.hero-slide {

    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
}
.hero-title, 
.hero-subtitle, 
.hero-description {
    color: #fff; /* biar kontras */
}

#heroTextWrapper .hero-slide {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
#heroTextWrapper .hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}


/* Card Styles */
.modern-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    border: none;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Login Form Styles */
.login-container {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.form-control {
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid #e1e5eb;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary:hover {
    background: linear-gradient(
        to right,
        var(--secondary-color),
        var(--primary-color)
    );
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Article Styles */
.articles {
    padding: 5rem 0;
    background-color: #fdfbfe;
}

.article-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.modern-card:hover .article-img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.8rem;
}

.article-title {
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark-text);
    font-size: 1.3rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-meta {
    color: var(--gray-text);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}



.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(4px);
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
}

.section-title:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transform: translateX(-50%);
}

/* Footer */
.footer {
    background: #1a2236;
    color: #e9ecef;
    padding: 40px 0 20px;
}

.footer .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer .footer-section {
    flex: 1;
    min-width: 250px;
}

.footer .footer-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links li {
    margin-bottom: 8px;
}

.footer .footer-links a {
    color: #e9ecef;
    text-decoration: none;
    transition: color 0.3s;
}

.footer .footer-links a:hover {
    color: #4b6cb7;
}

.footer .social-icons a {
    color: #e9ecef;
    margin-right: 10px;
    font-size: 20px;
    transition: color 0.3s;
}

.footer .social-icons a:hover {
    color: #4b6cb7;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    padding-top: 15px;
    font-size: 14px;
    color: #aaa;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 70px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .login-container {
        margin-top: 2rem;
    }

    .nav {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadein {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}
.delay-2 {
    animation-delay: 0.4s;
}
.delay-3 {
    animation-delay: 0.6s;
}

/* Wrapper scroll horizontal */
.articles-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
}

/* Hilangkan scrollbar */
.articles-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Kartu artikel */
.article-card {
    flex: 0 0 280px; /* setiap kartu fix 280px */
    min-width: 280px;
    max-width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-6px);
}

/* Gambar artikel */
.article-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Logo */
.article-logo-wrapper {
    position: relative;
    margin-top: -35px;
    display: flex;
    justify-content: center;
}
.article-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
}
.scroll-btn i {
    font-size: 18px;
}
.prev-btn {
    left: -15px;
}
.next-btn {
    right: -15px;
}
.article-title {
    font-size: 1rem; /* atur sesuai desain */
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em; /* biar tinggi card tetap konsisten */
}
.artikel-desk {
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.artikel-desk p {
    margin-bottom: 1.2rem;
}

.artikel-desk h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #222;
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
}

.artikel-desk blockquote {
    font-style: italic;
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: #555;
}
/* ========================================
   SLIDER FULL - GESER SELURUH CONTAINER
   ======================================== */
.slider-full-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider-full-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    width: 200%;
}

.slider-full-slide {
    width: 50%;
    flex-shrink: 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Background berbeda untuk tiap slide (opsional) */
.slide-1 {
    background: transparent;
}

.slide-2 {
    background: transparent;
}

/* Acara Card Slide */
.acara-card-slide {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-left: 4px solid #7C3AED;
    transition: all 0.3s ease;
}

.acara-card-slide:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(6px);
}

.acara-title-slide {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.acara-date-slide {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.acara-place-slide {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.info-card-slide {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 30px 20px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Navigation */
.slider-nav-full-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 10;
    padding-bottom: 20px;
}

.slider-btn-full {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.slider-btn-full:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.slider-btn-full:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

.slider-dots-full {
    display: flex;
    gap: 12px;
}

.dot-full {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot-full.active {
    background: #7C3AED;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.dot-full:hover {
    background: rgba(255,255,255,0.5);
}

.slider-counter-full {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .slider-full-slide {
        min-height: auto;
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .slider-btn-full {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .dot-full {
        width: 10px;
        height: 10px;
    }
    
    .slider-nav-full-container {
        gap: 12px;
        margin-top: 15px;
    }
    
    .slider-full-slide {
        padding: 20px 0;
        min-height: auto;
    }
}
.slide-1 {
    background: 
        linear-gradient(rgba(13, 110, 253, 0.75), rgba(13, 110, 253, 0.85)),
        url("/assets/img/gedung.jpg") no-repeat center center/cover;
    background-blend-mode: overlay;
    position: relative;
}

/* Background untuk Slide 2 - Clouds */
.slide-2 {
    background: 
        linear-gradient(rgba(42, 27, 110, 0.75), rgba(37, 24, 95, 0.85)),
        url("/assets/img/clouds.png") no-repeat center center/cover;
    background-blend-mode: overlay;
    position: relative;
}

/* Efek overlay gelap agar teks tetap terbaca */
.slide-1::after,
.slide-2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

/* Konten di atas background */
.slide-1 .container,
.slide-2 .container {
    position: relative;
    z-index: 2;
}

/* Animasi fade saat berganti slide */
.slider-full-slide {
    transition: background 0.7s ease;
}

/* Responsive background */
@media (max-width: 768px) {
    .slide-1 {
        background: 
            linear-gradient(rgba(13, 110, 253, 0.8), rgba(13, 110, 253, 0.9)),
            url("/assets/img/gedung.jpg") no-repeat center center/cover;
        background-blend-mode: overlay;
    }
    
    .slide-2 {
        background: 
            linear-gradient(rgba(42, 27, 110, 0.8), rgba(37, 24, 95, 0.9)),
            url("/assets/img/clouds.png") no-repeat center center/cover;
        background-blend-mode: overlay;
    }
}