/* =========================
   Global Styles
========================= */

:root {
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Tinos', serif;
    --font-alt: Arial, sans-serif;
    --color-primary: #007acc;
    --color-primary-dark: #005f99;
    --color-primary-darker: #004d80;
    --color-secondary: #3498db;
    --color-secondary-dark: #004c99;
    --color-bg: #f5f8fa;
    --color-text: #333;
    --color-heading: #2c3e50;
    --color-link: #007bff;
    --color-link-hover: #0056b3;
    --color-light-bg: #ffffff;
    --color-light-gray: #f9f9f9;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-fast: 0.3s;
    --max-content-width: 85%;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-heading);
}

.blog-post h2 {
    font-family: var(--font-alt);
    color: black;
}

/* =========================
   Center sections
==========================*/
/* Center Every Section on the Page */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 40px auto;
    max-width: var(--max-content-width);
}

/* Center Headers */
section h1, section h2, section h3 {
    margin-bottom: 20px;
    text-align: center;
}

/* Center Paragraphs */
section p {
    max-width: 800px;
    text-align: center;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

/* Center Lists */
section ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

/* Center List Items */
section ul li {
    margin-bottom: 15px;
}

/* Center Buttons */
.btn, .cta-button {
    width: 300px;
    background-color: #0056b3;
    color: #fff;
    padding: 15px 20px;
    margin: 10px 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn:hover, .cta-button:hover {
    background-color: #003f7f;
    color: #ffffff;
}

/* Remove Bullet Points */
ul li::marker {
    content: "";
}

/* Make Images Centered */
section img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


/* =========================
   Links and Buttons
========================= */

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    text-decoration: underline;
    color: var(--color-secondary-dark);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform 0.2s;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-primary:active {
    background-color: var(--color-primary-darker);
    transform: translateY(0);
}

/* =========================
   Header
========================= */

header {
    background: linear-gradient(90deg, #a8c0ff, #cfd9df);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px var(--color-shadow);
}

header h1 {
    font-size: 2.5em;
    color: var(--color-primary-darker);
    margin: 0;
}

header p {
    font-size: 1.2em;
    color: #006699;
    margin-top: 5px;
}

header img {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =========================
   Navigation
========================= */

nav {
    background-color: #34495e;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 5px var(--color-shadow);
    border-radius: 25px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

nav ul li a:hover {
    background-color: #1abc9c;
}

/* =========================
   Main Content
========================= */

main {
    padding: 20px 10%;
}

.welcome-section, .blog-posts, .resource-section {
    margin-bottom: 40px;
    background-color: var(--color-light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 5px var(--color-shadow);
}

.intro-section, .book-section {
    text-align: center;
    margin: 40px auto;
}

.intro-section p, .welcome-section p, .blog-posts p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 10px 0;
    max-width: 600px;
}

/* =========================
   Image Styles
========================= */

.feature-image, .view-container {
    background-color: var(--color-light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 5px var(--color-shadow);
    max-width: var(--max-content-width);
    margin: 0 auto 40px auto;
}

.feature-image img, .post-image img {
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* =========================
   Modal Styles
========================= */

.modal {
    display: none;
    position: fixed;
    z-index: 99999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: var(--color-light-bg);
    margin: 5% auto;
    padding: 20px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 15px var(--color-shadow);
    position: relative;
}

.modal-content iframe {
    width: 100%;
    max-height: 80vh;
    border: none;
}

/* =========================
   Volunteer Form
========================= */

.volunteer-form-wrapper {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    box-shadow: var(--box-shadow);
}

.volunteer-form-wrapper .form-row {
    margin-bottom: 1.75rem;
}

.volunteer-form-wrapper label {
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1.1rem;
}

.volunteer-form-wrapper input[type="text"],
.volunteer-form-wrapper input[type="email"],
.volunteer-form-wrapper select,
.volunteer-form-wrapper textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: border-color var(--transition-fast);
}

.volunteer-form-wrapper input:focus,
.volunteer-form-wrapper textarea:focus,
.volunteer-form-wrapper select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 122, 204, 0.3);
}

/* Cloudflare Turnstile */
.volunteer-form-wrapper .cf-turnstile {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

/* PDF Link Styling */
.pdf-link {
    margin-top: 1.5rem;
    text-align: center;
}

.pdf-link a {
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: none;
}

.pdf-link a:hover {
    text-decoration: underline;
    color: var(--color-primary-dark);
}

/* Success Message Styling */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem auto;
    max-width: 700px;
    text-align: center;
}

/* Improved Textarea Sizing */
.volunteer-form-wrapper textarea {
    min-height: 150px;
}

/* Form Heading Styling */
h2.form-heading {
    font-size: 2rem;
    text-align: center;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}

/* General Button Styles */
.btn, .cta-button {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    padding: 10px 20px;
    margin: 10px 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover, .cta-button:hover {
    background-color: #003f7f;
    color: #ffffff;
}

/* Centering Buttons in Hero Section */
.cta-buttons {
    text-align: center;
    margin-top: 20px;
}

/* Remove bullet points */
.explore-section ul li::marker {
    content: "";
}

/* Button Grid with Consistent Spacing */
.explore-section ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    list-style-type: none;
    max-width: 1000px;
    margin: 0 auto 40px auto;
}

/* Second Row (2 buttons) */
.explore-section ul li:nth-child(4),
.explore-section ul li:nth-child(5) {
    grid-column: span 1;
}

/* Button Styles */
.explore-section .btn {
    width: 100%;
    background-color: #0056b3;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

.explore-section .btn:hover {
    background-color: #003f7f;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .explore-section ul {
        grid-template-columns: 1fr;
    }

    .explore-section ul li {
        grid-column: span 1;
    }
}

/* About Page Styles */
.about-intro, .about-mission, .about-values, .about-history, .about-call-to-action {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
}

.about-values ul {
    list-style: none;
    padding: 0;
}

.about-values ul li {
    margin: 15px 0;
    font-size: 1.2em;
    text-align: left;
}

.about-call-to-action .btn-primary {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.about-call-to-action .btn-primary:hover {
    background-color: #003f7f;
}

/* Centering Text */
.about-intro p, .about-mission p, .about-history p, .about-call-to-action p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0 auto 20px auto;
    max-width: 800px;
}

/* Centering Headers */
.about-intro h2, .about-mission h2, .about-values h2, .about-history h2, .about-call-to-action h2 {
    margin-bottom: 20px;
}

/* ========================
   Top Nav Styles
======================== */
/* Navbar Styles */
.navbar {
    background-color: #183a5b;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Logo */
.logo {
    font-size: 1.75rem;
    font-weight: bold;
    color: #ffffff;
}

/* Nav Links */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    background-color: #183a5b;
    border-radius: 10px;
    padding: 0.5rem 1rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
    background-color: #0056b3;
    color: #ffffff;
}

/* Icons */
.nav-links a i {
    font-size: 1.2rem;
    color: #ffffff;
}

/* Hamburger Button */
.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    position: absolute;
    right: 1rem;
    top: 1.5rem;
    z-index: 2000;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 90%;
        background-color: #183a5b;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        position: absolute;
        top: 80px;
        left: 5%;
        z-index: 1500;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .nav-links.open {
        display: flex;
    }
}




/* ========================
   Footer Styles
======================== */
.footer {
    background-color: #00274d;
    padding: 1.5rem 0.5rem;
    border-radius: 25px 25px 0 0;
    margin-top: 2rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-nav ul li {
    flex: 1 1 100px;
    text-align: center;
    margin-bottom: 1rem;
}

.footer-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.footer-nav ul li a i {
    font-size: 1.5rem;
    color: #66b2ff;
    transition: color 0.3s;
}

.footer-nav ul li a:hover {
    color: #66b2ff;
}

.footer-nav ul li a:hover i {
    color: #ffffff;
}

footer p {
    text-align: center;
    font-size: 0.75rem;
    color: #bbbbbb;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
}

.footer-nav ul li a:hover i {
    color: #ffffff;
    text-shadow: 0 0 10px #66b2ff;
}


/* 404 Error Page Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    color: #183a5b;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-content {
    z-index: 1;
}

.error-content h1 {
    font-size: 10rem;
    margin: 0;
    color: #0056b3;
}

.error-content h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    color: #007bff;
}

.error-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.error-content .btn {
    background-color: #007bff;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.error-content .btn:hover {
    background-color: #0056b3;
}

/* Background Effect */
.error-background {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #007bff 0%, #0056b3 80%);
    clip-path: circle(60% at center);
    z-index: 0;
    animation: float 15s infinite linear;
    opacity: 0.15;
}

@keyframes float {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(50px) translateY(-50px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

