@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700;800&display=swap');

:root {
    --primary-color: #00AE65;
    --primary-hover: #008f52;
    --secondary-color: #1A1A1A;
    --accent-color: #FF9F43;
    /* For contrast CTAs */
    --bg-light: #F7F9FB;
    --white: #FFFFFF;
    --gray-100: #F1F3F5;
    --gray-600: #636E72;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.08);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

html,
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--white);
    color: var(--secondary-color);
    line-height: 1.7;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.navbar-brand {
    font-weight: 800;
    color: var(--secondary-color) !important;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--gray-600) !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

@media (min-width: 992px) {
    .nav-link::after {
        content: '';
        display: block;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: width 0.3s;
        margin-top: 2px;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }
}

/* Offcanvas Mobile Menu */
@media (max-width: 991.98px) {
    .offcanvas {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 85% !important;
        /* Wider menu */
        height: 100vh !important;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }

    .offcanvas-body {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
    }

    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1.1rem;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: 1rem;
    }
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 100px;
    /* Pill shape */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 174, 101, 0.25);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #e68a2e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 159, 67, 0.25);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 180px;
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

/* Quick Donation Box */
.quick-donation {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.06);
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.donation-type-btn {
    flex: 1;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    border: 1px solid var(--gray-100);
    background: var(--gray-100);
    color: var(--gray-600);
    font-weight: 600;
    transition: all 0.2s ease;
}

.donation-type-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Stats Section */
.stat-card {
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Program Cards */
.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    height: 100%;
}

.program-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.progress-custom {
    height: 8px;
    border-radius: 10px;
    background: #E9ECEF;
    margin: 1.5rem 0 0.75rem;
}

.progress-bar-custom {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Category Grid */
.category-item {
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    background: var(--bg-light);
    transform: translateY(-5px);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

/* Floating Action Button */
.fab-donate {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

/* Utility Classes */
.mt-minus-5 {
    margin-top: -5rem;
}

.letter-spacing-1 {
    letter-spacing: 2px;
}

.bg-soft-green {
    background-color: #E8F5E9;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding: 40px 0;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, rgba(232, 245, 233, 1) 0%, rgba(255, 255, 255, 1) 100%);
    padding: 80px 0;
    margin-bottom: 0;
}

/* Filters */
.filter-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.filter-btn {
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--gray-100);
    background: var(--white);
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Badges */
.badge-premium {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-populer {
    background-color: #FFF3E0;
    color: #E65100;
}

.badge-hampir {
    background-color: #FFEBEE;
    color: #B71C1C;
}

.badge-baru {
    background-color: #E8F5E9;
    color: #1B5E20;
}

/* Empty State */
.empty-state {
    padding: 100px 0;
    text-align: center;
}

.empty-state img {
    max-width: 300px;
    margin-bottom: 2rem;
    opacity: 0.6;
}

/* Program Specifics */
.program-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.program-card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.program-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
}

/* Report Summary Cards */
.report-summary-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.report-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.report-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.bg-soft-blue {
    background-color: #E3F2FD;
    color: #1976D2;
}

.bg-soft-orange {
    background-color: #FFF3E0;
    color: #F57C00;
}

.bg-soft-purple {
    background-color: #F3E5F5;
    color: #7B1FA2;
}

/* Chart Containers */
.chart-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    margin-bottom: 2rem;
}

/* Custom Table */
.custom-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.custom-table thead {
    background: var(--bg-light);
}

.custom-table th {
    padding: 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    border: none;
}

.custom-table td {
    padding: 1.25rem;
    vertical-align: middle;
    border-top: 1px solid var(--gray-100);
}

/* Documentation Grid */
.doc-img-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.doc-img-wrapper img {
    transition: all 0.5s ease;
}

.doc-img-wrapper:hover img {
    transform: scale(1.1);
}

/* Utilities */
.text-xs {
    font-size: 0.75rem;
}

.fw-800 {
    font-weight: 800;
}

/* About Us Page */
.vision-mission-card {
    height: 100%;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-premium);
    border-left: 5px solid var(--primary-color);
}

.value-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: white;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.organogram-item {
    text-align: center;
    margin-bottom: 2rem;
}

.organogram-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid var(--bg-light);
}

/* Articles Page */
.article-featured-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    background: white;
}

@media (min-width: 992px) {
    .article-featured-card {
        flex-direction: row;
    }

    .article-featured-img {
        width: 50%;
    }

    .article-featured-content {
        width: 50%;
        padding: 4rem !important;
    }
}

.article-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-premium);
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.article-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.article-detail-content p {
    margin-bottom: 1.5rem;
}

/* End of public website styles */

/* Horizontal Scroll for Programs Carousel */
#programsCarousel::-webkit-scrollbar {
    height: 8px;
}

#programsCarousel::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 10px;
}

#programsCarousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

#programsCarousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}