:root {
    --main: #01185E;
    --secondary: #E2A52A;
    --accent: #A91F24;
    --bg: #f5f7fa;
    --white: #ffffff;
}

body {
    background-color: var(--bg);
    color: var(--main);
    margin-top: 1.5rem;
}

.membership-section {
    max-width: 1200px;
    margin: auto;
    padding: 3rem 1rem;
}

.hero-box {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-box h1 {
    font-size: 2.75rem;
    color: #001f3f;
    margin-bottom: 0.5rem;
}

.hero-box .subtitle {
    font-size: 1.2rem;
    color: #333;
}

.card-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #ddd;
    border-radius: 1.2rem;
    padding: 2rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(0);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.308);
}

.card h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.card i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.card i.fa-paper-plane {
    margin-right: 0.5rem;
    color: var(--main);
}

.req-list,
.dues-list {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.req-list li,
.dues-list li {
    margin-bottom: 0.5rem;
}

.email-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-form input,
.email-form textarea {
    border: 1px solid #ccc;
    padding: 0.75rem;
    border-radius: 0.6rem;
    font-size: 1rem;
}

.email-form button {
    background-color: var(--main);
    color: var(--white);
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.email-form button:hover {
    background-color: var(--secondary);
    color: var(--main);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    position: relative;
    animation: fadeIn 0.4s ease-in-out;
    text-align: center;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #01185E;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #333;
}

.download-btn {
    display: inline-block;
    background-color: #01185E;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #0a2a8c;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.download-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    padding: 0.75rem 1.5rem;
    background-color: #01185E;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #0c2880;
}

.download-btn.docx {
    background-color: #2a5699;
}

.download-btn.docx:hover {
    background-color: #3f6fc4;
}
