﻿/* === Global Styles === */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Lato', sans-serif;
    color: #4a148c;
    margin-bottom: 0.5rem;
}

a {
    color: #6a1b9a;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* === Hero Section === */
.hero {
    background: linear-gradient(to right, #6a1b9a, #8e24aa);
    color: white;
    text-align: center;
    padding: 2rem;
}

.logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.hotline {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1rem;
}

/* === Mission Section === */
.mission {
    background: #f3e5f5;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    color: #4a148c;
}

/* === Quick Links Section === */
.quick-links {
    padding: 2rem;
    text-align: center;
}

.link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

    .link-grid a {
        background: #ba68c8;
        color: white;
        padding: 1rem;
        border-radius: 6px;
        font-weight: bold;
        transition: background 0.3s ease;
    }

        .link-grid a:hover {
            background: #8e24aa;
        }

/* === Contact Info Section === */
.contact-info {
    padding: 2rem;
    background: linear-gradient(to right, #6a1b9a, #8e24aa);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 800px;
    margin: 2rem auto;
}

    .contact-info h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        text-align: center;
    }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    font-size: 1.1rem;
}

    .contact-grid a {
        color: #ffccff;
        text-decoration: underline;
    }

.contact-form-section {
    background-color: #f3eafc; /* Soft lavender tone */
    padding: 2rem;
    margin: 2rem auto;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    text-align: center;
}

    .contact-form-section h2 {
        color: #6a4fa3;
        margin-bottom: 1rem;
    }

    .contact-form-section form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: left;
    }

    .contact-form-section label {
        font-weight: bold;
        color: #333;
    }

    .contact-form-section input,
    .contact-form-section textarea {
        padding: 0.5rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: 100%;
    }

    .contact-form-section button {
        background-color: #6a4fa3;
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .contact-form-section button:hover {
            background-color: #563a8f;
        }

/* === Responsive Breakpoints === */
@media (min-width: 600px) {
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .link-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === Header & Navigation === */
header {
    background: #6a1b9a;
    padding: 1rem;
    color: white;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav-logo {
    max-height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

    .nav-links li a {
        color: white;
        font-weight: bold;
        text-decoration: none;
    }

        .nav-links li a:hover {
            text-decoration: underline;
        }

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    nav a:hover {
        background-color: #ccb8e6; /* soft lavender */
        color: #4a148c; /* deep purple accent */
        border-radius: 4px;
    }
/* === Navigation Container === */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #6a1b9a, #8e24aa);
    padding: 1rem;
    position: relative;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

    .nav-links a:hover {
        text-decoration: underline;
    }

.menu-icon {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* === Mobile Menu === */
#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #6a1b9a;
        width: 100%;
        padding-left: 2rem;
    }

    #menu-toggle:checked + .menu-icon + .nav-links {
        display: flex;
    }

    .menu-icon {
        display: block;
    }
}
/* === Footer === */
footer {
    background: #4a148c;
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

/* === About Page Sections === */
.history, .funding {
    background: #f9f3fc;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 8px;
    color: #4a148c;
}

    .history h2, .funding h2 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .funding ul {
        list-style-type: disc;
        padding-left: 1.5rem;
    }

/* === Services Page Sections === */
.capacity, .services {
    background: #f9f3fc;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 8px;
    color: #4a148c;
}

    .capacity h2, .services h2 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .services ul, .capacity ul {
        list-style-type: disc;
        padding-left: 1.5rem;
    }

/* === Resources Page Sections === */
.checklist {
    background: #f3e5f5;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 8px;
    color: #4a148c;
}

    .checklist h2 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .checklist ul {
        list-style-type: disc;
        padding-left: 1.5rem;
    }

/* === Donate Page Sections === */
.tax-credit {
    background: #f9f3fc;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 8px;
    color: #4a148c;
}

    .tax-credit h2 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .tax-credit ul {
        list-style-type: disc;
        padding-left: 1.5rem;
    }

.switch-group {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 1rem 0;
}

#knownFields {
    margin-top: 1rem;
    text-align: left;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 1rem;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #6a1b9a;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

.toggle-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    justify-content: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #6a1b9a;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }


/* === Home Page Sections === */
.monthly-highlight {
    background-color: #f5f0fa;
    border-left: 5px solid #ccb8e6;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

    .monthly-highlight h2 {
        color: #6a4fa3;
    }

/* === Login Page Sections === */

.login-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f5f0fa;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

    .login-form h2 {
        text-align: center;
        margin-bottom: 1rem;
        color: #6a4fa3;
    }

.large-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.login-button {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.2rem;
    background-color: #6a4fa3;
    color: white;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

    .login-button:hover {
        background-color: #5a3d91;
        cursor: pointer;
    }
.error-message {
    color: red;
    text-align: center;
    margin-top: 1rem;
}

/* === Maintenance Page Sections === */
.page-title {
    text-align: center;
    color: #6a4fa3;
    margin-bottom: 2rem;
}

.maintenance-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f5f0fa;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    color: #333;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

.switch input:checked + .slider {
    background-color: #6a4fa3;
}

    .switch input:checked + .slider:before {
        transform: translateX(26px);
    }

.section-header {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #6a4fa3;
    margin-bottom: 1rem;
}
.button-row {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.update-button {
    width: 250px;
    padding: 1rem;
    font-size: 1.2rem;
    background: linear-gradient(to right, #6a4fa3, #ccb8e6);
    color: white;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
    display: inline-block;
}

.toggle-row-maintenance {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.toggle-label-maintenance {
    font-size: 1.1rem;
    color: #333;
}