/* Styling Navbar */
.navbar {
background: linear-gradient(45deg, #1E3C72, #2A5298); /* Gradient Navy Blue */
padding: 20px 0; /* Tambah tinggi navbar */
transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.navbar .navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Styling Dropdown */
.dropdown-menu {
    background: linear-gradient(45deg, #1E3C72, #2A5298); /* Gradient Navy Blue */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.dropdown-item {
    color: #ffffff;
    transition: background 0.3s ease-in-out;
}

.dropdown-item:hover {
    background: #2A5298; /* Warna merah saat hover */
    color: #fff;
}

/* Styling untuk Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -5px;
    display: none;
    position: absolute;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 500px; /* Sesuaikan tinggi slider */
    object-fit: cover; /* Memastikan gambar tidak terdistorsi */
    border-radius: 10px; /* Opsional: membuat sudut lebih halus */
}


/* Section Styling */
#about {
    background: #ffffff;
    padding: 80px 0;
    text-align: center;
}

/* Navbar Style Tabs */
.custom-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    border-bottom: none;
    margin-bottom: 30px;
}

.custom-tabs .nav-link {
    background: #f8f9fa;
    border: 2px solid #0d6efd;
    padding: 12px 25px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #0d6efd;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}

.custom-tabs .nav-link:hover {
    background: #0d6efd;
    color: white;
}

.custom-tabs .nav-link.active {
    background: #0d6efd;
    color: white;
    font-weight: bold;
    border: 2px solid #0d6efd;
    transform: scale(1.05);
}

/* Elegant Tab Content */
.tab-content {
    background: #ffffff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease-in-out;
}

.tab-pane {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Icon Styling */
.tab-icon {
    font-size: 40px;
    color: #0d6efd;
    margin-bottom: 15px;
}

/* Heading & Text Styling */
.tab-content h3 {
    font-weight: bold;
    margin-bottom: 15px;
}

.tab-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* Styling Heading dengan Garis Kanan & Kiri */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, transparent, #0d6efd, transparent);
    margin: 0 15px;
}

    /* Styling Section */
#features {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

/* Title Styling */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, transparent, #0d6efd, transparent);
    margin: 0 15px;
}

/* Feature Cards */
.feature-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.15);
}

/* Feature Icons */
.feature-icon {
    font-size: 50px;
    color: #0d6efd;
    margin-bottom: 15px;
}

/* Heading & Text Styling */
.feature-card h4 {
    font-weight: bold;
    color: #333;
}

.feature-card p {
    color: #555;
    font-size: 1.1rem;
}

    /* Styling Section */
#news {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

/* Title Styling */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, transparent, #0d6efd, transparent);
    margin: 0 15px;
}

/* News Cards */
.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.15);
}

/* Image Hover Effect */
.news-card img {
    transition: transform 0.3s ease-in-out;
}

.news-card:hover img {
    transform: scale(1.1);
}

.image-wrapper {
    width: 100%;
    height: 250px; /* Sesuaikan tinggi agar seragam */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Menjaga proporsi tanpa cropping */
}

/* Button Styling */
.btn-primary {
    background: #0d6efd;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: scale(1.05);
}

/* Pegawai Desa Styling */
.pegawai-desa {
background: #f8f9fa;
padding: 60px 0;
}

.pegawai-desa h2 {
font-weight: bold;
text-transform: uppercase;
color: #0d6efd; /* Sesuaikan dengan warna navbar */
text-align: center;
margin-bottom: 40px;
position: relative;
}

.pegawai-desa h2::after {
content: "";
display: block;
width: 80px;
height: 3px;
background: #0d6efd;
margin: 10px auto;
}

.pegawai-card {
background: #ffffff;
border-radius: 10px;
padding: 20px;
text-align: center;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pegawai-card:hover {
transform: translateY(-5px);
box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

.pegawai-card img {
width: 100px;
height: 100px;
border-radius: 50%;
object-fit: cover;
border: 4px solid #0d6efd;
}

.pegawai-card h5 {
font-size: 1.2rem;
font-weight: bold;
margin-top: 15px;
color: #333;
}

.pegawai-card p {
font-size: 0.9rem;
color: #666;
margin-bottom: 5px;
}

.pegawai-card .contact {
font-size: 0.85rem;
color: #0d6efd;
text-decoration: none;
display: inline-block;
margin-top: 10px;
}

.pegawai-card .contact:hover {
text-decoration: underline;
}

/* Footer Styling */
.footer {
    background: #0d0d0d;
    color: #ffffff;
    padding: 50px 0;
}

.footer h5 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f8f9fa;
    margin-bottom: 20px;
}

.footer p {
    font-size: 0.9rem;
    color: #b3b3b3;
}

.footer a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #0d6efd;
}

/* Social Icons */
.footer .social-icons a {
    font-size: 1.4rem;
    margin: 0 10px;
    display: inline-block;
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social-icons a:hover {
    color: #0d6efd;
    transform: translateY(-3px);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 20px;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #888;
}

.nav-pills .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}
.nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}