:root {
    --primary-color: #2D7D6E;
    --secondary-color: #E8944A;
    --accent-color: #4A9B8A;
    --warm-orange: #E8944A;
    --light-teal: #74A895;
    --dark-teal: #2D7D6E;
    --cream-bg: #F8F6F1;
    --white-bg: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #5A6C7D;
    --text-muted: #8A99A8;
    --shadow-light: rgba(45, 125, 110, 0.1);
    --shadow-medium: rgba(45, 125, 110, 0.2);
}

body {
    background-color: var(--cream-bg);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.navbar {
    background-color: var(--white-bg);
    box-shadow: 0 2px 15px var(--shadow-light);
    transition: all 0.3s ease;
    margin-top: 32px;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    margin: 0 1rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav {
    align-items: center;
}

.support-btn-wrapper {
    margin-left: 1rem;
}

.support-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--warm-orange));
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    margin-left: 1rem;
    transition: all 0.3s ease !important;
    font-weight: 600;
}

.support-btn:hover {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-color)) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.hero-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(45, 125, 110, 0.05), rgba(232, 148, 74, 0.05));
    padding: 50px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="50" cy="10" r="0.5" fill="%23E8944A" opacity="0.1"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.section {
    padding: 100px 0;
}

.card {
    background-color: var(--white-bg);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 25px var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px var(--shadow-medium);
}

.card-title {
    color: var(--text-dark);
    font-weight: 600;
}

.card-text {
    color: var(--text-light);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn-outline-light {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color) !important;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--warm-orange));
    color: white !important;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.stats-box {
    background-color: var(--white-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px var(--shadow-light);
    border: 1px solid rgba(45, 125, 110, 0.1);
    transition: all 0.3s ease;
}

.stats-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-medium);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-color));
    padding: 50px 0;
    color: white;
}

.notice-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--warm-orange));
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1080;
}

.notice-container {
    position: relative;
    overflow: hidden;
}

.notice-scroll {
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
}

.notice-container:hover .notice-scroll {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.notice-item {
    display: inline-block;
    margin-right: 2rem;
    color: white;
}

.notice-item i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
  
    .section {
        padding: 60px 0;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-link {
    display: block;
    position: relative;
}

.gallery-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(124, 77, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-link:hover::after {
    opacity: 1;
}

.gallery-link:hover img {
    transform: scale(1.05);
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.lb-data .lb-number {
    font-family: 'Inter', sans-serif;
    color: #ccc;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

#galleryModal .modal-content {
    background-color: var(--dark-bg);
}

#galleryModal .modal-body {
    padding: 0;
}

#galleryModal .modal-body img {
    max-height: 80vh;
    object-fit: contain;
}

#galleryModal .btn-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1;
}

#galleryModal .btn-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

#galleryModal .btn-link:hover {
    color: var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    display: none;
    background-color: var(--white-bg);
    border: 1px solid var(--shadow-light);
    border-radius: 10px;
    margin-top: 0; /* Removed gap between nav item and dropdown */
    box-shadow: 0 5px 25px var(--shadow-medium);
}

/* Add a small delay before hiding the menu when mouse leaves */
.dropdown-menu.fade-out {
    animation: fadeOut 0.2s ease;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.dropdown-item {
    color: var(--text-dark) !important;
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateX(5px);
}

.dropdown-item i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 20px;
    width: 10px;
    height: 10px;
    background-color: var(--white-bg);
    border-left: 1px solid var(--shadow-light);
    border-top: 1px solid var(--shadow-light);
    transform: rotate(45deg);
}

@media (max-width: 991px) {
    .support-btn-wrapper {
        position: fixed;
        bottom: 20px;
        right: 20px;
        margin: 0;
        z-index: 1000;
    }

    .support-btn {
        margin: 0;
        padding: 0.8rem 1.5rem !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background-color: var(--white-bg);
        border-radius: 10px;
        box-shadow: 0 5px 15px var(--shadow-light);
    }
}

/* Custom Hamburger Icon */
.navbar-toggler {
    border: 2px solid var(--text-dark);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 110, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 62, 80, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
} 


/* Hero Slider Styles */
.hero-slider {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-slider .carousel-item {
    height: 400px;
}

.hero-slider .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(45, 125, 110, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider .carousel-control-prev {
    left: 20px;
}

.hero-slider .carousel-control-next {
    right: 20px;
}

.hero-slider .carousel-indicators {
    bottom: 20px;
}

.hero-slider .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.hero-slider .carousel-indicators button.active {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-slider {
        margin-top: 0;
        margin-bottom: 2rem;
    }
    
    .hero-slider .carousel-item {
        height: 300px;
    }

    .hero-section {
        padding-top: 130px;
        text-align: center;
    }
}

/* Additional NGO-specific styles */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.motto-text {
    font-style: italic;
    color: var(--text-light);
    position: relative;
}

.motto-text::before,
.motto-text::after {
    content: '"';
    font-size: 1.5em;
    color: var(--secondary-color);
    font-weight: bold;
}

.foundation-heritage {
    background: linear-gradient(135deg, rgba(45, 125, 110, 0.05), rgba(232, 148, 74, 0.05));
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5.5px;
    top: 20px;
    width: 1px;
    height: calc(100% + 20px);
    background: var(--shadow-light);
}

.timeline-item:last-child::after {
    display: none;
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.service-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow-medium);
}

.testimonial-card {
    background: var(--white-bg);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 25px var(--shadow-light);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    line-height: 1;
}

@media (max-width: 768px) {
    .impact-number {
        font-size: 2rem;
    }
    
    .motto-text {
        font-size: 0.9rem;
    }
}

/* Language switching accessibility improvements */
[data-translate] {
    transition: opacity 0.3s ease;
}

.language-switching [data-translate] {
    opacity: 0.7;
}

/* Hindi font support */
body.hindi-mode {
    font-family: 'Inter', 'Noto Sans Devanagari', 'Mangal', sans-serif;
}

/* Language direction support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    margin-left: 0;
    margin-right: auto;
}

/* Smooth transitions for language switching */
.fade-transition {
    transition: opacity 0.2s ease-in-out;
}

.fade-transition.fade-out {
    opacity: 0;
}

.fade-transition.fade-in {
    opacity: 1;
}

/* Enhanced Animations and Modern Styling */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Enhanced Hero Section */
.hero-section {
    min-height: 85vh !important;
    animation: fadeInUp 1s ease-out;
    overflow: hidden;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-image {
    animation: slideInRight 1s ease-out 0.3s both;
}

/* Enhanced Cards */
.card {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    transition: all 0.4s ease !important;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 125, 110, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-15px) scale(1.02) !important;
    box-shadow: 0 20px 60px var(--shadow-medium) !important;
    z-index: 10;
}

/* Enhanced Buttons */
.btn-explore {
    background: linear-gradient(135deg, var(--secondary-color), var(--warm-orange));
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.4s ease;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(232, 148, 74, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-explore::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn-explore:hover::before {
    width: 300px;
    height: 300px;
}

.btn-explore:hover {
    background: linear-gradient(135deg, var(--warm-orange), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 148, 74, 0.5);
    color: white;
    text-decoration: none;
}

.btn-explore i {
    transition: transform 0.3s ease;
}

.btn-explore:hover i {
    transform: translateX(5px);
}

/* Enhanced Primary Buttons */
.btn-primary {
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(45, 125, 110, 0.3) !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 35px rgba(45, 125, 110, 0.5) !important;
}

/* Enhanced Section Styling */
.section {
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, rgba(248, 246, 241, 0.5), rgba(255, 255, 255, 0.5));
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Enhanced Feature Icons */
.feature-icon {
    width: 80px !important;
    height: 80px !important;
    border-radius: 20px !important;
    font-size: 2rem !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(45, 125, 110, 0.2) !important;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.feature-icon:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.feature-icon:hover {
    transform: rotate(10deg) scale(1.2) !important;
    box-shadow: 0 15px 45px rgba(45, 125, 110, 0.4) !important;
}

/* Enhanced Motto Text */
.motto-text {
    font-size: 2rem !important;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
    animation: pulse 3s ease-in-out infinite;
    position: relative;
}

.motto-text::before {
    content: '✨';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    animation: float 2s ease-in-out infinite;
}

.motto-text::after {
    content: '✨';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    animation: float 2s ease-in-out infinite 1s;
}

/* Enhanced Stats */
.stats-container {
    background: linear-gradient(135deg, var(--white-bg), rgba(248, 246, 241, 0.8));
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 15px 50px var(--shadow-light);
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(232, 148, 74, 0.1), transparent);
    border-radius: 50%;
    transform: translate(50px, -50px);
}

.stats-item {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.stats-item:hover {
    transform: scale(1.08);
}

.stats-number {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.stats-number:hover {
    transform: scale(1.1);
}

.stats-label {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.stagger-animation {
    animation: fadeInUp 0.8s ease-out;
}

.stagger-animation:nth-child(1) { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.stagger-animation:nth-child(2) { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }
.stagger-animation:nth-child(4) { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }
.stagger-animation:nth-child(5) { animation-delay: 0.5s; opacity: 0; animation-fill-mode: forwards; }
.stagger-animation:nth-child(6) { animation-delay: 0.6s; opacity: 0; animation-fill-mode: forwards; }

/* Image Overlays */
.image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 125, 110, 0.1), rgba(232, 148, 74, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 1;
}

.image-overlay img {
    transition: transform 0.5s ease;
}

.image-overlay:hover img {
    transform: scale(1.08);
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Enhanced Hero Slider Styling */
.hero-slider .carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow-medium);
    transition: all 0.4s ease;
}

.hero-slider .carousel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.hero-slider .carousel-item img {
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-slider .carousel-item.active img {
    transform: scale(1.02);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.hero-slider .carousel-control-prev {
    left: 20px;
}

.hero-slider .carousel-control-next {
    right: 20px;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 0.9;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
}

.hero-slider .carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
}

.hero-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.hero-slider .carousel-indicators button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(1.2);
}

.hero-slider .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Smooth Carousel Transition - Fix White Flash */
.hero-slider .carousel-inner {
    background-color: transparent !important;
    overflow: hidden;
    border-radius: 20px;
}

.hero-slider .carousel-item {
    transition: transform 0.6s ease-in-out;
    position: relative;
    background: transparent !important;
    border-radius: 20px;
    overflow: hidden;
}

.hero-slider .carousel-item img {
    background: transparent !important;
    border-radius: 20px;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: none;
}

/* Ensure carousel uses slide transition instead of fade */
.hero-slider .carousel-item.carousel-item-next,
.hero-slider .carousel-item.carousel-item-prev,
.hero-slider .carousel-item.active.carousel-item-start,
.hero-slider .carousel-item.active.carousel-item-end {
    transition: transform 0.6s ease-in-out;
}

/* Remove any potential white backgrounds */
.hero-slider,
.hero-slider * {
    background-color: transparent !important;
}

/* Removed overlay to prevent white flash */

/* Enhanced supporting images */
.hero-image .row.g-3 .image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 80px;
}

.hero-image .row.g-3 .image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-image .row.g-3 .image-overlay:hover img {
    transform: scale(1.1);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .motto-text {
        font-size: 1.6rem !important;
    }
    
    .motto-text::before,
    .motto-text::after {
        display: none;
    }
    
    .feature-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.8rem !important;
    }
    
    .stats-number {
        font-size: 2.8rem !important;
    }
    
    .btn-explore {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .stats-container {
        padding: 40px 20px;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .hero-slider .carousel-item img {
        height: 250px;
    }
    
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider .carousel-control-prev {
        left: 10px;
    }
    
    .hero-slider .carousel-control-next {
        right: 10px;
    }
    
    .hero-image .row.g-3 .image-overlay {
        height: 60px;
    }
}

/* Enhanced Initiatives Section Styling */
.initiatives-hero-image {
    position: relative;
    margin-bottom: 2rem;
}

.initiatives-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--white-bg), rgba(248, 246, 241, 0.95));
    border-radius: 15px;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(45, 125, 110, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.initiatives-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(45, 125, 110, 0.3);
}

.initiatives-badge .badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.initiatives-badge i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.initiatives-badge small {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Initiative Cards Styling */
.initiative-card {
    background: var(--white-bg);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(45, 125, 110, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.initiative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 125, 110, 0.05), transparent);
    transition: left 0.6s ease;
}

.initiative-card:hover::before {
    left: 100%;
}

.initiative-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 125, 110, 0.2);
    border-color: var(--primary-color);
}

.initiative-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.initiative-card:hover .initiative-icon {
    transform: rotate(5deg) scale(1.1);
}

.initiative-content {
    flex: 1;
}

.initiative-content h6 {
    margin: 0 0 5px 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.initiative-content small {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Mobile responsive for initiative cards */
@media (max-width: 768px) {
    .initiatives-badge {
        position: static;
        margin: 20px auto 0;
        width: fit-content;
    }
    
    .initiative-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .initiative-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .initiative-content h6 {
        font-size: 0.9rem;
    }
    
    .initiative-content small {
        font-size: 0.75rem;
    }
}

/* Enhanced section spacing */
.section-header {
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    max-width: 800px;
}

/* Hindi Language Support */
.hindi-mode {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

.hindi-mode .gradient-text {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    font-weight: 600;
}

.hindi-mode .section-title {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    font-weight: 700;
}

.hindi-mode .nav-link {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    font-weight: 500;
}

.hindi-mode .btn {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    font-weight: 500;
}

.hindi-mode h1, .hindi-mode h2, .hindi-mode h3, .hindi-mode h4, .hindi-mode h5, .hindi-mode h6 {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

/* Language Transition Effects */
.fade-transition {
    transition: opacity 0.2s ease-in-out;
}

.fade-out {
    opacity: 0.3;
}

.fade-in {
    opacity: 1 !important;
}

.language-switching {
    cursor: wait;
}