/**
 * Home page: hero, about, mission-vision, eagle-hymn, four-pillars, impact, events, membership.
 * Layout (nav, footer, base) is in layout.css.
 *
 * Naming convention (consistent across sections):
 * - Section: id="[section-id]", class="[section-id]-section", data-section="[section-id]"
 * - Header block: [section-id]-header
 * - Main title (60px): h2.section-main-title
 * - Subtitle (44px): h3.section-subtitle
 * - Body/description: p.[section-id]-body or p.[section-id]-description, plus .section-body
 */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 80px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content .col-lg-10 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero-border-texture-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 80px;
    min-height: 80px;
    line-height: 0;
    margin: 0;
    padding: 0;
    margin-top: -70px;
    margin-bottom: 0;
    border: none;
    outline: none;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    font-size: 0;
}

.hero-border-texture {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 80px;
    object-fit: cover;
    object-position: center bottom;
    border: none;
    outline: none;
}

.hero-caption {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    max-width: 620px;
    padding: 48px 12px 56px 12px;
    margin: 0 auto;
    text-align: center;
}

.hero-caption h1.hero-main-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 4.2vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.25;
}

.hero-caption-subtitle {
    font-size: clamp(0.875rem, 1.7vw, 1.05rem);
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

@media (max-width: 991px) {
    .hero-caption-subtitle {
        white-space: normal;
    }
}

.hero-cta-btn {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    padding: 12px 28px;
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.hero-cta-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-black);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

@supports (padding: max(0px)) {
    .hero-content {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
}

/* Home hero responsive */
@media (max-width: 1199px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 60px 0;
    }
    .hero-caption h1 {
        font-size: clamp(1.4rem, 4vw, 2.75rem);
    }
    .hero-caption-subtitle {
        font-size: clamp(0.8125rem, 1.6vw, 1rem);
    }
}

@media (max-width: 991px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 48px 0;
    }
    .hero-caption {
        padding: 32px 24px 40px 24px;
    }
    .hero-caption h1 {
        font-size: clamp(1.35rem, 4.5vw, 2.25rem);
        max-width: 100%;
    }
    .hero-caption-subtitle {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 40px 0;
    }
    .hero-caption {
        padding: 28px 20px 36px 20px;
    }
    .hero-caption h1 {
        font-size: clamp(1.2rem, 5vw, 1.75rem);
        margin-bottom: 12px;
    }
    .hero-caption-subtitle {
        font-size: 0.8125rem;
        margin-bottom: 18px;
        white-space: normal;
    }
    .hero-cta-btn {
        padding: 10px 24px;
        font-size: 0.8125rem;
    }
}

/* ========== Section main titles (About Us, Events, How to Become a Member) ========== */
.about-header h2.section-main-title,
.events-title.section-main-title,
.membership-header h2.section-main-title {
    font-size: 60px;
}

@media (max-width: 991px) {
    .about-header h2.section-main-title,
    .events-title.section-main-title,
    .membership-header h2.section-main-title {
        font-size: clamp(2rem, 6vw, 48px);
    }
}

@media (max-width: 575px) {
    .about-header h2.section-main-title,
    .events-title.section-main-title,
    .membership-header h2.section-main-title {
        font-size: 2rem;
    }
}

/* ========== Section subtitles (h3, 44px): SERVICE THROUGH STRONG BROTHERHOOD, Our Mission, The Vision, Eagle Hymn, Our incredible numbers... ========== */
#about-title.section-subtitle,
.mission-title.section-subtitle,
.vision-title.section-subtitle,
.eagle-hymn-title.section-subtitle,
.impact-title.section-subtitle {
    font-size: 44px;
}

@media (max-width: 991px) {
    #about-title.section-subtitle,
    .mission-title.section-subtitle,
    .vision-title.section-subtitle,
    .eagle-hymn-title.section-subtitle,
    .impact-title.section-subtitle {
        font-size: clamp(1.75rem, 5vw, 38px);
    }
}

@media (max-width: 575px) {
    #about-title.section-subtitle,
    .mission-title.section-subtitle,
    .vision-title.section-subtitle,
    .eagle-hymn-title.section-subtitle,
    .impact-title.section-subtitle {
        font-size: 1.5rem;
    }
}

/* ========== About Section ========== */
.about-section {
    position: relative;
    padding: 60px 0 100px;
    background: var(--color-white);
}

.about-header {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 60px;
}

.about-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 0;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.about-image--empty {
    min-height: 280px;
    background: var(--color-gray);
}

.about-content h3 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 24px;
    line-height: 1.3;
}

.about-body {
    color: var(--color-dark-gray);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.about-footer {
    color: var(--color-dark-gray);
    font-size: 0.9375rem;
    margin-top: 20px;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .about-section {
        padding: 48px 0 80px;
    }
    .about-header {
        margin-bottom: 40px;
    }
    .about-header h2 {
        font-size: 2.25rem;
    }
    .about-content h3 {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }
    .about-image {
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .about-section {
        padding: 40px 0 60px;
    }
    .about-header {
        margin-bottom: 32px;
    }
    .about-header h2 {
        font-size: 1.875rem;
    }
    .about-content h3 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    .about-body {
        font-size: 0.9375rem;
    }
}

/* ========== Mission & Vision Section ========== */
.mission-vision-section {
    position: relative;
    padding: 60px 0 80px;
    min-height: 400px;
    overflow: hidden;
    background: var(--color-dark-gray);
}

.mission-vision-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

@keyframes mission-bg-zoom-fade-2 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.mission-vision-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform-origin: center center;
    transition: opacity 1s ease-in-out;
}

.mission-vision-slide.active {
    opacity: 1;
    /* 6s = slide interval; subtle zoom 1 → 1.05, smooth */
    animation: mission-bg-zoom-fade-2 6s ease-in-out forwards;
}

.mission-vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.mission-vision-content {
    position: relative;
    z-index: 2;
}

.mission-block,
.vision-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.mission-block:last-child,
.vision-block:last-child {
    margin-bottom: 0;
}

.mission-title,
.vision-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.mission-body,
.vision-body {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
    .mission-vision-section {
        padding: 40px 0 60px;
    }
    .mission-block,
    .vision-block {
        margin-bottom: 36px;
    }
    .mission-title,
    .vision-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
.mission-body,
.vision-body {
        font-size: 0.9375rem;
    }
}

/* ========== Eagle Hymn Section ========== */
.eagle-hymn-section {
    padding: 60px 0 80px;
    background: var(--color-white);
}

.eagle-hymn-header {
    max-width: 640px;
    margin: 0 auto 40px;
}

.eagle-hymn-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 16px;
}

.eagle-hymn-body {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-dark-gray);
    margin: 0;
}

.eagle-hymn-video-wrap {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 9;
}

.eagle-hymn-video-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 767px) {
    .eagle-hymn-section {
        padding: 48px 0 60px;
    }
    .eagle-hymn-header {
        margin-bottom: 28px;
    }
    .eagle-hymn-title {
        font-size: 1.75rem;
    }
}

/* ========== Four Pillars Section (header on top, 4 cards horizontal) ========== */
.four-pillars-section {
    padding: 60px 0 80px;
    background: var(--color-white);
}

#four-pillars.four-pillars-section {
    padding-top: 40px;
}

.pillars-header {
    margin-bottom: 48px;
}

.pillars-accent-line {
    width: 48px;
    height: 4px;
    background: var(--color-primary);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.pillars-main-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 12px;
}

.pillars-subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-dark-gray);
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.pillars-cards-row .pillar-card {
    padding: 24px 20px 36px;
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.pillars-cards-row .pillar-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(230, 193, 10, 0.5);
}

.pillars-cards-row .pillar-icon {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.pillars-cards-row .pillar-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    color: var(--color-primary);
}

.pillars-cards-row .pillar-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-dark-gray);
    margin: 0 0 auto 0;
    flex: 1;
}

.pillars-cards-row .pillar-number {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.06);
    line-height: 1;
}

@media (max-width: 991px) {
    .four-pillars-section {
        padding: 48px 0 60px;
    }
    .pillars-header {
        margin-bottom: 36px;
    }
    .pillars-main-title {
        font-size: clamp(1.5rem, 5vw, 38px);
    }
    .pillars-cards-row .pillar-card {
        padding: 20px 18px 32px;
    }
    .pillars-cards-row .pillar-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    .pillars-cards-row .pillar-card h4 {
        font-size: 1rem;
    }
    .pillars-cards-row .pillar-card p {
        font-size: 0.8125rem;
    }
}

@media (max-width: 575px) {
    .pillars-main-title {
        font-size: 1.5rem;
    }
}

/* ========== Our Impact Section ========== */
.impact-section {
    padding: 60px 0 80px;
    background: var(--color-black);
}

.impact-header {
    margin-bottom: 48px;
}

.impact-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 12px;
}

.impact-description {
    font-size: 1.0625rem;
    color: var(--color-white);
    margin: 0;
}

.impact-stat {
    text-align: center;
    padding: 28px 20px;
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.impact-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.impact-stat-num {
    display: block;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 8px;
}

.impact-stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark-gray);
}

@media (max-width: 767px) {
    .impact-section {
        padding: 48px 0 60px;
    }
    .impact-header {
        margin-bottom: 36px;
    }
}

/* ========== Events Section ========== */
.events-section {
    padding: 80px 0 48px;
    background: var(--color-white);
}

.events-header {
    text-align: center;
    margin-bottom: 48px;
}

.events-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.events-description {
    font-size: 1rem;
    color: var(--color-dark-gray);
    line-height: 1.6;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.event-card-image-wrap {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.event-card {
    background: #eff3f4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: opacity 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

a.event-card.event-card-link {
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    opacity: 0.92;
}

.event-card-small .event-card-image-wrap {
    aspect-ratio: 4 / 3;
}

.event-card-small .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-small .event-content {
    padding: 20px 18px;
}

.events-slider-row {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.events-slider-wrap {
    flex: 1;
    min-width: 0;
    order: 2;
    overflow: hidden;
    margin: 0 -12px;
}

.events-slider-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-black);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    align-self: center;
    margin-top: -2.5rem;
}

.events-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.12);
    color: var(--color-black);
}

.events-slider-arrow i {
    font-size: 1.25rem;
}

.events-slider-prev {
    order: 1;
}

.events-slider-next {
    order: 3;
}

.events-slider-track {
    display: flex;
    width: 250%;
    transition: transform 0.6s ease-in-out;
}

.events-slider-slide {
    flex: 0 0 10%;
    width: 10%;
    padding: 0 12px;
    min-width: 0;
    box-sizing: border-box;
}

.events-slider-slide .event-card {
    height: 100%;
}

.events-slider-wrap .event-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 8px;
}

.events-slider-wrap .event-content p {
    font-size: 0.875rem;
    color: var(--color-dark-gray);
    line-height: 1.5;
    margin: 0;
}

.event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.event-card-link:hover {
    opacity: 0.92;
}

.event-card-link .event-content h5,
.event-card-link .event-content p {
    color: inherit;
}

/* Event placeholder when no image */
.event-card-image-wrap .event-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    opacity: 0.85;
}

/* Events: tablet — 2 slides visible */
@media (max-width: 991px) {
    .events-section {
        padding: 64px 0 44px;
    }
    .events-header {
        margin-bottom: 40px;
    }
    .events-description {
        max-width: 100%;
    }
    /* Track 500% = 2 slides visible (each slide stays 10% of track) */
    .events-slider-track {
        width: 500%;
    }
    .events-slider-slide {
        padding: 0 10px;
    }
    .events-slider-arrow {
        width: 40px;
        height: 40px;
        margin-top: 0;
    }
    .events-slider-arrow i {
        font-size: 1.1rem;
    }
    .events-slider-wrap {
        margin: 0 -10px;
    }
    .event-card-small .event-content {
        padding: 16px 14px;
    }
    .events-slider-wrap .event-content h5 {
        font-size: 0.9375rem;
    }
    .events-slider-wrap .event-content p {
        font-size: 0.8125rem;
    }
}

/* Events: mobile — 1 slide visible, card & image contained (not stretched tall) */
@media (max-width: 575px) {
    .events-section {
        padding: 56px 0 40px;
    }
    .events-header {
        margin-bottom: 32px;
    }
    .events-slider-row {
        gap: 10px;
    }
    /* Track 1000% = 1 slide visible (each slide stays 10% of track) */
    .events-slider-track {
        width: 1000%;
    }
    .events-slider-slide {
        padding: 0 8px;
    }
    .events-slider-wrap {
        margin: 0 -8px;
    }
    .events-slider-arrow {
        width: 36px;
        height: 36px;
        margin-top: 0;
    }
    .events-slider-arrow i {
        font-size: 1rem;
    }
    /* Contained size: fixed aspect ratio so card isn't too tall; image fits inside (contain) */
    .event-card-small .event-card-image-wrap {
        aspect-ratio: 4 / 3;
        max-height: 220px;
        background: var(--color-gray);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .event-card-small .event-image {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }
    .event-card-small .event-content {
        padding: 18px 14px;
    }
    .events-slider-wrap .event-content h5 {
        font-size: 1rem;
    }
    .events-slider-wrap .event-content p {
        font-size: 0.875rem;
    }
}

/* Events: very small (optional) */
@media (max-width: 380px) {
    .events-slider-arrow {
        width: 32px;
        height: 32px;
    }
    .events-slider-arrow i {
        font-size: 0.9rem;
    }
}

/* ========== Membership Section ========== */
.membership-section {
    padding: 48px 0 100px;
    background: var(--color-white);
}

.membership-header {
    width: 100%;
    text-align: center;
    margin-bottom: 48px;
}

.membership-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}


.membership-five-i-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.five-i-side-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.five-i-side-intro {
    font-size: 1rem;
    color: var(--color-dark-gray);
    line-height: 1.65;
    margin: 0;
}

.membership-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0;
    line-height: 1.2;
}

.membership-subtitle {
    font-size: 1.125rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.membership-intro-text {
    font-size: 1rem;
    color: var(--color-dark-gray);
    line-height: 1.7;
}

.membership-three-ts {
    margin-top: 0;
}

.three-ts-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.three-ts-intro {
    font-size: 0.9375rem;
    color: var(--color-dark-gray);
    line-height: 1.65;
    margin-bottom: 16px;
}

.three-ts-steps {
    margin-bottom: 14px;
}

.three-ts-steps .five-i-step-detail {
    max-height: none;
    opacity: 1;
    margin-top: 10px;
    overflow: visible;
}

.three-ts-steps .five-i-step:hover .five-i-step-detail {
    max-height: none;
}

.three-ts-steps .five-i-step {
    cursor: default;
}

.three-ts-steps .five-i-step:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.three-t-step-1 .five-i-step-chevron { background: var(--color-black); }
.three-t-step-2 .five-i-step-chevron { background: var(--color-black); }
.three-t-step-3 .five-i-step-chevron { background: var(--color-black); }
.three-ts-steps .five-i-step-number { color: var(--color-primary); }

.three-ts-note {
    font-size: 0.875rem;
    color: var(--color-dark-gray);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.five-i-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.five-i-steps-chevron .five-i-step {
    display: flex;
    align-items: stretch;
    min-height: 56px;
    background: var(--color-gray);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    overflow: hidden;
}

.five-i-steps-chevron .five-i-step:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(4px);
}

.three-ts-steps.five-i-steps-chevron .five-i-step {
    cursor: default;
}

.three-ts-steps.five-i-steps-chevron .five-i-step:hover {
    transform: none;
}

.five-i-step-chevron {
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 65% 0, 100% 50%, 65% 100%, 0 100%);
}

.five-i-step-1 .five-i-step-chevron { background: var(--color-primary); }
.five-i-step-2 .five-i-step-chevron { background: var(--color-primary); }
.five-i-step-3 .five-i-step-chevron { background: var(--color-primary); }
.five-i-step-4 .five-i-step-chevron { background: var(--color-primary); }
.five-i-step-5 .five-i-step-chevron { background: var(--color-primary); }
.five-i-steps-chevron .five-i-step-number { color: var(--color-black); }
.three-ts-steps.five-i-steps-chevron .five-i-step-number { color: var(--color-primary); }

.five-i-step-number {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
}

.five-i-step-body {
    flex: 1;
    padding: 14px 20px 14px 18px;
    min-width: 0;
}

.five-i-step-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
}

.five-i-step-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}

.five-i-steps-chevron .five-i-step:hover .five-i-step-detail {
    max-height: 160px;
    opacity: 1;
    margin-top: 10px;
}

.three-ts-steps.five-i-steps-chevron .five-i-step:hover .five-i-step-detail {
    max-height: none;
}

.five-i-step-detail p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-dark-gray);
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.five-i-carousel-wrap {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.five-i-carousel-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    min-height: 320px;
}

.five-i-carousel-left {
    display: flex;
    flex-direction: column;
}

.five-i-carousel-images {
    position: relative;
    min-height: 260px;
}

.five-i-carousel-img-slide {
    position: absolute;
    inset: 0;
    display: none;
}

.five-i-carousel-img-slide.active {
    display: block;
    animation: fiveIFadeIn 0.4s ease;
}

@keyframes fiveIFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.five-i-carousel-img-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.five-i-carousel-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0 0 0;
    background: transparent;
    min-height: auto;
}

.five-i-carousel-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.five-i-carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-black);
}

.five-i-carousel-counter {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
    margin-left: 4px;
}

.five-i-carousel-right {
    background: var(--color-white);
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
}

.five-i-carousel-content-slides {
    position: relative;
    flex: 1;
}

.five-i-carousel-content {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    padding-top: 18px;
}

.five-i-carousel-content.active {
    display: flex;
    position: relative;
    animation: fiveIFadeIn 0.4s ease;
}

.five-i-carousel-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.five-i-carousel-content p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-dark-gray);
    margin-bottom: 20px;
    flex: 1;
    margin-top: 4px;
}

.five-i-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    align-self: flex-start;
}

.five-i-learn-more:hover {
    background: var(--color-primary);
    color: var(--color-black);
}

@media (max-width: 991px) {
    .membership-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .five-i-carousel-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .five-i-carousel-images {
        min-height: 220px;
    }
}
