body {
    font-family: "Open Sans", sans-serif;
    color: #444;
}

/* Landing Page */
@media (max-width: 768px) {
    h2 {
        font-size: 1.75rem;
    }
    h5 {
        font-size: 1.1rem;
    }
    .card-text {
        font-size: 0.9rem;
    }
}

/* Navbar Improvements */
/* Navbar pada saat tidak discroll */
.navbar {
    transition: top 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar ketika dicroll akan memiliki bayangan */
.navbar.scrolled {
    top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand h4 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .navbar-brand h4 {
        font-size: 1rem;
    }
}

/* Carousel Improvements */
.carousel-item {
    height: 80vh;
    min-height: 300px;
    max-height: 500px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Improvements */
.smart-card,
.news-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .card-img-wrapper {
        height: 180px;
    }
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer Improvements */
footer {
    padding: 2rem 0;
}

@media (max-width: 768px) {
    footer h5 {
        margin-top: 1.5rem;
    }
}

.social-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.8;
}

/* Grid System Improvements */
@media (max-width: 991px) {
    .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Utility Classes */
.youtube {
    background-color: #ff0000;
}
.facebook {
    background-color: #3b5998;
}
.instagram {
    background-color: #c13584;
}

/* Button Improvements */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
    }
}

/* Container Padding */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 576px) {
    section {
        padding: 2rem 0;
    }
}
.no-underline {
    text-decoration: none;
}
.no-underline:hover {
    color: #000000; /* Ubah ke warna hover yang diinginkan */
    opacity: 0.8; /* Tambahkan efek hover yang diinginkan */
    transition: opacity 0.3s ease;
}
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-button .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
/* Landing Page */

/* Sejarah Desa Jamali */
.carousel-caption-custom h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .carousel-caption-custom h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption-custom h1 {
        font-size: 1.5rem;
    }
}

/* Ensure overlay and controls work properly */
.carousel {
    overflow: hidden;
}

.carousel-overlay {
    top: 0;
    left: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

/* sambutan */
.greeting-text {
    font-style: italic;
    color: #333;
    line-height: 1.6;
}

/* full greeting */
.greeting-text {
    font-style: italic;
    line-height: 1.6;
    color: #333;
}

.greeting-content {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.greeting-content::-webkit-scrollbar {
    width: 6px;
}

.greeting-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.greeting-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.greeting-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.text-with-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* button sambutan */
.btn-custom {
    background-color: #4c4cff; /* Warna latar tombol */
    color: #ffffff; /* Warna teks tombol */
    padding: 10px 20px; /* Mengatur jarak di dalam tombol */
    border-radius: 10px; /* Membuat sudut persegi */
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transisi untuk warna latar dan transformasi */
}

.btn-custom:hover {
    background-color: #0202ff;
    color: #ffffff; /* Warna latar saat hover */
    transform: scale(1.05); /* Efek pop-up halus saat hover */
}

/* login */
.btn-login {
    background-color: #4c4cff; /* Warna latar tombol */
    color: #ffffff; /* Warna teks tombol */
    padding: 10px 20px; /* Mengatur jarak di dalam tombol */
    border-radius: 10px; /* Membuat sudut persegi */
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transisi untuk warna latar dan transformasi */
}

.btn-login:hover {
    background-color: #0202ff;
    color: #ffffff; /* Warna latar saat hover */
}

.card-layanan {
    border: none;
    background-color: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 20px 10px;
    transition: transform 0.3s ease;
}

.card-layanan:hover {
    transform: translateY(-10px);
}

.card-layanan .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf4ff;
}

.card-layanan .icon i {
    font-size: 2.5rem;
    color: #3b84f1;
}

.card-title-layanan {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin: 10px 0;
    text-align: center;
}

.card-title-layanan:after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: #3b84f1;
    margin: 5px auto;
}

.btn-primary {
    background-color: #eaf4ff;
    color: #3b84f1;
    font-weight: bold;
    border: 2px solid #3b84f1;
    border-radius: 30px;
    padding: 8px 15px;
}

.btn-primary:hover {
    background-color: #3b84f1;
    color: white;
    border-color: #3b84f1;
}
.btn-primary-selengkapnya {
    background-color: #3b84f1;
    color: #eaf4ff;
    font-weight: bold;
    border: 2px solid #3b84f1;
    border-radius: 30px;
    padding: 8px 15px;
}

.btn-primary-selengkapnya:hover {
    background-color: white;
    color: #3b84f1;
    border-color: #3b84f1;
}

/* Grid settings */
@media (min-width: 992px) {
    .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .icon i {
        font-size: 2rem;
    }

    .card-title {
        font-size: 0.9rem;
    }
}
