/* JCI Salem Rungs public website */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/fonts/Poppins-Regular.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/fonts/Poppins-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/fonts/Poppins-Bold.ttf) format("truetype"); }

:root {
  --navy: #130f2d;
  --navy-2: #1d1842;
  --blue: #0097d7;
  --blue-dark: #0076a8;
  --teal: #5bbdbd;
  --ink: #17202b;
  --muted: #5d6b7e;
  --line: #e3e8ef;
  --bg: #ffffff;
  --tint: #f3f7fb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(19, 15, 45, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 Poppins, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--blue); margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--muted); max-width: 700px; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--blue-dark); }
.link-arrow:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font: 600 15px/1.2 Poppins, sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-accent { background: var(--blue); color: #fff; }
.btn-accent:hover { background: var(--blue-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-ghost-dark { color: var(--blue-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.logo img { height: 52px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu > a, .drop > a { color: #e8ecf6; text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: 8px; }
.menu > a:hover, .drop > a:hover, .menu a.active { color: #fff; background: rgba(255,255,255,.08); }
.menu > a.btn { margin-left: 8px; padding: 9px 20px; color: #fff; background: var(--blue); border-radius: 999px; }
.menu > a.btn:hover { background: var(--blue-dark); }
.menu .member-login { font-size: 14px; color: #aab3cf; }
.drop { position: relative; }
.caret { font-size: 11px; }
.drop-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.drop-menu a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; border-radius: 8px; font-size: 15px; }
.drop-menu a:hover { background: var(--tint); color: var(--blue-dark); }
.drop:hover .drop-menu, .drop:focus-within .drop-menu { display: block; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy); padding: 8px 16px 20px; border-top: 1px solid rgba(255,255,255,.08); max-height: calc(100vh - 72px); overflow-y: auto; }
  .menu.open { display: flex; }
  .menu > a, .drop > a { display: block; padding: 12px; }
  .drop-menu { display: block; position: static; background: transparent; box-shadow: none; padding: 0 0 0 14px; }
  .drop-menu a { color: #c9d0e6; padding: 8px 12px; }
  .drop-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .caret { display: none; }
  .menu > a.btn { margin: 10px 0 0; }
}

/* Hero */
.hero { position: relative; background: radial-gradient(circle at 80% 20%, #22306a 0, var(--navy) 55%); color: #fff; overflow: hidden; }
.hero.has-image { background: linear-gradient(90deg, rgba(19,15,45,.92) 0%, rgba(19,15,45,.7) 55%, rgba(19,15,45,.35) 100%), var(--hero) center / cover no-repeat; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; padding-top: 80px; padding-bottom: 80px; min-height: 520px; }
.hero.has-image .hero-inner { grid-template-columns: 1fr; }
.hero h1 { color: #fff; max-width: 680px; }
.hero .lead { color: #cfd6ea; }
.hero .eyebrow { color: var(--teal); }
.hero-shield { width: 100%; max-width: 420px; justify-self: end; border-radius: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; min-height: 0; }
  .hero-shield { display: none; }
}

/* Stats */
.stats { background: var(--blue); color: #fff; }
.stats-row { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.stat b { display: block; font-size: 34px; font-weight: 700; line-height: 1.1; }
.stat span { font-size: 14px; opacity: .9; }

/* Sections */
.section { padding: 72px 0; }
.section.tint { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } .section { padding: 52px 0; } }
.mv { display: grid; gap: 16px; }
.mv-card { background: var(--navy); color: #dfe4f3; padding: 28px; border-radius: var(--radius); border-left: 5px solid var(--blue); }
.mv-card.alt { border-left-color: var(--teal); background: var(--navy-2); }
.mv-card h3 { color: #fff; }
.mv-card p { margin: 0; }

.page-head { background: linear-gradient(120deg, var(--navy) 0%, #22306a 100%); color: #fff; padding: 56px 0 48px; }
.page-head h1 { color: #fff; margin: 0; }
.page-head .lead { color: #cfd6ea; margin: 10px 0 0; }
.crumb { font-size: 13px; color: #9aa6c8; margin: 0 0 8px; }
.crumb a { color: #c6d1ee; text-decoration: none; }

.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); background: #fff; }
.empty p { margin: 0; }

/* Events */
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.event-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event-card h3 { margin: 0 0 4px; font-size: 17px; }
.event-card p { margin: 0; font-size: 14px; color: var(--muted); }
.event-card .meta { color: var(--blue-dark); font-weight: 500; margin-bottom: 6px; }
.date-badge { flex: 0 0 64px; height: 68px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date-badge b { font-size: 24px; line-height: 1; }
.date-badge span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin-top: 4px; }
@media (max-width: 400px) { .event-list { grid-template-columns: 1fr; } }

.cal-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-bar h2 { margin: 0 8px; min-width: 200px; text-align: center; }
.cal-bar .btn { padding: 8px 16px; font-size: 18px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--navy); color: #fff; text-align: center; padding: 10px 4px; font-size: 13px; font-weight: 600; }
.cal-day { background: #fff; min-height: 110px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.other { background: #fafbfd; }
.cal-day.other .num { color: #b5bfcc; }
.cal-day .num { font-size: 13px; font-weight: 600; color: var(--muted); }
.cal-day.today .num { background: var(--blue); color: #fff; border-radius: 999px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.cal-ev { display: block; font-size: 12px; line-height: 1.35; background: #e5f4fb; color: var(--navy); border-left: 3px solid var(--blue); padding: 3px 6px; border-radius: 4px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { background: #cdeaf7; }
.list-title { margin: 40px 0 16px; }
@media (max-width: 700px) {
  .cal-day { min-height: 54px; padding: 4px; align-items: center; }
  .cal-day .cal-ev { display: none; }
  .cal-day.has::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
  .cal-dow { font-size: 11px; padding: 8px 0; }
  .cal-bar h2 { min-width: 0; flex: 1; font-size: 22px; }
}

.event-detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.event-img { border-radius: var(--radius); margin-bottom: 24px; width: 100%; max-height: 460px; object-fit: cover; }
.event-facts { display: grid; gap: 12px; background: var(--tint); border-radius: var(--radius); padding: 22px; position: sticky; top: 96px; }
.fact { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.fact > span { font-size: 20px; line-height: 1.4; }
@media (max-width: 860px) { .event-detail { grid-template-columns: 1fr; } .event-facts { position: static; } }

/* Cards, tiles, programmes */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card > img, .card-art { height: 190px; width: 100%; object-fit: cover; }
.card-art { background: linear-gradient(135deg, var(--navy), #22306a); display: flex; align-items: center; justify-content: center; }
.card-art img { height: 64px; width: auto; opacity: .9; }
.card-body { padding: 20px 22px 22px; }
.card-body p { color: var(--muted); font-size: 15px; margin: 0; }
.card-body .meta { color: var(--blue-dark); font-weight: 500; font-size: 14px; margin-bottom: 6px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile { display: block; background: #fff; border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 4px solid var(--blue); transition: transform .15s; }
.tile:hover { transform: translateY(-3px); }
.tile p { color: var(--muted); font-size: 15px; }
.tile-ico { font-size: 30px; display: block; margin-bottom: 10px; }

.features { display: grid; gap: 56px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media img, .feature-media .card-art { border-radius: var(--radius); width: 100%; height: 340px; object-fit: cover; }
.feature-text p { color: var(--muted); }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; gap: 20px; } .feature:nth-child(even) .feature-media { order: 0; } .feature-media img, .feature-media .card-art { height: 230px; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--blue), var(--teal)); border-radius: 3px; }
.timeline li { position: relative; margin-bottom: 28px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.timeline .year { display: inline-block; font-weight: 700; color: var(--blue-dark); font-size: 15px; margin-bottom: 6px; }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.t-card img { border-radius: 10px; margin-bottom: 14px; max-height: 280px; width: 100%; object-fit: cover; }
.t-card p { color: var(--muted); margin: 0 0 .6em; }
.t-card p:last-child { margin: 0; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.person { text-align: center; background: #fff; border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow); }
.person img, .person .avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid #e5f4fb; }
.person .avatar { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-size: 38px; font-weight: 700; }
.person h3 { margin: 0 0 4px; font-size: 18px; }
.person .term { color: var(--blue-dark); font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.person .quote { color: var(--muted); font-size: 14px; margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.gallery.big { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border-top: 4px solid var(--blue); scroll-margin-top: 100px; }
.form-card form { display: grid; gap: 14px; }
.form-card label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--navy); }
.form-card input, .form-card textarea { font: 16px Poppins, sans-serif; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,151,215,.15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } .form-card { padding: 20px; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 16px 18px; margin-bottom: 8px; }
.alert p { margin: 0; }
.alert.error { background: #fdeeea; color: #9b2c1b; margin-bottom: 14px; }
.alert.ok { background: #e7f6ee; color: #135c37; }
.alert.ok h3 { color: #135c37; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.contact-cards { display: grid; gap: 16px; margin-bottom: 24px; }
.contact-cards .fact { background: var(--tint); padding: 16px 18px; border-radius: 12px; }
.map { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }
.prose p { color: #3b4656; }

/* CTA + footer */
.cta { background: linear-gradient(120deg, var(--blue-dark), var(--blue) 60%, var(--teal)); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; opacity: .92; }
.cta .btn-accent { background: var(--navy); }
.cta .btn-accent:hover { background: #000; }

.site-footer { background: var(--navy); color: #b9c1db; padding: 56px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid a { display: block; color: #b9c1db; text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: #fff; }
.footer-grid img { height: 64px; width: auto; margin-bottom: 12px; }
.footer-note { font-size: 13px; }
.social { display: flex; gap: 14px; flex-wrap: wrap; }
.social a { display: inline; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 18px; padding-bottom: 24px; font-size: 13px; color: #8790ad; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.date-badge.multi b { font-size: 17px; }
.date-badge.multi span { font-size: 10px; }
.cal-ev.cont { border-left-style: dashed; opacity: .85; }
.reg-card { margin: 32px 0; }
.reg-card form { margin-top: 8px; }
.event-card .reg-tag { color: var(--blue-dark); font-weight: 600; font-size: 13px; margin: 4px 0; }
.form-card select { font: 16px Poppins, sans-serif; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
.form-card label.check-line { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.form-card label.check-line input { width: auto; margin-top: 5px; }
.fee { background: #e5f4fb; color: var(--navy); padding: 10px 14px; border-radius: 10px; }
.form-card .photo-input { padding: 9px; background: var(--tint); }
.form-card small { font-weight: 400; font-size: 12px; }
