/* Membership Perks Section Custom Styles */

.membership-section {
    background-color: #f8f9fa; /* Light background to differentiate from white sections */
    /* Padding is handled by inner .section-gap class (100px) */
}

.membership-perks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 40px;
    margin-top: 50px;
    /* margin-bottom handled by CTA wrapper spacing */
}

.membership-perk-item {
    display: flex;
    flex-direction: column;
    align-items: center !important; /* Force center alignment */
    text-align: center;
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

.membership-perk-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.membership-perk-item .about-us-featured-icon-wrap {
    margin-bottom: 24px;
    /* Ensure icon wrap is also centered if it has flex */
    justify-content: center;
    background-color: var(--color--primary-color, #3898ec);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(56, 152, 236, 0.2);
}

.membership-perk-item .about-us-featured-icon {
    width: 32px;
    height: 32px;
}

.membership-perk-item .about-us-featured-title {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}

.membership-perk-item .about-us-featured-summary {
    max-width: 100%; /* Allow full width in the grid cell */
    color: #666;
    line-height: 1.6;
}

.membership-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.membership-cta-button {
    background-color: var(--color--primary-color, #3898ec);
    color: white;
    padding: 15px 35px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(56, 152, 236, 0.3);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.membership-cta-button:hover {
    background-color: #2b7bc4; /* Darker shade for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(56, 152, 236, 0.4);
    color: white;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
    .membership-perks-grid {
        grid-template-columns: 1fr 1fr;
        grid-gap: 30px;
    }
}

@media screen and (max-width: 767px) {
    .membership-perks-grid {
        grid-template-columns: 1fr;
        grid-gap: 40px;
    }
    
    .membership-perk-item {
        padding: 30px 20px;
    }

}
