/* Reset & base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f9ff;
    color: #333;
}

html {
    scroll-padding-top: 70px;
}

body {
    padding-top: 70px;
}

/* header {
    /* background: linear-gradient(135deg, #8B0000, #851e1e, #763e3e, #785252); 
    background-image: url(/static/img/founder.jpg);
    color: white;
    padding-bottom: 120px;
    margin-top: 80px;
    /*Offset for fixed navbar 
    background-size: cover;
    background-repeat: no-repeat;
} */

/*nav bar css*/
/* Navigation Styles */
/* nav{
    position: fixed;
} */

.navbar {
    /* background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; */
    /* transition: all 0.3s ease; */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* Reset any transforms or animations */
    transform: translateY(0) !important;
    opacity: 1 !important;
    transition: none !important;
}

.navbar.scroll-up,
.navbar.scroll-down {
    transform: none !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo Styles */
.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #8B0000;
}

.nav-link.active {
    color: #667eea;
    position: relative;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
}

/* Donate Button */
.donate-btn {
    background: #28a745;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 10px;
}

.donate-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #8B0000;
    border-left-color: #8B0000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.toggle-bar {
    width: 25px;
    height: 3px;
    background: #0c0c0c;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0 0 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 2rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #f8f9fa;
    color: #007bff;
    border-left-color: #007bff;
}

/* Mobile Dropdown */
.mobile-dropdown {
    border-bottom: 1px solid #eee;
}

.mobile-dropdown-toggle {
    width: 100%;
    padding: 1rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover {
    background: #f8f9fa;
    color: #007bff;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 200px;
}

.mobile-dropdown-content .mobile-nav-link {
    padding-left: 3rem;
    background: #f8f9fa;
}

/* Main Content */
.main-content {
    margin-top: 70px;
}

.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .one-rupee {
        display: flex;
        justify-content: space-evenly;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .container {
        padding: 0 15px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.nav-link:focus,
.dropdown-item:focus,
.mobile-nav-link:focus,
.mobile-dropdown-toggle:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}



/* Demo content */
.content {
    padding: 50px 10%;
    line-height: 1.6;
}

header {
    height: 80vh;
    /* background-image: url(/static/img/background.jpg); */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
    margin-top: 80px;
}

.hero {
    max-width: 1450px;
    margin: 0 auto;
    align-items: center;
    display: flex;
    gap: 3rem;
    width: 100%;
}

.hero1 {
    flex: 1;
    color: white;
}

.hero1 h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero1 p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 500px;
    color: #fff;
}

.hero1 h5 {
    color: #0000008a;
    margin-bottom: 8px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons button {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-buttons a {
    text-decoration: none;
}

.hero-buttons button:first-child {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons button:first-child:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.donate-btn {
    background: #840000 !important;
    color: white !important;
    border: 2px solid #840000 !important;
}

.donate-btn:hover {
    background: #a61e1e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px #a61e1e !important;
}

.hero>div:last-child {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-img img {
    width: 600px;
    height: 400px;
}

.hero img:hover {
    transform: scale(1.05);
}


/*animation*/

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


.hero1 {
    flex: 1;
    color: white;
    animation: fadeInLeft 1s ease forwards;
    opacity: 0;
}

.hero>div:last-child {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.3s forwards;
    opacity: 0;
}


.hero-buttons button {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
}

.hero-buttons button:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .hero {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    .hero1 {
        flex: none;
    }

    .hero1 h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero1 p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        max-width: none;
    }

    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
    }

    .hero-buttons button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
    }

    .hero>div:last-child {
        flex: none;
        width: 100%;
    }

    .hero img {
        max-width: 300px;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links li {
        position: relative;
    }

    .nav-links .dropdown {
        position: relative;
        top: auto;
        left: auto;
        box-shadow: none;
        display: none;
    }

    .nav-links .dropdown.show {
        display: block;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0.75rem;
    }

    .hero {
        gap: 1.5rem;
        margin-top: 10px;
    }

    .hero1 h1 {
        font-size: 2rem;
    }

    .hero1 p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons button {
        width: 100%;
        max-width: 250px;
    }

    .hero img {
        max-width: 250px;
    }

    .dropdown li {
        margin-left: 75px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .hero {
        gap: 4rem;
    }

    .hero1 h1 {
        font-size: 4rem;
    }

    .hero1 p {
        font-size: 1.375rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

    .hero img,
    .hero-buttons button {
        transition: none;
    }
}

/* Focus states for accessibility */
.hero-buttons button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.about-section {
    position: relative;
    background: linear-gradient(to bottom, #d08f8f 0%, #751818 100%);
    padding: 0px 0px 80px;
    text-align: center;
    overflow: hidden;
}

.wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-top svg {
    display: block;
    width: 100%;
    height: 100px;
}

.section-title {
    margin-top: 5px;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #fff;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.about-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    max-width: 320px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
}

.about-card h3 {
    color: #8B0000;
    margin: 15px 0 10px;
}

.about-card p {
    color: #8B0000;
    font-size: 0.95rem;
    text-align: left;
}

.about-card .icon {
    font-size: 2.5rem;
    color: #5889f0;
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-section svg {
    width: 100%;
    height: 50%;
}


/*project section*/
.projects-section {
    padding: 4rem 1rem;
    background: #dcece9;
}

.container {
    max-width: 1450px;
    margin: auto;
}

.container h2 {
    text-align: center;
}

.projects-section h2 {
    font-size: 2rem;
    color: #d55662;
    margin-bottom: 0.5rem;
}

.projects-section p {
    color: #3c4a68;
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #eb6c6c, #bd8383);
    padding: 2rem 1rem;
    position: relative;
    height: 50%;
}

.card-header svg {
    fill: #fff;
}

.card-header img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.card-body {
    padding: 1.5rem;
    text-align: left;
}

.badge-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.badge {
    background: #e1a4a4;
    color: #8B0000;
    padding: 0.3rem 0.6rem;
    border-radius: 1rem;
    font-weight: 600;
}

.date {
    color: #666;
}

.project-card h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.project-card p {
    font-size: 0.95rem;
    color: #444;
    margin: 0.5rem 0 1rem;
}

.impact {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #8B0000;
}

.impact a {
    color: #8B0000;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.impact a:hover {
    color: #0047a6;
}

.card-header svg {
    width: 50%;
    height: 40%;
}

.project-all {
    margin: 40px;
}

.project-button {
    font-size: large;
    padding: 15px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 200;
    color: #fff;
    background-color: #8B0000;
}

.project-button:hover {
    background-color: #8b3131;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.partners {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    margin-bottom: 30px;
}

.partners h2,
p {
    color: #3c4a68;
}

/*Global Impact*/
.impact-section {
    background-color: #f0e3c3;
    padding: 60px 20px;
}

.impact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.impact-container:nth-child(1) {
    text-align: center;
}

.impact-container h2 {
    font-size: 2rem;
    color: #8b0000;
    margin-bottom: 10px;
    text-align: center;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: #3399ff;
    margin: 0 auto 20px auto;
    border-radius: 4px;
}

.impact-container p {
    color: #8b0000;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1rem;
}

.impact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 1450px;
    margin: 0 auto;
    margin: 0 15px;
}

.impact-card {
    text-align: center;
    margin-top: 15px;
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.impact-card img {
    height: 100px;
    width: 100px;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.impact-card .count {
    font-size: 2.2rem;
    color: #8B0000;
    font-weight: bold;
    margin-bottom: 10px;
}

.impact-card p {
    font-size: 1rem;
    color: #8B0000;
}

/*Donation*/
.donation-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1450px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.left,
.right {
    flex: 1 1 300px;
    padding: 30px;
}

.left {
    background-color: #fff;
}

.right {
    background-color: #904040;
    color: #fff;
}

.right h2 {
    color: #FFF;
}

.right p {
    color: #fff;
}


.left h2 {
    color: #8B0000;
    margin-top: 0;
}

.left p {
    color: #8B0000;
}

.bar {
    height: 8px;
    background-color: #dce9ff;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.bar-fill {
    height: 100%;
    background-color: #8B0000;
    width: 0;
    border-radius: 10px;
    animation: fill 1.5s ease forwards;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    color: #8B0000;
}

@keyframes fill {
    to {
        width: var(--fill);
    }
}

.amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.amounts button {
    flex: 1 1 30%;
    padding: 10px;
    background-color: #FFF;
    color: #8B0000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.amounts button:hover {
    background-color: #b49f9f;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 16px;
}

.donate-btns {
    width: 100%;
    padding: 12px;
    background-color: #fff;
    color: #8B0000;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.donate-btns:hover {
    background-color: #f0f4ff;
}

@media(max-width: 768px) {
    .amounts button {
        flex: 1 1 45%;
    }
}

@media(max-width: 800px) {

    .donation-container {
        flex-direction: column;

    }
}

@media(max-width: 480px) {
    .amounts button {
        flex: 1 1 100%;
    }

    .section-subtitle {
        padding: 0 10px;
    }
}

/*testimonial*/
/* Testimonials Section */
.testimonials h2 {
    color: #1e2a55;
    text-align: center;
}

.testimonial-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    max-width: 1450px;
    margin: 0 auto;
}

.testimonial {
    background-color: #f0f4ff;
    border-radius: 12px;
    padding: 20px;
    flex: 1 1 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.testimonial:nth-child(1) {
    animation-delay: 0.2s;
}

.testimonial:nth-child(2) {
    animation-delay: 0.4s;
}

.testimonial:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.testimonial p {
    font-size: 15px;
    color: #3c4a68;
    margin-bottom: 15px;
    text-align: left;
}

.testimonial strong {
    display: block;
    margin-bottom: 3px;
    color: #1e2a55;
}

.testimonial .initials {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #c8dcff;
    color: #1e2a55;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-right: 10px;
}

.testimonial .author {
    display: flex;
    align-items: center;
}


/* CSS Styles */

.contact-container {
    max-width: 1450px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
}

.contact-head {
    color: #8B0000;
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px;
}

.contact-info {
    border: none;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    padding: 20px;
    animation: slideInLeft 0.5s ease-in-out;
    color: #8B0000;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-info h2 {
    color: #8B0000;
}

.contact-form {
    animation: slideInRight 0.5s ease-in-out;
    border: none;
    border-radius: 25px;
    padding: 20px;
    background-color: #ffff;
}

.coninfo {
    display: flex;
    margin: 0 auto;
}

.coninfo i {
    border: none;
    padding: 20px;
    margin: 1px 25px 1px 0px;
    background-color: #e29f9f;
    border-radius: 30px;
    color: #8B0000;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
}

.info-section {

    color: #8B0000;
    margin-bottom: 20px;
}

.info-section h2 {
    color: #8B0000;
    margin-top: 3px;
    line-height: 0.5rem;
}

.form-group {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    color: #8B0000;
}

.form-group.visible {
    opacity: 1;
    transform: translateY(0);
}

.required {
    color: red;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

option {
    color: #8B0000;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #8B0000;
    color: #8B0000;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.divider {
    height: 1px;
    background: #eaeaea;
    margin: 20px 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.checkbox-group.visible {
    opacity: 1;
    transform: translateY(0);
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.btn {
    background: #8B0000;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Error styling */
.error {
    border-color: #e74c3c !important;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

/* Success message */
.success-message {
    display: none;
    background: #2ecc71;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .name-fields {
        grid-template-columns: 1fr;
    }

    .coninfo {
        flex-direction: column;
        align-items: flex-start;
    }

    .coninfo i {
        margin: 0 0 10px 0;
        padding: 10px;
    }
}

@media (max-width: 400px) {
    .contact-header {
        padding: 15px;
        text-align: center;
    }

    .contact-head {
        font-size: 1.4rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }

    .contact-info,
    .contact-form {
        padding: 15px;
    }

    .coninfo {
        flex-direction: column;
        align-items: flex-start;
    }

    .coninfo i {
        margin: 0 0 10px 0;
        padding: 10px;
    }

    .name-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    input,
    textarea,
    select {
        font-size: 14px;
        padding: 8px;
    }

    .btn {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }

    h2 {
        font-size: 1.2rem;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkbox-group input {
        margin-bottom: 10px;
    }

    .success-message {
        font-size: 0.9rem;
        padding: 10px;
    }
}



/*NEws Letter*/
.news-email {
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.newsletter-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-title {
    color: #8B0000;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.newsletter-description {
    color: #8B0000;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #8B0000;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #8B0000;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.subscribe-btn {
    background-color: #8B0000;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.subscribe-btn:hover {
    background-color: #883030;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.privacy-note {
    color: #8B0000;
    font-size: 0.8rem;
    margin-top: 20px;
    line-height: 1.5;
}

/* Success message */
.success-message {
    display: none;
    color: #27ae60;
    font-weight: 500;
    margin-top: 15px;
    animation: fadeIn 0.5s ease-out;
}

/* Error message */
.error-message {
    display: none;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .newsletter-container {
        padding: 30px 20px;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-description {
        font-size: 0.9rem;
    }
}


/* Base Footer Styling */
.footer {
    background: #53bbb7;
    color: #fff;
    padding: 30px 20px 5px 20px;
    font-family: Arial, sans-serif;
}

/* Top Section */
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 28px;
    margin: 0;
    color: #fff;
}

.footer-tagline {
    color: #ffff;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact p,
.footer-links ul li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #ffff;
}

.footer-links h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links ul li a:hover {
    opacity: 0.8;
}

/* Bottom Section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    color: #fff;
    margin-left: 53px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-right: 25px;
}

.footer-social img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s;
}

.footer-social a:hover img {
    transform: scale(1.1);
}

/* Responsive Layout */
@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/*Slider home page */
/*Slider home page - Professional Design */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    min-width: 100%;
    height: 90%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: none;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    /* Add a subtle overlay for better text readability */
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.3);
}

.slide.active {
    display: block;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.overlay {
    /* background: linear-gradient(135deg,
            rgba(161, 26, 26, 0.662) 0%,
            rgba(163, 55, 55, 0.584) 50%,
            rgba(0, 0, 0, 0.451) 100%); */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    /* backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; */
    color: #fff;
    padding: 3rem;
    max-width: 700px;
    margin: auto;
    position: absolute;
    top: 60%;
    left: 35%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: overlayFadeIn 1s ease-out 0.3s both;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.overlay h2 {
    /* color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: titleFadeIn 1s ease-out 0.6s both; */
    color: #840000;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: #840000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlide 1s ease-out 0.6s both;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overlay p {
    /* color: #f0f0f0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: textFadeIn 1s ease-out 0.9s both; */
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
    animation: textFade 1s ease-out 0.9s both;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overlay button {
    /* padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 2px solid transparent;
    color: #8B0000;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: buttonFadeIn 1s ease-out 1.2s both; */
    background: linear-gradient(135deg, #8B0000 0%, #a91b3d 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
    animation: buttonPop 1s ease-out 1.2s both;
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.overlay button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.4);
}

.overlay button:active {
    transform: translateY(-1px) scale(1.02);
}

.overlay a {
    text-decoration: none;
}

/* Navigation arrows */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    background: rgba(139, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 1rem 1.2rem;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav:hover {
    background: rgba(139, 0, 0, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.4);
}

.nav.prev {
    left: 30px;
}

.nav.next {
    right: 30px;
}

/* Dots indicator */
.dots {
    text-align: center;
    position: absolute;
    bottom: 100px;
    width: 100%;
    z-index: 10;
}

.dot {
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overlay {
        max-width: 600px;
        padding: 2.5rem;
        left: 45%;
    }

    .overlay h2 {
        font-size: 2.2rem;
    }

    .overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .overlay {
        margin-left: 0;
        margin-bottom: 60px;
        max-width: 100%;
        padding: 2rem;
        border-radius: 20px;
        left: 50%;
    }

    .overlay h2 {
        font-size: 1.8rem;
    }

    .overlay button {
        width: 100%;
    }

    .nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    .nav.prev {
        left: 20px;
    }

    .nav.next {
        right: 20px;
    }

    .dots {
        bottom: 30px;
    }

    .dot {
        height: 10px;
        width: 10px;
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 100vh;
    }

    .overlay {
        padding: 1.5rem;
        max-width: 95%;
        border-radius: 12px;
    }

    .overlay h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .overlay p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .overlay button {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        padding: 0.6rem;
    }

    .nav.prev {
        left: 15px;
    }

    .nav.next {
        right: 15px;
    }

    .dots {
        bottom: 25px;
    }

    .dot {
        height: 8px;
        width: 8px;
        margin: 0 4px;
    }
}

/* Additional smooth animations */
@media (prefers-reduced-motion: no-preference) {
    .slide {
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .slide,
    .overlay,
    .nav,
    .dot {
        transition: none;
        animation: none;
    }
}

/* Focus states for accessibility */
.nav:focus,
.dot:focus,
.overlay button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .overlay {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid #ffffff;
    }

    .nav {
        background: #000000;
        border: 2px solid #ffffff;
    }

    .dot {
        border: 2px solid #ffffff;
    }
}


/*story section*/
.story-head {
    max-width: 1200px;
    margin: 0 auto;
}

.story-head h2 {
    color: #8b0000;
}

.story-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1450px;
    margin: 0 auto;
}

.story-img {
    text-align: center;
    justify-content: center;
}

.story-img img {
    width: 75%;
    height: 55%;
    margin-bottom: 1.5rem;
    border-radius: 5px;
}

.story-card {
    display: flex;
    flex-wrap: wrap;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 1rem;
    max-width: 600px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease forwards;
    opacity: 0;
    flex: 1 1 calc(20% - 20px);
    min-width: 300px;
    max-width: 400px;
}

/* 
@media (max-width: 300px) {
    .story-card {
        flex: 1 1 calc(50% - 15px);
    }
} */

@media (max-width:768px) {
    .story-card {
        flex-direction: column;
    }
}

/* Fade-in animation */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.story-card h3 {
    font-size: 1.2rem;
    color: #B80000;
    /* Primary green color */
    margin-bottom: 1rem;
}

.story-card .div-icon {

    width: 50px;
    height: 50px;
    background-color: #037a5a;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.story-card p {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}


.story-card .div-icon {
    display: flex;
    flex-wrap: wrap;
    width: 60px;
    height: 60px;
    background-color: #a0060668;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(3, 122, 90, 0.3);
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    margin: 0 auto 1.2rem auto;
}

/* Optional: Add an icon inside */
.story-card .div-icon::before {
    content: "";
    /* Example emoji, replace with icon font or SVG if needed */
    font-size: 1.5rem;
    color: #fff;
    justify-content: center;
    align-items: center;
}

/* Hover effect */
.story-card .div-icon:hover {
    transform: scale(1.1);
}


@media (max-width: 500px) {
    .story-card {
        padding: 1.2rem;
    }

    .story-card h3 {
        font-size: 1.25rem;
    }

    .story-card .div-icon {
        width: 50px;
        height: 50px;
    }

    .story-card .div-icon::before {
        font-size: 1.2rem;
    }

    .story-card p {
        font-size: 0.95rem;
    }
}

.highlight {
    color: #3c4a68;
    font-size: 20px;
    font-weight: 400;
}

a {
    text-decoration: none;
}

.one-rupee {
    display: flex;
    justify-content: space-evenly;
}

.donate {
    width: 60%;
    margin-top: 15px;
}

.donate img {
    width: 80%;
    height: 90%;
}

.bank-details {
    padding: 25px;
    text-align: left;
}

.bank-details .account {
    margin: 5px;
}

.bank-details p {
    color: #555;
}

.social-link {
    width: 25px;
    height: 25px;
    font-size: 20px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    margin-bottom: 5px;
}

.social-link:hover {
    transform: translateY(-3px);
}


#result {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 10px;
}

.text-green-500 {
    color: #10b981;
    background: #ecfdf5;
}

.text-red-500 {
    color: #ef4444;
    background: #fef2f2;
}