body {
    font-family: 'Inter', sans-serif;
    background: #F9FAFB;
    color: #1F2937;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
}

h1 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 20px auto;
    color: #003366;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #003366;
    padding: 10px 20px;
}

.logo {
    height: 40px;
}

.site-title {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-menu a.active {
    text-decoration: underline;
}

.view-toggle {
    margin: 20px;
    text-align: right;
}

.view-toggle button {
    background: #4B5563;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    margin-left: 5px;
}

.view-toggle button.active {
    background: #FBBF24;
    color: #1F2937;
}

.list-view .member-card img {
    display: none;
}

#members {
    max-width: 1200px;
    margin: 0 auto;
}

.member-card[data-membership="3"] {
    border-left: 6px solid gold;
}

.member-card[data-membership="2"] {
    border-left: 6px solid silver;
}

.member-card[data-membership="1"] {
    border-left: 6px solid #01aeff;
}

#members.grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

#members.list-view {
    display: block;
    padding: 20px;
}

.list-view .member-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.member-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 10px;
    max-height: 280px;
}

.member-card img {
    width: 100%;
    max-height: 100px;
    object-fit: contain;
    background: #f1f1f1;
}

.member-card h3 {
    margin: 10px 0 5px;
    font-size: 1.25rem;
}

.member-card p,
.member-card a {
    font-size: 0.95rem;
    color: #1F2937;
}

.member-card a {
    color: #003366;
    text-decoration: none;
}

footer {
    background: #4B5563;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

@media (max-width: 500px) {
    #members.grid-view {
        grid-template-columns: 1fr !important;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .view-toggle {
        text-align: left;
    }

    .member-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        font-size: 0.85rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .member-card img {
        max-height: 90px;
        width: auto;
        margin-bottom: 10px;
    }

    .member-card h3 {
        text-align: center;
        font-size: 1.1rem;
        margin: 5px 0;
    }

    .member-card p,
    .member-card a {
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 2px 0;
    }
}

.weather-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.weather-box img {
    height: 60px;
}

.weather-box p {
    font-size: 1.5rem;
    font-weight: bold;
}

.hero {
    position: relative;
    text-align: center;
    color: white;
}

.hero img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
}

.cta-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #FBBF24;
    color: #1F2937;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
}

.events,
.weather,
.spotlights {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.spotlight-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.spotlight {
    background: white;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #003366;
    border-radius: 8px;
    margin-bottom: 20px;
}

.spotlight h3 {
    margin-top: 0;
}

.events,
.weather,
.spotlights {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.85);
    color: #003366;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.hero-text h1 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.member-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 641px) {
    .member-card:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
}

@media (min-width: 641px) {

    .member-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .member-card:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
}

@media (min-width: 641px) {
    .cta-button {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }


    .cta-button:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .spotlight {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }


    .spotlight:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}



@media (max-width: 768px) {
    .spotlight-container {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .spotlight {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-text {
        padding: 15px;
        width: 90%;
    }

    .hero-text h1 {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .cta-button {
        font-size: 0.95rem;
        padding: 8px 14px;
    }

    .hero img {
        max-height: 300px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #003366;
        padding: 0.5em 0;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        margin: 0.5em 0;
        text-align: center;
    }
}