/* OSAG public portal — sky-blue design system */

body,
button,
input,
select,
textarea {
  font-family: "M PLUS Rounded 1c", "Segoe UI", sans-serif;
}

html[lang="ar"],
html[dir="rtl"],
html[lang="ar"] body,
html[dir="rtl"] body,
html[lang="ar"] button,
html[dir="rtl"] button,
html[lang="ar"] input,
html[dir="rtl"] input,
html[lang="ar"] select,
html[dir="rtl"] select,
html[lang="ar"] textarea,
html[dir="rtl"] textarea {
  font-family: "Cairo", "Segoe UI", sans-serif;
}

:root {
  --sky-50: #f4fbff;
  --sky-100: #e6f4ff;
  --sky-200: #cfe8ff;
  --sky-300: #9ed2ff;
  --sky-500: #418fde;
  --sky-600: #2f78c4;
  --sky-700: #1f5f9e;
  --ink: #1d2b3a;
  --muted: #5b6b7c;
  --line: #d7e6f4;
  --card: #ffffff;
}

.separator li:nth-child(3) {
  background: var(--sky-300);
}

@media (min-width: 1200px) {
  .container {
    max-width: 1240px;
  }
}

/* ---------- Sticky chrome ---------- */
.site-chrome {
  position: sticky;
  top: 12px;
  z-index: 1200;
  isolation: isolate;
  width: min(1240px, calc(100% - 24px));
  margin: 12px auto 0;
  background: transparent;
}

.site-chrome .modern-header {
  position: relative;
  top: auto;
}

/* ---------- Header / nav ---------- */
.modern-header {
  border-bottom: 0;
  box-shadow: 0 10px 36px rgba(31, 95, 158, 0.12);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.osag-header-edge {
  display: none;
}

.site-chrome .container {
  max-width: none;
  width: 100%;
  padding-left: 14px;
  padding-right: 14px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-tools .theme-toggle {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-tools .theme-toggle:hover {
  border-color: var(--sky-500);
  color: var(--sky-700);
  background: var(--sky-50);
}

.lang-pills {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--sky-50);
  border: 1px solid var(--line);
}

.lang-pills a {
  min-width: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
}

.lang-pills a:hover {
  color: var(--sky-700);
  text-decoration: none;
}

.lang-pills a.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(31, 95, 158, 0.12);
}

.modern-header .navbar {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 0;
}

.modern-header .logo-img {
  width: 42px;
  height: 42px;
}

.modern-header .brand-title {
  font-size: 1.28rem;
}

.modern-header .navbar-brand {
  order: 2;
  margin-inline-end: 12px;
}

.modern-header .header-tools {
  order: 3;
  margin-inline-start: auto;
}

.modern-header .navbar-toggler {
  order: 1;
  margin-inline-end: 8px;
  margin-inline-start: 0;
}

.modern-header .navbar-collapse {
  order: 4;
  flex-basis: 100%;
}

@media (min-width: 992px) {
  .modern-header .navbar {
    flex-wrap: nowrap;
  }

  .modern-header .navbar-brand {
    order: 1;
    margin-inline-end: 0;
  }

  .modern-header .navbar-collapse {
    order: 2;
    flex: 1 1 auto;
    flex-basis: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .modern-header .header-nav {
    margin: 0 !important;
    align-items: center;
    padding: 4px 6px;
    border-radius: 999px;
    background: #eef3f8;
  }

  .modern-header .header-tools {
    order: 3;
    position: static;
    transform: none;
    margin: 0;
  }
}

.modern-header .nav-link {
  padding: 8px 12px !important;
  border-radius: 999px;
  background: transparent !important;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.modern-header .nav-link::after {
  display: none;
}

.modern-header .nav-link:hover,
.modern-header .nav-item.active .nav-link {
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(31, 95, 158, 0.1);
}

.modern-header .dropdown-menu {
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(31, 95, 158, 0.12);
  border: 1px solid var(--line);
  z-index: 1300;
  top: calc(100% + 10px) !important;
}

.modern-header .mega-menu {
  min-width: 0;
  width: 100%;
}

@media (min-width: 992px) {
  .modern-header .mega-menu {
    min-width: 640px;
    width: auto;
  }
}

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  margin-top: -92px;
  padding: 156px 0 72px;
  color: #142433;
  background: linear-gradient(180deg, #b4d7f4 0%, #b4d7f4 56%, #ffffff 100%);
}

.home-hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-hero-stars,
.home-hero-stars-2 {
  display: none;
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 42%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 46% 12%, #fff, transparent),
    radial-gradient(1px 1px at 63% 36%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 78% 22%, #fff, transparent),
    radial-gradient(1px 1px at 88% 58%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 18% 72%, #fff, transparent),
    radial-gradient(1px 1px at 38% 86%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 58% 68%, #fff, transparent),
    radial-gradient(1px 1px at 74% 84%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 8% 48%, #fff, transparent),
    radial-gradient(1px 1px at 92% 8%, #fff, transparent);
  background-size: 100% 100%;
  opacity: 0.85;
  animation: osag-twinkle 4.8s ease-in-out infinite;
}

.home-hero-stars-2 {
  background-image:
    radial-gradient(1px 1px at 22% 28%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 52% 48%, #fff, transparent),
    radial-gradient(1px 1px at 68% 16%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 84% 74%, #fff, transparent),
    radial-gradient(1px 1px at 6% 88%, #fff, transparent);
  animation-duration: 6.4s;
  animation-delay: -2s;
}

.home-hero-cloud {
  position: absolute;
  z-index: 2;
  left: 0;
  pointer-events: none;
  animation: osag-cloud linear infinite;
}

.home-hero-cloud i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(ellipse at 42% 40%,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.32) 38%,
    rgba(255, 255, 255, 0.08) 62%,
    transparent 76%);
}

.home-hero-cloud-1 {
  top: 8%;
  width: min(42vw, 460px);
  height: 150px;
  opacity: 0.7;
  animation-duration: 96s;
  animation-delay: -62s;
}

.home-hero-cloud-1 i:nth-child(1) { width: 210px; height: 96px; left: 8%; top: 28%; filter: blur(18px); }
.home-hero-cloud-1 i:nth-child(2) { width: 168px; height: 110px; left: 28%; top: 4%; filter: blur(14px); }
.home-hero-cloud-1 i:nth-child(3) { width: 190px; height: 88px; left: 48%; top: 22%; filter: blur(20px); }
.home-hero-cloud-1 i:nth-child(4) { width: 120px; height: 72px; left: 22%; top: 38%; filter: blur(12px); }
.home-hero-cloud-1 i:nth-child(5) { width: 98px; height: 58px; left: 68%; top: 40%; filter: blur(22px); }

.home-hero-cloud-2 {
  top: 24%;
  width: min(16vw, 180px);
  height: 70px;
  opacity: 0.48;
  animation-duration: 46s;
  animation-delay: -34s;
}

.home-hero-cloud-2 i:nth-child(1) { width: 92px; height: 44px; left: 4%; top: 28%; filter: blur(12px); }
.home-hero-cloud-2 i:nth-child(2) { width: 70px; height: 48px; left: 32%; top: 6%; filter: blur(10px); }
.home-hero-cloud-2 i:nth-child(3) { width: 78px; height: 40px; left: 52%; top: 26%; filter: blur(14px); }

.home-hero-cloud-3 {
  top: 40%;
  width: min(28vw, 310px);
  height: 110px;
  opacity: 0.58;
  animation-duration: 78s;
  animation-delay: -40s;
}

.home-hero-cloud-3 i:nth-child(1) { width: 150px; height: 70px; left: 6%; top: 26%; filter: blur(16px); }
.home-hero-cloud-3 i:nth-child(2) { width: 118px; height: 78px; left: 30%; top: 2%; filter: blur(13px); }
.home-hero-cloud-3 i:nth-child(3) { width: 132px; height: 64px; left: 52%; top: 22%; filter: blur(18px); }
.home-hero-cloud-3 i:nth-child(4) { width: 86px; height: 50px; left: 20%; top: 42%; filter: blur(15px); }

.home-hero-cloud-4 {
  top: 12%;
  width: min(12vw, 130px);
  height: 52px;
  opacity: 0.4;
  animation-duration: 38s;
  animation-delay: -22s;
}

.home-hero-cloud-4 i:nth-child(1) { width: 70px; height: 34px; left: 0; top: 22%; filter: blur(11px); }
.home-hero-cloud-4 i:nth-child(2) { width: 58px; height: 30px; left: 38%; top: 8%; filter: blur(13px); }

.home-hero-cloud-5 {
  top: 52%;
  width: min(52vw, 560px);
  height: 170px;
  opacity: 0.5;
  animation-duration: 110s;
  animation-delay: -72s;
}

.home-hero-cloud-5 i:nth-child(1) { width: 240px; height: 108px; left: 4%; top: 30%; filter: blur(26px); }
.home-hero-cloud-5 i:nth-child(2) { width: 190px; height: 120px; left: 26%; top: 6%; filter: blur(22px); }
.home-hero-cloud-5 i:nth-child(3) { width: 210px; height: 96px; left: 48%; top: 24%; filter: blur(28px); }
.home-hero-cloud-5 i:nth-child(4) { width: 140px; height: 80px; left: 18%; top: 44%; filter: blur(20px); }
.home-hero-cloud-5 i:nth-child(5) { width: 120px; height: 64px; left: 66%; top: 38%; filter: blur(24px); }
.home-hero-cloud-5 i:nth-child(6) { width: 88px; height: 50px; left: 78%; top: 48%; filter: blur(18px); }

@keyframes osag-cloud {
  from { transform: translateX(-40vw); }
  to { transform: translateX(110vw); }
}

@keyframes osag-twinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes osag-cloud-rtl {
  from { transform: translateX(110vw); }
  to { transform: translateX(-40vw); }
}

[dir="rtl"] .home-hero-cloud {
  animation-name: osag-cloud-rtl;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-cloud,
  .home-hero-stars,
  .home-hero-stars-2 {
    animation: none;
  }

  .home-hero-cloud-1 { left: 48%; }
  .home-hero-cloud-2 { left: 78%; }
  .home-hero-cloud-3 { left: 58%; }
  .home-hero-cloud-4 { left: 86%; }
  .home-hero-cloud-5 { left: 36%; }
}

.home-hero::before {
  display: none;
}

.home-hero::after {
  display: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 820px;
}

.home-hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 540px;
  margin: 8px auto 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(65, 143, 222, 0.34);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.58);
}

.home-hero-facts a,
.home-hero-facts > div {
  display: flex;
  flex: 1 1 120px;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  padding: 10px 16px;
  color: #0d3b66;
  text-decoration: none;
  border-right: 1px solid rgba(65, 143, 222, 0.22);
}

.home-hero-facts > :last-child {
  border-right: 0;
}

.home-hero-facts a:hover {
  color: #1f5f9e;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.42);
}

.home-hero-facts strong {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.home-hero-facts span {
  margin-top: 2px;
  color: #2c4f6e;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 520px) {
  .home-hero-facts a,
  .home-hero-facts > div {
    border-right: 0;
    border-bottom: 1px solid rgba(65, 143, 222, 0.22);
  }

  .home-hero-facts > :last-child {
    border-bottom: 0;
  }

  .night-mode .home-hero-facts a,
  .night-mode .home-hero-facts > div {
    border-bottom-color: rgba(215, 230, 244, 0.12);
  }
}

.home-hero h1.home-hero-kicker,
.home-hero .home-hero-kicker,
.home-hero-kicker {
  display: block;
  margin: 0;
  color: #1f5f9e;
  font-size: clamp(18px, 2.3vw, 26px);
  letter-spacing: 0;
  font-weight: 900;
  text-transform: none;
  line-height: 1.3;
}

.home-hero-label {
  margin: 0 0 10px;
  color: #1f5f9e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero .home-hero-mandate,
.home-hero-mandate {
  max-width: 54ch;
  margin: 0 auto 26px;
  color: #2c4f6e;
  font-size: 16px;
  line-height: 1.7;
}

.home-hero-functions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 22px 0 28px;
  max-width: none;
  color: #0d3b66;
  background: none;
  border: 0;
  box-shadow: none;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 900;
  line-height: 1.2;
}

.home-hero-functions li {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  white-space: nowrap;
}

.services-slider-section {
  background: #ffffff;
  border-top: 0;
  box-shadow: none;
}

[dir="rtl"] .services-slider-section,
[dir="rtl"] .organizations-section,
[dir="rtl"] .home-ag-copy,
[dir="rtl"] .service-compact-card {
  text-align: start;
}

.home-search {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 18px;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(65, 143, 222, 0.18);
  border: 1px solid #d7ebf8;
}

.home-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  outline: none;
  padding: 12px 18px;
  background: transparent;
  font-size: 16px;
  color: #142433;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
}

.home-search input:focus,
.home-search input:focus-visible {
  outline: none;
  box-shadow: none;
}

.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #418fde 0%, #1f5f9e 100%);
  color: #fff;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.home-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
}

.home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-hero-meta li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(65, 143, 222, 0.28);
  color: #1f5f9e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 1199px) {
  .home-hero-functions li {
    white-space: normal;
  }
}

@media (max-width: 991px) {
  .modern-header {
    border-radius: 28px;
    overflow: hidden;
  }

  .modern-header .navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .modern-header .navbar::before {
    content: none;
    display: none;
  }

  .modern-header .brand-text {
    display: none;
  }

  .modern-header .navbar-toggler,
  .modern-header .navbar-toggler:hover,
  .modern-header .navbar-toggler:focus,
  .modern-header .navbar-toggler:active,
  .modern-header .navbar-toggler:focus-visible {
    width: 32px;
    height: 32px;
    padding: 4px;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .modern-header .navbar-toggler span {
    width: 16px;
    height: 2px;
    margin: 3px auto;
  }

  .modern-header .navbar-collapse {
    order: 4;
    flex-basis: 100%;
    width: auto;
    max-width: 100%;
    margin: 8px 8px 10px;
    padding: 8px;
    border: 0;
    border-radius: 18px;
    background: #eef3f8;
    box-shadow: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .modern-header .header-nav {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .modern-header .nav-item {
    width: 100%;
  }

  .modern-header .nav-link {
    width: 100%;
    text-align: start;
  }

  .modern-header .dropdown-menu,
  .modern-header .mega-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    float: none;
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4px 0 8px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none !important;
  }

  .modern-header .mega-menu .row {
    display: block;
    margin: 0;
  }

  .modern-header .mega-menu [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
  }

  .night-mode .modern-header .navbar-collapse {
    background: #1e2c3c;
    border: 0;
    box-shadow: none;
  }

  .night-mode .modern-header .header-nav,
  .night-mode .modern-header .dropdown-menu,
  .night-mode .modern-header .mega-menu {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .home-hero {
    margin-top: -84px;
    padding: 132px 0 64px;
  }

  .home-hero-functions {
    padding: 18px 0 24px;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .home-hero-functions {
    font-size: clamp(15px, 4.2vw, 18px);
    padding: 16px 0 22px;
    gap: 8px;
  }

  .home-hero-cloud-1,
  .home-hero-cloud-5 {
    display: none;
  }

  .home-search {
    max-width: 100%;
  }

  .home-search-label {
    display: none !important;
  }

  .home-search button {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    flex: 0 0 48px;
    border-radius: 50%;
  }
}

.page-search-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 8px;
}

.page-search-wrap .home-search {
  width: 100%;
  max-width: 640px;
}

/* ---------- Services hover ---------- */
.services-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.service-compact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-compact-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #418fde, #7dd3fc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.service-compact-card:hover {
  transform: translateY(-6px);
  border-color: #9ed2ff;
  box-shadow: 0 16px 32px rgba(65, 143, 222, 0.14);
}

.service-compact-card:hover::before {
  transform: scaleX(1);
}

.service-compact-card i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-100);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.service-compact-card h5 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  min-height: 2.7em;
}

.service-compact-card p {
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 7em;
}

.service-compact-card:hover i {
  transform: scale(1.08);
  background: var(--sky-500);
  color: #fff;
}

@media (min-width: 641px) {
  .services-compact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .services-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Modern tables ---------- */
.osag-table-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(31, 95, 158, 0.06);
}

.table-modern,
.bulletins-table {
  margin: 0;
  width: 100%;
}

.table-modern thead th,
.bulletins-table thead th {
  background: #eef6ff;
  color: var(--sky-700);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  padding: 14px 16px;
  font-weight: 700;
}

.table-modern tbody td,
.bulletins-table tbody td {
  padding: 14px 16px;
  border-color: #eef3f8;
  vertical-align: middle;
}

.table-modern tbody tr:hover,
.bulletins-table tbody tr:hover {
  background: #f4fbff !important;
  transform: none;
}

.badge-modern.badge-primary {
  background: var(--sky-100);
  color: var(--sky-700);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
}

/* ---------- News ---------- */
.blogs-section,
.news-page {
  background: var(--sky-50);
}

.news-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: stretch;
}

.news-featured .is-featured {
  min-height: 100%;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(31, 95, 158, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(65, 143, 222, 0.14);
}

.news-card-media {
  position: relative;
  display: block;
  height: 210px;
  background:
    linear-gradient(135deg, rgba(65, 143, 222, 0.18), rgba(31, 95, 158, 0.35)),
    linear-gradient(180deg, #9ed2ff, #418fde);
  overflow: hidden;
}

.news-featured .news-card-media {
  height: 360px;
}

.news-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.news-stack .news-card-media {
  height: 150px;
}

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

.news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 42px;
}

.news-card-type {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sky-700);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.news-card-body {
  padding: 22px;
}

.news-card-body time {
  color: var(--sky-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card-body h3,
.news-card-body h5 {
  margin: 8px 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.news-card-body h3 a,
.news-card-body h5 a {
  color: var(--ink);
  text-decoration: none;
}

.news-card-body h3 a:hover,
.news-card-body h5 a:hover {
  color: var(--sky-600);
}

.news-card-body p {
  color: var(--muted);
  margin-bottom: 14px;
}

.news-card-more {
  color: var(--sky-600);
  font-weight: 700;
  text-decoration: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-article {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.news-article-hero {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #9ed2ff, #1f5f9e);
}

.news-article-hero img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.news-article-hero .news-card-placeholder {
  height: 320px;
}

.news-article-body {
  padding: 32px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.news-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.news-aside h5 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sky-200);
}

.news-aside-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.news-details {
  line-height: 1.85;
  color: var(--muted);
}

.news-article-body h2 {
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}

.news-aside a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.news-aside a:hover {
  color: var(--sky-600);
}

.org-logo i {
  font-size: 28px;
  color: var(--sky-500);
}

.news-aside-item img,
.news-aside-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #9ed2ff, #418fde);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

/* ---------- Organizations slider ---------- */
.organizations-section {
  background: #fff;
}

.organizations-slider-wrapper {
  overflow: hidden;
  padding: 8px 52px 28px;
}

.organizations-slider-wrapper,
.orgs-carousel,
.orgs-carousel .owl-stage-outer,
.orgs-carousel .owl-stage {
  direction: ltr;
}

.orgs-carousel .owl-stage-outer {
  overflow: hidden;
  padding: 16px 0 24px;
}

.orgs-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.orgs-carousel .owl-item {
  display: flex;
  float: none;
  height: auto;
  padding: 0 6px;
}

.orgs-carousel .org-card {
  display: flex;
  flex-direction: column;
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 260px;
  margin: 0;
}

.orgs-carousel .org-card .org-acronym {
  margin-top: auto;
}

.org-card {
  background: #fff;
  border: 1px solid var(--line);
}

.org-card h6 {
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.orgs-carousel .owl-nav button {
  position: absolute;
  top: 40%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(31, 95, 158, 0.12);
  color: var(--sky-600) !important;
}

.orgs-carousel .owl-prev { left: -46px; }
.orgs-carousel .owl-next { right: -46px; }

.orgs-carousel .owl-dots {
  text-align: center;
}

.orgs-carousel .owl-dot span {
  width: 8px;
  height: 8px;
  background: #cfe8ff;
  display: block;
  border-radius: 50%;
  margin: 0 4px;
}

.orgs-carousel .owl-dot.active span {
  background: var(--sky-500);
}

/* ---------- Folder cards ---------- */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}

.folder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  margin: 0;
  min-height: 168px;
  padding: 20px 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(31, 95, 158, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.folder-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-4px);
  border-color: var(--sky-500);
  box-shadow: 0 14px 28px rgba(65, 143, 222, 0.14);
}

.folder-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-100);
  color: var(--sky-600);
  font-size: 22px;
  margin-bottom: 12px;
}

.folder-card h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-card p,
.folder-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.folder-year-block {
  margin-bottom: 36px;
}

.folder-year-block > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--ink);
}

.folder-year-block > h3 span {
  background: var(--sky-100);
  color: var(--sky-700);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}

/* ---------- Document tabs ---------- */
.doc-tabs {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 16px;
  margin: 8px 0 28px;
  max-width: 420px;
}

.doc-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.doc-tabs a.is-active {
  background: var(--sky-500);
  color: #fff;
}

/* ---------- Inner pages ---------- */
.page-banner {
  background: linear-gradient(135deg, #2f78c4 0%, #7ec8ff 100%);
  margin-top: -92px;
  margin-bottom: 0;
  padding: 140px 0 44px;
}

@media (max-width: 991px) {
  .page-banner {
    margin-top: -84px;
    padding: 128px 0 36px;
  }
}

.page-banner + section {
  margin-top: 0 !important;
}

.page-banner + section.gray-bg,
.page-banner + section.index-2,
.page-banner + .osag-legal {
  padding-top: 52px;
}

.page-banner + section.mb-5,
.page-banner + section.my-5 {
  margin-bottom: 0 !important;
}

main {
  padding-bottom: 96px;
}

.org-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 20px;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.org-grid-card:hover {
  transform: translateY(-6px);
  border-color: var(--sky-300);
  box-shadow: 0 16px 32px rgba(65, 143, 222, 0.12);
  text-decoration: none;
  color: inherit;
}

.org-grid-card img,
.org-grid-card .org-mark-icon {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--sky-200);
  padding: 10px;
  background: #fff;
  margin-bottom: 14px;
}

.org-grid-card .org-mark-icon,
.org-logo .org-mark-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--sky-600);
}

.org-grid-card h5 {
  min-height: 48px;
  font-weight: 700;
}

.org-grid-card .org-acronym {
  margin-bottom: 14px;
}

.org-grid-meta {
  margin-top: auto;
  background: var(--sky-100);
  color: var(--sky-700);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.about-modern-section,
.services-detail-section,
.values-section {
  background: var(--sky-50);
}

.about-card,
.service-detail-card,
.value-card {
  border: 1px solid var(--line);
}

.about-image {
  background: linear-gradient(135deg, #7ec8ff, #418fde) !important;
}

.service-item,
.service-detail-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover,
.service-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(65, 143, 222, 0.1);
}

/* ---------- List stack: filter, table, pagination share one width ---------- */
.osag-list-stack,
.container > .content_sec {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0;
  margin-right: 0;
}

.osag-list-stack .content_sec {
  margin-top: 0;
}

.document-filters-wrap,
.osag-table-card,
.osag-pagination {
  width: 100%;
}

/* ---------- Filters ---------- */
.document-filters {
  background: var(--card);
  border: 1px solid var(--line);
}

.document-filters-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.document-filter-field,
.document-filter-actions {
  display: flex;
  flex-direction: column;
  margin: 0;
  flex: 1 1 170px;
}

.document-filter-search {
  flex: 2 1 240px;
}

.document-filter-actions {
  flex: 0 0 auto;
  min-width: 150px;
}

.document-filter-field span,
.document-filter-label-spacer {
  display: block;
  min-height: 18px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.document-filter-label-spacer {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.document-filters .form-control,
.document-filters select,
.document-filters input[type="text"],
.document-filter-input,
.document-filter-submit.btn-primary-modern {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 14px !important;
  line-height: 1 !important;
  border-radius: 10px !important;
  box-sizing: border-box;
}

.document-filters .form-control,
.document-filters select,
.document-filters input[type="text"],
.document-filter-input {
  background: var(--sky-50) !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--line) !important;
}

.document-filters select option {
  background: var(--card);
  color: var(--ink);
}

.document-filter-submit.btn-primary-modern {
  width: 100%;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  transform: none;
}

/* ---------- Footer ---------- */
.osag-footer {
  position: relative;
  margin-top: 0;
  padding: 0 0 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(65, 143, 222, 0.16), transparent 42%),
    #101922;
  color: #b8c6d4;
}

.osag-footer-edge {
  height: 2px;
  background: linear-gradient(90deg, transparent, #418fde 18%, #9ed2ff 50%, #2f78c4 82%, transparent);
}

.osag-footer .container {
  padding-top: 52px;
}

.osag-footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 48px 40px;
  padding-bottom: 40px;
}

.osag-footer-brand,
.osag-footer-menus,
.osag-footer-card {
  text-align: start;
}

.osag-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #fff;
  text-decoration: none;
}

.osag-footer-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 5px;
  background: #fff;
  border-radius: 14px;
}

.osag-footer-logo strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.osag-footer-logo small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8ec4f4;
}

.osag-footer-kicker {
  margin: 0 0 10px;
  color: #d7e8f8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.osag-footer-brand > p:last-of-type {
  max-width: 42ch;
  margin: 0 0 22px;
  margin-inline-end: auto;
  color: #93a4b6;
  font-size: 14px;
  line-height: 1.7;
}

.osag-footer-social {
  display: flex;
  gap: 10px;
}

.osag-footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(158, 210, 255, 0.2);
  border-radius: 50%;
  color: #d5e6f6;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.osag-footer-social a:hover {
  background: #418fde;
  border-color: #418fde;
  color: #fff;
}

.osag-footer-menus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.osag-footer-menus nav,
.osag-footer-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.osag-footer h6 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.osag-footer-menus a {
  width: fit-content;
  color: #a8b8c8;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.osag-footer-menus a:hover {
  color: #9ed2ff;
}

.osag-footer-card {
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(158, 210, 255, 0.1);
  border-radius: 18px;
}

.osag-footer-card p,
.osag-footer-card a {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c5d3e0;
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

.osag-footer-card a:hover {
  color: #9ed2ff;
}

.osag-footer-card i {
  margin-top: 2px;
  color: #7eb8ea;
}

.osag-footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(158, 210, 255, 0.08);
  color: #7f90a3;
  font-size: 13px;
}

.osag-footer-legal p {
  margin: 0;
}

.osag-footer-legal a {
  margin-left: 18px;
  color: #7f90a3;
  text-decoration: none;
}

.osag-footer-legal a:hover {
  color: #9ed2ff;
}

[dir="rtl"] .osag-footer-legal a {
  margin-inline-start: 18px;
  margin-inline-end: 0;
}

@media (max-width: 991px) {
  .osag-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .osag-footer-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .osag-footer {
    margin-top: 0;
  }

  main {
    padding-bottom: 72px;
  }

  .osag-footer-main,
  .osag-footer-legal {
    display: flex;
    flex-direction: column;
  }

  .osag-footer-menus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }

  .osag-footer-menus a {
    max-width: 100%;
  }
}

/* ---------- Legal pages ---------- */
.osag-legal-card {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  padding: 36px 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(31, 95, 158, 0.06);
  color: var(--ink);
}

.osag-legal-updated {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.osag-legal-card h2 {
  margin: 28px 0 10px;
  color: var(--sky-700);
  font-size: 20px;
  font-weight: 800;
}

.osag-legal-card p,
.osag-legal-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.osag-legal-card ul {
  padding-left: 1.2em;
  margin: 0 0 8px;
}

.osag-legal-card a {
  color: var(--sky-600);
  font-weight: 700;
}

.night-mode .osag-legal-card h2,
.night-mode .osag-legal-card a {
  color: #9ed2ff;
}

/* ---------- Contact ---------- */
.contact-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 28px;
}

.contact-point {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(31, 95, 158, 0.06);
}

.contact-point:hover {
  border-color: var(--sky-300);
  text-decoration: none;
  color: inherit;
}

.contact-point i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--sky-600);
  font-size: 18px;
}

.contact-point span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-point strong {
  color: var(--ink);
  font-size: 16px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.contact-form-card,
.contact-aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 32px;
  box-shadow: 0 12px 32px rgba(31, 95, 158, 0.06);
}

.contact-form-card h2,
.contact-aside h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.contact-form {
  position: relative;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  text-align: start;
}

.contact-fields span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-fields-full {
  grid-column: 1 / -1;
}

.contact-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d9e4;
  border-radius: 12px;
  background: #e8eef4;
  color: var(--ink);
  font-size: 15px;
  text-align: start;
}

.contact-input:focus {
  outline: 2px solid rgba(65, 143, 222, 0.35);
  border-color: var(--sky-500);
}

.contact-form-card .btn-primary-modern {
  width: 100%;
  justify-content: center;
}

.contact-alert {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.contact-alert p {
  margin: 0;
}

.contact-alert.is-ok {
  background: #e8f7ee;
  color: #1f6b3a;
}

.contact-alert.is-error {
  background: #fdecec;
  color: #9b1c1c;
}

.contact-aside p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

.contact-map {
  margin-top: 36px;
  line-height: 0;
}

.contact-map iframe {
  display: block;
  width: 100%;
}

@media (max-width: 991px) {
  .contact-points,
  .contact-layout,
  .contact-fields {
    grid-template-columns: 1fr;
  }
}

/* ---------- Attorney General ---------- */
.ag-page {
  padding-top: 52px;
}

.ag-stage,
.home-ag-card {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(31, 95, 158, 0.08);
}

.ag-portrait,
.home-ag-photo {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(65, 143, 222, 0.12), transparent 40%),
    #e8f3fc;
}

.ag-portrait img,
.home-ag-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: top center;
}

.ag-portrait-mark {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #418fde;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 10px 22px rgba(31, 95, 158, 0.28);
}

.ag-identity,
.home-ag-copy {
  padding: 36px 40px 36px 8px;
  text-align: start;
}

.ag-kicker {
  display: inline-block;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  color: var(--sky-600);
  margin-bottom: 10px;
}

.ag-identity h2,
.home-ag-copy h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
}

.ag-identity h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.home-ag-copy h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.ag-title,
.home-ag-role {
  margin: 0 0 16px;
  color: var(--sky-600);
  font-size: 18px;
  font-weight: 700;
}

.ag-lead,
.home-ag-copy p {
  max-width: 58ch;
  margin: 0 0 22px;
  margin-inline-end: auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.ag-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--sky-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.ag-chip:hover {
  background: var(--sky-500);
  color: #fff;
  text-decoration: none;
}

.ag-panels {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.ag-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 32px;
}

.ag-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--sky-700);
  font-size: 20px;
  font-weight: 800;
}

.ag-copy,
.ag-copy p,
.ag-copy li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.ag-copy p:last-child {
  margin-bottom: 0;
}

.ag-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ag-facts li {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--sky-50);
}

.ag-facts strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
}

.ag-facts span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.home-ag {
  padding: 16px 0 48px;
}

.home-ag-card {
  min-height: 320px;
}

.home-ag-copy .btn-primary-modern {
  display: inline-flex;
}

[dir="rtl"] .ag-identity,
[dir="rtl"] .home-ag-copy {
  padding: 36px 8px 36px 40px;
}

[dir="rtl"] .ag-portrait-mark {
  right: auto;
  left: 18px;
}

@media (max-width: 991px) {
  .ag-stage,
  .home-ag-card,
  .ag-facts {
    grid-template-columns: 1fr;
  }

  .ag-portrait img,
  .home-ag-photo img {
    min-height: 280px;
    max-height: 420px;
  }

  .ag-identity,
  .home-ag-copy,
  [dir="rtl"] .ag-identity,
  [dir="rtl"] .home-ag-copy {
    padding: 28px 24px 32px;
  }
}

/* ---------- Buttons / year archive leftover ---------- */
.year-archive-header {
  background: linear-gradient(135deg, #418fde 0%, #1f5f9e 100%);
}

.btn-primary-modern {
  background: linear-gradient(135deg, #418fde 0%, #1f5f9e 100%);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary-modern:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

[dir="rtl"] .modern-header .navbar-brand {
  margin-inline-end: 12px;
}

/* ---------- Night mode ---------- */
.night-mode {
  --sky-50: #16202c;
  --sky-100: #1d2b3a;
  --sky-200: #2a3d52;
  --line: rgba(158, 210, 255, 0.16);
  --card: #1b2836;
  --ink: #f3f7fb;
  --muted: #b7c4d1;
  --bg: #121a24;
}

body.night-mode {
  background: #121a24 !important;
  background-image: none !important;
}

.night-mode main {
  background: #121a24;
}

.night-mode .site-chrome {
  background: transparent;
}

.night-mode .modern-header,
.night-mode .site-chrome .modern-header {
  background: rgba(18, 26, 36, 0.72);
  border-color: rgba(158, 210, 255, 0.18);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.night-mode .header-tools .theme-toggle {
  background: #1b2836;
  border-color: rgba(215, 230, 244, 0.14);
  color: var(--ink);
}

.night-mode .lang-pills {
  background: #1b2836;
  border-color: rgba(215, 230, 244, 0.14);
}

.night-mode .lang-pills a.is-active {
  background: #243447;
  color: var(--ink);
}

.night-mode .home-hero {
  color: #f3f7fb;
  background:
    radial-gradient(ellipse at 86% 10%, rgba(90, 140, 200, 0.22), transparent 32%),
    linear-gradient(180deg, #02060c 0%, #07111d 42%, #0b1828 100%);
}

.night-mode .home-hero::before {
  display: block;
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, transparent, #121a24);
}

.night-mode .home-hero-cloud {
  display: none;
}

.night-mode .home-hero-stars,
.night-mode .home-hero-stars-2 {
  display: block;
}

.night-mode .modern-header .header-nav {
  background: rgba(255, 255, 255, 0.06);
}

.night-mode .modern-header .nav-link:hover,
.night-mode .modern-header .nav-item.active .nav-link {
  background: rgba(36, 52, 71, 0.95) !important;
  box-shadow: none;
}

.night-mode .osag-header-edge {
  display: none;
}

.night-mode .home-hero-facts {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(215, 230, 244, 0.18);
}

.night-mode .home-hero-facts a,
.night-mode .home-hero-facts > div {
  color: #f3f7fb;
  border-right-color: rgba(215, 230, 244, 0.12);
}

.night-mode .home-hero-facts a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.night-mode .home-hero-facts span {
  color: rgba(243, 247, 251, 0.72);
}

.night-mode .home-hero-kicker,
.night-mode .home-hero h1 {
  color: rgba(207, 230, 255, 0.82);
}

.night-mode .home-hero-mandate {
  color: rgba(243, 247, 251, 0.78);
}

.night-mode .services-slider-section {
  background: #121a24;
}

.night-mode .home-hero-functions {
  color: #fff;
  background: none;
  border: 0;
  box-shadow: none;
}

.night-mode .home-hero-functions li {
  background: none;
  border: 0;
  color: inherit;
}

.night-mode .home-hero-meta li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(158, 210, 255, 0.28);
  color: #9ed2ff;
}

.night-mode .folder-card h3,
.night-mode .news-card-body h3 a,
.night-mode .news-card-body h5 a,
.night-mode .news-aside a,
.night-mode .news-article-body h2,
.night-mode .org-grid-card h5,
.night-mode .service-compact-card h5 {
  color: var(--ink);
}

.night-mode .folder-card p,
.night-mode .news-card-body p,
.night-mode .news-details,
.night-mode .service-compact-card p {
  color: var(--muted);
}

.night-mode .document-filters .form-control,
.night-mode .document-filters select,
.night-mode .document-filters input[type="text"],
.night-mode .document-filter-input,
.night-mode .osag-page-size select {
  background: var(--sky-100) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
  color-scheme: dark;
}

.night-mode .document-filters select option,
.night-mode .osag-page-size select option {
  background: #1d2b3a;
  color: #f3f7fb;
}

.night-mode .document-filter-field span,
.night-mode .osag-page-size,
.night-mode .osag-page-meta {
  color: var(--muted);
}

.night-mode .home-search {
  background: #15202b;
  border: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.night-mode .home-search input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--ink) !important;
  color-scheme: only light;
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

.night-mode .home-search input:focus,
.night-mode .home-search input:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.night-mode .home-search input::-webkit-search-decoration,
.night-mode .home-search input::-webkit-search-cancel-button,
.night-mode .home-search input::-webkit-search-results-button,
.night-mode .home-search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.night-mode .home-search input:-webkit-autofill,
.night-mode .home-search input:-webkit-autofill:hover,
.night-mode .home-search input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px transparent inset;
}

.night-mode .home-quick-links a,
.night-mode .document-filters,
.night-mode .osag-table-card,
.night-mode .news-card,
.night-mode .news-article,
.night-mode .news-aside,
.night-mode .folder-card,
.night-mode .org-card,
.night-mode .org-grid-card,
.night-mode .service-compact-card,
.night-mode .doc-tabs,
.night-mode .lang-dropdown {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

.night-mode .lang-dropdown a {
  color: var(--ink);
}

.night-mode .lang-dropdown a:hover,
.night-mode .lang-dropdown a.is-active {
  background: rgba(65, 143, 222, 0.16);
  color: #9ed2ff;
}

.night-mode .table-modern thead th,
.night-mode .bulletins-table thead th {
  background: #223246;
  color: #9ed2ff;
}

.night-mode .table-modern tbody td,
.night-mode .bulletins-table tbody td {
  border-color: rgba(158, 210, 255, 0.08);
  color: var(--ink);
}

.night-mode .table-modern tbody tr:hover,
.night-mode .bulletins-table tbody tr:hover {
  background: rgba(65, 143, 222, 0.1) !important;
}

.night-mode .gray-bg,
.night-mode section.gray-bg,
.night-mode #pricing {
  background: #121a24;
}

.night-mode .bulletin-link,
.night-mode .osag-table-card a:not(.btn-action) {
  color: #9ed2ff;
}

.night-mode .btn-action.view {
  background: #418fde;
  color: #fff;
}

.night-mode .btn-action.view:hover {
  background: #2f78c4;
  color: #fff;
}

.night-mode .btn-action.download {
  background: rgba(255, 215, 0, 0.14);
  color: #ffd700;
}

.night-mode .btn-action.download:hover {
  background: #ffd700;
  color: #1d2b3a;
}

.night-mode .btn-action i {
  color: inherit;
}

.night-mode .blogs-section,
.night-mode .news-page,
.night-mode .about-modern-section,
.night-mode .services-detail-section,
.night-mode .values-section,
.night-mode .organizations-section,
.night-mode .recent-bulletins-section {
  background: transparent;
}

.night-mode .folder-icon,
.night-mode .org-grid-meta,
.night-mode .badge-modern.badge-primary {
  background: rgba(65, 143, 222, 0.16);
  color: #9ed2ff;
}

.night-mode .doc-tabs a {
  color: var(--muted);
}

.night-mode .doc-tabs a.is-active {
  background: var(--sky-500);
  color: #fff;
}

.night-mode .page-banner {
  background: linear-gradient(135deg, #1f5f9e 0%, #2f78c4 100%);
}

.night-mode .ag-stage,
.night-mode .home-ag-card,
.night-mode .ag-panel {
  background: var(--card);
  border-color: var(--line);
}

.night-mode .ag-portrait,
.night-mode .home-ag-photo {
  background: #16202c;
}

.night-mode .ag-identity h2,
.night-mode .home-ag-copy h2,
.night-mode .ag-facts strong {
  color: var(--ink);
}

.night-mode .ag-title,
.night-mode .home-ag-role,
.night-mode .ag-kicker,
.night-mode .ag-panel h2 {
  color: #9ed2ff;
}

.night-mode .ag-lead,
.night-mode .home-ag-copy p,
.night-mode .ag-copy,
.night-mode .ag-copy p,
.night-mode .ag-facts span {
  color: var(--muted);
}

.night-mode .ag-chip,
.night-mode .ag-facts li {
  background: var(--sky-100);
  color: #9ed2ff;
}

.night-mode .ag-chip:hover {
  background: var(--sky-500);
  color: #fff;
}

.night-mode .contact-point,
.night-mode .contact-form-card,
.night-mode .contact-aside {
  background: var(--card);
  border-color: var(--line);
}

.night-mode .contact-form-card h2,
.night-mode .contact-aside h2,
.night-mode .contact-point strong {
  color: var(--ink);
}

.night-mode .contact-point i {
  background: var(--sky-100);
  color: #9ed2ff;
}

.night-mode .contact-input {
  background: var(--sky-100);
  border-color: var(--line);
  color: var(--ink);
}

.night-mode .contact-alert.is-ok {
  background: rgba(46, 160, 90, 0.16);
  color: #8ee0a8;
}

.night-mode .contact-alert.is-error {
  background: rgba(180, 50, 50, 0.18);
  color: #ffb4b4;
}

/* ---------- Header line icons ---------- */
.modern-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modern-header .nav-link .lni-chevron-down {
  font-size: 0.72em;
  opacity: 0.65;
}

.modern-header .header-tools {
  flex-shrink: 0;
}

/* ---------- Pagination ---------- */
.osag-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 28px 0 8px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.osag-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.osag-page-size select {
  height: 38px;
  min-width: 110px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--sky-50);
  color: var(--ink);
  font-weight: 700;
}

.osag-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.osag-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.osag-page-btn:hover {
  border-color: var(--sky-500);
  color: var(--sky-700);
  text-decoration: none;
}

.osag-page-btn.is-active {
  background: linear-gradient(135deg, #418fde 0%, #1f5f9e 100%);
  border-color: transparent;
  color: #fff;
}

.osag-page-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.osag-page-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.night-mode .osag-pagination,
.night-mode .osag-page-btn,
.night-mode .osag-page-size select {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

.night-mode .osag-page-btn.is-active {
  color: #fff;
}

@media (max-width: 991px) {
  .news-featured,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    margin-top: -76px;
    padding: 118px 0 56px;
  }

  .modern-header .header-tools {
    position: static;
    transform: none;
  }

  .modern-header .nav-link::after {
    display: none;
  }

  .osag-pagination {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- About Us & Services ---------- */
.about-page,
.services-page {
  padding-bottom: 8px;
  background: var(--sky-50);
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(31, 95, 158, 0.08);
  margin-bottom: 28px;
}

.about-intro-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(126, 200, 255, 0.45), transparent 58%),
    linear-gradient(180deg, #e8f3fc 0%, #d5ebfb 100%);
}

.about-intro-mark img {
  width: 148px;
  height: auto;
}

.about-intro-copy {
  padding: 36px 40px;
  text-align: start;
}

.about-intro-copy h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.25;
}

.about-intro-copy p {
  max-width: 62ch;
  margin: 0 0 20px;
  margin-inline-end: auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.about-functions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 28px;
}

.about-function {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(31, 95, 158, 0.06);
  text-align: start;
}

.about-function span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--sky-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-function h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.about-function p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.night-mode .about-function {
  background: var(--card);
  border-color: var(--line);
}

.contact-hp,
.contact-hp input,
input.contact-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  inset-inline-start: -10000px !important;
}

.contact-input.form-control-solid,
.form-control-solid {
  background: #e8eef4;
  border: 1px solid #d0d9e4;
}

.contact-input.form-control-solid:focus,
.form-control-solid:focus {
  background: #fff;
  border-color: var(--sky-500);
}

.night-mode .contact-input.form-control-solid,
.night-mode .form-control-solid {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--ink);
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--sky-700);
  font-size: 13px;
  font-weight: 800;
}

.about-story,
.about-values,
.services-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.about-story {
  grid-template-columns: repeat(3, 1fr);
}

.about-values {
  grid-template-columns: repeat(4, 1fr);
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.about-panel,
.about-value,
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: 0 12px 32px rgba(31, 95, 158, 0.06);
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-panel i,
.about-value i,
.service-card i {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--sky-600);
  font-size: 20px;
}

.about-panel h3,
.about-value h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about-panel p,
.about-value p,
.service-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.about-panel p:last-child,
.about-value p:last-child,
.service-card p:last-child {
  margin-bottom: 0;
}

.service-card-wide {
  grid-column: span 2;
}

.service-case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.service-case-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--sky-700);
  font-size: 12px;
  font-weight: 800;
}

.service-cases-band {
  margin: 0 0 36px;
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(31, 95, 158, 0.06);
}

.service-cases-band h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.service-cases-band h3 i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--sky-100);
  color: var(--sky-600);
  font-size: 16px;
}

.service-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-cases li {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--sky-50);
  border: 1px solid var(--line);
}

.service-cases strong {
  display: block;
  margin-bottom: 4px;
  color: var(--sky-700);
  font-size: 14px;
}

.service-cases span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.services-authority {
  justify-content: center;
  margin-bottom: 12px;
}

.services-authority-note {
  max-width: 72ch;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 12px;
}

.about-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--sky-700);
  font-weight: 700;
  text-decoration: none;
}

.about-cta-ghost:hover {
  border-color: var(--sky-500);
  color: var(--sky-600);
  text-decoration: none;
}

[dir="rtl"] .about-intro-copy,
[dir="rtl"] .ag-identity,
[dir="rtl"] .home-ag-copy,
[dir="rtl"] .contact-page,
[dir="rtl"] .contact-point,
[dir="rtl"] .contact-form-card,
[dir="rtl"] .contact-aside {
  text-align: start;
}

.night-mode .about-intro,
.night-mode .about-panel,
.night-mode .about-value,
.night-mode .service-card,
.night-mode .service-cases-band,
.night-mode .about-cta-ghost {
  background: var(--card);
  border-color: var(--line);
}

.night-mode .about-intro-mark {
  background:
    radial-gradient(circle at 50% 20%, rgba(65, 143, 222, 0.2), transparent 58%),
    #16202c;
}

.night-mode .about-intro-copy h2,
.night-mode .about-panel h3,
.night-mode .about-value h3,
.night-mode .service-card h3 {
  color: var(--ink);
}

.night-mode .about-chips li {
  background: var(--sky-100);
  color: #9ed2ff;
}

.night-mode .service-case-chips li {
  background: var(--sky-100);
  color: #9ed2ff;
}

.night-mode .service-cases li {
  background: var(--sky-100);
  border-color: var(--line);
}

.night-mode .service-cases strong,
.night-mode .about-cta-ghost {
  color: #9ed2ff;
}

@media (max-width: 1199px) {
  .service-cases {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .about-intro,
  [dir="rtl"] .about-intro,
  .about-story,
  .about-values,
  .about-functions,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-wide {
    grid-column: auto;
  }

  .service-cases {
    grid-template-columns: 1fr;
  }

  .about-intro-copy {
    padding: 28px 24px;
  }
}

/* ---------- Portal assistant ---------- */
.back-to-top {
  bottom: 96px;
}

.osag-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1400;
}

.osag-assistant-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #418fde 0%, #1f5f9e 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(31, 95, 158, 0.28);
}

.osag-assistant-fab i {
  font-size: 18px;
}

.osag-assistant-panel {
  width: min(420px, calc(100vw - 32px));
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(31, 95, 158, 0.18);
}

.osag-assistant-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 8px;
}

.osag-assistant-kicker {
  margin: 0 0 4px;
  color: var(--sky-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.osag-assistant-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.osag-assistant-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--sky-700);
}

.osag-assistant-note {
  margin: 0 18px 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.osag-assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 10px;
}

.osag-assistant-chips button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sky-50);
  color: var(--sky-700);
  font-size: 12px;
  font-weight: 700;
}

.osag-assistant-log {
  flex: 1;
  min-height: 180px;
  overflow-y: auto;
  padding: 8px 18px 12px;
}

.osag-assistant-msg {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  max-width: 95%;
}

.osag-assistant-msg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.osag-assistant-msg.is-user {
  margin-left: auto;
  background: var(--sky-500);
  color: #fff;
}

.osag-assistant-msg.is-assistant {
  background: var(--sky-50);
  border: 1px solid var(--line);
  color: var(--ink);
}

.osag-assistant-msg ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.osag-assistant-msg li + li {
  margin-top: 8px;
}

.osag-assistant-msg a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.osag-assistant-msg a:hover {
  border-color: var(--sky-300);
  text-decoration: none;
}

.osag-assistant-msg a strong {
  display: block;
  color: var(--sky-700);
  font-size: 14px;
}

.osag-assistant-msg a span {
  color: var(--muted);
  font-size: 12px;
}

.osag-assistant-msg a small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.osag-assistant-form {
  display: flex;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
}

.osag-assistant-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sky-50);
  color: var(--ink);
}

.osag-assistant-msg.is-pending {
  display: flex;
  align-items: center;
  gap: 10px;
}

.osag-assistant-msg.is-pending p {
  margin: 0;
}

.osag-assistant-dots {
  display: inline-flex;
  gap: 4px;
}

.osag-assistant-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-500);
  animation: osag-assistant-pulse 1s infinite ease-in-out;
}

.osag-assistant-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.osag-assistant-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes osag-assistant-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.osag-assistant-form.is-busy button {
  opacity: 0.65;
}

.osag-assistant-form button {
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #418fde 0%, #1f5f9e 100%);
  color: #fff;
  font-weight: 800;
}

.osag-assistant .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

[dir="rtl"] .osag-assistant {
  right: auto;
  left: 24px;
}

[dir="rtl"] .osag-assistant-msg.is-user {
  margin-left: 0;
  margin-right: auto;
}

.night-mode .osag-assistant-panel,
.night-mode .osag-assistant-msg a,
.night-mode .osag-assistant-form input {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

.night-mode .osag-assistant-msg.is-assistant,
.night-mode .osag-assistant-chips button,
.night-mode .osag-assistant-close {
  background: var(--sky-100);
  color: var(--ink);
}

.night-mode .osag-assistant-head h2,
.night-mode .osag-assistant-msg a strong {
  color: #9ed2ff;
}

@media (max-width: 640px) {
  .osag-assistant-fab span {
    display: none;
  }

  .osag-assistant-fab {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
}

/* ---------- Error pages ---------- */
.osag-error {
  padding: 48px 0 80px;
}

.osag-error-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 36px 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(31, 95, 158, 0.08);
  text-align: center;
}

.osag-error-kicker {
  margin: 0 0 8px;
  color: var(--sky-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.osag-error-code {
  margin: 0;
  color: var(--sky-500);
  font-size: clamp(64px, 12vw, 104px);
  font-weight: 800;
  line-height: 1;
}

.osag-error-card h1 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
}

.osag-error-copy {
  margin: 0 auto 24px;
  max-width: 36em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.osag-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.osag-error-secondary {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sky-700);
  font-weight: 700;
}

.osag-error-secondary:hover {
  background: var(--sky-50);
  color: var(--sky-700);
  text-decoration: none;
}

.night-mode .osag-error-card {
  background: var(--card);
  border-color: var(--line);
}
