/* public/css/site/media-events.css */

/* ===== Hero ===== */
.events-hero {
    padding-block: clamp(40px, 14vh, 110px);
    background: radial-gradient(
            900px 320px at 10% -20%,
            rgba(201, 165, 82, 0.16),
            transparent 60%
        ),
        linear-gradient(135deg, #050814, #0b0d10 60%, #020617 100%);
    color: #f9fafb;
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
    position: relative;
    isolation: isolate;
    overflow: clip;
}

.events-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin-inline: auto;
}

.events-hero__title {
    margin: 0;
    font-size: clamp(26px, 5.6vw, 40px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.events-hero__line {
    display: block;
}

.events-hero__line--accent {
    background: linear-gradient(
        90deg,
        var(--accent, #c9a552),
        var(--accent-2, #e2c777)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.events-hero__lead {
    margin: 14px 0 0;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.9;
}

.events-hero__lead--soft {
    opacity: 0.9;
}

/* ===== Sections ===== */
.events-section {
    padding-block: clamp(28px, 9vh, 80px);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.events-section--alt {
    background: #f7f7f8;
}

.events-section__head {
    text-align: center;
    margin-bottom: clamp(16px, 3.5vw, 24px);
}

.events-section__title {
    margin: 0;
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.events-section__title--light {
    color: #f9fafb;
}

.events-section__subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
}

/* ===== Intro / Pillars ===== */
.events-intro {
    background: #ffffff;
}

.events-intro__layout {
    max-width: 1300px;
    margin-inline: auto;
}

.events-intro__content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: clamp(16px, 3vw, 32px);
    align-items: flex-start;
}

[dir="rtl"] .events-intro__content {
    text-align: right;
}

.events-intro__copy {
    max-width: 34rem;
}

.events-intro__pillars-wrap {
    align-self: stretch;
}

.events-intro__text {
    margin: 10px 0 16px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
    line-height: 1.9;
}

.events-intro__text {
    margin: 10px 0 16px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
    line-height: 1.9;
}

/* Pillars list */
.events-pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.events-pillars__item {
    border-radius: 16px;
    border: 1px solid var(--line, #e5e7eb);
    padding: 12px 14px;
    background: #fcfcfc;
}

.events-pillars__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.events-pillars__body {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
    line-height: 1.8;
}

/* ===== Event Types grid ===== */
.events-types {
    background: #f9fafb;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.events-card {
    border-radius: 16px;
    border: 1px solid var(--line, #e5e7eb);
    background: #ffffff;
    padding: 14px 14px 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.03);
}

.events-card__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.events-card__body {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
    line-height: 1.9;
}

/* ===== Commitment block ===== */
.events-commitment {
    background: radial-gradient(
            900px 360px at 50% 0,
            rgba(201, 165, 82, 0.18),
            transparent 65%
        ),
        #020617;
    color: #f9fafb;
}

.events-commitment__layout {
    max-width: 1000px;
    margin-inline: auto;
}

.events-commitment__intro {
    margin: 10px 0 12px;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.9;
}

.events-commitment__list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 6px;
}

.events-commitment__list li {
    position: relative;
    padding-inline-start: 18px; /* في RTL تصبح من اليمين تلقائياً */
    font-size: 14px;
    font-weight: 700;
    color: #f9fafb;
}

.events-commitment__list li::before {
    content: "";
    position: absolute;
    inset-block-start: 0.8em;
    inset-inline-start: 0; /* في RTL = يمين، في LTR = يسار */
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(
        circle at 30% 30%,
        var(--accent-2, #e2c777),
        var(--accent, #c9a552)
    );
    transform: translateY(-50%);
}

.events-commitment__footer {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 2;
}

/* ===== Showcase (Selected events) ===== */
.events-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 22px);
}

.events-showcase__card {
    border-radius: 18px;
    border: 1px solid var(--line, #e5e7eb);
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
}

.events-showcase__media {
    margin: 0;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #020617;
}

.events-showcase__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.35s ease, filter 0.25s ease;
    filter: saturate(1.04) contrast(1.04);
}

.events-showcase__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
}

.events-showcase__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.events-showcase__date {
    color: var(--muted, #6b6f76);
}

.events-showcase__tag {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(201, 165, 82, 0.12);
    color: #7a5b1b;
    border: 1px solid rgba(201, 165, 82, 0.35);
}

.events-showcase__title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.events-showcase__excerpt {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
    line-height: 1.8;
}

/* Hover */
.events-showcase__card:hover .events-showcase__img,
.events-showcase__card:focus-within .events-showcase__img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.06);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .events-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .events-intro__content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .events-intro__copy {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .events-hero {
        padding-block: clamp(28px, 11vh, 70px);
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .events-showcase__grid {
        grid-template-columns: 1fr;
    }

    .events-pillars__title,
    .events-card__title,
    .events-showcase__title {
        font-size: 14px;
    }

    .events-pillars__body,
    .events-card__body,
    .events-showcase__excerpt {
        font-size: 13px;
    }
}
