/* Fonts & Root Variables */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+Pro:wght@300;400;600&display=swap');

:root {
    --text-color: #ffffff;
    --highlight: #ea1538;
    --btn-hover: #b81b2a;
    --bg-dark: #1a1a1a;
    --bg-light: #f9f9f9;
    --transition: 0.5s ease-in-out;
    --body-font: 'Source Sans Pro', sans-serif;
    --heading-font: 'Playfair Display', serif;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    /* background-color: var(--bg-dark); */
    color: var(--text-color);
    line-height: 1.6;
}

/* main {
    padding: 20px;
} */

h1,
h2,
h3 {
    font-family: var(--heading-font);
    text-align: center;
}
/* Hero Section */
.membership-hero {
    position: relative;
    height: 65vh; /* Dynamic height for better adaptability */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stack content */
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color);
}

.membership-hero img {
    opacity: 0.5; /* Subtle background image effect */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Ensure the image stays in the background */
}

.hero-content {
    z-index: 1; /* Place content above the overlay */
    padding: 20px;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    border-radius: 10px; /* Smooth corners for the content box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.membership-hero button {
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--highlight);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.membership-hero button:hover {
    background: var(--btn-hover);
    color: var(--text-color);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .membership-hero {
        height: 45vh; /* Adjust height for smaller screens */
    }

    .hero-content {
        padding: 15px;
        font-size: 0.9rem; /* Slightly smaller text */
    }

    .membership-hero button {
        font-size: 0.9rem;
    }
}

/* Plans Section */
.plans-container{    display: flex;
    justify-content: center;
    flex-wrap: wrap;
background-color: #353535;
    gap: 20px;

}
.membership-plans  {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: linear-gradient(0deg, black, #353535);

    gap: 20px;
}

.plan {
    background: var(--bg-light);
    color: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.plan.popular {
    border: 2px solid var(--highlight);
}

.plan button {
    background: var(--highlight);
    color: var(--text-color);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.plan:hover {
    background: linear-gradient(180deg, var(--highlight), black);
    color: var(--text-color);
}


/* Modal */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    color: var(--text-color);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--highlight);
    transition: transform 0.2s ease;
}

.modal-content .close:hover {
    transform: scale(1.2);
}

.modal-form {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Labels */
.modal-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--highlight);
}

/* Inputs and Textarea */
.modal-form input,
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--bg-dark);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--bg-dark);
    background: var(--bg-light);
    resize: none;
}

/* Larger Textarea for extended responses */
.modal-form textarea {
    min-height: 150px;
    max-height: 200px;
    line-height: 1.5;
}

/* Submit Button */
.modal-form button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background: var(--highlight);
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color var(--transition);
}

.modal-form button:hover {
    background: var(--btn-hover);
    color: var(--bg-dark);
}




/* Form Styling */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form label {
    font-weight: bold;
    font-size: 0.9rem;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid var(--highlight);
    border-radius: 5px;
    background: var(--bg-light);
    color: var(--bg-dark);
    transition: var(--transition);
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: var(--btn-hover);
    outline: none;
}

/* Submit Button */
.modal-form button {
    padding: 10px;
    background: var(--highlight);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--body-font);
    cursor: pointer;
    transition: var(--transition);
}

.modal-form button:hover {
    background: var(--btn-hover);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .modal-content {
        padding: 20px;
        font-size: 0.9rem;
    }
}

/* Keyframes for Animation */
@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Benefits Section */
.membership-benefits {
    display: flex;
    padding: 20px;
    background: linear-gradient(180deg, black, #353535);
    color: var(--bg-dark);
    flex-wrap: wrap;
    display: flex;
    gap: 20px;
    height: auto;
    justify-content: center;
}

.benefit {
    min-width: 140px;
    /* Set minimum width for each benefit card */
    max-width: 140px;
    /* Ensure consistent sizing */
    height: 160px;
    /* Fixed height for all cards */
    background: linear-gradient(0deg, var(--highlight), black);
   
    color: var(--text-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    /* Stack content vertically */
    align-items: center;
    /* Center content horizontally */
    justify-content: center;
    /* Center content vertically */
    text-align: center;
    transition: var(--transition);
}

.benefit img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.benefit h3 {
    font-size: 1rem;
    margin: 5px 0;
}

.benefit:hover {

    background: linear-gradient(180deg, var(--highlight), black);
    /* color: var(--bg-dark); */
}