/* Solomon Getachew — logo-matched geometric theme (navy · royal blue · cyan) */

:root {
  --sg-navy: #1b4e8b;
  --sg-navy-dark: #123a6b;
  --sg-navy-deep: #0c2848;
  --sg-royal: #2477b8;
  --sg-cyan: #00bfff;
  --sg-cyan-dark: #0077a8;
  --sg-surface: #f4f8fc;
  --sg-surface-alt: #e8f4fd;
  --sg-slate: #33475b;
  --sg-border: #c8d9ea;
  --sg-white: #ffffff;
  --sg-radius: 0;
  --sg-sticky-top: 84px;
  --bs-primary: #1b4e8b;
  --bs-primary-rgb: 27, 78, 139;
}

* {
  box-sizing: border-box;
}

body.sg-site {
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--sg-navy-deep);
  background: var(--sg-white);
  padding-top: 70px;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.page-header-sg h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Navbar ── */
.navbar-sg {
  background: var(--sg-white) !important;
  border-bottom: 3px solid var(--sg-navy);
  padding: 0.28rem 0;
  box-shadow: 0 2px 12px rgba(27, 78, 139, 0.08);
}

.navbar-sg .navbar-toggler {
  border: 2px solid var(--sg-navy);
  padding: 0.4rem 0.55rem;
}

.navbar-sg .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(27, 78, 139, 0.25);
}

.navbar-sg .navbar-toggler-icon {
  width: 1.35rem;
  height: 1.35rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231b4e8b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-logo {
  height: 46px;
  width: auto;
}

.brand-logo--footer {
  height: 40px;
}

.navbar-brand {
  margin-right: 0.45rem;
  gap: 0.55rem !important;
  align-items: center !important;
}

.navbar-brand .brand-text {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 46px;
  gap: 0.02rem;
  line-height: 1;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .navbar-sg .navbar-nav {
    gap: 0;
  }

  .navbar-sg .nav-link {
    font-size: 0.76rem;
    padding: 0.3rem 0.38rem !important;
  }
}

@media (min-width: 1400px) {
  .navbar-sg .navbar-nav {
    gap: 0.08rem;
  }

  .navbar-sg .nav-link {
    font-size: 0.8rem;
    padding: 0.32rem 0.48rem !important;
  }
}

.brand-text {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.02rem;
  line-height: 1;
}

.brand-text__line {
  display: block;
  white-space: nowrap;
  line-height: 1.12;
}

.brand-text__line--name {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--sg-navy-deep);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.brand-text__tag {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--sg-navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  line-height: 1.12;
}

.brand-text__name {
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--sg-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.navbar-sg .navbar-nav {
  gap: 0.06rem;
  flex-wrap: nowrap;
}

.navbar-sg .nav-link {
  color: var(--sg-navy-deep) !important;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0;
  line-height: 1.25;
  padding: 0.34rem 0.45rem !important;
  border-radius: var(--sg-radius);
  position: relative;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.navbar-sg .nav-link.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.22em;
  vertical-align: 0.12em;
  border-top: 0.28em solid;
  border-right: 0.24em solid transparent;
  border-bottom: 0;
  border-left: 0.24em solid transparent;
  content: "";
}

.navbar-sg .nav-link:hover,
.navbar-sg .nav-link:focus,
.navbar-sg .nav-link.active {
  color: var(--sg-navy) !important;
  background: var(--sg-surface-alt);
  box-shadow: inset 0 -2px 0 var(--sg-cyan);
}

.dropdown-menu-sg {
  border-radius: var(--sg-radius);
  border: 1px solid var(--sg-border);
  border-top: 3px solid var(--sg-cyan);
  min-width: 210px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.28rem 0;
}

.dropdown-menu-sg .dropdown-header {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sg-navy-deep);
  padding: 0.45rem 0.85rem 0.15rem;
}

.dropdown-menu-sg .dropdown-item.active,
.dropdown-menu-sg .dropdown-item:active {
  background: var(--sg-surface-alt);
  color: var(--sg-navy-deep);
  font-weight: 700;
}

/* Hover dropdowns — desktop */
.navbar-sg .nav-menu-dropdown {
  position: relative;
}

@media (min-width: 992px) {
  .navbar-sg .nav-menu-dropdown > .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
  }

  .navbar-sg .nav-menu-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.65rem;
  }

  .navbar-sg .nav-menu-dropdown:hover > .dropdown-menu,
  .navbar-sg .nav-menu-dropdown:focus-within > .dropdown-menu,
  .navbar-sg .nav-menu-dropdown.show > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar-sg .nav-menu-dropdown:hover > .dropdown-toggle,
  .navbar-sg .nav-menu-dropdown:focus-within > .dropdown-toggle {
    color: var(--sg-navy) !important;
    background: var(--sg-surface-alt);
  }

  .navbar-sg .profile-menu.nav-menu-dropdown:hover > .profile-menu__toggle,
  .navbar-sg .profile-menu.nav-menu-dropdown:focus-within > .profile-menu__toggle {
    background: var(--sg-surface-alt);
  }
}

@media (max-width: 991.98px) {
  .navbar-sg .nav-menu-dropdown > .dropdown-menu {
    position: static !important;
    float: none;
    display: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none !important;
    border: none !important;
    background: var(--sg-surface) !important;
    padding: 0.2rem 0 0.4rem 0.5rem !important;
    min-width: 0;
    max-height: none;
  }

  .navbar-sg .nav-menu-dropdown.show > .dropdown-menu {
    display: block;
  }

  .navbar-sg .nav-menu-dropdown .dropdown-item {
    padding: 0.42rem 0.65rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--sg-navy-deep);
  }

  .navbar-sg .navbar-nav .nav-link {
    white-space: normal;
    font-size: 0.92rem;
    padding: 0.52rem 0.7rem !important;
  }
}

.dropdown-menu-sg .dropdown-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sg-navy-deep);
  padding: 0.4rem 0.85rem;
}

.dropdown-menu-sg .dropdown-item:hover,
.dropdown-menu-sg .dropdown-item:focus {
  background: var(--sg-surface-alt);
  color: var(--sg-navy-deep);
}

.navbar-actions .btn {
  border-radius: var(--sg-radius);
  text-transform: none;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.32rem 0.62rem;
}

.navbar-lang-select {
  min-width: 6.5rem;
  max-width: 7.75rem;
  padding: 0.26rem 1.55rem 0.26rem 0.45rem;
  border-radius: var(--sg-radius);
  border: 1px solid var(--sg-navy);
  background-color: #fff;
  color: var(--sg-navy-deep);
  font-size: 0.74rem;
  font-weight: 700;
}

.navbar-lang-select:focus {
  border-color: var(--sg-navy);
  box-shadow: 0 0 0 0.15rem rgba(27, 78, 139, 0.2);
}

.navbar-sg--scrolled .navbar-lang-select,
.navbar-sg:not(.navbar-sg--over-video) .navbar-lang-select {
  border-color: var(--sg-navy);
  background-color: #fff;
  color: var(--sg-navy-deep);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .profile-menu__label {
    display: none;
  }
}

.profile-menu__toggle {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  font-size: 0.76rem !important;
  padding: 0.32rem 0.55rem !important;
  border: 1px solid var(--sg-navy);
  background: var(--sg-white);
}

.profile-menu__toggle.show,
.profile-menu__toggle:hover {
  background: var(--sg-surface-alt);
  color: var(--sg-navy) !important;
}

.profile-menu__toggle i {
  font-size: 1.1rem;
  color: var(--sg-royal);
}

.profile-menu__label {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu__dropdown {
  min-width: 220px;
  margin-top: 0.5rem;
}

.profile-menu__dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
}

.profile-menu__dropdown .dropdown-item i {
  color: var(--sg-royal);
  width: 1.1rem;
}

.profile-menu__logout-form {
  margin: 0;
}

.profile-menu__logout-form button {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
}

.profile-menu__logout-form button i {
  color: #dc3545;
}

.portal-logout-form,
.auth-logout-form {
  margin: 0;
}

.portal-logout-form button,
.auth-logout-form button {
  border-radius: var(--sg-radius);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ── Buttons ── */
.btn-sg-primary {
  background: var(--sg-navy);
  border: 2px solid var(--sg-navy);
  color: #fff;
  font-weight: 700;
  border-radius: var(--sg-radius);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
}

.btn-sg-primary:hover {
  background: var(--sg-navy-dark);
  border-color: var(--sg-navy-dark);
  color: #fff;
}

.btn-sg-accent {
  background: var(--sg-cyan);
  border: 2px solid var(--sg-cyan);
  color: var(--sg-navy-deep);
  font-weight: 700;
  border-radius: var(--sg-radius);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-sg-accent:hover {
  background: var(--sg-cyan-dark);
  border-color: var(--sg-cyan-dark);
  color: var(--sg-navy-deep);
}

.btn-outline-sg {
  color: var(--sg-navy);
  border: 2px solid var(--sg-navy);
  font-weight: 600;
  border-radius: var(--sg-radius);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
}

.btn-outline-sg:hover {
  background: var(--sg-navy);
  border-color: var(--sg-navy);
  color: #fff;
}

.btn-sg-outline-light {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  font-weight: 600;
  border-radius: var(--sg-radius);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-sg-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.bg-sg-accent {
  background: var(--sg-cyan) !important;
  color: var(--sg-navy-deep);
}

.bg-light {
  background: var(--sg-surface) !important;
}

.text-secondary {
  color: var(--sg-slate) !important;
}

.lead {
  color: var(--sg-slate);
  font-size: 1.12rem;
  line-height: 1.7;
  font-weight: 500;
}

/* ── Hero ── */
.hero-sg {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  margin-top: -70px;
  padding-top: 70px;
  background: linear-gradient(135deg, var(--sg-navy-deep) 0%, var(--sg-navy) 55%, var(--sg-navy-dark) 100%);
  overflow: hidden;
}

.hero-sg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(0, 191, 255, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 191, 255, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(52, 152, 219, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(52, 152, 219, 0.04) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  pointer-events: none;
}

.hero-sg__diamond {
  position: absolute;
  border: 2px solid rgba(0, 191, 255, 0.15);
  transform: rotate(45deg);
  pointer-events: none;
}

.hero-sg__diamond--1 {
  width: 180px;
  height: 180px;
  top: 15%;
  right: 8%;
}

.hero-sg__diamond--2 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 5%;
  border-color: rgba(52, 152, 219, 0.2);
}

.hero-sg__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 4rem 0 5rem;
}

.hero-sg__slant {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--sg-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 191, 255, 0.15);
  border: 2px solid var(--sg-cyan);
  color: var(--sg-cyan);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.hero-kicker {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sg-cyan);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.12rem;
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
  max-width: 580px;
  line-height: 1.75;
  font-weight: 500;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-frame {
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(0, 191, 255, 0.35);
  transform: rotate(0deg);
}

.hero-logo-frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(52, 152, 219, 0.25);
  transform: rotate(45deg);
  pointer-events: none;
}

.hero-logo {
  width: min(280px, 70vw);
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.page-home .messages-wrap {
  margin-top: 1rem;
}

/* ── Page header ── */
.page-header-sg {
  background: var(--sg-surface);
  border-bottom: 3px solid var(--sg-cyan);
  padding: 3rem 0 2.5rem;
  position: relative;
}

.page-header-sg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 4px;
  background: var(--sg-navy);
}

.page-header-sg--compact {
  padding: 2rem 0 1.5rem;
}

.page-header-sg h1 {
  color: var(--sg-navy-deep);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section-overline {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sg-navy);
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--sg-cyan);
}

.section-lead {
  max-width: 640px;
}

/* ── Sections ── */
.section-sg {
  padding: 4.5rem 0;
}

.section-sg--alt {
  background: var(--sg-surface);
  border-top: 1px solid var(--sg-border);
  border-bottom: 1px solid var(--sg-border);
}

.section-header h2,
.section-heading h2,
.section-heading h3 {
  color: var(--sg-navy-deep);
  text-transform: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

/* Credentials */
.credentials-bar {
  background: var(--sg-white);
  padding: 0;
  margin-top: -1px;
}

.credentials-grid {
  border: 1px solid var(--sg-border);
}

.credential-item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--sg-border);
  height: 100%;
}

.credentials-grid .col-md-4:last-child .credential-item {
  border-right: none;
}

.credential-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sg-navy);
  color: var(--sg-cyan);
  transform: rotate(45deg);
}

.credential-item__icon i {
  transform: rotate(-45deg);
  font-size: 1.35rem;
}

.credential-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sg-navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.credential-item p {
  color: var(--sg-slate);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.65;
}

/* ── Cards ── */
.service-card,
.division-card,
.value-card,
.contact-card,
.form-card {
  display: block;
  background: var(--sg-white);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover,
.division-card:hover {
  border-color: var(--sg-cyan);
  box-shadow: 0 8px 32px rgba(27, 78, 139, 0.1);
  color: inherit;
}

.service-card__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 24px 24px 0 0;
  border-color: var(--sg-cyan) transparent transparent transparent;
}

.service-card h3,
.division-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sg-navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.service-card p,
.division-card p {
  color: var(--sg-slate);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--sg-navy);
  color: var(--sg-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transform: rotate(45deg);
}

.service-card__icon i {
  transform: rotate(-45deg);
}

.service-card__icon--sm {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.service-card__link {
  color: var(--sg-royal);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.division-card__icon {
  width: 44px;
  height: 44px;
  background: var(--sg-surface-alt);
  border: 2px solid var(--sg-royal);
  color: var(--sg-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.division-card--large {
  padding: 2rem;
}

.value-card i {
  font-size: 1.75rem;
  color: var(--sg-cyan);
  margin-bottom: 0.75rem;
}

.value-card h3,
.value-card h4 {
  font-weight: 700;
  color: var(--sg-navy);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.contact-card {
  text-align: center;
  border-top: 3px solid var(--sg-cyan);
}

.contact-card i {
  font-size: 2rem;
  color: var(--sg-royal);
  margin-bottom: 0.75rem;
}

.contact-card a {
  color: var(--sg-navy);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--sg-cyan-dark);
}

.office-map-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  color: var(--sg-navy);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
}

.office-map {
  border: 1px solid var(--sg-border);
  background: var(--sg-surface);
  min-height: 360px;
  position: relative;
}

.office-map__canvas {
  height: 360px;
  width: 100%;
  z-index: 1;
}

.office-map__iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.office-map .leaflet-container {
  height: 100%;
  width: 100%;
  font-family: Montserrat, system-ui, sans-serif;
}

.leaflet-tooltip.office-map-label {
  background: var(--sg-navy);
  color: #fff;
  border: none;
  border-radius: 0;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.55rem;
  box-shadow: 0 4px 12px rgba(12, 40, 72, 0.25);
  white-space: normal;
  text-align: center;
  max-width: 240px;
  line-height: 1.25;
}

.leaflet-tooltip.office-map-label::before {
  border-top-color: var(--sg-navy);
}

.form-card {
  border-top: 3px solid var(--sg-navy);
  box-shadow: 0 4px 24px rgba(27, 78, 139, 0.06);
}

/* Sticky sidebar cards — stay in view on long pages, clear the footer */
@media (min-width: 992px) {
  .sidebar-sticky-inner {
    position: sticky;
    top: var(--sg-sticky-top);
    z-index: 2;
  }

  .sidebar-sticky-inner .form-card {
    max-height: calc(100vh - var(--sg-sticky-top) - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.form-control,
.form-select {
  border-radius: var(--sg-radius);
  border: 1px solid var(--sg-border);
  font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sg-cyan);
  box-shadow: 0 0 0 0.15rem rgba(0, 191, 255, 0.2);
}

/* About */
.about-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--sg-border);
}

.about-stat {
  background: var(--sg-surface);
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--sg-border);
}

.about-stat:last-child {
  border-right: none;
}

.about-stat__number {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sg-navy);
  text-transform: uppercase;
}

.about-stat__label {
  font-size: 0.75rem;
  color: var(--sg-slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Catalog */
.catalog-item {
  background: var(--sg-surface);
  padding: 1.25rem;
  border: 1px solid var(--sg-border);
  border-left: 3px solid var(--sg-cyan);
}

.breadcrumb-sg {
  --bs-breadcrumb-divider: "›";
  font-size: 0.85rem;
}

.breadcrumb-sg a {
  color: var(--sg-royal);
  text-decoration: none;
  font-weight: 600;
}

.accordion-sg .accordion-item {
  border-radius: var(--sg-radius);
  border: 1px solid var(--sg-border);
}

.accordion-sg .accordion-button {
  border-radius: var(--sg-radius);
  font-weight: 600;
  color: var(--sg-navy);
}

.accordion-sg .accordion-button:not(.collapsed) {
  background: var(--sg-surface-alt);
  color: var(--sg-navy);
  box-shadow: none;
}

.accordion-sg .accordion-button:focus {
  box-shadow: 0 0 0 0.15rem rgba(0, 191, 255, 0.2);
}

/* CTA */
.cta-sg {
  background: linear-gradient(135deg, var(--sg-navy-deep), var(--sg-navy));
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-sg__diamond {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(0, 191, 255, 0.2);
  transform: rotate(45deg);
  top: -60px;
  right: 10%;
  pointer-events: none;
}

.cta-sg h2 {
  color: #fff;
  text-transform: none;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-sg p {
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Portal */
.portal-auth {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--sg-surface);
}

.portal-auth__icon {
  font-size: 2.5rem;
  color: var(--sg-navy);
}

.portal-stat {
  background: var(--sg-white);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--sg-border);
  border-top: 3px solid var(--sg-cyan);
}

.portal-stat__value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--sg-navy);
}

.portal-stat__label {
  font-size: 0.8rem;
  color: var(--sg-slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--sg-border);
}

.portal-list-item:last-child {
  border-bottom: none;
}

/* Footer */
.footer-sg {
  background: var(--sg-navy-deep);
  color: #fff;
  padding: 1.25rem 0 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.footer-sg__diamond {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(0, 191, 255, 0.1);
  transform: rotate(45deg);
  top: -70px;
  left: -50px;
  pointer-events: none;
}

.footer-heading {
  color: #7fe3ff;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.footer-tagline {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  margin-bottom: 0;
}

.footer-links {
  margin-bottom: 0;
}

.footer-links a,
.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.7;
  font-weight: 600;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #7fe3ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-contact {
  margin-bottom: 0;
}

.footer-contact li {
  line-height: 1.6;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.95);
}

.footer-contact i {
  color: var(--sg-cyan);
  margin-right: 0.4rem;
}

.footer-contact__phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.15rem;
  white-space: normal;
}

.footer-contact__phones i {
  flex-shrink: 0;
}

.contact-card__phones {
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 0.85rem;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.messages-wrap {
  padding-top: 1rem;
}

.upload-guide {
  border-top: 3px solid var(--sg-cyan);
}

.upload-guide__list {
  padding-left: 1.2rem;
  color: var(--sg-slate);
  line-height: 1.7;
}

.upload-guide__list strong {
  color: var(--sg-navy-deep);
}

.upload-file-input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.7rem;
  background: #fff;
}

.upload-filename {
  font-weight: 700;
  color: var(--sg-navy-deep);
  font-size: 0.9rem;
}

.upload-progress {
  display: block;
  margin: 0.25rem 0 0.5rem;
  padding: 1rem 1.1rem;
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-left: 4px solid var(--sg-navy);
}

.upload-progress.is-active {
  border-left-color: var(--sg-cyan);
}

.upload-progress.is-complete {
  border-left-color: #146c43;
  background: #eef8f1;
}

.upload-progress__track {
  display: block;
  height: 1.15rem;
  background: #d9e6f2;
  border: 1px solid var(--sg-border);
  overflow: hidden;
}

.upload-progress__bar {
  display: block;
  height: 100%;
  min-width: 0;
  background: var(--sg-navy);
  transition: width 0.2s ease;
}

.upload-progress.is-active .upload-progress__bar {
  background: var(--sg-cyan);
}

.upload-progress.is-complete .upload-progress__bar {
  background: #146c43;
}

.upload-progress__label,
.upload-progress__pct {
  font-weight: 700;
  color: var(--sg-navy);
  font-size: 0.9rem;
}

.upload-success {
  display: block;
  border: 1px solid #b7e0c6;
  background: #eef8f1;
  color: #146c43;
}

.upload-success.d-none {
  display: none !important;
}

.upload-success__icon {
  font-size: 1.5rem;
  color: #146c43;
}

.alert {
  border-radius: var(--sg-radius);
}

.portal-footer {
  background: var(--sg-surface);
  border-top: 1px solid var(--sg-border);
  padding: 1.25rem 0;
  margin-top: 2rem;
  color: var(--sg-slate);
}

.portal-navbar {
  border-bottom: 3px solid var(--sg-cyan);
}

.portal-navbar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.portal-navbar-logout {
  margin: 0;
}

.portal-navbar-logout__btn {
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--sg-navy) !important;
  padding: 0.5rem 0.75rem !important;
}

.portal-navbar-logout__btn:hover {
  color: var(--sg-royal) !important;
}

body.portal-site {
  padding-top: 70px;
  background: var(--sg-surface);
}

@media (max-width: 991.98px) {
  .navbar-actions {
    padding: 0.85rem 0 0.4rem;
    width: 100%;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .profile-menu-nav {
    width: 100%;
  }

  .profile-menu {
    width: 100%;
  }

  .profile-menu__toggle {
    width: 100%;
    justify-content: center;
  }

  .profile-menu__dropdown {
    width: 100%;
  }

  .navbar-actions .btn-sg-accent {
    flex: 1;
    justify-content: center;
  }

  .navbar-lang-select {
    min-width: 0;
    max-width: none;
    flex: 1;
  }
}

@media (max-width: 991.98px) {
  .credentials-grid .credential-item {
    border-right: none;
    border-bottom: 1px solid var(--sg-border);
  }

  .credentials-grid .col-md-4:last-child .credential-item {
    border-bottom: none;
  }
}

@media (max-width: 767.98px) {
  .about-highlight {
    grid-template-columns: 1fr;
  }

  .about-stat {
    border-right: none;
    border-bottom: 1px solid var(--sg-border);
  }

  .about-stat:last-child {
    border-bottom: none;
  }

  .hero-sg {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-logo-frame {
    margin-top: 2rem;
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }
}

/* ── Reports ── */
.report-mini-stat {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-top: 3px solid var(--sg-navy);
  padding: 1rem;
  text-align: center;
}

.report-mini-stat--warn {
  border-top-color: #dc3545;
}

.report-mini-stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sg-navy);
}

.report-mini-stat__label {
  font-size: 0.72rem;
  color: var(--sg-slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-stat--warn {
  border-top-color: #dc3545;
}

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

.report-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--sg-border);
  font-size: 0.9rem;
}

.report-summary-list li:last-child {
  border-bottom: none;
}

.report-alert-card {
  border-top: 3px solid #dc3545;
}

.report-period-form--light .form-label {
  color: var(--sg-slate);
  font-weight: 600;
}

/* ── Partners, events, team ── */
.section-heading h2,
.section-heading h3 {
  color: var(--sg-navy-deep);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.breadcrumb-sg {
  --bs-breadcrumb-divider-color: var(--sg-slate);
  margin-bottom: 0;
}

.breadcrumb-sg .breadcrumb-item,
.breadcrumb-sg .breadcrumb-item a {
  color: var(--sg-slate);
  text-decoration: none;
  font-size: 0.85rem;
}

.breadcrumb-sg .breadcrumb-item a:hover {
  color: var(--sg-navy);
}

.breadcrumb-sg .breadcrumb-item.active {
  color: var(--sg-navy);
}

.partner-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.partner-card:hover {
  border-color: var(--sg-cyan);
  box-shadow: 0 8px 32px rgba(27, 78, 139, 0.1);
}

.partner-card__logo {
  height: 140px;
  display: grid;
  place-items: center;
  background: var(--sg-surface);
  border-bottom: 1px solid var(--sg-border);
  padding: 1.25rem;
}

.partner-card__logo img {
  max-height: 88px;
  max-width: 100%;
  object-fit: contain;
}

.partner-card__placeholder {
  font-size: 2.5rem;
  color: var(--sg-navy);
  opacity: 0.45;
}

.partner-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.partner-card__category {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sg-navy);
  background: var(--sg-surface-alt);
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.65rem;
}

.partner-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sg-navy);
  margin-bottom: 0.5rem;
}

.partner-card__text {
  color: var(--sg-slate);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 0.85rem;
}

.partner-card__link {
  color: var(--sg-royal);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.partner-card__link:hover {
  color: var(--sg-navy);
}

.partner-feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--sg-navy);
  color: var(--sg-cyan);
  font-size: 1.15rem;
}

.partner-feature-icon--sm {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.event-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-border);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.event-card:hover {
  border-color: var(--sg-cyan);
  box-shadow: 0 8px 32px rgba(27, 78, 139, 0.1);
}

.event-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.event-date {
  background: var(--sg-navy);
  color: #fff;
  padding: 1rem;
  text-align: center;
}

.event-date__day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.event-card__body {
  padding: 1.5rem;
  flex: 1;
}

.event-card--past {
  opacity: 0.85;
}

.event-detail__image {
  max-height: 420px;
  object-fit: cover;
}

.team-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-border);
  overflow: hidden;
  text-align: center;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  border-color: var(--sg-cyan);
  box-shadow: 0 8px 32px rgba(27, 78, 139, 0.1);
}

.team-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-card__placeholder {
  height: 250px;
  display: grid;
  place-items: center;
  background: var(--sg-surface);
  color: var(--sg-navy);
  font-size: 4rem;
}

.team-card__placeholder--sm {
  height: 220px;
  font-size: 3.5rem;
}

.team-card .team-info {
  padding: 1.5rem;
}

.team-card h5 {
  color: var(--sg-navy);
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--sg-royal);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-profile-section {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.team-profile-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-border);
  overflow: hidden;
  position: sticky;
  top: var(--sg-sticky-top);
}

.team-profile-card__photo {
  background: var(--sg-surface);
  aspect-ratio: 4 / 5;
  max-height: 420px;
  overflow: hidden;
}

.team-profile-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-profile-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--sg-navy);
  font-size: 6rem;
}

.team-profile-card__body {
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--sg-border);
}

.team-profile-card__role {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sg-navy);
  background: var(--sg-surface-alt);
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.5rem;
}

.team-profile-card__badge {
  display: inline-flex;
  margin-left: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 191, 255, 0.15);
  border: 1px solid rgba(0, 191, 255, 0.35);
  color: var(--sg-navy);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-profile-card__name {
  color: var(--sg-navy);
  font-weight: 700;
}

.team-profile-card__contact {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: left;
}

.team-profile-card__contact a {
  color: var(--sg-navy);
  text-decoration: none;
  word-break: break-word;
}

.team-profile-card__contact a:hover {
  color: var(--sg-royal);
}

.team-profile-detail {
  background: var(--sg-white);
  border: 1px solid var(--sg-border);
  border-left: 4px solid var(--sg-cyan);
  padding: 2rem 2rem 1.75rem;
  min-height: 280px;
}

.team-profile-detail__heading {
  color: var(--sg-navy);
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sg-surface-alt);
}

.team-profile-detail__bio {
  color: var(--sg-slate);
  font-size: 1.05rem;
  line-height: 1.75;
}

.team-profile-detail__bio p:last-child {
  margin-bottom: 0;
}

.team-profile-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sg-border);
}

@media (max-width: 991.98px) {
  .team-profile-card {
    position: static;
  }

  .team-profile-card__photo {
    max-height: 360px;
    aspect-ratio: 16 / 10;
  }

  .team-profile-detail {
    padding: 1.5rem;
  }
}

.media-card {
  background: #fff;
  border: 1px solid var(--sg-border);
  display: flex;
  flex-direction: column;
}

.media-card__photo img,
.media-detail__image {
  width: 100%;
  height: auto;
  display: block;
}

.media-card__photo,
.media-card__placeholder,
.media-card__video {
  background: var(--sg-surface);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.media-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-navy);
  font-size: 2.4rem;
  text-decoration: none;
}

.media-card__video iframe,
.media-detail__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.media-detail__video {
  aspect-ratio: 16 / 9;
  background: #000;
}

.media-card__body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.media-card__kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-navy);
  margin-bottom: 0.35rem;
}

.media-card__body h3 a {
  color: var(--sg-navy-deep);
  text-decoration: none;
}

.media-card__body h3 a:hover {
  color: var(--sg-navy);
}

.faq-sg {
  max-width: 820px;
  margin: 0 auto;
}

.faq-sg__item {
  background: var(--sg-white);
  border: 1px solid var(--sg-border);
  margin-bottom: 0.75rem;
  padding: 0.15rem 1.15rem;
}

.faq-sg__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--sg-navy-deep);
  padding: 1rem 0;
  list-style: none;
}

.faq-sg__item summary::-webkit-details-marker {
  display: none;
}

.faq-sg__item summary::after {
  content: "+";
  float: right;
  color: var(--sg-cyan);
  font-weight: 800;
}

.faq-sg__item[open] summary::after {
  content: "–";
}

.faq-sg__item p {
  color: var(--sg-text, #334);
  line-height: 1.7;
  padding-bottom: 1rem;
}
