/* ==========================================================================
   EWS visual refresh — public website
   ==========================================================================
   Loaded after master.min.css / responsive.css in
   resources/views/layouts/website.blade.php. Purely visual: typography,
   spacing, color, shadows and hover states layered on top of the existing
   markup — no page structure or behavior changes.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand: #045AA6;
  --brand-dark: #033f78;
  --brand-darker: #032e58;
  --brand-light: #eaf3fb;
  --brand-rgb: 4, 90, 166;

  --ews-radius-sm: 0.5rem;
  --ews-radius: 0.85rem;
  --ews-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07);
  --ews-shadow: 0 4px 16px rgba(4, 90, 166, 0.10), 0 2px 6px rgba(15, 23, 42, 0.06);
  --ews-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.16);
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #263445;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  transition: color .15s ease-in-out;
}

/* --------------------------------------------------------------------
   Header (Partials/header.blade.php) -- consolidated from three stacked
   bands (white utility strip / big centered brand band / separate navy
   navbar) into two: a slim utility strip, then one navbar that carries
   the brand lockup and the primary nav together. No banner photo (the
   old background was a Tanzanian flag image) -- solid brand gradient
   throughout instead.
   -------------------------------------------------------------------- */
.ews-utility-bar {
  background: #021c37;
  padding: 0.45rem 0;
  font-size: 0.82rem;
}

.ews-utility-link {
  color: rgba(255, 255, 255, 0.72);
  padding: 0 0.6rem;
  white-space: nowrap;
}

.ews-utility-link:hover {
  color: #ffffff;
}

.ews-utility-link-cta {
  color: #f3cb6a;
  font-weight: 600;
}

.ews-utility-link-cta:hover {
  color: #ffe6a3;
}

.ews-main-nav {
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
    linear-gradient(115deg, #023763 0%, #045AA6 70%, #0a6fc7 100%);
  border-bottom: 3px solid #d4a94a;
  box-shadow: var(--ews-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.ews-brand-inline {
  gap: 0.85rem;
  padding: 0.6rem 0;
}

/* Frosted panel behind the logo so it stays legible against the gradient */
.ews-brand-logo-frame {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  padding: 0.3rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.ews-brand-logo-sm {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.ews-brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ews-brand-wordmark-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ews-brand-wordmark-tag {
  color: #cfe1f0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.78rem;
}

@media (max-width: 575.98px) {
  .ews-brand-wordmark-tag {
    display: none;
  }
}

.nav-bottom-header .nav-link {
  font-weight: 500;
  padding: 0.9rem 1rem !important;
  transition: background-color .15s ease, color .15s ease;
}

.nav-bottom-header .nav-item.active > .nav-link,
.nav-bottom-header .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.nav-bottom-header .dropdown-menu {
  border: none;
  border-radius: 0 0 var(--ews-radius-sm) var(--ews-radius-sm);
  box-shadow: var(--ews-shadow-lg);
  overflow: hidden;
  margin-top: 0;
}

.nav-bottom-header .dropdown-item {
  padding: 0.6rem 1.25rem;
  transition: background-color .15s ease, padding-left .15s ease;
}

.nav-bottom-header .dropdown-item:hover {
  background-color: var(--brand-light);
  color: var(--brand-dark);
  padding-left: 1.5rem;
}

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */
.btn {
  border-radius: 50rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}

.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.3);
}

/* --------------------------------------------------------------------
   Section headings + cards (About / Announcements / Gallery / Projects)
   -------------------------------------------------------------------- */
.section-heading,
h2.fw-bold {
  position: relative;
  padding-bottom: 0.6rem;
}

.section-heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

.card {
  border-radius: var(--ews-radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--ews-shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  box-shadow: var(--ews-shadow);
  transform: translateY(-3px);
}

.card-title {
  font-weight: 600;
}

/* --------------------------------------------------------------------
   Footer (.ega-footer / .ews-footer-*)
   -------------------------------------------------------------------- */
.ega-footer {
  background: linear-gradient(180deg, var(--brand-darker) 0%, #021c37 100%) !important;
}

.ews-footer-heading {
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 0.5rem;
}

.ews-footer-heading::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  margin-top: 0.5rem;
}

.ews-footer-links a {
  transition: color .15s ease, padding-left .15s ease;
  display: inline-block;
}

.ews-footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.ews-footer-icon {
  color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------------
   Pagination / forms / misc
   -------------------------------------------------------------------- */
.page-link {
  color: var(--brand);
  border-radius: var(--ews-radius-sm);
  margin: 0 2px;
  border-color: rgba(15, 23, 42, 0.08);
}

.page-item.active .page-link {
  background-color: var(--brand);
  border-color: var(--brand);
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(var(--brand-rgb), 0.15);
}

/* Owl Carousel nav dot/arrow accent */
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--brand);
}
