/* ==========================================================================
   International Business Forum (IBF) - Website Stylesheet
   Brand colours sampled from the IBF logo:
     navy  #16265c  •  teal #16a99a  •  mint #5fd0bf
   Layout references: KCCI (header), PAFLA + PASHA (homepage)
   ========================================================================== */

/* ----------  Design tokens  ---------- */
:root {
  --navy:        #16265c;
  --navy-dark:   #0f1c47;
  --navy-light:  #233a7a;
  --teal:        #16a99a;
  --teal-dark:   #0e8b7e;
  --mint:        #5fd0bf;

  --bg:          #ffffff;
  --bg-alt:      #f4f8fb;
  --bg-soft:     #eef4f8;
  --border:      #e3e9f0;
  --text:        #1f2a44;
  --muted:       #5a6680;
  --white:       #ffffff;

  --hero-grad:   linear-gradient(120deg, #142559 0%, #163f73 52%, #149a8c 100%);
  --shadow-sm:   0 2px 10px rgba(22, 38, 92, .06);
  --shadow-md:   0 10px 30px rgba(22, 38, 92, .10);
  --shadow-lg:   0 18px 50px rgba(22, 38, 92, .14);
  --radius:      14px;
  --radius-sm:   9px;
  --maxw:        1200px;
  --font-head:   'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body:   'Inter', 'Segoe UI', system-ui, sans-serif;
  --t:           .25s ease;
}

/* ----------  Reset / base  ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.text-center { text-align: center; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 50px; cursor: pointer;
  border: 2px solid transparent; transition: var(--t); white-space: nowrap;
}
.btn-primary  { background: var(--teal); color: #fff; }
.btn-primary:hover  { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-navy     { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline  { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-ghost    { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ----------  Section heading  ---------- */
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.sec-head .eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; font-size: .76rem;
  color: var(--teal-dark); background: var(--bg-soft);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 1.04rem; }
.sec-head.left { margin-left: 0; text-align: left; }

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.topbar { background: var(--navy-dark); color: #c9d4ec; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 18px; }
.topbar a { color: #c9d4ec; transition: var(--t); }
.topbar a:hover { color: #fff; }
.topbar .tb-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-info span, .topbar .tb-info a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tb-social { display: flex; gap: 14px; align-items: center; }
.topbar .tb-social a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.topbar .tb-social a:hover { background: var(--teal); }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }

/* ==========================================================================
   HEADER / NAV (KCCI-style)
   ========================================================================== */
.site-header { background: #fff; position: sticky; top: 0; z-index: 200; box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 56px; width: auto; max-width: none; flex: none; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link {
  font-family: var(--font-head); font-weight: 500; font-size: .93rem; color: var(--navy);
  padding: 12px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
  transition: var(--t); position: relative; white-space: nowrap;
}
.main-nav a.nav-link:hover, .main-nav li.has-drop:hover > a.nav-link { color: var(--teal-dark); }
.main-nav a.nav-link.active { color: var(--teal-dark); }
.main-nav a.nav-link.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--teal); border-radius: 2px;
}
.has-drop > .nav-link .caret { width: 9px; height: 9px; fill: currentColor; transition: var(--t); }
.has-drop:hover > .nav-link .caret { transform: rotate(180deg); }

/* dropdown */
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 248px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 10px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: var(--t); z-index: 120;
}
.main-nav li.has-drop { position: relative; }
.main-nav li.has-drop:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 9px 14px; border-radius: 7px; font-size: .9rem; color: var(--text);
  font-weight: 500; transition: var(--t);
}
.dropdown a:hover { background: var(--bg-soft); color: var(--teal-dark); padding-left: 18px; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: var(--t); border-radius: 2px; }

/* ==========================================================================
   HERO  (PAFLA-style mission banner)
   ========================================================================== */
.hero { position: relative; background: var(--hero-grad); color: #fff; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(95,208,191,.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(20,80,120,.4), transparent 50%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero .container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 104px; }
.hero-inner { max-width: 760px; }
.hero .tagline {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 500;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 18px; border-radius: 50px; margin-bottom: 24px;
}
.hero .tagline .dot { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.5px; }
.hero h1 .hl { color: var(--mint); }
.hero p.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #dbe6f5; margin: 22px 0 34px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-strip {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 14px 40px;
  border-top: 1px solid rgba(255,255,255,.16); padding: 22px 0 4px; margin-top: 50px;
}
.hero-strip .hs-item { display: flex; align-items: center; gap: 11px; color: #cfdcef; font-size: .92rem; }
.hero-strip .hs-item svg { width: 22px; height: 22px; fill: var(--mint); flex: none; }

/* ==========================================================================
   ABOUT / INTRO
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.about-media .badge {
  position: absolute; bottom: -22px; right: -10px; background: var(--navy); color: #fff;
  padding: 18px 24px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); text-align: center;
}
.about-media .badge strong { font-family: var(--font-head); font-size: 1.9rem; display: block; color: var(--mint); }
.about-media .badge span { font-size: .8rem; color: #c9d4ec; }
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 18px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy .check-list { margin: 22px 0 28px; display: grid; gap: 12px; }
.about-copy .check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--text); }
.about-copy .check-list svg { width: 22px; height: 22px; fill: var(--teal); flex: none; margin-top: 2px; }

/* ==========================================================================
   STATS / COUNTERS
   ========================================================================== */
.stats { background: var(--navy); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; padding: 14px; position: relative; }
.stat:not(:last-child)::after { content: ''; position: absolute; right: -15px; top: 18%; height: 64%; width: 1px; background: rgba(255,255,255,.14); }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.1rem, 4vw, 3rem); color: var(--mint); }
.stat .num span { font-size: .65em; }
.stat .lbl { color: #c5d1e8; font-size: .96rem; margin-top: 4px; }

/* ==========================================================================
   SERVICES / WHAT WE DO  (card grid)
   ========================================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-service {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: var(--t); position: relative; overflow: hidden;
}
.card-service::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--teal); transition: var(--t); }
.card-service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-service:hover::before { width: 100%; }
.card-service .ico { width: 60px; height: 60px; border-radius: 14px; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 20px; transition: var(--t); }
.card-service:hover .ico { background: var(--teal); }
.card-service .ico svg { width: 30px; height: 30px; fill: var(--teal-dark); transition: var(--t); }
.card-service:hover .ico svg { fill: #fff; }
.card-service h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card-service p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.card-service .more { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--teal-dark); display: inline-flex; gap: 6px; align-items: center; }
.card-service .more svg { width: 16px; height: 16px; fill: currentColor; transition: var(--t); }
.card-service:hover .more svg { transform: translateX(4px); }

/* ==========================================================================
   MEMBERSHIP / WHY JOIN
   ========================================================================== */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.join-copy .eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; font-size: .76rem; color: var(--teal-dark); background: var(--bg-soft);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
}
.join-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.join-copy p { color: var(--muted); margin-bottom: 24px; }
.benefit-list { display: grid; gap: 16px; margin-bottom: 30px; }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; }
.benefit-list .b-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.benefit-list .b-ico svg { width: 22px; height: 22px; fill: var(--teal-dark); }
.benefit-list strong { display: block; color: var(--navy); font-family: var(--font-head); }
.benefit-list span { color: var(--muted); font-size: .92rem; }
.join-card {
  background: var(--hero-grad); color: #fff; border-radius: var(--radius); padding: 42px 38px; box-shadow: var(--shadow-lg);
}
.join-card h3 { color: #fff; font-size: 1.5rem; }
.join-card .price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; margin: 8px 0; }
.join-card .price small { font-size: .9rem; font-weight: 400; color: #cfe3f2; }
.join-card ul { margin: 22px 0 28px; display: grid; gap: 12px; }
.join-card ul li { display: flex; gap: 10px; align-items: center; color: #e6eefa; font-size: .95rem; }
.join-card ul svg { width: 20px; height: 20px; fill: var(--mint); flex: none; }
.join-card .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   CHAIRMAN MESSAGE
   ========================================================================== */
.chairman { background: var(--bg-alt); }
.chairman-grid { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: center; }
.chairman-photo { position: relative; }
.chairman-photo img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.chairman-photo .sig { margin-top: 18px; }
.chairman-photo .sig strong { font-family: var(--font-head); color: var(--navy); display: block; font-size: 1.1rem; }
.chairman-photo .sig span { color: var(--muted); font-size: .9rem; }
.chairman-body .quote-mark { font-family: var(--font-head); font-size: 4rem; color: var(--teal); line-height: .6; }
.chairman-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 10px 0 18px; }
.chairman-body p { color: var(--muted); margin-bottom: 16px; font-size: 1.03rem; }

/* ==========================================================================
   EVENTS  (cards)
   ========================================================================== */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.event-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--t); }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.event-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--t); }
.event-card:hover .event-thumb img { transform: scale(1.06); }
.event-date {
  position: absolute; top: 14px; left: 14px; background: #fff; border-radius: 10px; text-align: center;
  padding: 8px 12px; box-shadow: var(--shadow-sm); font-family: var(--font-head);
}
.event-date .d { font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1; }
.event-date .m { font-size: .72rem; text-transform: uppercase; color: var(--teal-dark); letter-spacing: .08em; }
.event-body { padding: 22px 24px 26px; }
.event-tag { font-family: var(--font-head); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-dark); font-weight: 600; }
.event-body h3 { font-size: 1.16rem; margin: 8px 0 12px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .86rem; }
.event-meta span { display: inline-flex; gap: 6px; align-items: center; }
.event-meta svg { width: 15px; height: 15px; fill: var(--teal-dark); }

/* ==========================================================================
   NEWS / MEDIA
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: var(--t); }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.news-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.news-body { padding: 22px 24px 26px; }
.news-body .date { color: var(--teal-dark); font-size: .82rem; font-weight: 600; font-family: var(--font-head); }
.news-body h3 { font-size: 1.12rem; margin: 8px 0 10px; }
.news-body p { color: var(--muted); font-size: .92rem; }

/* ==========================================================================
   PARTNERS  (logo grid)
   ========================================================================== */
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.partner-logo {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: grid; place-items: center; padding: 28px 20px; min-height: 130px; transition: var(--t);
}
.partner-logo:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-4px); }
.partner-logo img { max-height: 70px; width: auto; opacity: .8; filter: grayscale(1); transition: var(--t); }
.partner-logo:hover img { opacity: 1; filter: none; }

/* Featured digital partners: two large square logos, filling their cards */
.partner-featured {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  max-width: 880px; margin: 0 auto;
}
.partner-logo-lg { aspect-ratio: 1 / 1; min-height: 0; padding: 18px; }
.partner-logo-lg img { max-height: 86%; max-width: 88%; opacity: 1; filter: none; }
.partner-logo-lg:hover img { opacity: 1; filter: none; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { background: var(--hero-grad); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(95,208,191,.25), transparent 50%); }
.cta-band .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 56px 22px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 640px; }
.cta-band p { color: #d7e3f4; margin-top: 8px; }
.cta-band .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-dark); color: #aebbd6; font-size: .92rem; }
.footer-top { padding: 70px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--teal); border-radius: 3px; }
.footer-about img { height: 116px; width: auto; margin-bottom: 18px; border-radius: 16px; }
.footer-about p { margin-bottom: 18px; line-height: 1.75; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: var(--t); }
.footer-social a:hover { background: var(--teal); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; fill: #fff; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { transition: var(--t); display: inline-flex; gap: 8px; align-items: center; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; fill: var(--mint); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .86rem; }
.footer-bottom a { color: var(--mint); }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */
.page-hero { background: var(--hero-grad); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 25%, rgba(95,208,191,.22), transparent 45%); }
.page-hero .container { position: relative; z-index: 2; padding: 70px 22px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: #cfdcef; font-size: .9rem; margin-top: 12px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .6; }

/* generic inner content */
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose h2 { margin: 28px 0 14px; font-size: 1.6rem; }
.prose h3 { margin: 22px 0 10px; font-size: 1.25rem; }
.lead-text { font-size: 1.12rem; color: var(--text); }

/* leadership grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-align: center; transition: var(--t); }
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.team-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.team-card .tc-body { padding: 20px 16px 24px; }
.team-card h3 { font-size: 1.1rem; }
.team-card .role { color: var(--teal-dark); font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-top: 4px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info .ci-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .ci-ico { width: 50px; height: 50px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.contact-info .ci-ico svg { width: 24px; height: 24px; fill: var(--teal-dark); }
.contact-info h4 { margin-bottom: 4px; }
.contact-info p { color: var(--muted); }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .88rem; margin-bottom: 8px; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; transition: var(--t); background: var(--bg-alt);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(22,169,154,.12); }

/* simple media/notice list */
.notice-list { display: grid; gap: 14px; }
.notice-item {
  display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 24px; transition: var(--t);
}
.notice-item:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.notice-item .n-date { text-align: center; font-family: var(--font-head); flex: none; padding-right: 18px; border-right: 1px solid var(--border); }
.notice-item .n-date .d { font-size: 1.5rem; font-weight: 700; color: var(--teal-dark); line-height: 1; }
.notice-item .n-date .my { font-size: .76rem; color: var(--muted); text-transform: uppercase; }
.notice-item h3 { font-size: 1.05rem; margin-bottom: 3px; }
.notice-item p { color: var(--muted); font-size: .88rem; }
.notice-item .n-link { margin-left: auto; color: var(--teal-dark); }
.notice-item .n-link svg { width: 22px; height: 22px; fill: currentColor; }

/* placeholder note ribbon */
.ph-note {
  background: #fff7e6; border: 1px dashed #e3b341; color: #8a6d1f; text-align: center;
  font-size: .85rem; padding: 9px 14px; font-family: var(--font-head); font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::after { display: none; }
  .cards-grid, .event-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 1024px) {
  .main-nav {
    position: fixed; top: 0; right: -100%; width: min(82vw, 340px); height: 100vh;
    background: #fff; box-shadow: var(--shadow-lg); padding: 90px 22px 30px;
    overflow-y: auto; transition: right .3s ease; z-index: 200;
  }
  .main-nav.open { right: 0; }
  .header-cta .btn-primary { display: none; }
  .nav-cta { display: inline-flex; width: 100%; justify-content: center; margin-top: 22px; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a.nav-link { width: 100%; padding: 14px 12px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav a.nav-link.active::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-radius: 0; padding: 0 0 0 14px; display: none; }
  .main-nav li.has-drop.open > .dropdown { display: block; }
  .has-drop:hover > .nav-link .caret { transform: none; }
  .has-drop.open > .nav-link .caret { transform: rotate(180deg); }
  .nav-toggle { display: block; z-index: 210; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-overlay { position: fixed; inset: 0; background: rgba(15,28,71,.5); opacity: 0; visibility: hidden; transition: var(--t); z-index: 150; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .about-grid, .join-grid, .chairman-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .chairman-grid { grid-template-columns: 1fr; }
  .chairman-photo { max-width: 320px; }
  .cards-grid, .event-grid, .news-grid, .team-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .tb-info { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .about-media .badge { right: 10px; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .cta-band .btn-row { justify-content: center; }
}
@media (max-width: 600px) {
  .partner-featured { grid-template-columns: 1fr; max-width: 320px; }
}
@media (max-width: 420px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-logo { min-height: 96px; padding: 18px 12px; }
  .partner-logo img { max-height: 48px; }
  .hero-actions .btn, .cta-band .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   SHARED HELPERS  (reusable eyebrow, tighter sub-heads, small buttons)
   ========================================================================== */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; font-size: .76rem;
  color: var(--teal-dark); background: var(--bg-soft);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
}
.sub-head { max-width: 760px; margin: 0 0 32px; }
.sub-head h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.sub-head p { color: var(--muted); margin-top: 10px; }
.btn-sm { padding: 9px 20px; font-size: .85rem; }

/* featured block meta + actions (research/events highlight) */
.about-copy .event-meta { margin: 20px 0 26px; gap: 14px 26px; }
.feature-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ev-actions { margin-top: 16px; }

/* publication / reports list — download arrow uses .notice-item .n-link */
.notice-item .n-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--teal-dark); background: var(--bg-soft);
  padding: 3px 10px; border-radius: 50px; margin-bottom: 6px;
}

/* ==========================================================================
   MEMBER PORTAL / DASHBOARD
   ========================================================================== */
.portal-head { background: var(--hero-grad); color: #fff; position: relative; overflow: hidden; }
.portal-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 88% 18%, rgba(95,208,191,.22), transparent 46%); }
.portal-head .container { position: relative; z-index: 2; padding: 46px 22px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.portal-head .avatar {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.3); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: #fff; flex: none;
}
.portal-head .ph-intro { flex: 1 1 280px; }
.portal-head .ph-intro .hello { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #cfdcef; font-family: var(--font-head); }
.portal-head .ph-intro h1 { color: #fff; font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 3px 0 12px; }
.portal-head .ph-tags { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.portal-head .ph-tag { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 50px; color: #eaf1fb; }
.portal-head .ph-tag svg { width: 14px; height: 14px; fill: var(--mint); }
.portal-head .ph-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.portal-grid { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.portal-main, .portal-aside { display: grid; gap: 30px; align-content: start; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-head h2 { font-size: 1.15rem; }
.panel-head a { font-size: .85rem; color: var(--teal-dark); font-family: var(--font-head); font-weight: 600; }

.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.action-tile { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-alt); transition: var(--t); }
.action-tile:hover { background: #fff; box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.action-tile .at-ico { width: 44px; height: 44px; border-radius: 11px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: var(--t); }
.action-tile:hover .at-ico { background: var(--teal); }
.action-tile .at-ico svg { width: 22px; height: 22px; fill: var(--teal-dark); transition: var(--t); }
.action-tile:hover .at-ico svg { fill: #fff; }
.action-tile strong { font-family: var(--font-head); color: var(--navy); font-size: .98rem; }
.action-tile span { color: var(--muted); font-size: .82rem; }

.member-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.member-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 8%, rgba(95,208,191,.32), transparent 55%); }
.member-card > * { position: relative; z-index: 2; }
.member-card .mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.member-card .mc-top img { height: 34px; width: auto; background: #fff; padding: 4px 6px; border-radius: 7px; }
.member-card .mc-verified { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-family: var(--font-head); font-weight: 600; background: rgba(95,208,191,.18); border: 1px solid rgba(95,208,191,.4); color: var(--mint); padding: 5px 11px; border-radius: 50px; }
.member-card .mc-verified svg { width: 13px; height: 13px; fill: var(--mint); }
.member-card .mc-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.member-card .mc-role { color: #cfe3f2; font-size: .87rem; margin-bottom: 20px; }
.member-card .mc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.member-card .mc-rows .lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #9fb8d8; margin-bottom: 2px; }
.member-card .mc-rows .val { font-family: var(--font-head); font-weight: 600; font-size: .92rem; }

.summary-list .row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.summary-list .row:last-child { border-bottom: none; }
.summary-list .row span { color: var(--muted); font-size: .9rem; }
.summary-list .row strong { font-family: var(--font-head); color: var(--navy); font-size: .92rem; text-align: right; }
.summary-list .pill { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-dark); }
.summary-list .pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.feed-item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.feed-item:first-child { padding-top: 0; }
.feed-item:last-child { border-bottom: none; padding-bottom: 0; }
.feed-item .f-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.feed-item .f-ico svg { width: 20px; height: 20px; fill: var(--teal-dark); }
.feed-item .f-body h4 { font-size: .98rem; margin-bottom: 2px; }
.feed-item .f-body p { color: var(--muted); font-size: .86rem; }
.feed-item .f-time { margin-left: auto; color: var(--muted); font-size: .8rem; white-space: nowrap; flex: none; padding-left: 10px; }

.progress { height: 8px; background: var(--bg-soft); border-radius: 50px; overflow: hidden; margin: 12px 0 8px; }
.progress > span { display: block; height: 100%; background: var(--teal); border-radius: 50px; }
.progress-note { color: var(--muted); font-size: .85rem; }

@media (max-width: 980px) {
  .portal-grid { grid-template-columns: 1fr; }
  .portal-aside { order: -1; }
}
@media (max-width: 600px) {
  .action-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-head .ph-actions { width: 100%; }
}
@media (max-width: 420px) {
  .action-grid { grid-template-columns: 1fr; }
}

/* Fixed-count rows (Vision/Mission, Leadership tiers): set columns on desktop, stack on phones */
.cards-grid.cards-2 { grid-template-columns: repeat(2, 1fr); }
.team-grid.team-2 { grid-template-columns: repeat(2, 1fr); }
.team-grid.team-3 { grid-template-columns: repeat(3, 1fr); }
.team-grid.team-1 { grid-template-columns: minmax(0, 280px); justify-content: center; }
@media (max-width: 760px) {
  .cards-grid.cards-2, .team-grid.team-2, .team-grid.team-3 { grid-template-columns: 1fr; }
}

/* Company / honorific lines on org cards */
.team-card .org { color: var(--muted); font-size: .78rem; margin-top: 5px; line-height: 1.4; }
.team-card h3 .hon { font-weight: 500; color: var(--muted); font-size: .8em; }

/* ==========================================================================
   MEMBERSHIP PRICING TIERS
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: var(--t);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.price-card.featured { border-color: var(--teal); box-shadow: var(--shadow-md); }
.pc-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: .75rem; letter-spacing: .03em; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.pc-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.35rem; }
.pc-for { color: var(--muted); font-size: .9rem; margin-top: 6px; min-height: 42px; }
.pc-amount { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 2.3rem; margin: 18px 0 2px; }
.pc-amount .cur { font-size: 1rem; font-weight: 600; color: var(--muted); margin-right: 5px; }
.pc-amount small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.pc-list { margin: 22px 0 28px; display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 24px; }
.pc-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: .94rem; }
.pc-list li::before { content: '\2713'; color: var(--teal); font-weight: 700; flex: none; }
.pc-btn { margin-top: auto; width: 100%; justify-content: center; }
.plans-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 28px; max-width: 720px; margin-left: auto; margin-right: auto; }
@media (max-width: 920px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .pc-for { min-height: 0; }
}

/* ==========================================================================
   EVENT REGISTRATION
   ========================================================================== */
.reg-summary { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 28px; }
.reg-summary .rs-item { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .94rem; }
.reg-summary .rs-item svg { width: 18px; height: 18px; fill: var(--teal-dark); flex: none; }
.reg-summary .rs-item strong { color: var(--navy); font-family: var(--font-head); font-weight: 600; }
.reg-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 6px; margin-bottom: 30px; }
.reg-toggle button {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--muted);
  background: transparent; border: 0; border-radius: 999px; padding: 12px 16px; cursor: pointer; transition: var(--t);
}
.reg-toggle button.active { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.reg-pane { display: none; }
.reg-pane.active { display: block; }
.fee-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; margin: 4px 0 22px; }
.fee-box .fee-row { display: flex; justify-content: space-between; align-items: center; font-size: .94rem; color: var(--muted); }
.fee-box .fee-row + .fee-row { margin-top: 8px; }
.fee-box .fee-total { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.fee-box .fee-total span:last-child { color: var(--teal-dark); }
.reg-note { display: flex; gap: 10px; align-items: flex-start; background: rgba(22,169,154,.08); border: 1px solid rgba(22,169,154,.25); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text); font-size: .9rem; margin: 4px 0 22px; }
.reg-note svg { width: 20px; height: 20px; fill: var(--teal-dark); flex: none; }

/* Form consent line */
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--teal); }

/* Auth pages (login / signup) */
.auth-wrap { max-width: 560px; margin: 0 auto; }
.auth-error { background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.3); color: #c0392b; border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 20px; font-size: .9rem; }
.auth-error div + div { margin-top: 4px; }

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS  (classes added by main.js; no-JS stays visible)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ==========================================================================
   HERO RIGHT-SIDE BRAND MEDALLION
   ========================================================================== */
.hero-top { display: grid; grid-template-columns: 1.12fr .88fr; gap: 36px; align-items: center; }
.hero-inner { max-width: 660px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-logo-ring {
  position: relative; width: min(370px, 80%); aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffffff, #e9f2f6 78%);
  box-shadow: 0 34px 80px rgba(8,18,46,.40), inset 0 1px 0 rgba(255,255,255,.9);
  display: grid; place-items: center;
}
.hero-logo-ring::before { content: ''; position: absolute; inset: -20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); }
.hero-logo-ring::after  { content: ''; position: absolute; inset: -42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.hero-logo-mark { width: 56%; height: auto; filter: drop-shadow(0 10px 18px rgba(10,30,60,.18)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo-ring { animation: heroFloat 6s ease-in-out infinite; }
  @keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
}
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-inner { max-width: none; }
}

/* ==========================================================================
   VISION & MISSION  (enlarged foundation cards)
   ========================================================================== */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1060px; margin: 0 auto; }
.vm-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 50px 46px; box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--t);
}
.vm-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--teal), var(--mint)); }
.vm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.vm-ico { width: 78px; height: 78px; border-radius: 20px; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 26px; }
.vm-ico svg { width: 40px; height: 40px; fill: var(--teal-dark); }
.vm-card h3 { font-size: 1.75rem; margin-bottom: 14px; }
.vm-card p { color: var(--muted); font-size: 1.13rem; line-height: 1.78; }
.vm-card.vm-mission::before { background: linear-gradient(180deg, var(--navy-light), var(--teal)); }
.vm-card.vm-mission .vm-ico { background: rgba(22,38,92,.07); }
.vm-card.vm-mission .vm-ico svg { fill: var(--navy); }
@media (max-width: 760px) {
  .vm-grid { grid-template-columns: 1fr; gap: 22px; }
  .vm-card { padding: 34px 26px; }
  .vm-card h3 { font-size: 1.45rem; }
  .vm-card p { font-size: 1.04rem; }
}

/* ==========================================================================
   FEATURED PEOPLE CARDS  (patrons / committee / leadership — stand-out style)
   ========================================================================== */
.team-feature { gap: 28px; }
.team-feature .team-card {
  position: relative; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.team-feature .team-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--teal), var(--mint));
}
.team-feature .team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.team-feature .team-card img { transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.team-feature .team-card:hover img { transform: scale(1.06); }
.team-feature .team-card .tc-body { padding: 22px 18px 26px; }
.team-feature .team-card .role {
  display: inline-block; background: var(--bg-soft); color: var(--teal-dark);
  padding: 5px 14px; border-radius: 50px; font-size: .78rem; margin-top: 10px;
}
.team-feature .team-card .org { margin-top: 10px; }

/* Managing Committee: center an incomplete final row (e.g. 11 members -> last row of 3) */
#committee .team-grid { display: flex; flex-wrap: wrap; justify-content: center; }
#committee .team-grid .team-card { width: calc(25% - 21.5px); }
@media (max-width: 1024px) { #committee .team-grid .team-card { width: calc(50% - 15px); } }
@media (max-width: 760px)  { #committee .team-grid .team-card { width: 100%; } }

/* ==========================================================================
   FLIP CARDS  (founders / leadership — click to reveal message)
   ========================================================================== */
.flip-deck { gap: 28px; }
.flip-card {
  perspective: 1200px; background: transparent; border: 0; padding: 0; cursor: pointer;
  outline: none; transition: transform .35s ease;
}
.flip-card:hover { transform: translateY(-6px); }
.flip-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 18px; }
.flip-inner { position: relative; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2,.7,.2,1); }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { border-radius: 16px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip-front { position: relative; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md); text-align: center; }
.flip-front::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--mint)); z-index: 2; }
.flip-front img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.flip-front .tc-body { padding: 22px 18px 26px; }
.flip-front .role { display: inline-block; background: var(--bg-soft); color: var(--teal-dark); padding: 5px 14px; border-radius: 50px; font-size: .78rem; margin-top: 10px; }
.flip-hint {
  position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(15,28,71,.55); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: .68rem;
  letter-spacing: .04em; padding: 5px 11px; border-radius: 50px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.flip-hint svg { width: 13px; height: 13px; fill: #fff; }
.flip-back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  background: var(--hero-grad); color: #fff; padding: 30px 26px;
  display: flex; flex-direction: column; justify-content: center; text-align: left;
}
.flip-back::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 12%, rgba(95,208,191,.30), transparent 55%); }
.flip-back > * { position: relative; z-index: 2; }
.flip-back .fq-mark { font-family: var(--font-head); font-size: 3.4rem; line-height: .5; color: var(--mint); margin-bottom: 12px; }
.flip-back .fb-emblem { width: 46px; height: 46px; margin-bottom: 16px; background: #fff; border-radius: 12px; padding: 5px; }
.flip-back .fq { font-size: 1.04rem; line-height: 1.6; color: #eef4fc; margin-bottom: 18px; }
.flip-back-info .fq { font-size: .98rem; color: #dce8f7; }
.flip-back .fb-meta strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.flip-back .fb-meta span { color: #b8cce8; font-size: .84rem; }

/* ===== Events page: centered hero + registration line ===== */
.page-hero-center .container { text-align: center; }
.page-hero-center .breadcrumb { justify-content: center; }
.hero-reg { margin-top: 16px; color: #e7eefb; font-size: 1.04rem; }
.hero-reg a { color: var(--mint); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-reg a:hover { color: #fff; }

/* ===== Gallery placeholder note (event photos coming soon) ===== */
.gallery-note {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 48px 40px;
  position: relative; overflow: hidden;
}
.gallery-note::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.gallery-note .gn-ico { width: 74px; height: 74px; margin: 6px auto 20px; border-radius: 18px; background: var(--bg-alt); display: grid; place-items: center; }
.gallery-note .gn-ico svg { width: 38px; height: 38px; fill: var(--teal-dark); }
.gallery-note h3 { font-size: 1.5rem; margin-bottom: 10px; }
.gallery-note > p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; line-height: 1.65; }
.gn-points { list-style: none; display: grid; gap: 12px; max-width: 540px; margin: 0 auto; text-align: left; }
.gn-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--navy); font-size: .98rem; line-height: 1.5; }
.gn-points li svg { flex: none; width: 20px; height: 20px; fill: #fff; background: var(--teal); border-radius: 50%; padding: 4px; margin-top: 1px; }
@media (max-width: 560px) { .gallery-note { padding: 36px 22px; } }

/* ===== Members' Directory ===== */
.dir-search { position: relative; max-width: 480px; margin: 0 auto 36px; }
.dir-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: var(--muted); pointer-events: none; }
.dir-search input {
  width: 100%; padding: 14px 18px 14px 46px; border: 1px solid var(--border); border-radius: 50px;
  background: #fff; font-family: var(--font-body); font-size: .96rem; color: var(--navy); transition: var(--t);
}
.dir-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,169,154,.12); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 22px; }
.dir-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); transition: var(--t); display: flex; flex-direction: column;
}
.dir-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.dir-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dir-av {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}
.dir-tier { font-family: var(--font-head); font-weight: 600; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-dark); background: var(--bg-soft); padding: 5px 11px; border-radius: 50px; }
.dir-card h3 { font-size: 1.12rem; }
.dir-role { color: var(--muted); font-size: .9rem; margin: 3px 0 14px; }
.dir-meta { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.dir-meta li { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--navy); }
.dir-meta svg { flex: none; width: 16px; height: 16px; fill: var(--teal); }
.dir-msg { margin-top: auto; width: 100%; justify-content: center; gap: 8px; }
.dir-msg svg { width: 16px; height: 16px; fill: currentColor; }
.dir-empty { text-align: center; color: var(--muted); margin-top: 30px; }

/* ===== Member chat (demo) ===== */
.chat-backdrop { position: fixed; inset: 0; background: rgba(15,28,71,.42); z-index: 1200; opacity: 0; transition: opacity .25s ease; }
.chat-backdrop.show { opacity: 1; }
.chat-drawer {
  position: fixed; right: 26px; bottom: 26px; z-index: 1210; width: 370px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 52px); background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 26px 70px rgba(15,28,71,.34); display: flex; flex-direction: column;
  transform: translateY(24px) scale(.98); opacity: 0; transition: transform .26s cubic-bezier(.2,.7,.2,1), opacity .26s ease;
}
.chat-drawer.open { transform: none; opacity: 1; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--hero-grad); color: #fff; }
.chat-peer-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .98rem; background: rgba(255,255,255,.18); flex: none; }
.chat-peer { flex: 1 1 auto; min-width: 0; }
.chat-peer-name { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.2; }
.chat-peer-role { display: block; font-size: .78rem; color: #cfe0f3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-close { background: rgba(255,255,255,.14); border: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; transition: var(--t); }
.chat-close:hover { background: rgba(255,255,255,.28); }
.chat-close svg { width: 16px; height: 16px; fill: #fff; }
.chat-body { flex: 1 1 auto; overflow-y: auto; padding: 18px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 10px; }
.chat-meta { text-align: center; font-size: .72rem; color: var(--muted); margin: 4px 0; }
.chat-msg { display: flex; }
.chat-msg.in { justify-content: flex-start; }
.chat-msg.out { justify-content: flex-end; }
.chat-bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.45; box-shadow: var(--shadow-sm); }
.chat-msg.in .chat-bubble { background: #fff; color: var(--navy); border-bottom-left-radius: 5px; }
.chat-msg.out .chat-bubble { background: var(--teal); color: #fff; border-bottom-right-radius: 5px; }
.chat-typing .chat-bubble { display: flex; gap: 4px; align-items: center; padding: 13px 14px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: chatDot 1s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-input { display: flex; gap: 9px; padding: 12px 14px 6px; border-top: 1px solid var(--border); background: #fff; }
.chat-input input { flex: 1 1 auto; min-width: 0; padding: 11px 16px; border: 1px solid var(--border); border-radius: 50px; font-family: var(--font-body); font-size: .9rem; }
.chat-input input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,169,154,.12); }
.chat-input .btn { flex: none; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.chat-input .btn svg { width: 19px; height: 19px; fill: currentColor; }
.chat-demo-note { text-align: center; font-size: .7rem; color: var(--muted); padding: 4px 14px 12px; background: #fff; margin: 0; }
@media (max-width: 560px) {
  .chat-drawer { right: 0; bottom: 0; width: 100%; max-width: 100%; height: 80vh; border-radius: 18px 18px 0 0; }
}

/* ===== Member card: enlarged icon-only emblem ===== */
.member-card .mc-top img.mc-emblem { height: 60px; width: 60px; object-fit: contain; background: #fff; padding: 9px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }

/* ===== Member dashboard: photo avatar, business profile, sample panels ===== */
.portal-head .avatar.avatar-photo { overflow: hidden; padding: 0; background: #fff; }
.portal-head .avatar.avatar-photo img { width: 100%; height: 100%; object-fit: cover; }

.biz-profile { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.biz-logo { flex: none; width: 110px; height: 110px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-alt); display: grid; place-items: center; overflow: hidden; text-align: center; }
.biz-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.biz-logo span { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.biz-fields { flex: 1 1 240px; display: grid; gap: 0; }
.bf-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.bf-row:last-child { border-bottom: none; }
.bf-lbl { color: var(--muted); }
.bf-val { font-family: var(--font-head); font-weight: 600; color: var(--navy); text-align: right; word-break: break-word; }
.bf-val a { color: var(--teal-dark); }

.pill-soft { background: var(--bg-soft); color: var(--teal-dark); font-size: .72rem; font-family: var(--font-head); font-weight: 600; padding: 4px 11px; border-radius: 50px; }
.panel-note { color: var(--muted); font-size: .8rem; margin-top: 16px; }

.pay-table { display: grid; gap: 2px; }
.pay-row { display: grid; grid-template-columns: 1fr 1.7fr 1fr .7fr; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.pay-row.pay-head { font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--border); }
.pay-paid { color: var(--teal-dark); }
.pay-due { color: #c0392b; }

.vault-list { display: grid; gap: 12px; }
.vault-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-alt); transition: var(--t); }
.vault-item:hover { background: #fff; box-shadow: var(--shadow-sm); }
.vault-item .v-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.vault-item .v-ico svg { width: 20px; height: 20px; fill: var(--teal-dark); }
.vault-item .v-body { flex: 1 1 auto; min-width: 0; }
.vault-item .v-body h4 { font-size: .96rem; }
.vault-item .v-body p { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.vault-item .btn { flex: none; }
@media (max-width: 560px) {
  .pay-row { grid-template-columns: 1fr 1fr; }
  .pay-row span:nth-child(2) { order: 3; grid-column: 1 / -1; color: var(--muted); }
}

/* ===== Auth/profile forms: optional labels, hints, uploads, disclaimer ===== */
.auth-wrap-wide { max-width: 760px; margin: 0 auto; }
.form-group .opt { color: var(--muted); font-weight: 400; font-size: .82em; }
.field-hint { display: block; color: var(--muted); font-size: .78rem; margin-top: 6px; }
.form-group input[type="file"] { padding: 10px 12px; background: var(--bg-alt); cursor: pointer; }
.form-group input[disabled] { background: var(--bg-soft); color: var(--muted); cursor: not-allowed; }
.upload-field { display: flex; align-items: center; gap: 14px; }
.upload-field input[type="file"] { flex: 1 1 auto; min-width: 0; }
.upload-prev { flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); background: var(--bg-alt); display: grid; place-items: center; text-align: center; }
.upload-prev.upload-prev-logo { border-radius: var(--radius-sm); }
.upload-prev img { width: 100%; height: 100%; object-fit: cover; }
.upload-prev.upload-prev-logo img { object-fit: contain; padding: 6px; }
.upload-prev span { color: var(--muted); font-size: .68rem; }
.form-disclaimer { font-size: .82rem; color: var(--muted); background: var(--bg-alt); border-left: 3px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 16px; margin: 0 0 20px; line-height: 1.55; }
.form-disclaimer strong { color: var(--navy); }
.auth-error-note { margin-top: 8px; font-size: .82rem; opacity: .85; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ===== Custom select arrow (replaces the default browser chevron) ===== */
.form-group select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-color: var(--bg-alt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235a6680'%3E%3Cpath d='M12 16 6 10h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 12px;
  padding-right: 42px;
}
.form-group select:focus {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a99a'%3E%3Cpath d='M12 16 6 10h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 12px;
}
.form-group select::-ms-expand { display: none; }
