@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #00813D;
    --primary-dark: #005a2b;
    --primary-light: #e6f3ec;
    --secondary-color: #00A651;
    --accent-color: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --primary-gradient: linear-gradient(135deg, #00813D 0%, #00A651 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Removal of any blue defaults */
.btn-info,
.bg-info,
.text-info,
.btn-primary,
.bg-primary,
.text-primary {
    --bs-primary: #00813D;
    --bs-primary-rgb: 0, 129, 61;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Glassmorphism Refined */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

/* Navbar */
.navbar {
    padding: 1.2rem 15px;
    /* Added horizontal padding */
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 10px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Custom Buttons */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 129, 61, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-custom:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 129, 61, 0.3);
    color: var(--white);
}

.btn-donate {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-donate:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(-2deg);
}

/* Sections */
.hero-section {
    min-height: 80vh;
    padding: 140px 0 60px;
    background: radial-gradient(circle at 10% 20%, rgba(0, 129, 61, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 166, 81, 0.05) 0%, transparent 50%);
    position: relative;
    display: flex;
    align-items: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 129, 61, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image-container {
    position: relative;
}

.hero-image-container img {
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    z-index: 1;
}

/* Floating Stats Badge */
.stat-badge {
    position: absolute;
    padding: 20px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

/* Section Styling */
.section-padding {
    padding: 60px 0;
}

.section-title {
    margin-bottom: 40px;
}

/* Custom Grid for Modern Look */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.row.g-4 {
    --bs-gutter-y: 1.5rem;
}

.stat-badge i {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Parallax Image Style */
.parallax-img {
    border-radius: 40px;
    box-shadow: 30px 30px 0px var(--primary-light);
    transition: var(--transition);
}

.parallax-img:hover {
    transform: translate(-10px, -10px);
    box-shadow: 40px 40px 0px var(--primary-color);
}

/* Media Gallery Hover */
.position-relative .glightbox {
    display: block;
    position: relative;
    overflow: hidden;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 129, 61, 0.7);
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

.position-relative:hover .hover-overlay {
    opacity: 1;
}

.position-relative:hover img {
    transform: scale(1.1);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Feature Cards */
.feature-card {
    padding: 40px;
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Stats */
.stats-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.stat-item h3 {
    font-size: 3rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #0d1117;
    color: #ffffff;
    padding: 80px 0 20px;
}

footer .text-muted {
    color: #a1a1a1 !important;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #a1a1a1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-3px);
}

/* Admin Dashboard Styling */
.sidebar {
    height: 100vh;
    background: var(--white);
    border-right: 1px solid #eee;
    padding: 20px;
    position: sticky;
    top: 0;
}

/* Forms */
.form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 129, 61, 0.1);
    border-color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}