/* General Styles */
body {
    font-family: 'Quicksand', sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: 1rem;
    color: #333;
    -webkit-text-size-adjust: 100%;
}

/* Header */
header {
    background-color: #020066;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}
/* HEADER STYLES */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #fff;
}

/* Logo & Title */
.logo-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo {
    height: 80px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 2px;
}

.reg-number {
    font-size: 0.7em;
   
}

/* NAVIGATION */
nav {
    display: none;
    position: absolute;
    top: 55px;
    right: 10px;
    background: #f8f9fa;
    width: 40%;
    padding: 10px 0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

nav.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 10px 0;
}

nav a {
    text-decoration: none;
    color: #444;
    font-size: 14px !important; /* Increased font size */
    font-weight: 600; /* Slightly bolder */
    display: block;
    padding: 10px 14px; /* Adjusted padding for better spacing */
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 4px;
}

nav a:hover {
    color: white;
    background:  rgba(119, 136, 153, 0.8);
}

/* RESPONSIVE */
@media (min-width: 768px) {
    nav a {
        font-size: 14px; /* Adjusted for larger screens */
        padding: 8px 12px;
    }
}

/* HAMBURGER MENU */
.hamburger {
    background: none;
    border: 1px solid #777;
    font-size: 0.8rem;
    cursor: pointer;
    color: #020066;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hover effect */
.hamburger:hover {
    transform: scale(1.05);
    border-color: #555;
}

/* Hide and show icons */
.hamburger .fa-bars {
    display: block;
}

.hamburger .close-icon {
    display: none;
}

.hamburger.active .fa-bars {
    display: none;
}

.hamburger.active .close-icon {
    display: block;
}

/* Active border color */
.hamburger.active {
    border-color: #333;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    nav {
        display: flex;
        position: static;
        width: auto;
        background: none;
        box-shadow: none;
        opacity: 1;
        transform: none;
    }

    nav ul {
        display: flex;
        gap: 15px;
    }

    nav a {
        font-size: 12px;
        padding: 6px 10px;
    }

    nav ul li {
        margin: 0;
    }
}

/* Hero Section */
.hero {
    margin-top: 80px; /* Adjusted for fixed header */
    position: relative;
    height: auto;
    text-align: center;
    color: white;
    padding: 70px 20px;
}

.hero-image-container {
    width: 90%;
    max-height: 500px;
    overflow: hidden;
    margin: 0 auto;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#heroImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 20px;
    white-space: normal;
    line-height: 1.6;
}

.hero-content p {
    font-size: 1rem; /* Default text size */
    line-height: 1.6; /* Improved readability */
    margin-bottom: 15px;
    text-align: justify;
}

#learnMoreBtn {
    background-color: rgba(119, 136, 153, 0.8);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: background 0.3s ease;
}

#learnMoreBtn:hover {
    background-color: rgba(119, 136, 153, 1);
}

.hidden {
    display: none;
}

/* About Section */
.ethos-section {
    position: relative; /* Needed for absolute positioning of watermark */
    padding: 40px 0;
    text-align: center;
}

.ethos-section h2 {
    font-family: 'Poppins', sans-serif;
    color: #444; /* Darker Gray Title */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative; /* Needed for pseudo-element positioning */
    text-align: center; /* Center title */
    animation: fadeIn 1s ease-out;
}

.ethos-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Center the line */
    bottom: -10px; /* Adjust as needed for spacing */
    width: 60px; /* Adjust line width */
    height: 3px; /* Adjust line thickness */
    background: linear-gradient(to right, #0a0860, #990809);
    border-radius: 2px; /* Optional: rounded corners */
    animation: lineAnimation 1.2s ease-in-out forwards;
}

.ethos-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    animation: slideIn 1.5s ease-out;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    max-width: 1100px; /* Adjust this value */
    margin: 0 auto; /* Center the container horizontally */
}

/* Responsive: Stack sections on small screens */
@media (max-width: 768px) {
    .ethos-container {
        flex-direction: column;
        overflow-x: hidden;
    }
}

.ethos-box {
    background-color: rgba(248, 248, 248, 0.8); /* Semi-transparent background */
    padding: 20px;
    border-radius: 8px;
    flex: 1; /* Make sections flexible to fit space */
    min-width: 300px; /* Prevent sections from getting too small */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Ensure content is above watermark */
    z-index: 1; /* Ensure content is above watermark */
}

.ethos-box:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 4px 4px 12px rgba(5, 5, 98, 0.3), -4px -4px 12px rgba(154, 0, 0, 0.3); /* Enhanced gradient shadow */
}

/* Keyframes for animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineAnimation {
    0% {
        width: 0;
    }
    100% {
        width: 60px;
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive: Stack sections on small screens */
@media (max-width: 768px) {
    .ethos-container {
        flex-direction: column; /* Stack sections vertically */
    }
}

/* Watermark styles */
.ethos-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; /* Adjust size as needed */
    height: 500px; /* Adjust size as needed */
    background-image: url('images/logo.png'); /* Replace with your logo path */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.1; /* Adjust opacity for watermark effect */
    pointer-events: none; /* Prevent interaction with watermark */
}

.ethos-section .container {
    position: relative; /* needed for watermark */
}
/* Etsako Nor Khumagbe Message Section */
.community-message {
    padding: 50px 20px;
    text-align: center;
    background-color: whitesmoke;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto; /* Center horizontally */
    border-radius: 10px;
    max-width: 1200px; /* Or width: 90%; */
}

.message-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.message-container::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 0;
    height: 3px;
    background: linear-gradient(to right, skyblue, gray);
    border-radius: 2px;
    animation: gradientLine 5s linear infinite alternate;
}

@keyframes gradientLine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.message-text {
    flex: 2;
    text-align: left;
    margin-right: 20px;
}

.message-text h2 {
    font-family: 'Poppins', sans-serif;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
}

.message-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #0a0860, #990809);
    border-radius: 2px;
}

.message-text p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
    font-weight: 300;
}

.president-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.president-image {
    max-width: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}

.president-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.president-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.president-info {
    text-align: center;
}

.president-name {
    font-size: 1em;
    color: #555;
    font-weight: 600;
    margin-bottom: 5px;
}

.president-title {
    font-size: 0.9em;
    font-weight: 500;
    font-style: italic;
    color: #be4d25;
}
/* Donation Section - Modern and Clean Style - Reduced Width with Background Image */
.donation-section {
    padding: 50px 30px;
    text-align: left;
    max-width: 1250px;
    margin: 50px auto;
    background-image: url('images/intro.jpg'); /* Add your image path */
    background-size: cover; /* Adjust as needed */
    background-repeat: no-repeat; /* Adjust as needed */
    background-position: center; /* Adjust as needed */
    color: #fff; /* Default text color to white */
    border-radius: 0;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5); /* Adjust shadow for image */
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
    overflow-x: hidden;
}

.donation-section:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.7); /* Adjust hover shadow for image */
}

.donation-section .section-title {
    font-family: 'Poppins', sans-serif;
    color: #fff; /* Title font color to white */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Adjust shadow for image */
    font-size: 1.2rem;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.donation-section .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #0a0860, #990809);
    border-radius: 2px;
}

.donation-paragraph {
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1em;
    font-family: 'Quicksand', sans-serif;
    color: #fff; /* Paragraph font color to white */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.donate-btn {
    display: block;
    background: rgba(119, 136, 153, 0.7);
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 200px;
    margin: 30px auto 0;
}

.donate-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* Newspapers Section */
.newspapers-section {
    padding: 60px 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(2, 5, 102, 0.8)), url('images/news.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Keep text color white */
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.newspapers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Further fade the image */
    z-index: -1;
    border-radius: inherit;
}

.newspapers-title {
    font-size: 1.4em;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    animation: slideIn 1s ease-in-out;
    color: #ADD8E6; /* Light Blue color for title */
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.newspapers-list {
    display: flex;
    flex-direction: row; /* Ensure horizontal layout */
    justify-content: space-between; /* Space between columns */
    align-items: flex-start; /* Align items to the top */
    flex-wrap: wrap; /* Ensure wrapping when needed */
    gap: 20px; /* Adjust spacing between columns */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.newspapers-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #ADD8E6; /* Light Blue color for ul text */
}

.newspapers-column ul li {
    margin-bottom: 15px;
    animation: rotateIn 1s ease-in-out 0.8s forwards;
    opacity: 0;
    transform: rotate(-10deg);
}

@keyframes rotateIn {
    from {
        transform: rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: rotate(0deg);
        opacity: 1;
    }
}

.newspapers-column ul li a {
    text-decoration: none;
    color: #ddd; /* Light Gray Link Color */
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.newspapers-column ul li a:hover {
    color: white; /* White Hover Color */
}
/* Events Section */
.events-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section Title and Description Styles */
.event-section-title {
    font-size: 1.2em;
    font-family: 'Poppins', sans-serif;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 5px;
    transition: padding-bottom 0.3s ease;
}

.event-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, #0a0860, #990809);
    border-radius: 3px;
    transition: width 0.3s ease, height 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
    height: 7px;
}

.events-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.events-column {
    flex: 1;
    background: #fafafa;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}

.events-subtitle {
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
    color: #333;
}

.events-list {
    list-style: none;
    padding: 0;
}

.event-item {
    margin-bottom: 10px;
    background-color: #822d2d;
    padding: 10px;
    border-radius: 5px;
}

.events-header {
    font-family: Quicksand, sans-serif;
    background: none;
    border: none;
    color:  rgb(210, 210, 211);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px;
    text-align: left;
    width: 100%;
    transition: color 0.3s;
    display: flex; /* To align text and the icon */
    justify-content: space-between;
    align-items: center;
}

.events-header:hover {
    color: rgb(228, 228, 237);
}

.expand-icon {
    font-size: 1.2em; /* Adjust size of the plus icon */
}

.events-header.active {
    /* You can add styling for the active header if needed */
    font-weight: 600;
}

.event-tagline {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

.event-description {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.event-content {
    max-height: 0;
    overflow: hidden;
    background: #d8d6d6;
    padding: 0 15px;
    font-size: small;
    border-radius: 5px;
    margin-top: 0;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, margin-top 0.3s ease-in-out;
}

.event-content.show {
    max-height: 500px; /* Adjust as needed */
    padding: 15px;
    margin-top: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Membership Section - Optimized with Background Image */
.membership-section {
    padding: 60px 30px;
    text-align: center;
    background: url('images/shake.png') center/cover no-repeat;
    color: #fff;
    position: relative;
}

.membership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Subtle Overlay */
    z-index: 0;
}

.membership-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.membership-title {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
}
@media (max-width: 480px) { /* For mobile phones */
    .membership-title {
        font-size: 1.1rem;
    }
}
.membership-description {
    line-height: 1.5;
    margin-bottom: 30px;
    font-size: 1em;
}

.membership-btn {
    display: inline-block;
    background: rgba(119, 136, 153, 0.7); /* 70% opacity */
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95em;
    transition: 0.3s ease-in-out;
}

.membership-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Newspapers Section - Refined Color Scheme */
.newspapers-section {
    padding: 60px 40px;
    background-color: #f5f5f5; /* Light Beige */
    color: #333;
    position: relative;
    z-index: 0;
}

.newspapers-title {
    font-size: 1.2em; /* Reduced Font Size */
    margin-bottom:30px;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    animation: slideIn 1s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.newspapers-list {
    display: flex;
    justify-content: space-around;
    gap: 0;
    animation: fadeIn 1s ease-in-out 0.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.newspapers-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.newspapers-column ul li {
    margin-bottom: 15px;
    font-size: 0.9em; /* Reduce font size */
    animation: rotateIn 1s ease-in-out 0.8s forwards;
    opacity: 0;
    transform: rotate(-10deg);
}

@keyframes rotateIn {
    from {
        transform: rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: rotate(0deg);
        opacity: 1;
    }
}
  

/* Contact Section */
.contact-section {
    padding: 60px 30px;
    background-color: #f9f9f9;
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}
/* Contact Section Title */
.contact-section h2 {
    font-size: 1.2em; /* Font size same as events-title */
    color: #444; /* Darker Gray Title */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif; /* Original font */
    letter-spacing: 1px;
    position: relative;
}

.contact-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #0a0860, #990809);
    border-radius: 2px;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}



.contact-icon {
    display: inline-block;
    font-size: 2em;
    color: #444; /* Default color */
    transition: color 0.3s ease, transform 0.3s ease;
}


.contact-icon:hover {
    transform: translateY(-5px);
}

.contact-icon.instagram {
    color: #E4405F; /* Instagram color */
}

.contact-icon.instagram:hover {
    color: #c13584; /* Darker Instagram color on hover */
}

.contact-icon.facebook {
    color: #3b5998; /* Facebook color */
}

.contact-icon.facebook:hover {
    color: #2d4373; /* Darker Facebook color on hover */
}

.contact-icon.email {
    color: #D44638; /* Email color (Red) */
}

.contact-icon.email:hover {
    color: #b13e30; /* Darker Email color on hover */
}

.contact-icon.whatsapp {
    color: #25d366; /* WhatsApp green */
}

.contact-icon.whatsapp:hover {
    color: #128c7e; /* Darker WhatsApp green on hover */
}
   
/* Mobile Styles (up to 768px) */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 20px;
    }

    .contact-section h2 {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .contact-section h2::after {
        width: 50px;
    }

    .contact-icons {
        gap: 15px;
        flex-wrap: wrap;
    }

    .contact-icon {
        font-size: 1.7em;
    }
}

.contact-icon.phone i {
  font-size: 0.8em; /* Adjust this value to make it smaller or larger */
}
/* Small Mobile Styles (up to 480px) */
@media (max-width: 480px) {
    .contact-section {
        padding: 30px 10px;
    }

    .contact-section h2 {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .contact-icons {
        gap: 10px;
    }

    .contact-icon {
        font-size: 1.7em;
    }
    
    
}

/* Executives Section */

.executives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    grid-template-rows: repeat(3, 1fr); /* 3 rows */
    gap: 25px;
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.executive-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.executive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 24px rgba(0, 0,0, 0.15);
}

.executive-photo-container {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.executive-card.featured .executive-photo-container { /* Featured image adjustments */
    width: 200px; /* Larger photo container */
    height: 200px;
    margin: 30px auto; /* Increased margin */
}

.executive-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.executive-card.featured .executive-photo { /* Featured image adjustments */
    transform: scale(1.1); /* Slightly larger image */
}

.executive-card:hover .executive-photo {
    transform: scale(1.05);
}

.executive-details {
    padding: 20px;
    text-align: center;
}

.executive-card.featured .executive-details {
    padding: 30px; /* More padding for featured */
}

.executive-name {
    font-size: 1em;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.executive-card.featured .executive-name {
    font-size: 1.2em; /* Larger name for featured */
}

.executive-position {
    font-style: italic;
    color: #777;
    font-size: 0.8em;
    margin-top: 3px;
}

.executive-card.featured .executive-position {
    font-size: 1em; /* Larger position for featured */
}

/* Section Title and Description Styles */

.executive-section-title {
    font-size: 1.2em;
    font-family: 'Poppins', sans-serif;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    transition: padding-bottom 0.3s ease;
}

.executive-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, #0a0860, #990809);
    border-radius: 3px;
    transition: width 0.3s ease, height 0.3s ease;
}

.executive-section-title:hover::after {
    width: 100px;
    height: 7px;
}

.executive-section-title:hover {
    padding-bottom: 15px;
}

.executive-section-description {
    text-align: center;
    font-size: 1em;
    color: #666;
    margin-bottom: 30px;
}

/* ARCHIVES SECTION STYLES (Filter-Driven Image Grids with Drawer Effect) */
.archives-section {
    padding: 50px 20px;
    background-color: #d3d0d0;
    
}

.archives-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.archives-title { /* Modified Title Style */
    font-size: 1.2em;
    font-family: 'Poppins', sans-serif;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    transition: padding-bottom 0.3s ease;
}

.archives-title::after { /* Modified Title Style */
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, #0a0860, #990809);
    border-radius: 3px;
    transition: width 0.3s ease, height 0.3s ease;
}

.archives-title:hover::after { /* Modified Title Style */
    width: 100px;
    height: 7px;
}

.archives-title:hover { /* Modified Title Style */
    padding-bottom: 15px;
}

.archives-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

/* Filter Buttons */
.filters-button-group {
    margin-bottom: 20px;
}

.filter-button {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    font-family: 'Quicksand', sans-serif;
}

.filter-button:hover {
    background-color: #e65c50;
}

.filter-button.is-checked {
    background-color: #990809;
}

/* Grid Layout */
.simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.grid-item {
    position: relative;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    
}

.grid-item:hover {
    transform: scale(1.05);
}

/* Image Styling */
.grid-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
}

/* Text Styling */
.grid-item p {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin-top: 8px;
    text-align: center;
}

/* Description Styling (inside <span>) */
.grid-item p span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    font-style: italic;
    margin-top: 3px;
}
.grid-item video {
    width: 100%;
    height: 220px; /* Match the original image height for consistency */
    object-fit: cover; /* Maintain aspect ratio and cover the container (might crop) */
    border-radius: 8px; /* Match the image border-radius */
    display: block; /* Prevent extra space below inline elements */
}


@media (max-width: 600px) {
    .simple-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); /* Single column */
        gap: 10px; /* Space between items */
        padding: 10px; /* Space around the grid */
    }

    .grid-item {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


    .grid-item > img,
    .grid-item > video {
        width: 100%;
        height: calc(100% - 50px); /* Adjust 60px based on your typical text height */
        object-fit: cover; /* Fill the container, potentially cropping */
        border-radius: 8px 8px 0 0; /* Rounded top corners */
    }

    .grid-item p {
        font-size: 0.9rem;
        margin-top: auto; /* Push text to the bottom */
        padding: 8px;
        text-align: center;
        background-color: white; /* Ensure text has a background */
        border-radius: 0 0 8px 8px; /* Rounded bottom corners */
        z-index: 1; /* Ensure text is above the image/video */
        position: relative; /* Needed for z-index to work */
    }

    .grid-item p span {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .archives-description {
        font-size: 1rem;
        max-width: 90%; /* Prevent full width */
        margin: 0 auto; /* Center it */
        padding: 0 15px; /* Add spacing */
        text-align: justify; /* Improve readability */
    }
}

@media (max-width: 480px) {
    .archives-description {
        font-size: 0.9rem;
        max-width: 90%;
        margin: 0 auto;
        padding: 0 10px;
        text-align: center;
    }
    /* Responsive Styles for Filter Button Font Size on Smaller Devices */
@media (max-width: 600px) {
    .filter-button {
        font-size: 0.9rem; /* Reduce font size slightly */
    }
}

/* Optional: Even smaller font size for very small screens */
@media (max-width: 480px) {
    .filter-button {
        font-size: 0.85rem;
    }
}
}

/* Community Section */

.magic-title {
    font-family: 'Poppins', sans-serif;
    color: #444;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
}

.magic-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #0a0860, #990809);
    border-radius: 2px;
    animation: lineAnimation 1.2s ease-in-out forwards;
}

#main-magic-description {
    font-size: 1rem;
    color: #555;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    font-family: 'Quicksand', sans-serif;
    display: block;
    margin-bottom: 30px; /* Add space below the description */
}

.community-magic {
    padding: 40px 0;
    text-align: center;
    background-color: #f0f4f5;
  
    
}

.magic-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
h4 {
    font-family: 'Poppins', sans-serif;
    color: #050562;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    text-align: center;
    
}
.magic-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
}

.magic-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px;
}

.magic-overlay {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.magic-learn-more {
    font-family: 'Quicksand', sans-serif;
    color: #555;
    background-color: transparent;
    border: 2px solid #555;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.magic-learn-more:hover {
    background-color: #555;
    color: white;
}

.magic-description {
    display: none;
    margin-top: 15px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
    overflow: hidden;
    transition: height 0.5s ease-in-out;
}

.magic-card.open .magic-description {
    display: block;
    height: auto;
}

.magic-card.open .magic-learn-more {
    background-color: #555;
    color: white;
}

/* Responsive Styles for Community Section (Complete) */

@media (max-width: 768px) {
    .magic-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .magic-title::after {
        width: 40px;
        height: 2px;
        bottom: -8px;
    }

    #main-magic-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .community-magic {
        padding: 30px 0;
    }

    .magic-container {
        gap: 15px;
        padding: 0 10px;
    }

    .magic-card {
        width: calc(50% - 10px);
        margin-bottom: 15px;
    }

    .magic-image {
        width: 100%;
        height: 200px;
        object-fit: cover; /* Prevent cut-off */
    }

    h4 {
        font-size: 0.9rem;
    }

    .magic-overlay {
        padding: 10px;
    }

    .magic-learn-more {
        font-size: 0.9rem;
        padding: 8px;
        margin-top: 10px;
    }

    .magic-description {
        font-size: 0.9em;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .magic-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .magic-title::after {
        width: 30px;
        height: 1.5px;
        bottom: -6px;
    }

    #main-magic-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
        padding: 0 10px;
        text-align: center; /* Center text on very small screens */
    }

    .community-magic {
        padding: 20px 0;
    }

    .magic-container {
        gap: 10px;
        padding: 0 5px;
    }

    .magic-card {
        width: 100%;
        margin-bottom: 10px;
        flex-direction: column; /* Ensure proper stacking on single column */
    }

    .magic-image {
        width: 100%;
        height: 240px;
        object-fit: cover; /* Prevent cut-off */
    }

    h4 {
        font-size: 0.85rem;
    }

    .magic-overlay {
        padding: 8px;
    }

    .magic-learn-more {
        font-size: 0.85rem;
        padding: 6px;
        margin-top: 8px;
    }

    .magic-description {
        font-size: 0.85em;
        margin-top: 8px;
    }
}

/* form section */
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #898686ac;
    margin: 5% auto;
    padding: 15px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 1001;
    overflow-y: auto;
    max-height: 80%;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Form Styles */
label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
  
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:focus {
    border-color: #0056b3;
    outline: none;
}

option {
    font-family: 'Quicksand', sans-serif;
}
#signupForm {
    display: block;
}

#signupForm label {
    display: block;
    margin-bottom: 5px;
}

#signupForm input[type="text"],
#signupForm input[type="email"],
#signupForm input[type="tel"],
#signupForm select {
    width: calc(100% - 12px);
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#signupForm button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

#signupForm button[type="submit"]:hover {
    background-color: #0056b3;
}

/* scroll-up icon */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 20px;
    color: #020066;
    font-size: 1.6rem;
    border: none;
    background: none;
    display: none;
    z-index: 999;
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Responsive tweak for small screens */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 15px;
        font-size: 1rem;
    }
}

/* Footer Styles */
footer {
    background-color: rgb(55, 54, 54);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}



/* Responsive Footer Styles */
@media (max-width: 768px) {
    footer {
        padding: 15px 0;
        font-size: 0.85em;
    }
}
@media (max-width: 480px) {
    footer {
        padding: 10px 0;
        font-size: 0.8em;
    }
   
}


/* =============================== */
/* General Mobile Styles (Less than 768px) */
/* =============================== */
@media (max-width: 768px) {

    /* Header Section */
    header {
        padding: 8px 0;
    }

    .logo {
        height: 65px;
    }

    .logo-title {
        font-size: 0.9em;
    }

    .reg-number {
        display: block;
        margin: 0 auto; /* centers the block horizontally */
        text-align: center; /* centers the text inside the element */
        font-size: 0.55em; /* smaller font size for mobile */
    }


    /* Hero Section */
    .hero {
        padding: 50px 10px;
        margin-top: 60px;
    }

    .hero-content {
        position: static;
        transform: none;
        width: 85%;
        margin: 20px auto;
        padding: 15px;
    }

    .hero h1 {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    #learnMoreBtn {
        padding: 8px 16px;
    }

    /* About Section - Ethos */
    .ethos-section {
        padding: 0;
    }

    .ethos-container {
        flex-direction: column;
        overflow-x: hidden;
        padding: 10px;
    }

    .ethos-box h3 {
        font-size: 1em;
    }

    .ethos-box p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-top: 10px;
    }

    .ethos-watermark {
        width: 150px;
        height: 150px;
    }

    /* Etsako Nor Khumagbe Message Section */
    .message-container {
        flex-direction: column;
        text-align: center;
        padding: 0;
        gap: 10px;
    }

    .message-text {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .message-text h2 {
        font-size: 1rem;
    }

    .message-text p {
        font-size: 0.9em;
    }

    .president-image {
        max-width: 80%;
    }

    .community-message {
        padding: 20px 10px;
    }

    /* Donation Section */
    .donation-section {
        padding: 30px 15px;
        text-align: center;
    }

    .donation-section .section-title {
        font-size: 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .donation-section .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .donation-paragraph {
        font-size: 0.9rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .donate-btn {
        margin: 20px auto 0;
        font-size: 0.85rem;
        padding: 10px 20px;
    }

    /* Events Section */
    .events-section {
        padding: 10px;
        margin: 20px auto;
    }

    .events-container {
        flex-direction: column;
        gap: 20px;
    }

    .event-section-title {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .events-subtitle {
        font-size: 1em;
        margin-bottom: 5px;
    }

    .event-header {
        font-size: 13px;
        padding: 8px;
    }

    .event-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .event-content {
        padding: 2px;
        margin-top: 5px;
    }

    /* Newspapers Section */
    .newspapers-section {
        padding: 30px 15px;
    }

    .newspapers-title {
        font-size: 0.9em;
    }

    .newspapers-list {
        flex-direction: column;
        align-items: center;
    }

    .newspapers-column {
        width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }

    .newspapers-column ul li a {
        font-size: 0.85em;
    }

    /* Executives Section */
    .executives-grid {
        grid-template-columns: 1fr;
        gap: 30px !important;
        padding: 20px;
    }

    .executive-card {
        width: 100% !important;
        grid-column: 1;
        transform: scale(1.03);
        border-radius: 10px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }

    .executive-card.featured {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .executive-photo-container {
        width: 160px;
        height: 160px;
        margin: 20px auto;
    }

    .executive-name {
        font-size: 0.9em !important;
    }

    .executive-position {
        font-size: 0.9em;
    }

    .executive-section-title {
        font-size: 1em !important;
    }

    .executive-section-description {
        font-size: 0.9em !important;
    }

    /* Responsive Styles */
    @media (max-width: 1024px) {
        .event-tagline {
            font-size: 1rem;
        }

        .event-description {
            font-size: 0.9rem;
        }

        /* Membership Section */
        .membership-section {
            padding: 40px 15px;
        }

        .membership-title {
            font-size: 1em;
            margin-bottom: 15px;
        }

        .membership-description {
            font-size: 0.9em;
            line-height: 1.4;
        }

        .membership-btn {
            padding: 10px 20px;
            font-size: 0.9em;
        }

        /* modal */
        .modal-content {
            width: 55%;
            margin: 25% auto;
            max-width: 90%;
        }

        .modal-content h2 {
            font-size: 1em;
        }

        .modal-content p {
            font-size: 0.9em;
        }
    }

    /* =============================== */
    /* Tablet Styles (769px - 1024px) */
    /* =============================== */
    @media (min-width: 769px) and (max-width: 1024px) {
        /* Header Section */
        .header {
            padding: 60px 20px;
        }

        .hero-content {
            width: 90%;
        }

        nav ul li {
            margin: 0 8px;
        }

        .logo {
            height: 65px;
        }

        /* About Section - Ethos */
        .ethos-section {
            padding: 10px 0;
        }

        .ethos-container {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            overflow-x: hidden;
            padding: 15px;
            gap: 15px;
        }

        .ethos-box {
            min-width: 45%;
            margin: 10px auto;
            margin-bottom: 15px;
        }

        .ethos-section h2 {
            font-size: 1.15em;
        }

        .ethos-box h3 {
            font-size: 1.1em;
        }

        .ethos-box p {
            font-size: 0.95rem;
        }

        /* Etsako Nor Khumagbe Message Section */
        .message-container {
            flex-direction: column;
            text-align: center;
            gap: 15px;
            padding: 0 10px;
        }

        .message-text {
            margin-right: 0;
            margin-bottom: 15px;
        }

        .president-image {
            max-width: 180px;
        }

        .message-text h2 {
            font-size: 1em;
        }

        /* Donation */
        .donation-section {
            padding: 40px 20px;
            text-align: center;
        }

        .donation-section .section-title {
            font-size: 1rem;
            text-align: center;
            margin-left: auto;
            margin-right: auto;
        }

        .donation-section .section-title::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .donation-paragraph {
            font-size: 0.9em;
            text-align: center;
            margin-left: auto;
            margin-right: auto;
        }

        .donate-btn {
            margin: 20px auto 0;
            font-size: 0.9rem;
            padding: 12px 25px;
        }

        /* Events Section */
        .events-section {
            padding: 20px;
        }

        .events-container {
            flex-direction: column;
            gap: 30px;
        }

        .events-subtitle {
            font-size: 1.1rem;
        }

        .event-header {
            font-size: 14px;
        }

        /* Newspaper */
        .newspapers-section {
            padding: 40px 20px;
        }

        .newspapers-title {
            font-size: 1.2em;
        }

        .newspapers-list {
            display: grid;
            gap: 15px;
            grid-template-columns: 1fr 1fr;
        }

        .newspapers-column {
            width: 100%;
        }

        .newspapers-column ul li a {
            font-size: 1rem;
        }
    }
    .archives-title {
        font-size: 1.1em;
    }
}
