/* ============================================================
   Primăria Comunei Concești – Stylesheet
   Design: Modern, Premium, Institutional
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #1a3a6c;   /* deep institutional blue */
  --primary-dk: #122850;
  --primary-lt: #2654a0;
  --gold:       #c8a44c;
  --gold-lt:    #dbbe7a;
  --accent:     #4a90d9;
  --success:    #28a745;
  --bg:         #f4f6f9;
  --bg-white:   #ffffff;
  --text:       #2c2c2c;
  --text-muted: #6c757d;
  --border:     #dee2e6;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.15);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: .25s ease;
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --container:  1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--primary); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-white { color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-lt); color: #fff; border-color: var(--primary-lt); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.btn-sm { padding: .5rem 1.2rem; font-size: .875rem; }

/* ---- Section utilities ---- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg-white); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h1,.section-dark h2,.section-dark h3,.section-dark h4 { color: #fff; }

.section-header { margin-bottom: 48px; text-align: center; }
.section-header .label {
  display: inline-block;
  background: rgba(26,58,108,.1);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-dark .section-header .label { background: rgba(255,255,255,.15); color: var(--gold-lt); }
.section-header .divider {
  width: 60px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ---- Grid ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }

/* ---- Cards ---- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 28px; }
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: rgba(26,58,108,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--primary);
}
.card-title { margin-bottom: 8px; }
.card-text { color: var(--text-muted); font-size: .93rem; margin-bottom: 0; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--primary-dk);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--gold);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: var(--gold-lt); }
.topbar .item { display: flex; align-items: center; gap: 6px; }
.topbar .item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar { padding: 0; }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-emblem {
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-text .name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.logo-text .sub {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--primary); background: rgba(26,58,108,.07); }
.nav-menu > li > a .chevron { font-size: .6rem; margin-left: 2px; transition: transform var(--transition); }
.nav-menu > li:hover > a .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 8px 12px;
  font-size: .88rem;
  color: var(--text);
  border-radius: 6px;
  transition: all var(--transition);
}
.dropdown li a:hover { background: rgba(26,58,108,.07); color: var(--primary); padding-left: 18px; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 50%, var(--primary-lt) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
}
.hero-pattern {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,.04) 100%);
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--gold-lt);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 20px; font-size: clamp(2rem,4vw,2.8rem); }
.hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}
.hero-stats .container {
  display: flex;
  align-items: stretch;
}
.stat-item {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-item:last-child { border-right: none; }
.stat-item .number { font-size: 1.6rem; font-weight: 800; color: var(--gold-lt); display: block; }
.stat-item .label { font-size: .75rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
   QUICK LINKS BAR
   ============================================================ */
.quicklinks {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 24px 0;
  border-bottom: 3px solid var(--gold);
}
.quicklinks .container { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.quicklink-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition);
  flex: 1; min-width: 140px; max-width: 200px;
  justify-content: center;
  text-align: center;
}
.quicklink-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26,58,108,.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.quicklink-item .icon { font-size: 1.4rem; }

/* ============================================================
   ANUNȚURI RECENTE
   ============================================================ */
.announcements-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.announcement-list { display: flex; flex-direction: column; gap: 16px; }
.announcement-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}
.announcement-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.ann-date {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 8px 12px;
  text-align: center;
  min-width: 56px;
  flex-shrink: 0;
}
.ann-date .day { font-size: 1.4rem; font-weight: 800; display: block; line-height: 1; }
.ann-date .month { font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.ann-info h4 { font-size: 1rem; margin-bottom: 4px; }
.ann-info p { font-size: .85rem; color: var(--text-muted); margin: 0; }
.ann-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 50px;
  margin-bottom: 4px;
}
.tag-urgent { background: #fff0f0; color: #c0392b; }
.tag-info { background: #e8f4fd; color: var(--accent); }
.tag-doc { background: #f0f9f0; color: var(--success); }
.tag-event { background: #fff8e1; color: var(--gold); }

/* Sidebar widget */
.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}
.widget-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  font-size: .95rem;
  display: flex; align-items: center; gap: 8px;
}
.widget-body { padding: 16px; }
.widget-body li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.widget-body li:last-child { border-bottom: none; }
.widget-body a { color: var(--text); }
.widget-body a:hover { color: var(--primary); }
.widget-date { font-size: .75rem; color: var(--text-muted); display: block; margin-bottom: 2px; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-top-color: var(--gold); }
.service-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,58,108,.1), rgba(26,58,108,.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  color: var(--primary);
  transition: all var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); color: var(--gold-lt); }
.service-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.service-card p { color: var(--text-muted); font-size: .88rem; margin-bottom: 16px; }

/* ============================================================
   DOCUMENTS SECTION
   ============================================================ */
.doc-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.doc-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.doc-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: #fff0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: #e74c3c;
}
.doc-info { flex: 1; }
.doc-info h4 { font-size: .9rem; margin-bottom: 2px; }
.doc-info span { font-size: .78rem; color: var(--text-muted); }
.doc-size { font-size: .75rem; color: var(--text-muted); }

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.project-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.5);
  position: relative;
  overflow: hidden;
}
.project-status {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.status-active { background: #e8f8ed; color: #1e7e34; }
.status-planned { background: #fff8e1; color: #d4a017; }
.status-done { background: #e8f4fd; color: var(--accent); }
.project-body { padding: 20px; }
.project-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.project-body p { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.project-meta { display: flex; gap: 16px; font-size: .78rem; color: var(--text-muted); }
.project-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 180px);
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dk), var(--primary-lt));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; font-size: 4rem; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(26,58,108,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  color: #fff; font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ============================================================
   CONTACT / MAP SECTION
   ============================================================ */
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.contact-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.contact-card .icon {
  font-size: 2rem; margin-bottom: 12px; color: var(--gold-lt);
}
.contact-card h4 { color: #fff; margin-bottom: 8px; }
.contact-card p, .contact-card a { color: rgba(255,255,255,.8); font-size: .9rem; }
.contact-card a:hover { color: var(--gold-lt); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dk);
  color: rgba(255,255,255,.75);
}
.footer-main { padding: 64px 0 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo-emblem { background: rgba(255,255,255,.1); }
.footer-brand .logo-text .name { color: #fff; }
.footer-brand .logo-text .sub { color: rgba(255,255,255,.5); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .875rem; margin-top: 16px; line-height: 1.7; }
.footer-col h5 { color: #fff; font-size: .9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold-lt); }
.footer-bottom {
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--gold-lt); }

/* ============================================================
   INNER PAGES – Page header
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .875rem; color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a:hover { color: var(--gold-lt); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.4); }

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-nav {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-nav-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
}
.sidebar-nav ul { padding: 8px; }
.sidebar-nav ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .875rem;
  color: var(--text);
  transition: all var(--transition);
}
.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
  background: rgba(26,58,108,.08);
  color: var(--primary);
  padding-left: 18px;
}
.sidebar-nav ul li a.active { font-weight: 600; }

/* ============================================================
   PERSON CARDS (Primar, Viceprimar, Secretar)
   ============================================================ */
.person-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: stretch;
}
.person-avatar {
  width: 180px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,.4);
  flex-shrink: 0;
}
.person-info { padding: 28px 32px; }
.person-title {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 6px;
}
.person-name { font-size: 1.5rem; margin-bottom: 6px; }
.person-info p { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.person-contacts { display: flex; gap: 16px; flex-wrap: wrap; }
.person-contacts a { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--primary); }

/* ============================================================
   ACCORDIONS
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 8px; }
.accordion-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  background: none; border: none; width: 100%;
  text-align: left;
  font-size: .95rem;
  transition: background var(--transition);
}
.accordion-header:hover { background: rgba(26,58,108,.04); color: var(--primary); }
.accordion-header.active { color: var(--primary); background: rgba(26,58,108,.05); }
.accordion-icon { font-size: .8rem; transition: transform var(--transition); flex-shrink: 0; }
.accordion-header.active .accordion-icon { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 20px 20px; color: var(--text-muted); font-size: .9rem; }
.accordion-body.open { display: block; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--bg-white); }
thead th {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:hover { background: rgba(26,58,108,.03); }
tbody td { padding: 13px 18px; font-size: .88rem; color: var(--text); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase;
}
.badge-success { background: #e8f8ed; color: #1e7e34; }
.badge-warning { background: #fff8e1; color: #d4a017; }
.badge-info { background: #e8f4fd; color: var(--accent); }

/* ============================================================
   SEARCH / FILTER BAR
   ============================================================ */
.search-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.search-input {
  flex: 1; min-width: 200px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .9rem;
  outline: none;
  font-family: var(--font);
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--primary); }
.filter-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .9rem;
  background: var(--bg-white);
  outline: none;
  cursor: pointer;
  font-family: var(--font);
  color: var(--text);
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--primary); }

/* ============================================================
   INFO BOXES
   ============================================================ */
.info-box {
  border-radius: var(--radius);
  padding: 20px 24px;
  border-left: 5px solid;
  margin-bottom: 20px;
}
.info-box-info { background: #e8f4fd; border-color: var(--accent); }
.info-box-warning { background: #fff8e1; border-color: var(--gold); }
.info-box-success { background: #e8f8ed; border-color: var(--success); }
.info-box h4 { margin-bottom: 6px; font-size: .95rem; }
.info-box p { margin: 0; font-size: .875rem; color: var(--text-muted); }

/* ============================================================
   PROGRAM WORK HOURS
   ============================================================ */
.program-table { width: 100%; }
.program-table tr:nth-child(even) { background: rgba(26,58,108,.03); }
.program-table td { padding: 10px 14px; font-size: .875rem; }
.program-table td:first-child { font-weight: 600; color: var(--primary); width: 130px; }
.program-closed { color: #e74c3c; font-weight: 600; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  font-size: 1.1rem;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--gold); transform: translateY(-2px); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--primary-dk);
  color: rgba(255,255,255,.85);
  padding: 16px 0;
  z-index: 998;
  border-top: 3px solid var(--gold);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.cookie-banner p { margin: 0; font-size: .875rem; }
.cookie-banner .actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .contact-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .announcements-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; }
  .gallery-item:first-child { grid-column: 1; grid-row: 1; }
  .hero { padding-bottom: 175px; }
  .hero-stats .container { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .person-card { flex-direction: column; }
  .person-avatar { width: 100%; height: 120px; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .topbar .topbar-right { display: none; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--gold);
    gap: 2px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 16px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(26,58,108,.04); margin-top: 4px; }
}
@media (max-width: 480px) {
  .hero { min-height: 500px; }
  .quicklinks .container { gap: 8px; }
  .quicklink-item { min-width: 120px; font-size: .8rem; padding: 10px 14px; }
  .btn { padding: .65rem 1.4rem; font-size: .875rem; }
}

/* ============================================================
   ANIMATIONS & MODERN ENHANCEMENTS
   ============================================================ */

/* --- Keyframes --- */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInLeft {
  from { opacity: 0; translate: -28px 0; }
  to   { opacity: 1; translate: none; }
}
@keyframes revealFadeUp {
  from { opacity: 0; translate: 0 28px; }
  to   { opacity: 1; translate: none; }
}
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes heroDots {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,164,76,.35); }
  60%       { box-shadow: 0 0 0 10px rgba(200,164,76,0); }
}
@keyframes shimmer {
  from { transform: translateX(-150%); }
  to   { transform: translateX(150%); }
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  40%       { transform: translateY(-5px) scale(1.1); }
  70%       { transform: translateY(-2px) scale(1.05); }
}
@keyframes dividerGrow {
  from { width: 0; opacity: 0; }
  to   { width: 60px; opacity: 1; }
}

/* --- Page entrance --- */
body { animation: pageFadeIn .4s ease both; }

/* --- Hero animated gradient & drifting dot pattern --- */
.hero {
  background: linear-gradient(135deg, #0d2040, #122850, #1a3a6c, #2654a0, #1e4580, #122850);
  background-size: 400% 400%;
  animation: heroGradient 20s ease infinite;
}
.hero::before { animation: heroDots 28s linear infinite; }

/* --- Hero content staggered entrance --- */
.hero-badge   { animation: fadeInLeft  .65s ease .05s both, pulseBadge 3s ease 1.2s infinite; }
.hero h1      { animation: revealFadeUp .7s  ease .15s both; }
.hero p       { animation: revealFadeUp .7s  ease .3s  both; }
.hero-actions { animation: revealFadeUp .7s  ease .45s both; }
.hero-stats   { animation: revealFadeUp .7s  ease .6s  both; }

/* --- Glassmorphism header when scrolled --- */
.site-header { transition: background .3s ease, box-shadow .3s ease; }
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,.12);
}

/* --- Nav underline slide on hover / active --- */
.nav-menu > li > a { position: relative; }
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after { transform: scaleX(1); }

/* --- Shimmer sweep on hover --- */
.service-card,
.quicklink-item { position: relative; overflow: hidden; }
.btn            { position: relative; overflow: hidden; }

.service-card::after,
.project-card::after,
.quicklink-item::after,
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  translate: -100% 0;
  pointer-events: none;
}
.service-card:hover::after,
.project-card:hover::after,
.quicklink-item:hover::after,
.btn:hover::after { animation: shimmer .55s ease; }

/* --- Quick-link icon bounce --- */
.quicklink-item:hover .icon { display: inline-block; animation: iconBounce .5s ease; }

/* --- Announcement card gold accent on hover --- */
.announcement-card:hover { border-left-color: var(--gold); }

/* --- Contact card lift on hover --- */
.contact-card { transition: transform .25s ease, background .25s ease; }
.contact-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.15); }

/* --- Animated section divider (triggered by JS) --- */
.section-header .divider.animated {
  animation: dividerGrow .65s ease .25s both;
}

/* --- Scroll reveal classes (use translate/scale to avoid transform conflicts with hover) --- */
.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity .6s ease var(--reveal-delay, 0s),
              translate .6s ease var(--reveal-delay, 0s);
}
.reveal-left {
  opacity: 0;
  translate: -24px 0;
  transition: opacity .6s ease var(--reveal-delay, 0s),
              translate .6s ease var(--reveal-delay, 0s);
}
.reveal-scale {
  opacity: 0;
  scale: .92;
  transition: opacity .6s ease var(--reveal-delay, 0s),
              scale .6s ease var(--reveal-delay, 0s);
}
.reveal.visible,
.reveal-left.visible { opacity: 1; translate: none; }
.reveal-scale.visible { opacity: 1; scale: 1; }

/* --- Enhanced scroll-to-top button --- */
.scroll-top { background: linear-gradient(135deg, var(--primary), var(--primary-lt)); }
.scroll-top:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(200,164,76,.4);
}

/* --- Logo emblem glow on hover --- */
.logo:hover .logo-emblem { box-shadow: 0 0 0 6px rgba(200,164,76,.2); }

/* --- Reduced motion safety --- */
@media (prefers-reduced-motion: reduce) {
  body,
  .hero, .hero::before,
  .hero-badge, .hero h1, .hero p, .hero-actions, .hero-stats,
  .service-card::after, .project-card::after,
  .quicklink-item::after, .btn::after,
  .section-header .divider.animated {
    animation: none !important;
  }
  .reveal, .reveal-left, .reveal-scale {
    opacity: 1 !important;
    translate: none !important;
    scale: 1 !important;
    transition: none !important;
  }
}
