/**
 * Club Recognition & Milestones — modern theme UI.
 * Uses the design-system tokens (--lp-*) defined in assets/css/design-system.css.
 */

.crm-page {
    background: var(--lp-surface-2, #F8F9FA);
}

.crm-section {
    padding: 2.5rem 0 0.5rem;
}

.crm-section:last-child {
    padding-bottom: 2.5rem;
}

/* ---------- Section intro ---------- */
.crm-intro {
    max-width: none;
    width: 100%;
    margin: 0 0 1.75rem;
    text-align: left;
}

.crm-intro .el-smalltitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--lp-radius-pill, 999px);
    background: var(--lp-primary-soft, #F3ECFE);
    color: var(--lp-primary-deep, #4510A0);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-heading {
    margin-bottom: 0.65rem;
    letter-spacing: -0.03em;
    color: var(--lp-ink, #0E082B);
    font-weight: 800;
}

.crm-lead {
    color: var(--lp-muted, #72706C);
    font-size: 1.05rem;
    margin: 0;
    max-width: 46rem;
}

.crm-lead i {
    color: var(--lp-primary, #6C1CEA);
    margin-right: 0.35rem;
}

.crm-subheading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lp-ink, #0E082B);
    margin-bottom: 0.9rem;
}

/* ---------- Split cards (image + text) ---------- */
.crm-split-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--lp-surface, #fff);
    border: 1px solid var(--lp-border, #E5E7EB);
    border-radius: var(--lp-radius, 16px);
    overflow: hidden;
    box-shadow: var(--lp-shadow, 0 10px 30px rgba(14, 8, 43, 0.08));
    margin-bottom: 1.75rem;
}

.crm-split-media {
    position: relative;
    min-height: 280px;
    max-height: 420px;
}

.crm-split-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Certificates / documents — show full image, no crop */
.crm-split-media--contain {
    background: var(--lp-surface-2, #F8F9FA);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.crm-split-media--contain img {
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.crm-split-body {
    padding: 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.crm-split-body p {
    color: var(--lp-text, #514F4C);
    margin-bottom: 1rem;
}

.crm-split-body p:last-child {
    margin-bottom: 0;
}

.crm-split-reverse .crm-split-media {
    order: 2;
}

.crm-split-reverse .crm-split-body {
    order: 1;
}

/* ---------- Foundation gallery ---------- */
.crm-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.crm-gallery-item {
    margin: 0;
    border-radius: var(--lp-radius, 16px);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: var(--lp-shadow, 0 10px 30px rgba(14, 8, 43, 0.08));
    background: var(--lp-surface, #fff);
}

.crm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--lp-ease, ease);
}

.crm-gallery-item:hover img {
    transform: scale(1.05);
}

/* ---------- Timeline ---------- */
.crm-timeline {
    position: relative;
    padding-left: 2rem;
}

.crm-timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 9px;
    width: 2px;
    background: linear-gradient(180deg, var(--lp-primary, #6C1CEA), var(--lp-teal, #40D0DE));
    border-radius: 2px;
}

.crm-timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.crm-timeline-item:last-child {
    margin-bottom: 0;
}

.crm-timeline-marker {
    position: absolute;
    top: 26px;
    left: -2rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--lp-surface, #fff);
    border: 4px solid var(--lp-primary, #6C1CEA);
    box-shadow: 0 0 0 4px var(--lp-primary-soft, #F3ECFE);
}

.crm-timeline-card {
    background: var(--lp-surface, #fff);
    border: 1px solid var(--lp-border, #E5E7EB);
    border-radius: var(--lp-radius, 16px);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--lp-shadow, 0 10px 30px rgba(14, 8, 43, 0.08));
    transition: transform var(--lp-transition, 0.28s ease), box-shadow var(--lp-transition, 0.28s ease);
}

.crm-timeline-item:hover .crm-timeline-card {
    transform: translateY(-3px);
    box-shadow: var(--lp-shadow-hover, 0 18px 40px rgba(108, 28, 234, 0.14));
}

.crm-timeline-date {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.9rem;
    border-radius: var(--lp-radius-pill, 999px);
    background: var(--lp-primary-soft, #F3ECFE);
    color: var(--lp-primary-deep, #4510A0);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.crm-timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lp-ink, #0E082B);
    margin-bottom: 0.45rem;
}

.crm-timeline-card p {
    color: var(--lp-text, #514F4C);
    margin: 0;
}

/* ---------- Team blocks ---------- */
.crm-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.crm-card {
    background: var(--lp-surface, #fff);
    border: 1px solid var(--lp-border, #E5E7EB);
    border-radius: var(--lp-radius, 16px);
    padding: 1.75rem;
    box-shadow: var(--lp-shadow, 0 10px 30px rgba(14, 8, 43, 0.08));
    border-top: 4px solid var(--lp-primary, #6C1CEA);
}

.crm-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--lp-primary-deep, #4510A0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.crm-card p {
    color: var(--lp-text, #514F4C);
    margin-bottom: 1rem;
}

.crm-card p:last-child {
    margin-bottom: 0;
}

.crm-card strong {
    color: var(--lp-ink, #0E082B);
}

/* ---------- Review committee members ---------- */
.crm-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.crm-member-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--lp-surface, #fff);
    border: 1px solid var(--lp-border, #E5E7EB);
    border-radius: var(--lp-radius, 16px);
    padding: 1rem 1.25rem;
    box-shadow: var(--lp-shadow, 0 10px 30px rgba(14, 8, 43, 0.08));
    transition: transform var(--lp-transition, 0.28s ease), box-shadow var(--lp-transition, 0.28s ease);
}

.crm-member-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lp-shadow-hover, 0 18px 40px rgba(108, 28, 234, 0.14));
}

.crm-member-avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lp-primary-soft, #F3ECFE);
    color: var(--lp-primary, #6C1CEA);
    font-size: 1.05rem;
}

.crm-member-name {
    display: block;
    color: var(--lp-ink, #0E082B);
    font-weight: 700;
    line-height: 1.3;
}

.crm-member-role {
    display: block;
    color: var(--lp-muted, #72706C);
    font-size: 0.88rem;
    line-height: 1.4;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .crm-split-card {
        grid-template-columns: 1fr;
    }

    .crm-split-media {
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    .crm-split-reverse .crm-split-media {
        order: 1;
    }

    .crm-split-reverse .crm-split-body {
        order: 2;
    }

    .crm-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .crm-split-body {
        padding: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .crm-gallery {
        grid-template-columns: 1fr;
    }

    .crm-timeline {
        padding-left: 1.6rem;
    }

    .crm-timeline-marker {
        left: -1.6rem;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .crm-timeline-card {
        padding: 1.25rem;
    }
}
