:root {

    --base: oklch(0.847 0.083 340);

    --background-color: var(--base);
    --accent2-color: oklch(from var(--base) clamp(0, l + 0.22, 1 ) calc(c*0.8) h);
    --accent-color: oklch(from var(--base) clamp(0, l - 0.22, 1 ) calc(c*0.8) h);
    --text-color: hsl(from var(--base) calc(h - 100) s 25);
}

@media (prefers-color-scheme: dark) {
    :root {
        --base: oklch(0.34 0.2 320);

        --background-color:  var(--base);
        --accent-color: oklch(from var(--base) clamp(0, l + 0.22, 1 ) calc(c*0.8) h);
        --accent2-color: oklch(from var(--base) clamp(0, l - 0.22, 1 ) calc(c*0.8) h);
        --text-color: hsl(from var(--base) calc(h - 100) s 75);
    }
    
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Global link styling */
a {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: bold;
}

main {
    flex-grow: 1;
}

.header-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    animation: growAndFade;
}

@keyframes growAndFade {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1rem, 5vw, 2rem);
    background-color: var(--accent-color);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px);
    position: relative;
}

.logo,
nav {
    z-index: 1;
}


.logo a {
    color: var(--text-color);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: bold;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 80px;
    margin-right: 1rem;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(1rem, 5vw, 2rem);
}

.nav-links a {
    color: var(--text-color);
    font-size: clamp(1rem, 5vw, 1.2rem);
    text-decoration: none;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu-line {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    margin: 6px 0;
}

@media (max-width: 1220px) {
    .nav-links {
        display: none;
        position: absolute; /* Reverted to absolute */
        top: 100%; /* Reverted to 100% */
        right: 0;
        background-color: var(--accent-color);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        z-index: 100; /* Reverted z-index */
        /* Removed justify-content: center; */
    }

    .nav-links.active {
        display: flex !important;
    }

    .hamburger-menu {
        display: block;
    }

    body.nav-open .admin-header {
        display: none; /* Hide admin header when nav is open */
    }
}

.hero {
    text-align: center;
    padding: clamp(2rem, 10vw, 5rem);
}

.hero h1 {
    font-size: clamp(2rem, 10vw, 4rem);
    margin-bottom: 1rem;
}

.contact-form-section {
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    background-color: oklch(from var(--background-color) l c calc(h + 10));
    color: var(--text-color);
}

.form-group textarea {
    resize: vertical;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: oklch(from var(--accent-color) l c calc(h + 10));
}

#formResponse {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

footer {
    background-color: var(--accent2-color);
    padding: 2rem;
    color: var(--text-color);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.footer-section {
    text-align:center;
    flex: 1 1 200px;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: var(--text-color);
}

.partner-logos-container {
    text-align: center;
    margin-top: 2rem;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.partner-logo {
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.social-media {

    display: flex;

    gap: 1rem;

    margin:auto;
    width:auto;
    max-width:200px;

}



.social-media a {

    display: inline-block;

    width: 40px;

    height: 40px;

}



.social-media svg {

    width: 100%;

    height: 100%;

    fill: var(--text-color);

}

/* --- New Styles for Admin/Events Pages --- */

/* General container styling for login, change password, admin dashboard, manage pages */
.login-container,
.change-password-container,
.admin-content {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto; /* Center content and add vertical margin */
    max-width: 800px; /* Default max-width, can be overridden */
}

.login-container,
.change-password-container {
    width: 350px; /* Specific width for login/password change forms */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-container h2,
.change-password-container h2,
.admin-content h2,
.admin-content h3 {
    margin-bottom: 20px;
    text-align: center;
}

/* Form group styling */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group textarea {
    width:100%;
    padding: 10px;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input[type="checkbox"] {
    margin-right: 5px;
}

/* Button styling */
.btn,
button[type="submit"] { /* General button style */
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: auto; /* Default to auto width */
    box-sizing: border-box;
    text-decoration: none; /* For anchor tags styled as buttons */
    display: inline-block; /* For anchor tags styled as buttons */
    transition: background-color 0.3s ease;
}

.btn:hover,
button[type="submit"]:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
}
.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
}
.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
}
.btn-info:hover {
    background-color: #138496;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* Message styling */
.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: left;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Header */
.admin-header {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header h1 {
    margin: 0;
    font-size: 24px;
    color: white;
}
.admin-header nav a {
    color: var(--text-color);
    margin-left: 20px;
    font-size: 16px;
}
.admin-header nav a:hover {
    text-decoration: underline;
}
.admin-header nav { /* Added rule for admin header nav */
    z-index: 1; /* Ensure it's behind the main mobile nav */
    position: relative; /* Needed for z-index to take effect */
}
.admin-header span {
    color: white;
    margin-right: 10px;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
table, th, td {
    border: 1px solid #ddd;
}
th, td {
    padding: 8px;
    text-align: left;
}
th {
    background-color: #f2f2f2;
    color: #333;
}
.actions a {
    margin-right: 5px;
}

/* Calendar Styles */
.events-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.calendar-container {
    margin-bottom: 40px;
    background-color: var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}
.calendar-container h3 {
    text-align: center;
    margin-bottom: 20px;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    border: 1px solid #ddd;
    background-color: #ddd; /* Grid lines */
}
.calendar-day-header {
    background-color: #f2f2f2;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #555;
}
.calendar-day {
    background-color: #666;
    min-height: 100px;
    padding: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.calendar-day.empty {
    background-color: #f9f9f9;
}
.day-number {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}
.day-events {
    flex-grow: 1;
    overflow-y: auto;
}
.event-item {
    background-color: #e0f7fa;
    border-left: 3px solid #00bcd4;
    padding: 5px;
    margin-bottom: 3px;
    font-size: 0.9em;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #007985;
}
.event-item:hover {
    background-color: #b2ebf2;
}

/* Media Queries for Calendar Responsiveness */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr; /* Stack days vertically */
        gap: 10px; /* Add spacing between stacked days */
    }

    .calendar-day-header {
        display: none; /* Hide day headers in stacked view */
    }

    .calendar-day {
        min-height: auto; /* Allow height to adjust to content */
        padding: 10px;
        border: 1px solid #ccc; /* Add border for visual separation */
        flex-direction: row; /* Arrange day number and events side-by-side */
        align-items: flex-start; /* Align items to the start */
    }

    .calendar-day.empty {
        display: none; /* Hide empty days in mobile view */
    }

    .day-number {
        width: 30px; /* Fixed width for day number */
        flex-shrink: 0; /* Prevent day number from shrinking */
        margin-right: 10px;
        font-size: 1.2em; /* Slightly larger day number */
        text-align: center;
    }

    .day-events {
        flex-grow: 1; /* Allow events to take remaining space */
        overflow-y: visible; /* Ensure all events are visible */
    }

    .event-item {
        white-space: normal; /* Allow event text to wrap */
        font-size: 0.85em; /* Slightly smaller font for compactness */
        margin-bottom: 5px; /* Add some space between events */
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: var(--accent-color);
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#modalEventImage {
    display: block;
    margin: 0 auto;
}

/* Styles for today and past days in calendar */
.calendar-day.today {
    border: 5px solid #e0a800;
}

.calendar-day.past-day {
    background-color: rgba(128, 128, 128, 0.5); /* Semi-transparent grey */
    color: #999;
}

/* Blog Post Styles */
.text-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--accent2-color);
    border-radius: 8px;
}

.blog-post {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
}

.blog-post h3 {
    margin-top: 0;
}

.post-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 1rem;
}

.post-content {
    line-height: 1.6;
}

.blog-post .post-content img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures proper spacing and centering if needed */
    margin: 1rem auto; /* Adds some vertical spacing and centers the image */
}

#load-more-posts {
    display: block;
    margin: 2rem auto;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#load-more-posts:hover {
    background-color: var(--accent2-color);
}


/* Outer wrapper */
.profile-card {
    max-width: 720px;
    margin: 0 auto 3rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Internal Navigation Styling */
.internal-nav {
    background-color: var(--accent-color);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

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

.internal-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.internal-nav a:hover {
    background-color: oklch(from var(--accent-color) l c calc(h + 10));
}

/* Name */
.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

/* Row layout */
.profile-content {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
}

/* Reversed version */
.profile-card.reverse .profile-content {
    flex-direction: row-reverse;
}

/* Photo */
.profile-photo {
    flex: 0 0 220px;
}

.profile-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Text */
.profile-text {
    flex: 1 1 auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

.profile-text p {
    margin: 0 0 0.5rem;
}

.profile-text strong {
    font-weight: 600;
}

/* Divider */
.profile-divider {
    margin: 1.75rem auto 0;
    width: 120px;
    height: 1px;
    background-color: #000;
}

/* Responsive */
@media (max-width: 640px) {
    .profile-content,
    .profile-card.reverse .profile-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-photo {
        width: 100%;
        max-width: 260px;
    }
}

.card {
    background-color: var(--accent2-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1000px; /* Increased max-width */
}

.financial-statement.card img {
    max-width: 100%;
    height: auto;
}

