/* ===================================================
   HRACFT — Human Rights and Consumer Forum Trust
   Main Stylesheet
=================================================== */

:root{
  --navy:#171c4a;
  --navy-dark:#0d1030;
  --navy-light:#2a3170;
  --red:#b31f27;
  --red-dark:#8a1720;
  --red-light:#d94b47;
  --gold:#d4a017;
  --ink:#1c1e2b;
  --ink-soft:#4a4d5e;
  --paper:#ffffff;
  --paper-soft:#f6f6fb;
  --border:#e4e4ee;
  --shadow: 0 10px 30px rgba(23,28,74,0.10);
  --radius: 14px;
  --maxw: 1160px;
  font-size: 16px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Segoe UI", "Noto Sans", Arial, sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:"Georgia","Bookman Old Style",serif; line-height:1.25; margin:0 0 .6em; color:var(--navy); }
p{ margin:0 0 1em; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }
.hi{ color:var(--red); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  padding:.85em 1.7em;
  border-radius:50px;
  font-weight:700;
  font-size:.95rem;
  border:2px solid transparent;
  cursor:pointer;
  transition:.2s ease;
}
.btn-primary{ background:var(--red); color:#fff; }
.btn-primary:hover{ background:var(--red-dark); }
.btn-outline{ background:transparent; border-color:#fff; color:#fff; }
.btn-outline:hover{ background:#fff; color:var(--navy); }
.btn-navy{ background:var(--navy); color:#fff; }
.btn-navy:hover{ background:var(--navy-dark); }
.btn-sm{ padding:.55em 1.3em; font-size:.85rem; }

/* ---------- Topbar ---------- */
.topbar{
  background:var(--navy-dark);
  color:#cfd2ec;
  font-size:.82rem;
}
.topbar .container{
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  justify-content:space-between;
  align-items:center;
  padding-top:6px;
  padding-bottom:6px;
}
.topbar a{ color:#fff; }
.topbar .tb-left{ display:flex; flex-wrap:wrap; gap:16px; }
.topbar .tb-item{ display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.topbar .tb-right{ font-weight:600; letter-spacing:.03em; }

/* ---------- Header / Nav ---------- */
.site-header{
  background:#fff;
  border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:50;
  box-shadow:0 2px 10px rgba(0,0,0,0.04);
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 20px;
  gap:16px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:54px; width:auto; border-radius:6px; }
.brand-text .en{ font-weight:800; color:var(--navy); font-size:1.05rem; line-height:1.15; display:block; }
.brand-text .hi{ color:var(--red); font-size:.85rem; display:block; font-weight:600; }

.main-nav ul{ display:flex; gap:6px; flex-wrap:wrap; }
.main-nav a{
  display:block;
  padding:10px 14px;
  font-weight:600;
  font-size:.95rem;
  color:var(--navy);
  border-radius:8px;
  transition:.2s;
}
.main-nav a:hover, .main-nav a.active{ background:var(--red); color:#fff; }

.nav-toggle{
  display:none;
  background:none;
  border:2px solid var(--navy);
  border-radius:8px;
  padding:8px 10px;
  cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  display:block;
  width:22px;
  height:2px;
  background:var(--navy);
  position:relative;
  transition:.2s;
}
.nav-toggle span::before{ position:absolute; top:-7px; }
.nav-toggle span::after{ position:absolute; top:7px; }

@media (max-width: 880px){
  .nav-toggle{ display:block; }
  .main-nav{
    display:none;
    width:100%;
    order:3;
  }
  .main-nav.open{ display:block; }
  .main-nav ul{ flex-direction:column; padding:10px 0; }
  .main-nav a{ padding:12px 6px; border-bottom:1px solid var(--border); border-radius:0; }
}

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(135deg, var(--navy) 45%, var(--red) 45%);
  color:#fff;
  padding:0;
  overflow:hidden;
}
.hero-banner-img{ width:100%; display:block; }
.hero-body{
  padding:56px 20px 64px;
  text-align:center;
}
.hero-body .eyebrow{
  display:inline-block;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.35);
  padding:6px 16px;
  border-radius:50px;
  font-size:.8rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:18px;
}
.hero-body h1{
  color:#fff;
  font-size:clamp(1.7rem, 4vw, 2.7rem);
  max-width:850px;
  margin:0 auto .3em;
}
.hero-body .hi-line{
  font-size:1.1rem;
  color:#f1cfcf;
  margin-bottom:.6em;
}
.hero-body .tagline{
  font-size:1.05rem;
  color:#dfe1f5;
  max-width:640px;
  margin:0 auto 1.6em;
}
.hero-cta{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero{
  background:linear-gradient(120deg, var(--navy), var(--navy-light) 60%, var(--red));
  color:#fff;
  padding:54px 20px;
  text-align:center;
}
.page-hero h1{ color:#fff; margin-bottom:.3em; }
.page-hero p{ color:#dfe1f5; max-width:680px; margin:0 auto; }
.breadcrumb{ font-size:.85rem; color:#cfd2ec; margin-bottom:14px; }
.breadcrumb a{ text-decoration:underline; }

/* ---------- Sections ---------- */
section{ padding:64px 0; }
.section-soft{ background:var(--paper-soft); }
.section-navy{ background:var(--navy); color:#fff; }
.section-navy h2, .section-navy h3{ color:#fff; }
.section-head{ text-align:center; max-width:720px; margin:0 auto 40px; }
.section-head .kicker{
  display:inline-block;
  color:var(--red);
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.8rem;
  margin-bottom:10px;
}
.section-head h2{ font-size:clamp(1.5rem,3vw,2.1rem); }

/* ---------- Grids & Cards ---------- */
.grid{ display:grid; gap:26px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){ .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; } }

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--shadow);
}
.card h3{ font-size:1.15rem; }
.icon-badge{
  width:52px; height:52px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--red), var(--navy));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem;
  margin-bottom:16px;
}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:44px;
  align-items:center;
}
@media (max-width:820px){ .split{ grid-template-columns:1fr; } }
.split img{ border-radius:var(--radius); box-shadow:var(--shadow); }

/* ---------- Leadership ---------- */
.leader-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.leader-card img{ border-radius:0; }
.leader-card .lc-body{ padding:22px 24px; }
.leader-card .lc-name{ font-weight:800; color:var(--navy); font-size:1.05rem; }
.leader-card .lc-title{ color:var(--red); font-weight:700; font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; margin-bottom:10px; }

/* ---------- Certification strip ---------- */
.cert-item{ text-align:center; }
.cert-item img{
  border:1px solid var(--border);
  border-radius:10px;
  margin-bottom:14px;
  box-shadow:var(--shadow);
}
.cert-item .num{ font-size:.82rem; color:var(--ink-soft); }

/* ---------- Lists with check icons ---------- */
.check-list li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 0;
  border-bottom:1px dashed var(--border);
}
.check-list li:last-child{ border-bottom:none; }
.check-list .ck{
  flex:0 0 auto;
  width:26px; height:26px;
  border-radius:50%;
  background:var(--red);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:.8rem;
  font-weight:800;
}

.num-list{ counter-reset:n; }
.num-list li{
  counter-increment:n;
  display:flex;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid var(--border);
}
.num-list li:last-child{ border-bottom:none; }
.num-list li::before{
  content:counter(n);
  flex:0 0 auto;
  width:32px; height:32px;
  border-radius:8px;
  background:var(--navy);
  color:#fff;
  font-weight:800;
  display:flex; align-items:center; justify-content:center;
}

/* ---------- Stats ---------- */
.stats{ display:flex; flex-wrap:wrap; gap:30px; justify-content:center; text-align:center; }
.stat b{ display:block; font-size:2rem; color:var(--red); font-family:Georgia,serif; }
.stat span{ color:var(--ink-soft); font-size:.9rem; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background:linear-gradient(120deg, var(--red), var(--red-dark));
  color:#fff;
  border-radius:var(--radius);
  padding:44px 34px;
  text-align:center;
}
.cta-banner h2{ color:#fff; }
.cta-banner p{ color:#ffe3e3; max-width:600px; margin:0 auto 22px; }
.cta-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ---------- Gallery / Lightbox ---------- */
.gallery-album{ margin-bottom:48px; }
.gallery-album:last-child{ margin-bottom:0; }
.gallery-album-title{ font-size:1.3rem; color:var(--navy); margin-bottom:6px; }
.gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:900px){ .gallery{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .gallery{ grid-template-columns:1fr; } }
.gallery figure{
  margin:0;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  cursor:zoom-in;
}
.gallery img{ aspect-ratio:4/3; object-fit:cover; width:100%; }
.gallery figcaption{ padding:14px 16px; font-size:.9rem; font-weight:600; color:var(--navy); }

.lightbox{
  position:fixed; inset:0; background:rgba(10,10,20,.88);
  display:none; align-items:center; justify-content:center;
  z-index:200; padding:26px;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-width:100%; max-height:86vh; border-radius:8px; box-shadow:0 10px 40px rgba(0,0,0,.5); }
.lightbox .lb-close{
  position:absolute; top:20px; right:26px;
  color:#fff; font-size:2rem; cursor:pointer; line-height:1;
  background:none; border:none;
}
.lightbox .lb-caption{ color:#fff; text-align:center; margin-top:10px; font-size:.95rem; }

/* ---------- Table ---------- */
.table-wrap{ overflow-x:auto; }
table.org-table{ width:100%; border-collapse:collapse; min-width:720px; background:#fff; }
table.org-table th, table.org-table td{
  border:1px solid var(--border);
  padding:12px 14px;
  font-size:.88rem;
  text-align:center;
}
table.org-table thead th{ background:var(--navy); color:#fff; }
table.org-table tbody tr:nth-child(even){ background:var(--paper-soft); }
table.org-table td:first-child{ font-weight:700; color:var(--red); text-align:left; }

/* ---------- Contact page ---------- */
.office-card{ border-left:4px solid var(--red); }
.contact-form{ display:grid; gap:14px; }
.contact-form input, .contact-form textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:8px;
  font:inherit;
  background:#fbfbfe;
  color:var(--ink);
  transition:border-color .15s, box-shadow .15s;
}
.contact-form input[type="checkbox"] {
    width: fit-content;
}
.contact-form label.tag input {
    width: fit-content;
}
.contact-form input:focus, .contact-form textarea:focus{
  outline:none;
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(179,31,39,0.12);
  background:#fff;
}
.contact-form label{ font-weight:700; font-size:.85rem; color:var(--navy); margin-bottom:4px; display:block; }
.contact-form textarea{ min-height:130px; resize:vertical; }

/* Styled dropdowns (site-wide: registration/renewal forms and any card
   that uses a plain <select>, not just inside .contact-form) */
select{
  width:100%;
  padding:12px 40px 12px 14px;
  border:1px solid var(--border);
  border-radius:8px;
  font:inherit;
  background-color:#fbfbfe;
  color:var(--ink);
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  cursor:pointer;
  transition:border-color .15s, box-shadow .15s;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23171c4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 7l5 5 5-5'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:14px;
}
select:focus{
  outline:none;
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(179,31,39,0.12);
  background-color:#fff;
}
select:hover{ border-color:var(--navy); }
select::-ms-expand{ display:none; }
select option{ color:var(--ink); }
.map-frame{ border:0; width:100%; height:340px; border-radius:var(--radius); box-shadow:var(--shadow); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-dark); color:#c6c9e6; padding:56px 0 0; }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1.3fr; gap:32px; padding-bottom:36px; }
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.site-footer h4{ color:#fff; font-size:1rem; margin-bottom:16px; }
.site-footer a:hover{ color:#fff; }
.site-footer .flogo{ display:flex; gap:12px; align-items:center; margin-bottom:14px; }
.site-footer .flogo img{ height:46px; }
.site-footer .flogo b{ color:#fff; }
.site-footer ul li{ margin-bottom:10px; font-size:.92rem; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);
  padding:18px 20px;
  text-align:center;
  font-size:.82rem;
  color:#8d90b8;
}

/* ---------- Utility ---------- */
.mt-0{ margin-top:0; }
.center{ text-align:center; }
.small{ font-size:.85rem; color:var(--ink-soft); }
.tag{
  display:inline-block;
  background:var(--paper-soft);
  border:1px solid var(--border);
  color:var(--navy);
  padding:4px 12px;
  border-radius:50px;
  font-size:.78rem;
  font-weight:700;
  margin:0 6px 6px 0;
}
