:root {
  --navy: #071a30;
  --blue: #0168b7;
  --orange: #ffa200;
  --text: #545555;
  --container: 1300px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Almarai, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Topbar — match original: 55px, 15px Montserrat, 25px icons */
.topbar {
  background: var(--navy);
  color: #fff;
  font-family: Montserrat, Almarai, sans-serif;
  font-size: 15px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 55px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.topbar-link svg {
  width: 25px;
  height: 25px;
  fill: #fff;
  flex: 0 0 auto;
}
.social { display: flex; align-items: center; gap: 12px; }
.social-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10%;
}
.social-icon svg { width: 17px; height: 17px; fill: #fff; }
.social-icon.linkedin { background: #0077b5; }
.social-icon.youtube { background: #cd201f; }
.social-icon.facebook { background: #3b5998; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .7);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.lang-switch a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}
.lang-switch a:hover,
.lang-switch a.active {
  color: #fff;
}
.lang-switch a.active { font-weight: 700; }

/* Navbar — blue band ~78px (60% of 130px); menu sits in the blue area */
.navbar {
  background: linear-gradient(#0168b7 78px, #fff 78px);
  padding-bottom: 0;
}
.nav-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  min-height: 130px;
}
.logo { flex: 0 0 auto; }
.logo img { width: 250px; max-width: 100%; display: block; }
.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1;
  min-width: 0;
  min-height: 78px;
}
.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu > li > a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 24px;
  white-space: nowrap;
}
.menu > li.current > a { color: var(--orange); }
.menu-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  margin-top: 2px;
}
.menu > li.current > a .menu-caret { border-top-color: var(--orange); }
.home-item img { display: block; width: 26px; height: 24px; }
.quote {
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-family: Inter, Almarai, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 3px;
  white-space: nowrap;
  line-height: 24px;
}
.nav-toggle, .sub-toggle { display: none; background: transparent; color: #fff; border: 0; }
.has-sub { position: relative; }
.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 26, 48, .16);
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { display: block; padding: 8px 16px; color: #222; text-decoration: none; }
.sub a:hover { color: var(--blue); }

/* Categories */
.listing { padding: 28px 0 72px; }
.cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0 0 36px;
  align-items: stretch;
}
.cat {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
.cat-mark {
  width: 8px;
  height: 35px;
  margin-top: 1px;
  flex: 0 0 auto;
  object-fit: cover;
  display: block;
}
.cat-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 0 12px 0 10px;
  background: #f7f7f7;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}
.cat-label .arrow { color: var(--text); }
.cat.active .cat-label,
.cat.active .cat-label .arrow { color: var(--orange); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #000;
  text-decoration: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .2);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .24);
  transform: translateY(-2px);
}
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 0;
  background: #102033;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform .35s ease;
}
.card:hover .thumb img {
  transform: scale(1.08);
}
.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  color: #fff;
  opacity: .8;
  filter: drop-shadow(1px 0 6px rgba(0, 0, 0, .3));
  pointer-events: none;
}
.play-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.card:hover .play-icon { opacity: 1; }
.card-title {
  display: block;
  padding: 16px 14px 18px;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.empty, .not-found { padding: 40px 0; text-align: center; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.pager a, .pager span { min-width: 36px; padding: 8px; color: var(--blue); text-align: center; text-decoration: none; }
.pager [aria-current="page"] { color: #fff; background: var(--blue); border-radius: 4px; }
.watch { padding: 28px 0 72px; }
.narrow { width: min(980px, calc(100% - 32px)); margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.crumbs a, .text-link, .meta a { color: var(--blue); }
.watch h1 { margin: 0 0 16px; color: #111; font-size: 32px; line-height: 1.25; text-align: center; }
.player {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  box-shadow:
    0 0 10px rgba(0, 0, 0, .2),
    0 12px 28px rgba(7, 26, 48, .18);
}
.player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}
.player-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.player-cover .play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  color: #fff;
  opacity: .8;
  filter: drop-shadow(1px 0 6px rgba(0, 0, 0, .3));
}
.player-cover .play-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.player-cover:hover .play-icon { opacity: 1; }
.player.is-playing .player-cover { display: none; }
.meta { display: flex; flex-wrap: wrap; gap: 16px; }
.summary { color: #222; font-size: 18px; }
.body { line-height: 1.7; }
.related-title { margin: 40px 0 16px; color: #111; }
.not-found h1 { color: #111; }

/* Footer — deco strip (1920x47) sits above solid black content */
.site-footer { color: #fff; }
.footer-deco {
  padding: 40px 0 0;
  min-height: 20px;
  background-color: transparent;
  background-image: url("../img/footer-deco.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: cover;
}
.footer-quote-bar {
  background: #000;
  padding: 10px 0 0;
}
.footer-quote-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  min-height: 63px;
}
.footer-logo-wrap { display: flex; align-items: center; }
.footer-logo {
  width: 175px;
  height: auto;
  display: block;
}
.footer-quote-wrap { display: flex; align-items: center; justify-content: flex-start; }
.quote-footer {
  padding: 4px 20px;
  line-height: 35px;
}
.footer-main {
  padding: 20px 0 60px;
  background: #000;
}
.footer-grid {
  display: grid;
  grid-template-columns: 57.2fr 16.5fr 14.9fr 11.4fr;
  gap: 0;
  align-items: start;
}
.footer-grid > div { padding-right: 24px; }
.footer-grid > div:last-child { padding-right: 0; }
.site-footer h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.site-footer p {
  margin: 0 0 16px;
  color: #efefef;
  font-size: 16px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul, .footer-contact { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; font-size: 16px; color: #efefef; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
  color: #efefef;
  font-size: 16px;
}
.footer-contact a { color: #efefef; text-decoration: underline; }
.footer-contact svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: var(--blue);
  flex: 0 0 auto;
}
.copyright {
  padding: 10px 0;
  background: #626262;
  font-size: 14px;
  min-height: 40px;
}
.copyright-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.copyright ul { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.copyright p { margin: 0; color: #fff; }
.copyright .site-credit { white-space: nowrap; }
.copyright a { color: #fff; }

@media (max-width: 1199px) {
  .logo img { width: 200px; }
  .nav-inner { min-height: 110px; }
  .menu > li > a { padding: 5px 8px; font-size: 15px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > div:nth-child(1) { grid-column: 1 / -1; padding-right: 0; margin-bottom: 8px; }
}
@media (max-width: 1099px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .navbar { position: relative; background: var(--blue); }
  .nav-inner { min-height: 92px; }
  .logo img { width: 168px; }
  .nav-toggle { display: inline-flex; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .55); }
  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 16px 20px;
    background: var(--blue);
  }
  .nav-panel.open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu > li > a { padding: 10px 12px; }
  .menu-caret { display: none; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > a { flex: 1; }
  .sub-toggle { display: inline-flex; justify-content: center; width: 40px; height: 40px; }
  .sub-toggle::before { content: "▾"; }
  .sub { position: static; display: none; flex-basis: 100%; min-width: 0; background: rgba(0, 0, 0, .15); box-shadow: none; }
  .has-sub.open > .sub, .has-sub:hover > .sub { display: block; }
  .sub a { color: #fff; }
  .quote { margin-top: 8px; text-align: center; }
}
@media (max-width: 699px) {
  .grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .topbar-inner { flex-direction: column; align-items: flex-start; min-height: 0; padding: 10px 0; }
  .topbar-left, .topbar-right { gap: 14px; }
  .footer-quote-inner { grid-template-columns: 1fr; gap: 16px; min-height: 0; padding-bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > div:nth-child(1) { grid-column: auto; }
  .footer-grid > div { padding-right: 0; }
  .watch h1 { font-size: 26px; }
  .card-title { font-size: 18px; }
}
