:root {
  --dortel-red: #c52033;
  --dortel-red-dark: #a01828;
  --dortel-marquee: #c30e2e;
  --dortel-gray: #333e47;
  --dortel-light: #f8f9fa;
  --dortel-portal: #c9343a;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--dortel-gray);
  background: #eef1f4;
  line-height: 1.7;
}

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

a:hover {
  color: var(--dortel-red-dark);
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand img {
  height: 56px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--dortel-gray) !important;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 0.75rem !important;
  transition: color 0.2s;
  white-space: nowrap;
}

.navbar-nav .nav-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--dortel-red) !important;
}

.navbar-nav .nav-link:hover .nav-icon,
.navbar-nav .nav-link.active .nav-icon {
  opacity: 1;
}

.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.35rem;
}

.lang-switch a.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--dortel-gray);
  padding: 0.25rem 0.4rem;
  text-decoration: none;
}

.lang-switch a.lang-link:hover {
  color: var(--dortel-red);
}

.lang-switch a.lang-link.active {
  color: var(--dortel-red);
}

.lang-switch .lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  display: block;
}

.lang-switch .lang-divider {
  color: #adb5bd;
  user-select: none;
}

/* Hero carousel */
.hero-carousel .carousel-inner {
  background: #1a1a1a;
}

.hero-carousel .carousel-item {
  height: auto;
}

.hero-carousel .carousel-item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  aspect-ratio: 1055 / 276;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--dortel-red);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Stats ticker */
.stats-bar {
  background: var(--dortel-marquee);
  color: #fff;
  overflow: hidden;
  padding: 0.75rem 0;
}

.stats-track {
  display: flex;
  gap: 3rem;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.stats-track span {
  font-size: 0.9rem;
}

.stats-track strong {
  font-weight: 700;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main layout */
.main-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.content-area {
  padding: 2rem;
}

@media (max-width: 991.98px) {
  .content-area {
    padding: 1.25rem;
  }
}

.page-title {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--dortel-red);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--dortel-red);
}

.page-title-icon {
  font-size: 1em;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.section-title {
  color: var(--dortel-red);
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-area img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.content-area img.float-end {
  max-width: 280px;
  margin: 0 0 1rem 1.5rem;
}

.content-area img.img-full {
  width: 100%;
  margin: 1.5rem 0;
}

/* Sidebar */
@media (min-width: 992px) {
  .row > #site-sidebar.col-lg-3 {
    flex: 0 0 360px;
    width: 360px;
    max-width: 360px;
  }

  .row > #site-sidebar.col-lg-3 + .col-lg-9 {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }
}

.sidebar-nav {
  padding: 1rem 0.5rem 1rem 0;
}

.sidebar-nav .list-group-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-left: 3px solid transparent;
  padding: 0.6rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--dortel-gray);
  background: var(--dortel-light);
  margin-bottom: 4px;
  border-radius: 0 6px 6px 0 !important;
  transition: all 0.2s;
  white-space: nowrap;
}

.sidebar-nav .sidebar-icon {
  flex-shrink: 0;
  font-size: 1.05rem;
  width: 1.2rem;
  text-align: center;
  opacity: 0.9;
}

.sidebar-nav .sidebar-label {
  flex: 1;
  min-width: 0;
}

.sidebar-nav .list-group-item:hover {
  background: #fff;
  border-left-color: var(--dortel-red);
  color: var(--dortel-red);
  box-shadow: 0 2px 8px rgba(197, 32, 51, 0.1);
}

.sidebar-nav .list-group-item:hover .sidebar-icon {
  opacity: 1;
}

.sidebar-nav .list-group-item.active {
  background: var(--dortel-red);
  border-left-color: var(--dortel-red-dark);
  color: #fff;
}

.sidebar-nav .list-group-item.active .sidebar-icon {
  opacity: 1;
}

.sidebar-nav .sidebar-portal-link {
  border: 1px solid var(--dortel-red) !important;
  border-left: 3px solid var(--dortel-red) !important;
  margin-top: 6px;
}

.sidebar-nav .sidebar-portal-link:hover {
  border-color: var(--dortel-red) !important;
  border-left-color: var(--dortel-red-dark) !important;
}

@media (max-width: 991.98px) {
  .sidebar-nav {
    padding: 0 0 1rem;
  }

  .sidebar-nav .list-group-item {
    white-space: normal;
    font-size: 0.92rem;
    padding: 0.7rem 0.9rem;
  }

  .sidebar-nav .sidebar-label {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* Home intro image */
.home-intro {
  width: 100%;
}

.home-intro-img {
  max-width: 100%;
  height: auto;
}

/* Documentary button */
.doc-button {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: 180px;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: filter 0.3s, transform 0.3s;
}

.doc-button:hover {
  filter: brightness(1.15);
  transform: scale(1.02);
}

/* Contact cards */
.office-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}

.office-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.office-card h5 {
  color: var(--dortel-red);
  font-weight: 700;
  font-size: 1rem;
}

.office-card.hq {
  border-left: 4px solid var(--dortel-red);
}

/* Forms */
.form-card {
  background: #fbf7f7;
  border-radius: 10px;
  padding: 1.5rem;
  height: 100%;
}

.form-card h4 {
  color: var(--dortel-red);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Gallery */
.cert-grid img,
.award-grid img {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  transition: transform 0.2s;
}

.cert-grid img:hover,
.award-grid img:hover {
  transform: scale(1.02);
}

.membership-grid > [class*="col"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.membership-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 110px;
  padding: 0.75rem;
}

.membership-grid img {
  width: 100%;
  max-width: 100%;
  height: 90px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.2s;
}

.membership-grid a:hover img {
  filter: grayscale(0%);
}

/* Footer */
.site-footer {
  background: #2c3138;
  color: #adb5bd;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.site-footer .footer-brand {
  color: #fff;
  font-weight: 600;
}

/* Video modal */
.modal-video .modal-content {
  background: #000;
  border: none;
}

.modal-video .btn-close {
  filter: invert(1);
}

/* Utility */
.text-dortel {
  color: var(--dortel-red) !important;
}

.bg-dortel {
  background-color: var(--dortel-red) !important;
}

.info-list li {
  margin-bottom: 0.35rem;
}

.corporate-info dt {
  font-weight: 600;
  color: var(--dortel-gray);
}

.corporate-info dd {
  margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
  .doc-button {
    max-width: 120px;
  }

  .content-area img.float-end {
    float: none !important;
    max-width: 100%;
    margin: 0 0 1rem 0;
  }
}
