/* July Jagoron Moncho — public site styles */

@font-face { font-family: "JJM Display"; src: url("../fonts/JJM_Font.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Shadhinata"; src: url("../fonts/Shadhinata.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "JJM Signature"; src: url("../fonts/Signature.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "July"; src: url("../fonts/July-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "July"; src: url("../fonts/July-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "July"; src: url("../fonts/July-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "July"; src: url("../fonts/July-Bold-Italic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --red: #ed1b25;
  --red-deep: #b9101a;
  --ink: #1b1413;
  --ink-soft: #5f5350;
  --paper: #fcf9f5;
  --tint: #f5ede4;
  --line: #e6dacd;
  --white: #fff;

  --f-main: "JJM Display", "July", "Noto Sans Bengali", sans-serif;
  --f-sub: "Shadhinata", "July", "Noto Sans Bengali", sans-serif;
  --f-sign: "JJM Signature", "July", cursive;
  --f-body: "July", "Noto Sans Bengali", "Hind Siliguri", system-ui, sans-serif;

  --wrap: 1160px;
  --gut: clamp(16px, 4vw, 32px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
body.lang-en { line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ul, ol, dl, figure, blockquote, address { margin: 0; }
address { font-style: normal; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { left: 8px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 8px 24px;
  background: var(--red); color: #fff; border: 2px solid var(--red);
  border-radius: var(--radius);
  font: 700 1rem/1.3 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--red-deep); border-color: #fff; }
.btn-white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline-white { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; border-color: #fff; color: var(--red-deep); }
.btn-sm { min-height: 38px; padding: 4px 16px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; margin-top: 40px; }

.more { display: inline-block; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 1px; color: var(--ink); }
.more::after { content: " →"; color: var(--red); }
.more:hover { color: var(--red-deep); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 249, 245, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { width: 52px; height: 52px; flex: none; }
.brand span { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font: 400 1.6rem/1.25 var(--f-main); color: var(--ink); white-space: nowrap; }
.brand small { font-size: .74rem; line-height: 1.3; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 18px; }
.nav ul { display: flex; gap: 2px; }
.nav li a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; border-radius: var(--radius); white-space: nowrap; }
.nav li a:hover { color: var(--red-deep); background: var(--tint); }
.nav li a[aria-current] { color: var(--red-deep); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang { display: flex; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; margin-left: 4px; }
.lang a { padding: 3px 10px; min-height: 34px; display: flex; align-items: center; font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: #fff; }

.nav-toggle { display: none; width: 46px; height: 46px; background: none; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px var(--gut) 20px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav li a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav li a[aria-current] { box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; }
  .nav-actions { flex-wrap: wrap; padding-top: 6px; }
}
@media (max-width: 480px) {
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 1.3rem; }
  .brand small { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-block: clamp(48px, 8vw, 104px); }
.eyebrow { font: 400 1.7rem/1.5 var(--f-sign); color: var(--ink-soft); margin-bottom: 8px; }
.hero h1 { font: 400 clamp(2.3rem, 5.4vw, 4.3rem)/1.3 var(--f-main); text-wrap: balance; color: var(--red); margin-bottom: 20px; }
.lang-en .hero h1 { line-height: 1.12; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; margin-bottom: 32px; }
.hero-mark img { width: min(100%, 440px); margin-inline: auto; transform: rotate(-6deg); }
.hero-mark img.hero-custom { width: auto; max-width: 100%; max-height: 520px; object-fit: contain; transform: none; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 168px; margin: 0; }
  .hero-mark img.hero-custom { max-height: 260px; }
}

/* ---------- Pillars ---------- */
.pillars { background: var(--ink); color: #fff; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 40px 32px 44px; border-left: 1px solid rgba(255, 255, 255, .16); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar-no { font: 700 .85rem/1 var(--f-body); color: var(--red); letter-spacing: .08em; }
.lang-bn .pillar-no { letter-spacing: 0; font-size: 1rem; }
.pillar h2 { font: 400 2rem/1.35 var(--f-sub); margin: 8px 0 8px; }
.pillar p { color: rgba(255, 255, 255, .8); font-size: 1rem; }
@media (max-width: 820px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); padding: 26px 0; }
  .pillar:first-child { border-top: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section.tint { background: var(--tint); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head .title { margin-bottom: 0; }
.title { font: 400 clamp(1.9rem, 3.4vw, 2.6rem)/1.35 var(--f-sub); margin-bottom: 24px; position: relative; padding-bottom: 12px; }
.title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 150px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 14' preserveAspectRatio='none'%3E%3Cg fill='%23ed1b25'%3E%3Cpath d='M1 10.500C22 4.500 52 2.200 84 3.400c20 .8 38 4 54 4.800 8 .4 15-.6 21-2.400-4 3.200-12 4.900-21 4.700-17-.4-35-3.800-54-4.600C54 4.800 26 7 4 11.600c-1.500.3-3.400-.5-3-1.100z'/%3E%3Cpath d='M118 9.600c12 1.700 24 1.900 36-.4-10 3.600-24 3.800-36 .4zM6 11.900c8-1.300 16-2.300 24-2.900-8 1.700-16 3-23 3.800z' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") left center / 100% 100% no-repeat; }
.big { font-size: clamp(1.1rem, 1.5vw, 1.25rem); margin-bottom: 24px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .split, .duo { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--radius); padding: 28px; }
.section.tint .panel { background: var(--paper); }
.panel p + p, .prose p + p { margin-top: 1em; }
.prose { font-size: 1.12rem; }
.prose + .title, .prose + .duo { margin-top: 40px; }
.wrap.narrow + .wrap.duo { margin-top: 40px; }

.empty { padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); text-align: center; background: rgba(255, 255, 255, .5); }

/* ---------- President's message ---------- */
.quote { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius); padding: 28px 28px 24px; }
.quote figcaption { font: 400 1.3rem/1.4 var(--f-sub); color: var(--red-deep); margin-bottom: 10px; }
.quote blockquote { font: 400 1.55rem/1.6 var(--f-sign); }
.lang-en .quote blockquote { font: italic 400 1.1rem/1.65 var(--f-body); }
.lang-en .eyebrow { font: 400 1.25rem/1.4 var(--f-sub); }
.lang-en .page-head p { font: 400 1.2rem/1.5 var(--f-sub); }
.quote blockquote p + p { margin-top: .8em; }
.sign { font: 400 2.3rem/1.5 var(--f-sign); margin-top: 16px; color: var(--ink); }
.sign-title { font-size: .92rem; color: var(--ink-soft); }

/* ---------- News cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27, 20, 19, .1); }
.card-media { display: block; aspect-ratio: 16 / 9; background: var(--red); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.no-img { background: var(--red) url("../img/logo.png") center / 38% no-repeat; background-blend-mode: normal; }
.card-body { padding: 18px 20px 22px; }
.card time, .article-meta { font-size: .88rem; color: var(--ink-soft); }
.card h3 { font: 700 1.2rem/1.45 var(--f-body); margin: 4px 0 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--red-deep); }
.card p { font-size: .98rem; color: var(--ink-soft); }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }

/* ---------- Article ---------- */
.crumb { margin-bottom: 20px; font-weight: 700; }
.crumb a { text-decoration: none; color: var(--ink-soft); }
.crumb a:hover { color: var(--red-deep); }
.article-title { font: 400 clamp(2rem, 4.4vw, 3rem)/1.35 var(--f-sub); margin-bottom: 8px; }
.article-meta { margin-bottom: 24px; }
.article-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }

/* ---------- Events ---------- */
.events { display: grid; gap: 16px; }
.event { display: grid; grid-template-columns: 104px 1fr auto; gap: 24px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.event-date { background: var(--red); color: #fff; text-align: center; border-radius: var(--radius); padding: 10px 6px 12px; line-height: 1.3; }
.event-date b { display: block; font: 700 2.1rem/1.2 var(--f-body); }
.event-date span { display: block; font-weight: 700; font-size: .95rem; }
.event-date small { font-size: .8rem; opacity: .9; }
.events-past .event-date { background: var(--ink); }
.event h3 { font: 400 1.55rem/1.4 var(--f-sub); margin-bottom: 4px; }
.event .meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .95rem; color: var(--ink-soft); margin-bottom: 8px; }
.event .meta b { color: var(--ink); }
.event-body p + p { margin-top: .7em; }
.event h3 a { color: inherit; text-decoration: none; }
.event h3 a:hover { color: var(--red-deep); }
.event .event-link, .article-link { margin-top: 14px; }
.more.ext::after { content: " ↗"; }
.more.ext:hover::after { transform: translate(3px, -3px); }
.card .card-src { font-size: .85rem; font-weight: 700; color: var(--red-deep); margin: -4px 0 8px; }
.event-img { width: 200px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px) {
  .event { grid-template-columns: 76px 1fr; gap: 16px; padding: 16px; }
  .event-date b { font-size: 1.6rem; }
  .event-img { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a span { position: absolute; inset: auto 0 0 0; padding: 22px 12px 8px; color: #fff; font-size: .9rem; line-height: 1.4; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.gallery-strip { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 94vh; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(15, 10, 10, .92); }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--radius); }
.lightbox p { text-align: center; padding-top: 10px; }
.lightbox-close { position: fixed; top: 12px; right: 16px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* ---------- Committee ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 16px; text-align: center; }
.person img, .avatar { width: 100%; max-width: 220px; aspect-ratio: 1; margin: 0 auto 14px; }
.person img { object-fit: contain; object-position: center bottom; }
.avatar { display: flex; align-items: center; justify-content: center; background: var(--tint); border-radius: var(--radius); color: var(--red); font: 400 4rem/1 var(--f-sign); }
.person h2 { font: 400 1.4rem/1.5 var(--f-sign); }
.lang-en .person h2 { font: 700 1.05rem/1.45 var(--f-body); }
.person p { color: var(--red-deep); font-size: .95rem; }

/* ---------- About ---------- */
.values { counter-reset: v; display: grid; gap: 10px; }
.values li { counter-increment: v; display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; font-weight: 700; }
.values li::before { content: counter(v); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.lang-bn .values li::before { content: counter(v, bengali); }

/* ---------- Page head ---------- */
.page-head { background: var(--red); color: #fff; padding-block: clamp(36px, 6vw, 64px); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; top: 50%; width: 320px; height: 320px; transform: translateY(-50%) rotate(-8deg); background: url("../img/logo.png") center / contain no-repeat; filter: brightness(0) invert(1); opacity: .13; pointer-events: none; }
.page-head h1 { font: 400 clamp(2.6rem, 6.5vw, 4.4rem)/1.3 var(--f-main); position: relative; z-index: 1; }
.page-head p { font: 400 1.6rem/1.5 var(--f-sign); opacity: .92; position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 4px; font-size: .98rem; }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.field input, .field textarea {
  width: 100%; padding: 10px 14px; min-height: 48px;
  font: 400 1.0625rem/1.5 var(--f-body); color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(237, 27, 37, .2); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--red); flex: none; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: var(--radius); font-weight: 700; margin-bottom: 24px; border-left: 6px solid; }
.notice.ok { background: #e7f4ea; border-color: #1c7a36; color: #12501f; }
.notice.err { background: #fde8e9; border-color: var(--red); color: #8a0d14; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dl { margin-top: 24px; }
.contact-info dt { font-size: .88rem; color: var(--ink-soft); margin-top: 14px; }
.contact-info dd { margin: 0; font-weight: 700; font-size: 1.1rem; }

.form-alt { color: var(--ink-soft); margin-bottom: 16px; }
.gform { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--radius); overflow: hidden; }
.gform iframe { display: block; width: 100%; height: 1400px; border: 0; }
@media (max-width: 600px) { .gform iframe { height: 1700px; } }

/* ---------- Donate ---------- */
.donate-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: minmax(0, 1fr); } }
.donate-grid > * { min-width: 0; }
.donate-card { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--red); border-radius: 10px; padding: clamp(20px, 3.5vw, 36px); box-shadow: 0 14px 34px rgba(27, 20, 19, .07); }
.step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.step legend { font: 400 1.5rem/1.4 var(--f-sub); padding: 0; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.step legend span { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .95rem/1 var(--f-body); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 520px) { .chips { grid-template-columns: repeat(2, 1fr); } }
.chip, .method { position: relative; cursor: pointer; }
.chip input, .method input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 58px; border: 2px solid var(--line); border-radius: var(--radius); font: 700 1.25rem/1 var(--f-body); background: var(--paper); transition: border-color .15s, background .15s, color .15s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chip input:focus-visible + span, .method input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.custom-amount { display: block; font-weight: 700; font-size: .95rem; margin: 16px 0 4px; }
.money { display: flex; align-items: stretch; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.money:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(237, 27, 37, .2); }
.money span { display: flex; align-items: center; padding: 0 16px; background: var(--tint); font-weight: 700; font-size: 1.25rem; }
.money input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: 700 1.25rem/1.4 var(--f-body); color: var(--ink); background: transparent; outline: none; }
.methods { display: grid; gap: 10px; }
.method span { display: flex; flex-direction: column; padding: 12px 16px 12px 50px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); line-height: 1.45; transition: border-color .15s, background .15s; }
.method span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--ink-soft); border-radius: 50%; background: var(--white); }
.method small { color: var(--ink-soft); font-size: .88rem; }
.method:hover span { border-color: var(--ink); }
.method input:checked + span { border-color: var(--red); background: #fff5f5; }
.method input:checked + span::before { border-color: var(--red); box-shadow: inset 0 0 0 4px var(--white); background: var(--red); }
.btn-block { width: 100%; min-height: 56px; font-size: 1.15rem; gap: 8px; }
.secure { font-size: .88rem; color: var(--ink-soft); text-align: center; margin-top: 12px; }
.donate-side .panel { margin-top: 20px; }
.donate-side .panel h3 { font: 400 1.4rem/1.4 var(--f-sub); margin-bottom: 6px; }

.result { text-align: center; }
.result h2 { font: 400 clamp(1.8rem, 3.6vw, 2.5rem)/1.4 var(--f-sub); margin-bottom: 8px; }
.result-icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font: 700 2.6rem/1 var(--f-body); color: #fff; }
.result-icon.ok { background: #1c7a36; } .result-icon.bad { background: var(--red); } .result-icon.wait { background: var(--ink); }
.receipt { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 6px 24px; text-align: left; margin: 24px auto 0; padding: 20px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); width: fit-content; max-width: 100%; }
.receipt dt { color: var(--ink-soft); }
.receipt dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- CTA ---------- */
.cta { background: var(--red); color: #fff; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 68px); }
.cta h2 { font: 400 clamp(2.4rem, 5.5vw, 3.8rem)/1.3 var(--f-main); }
.cta p { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .82); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 40px; padding-block: 56px 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.brand-light strong { color: #fff; }
.brand-light small { color: rgba(255, 255, 255, .7); white-space: normal; }
.footer-about { margin-top: 16px; max-width: 34em; }
.site-footer h2 { font: 400 1.4rem/1.4 var(--f-sub); color: #fff; margin-bottom: 12px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { columns: 2; column-gap: 24px; }
.footer-links li { padding: 3px 0; break-inside: avoid; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -10px; color: #fff; opacity: .85; transition: opacity .15s, transform .15s; }
.social a + a { margin-left: 0; }
.social a:hover { opacity: 1; transform: translateY(-2px); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .16); padding-block: 18px; font-size: .88rem; color: rgba(255, 255, 255, .65); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes mark-in { from { opacity: 0; transform: rotate(-28deg) scale(.82); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
@keyframes photo-in { from { opacity: 0; transform: scale(.93) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(28, 122, 54, .45); } to { box-shadow: 0 0 0 22px rgba(28, 122, 54, 0); } }

/* Page entrance */
.js .hero-text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-text > :nth-child(2) { animation-delay: .12s; }
.js .hero-text > :nth-child(3) { animation-delay: .24s; }
.js .hero-text > :nth-child(4) { animation-delay: .36s; }
/* Home page picture: the entrance is chosen in Admin → Site texts → Home page picture */
@keyframes hm-spin  { from { opacity: 0; transform: rotate(-22deg) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes hm-rise  { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes hm-zoom  { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes hm-slide { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
@keyframes hm-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes hm-float { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.js .hero-mark { animation: hm-zoom .9s cubic-bezier(.2, .8, .2, 1) .15s both; }
.js .hero-mark.anim-spin  { animation-name: hm-spin; animation-duration: .95s; }
.js .hero-mark.anim-rise  { animation-name: hm-rise; }
.js .hero-mark.anim-zoom  { animation-name: hm-zoom; }
.js .hero-mark.anim-slide { animation-name: hm-slide; }
.js .hero-mark.anim-fade  { animation-name: hm-fade; animation-timing-function: ease-out; }
.js .hero-mark.anim-float { animation: hm-rise .9s cubic-bezier(.2, .8, .2, 1) .15s both, hm-float 3.2s ease-in-out 1.1s infinite alternate; }
.js .hero-mark.anim-none  { animation: none; }
.js .page-head h1 { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.js .page-head p { animation: rise .6s cubic-bezier(.2, .7, .2, 1) .12s both; }

/* Scroll reveal (classes are added by main.js, so nothing is hidden without JavaScript) */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.title.rv::after { clip-path: inset(0 100% 0 0); }
.title.rv.in::after { clip-path: inset(0 0 0 0); transition: clip-path .75s cubic-bezier(.3, .7, .2, 1) calc(var(--d, 0ms) + .3s); }

/* Small touches */
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(27, 20, 19, .14); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn { transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.more::after { display: inline-block; margin-left: .3em; transition: transform .2s; }
.more:hover::after { transform: translateX(5px); }
.brand img { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.brand:hover img { transform: rotate(-14deg) scale(1.06); }
.person img, .person .avatar { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.person:hover img, .person:hover .avatar { transform: translateY(-4px); }
.event { transition: border-color .2s, box-shadow .2s, transform .2s; }
.event:hover { border-color: var(--red); box-shadow: 0 8px 20px rgba(27, 20, 19, .08); transform: translateY(-2px); }
@media (max-width: 1140px) { .nav.open { animation: drop .22s ease-out; } }
#donate-total { display: inline-block; }
#donate-total.pop { animation: pop .3s ease-out; }
.result-icon { animation: pop-in .5s cubic-bezier(.2, 1.5, .4, 1) both; }
.result-icon.ok { animation: pop-in .5s cubic-bezier(.2, 1.5, .4, 1) both, ring 1.1s ease-out .45s 2; }
.result h2, .result > p, .result .receipt { animation: rise .6s ease-out .25s both; }
.lightbox[open] img { animation: photo-in .25s ease-out; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .title.rv::after { clip-path: none !important; }
}

/* ---------- Phone refinements ---------- */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-bottom a { color: #fff; font-weight: 700; }
@media (max-width: 820px) {
  .hero-in { text-align: center; }
  .hero-mark img, .hero-mark img.hero-custom { margin-inline: auto; }
  .hero .lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .cta-in { flex-direction: column; justify-content: center; text-align: center; }
  .cta .actions { justify-content: center; }
}
@media (max-width: 700px) {
  .eyebrow { font-size: 1rem; }
  .lang-en .eyebrow { font-size: .95rem; }
  .page-head p { font-size: 1rem; }
  .lang-en .page-head p { font-size: .95rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Donate: online payment happens on payment.julyjagoron.org ---------- */
.pay-via { background: var(--tint); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; font-size: .97rem; }
.pay-via-note { color: var(--ink-soft); font-size: .9rem; margin-top: 4px; }

/* ---------- Link to the shop (জুলাই জাগরণ সংগ্রহশালা) ---------- */
.shop-band { background: var(--tint); border-top: 1px solid var(--line); }
.shop-band-in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; padding-block: clamp(36px, 5vw, 56px); }
.shop-band-art { width: 120px; height: 120px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; animation: shop-bob 3s ease-in-out infinite; }
.shop-band-art svg { width: 70px; height: 70px; }
.shop-band h2 { font: 400 clamp(2rem, 4.2vw, 3rem)/1.3 var(--f-main); color: var(--red); margin: 2px 0 6px; }
.shop-band .eyebrow { margin: 0; }
.shop-band-text p:last-child { max-width: 40em; }
.shop-band .btn .ic { width: 20px; height: 20px; }
@media (max-width: 820px) { .shop-band-in { grid-template-columns: 1fr; text-align: center; justify-items: center; } .shop-band .actions { justify-content: center; } }
.shop-panel { position: relative; overflow: hidden; }
.shop-panel .shop-ic { color: var(--red); margin-bottom: 6px; animation: shop-bob 2.6s ease-in-out infinite; }
.shop-panel h3 { font: 400 1.4rem/1.4 var(--f-sub); margin-bottom: 6px; }
@keyframes shop-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .shop-panel .shop-ic { animation: none; } }
/* ---------- Tidy header: short labels, icon shop button, one-tap language switch ---------- */
.nav-actions .btn { white-space: nowrap; }
.nav { gap: 14px; }
.nav-actions { gap: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 40px; height: 40px; border-radius: 50%; color: var(--red-deep); background: #fdeaea; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.icon-btn:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.icon-btn .ic { transition: transform .35s cubic-bezier(.2, .9, .3, 1.4); }
.icon-btn:hover .ic { transform: rotate(-14deg) scale(1.1); }
.icon-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 34px; padding: 0 8px; border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); font: 700 .85rem/1 var(--f-body); text-decoration: none; transition: background .2s, color .2s; }
.lang-switch:hover { background: var(--ink); color: #fff; }
@media (min-width: 1141px) and (max-width: 1320px) {
  .nav li a { padding: 8px 8px; }
  .brand small { max-width: 170px; }
}
@media (max-width: 1140px) {
  .nav-actions { border-left: 0; padding-left: 0; padding-top: 12px; }
  .icon-btn { width: auto; height: 38px; padding: 0 14px; border-radius: var(--radius); }
  .icon-btn .lbl { position: static; width: auto; height: auto; clip-path: none; font-weight: 700; font-size: .95rem; }
}

/* ---------- Committees ---------- */
.section-sub { color: var(--ink-soft); margin-top: 14px; }
.past-note { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: #fff8e6; border-color: #e0a400; color: #6b4a00; }
.committee-note { max-width: 780px; margin-bottom: 32px; }
.past-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.past-list a { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.past-list a:hover { border-left-color: var(--red); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(27, 20, 19, .08); }
.past-list b { font: 400 1.3rem/1.4 var(--f-sub); }
.past-list span { color: var(--red-deep); font-weight: 700; font-size: .95rem; }
.past-list small { color: var(--ink-soft); }
#founding-council { scroll-margin-top: 90px; }
