:root {
  --ggm-primary: #0d47a1;
  --ggm-accent: #1565c0;
  --ggm-bg-soft: #f5f8fc;
  --ggm-text-muted: #5f6b7a;
}

body {
  background: #ffffff;
  color: #1f2937;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  line-height: 1.6;
}

main section {
  scroll-margin-top: 5rem;
}

main .container > h1,
main .container > h2,
main .container > h3 {
  font-family: 'Merriweather', Georgia, serif;
  letter-spacing: 0.01em;
}

main .h2 {
  font-size: clamp(1.65rem, 1.4rem + 0.9vw, 2.15rem);
}

main .h4,
main .h5,
main .h6 {
  font-family: 'Merriweather', Georgia, serif;
}

main .text-secondary {
  color: var(--ggm-text-muted) !important;
}

.card {
  border-radius: 0.9rem;
  overflow: hidden;
}

.card .card-body {
  padding: 1.35rem;
}

main ul,
main ol {
  padding-left: 1.2rem;
}

main li + li {
  margin-top: 0.35rem;
}

main a {
  color: var(--ggm-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

main a:hover {
  color: var(--ggm-primary);
}

.top-header {
  background: var(--ggm-bg-soft);
}

html, body {
  overflow-x: hidden;
}

.navbar {
  background: #fff8f5 !important;
  border-bottom-color: rgba(74, 0, 0, 0.14) !important;
  box-shadow: 0 0.35rem 1rem rgba(74, 0, 0, 0.08);
}

.navbar-brand {
  color: var(--ggm-primary) !important;
}

.navbar-brand span {
  letter-spacing: 0.02em;
}

.navbar-brand img {
  object-fit: cover;
  border: 2px solid rgba(74, 0, 0, 0.18);
}

.navbar .nav-link {
  color: #5b1f1f !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding-left: 0.45rem !important;
  padding-right: 0.45rem !important;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: var(--ggm-primary) !important;
}

.navbar .nav-link.active::after,
.navbar .nav-link:hover::after {
  content: '';
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b0000 0%, #cd5c5c 100%);
}

.navbar .dropdown-menu {
  border: 1px solid rgba(74, 0, 0, 0.12);
  border-radius: 0.7rem;
  box-shadow: 0 0.75rem 1.5rem rgba(74, 0, 0, 0.12);
  padding: 0.45rem;
}

.navbar .dropdown-item {
  border-radius: 0.45rem;
  color: #5b1f1f;
  font-weight: 500;
  white-space: normal;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: #fff0ea;
  color: var(--ggm-primary);
}

.navbar-toggler {
  border-color: rgba(74, 0, 0, 0.2);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.15);
}

.hero-image {
  height: 420px;
  object-fit: cover;
}

.badges-strip {
  background: #ffffff;
}

.stat-card {
  border: 1px solid rgba(139, 0, 0, 0.12);
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f5 100%);
  box-shadow: 0 0.25rem 0.75rem rgba(74, 0, 0, 0.06);
}

.stat-card .material-icons-round {
  font-size: 2rem;
  color: var(--ggm-accent);
}

.quick-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.25;
  text-decoration: none;
  color: var(--ggm-accent);
}

.quick-links-list a .material-icons-round {
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: middle;
}

.quick-links-list a:hover {
  text-decoration: underline;
}

.profile-image {
  height: 220px;
  object-fit: cover;
}

.principal-image {
  width: 170px;
  height: 170px;
  object-fit: cover;
}

.gallery-image {
  height: 160px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-image:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.07);
}

.table th {
  white-space: nowrap;
  font-weight: 700;
}

.table td,
.table th {
  vertical-align: middle;
}

.btn {
  border-radius: 0.65rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #4a0000 0%, #8b0000 100%);
  border-color: #4a0000;
  box-shadow: 0 0.5rem 1rem rgba(74, 0, 0, 0.14);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: #660000 !important;
  border-color: #4a0000 !important;
}

.btn-outline-primary {
  color: var(--ggm-primary);
  border-color: rgba(74, 0, 0, 0.45);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background: #fff0ea !important;
  color: var(--ggm-primary) !important;
  border-color: var(--ggm-primary) !important;
}

.site-footer {
  background: linear-gradient(180deg, #fff8f5 0%, #fdeee7 100%);
  color: #4f2a2a;
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: var(--ggm-primary);
}

.site-footer a {
  color: var(--ggm-accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .text-secondary {
  color: var(--ggm-text-muted) !important;
}

.site-footer .bg-dark {
  background: linear-gradient(135deg, #2b0000 0%, #4a0000 100%) !important;
}

.legacy-snapshot .container,
.legacy-snapshot .container-fluid {
  width: auto;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.legacy-snapshot .breadcrumb,
.legacy-snapshot .inner-header {
  display: none !important;
}

.legacy-snapshot section {
  padding-top: 0 !important;
}

.legacy-snapshot .section-content {
  margin-bottom: 0;
}

.legacy-snapshot .row > [class*='col-'] {
  float: none;
  width: 100%;
}

.legacy-snapshot img,
.legacy-snapshot iframe,
.legacy-snapshot table {
  max-width: 100%;
}

.legacy-snapshot table {
  width: 100%;
}

.legacy-snapshot p,
.legacy-snapshot li {
  color: var(--ggm-text-muted);
}

.legacy-snapshot .widget-title,
.legacy-snapshot h3,
.legacy-snapshot h4 {
  color: var(--ggm-primary) !important;
}

.legacy-snapshot [style*='font-size'] {
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .hero-image {
    height: 280px;
  }

  .card .card-body {
    padding: 1.1rem;
  }

  .navbar .nav-link.active::after,
  .navbar .nav-link:hover::after {
    left: 0.5rem;
    right: auto;
    width: 2.5rem;
  }

  .navbar .dropdown-menu {
    border: none;
    box-shadow: none;
    padding-top: 0;
  }
}
