:root {
  --bg: #f2f7fb;
  --surface: #ffffff;
  --surface-2: #eef4f9;
  --ink: #0f1724;
  --ink-soft: #5a6b80;
  --brand: #0f4c81;
  --brand-2: #14a8b8;
  --accent: #ff7a1a;
  --ok: #169b62;
  --danger: #cf3c3c;
  --radius: 16px;
  --shadow-sm: 0 6px 24px rgba(10, 34, 64, 0.08);
  --shadow-lg: 0 18px 42px rgba(12, 32, 62, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at -10% -10%, #d8efff 0%, transparent 60%),
    radial-gradient(1100px 500px at 110% -20%, #e8fff5 0%, transparent 60%),
    var(--bg);
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-size: 1.04rem;
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.section-title {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: 0.01em;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: #0a2f52;
}

.site-main {
  min-height: calc(100vh - 220px);
}

.main-navbar {
  background: linear-gradient(90deg, #0f2f55 0%, #0f4c81 48%, #0b6f88 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(8, 20, 42, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.main-navbar .navbar-brand img {
  height: 48px;
  width: auto;
  margin-right: 12px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.main-navbar .navbar-brand span {
  color: #fff;
}

.main-navbar .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  border-radius: 12px;
  margin: 0 0.18rem;
}

.main-navbar .nav-link.active,
.main-navbar .nav-link:hover,
.main-navbar .dropdown-item.active,
.main-navbar .dropdown-item:hover {
  color: #07233f !important;
  background: #f7fbff;
}

.main-navbar .dropdown-menu {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.main-navbar .dropdown-item {
  font-weight: 600;
  padding: 0.65rem 0.95rem;
}

.page-hero,
.hero-section {
  position: relative;
  background:
    linear-gradient(120deg, rgba(12, 48, 84, 0.92) 0%, rgba(8, 96, 111, 0.9) 100%),
    url("../logo.png") no-repeat right -20px center/180px;
  color: #fff;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}

.page-hero::after,
.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -120px -140px auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-section {
  padding: 84px 0 72px;
}

.page-hero {
  padding: 56px 0 44px;
  margin-bottom: 1.6rem;
}

.hero-section .lead,
.page-hero .lead {
  color: rgba(255, 255, 255, 0.92);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.hero-badges .badge {
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.85rem;
}

.hero-section .btn-danger,
.btn.btn-danger {
  background: linear-gradient(135deg, #ff8b27 0%, #ff6a00 100%);
  border: none;
  color: #fff;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
}

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

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

.tile,
.card,
.content-card {
  background: var(--surface);
  border: 1px solid #d8e3ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.content-card {
  padding: 1.35rem;
}

.tile {
  text-align: left;
  padding: 1.5rem;
  min-height: 220px;
}

.tile i {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

.tile h5 {
  color: #102942;
  font-weight: 700;
}

.metric-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d7e4f3;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: #11385e;
}

.metric-label {
  color: var(--ink-soft);
  font-weight: 600;
}

.section-title {
  font-weight: 700;
  color: #14375a;
}

.muted-note {
  color: var(--ink-soft);
}

.card-header {
  border-bottom: 1px solid #d9e5f2;
  background: linear-gradient(180deg, #fdfefe 0%, #f2f7fb 100%);
  font-weight: 700;
}

.card-img-top,
.article-cover,
.gallery-photo,
.team-logo {
  object-fit: cover;
}

.team-logo {
  width: 100%;
  height: 120px;
  background: #eef5fb;
}

.article-cover {
  width: 100%;
  height: 200px;
  background: #ecf3fa;
}

.gallery-photo {
  width: 100%;
  height: 220px;
  background: #ecf3fa;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  position: relative;
  margin-bottom: 0.9rem;
  padding: 0.8rem 0.8rem 0.8rem 1.15rem;
  border-left: 4px solid #cae0f6;
  background: #f8fbfe;
  border-radius: 10px;
}

.table {
  --bs-table-bg: transparent;
}

.table thead th {
  color: #17395c;
  border-bottom-width: 1px;
  background: #f5f9fd;
  white-space: nowrap;
}

.table tbody tr {
  background: #fff;
}

.table > :not(caption) > * > * {
  border-bottom-color: #e4edf6;
}

.list-group-item {
  border-color: #dce7f3;
}

.alert {
  border-radius: 12px;
}

.form-control,
.form-select,
.nav-tabs .nav-link {
  border-radius: 11px;
  border-color: #cfdceb;
}

.form-control:focus,
.form-select:focus,
.nav-tabs .nav-link:focus {
  border-color: #6ca7d8;
  box-shadow: 0 0 0 0.2rem rgba(15, 76, 129, 0.16);
}

.footer {
  margin-top: 54px;
  padding: 34px 0 20px;
  background: linear-gradient(135deg, #0f2f55 0%, #0d4266 100%);
  color: rgba(255, 255, 255, 0.95);
}

.footer .footer-link {
  color: rgba(255, 255, 255, 0.88);
}

.footer .footer-link:hover {
  color: #fff;
}

.footer-logo {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.badge {
  border-radius: 999px;
  font-weight: 700;
}

@media (max-width: 992px) {
  .hero-section {
    padding: 64px 0 56px;
    border-radius: 0 0 22px 22px;
  }

  .main-navbar .nav-link {
    margin-bottom: 4px;
  }

  .page-hero {
    padding: 45px 0 34px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  .tile {
    min-height: 180px;
  }

  .hero-section .display-4 {
    font-size: 2rem;
  }

  .gallery-photo,
  .article-cover,
  .team-logo {
    height: 100px;
  }
}
