/* ==========================================================================
   Family First Guidance — Serene Guidance System (Homepage redesign)
   Scoped under .serene so the existing header (navbar.php) and footer
   (footer.php) styles in style.css are completely untouched.
   ========================================================================== */

.serene{
    /* Design tokens (from Serene Guidance System) */
    --srn-teal: #2BB1A4;
    --srn-teal-dark: #006a62;
    --srn-coral: #FF756B;
    --srn-cream: #F9F7F2;
    --srn-sage: #E9EDE9;
    --srn-sage-calm: #7A8C7A;
    --srn-charcoal: #2D3131;
    --srn-ink: #181c1c;
    --srn-muted: #3d4947;
    --srn-outline: #6d7a77;
    --srn-white: #FFFFFF;
    --srn-surface: #f7faf9;
    --srn-surface-high: #e6e9e8;
    --srn-surface-highest: #e0e3e3;
    --srn-shadow: 0px 10px 30px rgba(45, 49, 49, 0.05);
    --srn-serif: 'Libre Caslon Text', Georgia, serif;
    --srn-sans: 'Inter', 'Poppins', sans-serif;

    background-color: var(--srn-surface);
    color: var(--srn-ink);
    display: block;
    overflow-x: hidden;
}

/* Neutralise the global * { font-family / text-transform } rules from style.css
   inside the redesigned area only. */
.serene,
.serene *{
    font-family: var(--srn-sans);
    text-transform: none;
    box-sizing: border-box;
}

/* The rule above must not clobber Font Awesome's icon font, or every icon
   inside .serene renders as an empty square. */
.serene i[class^="fa-"],
.serene i[class*=" fa-"],
.serene i.fa,
.serene i.fas,
.serene i.fa-solid{
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
}

.serene i.fa-regular,
.serene i.far{
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

.serene i.fa-brands,
.serene i.fab{
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   Shared layout primitives
   -------------------------------------------------------------------------- */

.serene .srn-section{
    padding: 56px 24px;
}

.serene .srn-section--cream{
    background-color: var(--srn-cream);
}

.serene .srn-container{
    max-width: 1200px;
    margin: 0 auto;
}

.serene .srn-section-head{
    text-align: center;
    margin-bottom: 40px;
}

.serene .srn-eyebrow{
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--srn-teal);
    margin-bottom: 16px;
}

.serene .srn-h2{
    font-family: var(--srn-serif);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.3;
    color: var(--srn-charcoal);
    margin: 0 0 16px;
}

.serene .srn-h3{
    font-family: var(--srn-serif);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    color: var(--srn-charcoal);
    margin: 0;
}

.serene .srn-sub{
    font-size: 16px;
    line-height: 1.6;
    color: var(--srn-muted);
    max-width: 640px;
    margin: 0 auto;
}

.serene .srn-sub--lg{
    font-size: 18px;
    max-width: 760px;
}

.serene .srn-center{
    text-align: center;
}

/* Buttons (pill style from the new design system) */
.serene .srn-btn{
    display: inline-block;
    background-color: var(--srn-teal);
    color: var(--srn-white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
    padding: 12px 32px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(43, 177, 164, 0.35);
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
    border: none;
}

.serene .srn-btn:hover{
    background-color: var(--srn-teal-dark);
    color: var(--srn-white);
}

.serene .srn-btn--light{
    background-color: var(--srn-white);
    color: var(--srn-charcoal);
    box-shadow: 0 4px 14px rgba(45, 49, 49, 0.2);
}

.serene .srn-btn--light:hover{
    background-color: var(--srn-cream);
    color: var(--srn-charcoal);
}

.serene .srn-btn--ghost{
    background-color: transparent;
    color: var(--srn-charcoal);
    border: 1px solid var(--srn-sage-calm);
    box-shadow: none;
}

.serene .srn-btn--ghost:hover{
    background-color: var(--srn-sage);
    color: var(--srn-charcoal);
}

/* --------------------------------------------------------------------------
   Hero carousel
   -------------------------------------------------------------------------- */

.serene .srn-hero{
    position: relative;
    width: 100%;
    /* Same height as the service page heroes */
    height: 650px;
    padding: 0;
    background-color: var(--srn-charcoal);
    overflow: hidden;
}

/* Pin the slider to the full frame so slide/content geometry can never drift */
.serene .srn-hero .swiper{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.serene .srn-hero .swiper-wrapper,
.serene .srn-hero .swiper-slide{
    width: 100%;
    height: 100%;
}

.serene .srn-slide a{
    display: block;
    width: 100%;
    height: 100%;
}

.serene .srn-slide-img{
    width: 100%;
    height: 100%;
    /* Fill the frame. Banners are photographs, so cropping the top and
       bottom is fine — but a banner with text baked into the artwork
       would get clipped, so keep artwork clear of the edges. */
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Overlay layers (scrim below content, dots on top) */
.serene .srn-hero-scrim{
    position: absolute;
    inset: 0;
    /* Centre-weighted so the copy stays legible over bright banners
       while the edges of the image remain visible. */
    /* Tight pool of shade behind the copy only — the rest of the banner
       stays essentially untouched so the photograph reads clearly. */
    background-color: rgba(0, 0, 0, 0.05);
    background-image: radial-gradient(ellipse 62% 58% at center,
                        rgba(0, 0, 0, 0.5) 0%,
                        rgba(0, 0, 0, 0.34) 45%,
                        rgba(0, 0, 0, 0.1) 78%,
                        rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.serene .srn-hero-content{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    /* Arrow cursor instead of the text I-beam over the hero */
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}

.serene .srn-hero-eyebrow{
    color: var(--srn-white);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 12px rgba(0, 0, 0, 0.6);
}

.serene .srn-hero-title{
    font-family: var(--srn-serif);
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--srn-white);
    opacity: 0.9;
    max-width: 768px;
    margin: 0 0 24px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85), 0 4px 20px rgba(0, 0, 0, 0.65);
}

.serene .srn-hero-sub{
    color: var(--srn-white);
    font-size: 18px;
    line-height: 1.6;
    max-width: 672px;
    opacity: 0.88;
    margin: 0 0 32px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 14px rgba(0, 0, 0, 0.6);
}

.serene .srn-hero-actions{
    display: flex;
    gap: 16px;
}

/* Hero buttons sit on photography, so they get a darker drop shadow than
   the same buttons elsewhere on the page. Scoped to the hero on purpose. */
.serene .srn-hero-actions .srn-btn{
    box-shadow: 0 4px 14px rgba(43, 177, 164, 0.35),
                0 6px 22px rgba(0, 0, 0, 0.38);
}

.serene .srn-hero-actions .srn-btn--light{
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
}

/* Minimal white dots */
.serene .srn-hero .srn-hero-dots{
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    z-index: 4;
    display: flex;
    justify-content: center;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}

.serene .srn-hero .swiper-pagination-bullet{
    width: 10px;
    height: 10px;
    background-color: var(--srn-white);
    opacity: 0.5;
    margin: 0 6px;
    transition: opacity 0.3s;
    /* keeps the dots visible where a banner is light at the bottom */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.serene .srn-hero .swiper-pagination-bullet-active{
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Services (bento grid of cards)
   -------------------------------------------------------------------------- */

.serene .srn-services-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.serene .srn-service-card{
    background-color: var(--srn-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--srn-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s;
}

.serene .srn-service-card:hover{
    transform: translateY(-4px);
}

.serene .srn-service-media{
    height: 256px;
    overflow: hidden;
    position: relative;
}

.serene .srn-service-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.serene .srn-service-card:hover .srn-service-media img{
    transform: scale(1.05);
}

.serene .srn-service-body{
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.serene .srn-service-title{
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.serene .srn-icon-circle{
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 9999px;
    background-color: var(--srn-sage);
    color: var(--srn-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.serene .srn-service-body p{
    font-size: 18px;
    line-height: 1.6;
    color: var(--srn-muted);
    margin: 0 0 32px;
    flex-grow: 1;
}

.serene .srn-textlink{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--srn-teal);
    text-decoration: none;
    transition: color 0.3s, gap 0.3s;
}

.serene .srn-textlink:hover{
    color: var(--srn-teal-dark);
    gap: 10px;
}

.serene .srn-textlink i{
    font-size: 12px;
}

.serene .srn-services-cta{
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Impact section
   -------------------------------------------------------------------------- */

.serene .srn-impact{
    position: relative;
    overflow: hidden;
}

.serene .srn-impact::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at right center, rgb(43, 177, 164) 0%, transparent 40%);
    opacity: 0.05;
    pointer-events: none;
}

.serene .srn-impact .srn-container{
    position: relative;
    z-index: 1;
}

.serene .srn-impact-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.serene .srn-impact-stats{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.serene .srn-stat-card{
    background-color: var(--srn-white);
    border-radius: 12px;
    padding: 24px 32px;
    box-shadow: var(--srn-shadow);
    display: flex;
    align-items: center;
    gap: 24px;
}

.serene .srn-stat-card .srn-icon-circle{
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.serene .srn-stat-value{
    font-family: var(--srn-serif);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.2;
    color: var(--srn-teal);
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
}

.serene .srn-stat-label{
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--srn-charcoal);
}

.serene .srn-impact-media{
    position: relative;
    min-height: 320px;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--srn-shadow);
}

.serene .srn-impact-media img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.serene .srn-testimonials-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.serene .srn-testimonial{
    background-color: var(--srn-white);
    border-top: 4px solid var(--srn-teal);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--srn-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.serene .srn-testimonial .srn-quote-icon{
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 44px;
    color: var(--srn-surface-highest);
}

.serene .srn-testimonial-text{
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    color: var(--srn-muted);
    margin: 0 0 32px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    /* Keeps the 2x2 grid rows balanced when one review is very long */
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.serene .srn-testimonial-author{
    display: flex;
    align-items: center;
    gap: 16px;
}

.serene .srn-avatar{
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.serene .srn-avatar--initial{
    background-color: var(--srn-cream);
    color: var(--srn-teal);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.serene .srn-author-name{
    font-size: 16px;
    font-weight: 600;
    color: var(--srn-charcoal);
}

.serene .srn-author-meta{
    font-size: 12px;
    line-height: 1.4;
    color: var(--srn-outline);
}

/* --------------------------------------------------------------------------
   Let Us Help You (conversion)
   -------------------------------------------------------------------------- */

/* Jump targets sit clear of the sticky navbar, and the jump eases rather
   than snapping. */
.serene{
    scroll-behavior: smooth;
}

.serene [id]{
    scroll-margin-top: 96px;
}
.serene .srn-help{
    position: relative;
    padding: 56px 24px;
    overflow: hidden;
}

.serene .srn-help::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/footer.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.serene .srn-help::after{
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(249, 247, 242, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.serene .srn-help-card{
    position: relative;
    z-index: 1;
    max-width: 896px;
    margin: 0 auto;
    background-color: var(--srn-white);
    border-radius: 16px;
    box-shadow: var(--srn-shadow);
    padding: 48px;
}

.serene .srn-help-card .srn-section-head{
    margin-bottom: 40px;
}

.serene .srn-form-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.serene .srn-field{
    display: flex;
    flex-direction: column;
}

.serene .srn-field label{
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--srn-charcoal);
    margin-bottom: 8px;
}

.serene .srn-field input,
.serene .srn-field select,
.serene .srn-field textarea{
    width: 100%;
    background-color: var(--srn-cream);
    border: 1px solid rgba(122, 140, 122, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--srn-ink);
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: auto;
    -webkit-appearance: auto;
    resize: none;
}

.serene .srn-field input::placeholder,
.serene .srn-field textarea::placeholder{
    color: var(--srn-outline);
}

.serene .srn-field input:focus,
.serene .srn-field select:focus,
.serene .srn-field textarea:focus{
    outline: none;
    border-color: var(--srn-teal);
    box-shadow: 0 0 0 3px rgba(43, 177, 164, 0.25);
}

/* Required-field marker */
.serene .srn-req{
    color: var(--srn-coral);
    font-weight: 700;
}

/* Honeypot: kept out of sight and out of the tab order, not display:none,
   because some bots skip hidden fields. */
.serene .srn-hp{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Result message shown after submitting */
.serene .srn-form-status{
    display: none;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.serene .srn-form-status.is-success,
.serene .srn-form-status.is-error{
    display: block;
}

.serene .srn-form-status.is-success{
    background-color: rgba(43, 177, 164, 0.12);
    border: 1px solid rgba(43, 177, 164, 0.45);
    color: var(--srn-teal-dark);
}

.serene .srn-form-status.is-error{
    background-color: rgba(255, 117, 107, 0.12);
    border: 1px solid rgba(255, 117, 107, 0.5);
    color: #a3342c;
}

/* The submit control is a <button>, so give it the same footing as the
   anchor-based buttons elsewhere. */
.serene .srn-form-footer button.srn-btn{
    font-family: var(--srn-sans);
    border: none;
    cursor: pointer;
}

.serene .srn-form-footer button.srn-btn:disabled{
    opacity: 0.65;
    cursor: not-allowed;
}

.serene .srn-form-footer{
    text-align: center;
    padding-top: 16px;
}

.serene .srn-form-footer .srn-btn{
    width: 100%;
}

.serene .srn-fee-note{
    font-size: 12px;
    line-height: 1.4;
    color: var(--srn-outline);
    margin: 16px 0 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 768px){
    .serene .srn-form-grid--2col{
        grid-template-columns: 1fr 1fr;
    }

    .serene .srn-form-footer .srn-btn{
        width: auto;
    }

    .serene .srn-help-card{
        padding: 48px;
    }
}

@media (min-width: 768px){
    .serene .srn-testimonials-grid{
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px){
    .serene .srn-services-grid{
        grid-template-columns: 1fr 1fr;
    }

    .serene .srn-impact-grid{
        grid-template-columns: 4fr 8fr;
    }

    .serene .srn-impact-media{
        min-height: 500px;
    }
}

@media (max-width: 767px){
    .serene .srn-section{
        padding: 40px 20px;
    }

    .serene .srn-help{
        padding: 40px 20px;
    }

    .serene .srn-h2{
        font-size: 28px;
    }

    .serene .srn-hero{
        height: 50vh;
        min-height: 320px;
    }

    .serene .srn-hero-title{
        font-size: 30px;
        margin-bottom: 16px;
    }

    .serene .srn-hero-sub{
        display: none;
    }

    .serene .srn-hero .srn-hero-dots{
        bottom: 12px;
    }

    .serene .srn-hero .swiper-pagination-bullet{
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .serene .srn-help-card{
        padding: 32px 24px;
    }

    .serene .srn-stat-card{
        padding: 20px 24px;
    }

    .serene .srn-testimonial{
        padding: 32px 24px;
    }
}

/* --------------------------------------------------------------------------
   Upcoming Events carousel
   One event at a time: 1080-wide poster on the left, details on the right.
   -------------------------------------------------------------------------- */

.serene .srn-events{
    background: linear-gradient(180deg, var(--srn-cream), var(--srn-surface));
}

.serene .srn-ev{
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
}

.serene .srn-ev-track{
    position: relative;
}

.serene .srn-ev-slide{
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--srn-white);
    border: 1px solid rgba(188, 201, 198, .5);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--srn-shadow);
}

.serene .srn-ev-slide.is-active{
    display: grid;
    animation: srn-ev-fade .45s ease;
}

@keyframes srn-ev-fade{
    from{ opacity: 0; transform: translateY(6px); }
    to  { opacity: 1; transform: none; }
}

/* Posters are supplied at 1080px square; the frame keeps that ratio so
   nothing is cropped away. */
.serene .srn-ev-media{
    aspect-ratio: 1 / 1;
    background: var(--srn-sage);
    overflow: hidden;
}

.serene .srn-ev-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.serene .srn-ev-body{
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.serene .srn-ev-tag{
    align-self: flex-start;
    background: rgba(43, 177, 164, .12);
    color: var(--srn-teal-dark);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.serene .srn-ev-title{
    font-family: var(--srn-serif);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--srn-charcoal);
    margin-bottom: 16px;
}

.serene .srn-ev-meta{
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.serene .srn-ev-meta li{
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--srn-charcoal);
}

.serene .srn-ev-meta i{
    color: var(--srn-teal);
    font-size: 15px;
    width: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    text-align: center;
}

.serene .srn-ev-desc{
    font-size: 15px;
    line-height: 1.65;
    color: var(--srn-muted);
    margin-bottom: 20px;
    /* keep long write-ups from unbalancing the card */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.serene .srn-ev-cta{
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

/* --- arrows and dots --- */

.serene .srn-ev-nav{
    position: absolute;
    top: 28%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--srn-white);
    color: var(--srn-charcoal);
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(45, 49, 49, .18);
    transition: background-color .25s, color .25s;
    z-index: 3;
}

.serene .srn-ev-nav:hover{
    background: var(--srn-teal);
    color: #fff;
}

.serene .srn-ev-prev{ left: -14px; }
.serene .srn-ev-next{ right: -14px; }

.serene .srn-ev-dots{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.serene .srn-ev-dot{
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--srn-outline);
    opacity: .5;
    cursor: pointer;
    transition: opacity .25s, background-color .25s, width .25s;
}

.serene .srn-ev-dot.is-active{
    opacity: 1;
    width: 26px;
    border-radius: 999px;
    background: var(--srn-teal);
}

@media (min-width: 768px){
    .serene .srn-ev-slide.is-active{
        grid-template-columns: 1fr 1fr;
    }

    .serene .srn-ev-body{ padding: 36px 34px; }
    .serene .srn-ev-title{ font-size: 27px; }
    .serene .srn-ev-nav{ top: 50%; }
    .serene .srn-ev-prev{ left: -21px; }
    .serene .srn-ev-next{ right: -21px; }
}

/* --- Events: tab switcher (Upcoming / Past) ----------------------------- */

.serene .srn-ev-tabs{
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    margin: 0 auto 28px;
    background: var(--srn-white);
    border: 1px solid rgba(188, 201, 198, .55);
    border-radius: 999px;
    box-shadow: var(--srn-shadow);
}

/* the switcher sits centred under the section heading */
.serene .srn-events .srn-container{
    text-align: center;
}

.serene .srn-events .srn-ev,
.serene .srn-events .srn-section-head{
    text-align: left;
}

.serene .srn-events .srn-section-head{
    text-align: center;
}

.serene .srn-ev-tab{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 11px 22px;
    font-family: var(--srn-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--srn-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .25s, color .25s;
}

.serene .srn-ev-tab:hover{ color: var(--srn-teal-dark); }

.serene .srn-ev-tab.is-active{
    background: var(--srn-teal);
    color: #fff;
}

.serene .srn-ev-count{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(45, 49, 49, .1);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
}

.serene .srn-ev-tab.is-active .srn-ev-count{
    background: rgba(255, 255, 255, .28);
    color: #fff;
}

/* --- panels --- */

.serene .srn-ev-panel{ display: none; }
.serene .srn-ev-panel.is-active{ display: block; }

.serene .srn-ev-empty{
    font-size: 15px;
    color: var(--srn-muted);
    padding: 36px 20px;
    text-align: center;
}

/* --- "Past event" ribbon on the poster --- */

.serene .srn-ev-media{ position: relative; }

.serene .srn-ev-past{
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(45, 49, 49, .82);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}

@media (max-width: 520px){
    .serene .srn-ev-tabs{ display: flex; width: 100%; }
    .serene .srn-ev-tab{ flex: 1; justify-content: center; padding: 11px 12px; font-size: 14px; }
}

/* --- Events: type scale -------------------------------------------------
   The card carries the detail people actually came for (date, venue,
   speaker), so it reads a step larger than the default card text.
   Scoped to .srn-events so other sections keep their own sizes.
   ------------------------------------------------------------------------ */

.serene .srn-events .srn-sub{
    font-size: 17.5px;
    line-height: 1.65;
}

.serene .srn-events .srn-eyebrow{
    font-size: 14.5px;
}

.serene .srn-ev-tag{
    font-size: 12.5px;
    padding: 6px 15px;
}

.serene .srn-ev-title{
    font-size: 26px;
    line-height: 1.28;
    margin-bottom: 18px;
}

.serene .srn-ev-meta{
    gap: 12px;
    margin-bottom: 18px;
}

.serene .srn-ev-meta li{
    font-size: 16.5px;
    line-height: 1.5;
}

.serene .srn-ev-meta i{
    font-size: 16px;
    width: 20px;
    flex: 0 0 20px;
}

.serene .srn-ev-desc{
    font-size: 16.5px;
    line-height: 1.7;
}

.serene .srn-ev-tab{
    font-size: 15.5px;
}

@media (min-width: 768px){
    .serene .srn-ev-title{ font-size: 30px; }
    .serene .srn-ev-meta li{ font-size: 17px; }
    .serene .srn-ev-desc{ font-size: 17px; }
    .serene .srn-events .srn-sub{ font-size: 18px; }
}

/* --- Events: roomier container and card --------------------------------- */

/* The events band runs wider than the standard 1200px reading column, and
   the card fills it instead of being capped at 1040px. */
.serene .srn-events .srn-container{
    max-width: 1320px;
}

.serene .srn-ev{
    max-width: 100%;
}

.serene .srn-ev-body{
    padding: 30px 26px;
}

@media (min-width: 768px){
    /* Poster is capped so the extra width goes to the details rather than
       making a very tall square image. */
    .serene .srn-ev-slide.is-active{
        grid-template-columns: minmax(0, 500px) 1fr;
    }

    .serene .srn-ev-body{
        padding: 44px 46px;
    }

    .serene .srn-ev-prev{ left: -24px; }
    .serene .srn-ev-next{ right: -24px; }
}

@media (min-width: 1400px){
    .serene .srn-ev-body{ padding: 48px 54px; }
}

/* --- Events: 50/50 split, poster inset in its half ---------------------- */

.serene .srn-ev-media{
    /* height now follows the inset poster rather than the panel itself */
    aspect-ratio: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--srn-cream);
}

.serene .srn-ev-media img{
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(45, 49, 49, .12);
}

/* keep the ribbon on the poster, not floating in the padding */
.serene .srn-ev-past{
    top: 32px;
    left: 32px;
}

@media (min-width: 768px){
    .serene .srn-ev-slide.is-active{
        grid-template-columns: 1fr 1fr;
    }

    .serene .srn-ev-media{ padding: 28px; }
    .serene .srn-ev-past{ top: 42px; left: 42px; }
}

@media (min-width: 1400px){
    .serene .srn-ev-media{ padding: 34px; }
    .serene .srn-ev-past{ top: 48px; left: 48px; }
}

/* --- Events: give the poster real presence ------------------------------
   Four stacked shadows rather than one. A single large blur reads as grey
   haze; layering a tight contact shadow under progressively softer, wider
   ones is how a real object sits on a surface, and it is what makes the
   poster look liftable rather than printed on.
   ------------------------------------------------------------------------ */

.serene .srn-ev-media img{
    box-shadow:
        0 1px 2px rgba(45, 49, 49, .10),
        0 4px 8px rgba(45, 49, 49, .08),
        0 12px 24px rgba(45, 49, 49, .10),
        0 28px 56px rgba(45, 49, 49, .14);
    transform: translateY(0) scale(1);
    transition: transform .45s cubic-bezier(.2, .7, .3, 1),
                box-shadow .45s cubic-bezier(.2, .7, .3, 1);
    will-change: transform;
}

/* Lift towards the reader on hover. The carousel already pauses on hover,
   so the movement never fights an auto-advance. */
.serene .srn-ev-slide:hover .srn-ev-media img{
    transform: translateY(-8px) scale(1.015);
    box-shadow:
        0 2px 4px rgba(45, 49, 49, .10),
        0 8px 16px rgba(45, 49, 49, .10),
        0 22px 44px rgba(45, 49, 49, .14),
        0 44px 88px rgba(43, 177, 164, .18);
}

/* A soft teal pool beneath the poster, so the panel does not read as flat
   cream. Sits behind the image, never over it. */
.serene .srn-ev-media{
    position: relative;
    isolation: isolate;
}

.serene .srn-ev-media::after{
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 10px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
                rgba(43, 177, 164, .28) 0%,
                rgba(43, 177, 164, 0) 70%);
    filter: blur(12px);
    z-index: -1;
    opacity: .85;
    transition: opacity .45s ease, transform .45s ease;
}

.serene .srn-ev-slide:hover .srn-ev-media::after{
    opacity: 1;
    transform: translateY(6px) scaleX(1.06);
}

@media (prefers-reduced-motion: reduce){
    .serene .srn-ev-media img,
    .serene .srn-ev-media::after{
        transition: none;
    }
    .serene .srn-ev-slide:hover .srn-ev-media img{
        transform: none;
    }
}
