/* General Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif; /* Modern font for readability */
    background-color: #FAF3E0; /* Light cream background for warmth */
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Center Text on Pages */
.page {
    text-align: center; /* Center text horizontally */
    margin: 0 auto; /* Center the page content */
    max-width: 800px; /* Limit the width for better readability */
    padding: 20px; /* Add padding for breathing room */
    background: #FFFFFF; /* White background for contrast */
    border-radius: 10px; /* Rounded corners for a modern look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

a {
    text-decoration: none;
    color: #E76F51; /* Warm orange for links */
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: #F4A261; /* Slightly lighter orange on hover */
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Rounded corners for images */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Header Styles */
header {
    background: linear-gradient(90deg, #F4A261, #E76F51); /* Gradient for visual interest */
    color: #ffffff;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header .top-banner {
    display: flex;
    align-items: center; /* Align logo and links on the same vertical level */
    justify-content: space-between;
    width: 100%;
}

header .logo img {
    width: 140px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px; /* Add spacing between logo and links */
}

/* Navigation Button Styles */
.nav-btn {
    background-color: #E76F51; /* Warm orange accent */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.nav-btn:hover {
    background-color: #F4A261; /* Slightly lighter orange for hover effect */
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Section Styles */
section {
    padding: 20px;
    margin: 20px auto;
    background: #FFFFFF; /* White background for sections */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    flex: 1; /* Ensures main content stretches to fill space */
}

/* Text Styling */
h1, h2 {
    margin: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #E76F51; /* Warm orange for headings */
    animation: fadeIn 0.5s ease; /* Apply fade-in animation */
}

p {
    margin: 20px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    animation: fadeIn 0.5s ease; /* Apply fade-in animation */
}

/* Project Styles */
#latest-projects .project-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

#latest-projects .project {
    flex: 0 0 300px;
    background: #F4A261; /* Yellow-orange accent */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 15px;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#latest-projects .project:hover {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

#latest-projects .project img {
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background: linear-gradient(90deg, #E76F51, #F4A261); /* Gradient for footer */
    color: #ffffff;
    padding: 20px 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    margin-top: auto; /* Ensures footer stays at the bottom */
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

footer .sponsor img {
    width: 100px;
    height: auto;
    margin-right: 20px; /* Adds spacing between the logo and other content */
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.contact-info a {
    color: #ffffff;
    text-decoration: underline;
}

.creator {
    font-size: 0.9em;
    color: #ffffff;
    text-align: right;
}

/* Events Page Styles */
.events-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.event-card {
    background-color: #F4A261; /* Yellow-orange accent */
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.event-card h3 {
    margin: 10px 0;
    font-size: 1.5em;
}

.event-card p {
    margin: 5px 0;
}

.event-card:hover {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

/* Calendar Container */
.calendar-container {
    margin-top: 30px;
    text-align: center;
}

.calendar-container h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #E76F51; /* Warm orange for headings */
}

/* Login Page Styles */
.google-login-btn {
    background-color: #4285F4; /* Google blue */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.google-login-btn:hover {
    background-color: #357AE8; /* Darker blue for hover effect */
}

/* Admin Panel Styles */
.admin-tools {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-tools button {
    background-color: #E76F51; /* Warm orange */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.admin-tools button:hover {
    background-color: #F4A261; /* Slightly lighter orange */
}

/* Join Us Button Styles */
.join-us-btn {
    background-color: #E76F51; /* Warm orange */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.join-us-btn:hover {
    background-color: #F4A261; /* Slightly lighter orange for hover effect */
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.project-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

.event-image-preview {
    margin: 10px 0;
}
.event-image-preview img {
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
}

.info-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

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

#info-message {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    footer .sponsor img {
        margin-bottom: 10px;
    }

    .footer-details {
        align-items: center;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack logo and navigation vertically */
        text-align: center;
    }

    header .logo img {
        width: 80px; /* Smaller logo for mobile */
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Text Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0; /* Start invisible */
        transform: translateY(20px); /* Start slightly below */
    }
    to {
        opacity: 1; /* Fully visible */
        transform: translateY(0); /* End at original position */
    }
}

/* Hidden Pages */
.hidden {
    display: none;
}