/*
  cards.css — Shared card / component patterns
  Extracted from style.css (v5.0.0)
  Covers: life-event rows, info-card, leader-block, dates-card,
          sidebar-cta, serve-block, OTS cards, scripture-strip,
          invite-form, bio-modal, and their responsive rules.
*/

/* ============================================================
   LIFE-EVENT ALTERNATING TWO-COLUMN LAYOUT
   ============================================================ */
.le-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(52,88,124,.08);
}
.le-row:last-child { border-bottom: none; padding-bottom: 0; }
.le-row--flip { direction: rtl; }
.le-row--flip > * { direction: ltr; }
.le-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.le-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.le-body h2 { font-family: var(--ft); font-size: clamp(1.8rem,3.5vw,2.8rem); text-transform: uppercase; letter-spacing: .5px; color: var(--pb); margin-bottom: 6px; }
.le-body .le-sub { font-family: var(--fs); font-size: 1.1rem; color: var(--py); display: block; margin-bottom: 16px; }
.le-body .le-blurb { font-family: var(--fb); font-size: .92rem; color: #444; line-height: 1.78; }
.le-body .le-blurb p { margin-bottom: 12px; }
.le-body .le-embed { margin-top: 20px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

/* ============================================================
   INFO CARD (sidebar variant — border-top accent)
   ============================================================ */
.info-card { background: var(--wh); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); border-top: 4px solid var(--py); }
.info-card-head { background: var(--pb); padding: 18px 22px; }
.info-card-head h3 { font-family: var(--ft); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .5px; color: var(--wh); }
.info-rows { padding: 4px 0; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 22px; border-bottom: 1px solid rgba(52,88,124,.07); }
.info-row:last-child { border-bottom: none; }
.info-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.info-row-text { flex: 1; }
.info-label { font-family: var(--fb); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sb); margin-bottom: 3px; }
.info-value { font-family: var(--fb); font-size: .88rem; color: var(--ch); line-height: 1.5; }
.info-value strong { color: var(--pb); font-weight: 700; }

/* Info card (ic- variant) */
.ic-head { background: var(--db); padding: 14px 22px; }
.ic-head h3 { font-family: var(--ft); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .5px; color: var(--py); }
.ic-body { padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.ic-item { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid rgba(52,88,124,.07); }
.ic-item:last-child { border-bottom: none; padding-bottom: 0; }
.ic-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; margin-top: 6px; }
.ic-text { font-family: var(--fb); font-size: .83rem; color: #444; line-height: 1.6; }
.ic-text strong { color: var(--pb); }

/* ============================================================
   LEADER BLOCK
   ============================================================ */
.leader-block { background: var(--wh); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); }
.leader-header { background: var(--pb); padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; }
.leader-header h3 { font-family: var(--ft); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .5px; color: var(--wh); }
.leader-profile-row { display: flex; gap: 20px; align-items: center; padding: 24px 28px; }
.leader-avatar-wrap { position: relative; flex-shrink: 0; }
.leader-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--py); display: block; }
.leader-avatar-ph { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg,var(--pb),var(--sb)); display: flex; align-items: center; justify-content: center; font-family: var(--ft); font-size: 2rem; color: var(--wh); border: 3px solid var(--py); flex-shrink: 0; }
.leader-details h4 { font-family: var(--ft); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .5px; color: var(--pb); line-height: 1; }
.leader-role { font-family: var(--fs); font-size: .95rem; color: var(--py); display: block; margin-top: 3px; }
.leader-email { font-family: var(--fb); font-size: .8rem; color: var(--sb); display: block; margin-top: 6px; text-decoration: none; }
.leader-email:hover { color: var(--pb); }
.leader-bio-preview { padding: 0 28px 24px; font-family: var(--fb); font-size: .86rem; color: #555; line-height: 1.7; border-top: 1px solid rgba(52,88,124,.08); padding-top: 16px; }
.leader-bio-preview p { margin: 0; }
.leader-footer { padding: 0 28px 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.leader-bio { padding: 0 22px 22px; font-family: var(--fb); font-size: .82rem; color: #555; line-height: 1.65; border-top: 1px solid rgba(52,88,124,.08); padding-top: 14px; }

/* ============================================================
   DATES CARD (sidebar)
   ============================================================ */
.dates-card { background: var(--wh); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); }
.dates-head { background: var(--db); padding: 16px 22px; }
.dates-head h3 { font-family: var(--ft); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .5px; color: var(--py); }
.date-item { display: flex; gap: 14px; align-items: center; padding: 14px 22px; border-bottom: 1px solid rgba(52,88,124,.07); }
.date-item:last-child { border-bottom: none; }
.date-badge { background: var(--pb); color: var(--wh); border-radius: 8px; padding: 6px 10px; text-align: center; min-width: 46px; flex-shrink: 0; }
.date-badge .dd { font-family: var(--ft); font-size: 1.5rem; color: var(--py); line-height: 1; letter-spacing: 1px; }
.date-badge .mm { font-family: var(--fb); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 1px; }
.date-text { font-family: var(--fb); font-size: .82rem; color: var(--ch); line-height: 1.4; }
.date-text strong { color: var(--pb); font-size: .78rem; }

/* Dates card (v4 variant — slightly different padding) */
.date-dd { font-family: var(--ft); font-size: 1.5rem; color: var(--py); line-height: 1; letter-spacing: 1px; }
.date-mm { font-family: var(--fb); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 1px; }

/* ============================================================
   SIDEBAR CTA
   ============================================================ */
.sidebar-cta { background: var(--py); border-radius: 14px; padding: 24px; text-align: center; }
.sidebar-cta h3 { font-family: var(--ft); font-size: 1.5rem; text-transform: uppercase; color: var(--db); margin-bottom: 8px; }
.sidebar-cta p  { font-family: var(--fb); font-size: .82rem; color: rgba(30,58,82,.75); margin-bottom: 16px; line-height: 1.6; }

/* ============================================================
   SERVE HERE BLOCK (v4.0.0)
   ============================================================ */
.serve-block { background: var(--wh); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); }
.serve-header { background: var(--db); padding: 18px 28px; display: flex; align-items: center; gap: 14px; }
.serve-header h2, .serve-header h3 { font-family: var(--ft); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .5px; color: var(--py); line-height: 1; }
.serve-header .sh-sub { font-family: var(--fs); font-size: .9rem; color: rgba(255,255,255,.55); display: block; margin-top: 2px; }
.serve-intro { padding: 20px 28px 16px; font-family: var(--fb); font-size: .86rem; color: #555; line-height: 1.75; border-bottom: 1px solid rgba(52,88,124,.08); }
.ots-list { display: flex; flex-direction: column; gap: 0; }
.ots-item { padding: 18px 28px; border-bottom: 1px solid rgba(52,88,124,.06); display: flex; flex-direction: column; gap: 10px; }
.ots-item:last-child { border-bottom: none; }
.ots-item-head { display: flex; align-items: flex-start; gap: 12px; }
.ots-icon { width: 38px; height: 38px; border-radius: 8px; background: rgba(52,88,124,.08); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.ots-title-wrap { flex: 1; min-width: 0; }
.ots-title { font-family: var(--ft); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .4px; color: var(--pb); line-height: 1; }
.ots-when { font-family: var(--fb); font-size: .76rem; color: var(--sb); margin-top: 3px; }
.ots-desc { font-family: var(--fb); font-size: .83rem; color: #444; line-height: 1.7; }
.ots-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ots-tag { font-family: var(--fb); font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; }
.ots-tag.dbs { background: rgba(26,122,110,.08); color: var(--teal); border: 1px solid rgba(26,122,110,.2); }
.ots-tag.open { background: rgba(29,160,70,.07); color: #1a7a3a; border: 1px solid rgba(29,160,70,.18); }
.ots-tag.closing { background: rgba(228,191,69,.1); color: #8a6000; border: 1px solid rgba(228,191,69,.25); }
.ots-tag.closed { background: rgba(180,0,0,.07); color: #a00; border: 1px solid rgba(180,0,0,.18); }
.ots-footer { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── OTS dot pagination ────────────────────────────────────── */
.ots-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0; }
.ots-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--pb); background: transparent; padding: 0; cursor: pointer; transition: background .25s, transform .25s; }
.ots-dot.active { background: var(--pb); transform: scale(1.2); }
.ots-dot:hover { background: var(--sb); }

.serve-cta { padding: 18px 28px; background: var(--cr); border-top: 1px solid rgba(52,88,124,.08); text-align: center; }
.serve-cta p { font-family: var(--fb); font-size: .8rem; color: var(--sb); margin-bottom: 10px; }

/* ============================================================
   OTS CARDS (archive grid)
   ============================================================ */
.ots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; max-width: 1320px; margin: 0 auto; }
.ots-card { background: var(--wh); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); display: flex; flex-direction: column; border-top: 4px solid var(--pb); transition: all .3s ease; }
.ots-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.ots-card__img  { width: 100%; height: 180px; object-fit: cover; }
.ots-card__body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.ots-card__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ots-badge { font-family: var(--fb); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; }
.ots-badge--closed { background: rgba(200,50,50,.1); color: #c23232; }
.ots-badge--open   { background: rgba(26,122,110,.1); color: #1a7a6e; }
.ots-badge--dbs    { background: rgba(228,191,69,.2);  color: var(--db); }
.ots-card__title { font-family: var(--ft); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .5px; color: var(--pb); margin-bottom: 6px; }
.ots-card__when  { font-family: var(--fb); font-size: .78rem; color: var(--sb); font-weight: 700; margin-bottom: 10px; }
.ots-card__desc  { font-family: var(--fb); font-size: .84rem; color: #555; line-height: 1.65; flex: 1; margin-bottom: 16px; }
.ots-card__cta   { font-family: var(--fb); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pb); text-decoration: none; border-bottom: 1.5px solid var(--py); padding-bottom: 2px; align-self: flex-start; transition: color .2s; }
.ots-card__cta:hover { color: var(--db); }

/* ============================================================
   SCRIPTURE STRIP
   ============================================================ */
.scripture-strip { background: var(--db); padding: 48px; text-align: center; }
.scripture-strip blockquote { max-width: 740px; margin: 0 auto; }
.scripture-strip blockquote p { font-family: var(--fs); font-size: clamp(1.1rem,2.5vw,1.6rem); color: var(--wh); line-height: 1.7; }
.scripture-strip cite { display: block; margin-top: 12px; font-family: var(--fb); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--py); font-style: normal; }

/* ============================================================
   INVITE FORM (v4.0.0)
   ============================================================ */
.invite-form { background: var(--cr); border-radius: 12px; padding: 18px; margin-top: 14px; }
.invite-form h5 { font-family: var(--ft); font-size: 1.05rem; text-transform: uppercase; color: var(--pb); margin-bottom: 12px; }
.form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.form-row input, .form-row textarea { flex: 1; padding: 9px 14px; border-radius: 8px; border: 1.5px solid rgba(52,88,124,.2); font-family: var(--fb); font-size: .82rem; color: var(--ch); background: var(--wh); outline: none; transition: border-color .2s; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--pb); }
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(42,42,42,.4); }
.form-row textarea { resize: none; }
.invite-note { font-family: var(--fb); font-size: .72rem; color: #888; margin-top: 8px; line-height: 1.55; }

/* ============================================================
   BIO MODAL (v4.0.0)
   ============================================================ */
.bio-modal-profile { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(52,88,124,.1); }
.bio-avatar-lg { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg,var(--pb),var(--sb)); display: flex; align-items: center; justify-content: center; font-family: var(--ft); font-size: 2.5rem; color: var(--wh); border: 4px solid var(--py); flex-shrink: 0; }
.bio-avatar-lg img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bio-name h2 { font-family: var(--ft); font-size: 2rem; text-transform: uppercase; letter-spacing: .5px; color: var(--pb); line-height: 1; }
.bio-name .ksh { font-family: var(--fs); font-size: 1rem; color: var(--py); }
.bio-name .email { font-family: var(--fb); font-size: .82rem; color: var(--sb); display: block; margin-top: 8px; text-decoration: none; }
.bio-name .email:hover { color: var(--pb); }
.bio-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.bio-pill { display: inline-block; font-family: var(--fb); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--cr); color: var(--pb); padding: 5px 14px; border-radius: 100px; border: 1.5px solid rgba(52,88,124,.15); }
.bio-text { font-family: var(--fb); font-size: .9rem; color: #444; line-height: 1.8; }
.bio-text p { margin-bottom: 14px; }
.bio-text p:last-child { margin: 0; }

/* ============================================================
   RESPONSIVE — SHARED CARDS
   ============================================================ */

/* -- <= 1100px ------------------------------------------------ */
@media (max-width: 1100px) {
  .scripture-strip { padding: 40px 28px; }
}

/* -- <= 1024px (tablet landscape) ----------------------------- */
@media (max-width: 1024px) {
  .le-row { grid-template-columns: 1fr; direction: ltr; }
  .le-row--flip { direction: ltr; }
  .le-img { max-width: 520px; }
}

/* -- <= 768px (tablet portrait) ------------------------------- */
@media (max-width: 768px) {
  /* Sidebar cards */
  .info-card, .leader-block, .dates-card, .sidebar-cta { border-radius: 10px; }

  /* Life events */
  .le-row { gap: 28px; padding-bottom: 40px; }
  .le-img { max-width: 100%; }

  /* Serve / leader */
  .leader-profile-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .leader-footer { flex-wrap: wrap; gap: 8px; }
  .serve-header, .serve-intro, .ots-item, .serve-cta { padding-left: 18px; padding-right: 18px; }

  /* Bio modal */
  .bio-modal-profile { flex-direction: column; align-items: center; text-align: center; }

  /* Invite form */
  .form-row { flex-direction: column; }
}

/* -- <= 640px ------------------------------------------------- */
@media (max-width: 640px) {
  .scripture-strip { padding: 36px 20px; }
}

/* -- <= 480px (phone portrait) -------------------------------- */
@media (max-width: 480px) {
  .le-row { gap: 20px; padding-bottom: 32px; }
  .scripture-strip { padding: 32px 16px; }
  .scripture-strip blockquote p { font-size: 1rem; }
  .ots-grid { grid-template-columns: 1fr; }
  .ots-card__badges { flex-wrap: wrap; }
  .serve-header, .serve-intro, .ots-item, .serve-cta { padding-left: 14px; padding-right: 14px; }
  .ots-icon { width: 32px; height: 32px; font-size: .95rem; }
  .leader-avatar-ph, .leader-avatar { width: 64px; height: 64px; }
}

/* -- <= 900px (giving sidebar) -------------------------------- */
@media (max-width: 900px) {
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .standing-card { grid-column: span 2; }
}

/* ============================================================
   Activity card (cove_render_activity_card) — v8.35.0
   ------------------------------------------------------------
   Rich BEM card used by the "Happening alongside" grid on single
   activity pages (e.g. Cove Kids / Cove Youth on The 10:30am).
   The homepage carousel uses its own .slide markup styled in
   homepage.css, which doesn't load off-homepage — so these
   .activity-card__* classes had NO styling there and the tiles
   rendered broken. Styled here in the global cards.css so they
   render wherever the helper is used. (Hover lift is handled by
   components/page-transitions.css.)
   ============================================================ */
.alongside-grid .slide { display: block; height: 100%; }
.alongside-grid .activity-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--wh);
    border: 1px solid rgba(52, 88, 124, .1);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--sh-sm);
}
.alongside-grid .activity-card__img-wrap { position: relative; aspect-ratio: 16 / 10; background: var(--cr); overflow: hidden; }
.alongside-grid .activity-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alongside-grid .activity-card__type-badge {
    position: absolute; top: 10px; left: 10px;
    font-family: var(--fb); font-size: .6rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--pb); background: rgba(255, 255, 255, .92);
    padding: 4px 9px; border-radius: 100px;
}
.alongside-grid .activity-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px 18px 18px; }
.alongside-grid .activity-card__name { font-family: var(--ft); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .4px; color: var(--pb); line-height: 1; }
.alongside-grid .activity-card__frequency { font-family: var(--fb); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sb); }
.alongside-grid .activity-card__time { font-family: var(--fb); font-size: .8rem; color: var(--ch); }
.alongside-grid .activity-card__location { font-family: var(--fb); font-size: .78rem; color: var(--sb); }
.alongside-grid .activity-card__blurb { font-family: var(--fb); font-size: .82rem; color: #555; line-height: 1.6; margin-top: 4px; }
