/* ============================================
   AIAA Membership Page Redesign
   Theme colors: #1a3d6d (navy), #78af03 (green), #525e65 (text)
   ============================================ */

.mem-page * { 
    box-sizing: border-box; 
}
.mem-page {
    font-family: 'Proxima Nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.mem-container {
    max-width: 1376px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 768px) {
    .mem-container { padding: 0 48px; }
}
@media (min-width: 1280px) {
    .mem-container { padding: 0 24px; }
}

/* HERO */
.mem-hero {
    text-align: center;
    color: #1a3d6d;
    margin-bottom: 10px;
}
.mem-hero .mem-container {
    max-width: 800px;
}
.mem-hero h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.mem-hero .mem-hero__subtitle {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}
.mem-hero .mem-hero__subtitle strong {
    font-weight: 700;
}

/* RENEW LINK */
.mem-renew-link {
    padding: 0 0 20px;
    text-align: center;
    font-size: 15px;
    color: #1a3d6d;
}
.mem-renew-link a {
    font-weight: 700;
    text-decoration: underline;
}
.mem-renew-link a:hover {
    color: #78af03;
}

/* PRICING SECTION */
#mem-main-box {
    background-color: white;
    box-shadow: 0px 0px 8px 1px #999;

    max-width: 700px;
    margin: 40px auto 0;

    padding: 30px 20px 0;
    text-align: center;
}

.mem-type-text {
    display: inline-block;
    margin: auto;

    padding: 6px 12px; 
    font-weight: bold;
    font-size: 14px;
    background-color: #1A3D6D;
    color: white;
    border-radius: 3px;
}

.mem-price-text {
    color: #78AF03;
    font-weight: bold;
    font-size: 18px;

    margin-bottom: 20px !important;
}

.mem-big-price {
    font-size: 54px;
}

.mem-card-subhead {
    text-align: center;
}

.mem-benefits {
    text-align: left;
}

.mem-benefits li {
    margin-bottom: 15px;
    padding-left: 20px;
}

.mem-benefits li::marker {
    content: "✔";
    color: #78AF03;
    font-size: 1.2rem;
}

.mem-join-button {
    display: inline-block;
    background-color: #78AF03;
    color: white;
    width: 100%;
    padding: 10px;
}

.mem-join-button:hover {
    color: white;
    background-color: #00a7e1;
}

#mem-discounts-box {
    background-color: #1A3D6D;

    max-width: 700px;
    margin: 0 auto 15px;

    padding: 30px 20px 0;
    text-align: center;
}

#mem-discounts-box .wpb_content_element {
    margin-bottom: 20px;
}

.mem-discounts-heading {
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px !important;
}

.mem-discount-card {
    display: block;
    border-radius: 5px;
    width: 100%;

    background-color: #1D3350;
    color: inherit;
    text-decoration: none;
    padding: 10px;
}

.mem-discount-card:hover {
    background-color: #00a7e1;
}

.mem-discount-percentage {
    display: inline-block;
    border-radius: 5px;
    background-color: #A6CE39;
    color: #1D3350;
    
    font-size: 12px;
    font-weight: bold;

    margin: 10px auto;
    padding: 0 5px;
}

.mem-discount-name {
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 12px;
}

.mem-discount-description {
    color: #D3D8E1;
    font-size: 14px;
    margin-bottom: 12px;
}

.mem-discount-price {
    color: #A6CE39;
    font-size: 16px;
}

.mem-discount-price-bigger {
    color: #A6CE39;
    font-size: 24px;
}

.mem-footnote {
    color: white;
    font-size: 12px;
}

/* OTHER BUTTONS */

#mem-other-options {
    max-width: 900px;
    margin: auto;
}

.mem-other-header {
    margin-bottom: 10px !important;
}

#mem-other-options h3 {
    font-size: 18px;
}

#mem-other-options p {
    font-size: 14px;
}

.mem-other-button {
    display: inline-block;
    background-color: white;
    color: #78AF03;
    border: 1px solid #78AF03;
    padding: 5px 10px;
}

/* TESTIMONIALS */
.mem-testimonials {
    padding: 70px 0;
    background: #1a3d6d;
    text-align: center;
    overflow: hidden;
}
.mem-testimonials__title {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}
.mem-testimonials__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 0 auto 36px;
    max-width: 580px;
    line-height: 1.5;
}

/* Slider */
.mem-slider-wrapper {
    position: relative;
    overflow: visible;
    margin-right: calc(-50vw + 50%);
    padding: 0;
}
.mem-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(90deg, rgba(26,61,109,0) 0%, rgba(26,61,109,0.85) 70%, rgba(26,61,109,1) 100%);
    z-index: 5;
    pointer-events: none;
}
.mem-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
}
.mem-slider-slide {
    min-width: calc(33.333% - 16px);
    flex-shrink: 0;
}

/* Testimonial Card */
.mem-testimonial-card {
    background: #fff;
    padding: 28px 24px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.mem-testimonial-card__quote-icon {
    margin-bottom: 14px;
    text-align: center;
}
.mem-testimonial-card__quote-icon img {
    height: 19px;
    width: auto;
    display: inline-block;
}
.mem-testimonial-card__text {
    font-size: 17px;
    line-height: 24px;
    color: #1f2a3d;
    margin: 0 0 20px;
    flex-grow: 1;
}
.mem-testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.mem-testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
    background: #f2c300;
}
.mem-testimonial-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}
.mem-testimonial-card__role {
    font-size: 12px;
    color: #000;
}

/* Slider Arrows */
.mem-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.2s ease;
    color: #1a3d6d;
    font-size: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mem-slider-arrow:hover {
    background: #f0f0f0;
    color: #1a3d6d;
}
.mem-slider-arrow--prev { 
    left: 12px; 
}
.mem-slider-arrow--next { 
    right: 12px; 
}
.mem-slider-arrow[disabled] {
    opacity: 0;
    pointer-events: none;
}

/* FAQ SECTION */
.mem-faq {
    padding: 70px 0;
    background: #f5f6f8;
    text-align: center;
}
.mem-faq__title {
    font-size: 46px;
    font-weight: 700;
    color: #163a50;
    margin: 0 0 40px;
}
.mem-faq__subtitle {
    font-size: 24px;
    color: #163a50;
    font-weight: 500;
    margin: 0 auto 36px;
    line-height: 1.5;
}

/* FAQ Item */
.mem-faq-item {
    align-self: stretch; 
    min-height: 64px; 
    padding: 20px; 
    background: #fff; 
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.16); 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: flex-start; 
    display: flex; 
    margin-bottom: 12px;
}
.mem-faq-item.is-active {
    border: 1px solid #1a3d6d;
}
.mem-faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #231f20;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: color 0.2s ease;
    line-height: 1.4;
}
.mem-faq-item__question:hover {
    color: #00a7e1;
}
.mem-faq-item__icon {
    font-size: 22px;
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 16px;
    color: #00a7e1;
    width: 22px;
    text-align: center;
    line-height: 1;
    user-select: none;
}

/* FAQ Answer */
.mem-faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mem-faq-item.is-active .mem-faq-item__answer {
    max-height: 600px;
}
.mem-faq-item__answer-inner {
  font-size: 17px;
  line-height: 24px;
  color: #525e65;
  text-align: left;
  margin-top: 15px;
}
.mem-faq-item__answer-inner p {
    margin: 0 0 8px;
}
.mem-faq-item__answer-inner p:last-child {
    margin-bottom: 0;
}

/* CTA FOOTER CALLOUT */
.mem-cta {
    position: relative;
    overflow: hidden;
    background: #f5f6f8;
    height: 440px;
    display: flex;
    align-items: center;
}
.mem-cta > .mem-container {
    width: 100%;
}
.mem-cta__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    background-size: cover;
    background-position: center right;
}
.mem-cta__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 67%;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(245,245,245,0.9) 50%, rgba(245,245,245,0.7) 100%);
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
}
.mem-cta__content {
    position: relative;
    z-index: 2;
    max-width: 530px;
}
.mem-cta__content h2 {
    font-size: 46px;
    font-weight: 700;
    color: #1a3d6d;
    margin: 0 0 30px;
    line-height: 1.2;
}
.mem-cta__content p {
    font-size: 24px;
    font-weight: 700;
    color: #1a3d6d;
    margin: 0 0 50px;
    line-height: 1.3;
}
.mem-cta__btn {
    display: inline-block;
    padding: 14px 32px;
    background: #78af03;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}
.mem-cta__btn:hover {
    background: #00a7e1;
    color: #fff !important;
    transform: translateY(-2px);
    transition: color 0.15s ease-out, background-color 0.15s ease-out, border 0.15s ease-out, box-shadow 0.15s ease-out, opacity 0.15s ease-out;

}
.mem-cta__btn .fa,
.mem-cta__btn .fas {
    margin-left: 6px;
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .mem-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mem-slider-slide {
        min-width: calc(50% - 12px);
    }
    .mem-cta__bg { 
        width: 100%; 
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .mem-cta__bg::after {
        width: 82%;
    }
    .mem-cta__content {
        max-width: 520px;
    }

}
    
@media (max-width: 767px) {
    .mem-testimonial-card {
        padding: 28px 26px;
    }
    .mem-slider-arrow {
        bottom: 1%;
        top: auto;
    }
    .mem-renew-link { 
        font-size: 14px;
        padding-top: 0px;
        font-weight: 700;
    }
    .mem-pricing-card__header {
        height: auto;
    }
    .mem-pricing-card__header-content {
        height: auto;
        padding: 24px;;
    }   
    .mem-hero { 
        padding: 40px 0 0px; 
    }
    .mem-hero h1 { 
        font-size: 36px;
        line-height: 36px; 
    }
    .mem-hero .mem-hero__subtitle { 
        font-size: 18px; 
        line-height: 1; 
    }
    
    .mem-pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mem-pricing-card__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mem-pricing-card.is-expanded .mem-pricing-card__toggle {
         background-color: #1d3455;   
    }
    .mem-pricing-card__body {
        max-height: 0;
        overflow: hidden;
        padding: 0 20px;
        border-top: none;
        transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .mem-pricing-card.is-expanded .mem-pricing-card__body {
        max-height: 600px;
        padding: 20px 20px 24px;
        border-top: 1px solid #e0e3e8;
    }

    .mem-slider-wrapper { 
        padding: 0; 
        margin-right: 0; 
    }
    .mem-slider-wrapper::after { 
        display: none; 
    }
    .mem-slider-slide { 
        min-width: 100%; 
    }

    .mem-testimonials__title,
    .mem-faq__title { 
        font-size: 38px; 
        line-height: 48px; 
    }
    .mem-faq__subtitle {
        font-size: 18px;
        line-height: 27px;
    }
    .mem-testimonials,
    .mem-faq { 
        padding: 48px 0; 
    }

    .mem-why-bar {
        padding: 16px; 
        border: none; 
    }
    .mem-why-bar__inner {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }
    .mem-why-bar__text { 
        justify-content: center; 
        flex-direction: column; 
    }

    .mem-why-bar__links {
        justify-content: center
    }
    .mem-cta {
        background: #fff;
        padding: 70px 0 70px 0;
    }
    .mem-cta__bg { 
        display: none; 
    }
    
    .mem-cta__content h2 {
        color: #1a3d6d;
        font-size: 38px;
        margin: 0 0 20px;
    }
    .mem-cta__content p {
        color: #1a3d6d;
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 30px;
    }
    .mem-cta__content { 
        max-width: 100%; text-align: left; 
    }

    .mem-faq-item__question {
        font-size: 18px;
    }
    .mem-cta__btn {
        width: 100%;
        text-align: center;
    }
}

.mem-page {
  padding-top: 24px;
}
@media (min-width: 768px) {
  .mem-page {
    padding-top: 48px;
  }
}
@media (min-width: 960px) {
  .mem-page {
    padding-top: 180px;
  }
}
