/* Pre-header Scrolling Line */
.pre-header {
    background-color: #34495e; /* Lighter shade of primary color */
    color: var(--white-color);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky; /* Make it sticky */
    top: 0;          /* Stick to the top */
    z-index: 1001;   /* Ensure it's above the main header */
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%; /* Start the text off-screen to the right */
    animation: scroll-left 20s linear infinite; /* Adjust duration as needed */
}

.scrolling-text span {
    display: inline-block;
    padding-right: 20px; /* Space between repeated text */
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* General Body & Typography */
:root {
    --primary-color: #2c3e50; /* Dark Blue */
    --secondary-color: #e74c3c; /* Bright Red */
    --accent-color: #3498db; /* Bright Blue */
    --white-color: #ffffff;
    --light-gray: #f8f9fa; /* Very Light Gray */
    --dark-gray: #343a40; /* Dark Gray */
    --text-color: #495057; /* Grayish Black */
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}


.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

h2 {
    font-size: 2.8em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #c0392b; /* Pomegranate */
}

.btn-donate {
    margin-left: 20px;
}


/* Header & Navigation */
header {
    background: var(--white-color);
    color: var(--text-color);
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 38px; /* Adjusted for the pre-header */
    z-index: 1000;
    transition: top 0.3s;
}

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

header .logo img {
    height: 60px; /* Adjust as needed */
    vertical-align: middle;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 35px;
}

header nav ul li a {
    color: var(--primary-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 1em;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--secondary-color);
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    transition: width 0.4s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    list-style: none;
    padding: 10px 0;
    margin-top: 5px;
    border-radius: var(--border-radius);
    z-index: 1001;
}

.dropdown-li:hover .dropdown {
    display: block;
}

.dropdown li {
    margin: 0;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--primary-color);
    font-weight: 400;
}

.dropdown li a:hover {
    background-color: var(--light-gray);
    color: var(--secondary-color);
}


.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background-color: var(--light-gray);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.message-content img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}



/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./media/social.png') no-repeat center center/cover;
    color: var(--white-color);
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--white-color);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    max-width: 800px;
    font-weight: 300;
}

/* Section Padding */
section {
    padding: 100px 0;
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

/* About Us */
.about-us .team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 180px;
    margin-top: 40px;
    text-align: center;
}

.about-us .team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.about-us .team-member img {
    width: 240px;
    height: 312px;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Projects */
.projects .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.projects .project-item {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects .project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.projects .project-item img {
    max-width: 80px;
    height: auto;
    margin-bottom: 20px;
}

/* Forms */
form {
    background: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 700px;
    margin: 40px auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

form textarea {
    resize: vertical;
    min-height: 150px;
}

form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Events */
.event-list .event-item {
    background: var(--white-color);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Blog */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-post {
    background: var(--white-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Contact */
.contact-info {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.contact-info iframe {
    width: 100%;
    height: 400px;
    margin-top: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white-color);
    padding: 70px 0 20px;
    font-size: 0.95em;
}

footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

footer .footer-section h4 {
    color: var(--white-color);
    margin-bottom: 25px;
    font-size: 1.3em;
    position: relative;
}

footer .footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

footer .footer-section ul {
    list-style: none;
    padding: 0;
}

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

footer .footer-section ul li a {
    color: var(--light-gray);
    transition: color 0.3s ease;
}

footer .footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 25px;
    text-align: center;
    font-size: 0.9em;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 100;
    padding: 10px 15px;
    border-radius: 50%;
}


/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none;
    }
    
    header nav.active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    header nav ul li {
        margin: 10px 0;
    }
    
    .nav-toggle {
        display: block;
    }

    .hero h2 {
        font-size: 3em;
    }
}
