﻿.members-section {
    padding: 60px 30px;
    background: #f6faff;
    color: #003366;
    text-align: center;
}

/* Login + Contact Form Layout */
.login-contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 50px;
}

.login-box,
.contact-box {
    flex: 1 1 300px;
    max-width: 400px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
}

    .login-box h2,
    .contact-box h2 {
        margin-bottom: 15px;
        font-size: 1.5rem;
        color: #003366;
    }

.login-form-styling input {
    display: block;
    width: 94%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.login-btn {
    background-color: #003366;
    color: white;
    padding: 10px;
    width: 100%;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .login-btn:hover {
        background-color: #0055aa;
    }

.login-error {
    color: red;
    font-size: 0.95rem;
    margin-top: 10px;
}

.contact-btn {
    display: inline-block;
    margin-top: 10px;
    background-color: #5bc0de;
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

    .contact-btn:hover {
        background-color: #31b0d5;
    }

/* Members-Only Content */
.members-content {
    display: none;
}

.members-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.members-intro p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

.schemes-section h2,
.example-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.year-group-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-items: stretch;
}

.year-group-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
}

    .year-group-card h3 {
        margin-bottom: 15px;
        color: #003366;
        font-size: 1.2rem;
    }

/* Scrollable list if there are many schemes */
.scheme-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    max-height: 260px; /* enough for ~10 schemes */
    overflow-y: auto;
}

    .scheme-links li {
        margin: 5px 0;
    }

    .scheme-links a {
        display: block;
        padding: 8px 12px;
        background: #f6faff;
        border-radius: 5px;
        color: #0073cf;
        text-decoration: none;
        font-size: 0.95rem;
        transition: background 0.2s;
    }

        .scheme-links a:hover {
            background: #e6f0ff;
        }

/* Responsive layout */
@media (max-width: 1200px) {
    .year-group-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .year-group-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .year-group-list {
        grid-template-columns: 1fr;
    }
}


.sample-list {
    margin-top: 20px;
}

.sample-link {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 5px;
    text-decoration: none;
}

    .sample-link:hover {
        background: #0055aa;
    }

/* Responsive */
@media (max-width: 768px) {
    .login-contact-wrapper {
        flex-direction: column;
    }

    .members-intro h1 {
        font-size: 2rem;
    }

    .members-intro p {
        font-size: 1rem;
    }

    .year-group-card {
        width: 90%;
    }
}

.scheme-links {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px; /* prevent cards from getting too tall */
    overflow-y: auto; /* scroll inside card if too many schemes */
}

    .scheme-links li {
        margin: 6px 0;
    }

    .scheme-links a {
        display: block;
        padding: 6px 10px;
        background: #f6faff;
        border-radius: 5px;
        color: #0073cf;
        text-decoration: none;
        transition: background 0.2s;
    }

        .scheme-links a:hover {
            background: #e6f0ff;
        }

/* Error message */
.login-error {
    color: #d9534f;
    font-weight: bold;
    margin-top: 15px;
}
