* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --wfp-blue: #007DBC;
    --wfp-dark-blue: #003A5D;
    --primary-color: #b6d9ff;
    --wfp-orange: #E84E10;
    --wfp-orange-hover: #f67e4e;
    --wfp-yellow: #FFC72C;
    --text-color: #333333;
    --text-light: #666666;
    --nav-bg: #f8f8f8;
    --card-bg: #ffffff;
    --light-gray: #F5F5F5;
    --bg-secondary: #f9f9f9;
    --bg-color: #FFFFFF;
    --border-color: #616161;
    --font-main: Arial, 'Segoe UI', 'Open Sans', sans-serif;
    --white: #ffffff;
}

body {
    font-family:var(--font-main);
    background:var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    left: 0;
}

.logo-img {
    display:flex; 
    align-items: center;
}

.brand{
    margin-left: 15px;
}

.navbar {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    background-color: var(--wfp-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
}

.nav-links {    
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Toggle menu on mobile */
.nav-theme {
    display: flex;
    align-items: center;
}

/* Responsive nav for phone screens */
/* Media Query: Tablets & Up*/

@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--nav-bg);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
}


/* Hero Section */
.hero {
    
    background: linear-gradient(rgba(0, 0, 0, 0.6)),url('../assets/images/hero.jpg');
    color: var(--light-gray);
    background-size: cover;
    background-position: center;
    padding: 1rem 0;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
}

.hero h1 {
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--wfp-orange);
    color: var(--bg-color);
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--wfp-orange-hover);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    color: var(#F5F5F5);
    font-weight: bold;
    border:1px solid var(--border-color);
    border-radius: 5px;
    transition: 0.3s ease;
}
.btn-secondary:hover{
    background-color: var(--wfp-blue);
    color: var(--bg-color);
}

/*  section */
.section {
    padding: 2rem 1rem;
    text-align: center;
}

.about-section {
    padding: 2rem 1rem;
    background-color:var(--bg-color);
}

.about-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.about-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-content .text {
    max-width: 600px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color)
}

/* Responsive for larger screens */
@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items:center;
        text-align: left;
    }

    .about-content .text {
        margin-left: 1.5rem;
    }
}

/* Stats Section */
.stats {
    
    padding: 3rem 0;
    background:var(--wfp-blue);
    color:var(--bg-color);
    text-align: center;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    flex-direction: column; 
    gap: 2rem;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-item p{
    color: var(--text-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .stats  .container{
        flex-direction: row;
        justify-content: space-around;
    }
}

/* projects-section */
.projects-section {
    padding: 2rem 1rem;
    background-color:var(--bg-color);
}

.projects-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--border-color);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: auto;
    display: block;
}

.project-card h3 {
    font-size: 1.2rem;
    margin: 1rem;
}

.project-card p {
    margin: 0 1rem 1rem;
    font-size: 1rem;
     color:var(--border-color);/* #444; */
}

/* Larger screens */
@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Donation Section */
.donation-section {
    background-color: var(--bg-color);
    padding: 4rem 0;
}

.donation-form-wrapper {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header img {
    height: 60px;
    margin-bottom: 1rem;
}

.form-header h2 {
    color: var(--wfp-dark-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--wfp-dark-blue);
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.amount-option {
    background-color: var(--light-gray);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.amount-option:hover {
    background-color: #e0e0e0;
}

#custom-amount {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

/* Newsletter */
.newsletter {
    background-color: var(--wfp-blue);
    padding: 3rem 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: inherit;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
}


/* contact-section */
.contact-section {
    padding: 3rem 1rem;
    background-color: var(--bg-secondary);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form,
.contact-info {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.contact-form button {
    background-color: var(--wfp-blue);
    color: var(--bg-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 200px;
    margin-top: 1rem;
    border: none;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}
.errorMessage {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 10px;
    display: none;
}

input:invalid, 
textarea:invalid {
    /* border-color: #e74c3c !important; */
}

input:valid, 
textarea:valid {
    /* border-color: #2ecc71 !important; */
}

.submit-btn {
    background: var(--wfp-orange);
    transition: all 0.3s;
}

.submit-btn:hover {
    background:var(--wfp-orange-hover);
    transform: translateY(-2px);
}

/* Responsive */
@media (min-width: 768px) {
    .contact-wrapper {
        flex-direction: row;
    }

    .contact-form,
    .contact-info {
        flex: 1;
    }
}

/*  footer */
.footer {
    background-color: var(--wfp-blue);
    color: var(--bg-color);
    padding: 3rem 1rem 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
    color: var(--white);
}

.footer-column
{
    margin-bottom: 0.5rem;
}

.footer-logo {
    width: 50px;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column h3 {
    margin-bottom: 0.3rem;
    font-size: 1.125rem;
}

.footer-column a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    margin-left: -22px;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--bg-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}



/* for dark mode */
.dark-mode {
    --bg-color: #252121;
    --text-color: #f1f1f1;
    --wfp-dark-blue: #007DBC;
    --wfp-blue: #003A5D;
    --primary-color: #1e90ff;
    --nav-bg: #003A5D;
    --card-bg: #1e1e1e;
    --border-color: #a1a1a1;
    --bg-secondary: #2c2c2c;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 15px;
    opacity: 60%;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:var(--wfp-dark-blue);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    content: "☀️";
    position: absolute;
    left: 4px;
    bottom: 4px;
    transition: .4s;
}

input:checked + .slider {
    background: #555;
}

input:checked + .slider:before {
    content: "🌙";
    /* transform: translateX(26px); */
}

/* for button move to up */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--wfp-orange);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
    z-index: 999;
}

.back-to-top:hover{
    background-color: var(--wfp-orange-hover);
}

/* For Loading... */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.wfp-logo-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--wfp-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}







