/* =============================================================
   AOBDA – Main Stylesheet
   ============================================================= */

:root {
  --navy:        #1a5276;
  --navy-dark:   #0f2440;
  --navy-light:  #234e7a;
  --green:       #1a5276;
  --green-light: #388e3c;
  --green-pale:  #d6eaf8;
  --gold:        #c8901a;
  --gold-light:  #f5a623;
  --white:       #ffffff;
  --off-white:   #f8f9fc;
  --light-gray:  #eef0f4;
  --mid-gray:    #6b7280;
  --dark-gray:   #374151;
  --text:        #1f2937;
  --border:      #d1d5db;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.16);
  --radius:      6px;
  --radius-lg:   12px;
  --transition:  all .25s ease;
  --font-body:   'Source Sans 3', system-ui, sans-serif;
  --font-display:'Lora', Georgia, serif;
  --container:   1200px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--off-white); line-height: 1.65; }
img  { max-width: 100%; display: block; }
a    { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }
ul   { list-style: none; }

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* ── Top bar ────────────────────────────────────────────────── */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.8); font-size: .8rem; padding: .4rem 0; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar__right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: var(--gold-light); }
.topbar i { margin-right: .3rem; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; padding-bottom: .75rem; gap: 1rem;
}

/* ── Logo ───────────────────────────────────────────────────── */
.logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; text-decoration: none; }
.logo__img { height: 56px; width: 56px; object-fit: contain; flex-shrink: 0; display: block; }
.logo__text { display: flex; flex-direction: column; }
.logo__abbr { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.logo__full { font-size: .68rem; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .04em; max-width: 220px; line-height: 1.3; }

/* ── Main nav ───────────────────────────────────────────────── */
/* NOTE: NO overflow:hidden here — it clips dropdowns */
.main-nav > ul { display: flex; gap: 0; flex-wrap: nowrap; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block; padding: .9rem .75rem;
  color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
  transition: var(--transition); white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold-light); }
.main-nav a i { font-size: .65rem; vertical-align: middle; margin-left: .25rem; }

/* ── Dropdown ───────────────────────────────────────────────── */
.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-dark);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 9999;
  pointer-events: none;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.main-nav .dropdown li a {
  padding: .65rem 1.25rem;
  text-transform: none;
  font-size: .85rem;
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.main-nav .dropdown li:last-child a { border-bottom: none; }
.main-nav .dropdown li a:hover { background: rgba(255,255,255,.08); color: var(--gold-light); }

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: .3rem; flex-shrink: 0; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: rgba(255,255,255,.9); border-radius: 2px; transition: var(--transition); }

/* ── Hero / Slider ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white); position: relative; overflow: hidden;
  min-height: 520px; display: flex; align-items: center;
}
.hero::before { content: ''; position: absolute; inset: 0; background: url('/assets/img/pattern.svg') center/cover; opacity: .06; }
.hero__slide { display: none; width: 100%; }
.hero__slide.active { display: flex; align-items: center; min-height: 520px; }
.hero__slide--bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero__slide--overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,36,64,.88) 0%, rgba(15,36,64,.55) 60%, transparent 100%);
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; max-width: 680px; padding: 4rem 0; }
.hero__tag { display: inline-block; background: var(--green); color: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 2rem; margin-bottom: 1.2rem; }
.hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem,4vw,2.9rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.1rem; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 2rem; }
.hero__dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 10; }
.hero__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: var(--transition); }
.hero__dot.active { background: var(--gold-light); transform: scale(1.3); }
.hero--static { min-height: 320px; }
.hero--static .hero__content { padding: 3rem 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .75rem 1.8rem; border-radius: var(--radius); font-size: .9rem; font-weight: 700; letter-spacing: .03em; cursor: pointer; border: 2px solid transparent; transition: var(--transition); text-decoration: none; }
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-light); border-color: var(--green-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-sm { padding: .45rem 1.1rem; font-size: .8rem; }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section--gray { background: var(--light-gray); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.section-header__eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-bottom: .6rem; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.1rem); color: var(--navy); margin-bottom: .75rem; }
.section-header p { color: var(--mid-gray); font-size: 1.05rem; }
.section-header--left { text-align: left; margin-left: 0; }

/* ── Cards ──────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card__img-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); display: flex; align-items: center; justify-content: center; }
.card__img-placeholder i { font-size: 2.5rem; color: rgba(255,255,255,.4); }
.card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card__meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: .77rem; color: var(--mid-gray); margin-bottom: .6rem; }
.card__category { background: var(--green-pale); color: var(--green); padding: .2rem .6rem; border-radius: 2rem; font-weight: 700; font-size: .73rem; text-transform: uppercase; letter-spacing: .04em; }
.card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin-bottom: .6rem; line-height: 1.35; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--green); }
.card p { color: var(--mid-gray); font-size: .9rem; flex: 1; margin-bottom: 1rem; }
.card__footer { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); }
.card--featured { border-left: 4px solid var(--gold); }

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar { background: var(--navy); color: var(--white); padding: 2.5rem 0; }
.stats-bar__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stat__number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--gold-light); }
.stat__label { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: .25rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { background: var(--light-gray); padding: .8rem 0; border-bottom: 1px solid var(--border); }
.breadcrumb ol { display: flex; gap: .5rem; align-items: center; font-size: .83rem; color: var(--mid-gray); }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; }
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--green); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius); font-size: .88rem; font-weight: 600; border: 1px solid var(--border); color: var(--navy); background: var(--white); transition: var(--transition); }
.pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .disabled { color: var(--border); pointer-events: none; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge { display: inline-block; padding: .25rem .65rem; border-radius: 2rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-navy    { background: var(--navy); color: var(--white); }

/* ── Page layout ────────────────────────────────────────────── */
.page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; padding: 3rem 0; }
.sidebar-widget { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-widget h3 { font-family: var(--font-display); font-size: 1rem; color: var(--navy); border-bottom: 2px solid var(--green); padding-bottom: .5rem; margin-bottom: 1rem; }
.sidebar-list li { border-bottom: 1px solid var(--border); padding: .6rem 0; font-size: .88rem; }
.sidebar-list li:last-child { border: none; }

/* ── Prose ───────────────────────────────────────────────────── */
.prose h2, .prose h3 { font-family: var(--font-display); color: var(--navy); margin: 1.5rem 0 .75rem; }
.prose p   { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li  { margin-bottom: .4rem; }
.prose img { border-radius: var(--radius); margin: 1rem 0; }
.prose blockquote { border-left: 4px solid var(--green); padding: .75rem 1.25rem; background: var(--green-pale); margin: 1rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { padding: .6rem 1rem; border: 1px solid var(--border); }
.prose th { background: var(--navy); color: var(--white); text-align: left; }
.prose tr:nth-child(even) { background: var(--light-gray); }

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__overlay { position: absolute; inset: 0; background: rgba(13,47,68,.75); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; color: var(--white); padding: 1rem; text-align: center; }
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay i { color: var(--white); font-size: 1.5rem; }

/* ── Events ──────────────────────────────────────────────────── */
.event-card { display: flex; gap: 1.25rem; padding: 1.25rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 1rem; transition: var(--transition); }
.event-card:hover { box-shadow: var(--shadow-md); }
.event-card__date { flex-shrink: 0; width: 68px; height: 68px; border-radius: var(--radius); background: var(--navy); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event-card__day { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-card__month { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); }
.event-card__body { flex: 1; }
.event-card h3 { font-family: var(--font-display); color: var(--navy); font-size: 1rem; margin-bottom: .35rem; }
.event-card p  { font-size: .87rem; color: var(--mid-gray); }

/* ── Documents ───────────────────────────────────────────────── */
.doc-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: .75rem; transition: var(--transition); }
.doc-item:hover { box-shadow: var(--shadow-md); }
.doc-item__icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-item__icon i { color: var(--white); font-size: 1.2rem; }
.doc-item__info { flex: 1; }
.doc-item__title { font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: .2rem; }
.doc-item__meta  { font-size: .78rem; color: var(--mid-gray); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; padding: 3.5rem 0 2.5rem; }
.footer__heading { font-family: var(--font-display); font-size: 1rem; color: var(--white); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--green); }
.footer__links li { margin-bottom: .55rem; }
.footer__links a { color: rgba(255,255,255,.7); font-size: .88rem; }
.footer__links a:hover { color: var(--gold-light); }
.footer__address { font-size: .88rem; margin-top: .75rem; line-height: 1.7; }
.footer__contact li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .55rem; font-size: .88rem; }
.footer__contact i { margin-top: .2rem; color: var(--gold-light); flex-shrink: 0; }
.footer__social { display: flex; gap: .75rem; margin-top: 1.1rem; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); transition: var(--transition); }
.footer__social a:hover { background: var(--green); color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.1rem 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ── Services ────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem 1.25rem; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; align-items: center; color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-bottom-color: var(--green); color: var(--text); }
.service-card__icon { width: 64px; height: 64px; border-radius: 50%; background: #e9ecef; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: var(--transition); }
.service-card:hover .service-card__icon { background: #dde1e5; }
.service-card__icon i { font-size: 1.5rem; color: var(--navy); transition: var(--transition); }
.service-card:hover .service-card__icon i { color: var(--navy); }
.service-card h3 { font-family: var(--font-display); font-size: .95rem; color: var(--navy); margin-bottom: .5rem; line-height: 1.3; }
.service-card p { font-size: .82rem; color: var(--mid-gray); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.service-card__link { font-size: .8rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em; }
.service-card__link i { font-size: .7rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(2,1fr); }
  .card-grid--4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid  { grid-template-columns: repeat(3,1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-dark);
    padding-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    /* NO overflow:hidden — would clip sub-menus */
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }

  /* Mobile dropdown — static, toggled by JS */
  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,.2);
    display: none;
    pointer-events: auto;
    min-width: 0;
  }
  .main-nav .has-dropdown.open .dropdown { display: block; }
  .main-nav .dropdown li a { padding: .75rem 1.5rem .75rem 2.5rem; font-size: .88rem; }

  .page-layout { grid-template-columns: 1fr; }
  .card-grid--3, .card-grid--4, .card-grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .hero { min-height: 380px; }
}

@media (max-width: 480px) {
  .topbar__inner { flex-direction: column; text-align: center; }
  .stats-bar__grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── About section ───────────────────────────────────────────── */
.about-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-links-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }