/* Basic Reset & Defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* For smooth anchor link scrolling */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #374151; /* Text Gray */
    background-color: #FFFFFF;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #3B82F6; /* Primary Blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

.content-section {
    padding: 60px 0;
}

.bg-light {
    background-color: #F9FAFB; /* Light Gray */
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #F97316; /* Warm Orange */
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #EA580C; /* Darker Orange */
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-large {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* Header */
.header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

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

.logo-placeholder {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1F2937;
}
.logo-placeholder img {
    margin-right: 10px;
}
.logo-placeholder span {
    display: none; /* Hide text logo on small screens initially */
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #374151;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: #3B82F6;
}
.main-nav a::after { /* Simple underline effect */
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3B82F6;
    transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}


.header-contact {
    display: none; /* Hidden on small screens */
}
.header-contact a {
    margin-left: 15px;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #374151;
}

/* Hero Section */
.hero {
    background: url('./assets/hero-background.jpg') no-repeat center center/cover; /* REPLACE # with your hero image URL */
    background-color: #cccccc; /* Fallback color */
    color: #FFFFFF;
    height: 70vh; /* Adjust as needed */
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero::after { /* Optional overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Why Donate Section */
.why-donate h2, .eligibility h2, .process h2, .register h2, .social-proof h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1F2937; /* Darker Heading */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item .feature-icon i {
    font-size: 2rem;
    color: #FFFFFF;
}

.feature-item:hover .feature-icon {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Specific colors for each feature icon */
.feature-icon.life-saver {
    background: linear-gradient(135deg, #10B981, #059669);
}

.feature-icon.health-benefits {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.feature-icon.community {
    background: linear-gradient(135deg, #F97316, #EA580C);
}
.feature-item h3 {
    color: #111827;
    margin-bottom: 0.5rem;
}

/* Eligibility Section */
.eligibility-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.eligibility-col {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}
.eligibility-col h3 {
    color: #3B82F6;
    border-bottom: 2px solid #D1D5DB;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.eligibility-col ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.eligibility-col ul li i { /* Assuming Font Awesome */
    color: #10B981; /* Green check */
    min-width: 16px; /* Ensure alignment */
}

.eligibility .disclaimer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #6B7280;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}
.process-step {
    background-color: #F9FAFB;
    padding: 25px;
    border-radius: 8px;
    position: relative;
}
.process-steps .step-icon {
    width: 50px;
    height: 50px;
    background-color: #3B82F6;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem auto;
}
.process-steps h3 {
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    background-color: #FFFFFF;
}

.services h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #1F2937;
}

.services-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #6B7280;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

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

.service-item {
    background-color: #F9FAFB;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E5E7EB;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: #3B82F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: background-color 0.3s ease;
}

.service-item:hover .service-icon {
    background-color: #F97316;
}

.service-icon i {
    font-size: 1.8rem;
    color: #FFFFFF;
}

.service-item h3 {
    color: #1F2937;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-item > p {
    color: #4B5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.95rem;
}

.service-features i {
    color: #10B981;
    margin-right: 10px;
    font-size: 0.9rem;
    min-width: 16px;
}

.services-cta {
    text-align: center;
    background-color: #F3F4F6;
    padding: 30px;
    border-radius: 12px;
    margin-top: 2rem;
}

.services-cta p {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.services-cta .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
}

.services-cta .btn i {
    margin-right: 8px;
}

/* Registration Form Section */
#registration-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group-full {
    grid-column: 1 / -1; /* Span full width */
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4B5563;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: flex-start; /* Align checkbox with start of text */
    font-size: 0.9rem;
    color: #4B5563;
    font-weight: normal;
}
.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px; /* Adjust vertical alignment */
    width: 16px;
    height: 16px;
    accent-color: #3B82F6;
}

.form-submit {
    text-align: center;
    margin-top: 20px;
}

.form-note {
    font-size: 0.85rem;
    color: #6B7280;
    margin-top: 15px;
}

#form-message { /* For success/error messages */
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}
.success-message { color: #10B981; }
.error-message { color: #EF4444; }


/* Social Proof Section (Optional) */
.social-proof {
    background-color: #FFFFFF;
}
.donor-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.donor-item {
    text-align: center;
}
.donor-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #E5E7EB;
}
.donor-item p {
    font-style: italic;
    color: #4B5563;
}

/* Footer */
.footer {
    background-color: #1F2937; /* Footer Dark */
    color: #D1D5DB; /* Light Gray Text */
    padding-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
    color: #FFFFFF;
}
.footer-logo img {
    margin-right: 8px;
}

.footer h4 {
    color: #FFFFFF;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer a {
    color: #D1D5DB;
}
.footer a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-social a {
    margin-right: 15px;
    font-size: 1.1rem; /* Adjust icon size if using Font Awesome */
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #374151; /* Darker Gray Border */
    font-size: 0.9rem;
    color: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }
    .hero { height: 60vh; min-height: 400px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }

    .header-container {
        position: relative; /* For absolute positioning of nav */
    }

    .main-nav {
        display: none; /* Hide nav by default */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 10px 0;
    }
     .main-nav.active {
        display: block; /* Show when active */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .main-nav ul li {
        width: 100%;
        text-align: center;
    }
     .main-nav ul li a {
         display: block;
         padding: 12px 20px;
         width: 100%;
         border-bottom: 1px solid #f3f4f6;
     }
      .main-nav ul li a:hover {
         background-color: #f9fafb;
      }
       .main-nav ul li a::after {
           display: none; /* Hide underline effect on mobile nav */
       }


    .menu-toggle {
        display: block; /* Show hamburger */
    }

    .header-contact {
        display: none; /* Ensure contact info is hidden */
    }

    .form-grid {
        grid-template-columns: 1fr; /* Stack form fields */
    }
    .form-group-full {
        grid-column: auto; /* Reset spanning */
    }

    .eligibility-columns {
        flex-direction: column;
        align-items: center;
    }

     .footer-container {
         grid-template-columns: 1fr; /* Stack footer columns */
         text-align: center;
     }
     .footer-logo, .footer-info p {
         text-align: center;
     }
     .footer-social {
         margin-top: 20px;
     }
     .footer-social a {
         margin: 0 10px;
     }
}

@media (min-width: 769px) {
    .logo-placeholder span { /* Show text logo on larger screens */
         display: inline;
    }
    .header-contact {
        display: block;
    }
}

/* Legal Pages Styles */
.legal-content {
    padding: 80px 0 60px 0;
    background-color: #FFFFFF;
    min-height: 80vh;
}

.legal-content h1 {
    color: #1F2937;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.legal-content .last-updated {
    text-align: center;
    color: #6B7280;
    font-style: italic;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E5E7EB;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: #3B82F6;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3B82F6;
}

.legal-section h3 {
    color: #374151;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.legal-section p {
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: #4B5563;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    list-style-type: disc;
}

.legal-section ol {
    color: #4B5563;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-section ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info {
    background-color: #F3F4F6;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3B82F6;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #374151;
}

.contact-info a {
    color: #3B82F6;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.legal-content .footer {
    background-color: #F9FAFB;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid #E5E7EB;
}

.legal-content .footer p {
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.legal-content .footer a {
    color: #3B82F6;
    text-decoration: none;
    margin: 0 0.5rem;
}

.legal-content .footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 60px 0 40px 0;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section ul,
    .legal-section ol {
        padding-left: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
}