/* =========================================================================
   Pakistan Orthopaedic Association — stylesheet (modern edition)
   Palette pulled from the POA crest: deep green + white, gold accent.
   ========================================================================= */

:root {
  --poa-green: #0b7a3c;
  --poa-green-mid: #0a6633;
  --poa-green-dark: #073d1c;
  --poa-green-light: #eaf7ef;
  --poa-gold: #d4af5a;
  --poa-gold-dark: #b5903e;
  --text: #1c2622;
  --muted: #647169;
  --border: #e3ebe6;
  --danger: #b3261e;
  --success: #1e7e34;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(7,61,28,.06);
  --shadow: 0 10px 30px rgba(7,61,28,.09);
  --shadow-lg: 0 20px 50px rgba(7,61,28,.16);
  --max-width: 1320px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--poa-green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--poa-green-dark); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 {
  line-height: 1.25; color: var(--poa-green-dark);
  font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600; letter-spacing: -.01em;
}
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--poa-gold); color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: .08s; }
.reveal-2 { transition-delay: .16s; }
.reveal-3 { transition-delay: .24s; }
.reveal-4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Top bar ---------- */
.topbar { background: var(--poa-green-dark); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; flex-wrap: wrap; gap: 6px; }
.topbar-contact a { color: #fff; margin-right: 18px; opacity: .88; transition: opacity .2s; }
.topbar-contact a:hover { opacity: 1; color: #fff; text-decoration: none; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.1);
  opacity: .9; transition: all .25s var(--ease);
}
.topbar-social a:hover { opacity: 1; background: var(--poa-gold); transform: translateY(-2px); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border); transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); transition: transform .25s var(--ease); }
.brand:hover { text-decoration: none; transform: translateY(-1px); }
.brand img { height: 54px; width: auto; filter: drop-shadow(0 3px 6px rgba(7,61,28,.15)); }
.brand-text strong { color: var(--poa-green-dark); font-size: 16px; line-height: 1.25; font-family: 'Poppins', sans-serif; }

.nav-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 22px; background: none; border: 0; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 3px; background: var(--poa-green-dark); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 16px 15px; color: var(--poa-green-dark); font-weight: 600; font-size: 15px;
}
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 10px; height: 2px; background: var(--poa-gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--poa-green); text-decoration: none; }
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after { transform: scaleX(1); }
.main-nav .chevron { color: var(--poa-gold-dark); transition: transform .28s var(--ease); flex-shrink: 0; }
.has-dropdown:hover .chevron,
.has-dropdown:focus-within .chevron,
.has-dropdown.open .chevron { transform: rotate(180deg); }

.dropdown {
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98);
  display: block; position: absolute; top: 100%; left: 0; transform-origin: top left;
  background: #fff; width: 260px;
  box-shadow: var(--shadow-lg); border-radius: var(--radius); border-top: 3px solid var(--poa-gold);
  padding: 10px 0; z-index: 60; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(6px) scale(1); }
.dropdown li a {
  display: flex; align-items: center; gap: 11px; padding: 11px 20px; color: var(--text); font-size: 14.5px;
  font-weight: 500; border-left: 3px solid transparent; transition: background .2s var(--ease), padding-left .2s var(--ease), color .2s;
}
.dropdown li a:hover { background: var(--poa-green-light); color: var(--poa-green-dark); text-decoration: none; border-left-color: var(--poa-gold); padding-left: 24px; }
.dropdown .dd-icon { font-size: 15px; line-height: 1; width: 20px; text-align: center; flex-shrink: 0; }
.dropdown li.dd-divider { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(212,175,90,.28), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(135deg, var(--poa-green-dark), var(--poa-green-mid) 55%, var(--poa-green));
  color: #fff; padding: 90px 0 80px; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: radial-gradient(circle, #fff 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}
.hero-shape { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; opacity: .35; animation: float 9s ease-in-out infinite; }
.hero-shape.s1 { width: 220px; height: 220px; background: rgba(212,175,90,.35); top: -60px; left: -60px; }
.hero-shape.s2 { width: 160px; height: 160px; background: rgba(255,255,255,.12); bottom: -40px; right: 8%; animation-delay: -3s; }
.hero-shape.s3 { width: 90px; height: 90px; background: rgba(212,175,90,.25); top: 30%; right: 20%; animation-delay: -6s; }
@keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-22px) translateX(10px); } }

.hero h1 {
  color: #fff; font-size: clamp(2rem, 4vw, 2.7rem); margin: 0 0 16px; font-weight: 700;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3); padding: 6px 16px; border-radius: 30px; font-size: .82rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px;
}
.hero p { max-width: 700px; margin: 0 auto 30px; font-size: 1.12rem; opacity: .95; }
.hero .btn { margin: 0 6px 8px; }

.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; margin-top: 48px; }
.stats .stat strong {
  display: block; font-size: 2.4rem; font-weight: 700; font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fff, var(--poa-gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats .stat span { font-size: .9rem; opacity: .9; letter-spacing: .02em; }

/* ---------- Sections & cards ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--poa-green-light); position: relative; }
.section-title { text-align: center; margin-bottom: 10px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-title .accent { color: var(--poa-gold-dark); }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.eyebrow-line {
  display: block; text-align: center; color: var(--poa-gold-dark); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 8px;
}

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(212,175,90,.5); }
a.card:hover h3 { color: var(--poa-green); }
.card h3 { margin-top: 0; transition: color .2s; }
.icon-circle {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--poa-green-light), #fff);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px;
  transition: transform .3s var(--ease);
}
.card:hover .icon-circle { transform: rotate(-6deg) scale(1.08); }

.avatar {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--poa-green), var(--poa-green-dark));
  display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff;
  font-weight: 700; overflow: hidden; box-shadow: 0 8px 20px rgba(7,61,28,.25); border: 3px solid #fff;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.board-card { text-align: center; }
.board-card .avatar { margin: 0 auto 14px; }
.board-card .position { color: var(--poa-gold-dark); font-weight: 600; font-size: .9rem; }

.profile-photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.profile-avatar { width: 84px; height: 84px; font-size: 26px; }

.timeline { border-left: 3px solid var(--poa-green); margin-left: 10px; padding-left: 30px; position: relative; }
.timeline-item { position: relative; margin-bottom: 38px; }
.timeline-item::before {
  content: ""; position: absolute; left: -37px; top: 4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--poa-gold); border: 3px solid var(--poa-green); box-shadow: 0 0 0 4px #fff;
}
.timeline-item .year {
  display: inline-block; color: #fff; background: var(--poa-green); font-weight: 700; font-size: .82rem;
  padding: 3px 12px; border-radius: 20px; margin-bottom: 8px;
}

.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--poa-green-light); }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.news-card:hover .news-card-thumb img { transform: scale(1.06); }
.news-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.badge {
  display: inline-block; background: linear-gradient(135deg, var(--poa-gold), var(--poa-gold-dark));
  color: #fff; font-size: .75rem; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; font-weight: 600;
}
.news-card .badge { align-self: flex-start; }
.news-card h3 { margin-bottom: 4px; }
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--poa-green); text-decoration: none; }
.news-card .date { color: var(--muted); font-size: .85rem; }
.news-card p { flex: 1; }
.view-details {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--poa-green);
  margin-top: 6px;
}
.view-details span { transition: transform .25s var(--ease); }
.news-card:hover .view-details span, .view-details:hover span { transform: translateX(4px); }

.news-detail-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px;
}
@media (max-width: 640px) { .news-detail-card { padding: 22px; } }

.news-detail-hero-wrap { position: relative; margin: -34px -34px 24px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
@media (max-width: 640px) { .news-detail-hero-wrap { margin: -22px -22px 20px; } }
.news-detail-hero {
  width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; cursor: zoom-in;
}
.hero-view-full {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(4,28,14,.72); backdrop-filter: blur(3px); color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 30px; padding: 9px 16px; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all .2s var(--ease);
}
.hero-view-full:hover { background: var(--poa-green); border-color: var(--poa-green); transform: translateY(-2px); }

.news-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.news-detail-meta .badge { margin-bottom: 0; }
.news-detail-meta .meta-item { color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; }
.news-detail-meta .meta-item:not(:last-child)::after { content: "•"; margin-left: 14px; color: var(--border); }

.news-detail-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.share-label { font-weight: 700; color: var(--poa-green-dark); font-size: .88rem; margin-right: 2px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--poa-green-light); color: var(--poa-green-dark); border: none; cursor: pointer;
  transition: all .22s var(--ease);
}
.share-btn:hover { transform: translateY(-3px); color: #fff; box-shadow: var(--shadow-sm); }
.share-btn.share-facebook:hover { background: #1877f2; }
.share-btn.share-x:hover { background: #000; }
.share-btn.share-whatsapp:hover { background: #25d366; }
.share-btn.share-linkedin:hover { background: #0a66c2; }
.share-btn.share-email:hover { background: var(--poa-gold-dark); }
.share-btn.share-copy:hover { background: var(--poa-green); }
.copy-feedback { font-size: .82rem; color: var(--success); font-weight: 600; animation: pop-in .3s var(--ease); }
.news-detail-share-bottom-wrap .news-detail-share { border-top: none; margin-top: 8px; margin-bottom: 0; padding-top: 0; }

.news-detail-content { font-size: 1.05rem; color: var(--text); line-height: 1.8; }

/* ---------- Full-image lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(3,15,8,.92); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  animation: pop-in .25s var(--ease);
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 22px;
  line-height: 1; cursor: pointer; transition: all .2s var(--ease);
}
.lightbox-close:hover { background: var(--poa-gold); border-color: var(--poa-gold); transform: rotate(90deg); }

/* ---------- Forms ---------- */
.form-card {
  max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px;
}
.form-card-wide { max-width: 960px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--poa-green-dark); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px;
  font-family: inherit; width: 100%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); background: #fcfdfc;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--poa-green); box-shadow: 0 0 0 4px rgba(11,122,60,.12); background: #fff;
}
.field input[type="file"] {
  padding: 9px 10px; cursor: pointer; background: #fcfdfc;
}
.field input[type="file"]::file-selector-button {
  padding: 8px 16px; margin-right: 12px; border: none; border-radius: var(--radius-sm);
  background: var(--poa-green-light); color: var(--poa-green-dark); font-weight: 600; font-size: .85rem;
  cursor: pointer; transition: background .2s var(--ease);
}
.field input[type="file"]::file-selector-button:hover { background: var(--poa-green); color: #fff; }
.field-hint { font-size: .8rem; color: var(--muted); }
.form-section-title {
  font-family: 'Poppins', sans-serif; font-size: 1.1rem; color: var(--poa-green-dark);
  margin: 32px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--poa-green-light); position: relative;
}
.form-section-title:first-of-type { margin-top: 4px; }
.form-section-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--poa-gold); }
.form-msg { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .95rem; display: none; }
.form-msg.show { display: block; animation: pop-in .3s var(--ease); }
.form-msg.success { background: #e8f6ea; color: var(--success); border: 1px solid #bfe6c4; }
.form-msg.error { background: #fbeceb; color: var(--danger); border: 1px solid #f2c6c3; }

/* ---------- Membership type picker (pricing cards) ---------- */
.membership-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 10px; }
@media (max-width: 860px) { .membership-type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .membership-type-grid { grid-template-columns: 1fr; } }
.mtype-card {
  position: relative; display: flex; flex-direction: column; gap: 5px; text-align: left;
  padding: 20px 18px 18px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer;
  background: #fcfdfc; transition: all .25s var(--ease);
}
.mtype-card:hover { border-color: rgba(11,122,60,.4); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mtype-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.mtype-check {
  position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); background: #fff; color: transparent; font-size: .7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; transition: all .2s var(--ease);
}
.mtype-card.is-selected { border-color: var(--poa-green); background: var(--poa-green-light); box-shadow: 0 0 0 3px rgba(11,122,60,.1); }
.mtype-card.is-selected .mtype-check { background: var(--poa-green); border-color: var(--poa-green); color: #fff; }
.mtype-name { font-weight: 700; color: var(--poa-green-dark); font-size: 1.02rem; padding-right: 24px; }
.mtype-price { font-weight: 800; color: var(--poa-green); font-size: 1.2rem; font-family: 'Poppins', sans-serif; }
.mtype-period { font-size: .82rem; color: var(--muted); line-height: 1.4; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 30px; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; background: linear-gradient(135deg, var(--poa-gold), var(--poa-gold-dark));
  color: #fff; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
  box-shadow: 0 8px 20px rgba(212,175,90,.35);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(212,175,90,.45); text-decoration: none; filter: brightness(1.03); color: #fff; }
.btn:active { transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; box-shadow: none; color: #fff; }
.btn-green { background: linear-gradient(135deg, var(--poa-green), var(--poa-green-dark)); box-shadow: 0 8px 20px rgba(11,122,60,.3); }
.btn-green:hover { box-shadow: 0 14px 28px rgba(11,122,60,.4); }
.btn-block { width: 100%; text-align: center; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: .92rem; }
th { background: var(--poa-green-light); color: var(--poa-green-dark); font-weight: 700; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: #f7fbf8; }

/* ---------- Pagination ---------- */
.pagination-wrap { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pagination-info { color: var(--muted); font-size: .85rem; margin: 0; }
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 8px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: all .2s var(--ease);
}
.page-btn:hover:not(:disabled) { border-color: var(--poa-green); color: var(--poa-green); transform: translateY(-2px); }
.page-btn.active { background: var(--poa-green); border-color: var(--poa-green); color: #fff; }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }
.page-btn.page-nav { font-weight: 700; }
.page-ellipsis { color: var(--muted); padding: 0 4px; }

.search-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.search-bar input, .search-bar select {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.search-bar input:focus, .search-bar select:focus { outline: none; border-color: var(--poa-green); box-shadow: 0 0 0 4px rgba(11,122,60,.12); }
.search-bar input { flex: 1; min-width: 200px; }

/* ---------- History page: numbered objectives, org structure, chips, forums, liaisons ---------- */
.numbered-list { display: flex; flex-direction: column; gap: 18px; max-width: 820px; margin: 0 auto; }
.numbered-item { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.numbered-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.numbered-item .num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--poa-gold), var(--poa-gold-dark)); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif;
}
.numbered-item p { margin: 0; padding-top: 6px; }

.org-card { text-align: center; }
.org-card .org-count {
  font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--poa-green);
  display: block; margin: 6px 0;
}
.org-card h3 { font-size: 1.02rem; margin: 0; }
.org-card .org-basis { color: var(--muted); font-size: .85rem; }

.chip-light {
  display: inline-flex; align-items: center; gap: 8px; background: var(--poa-green-light);
  border: 1px solid var(--border); color: var(--poa-green-dark); padding: 10px 20px; border-radius: 30px;
  font-size: .92rem; font-weight: 600; transition: all .25s var(--ease);
}
.chip-light:hover { background: var(--poa-green); color: #fff; border-color: var(--poa-green); transform: translateY(-3px); }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.committee-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.committee-list li {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px; box-shadow: var(--shadow-sm); font-weight: 600; color: var(--poa-green-dark);
}
.committee-list .num-badge {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--poa-green-light); color: var(--poa-green);
  display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700;
}

.forum-card .position { color: var(--poa-gold-dark); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 10px; }
.forum-card h3 { margin: 4px 0 2px; }
.forum-card .forum-email { font-size: .88rem; word-break: break-word; }
.forum-card .coordinator { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.forum-card .coordinator-label { font-weight: 600; color: var(--poa-green-dark); }
.forum-members {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border);
  font-size: .84rem; color: var(--muted); line-height: 1.6;
}
.forum-members strong { color: var(--poa-green-dark); }

.liaison-list { display: flex; flex-direction: column; gap: 10px; }
.liaison-list li {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 18px; font-weight: 600; color: var(--poa-green-dark); box-shadow: var(--shadow-sm);
}
.liaison-list .flag { flex-shrink: 0; font-size: 1.1rem; }

/* ---------- Page header ---------- */
.page-header {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--poa-green-light), #fff 70%);
  padding: 54px 0 46px; text-align: center; border-bottom: 3px solid var(--poa-gold);
}
.page-header h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.breadcrumb { color: var(--muted); font-size: .9rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--poa-green); }

.status-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700; }
.status-active { background: #e8f6ea; color: var(--success); }
.status-pending { background: #fff6e0; color: #8a6d00; }
.status-expired, .status-rejected { background: #fbeceb; color: var(--danger); }

.dashboard-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.dashboard-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.dashboard-row:last-child { border-bottom: none; }
.dashboard-row span:first-child { color: var(--muted); }

.empty-state { text-align: center; color: var(--muted); padding: 44px 20px; }

/* ---------- Join the Community bar + Membership Benefits (before footer) ---------- */
.join-bar {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(212,175,90,.28), transparent 60%),
    linear-gradient(135deg, var(--poa-green-dark), var(--poa-green-mid) 60%, var(--poa-green));
  color: #fff; padding: 68px 0 60px; text-align: center;
}
.join-bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .1;
  background-image: radial-gradient(circle, #fff 1.4px, transparent 1.4px); background-size: 26px 26px;
}
.join-bar h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.join-bar > .container > p { max-width: 640px; margin: 0 auto 30px; opacity: .95; font-size: 1.05rem; }
.join-bar-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 8px 20px; border-radius: 30px;
  font-size: .88rem; font-weight: 600; transition: all .25s var(--ease);
}
.chip:hover { background: var(--poa-gold); border-color: var(--poa-gold); transform: translateY(-3px); color: #fff; text-decoration: none; }

.benefits-section { background: var(--poa-green-light); padding: 76px 0 84px; position: relative; overflow: hidden; }
.benefits-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(7,61,28,.12) 1.5px, transparent 1.5px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.benefits-grid { margin-top: 46px; position: relative; z-index: 1; gap: 28px; }
.benefit-card {
  text-align: left; overflow: hidden; padding-top: 32px;
}
.benefit-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--poa-green), var(--poa-gold)); transform: scaleX(0);
  transform-origin: left; transition: transform .45s var(--ease);
}
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-num {
  position: absolute; top: 20px; right: 24px; font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 1.7rem; color: var(--poa-green-light); -webkit-text-stroke: 1px rgba(7,61,28,.18); opacity: .9;
}
.benefit-icon {
  background: linear-gradient(135deg, var(--poa-green), var(--poa-green-dark)); color: #fff;
  width: 60px; height: 60px; border-radius: 18px; font-size: 27px; border: none;
  box-shadow: 0 10px 22px rgba(7,61,28,.22);
}
.benefit-card:hover .icon-circle.benefit-icon { transform: rotate(-6deg) scale(1.08); }
.benefit-card h3 { margin: 4px 0 0; font-size: 1.15rem; }
.benefit-list { margin-top: 14px; }
.benefit-list li {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; color: var(--text); font-size: .95rem;
  border-bottom: 1px dashed var(--border);
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-list li::before {
  content: "✓"; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--poa-green-light); color: var(--poa-green-dark); font-weight: 800; font-size: .7rem;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* ---------- Footer ---------- */
.footer-wave { display: block; line-height: 0; margin-bottom: -1px; }
.footer-wave svg { display: block; width: 100%; height: 56px; }
.site-footer { background: linear-gradient(180deg, var(--poa-green-dark), #052312); color: #cfe3d5; margin-top: 0; position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; padding: 50px 20px 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 60px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .92; }
.site-footer h4 { color: #fff; margin-top: 0; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--poa-gold); }
.footer-links li { margin-bottom: 9px; }
.footer-links a, .footer-social a { color: #cfe3d5; }
.footer-links a { position: relative; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%; line-height: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  transition: all .25s var(--ease);
}
.footer-social a svg { display: block; }
.footer-social a:hover { background: var(--poa-gold); border-color: var(--poa-gold); color: #052312; transform: translateY(-3px); }
address { font-style: normal; }
.footer-bottom { background: #041c0e; text-align: center; padding: 16px 0; font-size: .85rem; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--poa-green), var(--poa-green-dark)); color: #fff; border: none;
  box-shadow: var(--shadow-lg); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s var(--ease); z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Responsive nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    box-shadow: var(--shadow); border-top: 1px solid var(--border); max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .main-nav.open { display: block; animation: pop-in .25s var(--ease); }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 0; }
  .main-nav > ul > li > a { padding: 13px 20px; }
  .main-nav > ul > li > a::after { display: none; }
  .dropdown { position: static; box-shadow: none; border-top: none; opacity: 1; visibility: visible; transform: none; display: none; padding-left: 14px; width: auto; }
  .has-dropdown.open .dropdown { display: block; }
  .header-inner { position: relative; }
}
