/* Lions Club additions to the HopeRise theme (kept separate so style.css stays untouched). */

/* ---- Souvenir list ---- */
.lc-souvenir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.lc-souvenir-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.lc-souvenir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lc-souvenir-cover {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--primary-soft), var(--green-soft)); color: var(--primary);
}
.lc-souvenir-cover > .icon { font-size: 4.5rem; width: 4.5rem; height: 4.5rem; }
.lc-souvenir-year {
  position: absolute; left: 16px; bottom: 16px; background: var(--secondary); color: #fff;
  font-weight: 800; padding: 6px 14px; border-radius: var(--radius-pill); font-size: .9rem;
}
.lc-souvenir-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lc-souvenir-body h3 { font-size: 1.2rem; margin: 0; }
.lc-souvenir-body h3 a { color: var(--ink); }
.lc-souvenir-body h3 a:hover { color: var(--primary); }
.lc-souvenir-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.lc-souvenir-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }
.lc-souvenir-actions .btn, .lc-viewer-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.lc-souvenir-actions { display: grid; grid-template-columns: 1fr 1fr; }
.lc-souvenir-actions .btn { padding: 10px 12px; justify-content: center; }

.lc-empty { text-align: center; max-width: 520px; margin: 0 auto; padding: 40px 0; }
.lc-empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 2rem; margin-bottom: 16px; }

/* ---- Souvenir viewer ---- */
.lc-viewer-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px;
}
.lc-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.lc-back:hover { color: var(--primary); }
.lc-viewer-file { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.lc-viewer-file > .icon { font-size: 2rem; color: var(--primary); flex-shrink: 0; }
.lc-viewer-file strong { display: block; color: var(--ink); line-height: 1.3; }
.lc-viewer-file small { color: var(--muted); }
.lc-viewer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lc-viewer {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--sand); height: 85vh; min-height: 520px;
}
.lc-viewer object { width: 100%; height: 100%; display: block; border: 0; }
.lc-viewer-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 32px; }
.lc-viewer-fallback > .icon { font-size: 3.5rem; color: var(--primary); }
.lc-viewer-fallback h2 { font-size: 1.3rem; margin: 0; }
.lc-viewer-fallback p { max-width: 420px; margin: 0 0 8px; }

.lc-others { margin-top: 48px; }
.lc-others ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lc-others li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface); }
.lc-others li > a:first-child { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.lc-others li > a:first-child span { margin-left: auto; white-space: nowrap; color: var(--muted); font-weight: 500; font-size: .85rem; }
.lc-others li > a:first-child:hover { color: var(--primary); }
.lc-others .icon { color: var(--primary); }
.lc-mini-download { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.lc-mini-download:hover { background: var(--primary); color: #fff; }
.lc-mini-download:hover .icon { color: #fff; }

@media (max-width: 640px) {
  .lc-viewer { height: 70vh; min-height: 420px; }
  .lc-viewer-actions { width: 100%; }
  .lc-viewer-actions .btn { flex: 1; justify-content: center; }
}

/* Header: keep the logo on one line now that the menu has an extra item */
/* CORRECTION (review 12-Oct-2026): "nowrap" on phones pushed the menu button off-screen (page scrolled sideways at 390px,
   worse with the full name "Lions Club Mohali Supreme (Regd.)"). Old rule kept, commented:
.header .logo, .offcanvas .logo { white-space: nowrap; }
   New: nowrap only from 576px up; on phones the name may wrap to two lines at a smaller size. */
@media (min-width: 576px) { .header .logo, .offcanvas .logo { white-space: nowrap; } }
@media (max-width: 575.98px) {
  .header .container { gap: 12px; }
  .header .logo, .offcanvas .logo { white-space: normal; font-size: 1.05rem; line-height: 1.15; min-width: 0; flex: 1 1 auto; }
  .header .logo .logo-mark, .offcanvas .logo .logo-mark { flex-shrink: 0; }
  .header .logo-img img { max-width: 100%; height: auto; }
  .header .header-actions { flex-shrink: 0; gap: 8px; }
  .offcanvas-head { gap: 12px; }
  .offcanvas-head .offcanvas-close { flex-shrink: 0; }
}
@media (min-width: 1200px) {
  .header .nav > ul { gap: 0; }
  .header .nav > ul > li > a { padding-left: 7px; padding-right: 7px; font-size: .92rem; }
  .header .nav > ul > li > a::after { left: 7px; right: 7px; }
  .header .header-actions { gap: 8px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .header .nav > ul > li > a { padding-left: 5px; padding-right: 5px; font-size: .86rem; }
  .header .nav > ul > li > a::after { left: 5px; right: 5px; }
  .header .header-actions { gap: 5px; }
  .header .logo { font-size: 1.35rem; }
}
@media (max-width: 640px) {
  .lc-viewer-bar { flex-direction: column; align-items: stretch; }
  .lc-viewer-actions { flex-direction: column; }
}

/* ---- Activities ---- */
.lc-activity-grid .post-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.lc-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lc-activity { max-width: 1000px; }
.lc-activity .lc-back { margin-bottom: 24px; }
.lc-activity-body { font-size: 1.05rem; line-height: 1.75; }
.lc-activity-lead { font-size: 1.2rem; color: var(--ink); font-weight: 600; }
.lc-activity-body p { white-space: pre-line; }
.lc-activity-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.lc-gallery-title { font-size: 1.5rem; margin: 48px 0 18px; display: flex; align-items: baseline; gap: 12px; }
.lc-gallery-title span { font-size: .95rem; color: var(--muted); font-weight: 500; }
.lc-gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.lc-more-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); color: var(--ink); transition: transform .3s, box-shadow .3s; }
.lc-more-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.lc-more-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lc-more-card span { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.lc-more-card small { color: var(--muted); }

.lc-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 12, 20, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lc-lightbox[hidden] { display: none; }
.lc-lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lc-lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 10px; object-fit: contain; }
.lc-lightbox figcaption { color: #cfd6e4; font-size: .9rem; }
.lc-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lc-lightbox button:hover { background: var(--primary); }
.lc-lb-close { top: 18px; right: 18px; }
.lc-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lc-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lc-lb-prev, .lc-lb-next { top: auto; bottom: 18px; transform: none; } }

/* The header now has more menu items (Activities, Souvenir); the phone number is already in the top bar,
   so the "Need help? Call us" block is hidden to keep the header on one line at every width. */
.header .header-call { display: none !important; }

/* ---- Home banner (Admin → Home banner): show the uploaded photo in its real colours ----
   The template re-tints hero photos with the brand colours (mix-blend-mode: color), lays a dark
   overlay over them and floats coloured blobs on top. For admin-uploaded banners we keep the photo
   as it is and use only a light shade behind the text on the left so it stays readable. */
.hero-slide-photo .hero-bg::after { display: none !important; }
.hero-slide-photo::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .32) 38%, rgba(0, 0, 0, 0) 68%) !important;
}
.hero-photos .hero-blob { display: none; }
.hero-slide-photo .hero-content h1,
.hero-slide-photo .hero-content p { text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
@media (max-width: 991px) {
  .hero-slide-photo::after { background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .55) 100%) !important; }
}

/* Admin banners: the photo fills the whole banner, behind the see-through header (template style),
   without the template's slow zoom so the edges of the picture are not cut off. */
.hero-slide-photo .hero-bg { transform: none !important; background-position: center; }

/* Home slider (3 admin-selected images): slow, smooth cross-fade between slides */
.hero-photos .hero-slide { transition: opacity 1.4s ease-in-out, visibility 1.4s; }
.hero-photos .hero-slide.active .hero-content > * { transition-duration: 1s; }

/* Site logo uploaded in Admin → Logos */
.logo.logo-img { display: inline-flex; align-items: center; }
.logo.logo-img img { display: block; height: 58px; width: auto; max-width: 260px; object-fit: contain; }
.header.scrolled .logo.logo-img img, .header.stuck .logo.logo-img img { height: 48px; }
.offcanvas .logo.logo-img img { height: 46px; }
.footer .logo.logo-img img { height: 64px; max-width: 280px; }
@media (max-width: 991px) { .logo.logo-img img { height: 46px; max-width: 200px; } }

/* Contact page */
.contact-form-box .field .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-alert { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-weight: 500; }
.contact-alert.ok { background: color-mix(in srgb, #16a34a 12%, transparent); color: #166534; }
.contact-alert.err { background: color-mix(in srgb, #dc2626 10%, transparent); color: #991b1b; }
/* Over a dark page top (home banner photos) the see-through header gets a soft light backing so a dark logo stays readable. */
html[data-header="overlay"]:not(.light-top) .header:not(.stuck) .logo.logo-img { background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 4px 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }

/* Only when a see-through header sits over the photo: darker top so the menu stays readable. */
html:is([data-header="overlay"], [data-header="floating"]) .hero-slide-photo::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 26%),
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .32) 38%, rgba(0, 0, 0, 0) 68%) !important;
}

/* White "Classic" header (default): solid white bar with dark menu text; the home banner starts below it. */
html[data-header="classic"] .header { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-header="classic"] .topbar { background: var(--surface); }

/* ---- Governing body ---- */
.lc-gb-year { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; color: var(--muted); }
.lc-gb-year select {
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 36px 8px 16px; font: inherit;
  color: var(--ink); background: var(--surface); cursor: pointer;
}
.lc-gb-empty { text-align: center; color: var(--muted); font-size: 1.05rem; padding: 24px 0 8px; }
.lc-gb-lead { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin-bottom: 56px; }
.lc-gb-lead .lc-gb-card { width: min(100%, 320px); }
.lc-gb-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.lc-gb-grid .lc-gb-card { width: min(100%, 250px); }
.lc-gb-media { aspect-ratio: 1 / 1; margin-bottom: 18px; background: linear-gradient(135deg, var(--primary-soft), var(--green-soft)); }
.lc-gb-initials { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3.2rem; font-weight: 800; color: var(--primary); letter-spacing: .04em; }
.team-card.lc-gb-card span.lc-gb-post {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 6px;
}
.lc-gb-card h4 { margin-bottom: 4px; }
.lc-gb-profession { margin: 0; color: var(--body); font-size: .95rem; }
.lc-gb-meta { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.lc-gb-bio { margin: 10px 0 0; font-size: .9rem; color: var(--body); }
.lc-gb-contact { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 12px; font-size: .9rem; }
.lc-gb-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); word-break: break-all; }
.lc-gb-contact a:hover { color: var(--primary); }
.lc-gb-lead .lc-gb-card h4 { font-size: 1.4rem; }


/* ---- About page (simple, text only) ---- */
.lc-about-head { background: var(--cream); padding: 72px 0 52px; }
.lc-about-head .breadcrumb { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .85rem; font-weight: 600; }
.lc-about-head .breadcrumb .current { color: var(--primary); }
.lc-about-head h1 { margin: 18px 0 8px; }
.lc-about-sub { color: var(--muted); margin: 0; }
.lc-about { padding-top: 56px; }
.lc-about-body { max-width: 820px; }
.lc-about-body p { font-size: 1.08rem; line-height: 1.85; color: var(--body); margin: 0 0 18px; }
.lc-about-body .tagline { margin-bottom: 18px; }
.lc-about-sign { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.lc-about-sign strong { display: block; color: var(--ink); font-size: 1.05rem; }
.lc-about-sign span { color: var(--muted); font-size: .92rem; }


/* ---- Footer credit ---- */
.lc-credit a { color: var(--accent); font-weight: 600; }
.lc-credit a:hover { text-decoration: underline; }

/* ---- UPI payments (/donate, /pay, /order-status) ---- */
.lc-pay { padding-top: 48px; }
.lc-pay-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lc-pay-card, .lc-pay-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.lc-pay-side { background: var(--cream); }
.lc-pay-narrow { max-width: 720px; }
.lc-pay-title { font-size: 1.3rem; margin-bottom: 16px; }
.lc-pay-side h3 { font-size: 1.15rem; margin-bottom: 14px; }
.lc-pay-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--body); }
.lc-pay-note, .lc-pay-hint { color: var(--muted); font-size: .92rem; margin-top: 14px; }
.lc-pay-errors { background: #FDECEC; color: #9B1C1C; border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: .92rem; margin-bottom: 16px; }
.lc-pay-errors:empty { display: none; }
.lc-pay-errors ul { margin: 0; padding-left: 18px; }
.lc-field-err { display: block; color: #D93B3B; font-size: .82rem; margin-top: 6px; font-weight: 600; }
.lc-field-err:empty { display: none; }
.lc-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.lc-amounts button { flex: 1 1 90px; }
.lc-amount-input { position: relative; }
.lc-amount-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink); }
.lc-amount-input input { padding-left: 34px !important; font-weight: 700; }
.lc-pay-amount { text-align: center; background: var(--cream); border-radius: 16px; padding: 18px; margin-bottom: 20px; }
.lc-pay-amount small { display: block; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.lc-pay-amount strong { display: block; font-size: 2.4rem; line-height: 1.15; color: var(--ink); font-family: var(--ff-head); }
.lc-pay-exact { display: inline-block; margin-top: 6px; background: #FFF4D6; color: #7A4B00; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }
.lc-qr-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-bottom: 18px; }
.lc-qr { width: 220px; height: 220px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.lc-qr svg { width: 100%; height: 100%; display: block; }
.lc-qr-meta { display: grid; gap: 12px; }
.lc-qr-meta small { display: block; color: var(--muted); font-size: .8rem; }
.lc-qr-meta b { color: var(--ink); word-break: break-all; }
.lc-copy { margin-left: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; cursor: pointer; }
.lc-upi-btn { margin-top: 4px; }
.lc-pay-divider { height: 1px; background: var(--line); margin: 26px 0; }
.lc-help { display: block; color: var(--muted); font-size: .82rem; margin-top: 6px; }
.lc-opt { color: var(--muted); font-weight: 500; font-size: .85em; }
.req { color: #D93B3B; }
.lc-utr-form .field + .field { margin-top: 16px; }
.lc-utr-form input[type=file] { padding: 10px; }
.lc-pay-state { text-align: center; padding: 20px 6px; }
.lc-pay-state > .icon { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: #E8F6EE; color: #15803D; margin-bottom: 12px; }
.lc-pay-state h2 { font-size: 1.35rem; margin-bottom: 10px; }
.lc-pay-state.bad h2 { color: #9B1C1C; }
.lc-pay-state p { color: var(--body); }
.lc-pay-sum { display: grid; grid-template-columns: 1fr auto; gap: 10px 0; margin: 0; }
.lc-pay-sum dd { padding-left: 16px; }
.lc-pay-sum dt { color: var(--muted); font-weight: 500; }
.lc-pay-sum dd { margin: 0; text-align: right; color: var(--ink); }
.lc-pay-sum .total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.lc-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #EEF1F6; color: #334155; }
.lc-status.s-verification_pending { background: #FFF4D6; color: #7A4B00; }
.lc-status.s-paid { background: #E8F6EE; color: #15803D; }
.lc-status.s-payment_failed, .lc-status.s-cancelled { background: #FDECEC; color: #9B1C1C; }
@media (max-width: 900px) { .lc-pay-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .lc-pay-card, .lc-pay-side { padding: 20px; }
  .lc-qr-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lc-pay-amount strong { font-size: 2rem; }
}
