/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

h1 {
    text-align: center;
}

/* Navigation styles */
nav {
    background-color: #f3f3f3;
    color: #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
}

.nav-left {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #9ACD32;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}

.social-links {
    display: flex;
    align-items: center;
}

.social-links a {
    margin-left: 10px;
}

.social-links img {
    width: 24px;
    height: 24px;
}

.language-switcher {
    margin-right: 20px;
}

.lang-select {
    background-color: #9ACD32;
    border: none;
    color: white;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.lang-select:hover {
    background-color: #555;
}

/* Default styles (desktop) */
nav ul li .dropdown-content {
    display: none; /* Hidden by default */
    position: absolute; /* Position relative to the parent */
    top: 100%; /* Position below the parent */
    left: 0; /* Align with the left edge of the parent */
    background-color: #f3f3f3; /* Background color */
    min-width: 160px; /* Minimum width */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); /* Add shadow */
    z-index: 1000; /* Ensure it appears above other elements */
}

nav ul li:hover .dropdown-content {
    display: block; /* Show on hover */
}

/* Mobile styles */
@media (max-width: 768px) {
    nav ul li .dropdown-content {
        display: block; /* Show by default on mobile */
        position: static; /* Reset position for mobile */
        width: 100%; /* Full width */
        box-shadow: none; /* Remove shadow */
        background-color: transparent; /* Transparent background */
    }

    nav ul li .dropdown-content a {
        padding: 10px 20px; /* Adjust padding */
        color: black; /* Change text color */
        border-bottom: 1px solid #ddd; /* Add border for separation */
    }

    nav ul li .dropdown-content a:hover {
        background-color: #f1f1f1; /* Light background on hover */
        color: black; /* Keep text color consistent */
    }
}

nav .logo {
    height: 60px;
    width: auto;
    margin-right: 20px;
}

nav .social-links {
    display: flex;
    align-items: center;
    margin-left: auto;
}

nav .social-links .language-switcher {
    margin-right: 20px;
}

nav .social-links a {
    margin-left: 10px;
}

nav .social-links .social-icon {
    height: 30px;
    width: auto;
}

/* Slideshow styles */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: auto;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Message overlay styles */
.message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    z-index: 1;
}

/* Footer styles */
footer {
    background-color: #f3f3f3;
    padding: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.quick-links, .location, .contact-details {
    flex: 1;
    margin: 0 20px;
}

footer h3 {
    margin-bottom: 10px;
    font-size: 20px; /* Default font size for headings */
}

footer address {
    font-style: normal;
    line-height: 1.6;
    font-size: 16px; /* Default font size for address */
}

footer ul {
    list-style-type: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 5px;
}

footer ul li a {
    color: #9ACD32;
    text-decoration: none;
    font-size: 16px; /* Default font size for links */
    transition: color 0.3s;
}

footer ul li a:hover {
    color: #555;
    text-decoration: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    footer {
        padding: 10px; /* Reduce padding */
    }

    .footer-content {
        flex-direction: column; /* Stack footer sections vertically */
        align-items: center; /* Center align items */
        gap: 10px; /* Reduce gap between sections */
    }

    .quick-links, .location, .contact-details {
        margin: 10px 0; /* Adjust margin */
        text-align: center; /* Center align text */
    }

    footer h3 {
        font-size: 18px; /* Reduce font size for headings */
    }

    footer address {
        font-size: 14px; /* Reduce font size for address */
    }

    footer ul li a {
        font-size: 14px; /* Reduce font size for links */
    }
}

/* Paragraph and list styles */
p, ul {
    font-size: 18px;
}

/* Board Members styles */
.board-members {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.board-member {
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.board-member h3 {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 20px;
}

.board-member p {
    margin: 0;
    font-weight: bold;
    font-size: 18px;
}

/* Partners styles */
.partners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.partner {
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.partner-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.partner h3 {
    font-size: 22px;
    font-weight: bold;
}

/* Members List styles */
.members-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.members-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.members-list li {
    background-color: #f3f3f3;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    flex: 1 1 calc(33.333% - 20px);
    text-align: center;
}

.become-member-button {
    background-color: #9ACD32;
    color: white;
    border: none;
    padding: 20px 30px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.become-member-button:hover {
    background-color: #7fbf2e;
}

/* Content styles */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.events-news-container {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    align-items: flex-start;
}

.events {
    flex: 0 0 65%;
    background: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    box-sizing: border-box;
}

.event-item {
    margin-bottom: 32px;
}

.event-item img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.event-desc {
    font-style: italic;
    margin-bottom: 8px;
    color: #444;
}

.news {
    flex: 0 0 35%;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.news-list li:last-child {
    border-bottom: none;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 50%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-btn {
    background-color: #ff4500;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    width: 50%;
    text-align: center;
}

.submit-btn:hover {
    background-color: #e03e00;
}

/* Project section styles */
.project-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-box {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    color: white;
    margin: 10px;
    background-color: #9ACD32;
    margin: 10px 0;
}

.project-content {
    display: flex;
    flex-wrap: wrap;
}

.project-text {
    flex: 1;
    padding: 10px;
}

.project-slideshow {
    flex: 1;
    padding: 10px;
}

.project-slideshow img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}

/* Combined box styles */
.combined-box {
    display: flex; /* Use flexbox to align text and slideshow side by side */
    width: 100%; /* Adjust width as needed */
    max-width: 800px; /* Set a maximum width if desired */
    margin: 0 auto; /* Center the box */
    overflow: hidden; /* Ensure content stays within the box */
    background-color: #9ACD32; /* Background color */
    color: white; /* Text color */
    border-radius: 10px; /* Rounded corners */
    margin-bottom: 20px; /* Space between sections */
}

.text-box {
    flex: 1; /* Take up remaining space */
    padding: 20px; /* Add padding for spacing */
    box-sizing: border-box; /* Include padding in width calculation */
}

.slideshow {
    flex: 1; /* Take up remaining space */
    display: flex;
    align-items: center; /* Center images vertically */
    justify-content: center; /* Center images horizontally */
    overflow: hidden; /* Hide overflow for slideshow */
    padding: 20px; /* Add padding for separation from section wall */
}

.slideshow img {
    width: 100%; /* Make images fill the slideshow container */
    height: auto; /* Maintain aspect ratio */
    display: none; /* Hide all images by default */
    border-radius: 10px; /* Soften edges of images */
}

.slideshow img:first-child {
    display: block; /* Show the first image */
}

/* Event section styles */
.event-section {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.event-box {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.event-box h2 {
    color: #9ACD32;
    margin-bottom: 10px;
}

.event-box p {
    margin: 10px 0;
    line-height: 1.6;
}

/* Membership form styles */
.membership-content {
    display: flex;
    flex-direction: row;
    gap: 20px; /* Space between the two sections */
    padding: 20px;
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto; /* Center the content */
    
}

.membership-left-section {
    flex: 1; /* Takes up 1 part of the available space */
    background-color: #f9f9f9; /* Light background for contrast */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.membership-right-section {
    flex: 1; /* Takes up 1 part of the available space */
    background-color: #fff; /* White background for the form */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between form groups */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Space between labels and inputs */
}

.form-group label {
    font-weight: bold;
    color: #333; /* Dark text for labels */
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9; /* Light background for inputs */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #9ACD32; /* Highlight focus with the main color */
    outline: none;
}

/* Style the submit button */
button[type="submit"] {
    background-color: #9ACD32; /* Main color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #7fbf2e; /* Slightly darker shade on hover */
}

/* Style radio buttons */
.radio-group {
    display: flex;
    gap: 10px;
}

.radio-group label {
    font-weight: normal;
    color: #333;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .content {
        flex-direction: column; /* Stack sections vertically on small screens */
    }

    .left-section,
    .right-section {
        width: 100%; /* Full width on small screens */
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .project-section {
        flex-direction: column;
    }

    .project-box, .project-slideshow {
        margin: 0;
    }

    .project-content {
        flex-direction: column;
    }

    .project-text, .project-slideshow {
        margin: 0;
    }

    .combined-box {
        flex-direction: column;
    }

    .text-box, .slideshow {
        margin: 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }
}

/* Adjust specific text areas */
#asasiVision {
    width: 400px; /* Width of the text area */
    height: 150px; /* Height of the text area */
}

#asasiActivities {
    width: 100%; /* Full width of its container */
    height: 100px; /* Fixed height */
}

#asasiReasons {
    width: 80%; /* 80% width of its container */
    height: 120px; /* Fixed height */
}

/* Style for the volunteer button */
.volunteer-button {
    display: inline-block;
    background-color: #9ACD32; /* Main color */
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.volunteer-button:hover {
    background-color: #7fbf2e; /* Slightly darker shade on hover */
}

/* Mobile Phones */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content .quick-links,
    .footer-content .location,
    .footer-content .contact-details {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Tablets */
@media (min-width: 601px) and (max-width: 1024px) {
    nav ul {
        flex-direction: row;
        align-items: center;
    }

    nav ul li {
        margin-right: 10px;
    }

    .footer-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .footer-content .quick-links,
    .footer-content .location,
    .footer-content .contact-details {
        margin-right: 10px;
    }
}

/* Computers */
@media (min-width: 1025px) {
    nav ul {
        flex-direction: row;
        align-items: center;
    }

    nav ul li {
        margin-right: 20px;
    }

    .footer-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .footer-content .quick-links,
    .footer-content .location,
    .footer-content .contact-details {
        margin-right: 20px;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none; /* Hide by default on desktop */
}
.hamburger-menu span {
    height: 3px;
    width: 25px;
    background: black;
    margin: 4px 0;
    transition: 0.4s;
}

/* Dropdown Content Styles */
nav ul li.dropdown {
    position: relative;
}
nav ul li .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f3f3f3;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}
nav ul li:hover .dropdown-content {
    display: block;
}
nav ul li .dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #9ACD32;
    text-decoration: none;
    font-size: 16px;
}
nav ul li .dropdown-content a:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 1000;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        padding: 60px 20px 20px;
        margin: 0;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }
    nav ul.active {
        left: 0;
        display: flex;
    }
    nav ul li {
        width: 100%;
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }
    nav ul li a {
        display: block;
        width: 100%;
        padding: 10px 0;
        text-decoration: none;
        color: black;
    }
    nav ul li .dropdown-content {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: transparent;
    }
    nav ul.active li .dropdown-content {
        display: block;
    }
    nav ul li .dropdown-content a {
        padding: 10px 20px;
        color: black;
        border-bottom: 1px solid #ddd;
    }
    nav ul li .dropdown-content a:hover {
        background-color: #f1f1f1;
        color: black;
    }
    .social-links {
        display: none;
    }
    .nav-left {
        margin-left: 60px;
    }
}
/* ...existing code... */