:root {
  --bs-primary: #2A5A3B;
  --bs-primary-rgb: 42, 90, 59;
  --primary-hover: #1E422B;
  --bs-secondary: #D4AF37;
  --gold-hover: #B5952F;
  --bs-light: #F8F9FA;
  --bs-dark: #1A231E;
  --bs-body-color: #1A231E;
  --bs-body-bg: #F8F9FA;
  --bs-link-color: #2A5A3B;
  --bs-link-hover-color: #1E422B;
  --surface: #ffffff;
  --border-soft: rgba(42, 90, 59, 0.10);
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--bs-dark);
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

.text-primary { color: var(--bs-primary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }
.text-gold { color: var(--bs-secondary) !important; }
.bg-gold { background-color: var(--bs-secondary) !important; }
.bg-cream { background-color: #FBFAF6 !important; }

::selection { background: var(--bs-secondary); color: #1A231E; }

/* ---------- Buttons ---------- */
.btn { border-radius: 6px; font-weight: 600; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn-primary { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(42,90,59,.25); }
.btn-gold { background-color: var(--bs-secondary); border-color: var(--bs-secondary); color: #1A231E; }
.btn-gold:hover { background-color: var(--gold-hover); color: #fff; transform: translateY(-2px); }
.btn-outline-primary { color: var(--bs-primary); border-color: var(--bs-primary); }
.btn-outline-primary:hover { background-color: var(--bs-primary); border-color: var(--bs-primary); transform: translateY(-2px); }
.btn:focus-visible { box-shadow: 0 0 0 .25rem rgba(42,90,59,.25); }

/* ---------- Topbar ---------- */
.topbar { background: var(--bs-primary); color: #fff; font-size: .85rem; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }

/* ---------- Navbar ---------- */
.site-navbar { background: #fff; border-bottom: 3px solid var(--bs-secondary); box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.site-navbar .navbar-brand { display: flex; align-items: center; gap: .75rem; }
.site-navbar .brand-logo { width: 52px; height: 52px; object-fit: contain; }
.site-navbar .brand-text { line-height: 1.1; }
.site-navbar .brand-text strong { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--bs-primary); display: block; }
.site-navbar .brand-text small { font-size: .72rem; color: #6c757d; letter-spacing: .02em; }
.site-navbar .nav-link { font-weight: 600; color: #1A231E; padding: .5rem .85rem !important; position: relative; }
.site-navbar .nav-link:hover, .site-navbar .nav-link.active { color: var(--bs-primary); }
.site-navbar .nav-link.active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 2px; height: 2px; background: var(--bs-secondary); }
.dropdown-menu { border: 1px solid var(--border-soft); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.08); animation: fadeSlide .18s ease; }
.dropdown-item:active { background: var(--bs-primary); }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(26,35,30,.86), rgba(26,35,30,.45)); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero .lead { max-width: 620px; color: rgba(255,255,255,.92); }
.hero .badge-official { background: rgba(212,175,55,.2); border: 1px solid var(--bs-secondary); color: #fff; padding: .4rem 1rem; border-radius: 50rem; font-size: .8rem; letter-spacing: .08em; }

/* ---------- Section ---------- */
.section { padding: 4.5rem 0; }
.section-title { position: relative; margin-bottom: 2.5rem; }
.section-title .eyebrow { color: var(--bs-secondary); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.divider-gold { width: 60px; height: 3px; background: var(--bs-secondary); border: none; opacity: 1; margin: .75rem 0 0; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface); transition: transform .3s ease, box-shadow .3s ease; overflow: hidden; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.article-card .card-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.article-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .card-img-wrap img { transform: scale(1.06); }
.article-card .cat-badge { position: absolute; top: .75rem; left: .75rem; background: var(--bs-primary); color: #fff; font-size: .72rem; font-weight: 600; padding: .3rem .7rem; border-radius: 50rem; }
.article-card .card-title { font-size: 1.05rem; line-height: 1.35; }
.article-card .card-title a { color: var(--bs-dark); }
.article-card .card-title a:hover { color: var(--bs-primary); }
.meta { font-size: .8rem; color: #6c757d; }

.feature-card { position: relative; border-radius: 14px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #fff; }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,35,30,.92), rgba(26,35,30,.1)); }
.feature-card .fc-body { position: relative; z-index: 2; padding: 2rem; }
.feature-card h3 { color: #fff; }

/* ---------- Welcome ---------- */
.welcome-card { background: linear-gradient(135deg, var(--bs-primary), var(--primary-hover)); color: #fff; border-radius: 14px; padding: 2.5rem; }
.welcome-card h2 { color: #fff; }
.welcome-card .signature { color: var(--bs-secondary); font-family: 'Playfair Display', serif; font-style: italic; }

/* ---------- Agenda ---------- */
.agenda-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px dashed var(--border-soft); }
.agenda-date { flex: 0 0 64px; text-align: center; background: var(--bs-primary); color: #fff; border-radius: 8px; padding: .5rem; }
.agenda-date .day { font-size: 1.5rem; font-weight: 800; line-height: 1; font-family: 'Playfair Display', serif; }
.agenda-date .mon { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-grid a { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.08); }

/* ---------- Org tree ---------- */
.org-node { text-align: center; }
.org-card { background: #fff; border: 1px solid var(--border-soft); border-top: 4px solid var(--bs-secondary); border-radius: 10px; padding: 1.25rem; display: inline-block; min-width: 200px; transition: transform .25s ease, box-shadow .25s ease; }
.org-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.org-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; border: 3px solid var(--bs-primary); margin-bottom: .75rem; }
.org-card .name { font-weight: 700; color: var(--bs-dark); }
.org-card .position { color: var(--bs-primary); font-size: .85rem; font-weight: 600; }
.org-children { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- Article content (prose) ---------- */
.prose { font-size: 1.08rem; line-height: 1.85; }
.prose p { margin-bottom: 1.3rem; }
.prose h2, .prose h3 { margin: 2rem 0 1rem; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 1rem 0; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { text-align: center; color: #6c757d; font-size: .9rem; margin-top: .5rem; }
.prose blockquote { border-left: 4px solid var(--bs-secondary); background: #FBFAF6; padding: 1rem 1.5rem; font-style: italic; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.prose ul, .prose ol { margin-bottom: 1.3rem; }
.prose iframe { max-width: 100%; border-radius: 10px; aspect-ratio: 16/9; width: 100%; }

/* ---------- Page header ---------- */
.page-header { background: linear-gradient(rgba(26,35,30,.82), rgba(26,35,30,.82)), var(--header-img, none); background-size: cover; background-position: center; color: #fff; padding: 4rem 0 3rem; }
.page-header.plain { background: var(--bs-primary); }
.page-header h1 { color: #fff; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); }
.page-header .breadcrumb a { color: rgba(255,255,255,.85); }
.page-header .breadcrumb .active { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #1A231E; color: rgba(255,255,255,.75); padding: 3.5rem 0 0; }
.site-footer h5 { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--bs-secondary); }
.site-footer .social-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background .25s ease, transform .25s ease; }
.site-footer .social-btn:hover { background: var(--bs-secondary); color: #1A231E; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding: 1.25rem 0; font-size: .85rem; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

@media (max-width: 991px) {
  .hero { min-height: 60vh; }
  .site-navbar .navbar-nav { padding-top: .5rem; }
}
