:root {
    --primary: #2A5C40;
    --secondary: #B94E36;
    --accent: #FFC845;
    --neutral: #E7DFD5;
    
    --form-border-color: #05ad54;
    --form-focus-border-color: #05ad54;
    --form-icon-color: #05ad54;
    --form-bg-color: #fff;
    --form-radius: 0.25rem;
}

body {
    font-family: 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('../img/tree-tracking.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 260px 0;
    position: relative;
}

.stats-bar {
    background-color: var(--primary);
    color: white;
    padding: 15px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.how-it-works-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s;
    height: 100%;
}

.how-it-works-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.district-map-container {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary);
}

/* Hindi text specific styling */
.hindi-text {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.1em;
}

/* ======================
FOOTER STYLES - GREEN JHARKHAND THEME
====================== */
.footer {
    background-color: #1a3e2a; /* Dark green background */
    color: #e8f5e9; /* Light green text */
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #2a5c40; /* Darker green border */
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #2a5c40); /* Green gradient */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.03);
}

.footer-logo img {
    height: 50px;
    margin-right: 1rem;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: white;
}

.footer-about {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-heading {
    color: #a5d6a7; /* Light green accent */
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #4caf50; /* Medium green */
}

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

.footer-links li {
    margin-bottom: 0.85rem;
    position: relative;
    padding-left: 15px;
}

.footer-links li::before {
    content: "•";
    color: #4caf50;
    position: absolute;
    left: 0;
    top: 0;
}

.footer-links a {
    color: rgba(232, 245, 233, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.footer-contact-item i {
    margin-right: 1rem;
    margin-top: 0.2rem;
    color: #4caf50;
    min-width: 20px;
    font-size: 1.1rem;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-links a:hover {
    background-color: #4caf50;
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Leaf pattern overlay */
.footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><path fill="%23ffffff" d="M50,10 C60,30 70,40 90,50 C70,60 60,70 50,90 C40,70 30,60 10,50 C30,40 40,30 50,10 Z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 0;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-heading {
        margin-bottom: 1.2rem;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links li {
        padding-left: 0;
    }
    
    .footer-links li::before {
        display: none;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer::after {
        display: none;
    }
    
}

/* Form controls */
.form-control,
.form-select,
.form-floating>.form-control,
.form-floating>.form-select {
    border: 1px solid var(--form-border-color);
    background-color: var(--form-bg-color);
    border-radius: var(--form-radius);
    transition: all 0.3s ease;
    padding-left: 2.5rem; /* Space for icons */
}

.form-control:focus,
.form-select:focus,
.form-floating>.form-control:focus,
.form-floating>.form-select:focus {
    border-color: var(--form-focus-border-color);
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* Form floating labels */
.form-floating>label {
    padding-left: 2.5rem; /* Match input padding */
    color: #6c757d;
    margin-top: 7px;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    transform: scale(0.85) translateY(-0.9rem) translateX(0.15rem);
    color: var(--form-focus-border-color);
}

/* Form icons */
.form-icon {
    position: relative;
}

.form-icon i {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: var(--form-icon-color);
    z-index: 4;
    font-size: 1rem;
}

/* Textarea specific styles */
textarea.form-control {
    height: auto !important;
    min-height: 100px;
    padding-top: 0.75rem;
}

/* Invalid feedback */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.8rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid~.form-icon i {
    color: #dc3545;
}

/* Breadcrumb styles */
.breadcrumb-container {
    background-image: linear-gradient(rgba(40, 167, 69, 0.8), rgba(33, 136, 56, 0.9));
    background-size: cover;
    background-position: center;
    padding: 1.5rem 0;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.breadcrumb {
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-control,
    .form-select,
    .form-floating>.form-control,
    .form-floating>.form-select {
        height: calc(2.25rem + 2px);
        padding: 0.25rem 0.5rem 0.25rem 2.25rem;
    }
    
    .form-floating>label {
        padding: 0.25rem 0.5rem 0.25rem 2.25rem;
        font-size: 0.8rem;
    }
    
    .form-icon i {
        left: 0.5rem;
        font-size: 0.9rem;
    }
    
    breadcrumb-container {
        margin-bottom: 1rem;
        padding: 1.5rem;
        min-height: 120px;
        display: flex;
        align-items: center;
        border-radius: 0.5rem; /* optional */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* optional */
    }
    
    .card-body {
        padding: 1.5rem;
    }
}