/*
 * KUA Kecamatan Inuman - Custom Styles
 * Author: KUA Inuman
 * Version: 2.0.1
 */

/* Import Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global Styles */
:root {
    /* Warna Hijau Kemenag RI */
    --primary: #1A5F2B;  /* Hijau Kemenag */
    --primary-light: #2E7D32;
    --primary-dark: #12401B;
    --secondary: #FFC107;  /* Kuning untuk aksen */
    --accent: #E53935;    /* Merah untuk aksen peringatan */
    --light: #f8f9fa;
    --dark: #212121;
    --success: #1A5F2B;   /* Menggunakan hijau Kemenag */
    --info: #1976D2;
    --warning: #FFA000;
    --danger: #D32F2F;
    --gray: #757575;
    --gray-light: #E0E0E0;
    --gray-dark: #424242;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1030;
}

/* Sembunyikan top bar di perangkat mobile */
@media (max-width: 991.98px) {
    .top-bar {
        display: none;
    }
    
    /* Sesuaikan margin top navbar di mobile */
    .navbar {
        margin-top: 0 !important;
    }
    
    /* Gaya untuk offcanvas gelap */
    .offcanvas {
        width: 80% !important;
        background-color: #1a1a1a;
        color: white;
    }
    
    .offcanvas-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 1.5rem;
    }
    
    .offcanvas-body {
        padding: 0;
    }
    
    /* Warna teks dan ikon di offcanvas */
    .offcanvas-body .nav-link,
    .offcanvas-body .dropdown-item,
    .offcanvas-body .dropdown-toggle::after {
        color: white;
        transition: all 0.3s ease;
    }
    
    .offcanvas-body .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-weight: 400;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .offcanvas-body .nav-link:hover,
    .offcanvas-body .nav-link:focus,
    .offcanvas-body .nav-link.active {
        background-color: rgba(26, 95, 43, 0.7);
        color: white !important;
        padding-left: 1.8rem;
    }
    
    /* Animasi dropdown arrow */
    .offcanvas-body .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }
    
    .offcanvas-body .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    .offcanvas-body .dropdown-menu {
        background-color: #222;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }
    
    .offcanvas-body .dropdown-item {
        padding: 0.8rem 2.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.95rem;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .offcanvas-body .dropdown-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background-color: transparent;
        transition: all 0.3s ease;
    }
    
    .offcanvas-body .dropdown-item:hover,
    .offcanvas-body .dropdown-item:focus {
        background-color: rgba(26, 95, 43, 0.9);
        color: white !important;
        padding-left: 2.8rem;
    }
    
    .offcanvas-body .dropdown-item:hover::before,
    .offcanvas-body .dropdown-item:focus::before {
        background-color: #4CAF50;
    }
    
    .offcanvas-body .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Perbaikan tampilan dropdown di mobile */
    .dropdown-toggle::after {
        float: right;
        margin-top: 0.5em;
    }
    
    .dropdown-menu.show {
        position: static !important;
        transform: none !important;
        width: 100%;
    }
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-bar a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.top-bar i {
    margin-right: 5px;
}

/* Header */
header.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
}

/* Navbar */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.3s ease-in-out;
    width: 100%;
}

/* Navbar */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    background-color: var(--primary);
    z-index: 1020;
}

/* Navbar untuk halaman beranda */
.home-page .navbar {
    background-color: transparent;
    position: absolute;
    top: 0.8rem;
    left: 0;
    right: 0;
    transition: all 0.3s ease;
}

/* Efek teks untuk navbar di halaman beranda */
.home-page .navbar .navbar-brand span,
.home-page .navbar .navbar-brand small {
    color: white !important;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8),
                 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Navbar saat di-scroll */
.navbar.scrolled {
    position: fixed;
    top: 0;
    background-color: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Padding untuk konten utama */
.main-content {
    padding-top: 20px;
}

/* Padding tambahan untuk halaman beranda */
.home-page .main-content {
    padding-top: 0;
}

/* Style untuk link navbar */
.navbar .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

/* Efek hover untuk link navbar */
.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Style untuk link aktif */
.navbar .nav-link.active,
.navbar .navbar-nav > li.active > a,
.navbar .navbar-nav > li.active > .dropdown-item,
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
    color: var(--dark) !important;
    background-color: var(--secondary) !important; /* Gold color */
    font-weight: 600;
}

/* Hover state for all nav items */
.navbar .nav-link:hover,
.navbar .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: var(--secondary) !important;
}

/* Active underline indicator */
.navbar .navbar-nav > li > a::after,
.navbar .navbar-nav > li.active > a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.navbar .navbar-nav > li:hover > a::after,
.navbar .navbar-nav > li.active > a::after {
    width: calc(100% - 2rem);
}

/* Dropdown menu styles */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

/* Ensure text remains white on hover/active */
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
    color: white !important;
}

/* Style untuk tombol login di navbar */
.navbar .btn-outline-primary {
    color: #FFC107;
    border: 2px solid #FFC107;
    margin-left: 1rem;
    margin-top: 0 !important;
    align-self: center;
    padding: 0.4rem 1.5rem;
    line-height: 1.5;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #FFC107, #FF9800);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: skewX(-15deg);
}

.navbar .btn-outline-primary:hover,
.navbar .btn-outline-primary:focus {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.navbar .btn-outline-primary:hover::before,
.navbar .btn-outline-primary:focus::before {
    width: 120%;
    left: -10%;
}

/* Efek ripple */
.navbar .btn-outline-primary::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
    z-index: -1;
}

.navbar .btn-outline-primary:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Topbar */
.topbar {
    font-size: 0.85rem;
    background-color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    position: relative;
    z-index: 10000;
}

.topbar a:hover {
    color: var(--secondary) !important;
    text-decoration: none;
}

.topbar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.topbar .social-links a:hover {
    background-color: var(--secondary);
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.topbar i {
    color: var(--secondary);
    margin-right: 5px;
}

/* Style untuk navbar brand */
.navbar-brand {
    font-weight: 700;
    margin-right: 0;
}

/* Hero section */
.hero-section {
    padding: 5rem 0 3rem;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    margin-right: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background-color: #1A5F2B;
    border-color: #1A5F2B;
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
}

.hero-section .container {
    padding-top: 60px; /* Dikurangi dari 100px menjadi 60px */
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    margin-right: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Carousel dalam hero */
#heroCarousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1rem;
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
}

.carousel-caption h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Mengatasi margin pada perangkat mobile */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 120px 0 60px;
        margin-top: -60px;
    }
}

/* Menambahkan spacing untuk konten di bawah hero */
.main-content {
    position: relative;
    z-index: 2;
    background: #fff;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background-color: #fff;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
    text-decoration: none;
}

/* Navbar */
.navbar {
    padding: 0.8rem 0;
    background-color: transparent !important;
    box-shadow: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Navbar saat di-scroll */
.navbar.scrolled {
    background-color: #1A5F2B !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

/* Warna teks saat di-scroll */
.navbar.scrolled .navbar-brand .fw-bold,
.navbar.scrolled .navbar-brand small {
    color: white !important;
    opacity: 1 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Navbar di halaman selain beranda */
body:not(.home-page) .navbar {
    background-color: #1A5F2B !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    margin-right: 10px;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar .navbar-nav .nav-link {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link:focus::after,
.navbar .navbar-nav .nav-link.active::after {
    width: calc(100% - 2rem);
    background-color: #4CAF50;
    height: 4px;
}

.dropdown-menu {
    background-color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.dropdown-item {
    color: #e0e0e0;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #4CAF50;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(26, 95, 43, 0.9);
    color: white;
    padding-left: 2rem;
}

.dropdown-item:hover::before,
.dropdown-item:focus::before {
    transform: scaleY(1);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    text-transform: none;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover, 
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 95, 43, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 95, 43, 0.2);
}

.btn-lg {
    padding: 0.8rem 2.2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transform: translateY(20px);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Back to top icon animation */
.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Padding untuk konten utama */
.main-content {
    padding-top: 20px; /* Dikurangi karena sudah ada padding di body */
}

.home-page .main-content {
    padding-top: 10px; /* Disesuaikan untuk halaman beranda */
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 0 4rem;
    color: white;
    margin-top: 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Background image with zoom effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/logo/sampul.jpg) no-repeat center center/cover;
    animation: zoomIn 8s ease-out forwards;
    z-index: -2;
    filter: brightness(1.2); /* Increase brightness of the background image */
}

/* Minimal color overlay for better text readability */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.15) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Remove pattern overlay for maximum brightness */
.hero-section .pattern-overlay {
    display: none; /* Completely remove the pattern overlay */
}

@keyframes zoomIn {
    0% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure content stays above overlays */
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn {
    margin: 0.5rem;
    min-width: 160px;
}

.hero-buttons .btn-outline-light:hover {
    color: var(--primary) !important;
}

/* Section Styling */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 4rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 2.2rem;
    text-align: center;
    width: 100%;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary);
    bottom: -15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
    line-height: 1.7;
}

.section-light {
    background-color: var(--light);
}

.section-primary {
    background-color: var(--primary);
    color: white;
}

.section-primary .section-title,
.section-primary .section-subtitle,
.section-primary h1,
.section-primary h2,
.section-primary h3,
.section-primary h4,
.section-primary h5,
.section-primary h6 {
    color: white;
}

.section-primary .section-title:after {
    background: white;
}

/* Agenda Section */
#agenda {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

#agenda .card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#agenda .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

#agenda .card-header {
    border-radius: 0 !important;
    padding: 1.25rem 1.5rem;
    border: none;
    position: relative;
}

#agenda .card-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

#agenda .card-header i {
    margin-right: 10px;
    font-size: 1.1em;
}

#agenda .card-body {
    padding: 1.5rem;
}

.agenda-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.agenda-item:last-child {
    border-bottom: none;
}

.agenda-item:hover {
    transform: translateX(5px);
}

.agenda-item h5 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.agenda-item .text-muted {
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
}

.agenda-item i {
    width: 16px;
    text-align: center;
    margin-right: 5px;
    color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    #agenda {
        padding: 4rem 0;
    }
    
    #agenda .card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    #agenda .card-header h4 {
        font-size: 1.1rem;
    }
    
    .agenda-item h5 {
        font-size: 0.95rem;
    }
}

.section-primary .section-title:after {
    background: var(--secondary);
}

/* Card Styling */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1.25rem;
    transition: var(--transition);
}

.card:hover .card-title {
    color: var(--primary);
}

.card-text {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.75rem;
}

/* Card Primary */
.card-primary {
    background: var(--primary);
    color: white;
}

.card-primary .card-title,
.card-primary .card-text,
.card-primary .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.card-primary .card-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Services Section */
.services-section {
    position: relative;
    overflow: hidden;
    background-color: #f9fafb;
}

.services-section .section-title {
    margin-bottom: 3rem;
}

.service-box {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
    z-index: -1;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-box:hover:before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.75rem;
    background: rgba(26, 95, 43, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.service-box:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.service-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* News & Announcements */
.news-section .card,
.announcement-section .card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-section .card:hover,
.announcement-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-date {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.news-date i,
.announcement-date i {
    margin-right: 5px;
    color: var(--primary);
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.news-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.announcement-item {
    padding: 1.25rem 0;
    border-bottom: 1px dashed #eee;
    transition: var(--transition);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    transform: translateX(5px);
}

.announcement-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--dark);
    transition: var(--transition);
    font-size: 1rem;
}

.announcement-item:hover .announcement-title {
    color: var(--primary);
}

.announcement-date {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
}

/* Utility Classes */
.bg-light {
    background-color: #f9fafb !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-white {
    color: #fff !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.text-center {
    text-align: center !important;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2.5rem;
    }
    
    .service-box {
        margin-bottom: 2rem;
    }
    
    .news-section .card,
    .announcement-section .card {
        margin-bottom: 0.7rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Style untuk teks KUA di navbar */
.kua-title {
    background: linear-gradient(90deg, #ffc107, #ffd700, #ffc107);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    display: inline-block;
}

@keyframes shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Dropdown Menu Layanan */
.dropdown-menu {
    min-width: 280px; /* Lebar minimum dropdown */
    padding: 0.5rem 0;
    border: none;
    background-color: #2E7D32; /* Warna latar belakang hijau */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
    color: #fff; /* Warna teks putih */
    font-size: 0.9rem;
    white-space: normal; /* Memungkinkan teks untuk wrap */
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Efek hover lebih terang */
    color: #fff;
}

.dropdown-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8) !important; /* Warna header lebih terang */
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    margin: 0;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(255, 255, 255, 0.1); /* Warna garis pembatas lebih halus */
}

/* Form Styles */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    height: calc(2.5rem + 2px);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(26, 95, 43, 0.25);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.news-section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary);
    padding-bottom: 10px;
}

.news-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.form-text {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Custom Checkbox & Radio */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(26, 95, 43, 0.25);
}

/* Input Group */
.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: var(--gray);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
}

.alert-primary {
    background-color: rgba(26, 95, 43, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.alert-success {
    background-color: rgba(26, 95, 43, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 3px solid #ffc107;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 3px solid #dc3545;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 50px;
    font-size: 0.8rem;
}

.badge-primary {
    background-color: var(--primary);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border: 1px solid #e0e0e0;
    margin: 0 3px;
    border-radius: var(--border-radius) !important;
    min-width: 38px;
    text-align: center;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: rgba(26, 95, 43, 0.1);
    border-color: #e0e0e0;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-item a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray);
}

/* Footer */
.footer {
    background-color: #1e3a29;
    color: #fff;
    padding: 4rem 0 2rem;
}

/* Efek Hover untuk Tautan Cepat */
.footer .quick-links a {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 2px 0;
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
}

.footer .quick-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: all 0.3s ease-in-out;
}

.footer .quick-links a:hover {
    color: #fff !important;
    padding-left: 8px;
}

.footer .quick-links a:hover::before {
    width: 100%;
}

/* Efek hover untuk ikon media sosial */
.footer .social-links a {
    display: inline-block;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.7) !important;
    margin: 0 5px;
    font-size: 1.1rem;
}

.footer .social-links a:hover {
    color: var(--primary) !important;
    transform: translateY(-3px);
}

.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    transition: var(--transition);
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    text-decoration: none;
}

.widget-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links i {
    color: var(--primary);
    margin-right: 5px;
    font-size: 0.8em;
    transition: var(--transition);
}

.footer-links a:hover i {
    color: #fff;
}

.footer-info {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.footer-info li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.footer-info i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 4px;
    min-width: 16px;
    text-align: center;
}

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.map-iframe {
    width: 100%;
    height: 200px;
    border: 0;
}

.copyright {
    background-color: #17281f;
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Print Styles */
@media print {
    .no-print,
    .navbar,
    .footer {
        display: none !important;
    }
    
    body {
        padding: 20px;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    a[href]:after {
        content: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .table {
        page-break-inside: auto;
    }
    
    .table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .table thead {
        display: table-header-group;
    }
    
    .table tbody {
        display: table-row-group;
    }
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 0;
    position: relative;
}

.footer-widget {
    margin-bottom: 3rem;
}

.footer-widget h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-widget h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    transition: var(--transition);
    position: relative;
    padding-left: 20px;
}

.footer-links a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

.contact-info {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-info li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-info i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--secondary);
    width: 25px;
    text-align: center;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--secondary);
    font-weight: 500;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: none;
}

.main-footer ul li {
    margin-bottom: 8px;
}

.main-footer a {
    color: #666;
}

.main-footer a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Utility Classes */
/* Team Section */
#tim-kami {
    position: relative;
    overflow: hidden;
    padding: 50px 0;
}

.team-slider-container {
    position: relative;
    width: 100%;
    padding: 0 50px;
}

.team-slider {
    width: 100%;
    padding: 20px 0;
}

.team-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 10px;
    position: relative;
}

.team-img-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-info {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
    z-index: 2;
}

.team-info h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.team-info p {
    margin-bottom: 0;
    line-height: 1.6;
    color: #555;
    font-size: 0.9rem;
}

.team-info .position {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Swiper Customization */
.team-slider .swiper-wrapper {
    padding: 20px 0;
}

.team-slider .swiper-slide {
    height: auto;
    transition: all 0.4s ease;
    opacity: 0.5;
    transform: scale(0.9);
    filter: blur(2px);
}

.team-slider .swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 10;
    filter: none;
}

.team-slider .swiper-slide-prev,
.team-slider .swiper-slide-next {
    opacity: 0.7;
    transform: scale(0.95);
    filter: blur(1px);
}

/* Navigation Buttons */
.team-slider .swiper-button-next,
.team-slider .swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
}

.team-slider-container:hover .swiper-button-next,
.team-slider-container:hover .swiper-button-prev {
    opacity: 1;
    visibility: visible;
}

.team-slider .swiper-button-next {
    right: 0;
}

.team-slider .swiper-button-prev {
    left: 0;
}

.team-slider .swiper-button-next:after,
.team-slider .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* Pagination */
.team-slider .swiper-pagination {
    position: relative;
    margin-top: 30px;
    bottom: 0;
}

.team-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.team-slider .swiper-pagination-bullet-active {
    background: var(--primary);
    transform: scale(1.3);
    width: 30px;
    border-radius: 5px;
}

/* Hover Effects */
.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .team-slider .swiper-slide {
        transform: scale(0.85);
    }
    
    .team-slider .swiper-slide-active {
        transform: scale(1);
    }
}

@media (max-width: 991px) {
    .team-slider-container {
        padding: 0 40px;
    }
    
    .team-slider .swiper-slide {
        opacity: 1;
        transform: scale(0.9);
        filter: none;
    }
    
    .team-slider .swiper-slide-active {
        transform: scale(1);
    }
    
    .team-slider .swiper-button-next,
    .team-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .team-slider-container {
        padding: 0 20px;
    }
    
    .team-slider .swiper-slide {
        transform: scale(1);
    }
    
    .team-slider .swiper-button-next,
    .team-slider .swiper-button-prev {
        display: none;
    }
    
    .team-slider .swiper-pagination {
        margin-top: 20px;
    }

    /* Ensure precise, consistent image height for team cards on mobile */
    .team-img-wrapper {
        height: auto !important; /* override any fixed heights */
        aspect-ratio: 4 / 5;     /* portrait ratio for staff photos */
        width: 100%;
    }
    .team-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
}

/* Video Cards */
.video-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-card .card-img-top {
    transition: all 0.3s ease;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.video-card:hover .card-img-top {
    transform: scale(1.05);
}

.video-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-card .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-card .card-body {
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.video-card:hover .card-body {
    background-color: #f8f9fa;
}

.video-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
}

/* Gallery Section */
.gallery-item {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    height: 200px;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    color: white;
}

.gallery-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:hover .gallery-preview {
    opacity: 1;
}

.gallery-item:hover .gallery-preview {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.lb-data .lb-close {
    margin-top: 20px;
}

/* Responsive Gallery */
@media (max-width: 767.98px) {
    .gallery-item {
        margin-bottom: 15px;
    }
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Topbar */
.bg-primary {
    background-color: #1A5F2B !important;
}

/* Adjust hero section padding */
.hero-section {
    padding: 6rem 0 4rem !important;
}

/* Social icons in topbar */
.bg-primary a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.bg-primary a:hover {
    opacity: 0.8;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .carousel-item img {
        height: 250px;
    }
    
    .content-header h1 {
        font-size: 1.8rem;
    }
    
    .main-sidebar {
        position: fixed;
        z-index: 1038;
        width: 250px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar-open .main-sidebar {
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: 0 !important;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Vertical Divider */
.vertical-divider {
    width: 1px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 10px;
}

/* Header Text Styles */
.header-text {
    line-height: 1.1;
    font-family: 'Poppins', sans-serif;
}

.header-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.1rem;
}

.header-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.1rem;
    text-transform: uppercase;
}

.header-location {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
}

/* Adjust navbar brand for better alignment */
.navbar-brand {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Agenda Timeline */
.timeline {
    position: relative;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.timeline > div {
    position: relative;
    margin-bottom: 15px;
    padding-left: 30px;
}

.timeline > div > i {
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    color: #fff;
    font-size: 10px;
}

.timeline > .time-label > span {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: #fff;
}

.timeline-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 0 0 15px 0;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timeline-header {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #f4f4f4;
}

/* Mobile-friendly adjustments for hero section */
@media (max-width: 767.98px) {
    .hero-section {
      min-height: 100svh; /* Use small viewport for mobile browser UI */
      min-height: 100vh;  /* Fallback */
      padding: 4rem 0 2.5rem !important;
    }

    .hero-section .container {
      padding-top: 30px;
      padding-bottom: 30px;
    }

    /* Badge welcome text */
    .hero-section .badge {
      font-size: 0.8rem;
      padding: 6px 10px;
      border-radius: 999px;
    }

    /* Title and subtitle */
    .hero-section h1.display-4 {
      font-size: 1.75rem;
      line-height: 1.25;
      margin-bottom: 0.75rem;
      text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    }

    .hero-section p.lead {
      font-size: 0.95rem;
      margin-bottom: 1.25rem;
      opacity: 0.95;
      text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    }

    /* Buttons: stack and full width */
    .hero-buttons {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      justify-items: stretch;
    }

    .hero-buttons .btn {
      width: 100%;
      margin: 0 !important;
      padding: 0.8rem 1rem;
      font-size: 0.95rem;
    }

    /* Remove negative overlap under hero on mobile (inline style override) */
    section.py-0[style*="margin-top"] {
      margin-top: 0 !important;
    }
  }

  @media (max-width: 575.98px) {
    .hero-section h1.display-4 {
      font-size: 1.5rem;
    }
    .hero-section p.lead {
      font-size: 0.9rem;
    }
  }

.timeline-time {
    color: #999;
    float: right;
    font-size: 0.9rem;
}

.timeline-body {
    padding: 10px 0;
}

.timeline-footer {
    padding-top: 10px;
    border-top: 1px solid #f4f4f4;
    font-size: 0.9rem;
    color: #777;
}

.agenda-description {
    line-height: 1.6;
    color: #444;
}

.agenda-description p:last-child {
    margin-bottom: 0;
}
