* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

header {
    background: #d32f2f;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    width: 200px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

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

main {
    margin-top: 80px;
}

section {
    padding: 4rem 0;
    width: 100%;
    margin: 0 auto;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1 {
    margin-bottom: 2rem;
    color: #d32f2f;
}

/* Lighter Section Background Colors (Full Width) */
.section-light-beige {
    background-color: #f8f1e4; /* Lighter beige */
}

.section-light-blue {
    background-color: #f0f8ff; /* Lighter light blue */
}

.section-light-orange {
    background-color: #f9e4d4; /* Lighter orange */
}

/* About Us Section */

#about {
    padding: 0;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    overflow: hidden;
}

.about-text {
    flex: 1;
    min-width: 250px;
    padding: 2rem;
    background: #f8f1e4; /* Lighter beige for text */
}

.about-text h1 {
    margin-bottom: 1rem;
    color: #d32f2f;
    position: relative;
}

.about-text h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #d32f2f; /* Dark blue line for contrast */
    margin-top: 0.5rem;
}

.about-text p {
    color: #333;
    line-height: 1.6;
}

.about-images {
    flex: 1;
    min-width: 250px;
    padding: 2rem;
    background: #f0f8ff; /* Lighter light blue for images */
    position: relative;
    height: 400px; /* Fixed height for overlapping effect */
}

.about-img {
    object-fit: cover;
    position: absolute;
}

/* Positioning for 3 overlapping images */
.about-img-1 { /* Largest, bottom left */
    top: 10%;
    left: 0;
    z-index: 1;
    width: 66%;
    height: 70%;
}

.about-img-2 { /* Medium, top right */
    bottom: 0;
    right: 1rem;
    z-index: 2;
    width: 50%; /* 30% larger than 200px */
    height: 44%; /* 30% larger than 150px */
}

.about-img-3 { /* Smallest, middle left */
    right: 1rem;
    top: 0;
    height: 48%;
    width: 25%;
    z-index: 3;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .about-images {
        padding: 1rem;
        height: auto;
        position: static;
        background: transparent; /* Remove background on mobile */
    }

    .about-img, .about-img-1, .about-img-2, .about-img-3 {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
        border: 4px solid #f4a261;
    }
}

/* Events & Networking Section */
.events-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Show 3 items per row */
    gap: 1.5rem;
}

.event-card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-img {
    width: 100%;
    height: 130px; /* Smaller than 195px, maintaining aspect ratio */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.view-more-container {
    text-align: center;
    margin-top: 2rem;
}

#view-more-events {
    padding: 0.8rem 2rem;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#view-more-events:hover {
    background: #b71c1c;
}

/* News Section */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.news-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.news-date {
    font-size: 0.9rem;
    color: #666;
}

.view-detail {
    padding: 0.5rem 1rem;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: fit-content;
}

.view-detail:hover {
    background: #b71c1c;
}

#view-more {
    padding: 0.8rem 2rem;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#view-more:hover {
    background: #b71c1c;
}

/* Membership Section */
.membership-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.membership-thumbnail {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.membership-content {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#register-btn {
    padding: 0.8rem 2rem;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: fit-content;
}

#register-btn:hover {
    background: #b71c1c;
}

/* Registered Members Section */
section#members {
    padding: 4rem 0;
    width: 100%;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    animation: scroll 20s linear infinite; /* Auto-scroll horizontally */
}

.carousel-slide {
    flex: 0 0 10%; /* Show 10 logos at a time, adjust based on screen size */
    min-width: 195px; /* Adjusted for larger images */
    padding: 1rem;
    text-align: center;
}

.carousel-slide img {
    width: 100%;
    height: 130px; /* 30% larger than 100px */
    object-fit: contain;
}

.carousel-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-btn.prev {
    left: 0;
    z-index: 1;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn:hover {
    background: #b71c1c;
}

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

/* Pause animation on hover */
.carousel-track-container:hover .carousel-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 20%; /* Show 5 logos on smaller screens */
    }
    .carousel-btn {
        display: none; /* Hide buttons on mobile for simplicity */
    }
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #d32f2f;
        flex-direction: column;
        padding: 1rem;
    }

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

    .nav-links li {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 33.33%; /* Show 3 logos on very small screens */
    }
    .events-container {
        grid-template-columns: 1fr; /* Stack events vertically on very small screens */
    }
}

/* Footer */
footer {
    background: #f5f5f5; /* Light gray like in screenshot */
    color: #333;
    padding: 1rem 2rem;
    border-top: 1px solid #ddd; /* Top border like in image */
    font-size: 14px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.footer-section p {
    margin: 0.2rem 0;
    line-height: 1.4;
}

.footer-section a {
    color: #333;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: #333;
    font-size: 20px;
}

.social-links a i {
    transition: color 0.3s ease;
}

.social-links a:hover i {
    color: #d32f2f; /* Dark blue on hover */
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.footer-legal-left, .footer-copyright {
    flex: 1;
    min-width: 200px;
}

.footer-legal-left p {
    margin: 0.2rem 0;
}

.footer-legal-left a {
    color: #333;
    text-decoration: none;
}

.footer-legal-left a:hover {
    text-decoration: underline;
}

.footer-copyright p {
    margin: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .footer-top, .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-section, .footer-legal-left, .footer-copyright {
        text-align: left;
    }

    .footer-copyright {
        text-align: center;
    }
    .events-container {
        grid-template-columns: 1fr 1fr; /* Show 2 items per row on tablet */
    }
}