@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap");
body {
    font-family: "Poppins", sans-serif;
}

/* button */
.btn-success {
    background-color: #004803;
    border-radius: 20px;
    border-color: rgb(0, 124, 48);
    padding: 8px 25px;
    color: white;
}
.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}
.btn-danger {
    background-color: #ca0000;
    border-radius: 20px;
    border-color: #b60000;
    padding: 8px 25px;
    color: white;
}

.btn-danger:hover {
    background-color: #ca0000;
    border-color: #b60000;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    border-radius: 20px;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
    border-radius: 20px;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: #fff;
}

/* Navbar */
.navbar-brand {
    font-weight: 400;
    font-size: 1.2rem;
    color: #004803 !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #28a745 !important;
    transform: scale(1.05);
}

.brand-logo {
    width: 45px;
    height: 45px;
    margin-right: 12px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 72, 3, 0.2);
}

.navbar-brand:hover .brand-logo {
    transform: rotate(360deg) scale(1.1);
}

/* Navigation Links - Menghapus style button hijau */
.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: #333 !important;
    margin: 0 8px;
    padding: 12px 16px !important;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent !important;
    border: none !important;
}

/* Menghapus efek background hijau pada hover */
.navbar-nav .nav-link::before {
    display: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #004803 !important;
    background: rgba(0, 72, 3, 0.1) !important;
    transform: none;
    box-shadow: none;
}

/* Enhanced Dropdown Styling - Tetap dipertahankan */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 72, 3, 0.15);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 72, 3, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    margin-top: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.92);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border-top: 3px solid #004803;
}

/* Show dropdown with smooth animation */
.nav-item.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Arrow indicator for dropdown */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid rgba(255, 255, 255, 0.98);
    filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, 0.1));
}

.dropdown-menu::after {
    content: "";
    position: absolute;
    top: -9px;
    left: 33px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #004803;
}

/* Dropdown Items */
.dropdown-item {
    padding: 14px 24px;
    font-weight: 500;
    font-size: 15px;
    color: #333;
    border-radius: 12px;
    margin: 2px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.dropdown-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #004803, #28a745);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 12px;
}

.dropdown-item:hover::before {
    left: 0;
}

.dropdown-item:hover {
    color: #fff !important;
    background: transparent !important;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 72, 3, 0.2);
}

.dropdown-item:focus {
    background: transparent !important;
    color: #333;
    box-shadow: 0 0 0 2px rgba(0, 72, 3, 0.2);
}

.dropdown-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

/* User Dropdown Specific Styling - Button login tetap dipertahankan */
.dropdown .btn-success.dropdown-toggle {
    position: relative;
    transition: all 0.3s ease;
    background-color: #004803;
    border-color: rgb(0, 124, 48);
    border-radius: 20px;
    padding: 8px 25px;
    color: white;
    font-size: 14px;
}

.dropdown .btn-success.dropdown-toggle:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 72, 3, 0.3);
}

.dropdown .dropdown-menu {
    right: 0;
    left: auto;
    transform-origin: top right;
}

.dropdown .dropdown-menu::before {
    left: auto;
    right: 30px;
}

.dropdown .dropdown-menu::after {
    left: auto;
    right: 33px;
}

.logout-item {
    color: #dc3545 !important;
}

.logout-item::before {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.logout-item:hover {
    color: #fff !important;
}

/* Mobile Responsive */
.navbar-toggler {
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0, 72, 3, 0.1);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(0, 72, 3, 0.2);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 72, 3, 0.2);
}

.navbar-toggler-icon {
    background-image: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 20px;
    height: 15px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
    content: "";
    display: block;
    height: 2px;
    background: #004803;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        margin-top: 15px;
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
        text-align: center;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        background: rgba(0, 72, 3, 0.05);
        margin: 10px 0;
        backdrop-filter: none;
        border-top: 1px solid rgba(0, 72, 3, 0.2);
    }

    .dropdown-menu::before,
    .dropdown-menu::after {
        display: none;
    }

    .btn-success {
        margin-top: 15px;
        width: 100%;
    }
}

/* Demo Content */
.demo-content {
    padding: 40px 0;
}

.demo-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-item .nav-link {
    font-size: 18px;
    margin-left: 5px;
    margin-right: 5px;
}

/* Hero */
#hero {
    background-repeat: no-repeat;
    background-position: center;
    height: 500px;
    margin-top: 100px;
    margin-bottom: 0;
}

/* border */
#border {
    margin-top: 0;
    background-color: #ffffff;
}

.border-item {
    background-color: #f5f5f5;
    border: 2px solid transparent;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 10px;
    max-width: 350px;
}
.border-item:hover {
    background-color: #d8ffe1;
    border-color: #004803;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.border-item img {
    max-width: 100px;
    height: auto;
}

.border-item h5 {
    font-size: 18px;
}

.border-item p {
    font-size: 16px;
}

/* ajukan donasi */
.stripe {
    height: 5px;
    width: 40px;
    background-color: #004803;
    margin-right: 10px;
}

.sub-judul {
    color: #004803;
    font-size: 28px;
}

#profil {
    text-align: center;
}

#profil .text-center {
    margin-bottom: 20px;
}

.img-banner {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 5px;
}

.btn-ajukan {
    margin-bottom: 20px;
}

/* program */
.img-container {
    width: 100%;
    height: 400px;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    padding: 6%;
}

.img-donasi {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card-body {
    padding: 3rem;
    flex-direction: column;
    justify-content: space-between;
}

h5.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p.card-text {
    color: #6c757d;
    margin-bottom: 1rem;
}

.stripe-putih {
    height: 5px;
    width: 40px;
    background-color: #ffffff;
}

/* Galeri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    background-color: #f3f3f3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 10px;
}

.gallery-item:hover {
    transform: translateY(-5px); /* Efek hover: naik */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Shadow lebih besar */
}

.galeri-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item p {
    color: gray;
    margin: 10px 0 5px;
    font-size: 13px;
}

.gallery-item h6 {
    color: #000;
    font-size: 15px;
    text-align: justify;
}
/* end galeri */

/* donasi */
.gradient-background {
    background: linear-gradient(180deg, #75de64, #004803);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* end donasi */

/* struktur */
.person {
    text-align: center;
    margin-bottom: 20px;
}

.connector-vertical {
    width: 3px;
    height: 40px;
    background-color: green;
    margin: auto;
}

.connector-horizontal {
    width: 100%;
    height: 3px;
    background-color: green;
    margin-top: -10px;
}
/* end */

@media (max-width: 768px) {
    .card img {
        height: 150px;
    }

    .sub-judul {
        font-size: 20px;
    }

    .card-title {
        font-size: 18px;
    }

    .galeri-img {
        height: 200px;
    }

    #border .row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .border-item {
        margin: 10px;
        max-width: 300px;
    }

    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        text-align: center;
    }

    .btn-success {
        width: 100%;
        text-align: center;
    }

    .btn-danger {
        width: 100%;
        text-align: center;
    }

    .d-flex.flex-wrap {
        flex-direction: column;
        align-items: center;
    }

    .connector-horizontal {
        width: 70%;
    }

    .row.d-flex {
        flex-direction: column-reverse;
        text-align: center;
    }

    .img-banner {
        max-width: 80%;
    }

    .btn-ajukan {
        margin-bottom: 30px;
    }

    .stripe-container {
        justify-content: center;
    }

    .stripe {
        margin-right: 10px;
        width: 30px;
    }
}

@media (max-width: 576px) {
    .galeri-img {
        height: 180px;
    }

    #border .row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .border-item {
        max-width: 250px;
    }

    .border-item img {
        max-width: 80px;
    }

    .border-item h5 {
        font-size: 16px;
    }

    .border-item p {
        font-size: 14px;
    }

    .person img {
        width: 80px;
        height: 80px;
    }

    .connector-horizontal {
        width: 50%;
    }

    .connector-vertical {
        height: 30px;
    }

    .img-profil {
        width: 80%;
        max-width: 200px;
    }

    .stripe {
        width: 25px;
    }

    .btn-success {
        width: 80%;
        text-align: center;
    }

    .btn-danger {
        width: 80%;
        text-align: center;
    }

    .img-banner {
        max-width: 70%;
    }

    .btn-ajukan {
        margin-bottom: 40px;
    }
}
