html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  color: var(--color-text);
  background: var(--color-background);
  overflow-wrap: anywhere;
}

body:not(.is-home) {
  background: var(--color-background);
}

.page-hero,
.page-header,
.parallax-header {
  background: linear-gradient(128deg, #0b1728 0%, #10243a 62%, #123f45 100%);
  border-bottom: 1px solid rgba(213, 164, 65, 0.3);
}

.feature-card,
.value-item,
.service-item-card,
.news-article,
.team-member,
.contact-info-card,
.contact-form-card,
.news-detail,
.directorate-header,
.directorate-activities {
  color: var(--color-text);
  background: #fff;
  border: 1px solid rgba(16, 36, 58, 0.09);
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.feature-card:hover,
.value-item:hover,
.service-item-card:hover,
.news-article:hover,
.team-member:hover,
.contact-info-card:hover,
.contact-form-card:hover,
.news-detail:hover {
  border-color: rgba(8, 127, 104, 0.22);
  box-shadow: 0 20px 46px rgba(11, 23, 40, 0.12);
}

.feature-card.accent-card {
  background: linear-gradient(140deg, #fff, #f0f7f5);
}

.feature-card h2,
.value-item h3,
.service-item-card h3,
.directorate-header h2,
.news-detail h2,
.contact-detail h3,
.card-header h2,
.team-member h3,
.team-member h4,
.news-article h2,
.news-article h3,
.contact-info-card h2,
.directorate-activities h3 {
  color: var(--color-navy);
}

.feature-card p,
.value-item p,
.service-item-card p,
.service-item-card li,
.news-article p,
.news-detail p,
.news-excerpt,
.contact-detail p,
.position,
.qualification,
.directorate-mission,
.activity-list li,
.team-member p,
.news-content {
  color: var(--color-muted);
}

.feature-icon,
.value-icon,
.service-icon,
.detail-icon {
  color: var(--color-primary);
  background: rgba(8, 127, 104, 0.08);
  border-color: rgba(8, 127, 104, 0.16);
  box-shadow: none;
}

.directorate-activities {
  padding: 28px;
}

.activity-list li::before,
.service-item-card li::before {
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(8, 127, 104, 0.08);
}

.tab-button {
  color: var(--color-navy);
  background: #fff;
  border-color: var(--color-border);
}

.tab-button:hover,
.tab-button:focus-visible {
  border-color: rgba(8, 127, 104, 0.42);
  box-shadow: 0 0 0 3px rgba(8, 127, 104, 0.1);
}

.tab-button.active {
  color: #fff;
  background: linear-gradient(135deg, #087f68, #10a982);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(8, 127, 104, 0.2);
}

.news-date {
  color: var(--color-primary);
  background: rgba(8, 127, 104, 0.09);
}

.contact-detail {
  border-bottom-color: var(--color-border);
}

.social-section h3 {
  color: var(--color-navy);
}

.social-icon {
  color: var(--color-primary);
  background: #f4f8fa;
  border-color: var(--color-border);
}

.social-icon:hover,
.social-icon:focus-visible {
  background: rgba(8, 127, 104, 0.1);
  border-color: rgba(8, 127, 104, 0.3);
  box-shadow: 0 0 0 3px rgba(8, 127, 104, 0.1);
}

.form-group input,
.form-group textarea,
.modern-select {
  color: var(--color-text);
  background: #fff;
  border-color: var(--color-border);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #71818d;
}

.form-group label {
  color: var(--color-muted);
}

.form-group.floating input:focus + label,
.form-group.floating input:not(:placeholder-shown) + label,
.form-group.floating textarea:focus + label,
.form-group.floating textarea:not(:placeholder-shown) + label {
  color: var(--color-primary);
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.modern-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(8, 127, 104, 0.12);
}

.modern-select {
  background-image: linear-gradient(45deg, transparent 50%, #087f68 50%), linear-gradient(135deg, #087f68 50%, transparent 50%);
}

.submit-button {
  background: linear-gradient(135deg, #087f68, #10a982);
  box-shadow: 0 12px 28px rgba(8, 127, 104, 0.22);
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.container,
.hero-grid,
.footer-bottom-inner {
  min-width: 0;
}

.section-soft {
  background: linear-gradient(180deg, #f8fbfc, #edf4f3);
}

.card {
  border-color: rgba(16, 36, 58, 0.08);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.glass-card {
  color: #fff;
  background: rgba(16, 36, 58, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
}

@supports (backdrop-filter: blur(1px)) {
  .glass-card {
    background: rgba(16, 36, 58, 0.88);
    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
  }
}

.site-header {
  background: rgba(11, 23, 40, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.is-home .hero > .site-header,
.hero > .site-header {
  background: linear-gradient(180deg, rgba(11, 23, 40, 0.78), rgba(11, 23, 40, 0.2)) !important;
}

body.is-home .hero > .site-header .menu-toggle {
  display: none;
}

.hero > .site-header.scrolled,
body.is-home .hero > .site-header.scrolled {
  background: rgba(11, 23, 40, 0.94) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 32px rgba(11, 23, 40, 0.18);
}

.nav-shell {
  gap: clamp(10px, 1.4vw, 22px);
}

.brand {
  flex: 0 0 auto;
}

.brand-accent {
  color: #7de0be;
}

.main-nav {
  min-width: 0;
}

.nav-list {
  gap: clamp(10px, 1.2vw, 19px);
}

.nav-link {
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav-link::after {
  background: var(--color-gold);
}

.online-services-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #087f68, #10a982);
  box-shadow: 0 10px 24px rgba(8, 127, 104, 0.24);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.online-services-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 28px rgba(8, 127, 104, 0.32);
}

.online-services-link:focus-visible,
.button:focus-visible,
.text-link:focus-visible,
.nav-link:focus-visible,
.footer-column a:focus-visible,
a:focus-visible,
.lang-toggle:focus-visible,
.menu-toggle:focus-visible,
.mobile-menu-close:focus-visible {
  outline: 3px solid #f1ca70;
  outline-offset: 3px;
}

.lang-toggle {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.button,
.hero-actions .button {
  min-height: 48px;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.primary,
.hero-actions .button.primary {
  color: #fff;
  background: linear-gradient(135deg, #087f68, #10a982);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 28px rgba(8, 127, 104, 0.25);
}

.button.secondary,
.hero-actions .button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body:not(.is-home) main .button.secondary {
  color: var(--color-navy);
  background: #fff;
  border-color: var(--color-border);
  box-shadow: none;
}

.button:hover,
.hero-actions .button:hover {
  transform: translateY(-2px);
}

.hero-actions .button:focus-visible {
  outline: 3px solid #f1ca70;
  outline-offset: 3px;
}

.button:disabled,
button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.hero {
  height: auto;
  min-height: 680px;
  min-height: min(860px, 100svh);
  aspect-ratio: auto;
  background: var(--color-deep);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 23, 40, 0.94) 0%, rgba(11, 23, 40, 0.76) 48%, rgba(11, 23, 40, 0.27) 100%),
    linear-gradient(0deg, rgba(11, 23, 40, 0.42), transparent 60%);
}

.hero-grid {
  width: min(var(--container-width), calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr);
  padding-top: 136px;
  padding-bottom: 64px;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.headline-accent {
  background: linear-gradient(90deg, #fff 0%, #b8ead8 62%, #e8cc8c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.hero-eyebrow {
  color: #c9f3e5;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: none;
}

.hero-description {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-status-bar {
  flex-wrap: wrap;
  gap: 4px;
  max-width: 740px;
  background: rgba(11, 23, 40, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-status-bar .status-item + .status-item {
  border-left-color: rgba(255, 255, 255, 0.18);
}

.hero-status-bar .status-item span,
.status-icon i {
  color: #c9f3e5;
}

.section {
  padding: clamp(56px, 7vw, 92px) 0;
}

.section-header h2,
.content-panel h2,
.section-title {
  color: var(--color-navy);
  letter-spacing: -0.035em;
}

.eyebrow {
  color: var(--color-primary);
  background: rgba(8, 127, 104, 0.08);
}

.service-card,
.project-card,
.news-card,
.stat-card {
  min-width: 0;
  border: 1px solid rgba(16, 36, 58, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.service-card,
.project-card,
.news-card {
  background: #fff;
}

.service-card:hover,
.project-card:hover,
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(11, 23, 40, 0.12);
}

.stat-grid,
.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(20px, 3vw, 32px);
}

.stat-card .status-icon {
  color: #b7ead8;
  font-size: 1.2rem;
}

.stat-card .stat-label {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}

.stat-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.news-card-body {
  padding: 24px;
}

.news-card .meta {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.news-card h3 {
  color: var(--color-navy);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.news-card p,
.news-empty-state {
  color: var(--color-muted);
}

.news-all-link {
  margin: 28px 0 0;
  text-align: center;
}

.text-link {
  color: var(--color-primary);
}

.cta-band {
  background: linear-gradient(130deg, #10243a, #123f45);
}

.cta-band .eyebrow {
  color: #c9f3e5;
  background: rgba(255, 255, 255, 0.1);
}

.cta-band h2 {
  color: #fff;
}

.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: #0b1728;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3,
.footer-brand .brand-name {
  color: #fff;
}

.footer-column a:hover {
  color: #a4e5cf;
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.mobile-menu-panel {
  width: min(92vw, 420px);
  height: 100vh;
  height: 100dvh;
  background: rgba(11, 23, 40, 0.97);
  border-left-color: rgba(255, 255, 255, 0.14);
}

.mobile-menu-item {
  border: 1px solid transparent;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.mobile-menu-item:focus-visible {
  outline: 3px solid #f1ca70;
  outline-offset: 2px;
}

.mobile-menu-item.online-service-menu-item {
  margin-top: 6px;
  color: #fff;
  background: linear-gradient(135deg, #087f68, #10a982);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-item.online-service-menu-item .label {
  color: #fff;
}

.mobile-menu-item.online-service-menu-item svg {
  stroke: #fff;
}

.history-card {
  padding: clamp(24px, 5vw, 52px);
}

.history-card h2 {
  color: var(--color-navy);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.directorates-promo,
.contact-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 5vw, 52px);
}

.directorates-promo h2,
.contact-promo h2 {
  max-width: 720px;
  margin: 14px 0 10px;
  color: var(--color-navy);
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.12;
}

.directorates-promo p,
.contact-promo p {
  margin: 0 0 10px;
  color: var(--color-muted);
}

.directorates-promo .button,
.contact-promo .button {
  flex: 0 0 auto;
  color: #fff;
}

.contact-phone {
  color: var(--color-primary);
  font-weight: 800;
}

.footer-column li,
.footer-column a,
.footer-brand p {
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .nav-shell {
    min-height: 76px;
  }

  body.is-home .hero > .site-header .menu-toggle {
    display: inline-flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .main-nav {
    display: none !important;
  }

  #langToggle {
    display: none;
  }

  .mobile-lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }

  .hero-grid {
    padding-top: 132px;
  }
}

@media (max-width: 767px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-name,
  .brand-accent {
    font-size: 1rem;
  }

  .hero {
    min-height: 0;
    min-height: 100svh;
  }

  .hero-grid {
    width: calc(100% - 32px);
    padding-top: 112px;
    padding-bottom: 38px;
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 10vw, 3.5rem);
    line-height: 1.05;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-status-bar {
    width: 100%;
    gap: 4px;
  }

  .hero-status-bar .status-item,
  .hero-status-bar .status-item + .status-item {
    flex: 1 1 100%;
    min-width: 0;
    margin-left: 0;
    padding: 8px 10px;
    border-left: 0;
  }

  .service-grid,
  .project-grid,
  .news-grid,
  .stat-grid,
  .focus-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-header {
    margin-bottom: 32px;
  }

  .directorates-promo,
  .contact-promo {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .directorates-promo .button,
  .contact-promo .button {
    width: 100%;
  }

  .card-grid {
    gap: 16px;
  }

  .footer-bottom-inner {
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .container,
  .hero-grid {
    width: calc(100% - 28px);
  }

  .nav-shell {
    gap: 8px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name,
  .brand-accent {
    font-size: 0.92rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 1025px) {
  body.is-home .hero > .site-header .menu-toggle {
    display: none !important;
  }
}

body.is-home .hero .hero-actions .button {
  box-sizing: border-box;
  min-height: 48px;
  padding: 3px 10px 3px 3px !important;
  font-size: 0.95rem;
}

body.is-home .hero .hero-actions .button .btn-icon {
  box-sizing: border-box;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-right: 0;
  padding: 7px;
}

@media (max-width: 767px) {
  body.is-home .hero .hero-actions .button {
    min-height: 48px;
  }

  body.is-home .hero .hero-actions .button .btn-icon {
    flex-basis: 32px;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    padding: 5px;
  }
}
