/* =========================================================================
   SBES — Society of Biological and Environmental Sciences
   Main stylesheet
   ========================================================================= */

:root {
  --color-primary: #1B2A4A;      /* Deep Navy - dominant institutional tone */
  --color-primary-dark: #101B33;
  --color-primary-light: #2E4270;
  --color-secondary: #2E7D32;    /* Forest Green - accent, ties to the Society seal */
  --color-secondary-dark: #1B5E20;
  --color-accent: #C9971F;       /* Muted Gold */
  --color-accent-dark: #A67816;
  --color-white: #FFFFFF;
  --color-ink: #1C2230;
  --color-text: #3F4657;
  --color-muted: #707786;
  --color-bg: #FAFAFB;
  --color-bg-alt: #F1F2F5;
  --color-border: #E3E5EA;
  --shadow-sm: 0 1px 3px rgba(20, 24, 35, 0.08);
  --shadow-md: 0 6px 20px rgba(20, 24, 35, 0.10);
  --shadow-lg: 0 16px 40px rgba(20, 24, 35, 0.16);
  --radius: 10px;
  --radius-lg: 16px;
  --container-w: 1200px;
  --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Themed scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--color-primary-light) var(--color-bg-alt); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb {
  background-color: var(--color-primary-light);
  border-radius: 999px;
  border: 2px solid var(--color-bg-alt);
}
::-webkit-scrollbar-thumb:hover { background-color: var(--color-primary); }
::-webkit-scrollbar-corner { background: var(--color-bg-alt); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  line-height: 1.28;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--color-secondary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.3em; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .6em;
}
.section-head p { color: var(--color-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .75em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent { background: var(--color-accent); color: #3a2a00; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--color-accent-dark); color: #2a1e00; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-outline-dark { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline-dark:hover { background: var(--color-primary); color: #fff; }
.btn-secondary { background: var(--color-secondary); color: #fff; }
.btn-secondary:hover { background: var(--color-secondary-dark); color: #fff; }
.btn-sm { padding: .5em 1.1em; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-top {
  background: var(--color-primary-dark);
  color: #dbe1ee;
  font-size: .82rem;
}
.header-top .container { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.header-top a { color: #dbe1ee; }
.header-top a:hover { color: var(--color-accent); }
.header-top-links { display: flex; gap: 18px; flex-wrap: wrap; }
.header-top-links span, .header-top-links a { display: inline-flex; align-items: center; gap: 6px; }
.header-top-social { display: flex; align-items: center; gap: 18px; font-size: inherit; }
.header-top-social a { font-size: inherit; }

.header-main { padding: 14px 0; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 52px; height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text .brand-name { font-family: var(--font-heading); font-weight: 700; color: var(--color-ink); font-size: 1.15rem; line-height: 1.2; }
.brand-text .brand-tagline { font-size: .72rem; color: var(--color-muted); letter-spacing: .03em; }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > ul { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; gap: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .main-nav > ul > li > button.nav-toggle {
  display: flex; align-items: center; gap: 3px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--color-ink); font-weight: 600; font-size: .87rem;
  background: none; border: none; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.is-open > button.nav-toggle,
.main-nav > ul > li > a.active { color: var(--color-primary); background: var(--color-bg-alt); }
.main-nav > ul > li > button.nav-toggle span { font-size: .65rem; opacity: .7; }

.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 240px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
  padding: 8px; list-style: none; margin: 6px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease; z-index: 100;
}
.main-nav li.is-open .dropdown,
.main-nav li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block; padding: 9px 12px; border-radius: 6px; color: var(--color-text); font-size: .9rem; font-weight: 500;
}
.dropdown li a:hover { background: var(--color-bg-alt); color: var(--color-primary); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--color-border);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-burger span { width: 20px; height: 2px; background: var(--color-ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-secondary-dark) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(201,151,31,.25), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 40%);
}
.hero .container { position: relative; padding: 44px 20px 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.hero-inner { max-width: 720px; }
.hero-art { width: 280px; flex-shrink: 0; opacity: .9; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }

.hero-art .ha-ring { transform-origin: 210px 210px; animation: ha-rotate 40s linear infinite; }
.hero-art .ha-ring-2 { animation-duration: 30s; animation-direction: reverse; }
.hero-art .ha-pulse { transform-origin: 210px 210px; animation: ha-zoom 6s ease-in-out infinite; }
.hero-art .ha-star { animation: ha-twinkle 2.6s ease-in-out infinite; transform-origin: center; }
.hero-art .ha-star-a { animation-delay: 0s; }
.hero-art .ha-star-b { animation-delay: .5s; animation-duration: 3.2s; }
.hero-art .ha-star-c { animation-delay: 1s; animation-duration: 2.2s; }
.hero-art .ha-star-d { animation-delay: 1.6s; animation-duration: 3.6s; }
.hero-art .ha-star-e { animation-delay: .8s; animation-duration: 2.8s; }
.hero-art .ha-star-f { animation-delay: 2s; animation-duration: 3s; }

@keyframes ha-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ha-zoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@keyframes ha-twinkle {
  0%, 100% { opacity: .25; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .ha-ring, .hero-art .ha-pulse, .hero-art .ha-star { animation: none; }
}
.hero .eyebrow { color: var(--color-accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; }
.hero h1 { color: #fff; margin: .35em 0 .4em; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.hero p.lead { color: rgba(255,255,255,.9); font-size: 1rem; max-width: 600px; margin-bottom: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; max-width: 720px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stats .stat { text-align: left; }
.hero-stats .stat strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: #fff; }
.hero-stats .stat span { font-size: .78rem; color: rgba(255,255,255,.78); }
.hero-wave { display: block; width: 100%; margin-top: -2px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--color-bg-alt); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: .4em; font-size: 1.15rem; }
.card p { color: var(--color-muted); margin-bottom: 0; }

.icon-strip { display: flex; align-items: center; justify-content: center; gap: 10px; }

/* ---------- Person / Council cards ---------- */
.person-card { text-align: center; }
.person-photo {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; font-weight: 700;
  font-family: var(--font-heading); overflow: hidden; border: 4px solid var(--color-bg-alt);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card h3 { margin-bottom: .15em; font-size: 1.05rem; }
.person-card .role { color: var(--color-primary); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.person-card .institution { color: var(--color-muted); font-size: .85rem; margin-top: .3em; }

/* ---------- News / Event cards ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-thumb { aspect-ratio: 16/10; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; color: var(--color-primary); font-size: 2.2rem; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-date { font-size: .78rem; color: var(--color-secondary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5em; }
.post-body h3 { font-size: 1.05rem; margin-bottom: .5em; }
.post-body p { color: var(--color-muted); font-size: .92rem; flex: 1; }
.post-link { font-weight: 700; font-size: .88rem; margin-top: 10px; }

.badge { display: inline-block; padding: .3em .8em; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge-green { background: #E6F4EA; color: var(--color-primary-dark); }
.badge-blue { background: #E3EEFC; color: var(--color-secondary-dark); }
.badge-gold { background: #FFF4DA; color: #8a5a00; }
.badge-gray { background: #EEF1EE; color: var(--color-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-secondary-dark), var(--color-secondary));
  color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 24px; }

/* ---------- Timeline / values ---------- */
.value-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.value-item:last-child { border-bottom: none; }
.value-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); margin-top: 8px; flex-shrink: 0; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--color-ink); }
label .req { color: #c0392b; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date],
select, textarea {
  width: 100%; padding: .78em .9em; border: 1.5px solid var(--color-border); border-radius: 8px;
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--color-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(46,125,50,.15);
}
textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: .8rem; color: var(--color-muted); margin-top: 6px; }
.form-error { font-size: .82rem; color: #c0392b; margin-top: 6px; font-weight: 600; }
.field-invalid { border-color: #c0392b !important; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { margin: 0; font-weight: 500; }

/* honeypot field - hidden from real users, bots often fill it */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: .92rem; font-weight: 500; }
.alert-success { background: #E6F4EA; color: #1e5c25; border: 1px solid #b7dfc0; }
.alert-error { background: #FCEBEA; color: #8a2c25; border: 1px solid #f0bab5; }
.alert-info { background: #E3EEFC; color: #0d3d78; border: 1px solid #b8d3f5; }

/* ---------- Sidebar / page layout ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-secondary-dark));
  color: #fff; padding: 20px 0;
}
.page-hero .container { position: relative; padding-right: 200px; }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.page-hero p { margin: .3em 0 0; font-size: .9rem; max-width: 640px; }
.breadcrumb {
  position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
  font-size: .8rem; color: rgba(255,255,255,.75); text-align: right; white-space: nowrap;
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--color-accent); }

@media (max-width: 640px) {
  .page-hero .container { padding-right: 20px; }
  .breadcrumb { position: static; transform: none; display: block; margin-bottom: 6px; text-align: left; }
}

.content-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; align-items: start; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--color-text); }
.sidebar-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.sidebar-card h4 { margin-bottom: 12px; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--color-primary); }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card ul li { padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: .9rem; }
.sidebar-card ul li:last-child { border-bottom: none; }

table.data-table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
table.data-table th, table.data-table td { padding: 10px 14px; border: 1px solid var(--color-border); text-align: left; font-size: .92rem; }
table.data-table th { background: var(--color-bg-alt); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: #161D2E; color: #C7CCDA; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand-name { color: #fff; }
.site-footer .brand-text .brand-tagline { color: #9BA3B8; }
.footer-about { color: #A6ACBE; font-size: .9rem; margin-top: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #C7CCDA;
}
.footer-social a:hover { background: var(--color-accent); color: #2a1e00; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #A6ACBE; font-size: .9rem; }
.site-footer a:hover { color: var(--color-accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: #A6ACBE; font-size: .9rem; }
.newsletter-form { display: flex; gap: 8px; margin-top: 8px; }
.newsletter-form input { flex: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: #7D839A; }
.footer-bottom a { color: #7D839A; }
.footer-bottom a:hover { color: var(--color-accent); }

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease; z-index: 900;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--color-primary-dark); }

/* ---------- Misc pages ---------- */
.stat-card { text-align: center; padding: 30px 20px; }
.stat-card strong { display: block; font-family: var(--font-heading); font-size: 2.2rem; color: var(--color-primary); }
.stat-card span { color: var(--color-muted); font-size: .88rem; }

.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font-family: var(--font-heading); font-size: 6rem; color: var(--color-primary); font-weight: 700; line-height: 1; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--color-border); color: var(--color-text); font-weight: 600; font-size: .9rem; }
.pagination a:hover { background: var(--color-bg-alt); }
.pagination .active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.download-item { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 12px; }
.download-item .file-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--color-bg-alt); color: var(--color-secondary); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.download-item .file-meta { flex: 1; }
.download-item .file-meta strong { display: block; font-size: .95rem; }
.download-item .file-meta span { font-size: .8rem; color: var(--color-muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-figure { margin: 0; }
.gallery-item { border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; background: var(--color-bg-alt); border: 0; padding: 0; cursor: pointer; display: block; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-figcaption { margin-top: 8px; font-size: .85rem; color: var(--color-text); text-align: center; }

/* Gallery lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 12, 18, 0.94); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox-img { max-width: min(90vw, 1100px); max-height: 84vh; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .9rem; padding: 0 60px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.1); border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 22px; right: 22px; width: 42px; height: 42px; font-size: 1.6rem; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.6rem; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.3rem; }
  .lightbox-caption { padding: 0 50px; font-size: .82rem; }
}

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

.dashboard-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 70vh; }
.dashboard-sidebar { background: #fff; border-right: 1px solid var(--color-border); padding: 24px 16px; }
.dashboard-sidebar h5 { text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; color: var(--color-muted); margin: 18px 12px 8px; }
.dashboard-sidebar ul { list-style: none; padding: 0; margin: 0; }
.dashboard-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--color-text); font-weight: 600; font-size: .9rem; }
.dashboard-sidebar a:hover, .dashboard-sidebar a.active { background: var(--color-bg-alt); color: var(--color-primary); }
.dashboard-main { padding: 32px; }
.dashboard-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }

.admin-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--color-border); }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); text-align: left; font-size: .9rem; }
table.admin-table th { background: var(--color-bg-alt); font-weight: 700; white-space: nowrap; }
table.admin-table tr:last-child td { border-bottom: none; }
.action-btns { display: flex; gap: 8px; }
.action-btns button, .action-btns a { padding: 6px 12px; font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-art { width: 200px; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar { border-right: none; border-bottom: 1px solid var(--color-border); }
}

@media (max-width: 768px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column;
    padding: 16px; overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease; z-index: 999; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; width: 100%; align-items: stretch; }
  .main-nav > ul > li > a, .main-nav > ul > li > button.nav-toggle { width: 100%; justify-content: space-between; }
  .dropdown { position: static; box-shadow: none; border: none; padding-left: 14px; opacity: 1; visibility: visible; transform: none; display: none; }
  .main-nav li.is-open .dropdown { display: block; }
  .nav-burger { display: flex; }
  .header-cta .btn span.label { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .header-top .container { flex-direction: column; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
