/* ===== DANA SOSIAL UNAND - UPDATED STYLESHEET ===== */

/* ===== VARIABLES & ROOT STYLES ===== */
:root {
    /* UNAND Color Palette */
    --unand-green: #198754;
    --unand-dark-green: #157347;
    --unand-light-green: #20c997;
    --unand-gold: #ffc107;

    /* Neutral Colors */
    --neutral-white: #ffffff;
    --neutral-light: #f8f9fa;
    --neutral-gray: #6c757d;
    --neutral-dark: #343a40;
    --neutral-darker: #212529;

    /* Typography */
    --font-primary: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* Spacing */
    --section-padding: 5rem 0;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md:
        0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:
        0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl:
        0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--neutral-dark);
    background-color: var(--neutral-white);
}

/* =================================== */
/* STYLE NAVBAR MODERN - EFEK BLUR     */
/* =================================== */

/* Wrapper utama yang menempel di atas dan transparan */
.navbar-wrapper {
    padding: 1rem 0;
    background: transparent; /* Tetap transparan */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    transition: padding 0.3s ease;
}

/* Style saat halaman di-scroll */
.navbar-wrapper.scrolled {
    padding: 0.75rem 0;
    /* INI PERUBAHAN UTAMANYA */
    background: rgba(
        255,
        255,
        255,
        0.1
    ); /* Latar belakang putih sangat transparan */
    backdrop-filter: blur(10px); /* Efek blur pada elemen di belakangnya */
    -webkit-backdrop-filter: blur(10px); /* Untuk support browser Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Garis bawah tipis untuk estetika */
}

/* Kartu navbar putih yang melayang */
.navbar-floating {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1.5rem;
    width: 100%;
}

/* Link navigasi (tidak berubah) */
.navbar-floating .navbar-nav .nav-link {
    font-weight: 500;
    color: #343a40 !important;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

/* Link navigasi saat aktif atau di-hover (tidak berubah) */
.navbar-floating .navbar-nav .nav-link:hover,
.navbar-floating .navbar-nav .nav-link.active {
    color: #198754 !important;
    background-color: rgba(25, 135, 84, 0.1);
}

/* Tombol Masuk menjadi warna hijau (tidak berubah) */
.navbar-floating .btn-primary {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.navbar-floating .btn-primary:hover {
    background-color: #157347 !important;
    border-color: #157347 !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 50%, #d4edda 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--neutral-darker);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-gray);
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.75rem;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-5px);
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--unand-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--neutral-gray);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== KEY VALUES SECTION ===== */
.key-values-section {
    background-color: var(--neutral-light);
}

.value-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--unand-green);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        var(--unand-green),
        var(--unand-light-green)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-darker);
    margin-bottom: 1rem;
}

.value-description {
    color: var(--neutral-gray);
    line-height: 1.7;
}

/* ===== PROGRAM SECTION ===== */
.program-section {
    padding: 5rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-darker);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.program-card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
    position: relative;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.program-image {
    position: relative;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.program-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.card-body {
    padding: 2rem;
}

.program-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-darker);
    margin-bottom: 1rem;
}

.program-description {
    color: var(--neutral-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.program-progress .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.program-progress .progress-bar {
    background: linear-gradient(
        90deg,
        var(--unand-green),
        var(--unand-light-green)
    );
    border-radius: 4px;
}

.program-stats {
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

/* ===== TESTIMONIAL SECTION ===== */
.testimonial-section {
    background-color: var(--neutral-light);
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e9ecef;
    margin: 2rem 0;
}

.testimonial-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 4px solid var(--unand-green);
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-gray);
    font-style: italic;
    margin: 2rem 0;
}

.author-name {
    font-weight: 700;
    color: var(--neutral-darker);
    margin-bottom: 0.5rem;
}

.author-title {
    color: var(--neutral-gray);
    font-size: 0.9rem;
}

/* ===== NEWS STYLES ===== */
.news-card {
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.news-content img {
    border-radius: 1rem;
    margin: 2rem 0;
}

.news-content blockquote {
    border-left: 4px solid #198754;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
}

/* ===== REPORTS STYLES ===== */
.stats-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-icon {
    width: 60px;
    height: 60px;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #198754;
    font-size: 1.5rem;
}

.chart-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: linear-gradient(135deg, var(--neutral-darker) 0%, #1a1a1a 100%);
    color: white;
}

.footer-title {
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-description {
    color: #adb5bd;
    line-height: 1.7;
}

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

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

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

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

.social-links a:hover {
    background: var(--unand-green);
    transform: translateY(-2px);
}

.contact-item {
    color: #adb5bd;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.contact-item i {
    color: var(--unand-green);
    margin-top: 0.2rem;
    margin-right: 0.5rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright,
.powered-by {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* ===== BUTTON STYLES ===== */
.btn-success {
    background: linear-gradient(
        135deg,
        var(--unand-green),
        var(--unand-dark-green)
    );
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(
        135deg,
        var(--unand-dark-green),
        var(--unand-green)
    );
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-success {
    border: 2px solid var(--unand-green);
    color: var(--unand-green);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background: var(--unand-green);
    border-color: var(--unand-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== UTILITY CLASSES ===== */
.bg-unand {
    background-color: var(--unand-green) !important;
}

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

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .value-card,
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== MODAL STYLES ===== */
.modal-header.bg-success {
    border-bottom: none;
}

.modal-header .btn-close-white {
    filter: invert(1);
}

/* ===== TABLE STYLES ===== */
.table th {
    font-weight: 600;
}

.table-success th {
    background: var(--unand-green);
    border-color: var(--unand-dark-green);
}

/* ===== CARD OPTION STYLES ===== */
.card-option .form-check-input:checked + .form-check-label {
    border-color: var(--unand-green);
    background-color: rgba(25, 135, 84, 0.05);
}

.card-option .form-check-label {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ===== BADGE STYLES ===== */
.badge {
    font-weight: 500;
}

.badge.bg-success {
    background: var(--unand-green) !important;
}

/* ===== ALERT STYLES ===== */
.alert-success {
    background: rgba(25, 135, 84, 0.1);
    border-color: var(--unand-green);
    color: var(--unand-dark-green);
}

/* CUSTOM DROPDOWN NAVBAR */
.custom-dropdown .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: #2c3e27;
    transition: all 0.2s ease;
    border-radius: 8px; /* Biar pinggirnya agak melengkung */
    margin: 2px 8px; /* Kasih jarak antar menu */
    width: auto;
}

/* Pas di hover (ganti ijo) */
.custom-dropdown .dropdown-item:hover,
.custom-dropdown .dropdown-item:focus {
    background-color: #e8f5bd; /* Hijau pucat/pastel */
    color: #1a2e15; /* Hijau tua */
}

/* Pas menu lagi aktif/di halaman tsb */
.custom-dropdown .dropdown-item.active {
    background-color: #84b179; /* Hijau Utama */
    color: white;
}
