/* ==========================================================================
   Mikvah – Sense and Sensitivity Event Page
   Palette:
     coral:       #c9534e  (CTA / accents)
     teal:        #3a8fa0  (secondary)
     teal-dark:   #1e5f6e  (headings / dark text)
     aqua-light:  #d4edf4  (section backgrounds)
     off-white:   #f6f9fa  (page background)
     text:        #2c3e3f
   ========================================================================== */

/* -----------------------------------------------------------------------
   CSS custom properties — scoped to the page wrapper so they always apply
   regardless of what body classes the theme adds.
   ----------------------------------------------------------------------- */
.mikvah-main,
.mikvah-hero,
.mikvah-schedule,
.mikvah-cta,
.mikvah-whatsapp,
.mikvah-resources,
.mikvah-gallery {
    --mk-coral:       #c4685e;
    --mk-coral-hover: #a8524a;
    --mk-teal:        #5a8fa0;
    --mk-teal-mid:    #8fbcbc;
    --mk-teal-light:  #b8d8d8;
    --mk-teal-dark:   #2d5f6e;
    --mk-off-white:   #f6f9fa;
    --mk-white:       #ffffff;
    --mk-text:        #1e4550;
    --mk-text-light:  #4a7078;
    --mk-wa-green:    #25D366;
    /* the signature gradient */
    --mk-gradient: linear-gradient(145deg,
        rgb(90,  143, 160)  0%,
        rgb(143, 188, 188) 40%,
        rgb(184, 216, 216) 70%,
        rgb(196, 104, 94) 100%);
    /* reversed — coral → teal, useful for CTAs */
    --mk-gradient-rev: linear-gradient(145deg,
        rgb(196, 104, 94)   0%,
        rgb(184, 216, 216) 40%,
        rgb(143, 188, 188) 70%,
        rgb(90,  143, 160) 100%);
}

body.mikvah-page {
    background-color: #f6f9fa;
    color: #1e4550;
    font-family: 'proxima-nova-condensed', 'Proxima Nova', Arial, sans-serif;
}

/* ==========================================================================
   PAGE WRAPPER — reset any theme padding/margin that bleeds in
   ========================================================================== */
.mikvah-main {
    padding-top: 0;
    margin-top: 0;
}

/* ==========================================================================
   PAGE CONTENT (WP editor content)
   ========================================================================== */
.mikvah-page-content {
    background: var(--mk-white);
    padding: 36px 24px;
}
.mikvah-page-content__inner {
    max-width: 900px;
    margin: 0 auto;
    color: var(--mk-text);
    line-height: 1.75;
}
.mikvah-page-content__inner > :last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .mikvah-page-content {
        padding: 28px 20px;
    }
}

/* ==========================================================================
   SHARED UTILITIES
   ========================================================================== */
.mikvah-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    line-height: 1.2;
}
.mikvah-btn--pill { border-radius: 50px; }

.mikvah-btn--coral {
    border: none;
    background-image: var(--mk-gradient), var(--mk-gradient-rev);
    background-size: 100% 100%, 100% 100%;
    background-position: 0 100%, 0 0;
    background-repeat: no-repeat;
    color: var(--mk-white) !important;
    transition: background-position 0.28s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.mikvah-btn--coral:hover,
.mikvah-btn--coral:focus {
    border: none;
    background-position: 0 0, 0 100%;
    color: var(--mk-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(45, 95, 110, 0.22);
}
.mikvah-btn--teal {
    background-color: var(--mk-teal);
    color: var(--mk-white) !important;
}
.mikvah-btn--teal:hover,
.mikvah-btn--teal:focus {
    background-color: var(--mk-teal-dark);
    color: var(--mk-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(45, 95, 110, 0.2);
}
.mikvah-btn--dark {
    background-color: var(--mk-teal-dark);
    color: var(--mk-white) !important;
}
.mikvah-btn--dark:hover,
.mikvah-btn--dark:focus {
    background-color: #14434f;
    color: var(--mk-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 67, 79, 0.25);
}
.mikvah-btn--whatsapp {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--mk-teal-dark) !important;
    border-color: rgba(255, 255, 255, 0.75);
    border-radius: 50px;
}
.mikvah-btn--whatsapp:hover,
.mikvah-btn--whatsapp:focus {
    background-color: rgba(255, 255, 255, 1);
    color: var(--mk-teal-dark) !important;
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(45, 95, 110, 0.18);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.mikvah-hero {
    background: var(--mk-off-white);
}

/* Banner image — full width, natural aspect ratio */
.mikvah-hero__banner {
    width: 100%;
    line-height: 0; /* remove inline-block gap */
}
.mikvah-hero__banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Info block below the banner */
.mikvah-hero__info {
    position: relative;
    background: var(--mk-gradient);
    padding: 48px 24px 52px;
    text-align: center;
}
.mikvah-hero__info::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 55, 64, 0.28) 0%, rgba(20, 55, 64, 0.18) 50%, rgba(20, 55, 64, 0.22) 100%);
    pointer-events: none;
}
.mikvah-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 740px;
    margin: 0 auto;
}
.mikvah-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.22);
    margin-bottom: 8px;
}
.mikvah-hero__pretitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.94);
    text-shadow: 0 1px 2px rgba(0,0,0,0.22);
    margin-bottom: 14px;
}
.mikvah-hero__title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 700;
    color: var(--mk-white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.28);
    line-height: 1.15;
    margin-bottom: 12px;
    font-family: 'Playfair Display', Georgia, serif;
}
.mikvah-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.96);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}
.mikvah-hero__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.mikvah-hero__date,
.mikvah-hero__time {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.mikvah-hero__sep {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}
.mikvah-hero__pill {
    display: inline-block;
    background: var(--mk-coral);
    color: var(--mk-white);
    padding: 0.38rem 1.6rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.mikvah-hero__incentive {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.93);
    text-shadow: 0 1px 2px rgba(0,0,0,0.16);
    margin-bottom: 24px;
    font-style: italic;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .mikvah-hero__info { padding: 36px 20px 40px; }
    .mikvah-hero__title { font-size: 1.65rem; }
}

/* ==========================================================================
   SCHEDULE
   ========================================================================== */
.mikvah-schedule {
    background: var(--mk-white);
    padding: 72px 24px;
}
.mikvah-schedule__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.mikvah-schedule__heading {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--mk-teal-dark);
    text-align: center;
    margin-bottom: 48px;
}

.mikvah-sessions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* session cards */
.mikvah-session {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid #d8e6e9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(19, 73, 86, 0.06);
    align-items: start;
}

.mikvah-session__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.mikvah-session__time {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mk-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* speaker avatars */
.mikvah-session__speakers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mikvah-speaker-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mk-teal-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--mk-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.mikvah-speaker-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mikvah-speaker-avatar__initials {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mk-teal-dark);
    text-transform: uppercase;
}

/* session right */
.mikvah-session__right { min-width: 0; }
.mikvah-session__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mk-teal-dark);
    line-height: 1.35;
    margin-bottom: 8px;
}
.mikvah-session__speaker-names {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}
.mikvah-session__speaker-names li {
    font-size: 0.88rem;
    color: var(--mk-text-light);
    line-height: 1.5;
}

.mikvah-speaker-name-trigger {
    appearance: none;
    border: 0;
    background: none;
    color: var(--mk-teal-dark);
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mikvah-speaker-name-trigger:hover,
.mikvah-speaker-name-trigger:focus {
    background: transparent;
    color: var(--mk-coral);
}

.mikvah-speaker-name-trigger:active {
    background: transparent;
}

.mikvah-speaker-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mikvah-speaker-modal[hidden] {
    display: none !important;
}

.mikvah-speaker-modal__dialog {
    width: min(760px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    position: relative;
}

.mikvah-speaker-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    width: 34px;
    height: 34px;
    padding: 10px 13px;
    border-radius: 50%;
    background: #f1f4f5;
    color: var(--mk-teal-dark);
    font-size: 1rem;
    cursor: pointer;
}

.mikvah-speaker-modal__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.mikvah-speaker-modal__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mk-teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mk-teal-dark);
    font-weight: 700;
}

.mikvah-speaker-modal__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mikvah-speaker-modal__name {
    margin: 0;
    color: var(--mk-teal-dark);
}

.mikvah-speaker-modal__body {
    color: var(--mk-text);
    line-height: 1.7;
}

body.mikvah-modal-open {
    overflow: hidden;
}

/* expand toggle */
.mikvah-session__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mk-teal);
    margin-top: 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mikvah-session__toggle:hover,
.mikvah-session__toggle:focus {
    background: transparent;
    color: var(--mk-teal-dark);
}

.mikvah-session__toggle:active {
    background: transparent;
}
.mikvah-session__toggle-icon {
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
}
.mikvah-session__body {
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--mk-text);
    border-top: 1px solid #e4eff1;
    padding-top: 10px;
}

@media (max-width: 767px) {
    .mikvah-schedule { padding: 48px 20px; }
    .mikvah-sessions {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .mikvah-session {
        padding: 16px;
    }
    .mikvah-session__left { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .mikvah-sessions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   PRIMARY CTA
   ========================================================================== */
.mikvah-cta {
    background: var(--mk-off-white);
    padding: 56px 24px;
    text-align: center;
    border-top: 1px solid #e0eaec;
}
.mikvah-cta__incentive {
    font-size: 1rem;
    color: var(--mk-teal-dark);
    font-weight: 500;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* ==========================================================================
   WHATSAPP SECTION
   ========================================================================== */
.mikvah-whatsapp {
    background: var(--mk-gradient);
    padding: 56px 24px;
    text-align: center;
}
.mikvah-whatsapp__heading {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 4px rgba(30,69,80,0.25);
    margin-bottom: 28px;
}
.mikvah-whatsapp__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.mikvah-whatsapp__icon {
    flex-shrink: 0;
    vertical-align: middle;
}

/* ==========================================================================
   RESOURCE CARDS SECTION
   ========================================================================== */
.mikvah-resources {
    background: var(--mk-gradient);
    padding: 80px 24px;
}
.mikvah-resources__inner { max-width: 1040px; margin: 0 auto; }

.mikvah-resources__header { margin-bottom: 48px; }
.mikvah-resources__heading {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(30,69,80,0.20);
    margin-bottom: 12px;
}
.mikvah-resources__body {
    font-size: 1rem;
    color: rgba(255,255,255,0.90);
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.65;
}

/* card grid – 2-up + centered 3rd */
.mikvah-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.mikvah-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 480px;
    width: 100%;
    justify-self: center;
}

.mikvah-card {
    background: var(--mk-white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mikvah-card__accent {
    height: 5px;
    background: var(--mk-gradient);
    flex-shrink: 0;
}
.mikvah-card__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--mk-teal-light);
}
.mikvah-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mikvah-card__body {
    padding: 24px 24px 16px;
    flex: 1;
}
.mikvah-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mk-teal);
    margin-bottom: 8px;
}
.mikvah-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mk-teal-dark);
    line-height: 1.3;
    margin-bottom: 8px;
}
.mikvah-card__detail {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mk-teal);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}
.mikvah-card__text {
    font-size: 0.93rem;
    color: var(--mk-text);
    line-height: 1.65;
}
.mikvah-card__footer {
    padding: 0 24px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 767px) {
    .mikvah-resources { padding: 48px 16px; }
    .mikvah-cards { grid-template-columns: 1fr; }
    .mikvah-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: 100%;
    }
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.mikvah-gallery {
    background: var(--mk-off-white);
    padding: 72px 24px;
}
.mikvah-gallery__inner { max-width: 900px; margin: 0 auto; }
.mikvah-gallery__heading {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--mk-teal-dark);
    margin-bottom: 32px;
}

.mikvah-gallery__track { position: relative; overflow: hidden; border-radius: 12px; }
.mikvah-gallery__slide { display: block; }
.mikvah-gallery__slide[hidden] { display: none; }
.mikvah-gallery__img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.mikvah-gallery__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}
.mikvah-gallery__prev,
.mikvah-gallery__next {
    background: none;
    border: 2px solid var(--mk-teal);
    color: var(--mk-teal-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.mikvah-gallery__prev:hover,
.mikvah-gallery__next:hover {
    background: var(--mk-teal);
    color: var(--mk-white);
}
.mikvah-gallery__dots { display: flex; gap: 8px; }
.mikvah-gallery__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c0d8de;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.mikvah-gallery__dot.is-active,
.mikvah-gallery__dot:hover {
    background: var(--mk-teal);
    transform: scale(1.25);
}

@media (max-width: 767px) {
    .mikvah-gallery { padding: 48px 16px; }
    .mikvah-gallery__img { height: 240px; }
}

/* ==========================================================================
   POPUP TRIGGER (no additional styles needed – uses gf-popup module)
   ========================================================================== */
.mikvah-popup-trigger { cursor: pointer; }
