:root {
    --primary: #ed6e19;
    --secondary: #ff6b35;
    --bg: #f8f9fa;
    --text: #222;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* Social Media Cards */
.social-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.social-card a {
    color: inherit;
}

.social-card .card-body {
    padding: 1.5rem 1rem;
}

/* Footer Social Links */
.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary) !important;
}

/*topbar*/
.navbar {
    display: flex;
    justify-content: flex-end;
    /* moves items to the right */
}

/*topbar*/
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Align logo & menu vertically */
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.top-bar,
.news-ticker {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    font-size: 0.9rem;
}

.news-ticker {
    background: #fff;
    color: var(--primary);
}

.news-ticker marquee {
    color: var(--text);
    width: 80%;
}

.btn {
    background: #fff;
    color: var(--primary);
    padding: 6px 15px;
    margin: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    transition: .2s;
}

.btn.primary {
    background: var(--secondary);
    color: #fff;
}



header {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 99;
}

.flex-space {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.logo span {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    display: block;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    color: #222222;
}

nav {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
}

nav ul li a {
    color: var(--primary);
    text-decoration: none;
    padding: 10px 18px;
    transition: .2s;
}

nav ul li a:hover {
    background: var(--primary);
    color: #fff;
    border-radius: 3px;
}

#nav-toggle {
    display: none;
    background: none;
    font-size: 2rem;
    border: none;
    color: var(--primary);
}

#main-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #ed6e19;
}

#main-nav li {
    position: relative;
}

#main-nav li a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
}

#main-nav li:hover {
    background: #ed6e19;
}

/* Dropdown menu */
#main-nav .dropdown-content {
    display: none;
    position: absolute;
    background: #f9f9f9;
    min-width: 180px;
    max-width: 220px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
    left: 0;
    top: 100%;
}

/* Align last dropdown to right to prevent overflow */
#main-nav li:last-child .dropdown-content {
    left: auto;
    right: 0;
    max-width: 200px;
}

#main-nav .dropdown-content a {
    color: black;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

#main-nav .dropdown-content a:hover {
    background: #ddd;
}

#main-nav li:hover .dropdown-content {
    display: block;

}

/* Slider container */
.slider-container {
    position: relative;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
}

/* Slider images */
.slide {
    display: none;
    width: 100%;
    height: 400px;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Next & previous buttons */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 3px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Dots */
.dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.active {
    background-color: white;
}

/* Welcome Section */
section {
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
    background: white;
    margin-top: 20px;
    border-radius: 10px;
}

h2 {
    color: #ed6e19;
}

p {
    line-height: 1.6;
}

/* Our Project Cards */
.project-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border-radius: 10px;
}

.edu {
    background: #f0fff0;
    color: #ed6e19;
}

.health {
    background: #fffaf0;
    color: #e67e22;
}

.env {
    background: #f0f8ff;
    color: #2980b9;
}

.project-card h3 {
    margin-top: 0;
}

/* Mission & Vision */
.mission-vision {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.mission,
.vision {
    flex: 1;
    min-width: 250px;
    background: #f9fff9;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #ed6e19;
}

/* Testimonials */
.testimonials {
    background: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.testimonial-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.testimonial-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-style: italic;
}

/* Footer */
footer {
    background: #ed6e19;
    color: white;
    text-align: center;
    padding: 15px;
}

/* CTA Button */
.cta-btn {
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 12px 25px;
    margin-top: 20px;
    font-size: 1.1em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: #cf711f;
}

/* Contact Section */
.contact {
    background: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

.contact h2 {
    color: #ed6e19;
    margin-bottom: 10px;
}

.contact p {
    margin-bottom: 30px;
    color: #555;
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    resize: none;
}

.submit-btn {
    background: #ed6e19;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #ed6e19;
}

/* Floating Social Media Buttons */
.social-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.social-buttons a img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.social-buttons a img:hover {
    transform: scale(1.1);
}

#whatsapp-widget {
    position: fixed;
    bottom: 35px;
    right: 20px;
    z-index: 999;
}

#whatsapp-widget a {
    background: #ed6e19;
    color: #fff;
    padding: 13px 18px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
}

.social-links {
    text-align: center;
    margin-top: 24px;
}

.social-links a {
    margin: 0 11px;
    color: var(--primary);
    text-decoration: none;
}

footer {
    background: #222;
    color: #fff;
    margin-top: 40px;
    padding: 28px 0 12px 0;
}

.grid-3 {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

footer a {
    color: var(--primary);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 18px;
    font-size: 0.9rem;
}

@media (max-width:780px) {
    .grid-3 {
        flex-direction: column;
        gap: 24px;
    }

    .services-grid,
    .donors-list {
        flex-direction: column;
    }

    header,
    .top-bar,
    .news-ticker {
        flex-direction: column;
        text-align: center;
    }

    #nav-toggle {
        display: block;
    }

    nav ul {
        flex-direction: column;
        display: none;
    }

    nav ul.show {
        display: block;
    }
}

/* Desktop default */
#nav-toggle {
    display: none;
    background: none;
    font-size: 2rem;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 780px) {
    #nav-toggle {
        display: block;
        /* Show icon in mobile */
    }

    nav ul {
        display: none;
        /* Hide menu by default */
        flex-direction: column;
        background: #ed6e19;
        padding: 10px;
        margin: 0;
        list-style: none;
        position: absolute;
        top: 60px;
        /* distance from top of page */
        right: 0;
        /* align to right side */
        width: 200px;
        /* menu width */
        z-index: 999;
    }


    nav ul.show {
        display: flex;
        /* Show menu when toggled */
    }
}

/* Hamburger icon */
#nav-toggle {

    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
}



.top-bar {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping */
    justify-content: center;
    /* Center align on small screens */
    gap: 8px;
    padding: 8px;
    background-color: #ed6e19;
    /* Green background */
}

.top-bar .top-bar-left,
.top-bar .top-bar-right {
    display: flex;
    gap: 10px;
    /* spacing between buttons */
}

.top-bar .btn {
    background: #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    white-space: nowrap;

}

.top-bar .btn.primary {
    background-color: #ff5722;
    color: #fff;
}

.top-bar .btn:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-items {
        display: none;
        /* Hide menu initially */
        flex-direction: column;
        width: 100%;
        background: #ed6e19;
        padding: 10px;
    }

    .menu-items.show {
        display: flex;
        /* Show menu when toggled */
    }
}