/* OLSC Bahrain visual and mobile upgrade — loaded after the legacy styles. */
:root {
  --olsc-red: #c8102e;
  --olsc-red-dark: #a90d27;
  --olsc-ink: #171111;
  --olsc-muted: #666;
  --olsc-line: #e7e2e2;
  --olsc-surface: #fff;
  --olsc-soft: #f8f6f6;
  --olsc-radius: 10px;
  --olsc-shadow: 0 8px 24px rgba(23, 17, 17, 0.09);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--olsc-ink);
  background: var(--olsc-surface);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--olsc-red); }
a:hover { color: var(--olsc-red-dark); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.35);
  outline-offset: 3px;
}

.container,
.navbar .container {
  width: min(100% - 32px, 1200px);
  max-width: 1200px;
  padding-left: 0;
  padding-right: 0;
}

h1, .h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
h2, .h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.25; }
h3, .h3 { font-size: clamp(21px, 2.5vw, 27px); line-height: 1.3; }

.navbar,
.navbar.navbar-transparent {
  height: 82px;
  border-bottom: 1px solid rgba(23, 17, 17, 0.08);
  box-shadow: 0 3px 14px rgba(23, 17, 17, 0.08);
}

.navbar .nav-container .navbar-brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar .nav-container .navbar-brand img {
  display: block;
  width: auto;
  height: 56px;
  object-fit: contain;
}

.navbar .navbar-nav .nav-item.active {
  background: rgba(200, 16, 46, 0.09);
}

.navbar .navbar-nav .nav-item .nav-link {
  font-size: 14px;
  letter-spacing: .25px;
  min-height: 44px;
}

.index-page .page-header {
  height: 280px;
  min-height: 280px;
  margin-top: 82px;
  background-position: center;
  background-size: cover;
}

.cs { padding: 70px 0 80px; }
.cs.light { background: #fcfbfb; }
.cs + .cs { border-top: 1px solid var(--olsc-line); }
.cs h1 { margin-bottom: 32px; }
.prefix-hd { margin-bottom: 24px; }

.details {
  max-width: 900px;
  margin: 26px 0;
}

.details p,
.details li {
  color: #292323;
}

.cta-button {
  min-height: 52px;
  height: auto;
  padding: 14px 22px;
  border-radius: 7px;
  background: var(--olsc-red);
  box-shadow: 0 5px 14px rgba(200, 16, 46, 0.2);
  transition: transform .2s ease, background-color .2s ease;
}

.cta-button:hover {
  background: var(--olsc-red-dark);
  transform: translateY(-1px);
}

.news { margin-top: 22px; }
.news .article {
  border: 0;
  border-radius: var(--olsc-radius);
  overflow: hidden;
  box-shadow: var(--olsc-shadow);
}
.news .article .article-img { object-fit: cover; }
.news .article .article-body .article-date { color: var(--olsc-muted); }

.fixture { gap: 48px; }
.fixture .schedule,
.fixture .stats {
  min-width: 0;
  border-radius: var(--olsc-radius);
  overflow: hidden;
  background: var(--olsc-surface);
  box-shadow: var(--olsc-shadow);
}
.fixture .schedule .schedule-hdr { padding: 14px 18px 10px; }
.fixture .schedule .schedule-body .schedule-field { padding: 10px 18px; }
.fixture .stats .stats-hdr { background: var(--olsc-red); }
.fixture .stats .stats-body .stats-field:nth-child(even) { background: #fff7f8; }

.squad {
  width: 100%;
  margin: 0;
  padding: 20px 0 30px;
}
.squad .squad-players,
.gallery { gap: 22px; }
.squad .squad-players .player,
.gallery .media {
  width: calc(25% - 17px);
  margin: 0;
  border-radius: var(--olsc-radius);
  box-shadow: var(--olsc-shadow);
  filter: none;
}
.squad .squad-players .player img,
.gallery .media img { object-fit: cover; }

footer {
  padding: 56px 0;
  background: var(--olsc-ink);
}
footer .footer-body .ftr-details { color: #f4f1f1; }
footer .footer-body a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
footer address { font-style: normal; }

@media (max-width: 992px) {
  .navbar,
  .navbar.navbar-transparent { height: 74px; }

  .navbar .nav-container .navbar-brand img { height: 58px; }

  /* Keep the page and header stationary while the menu overlays from the right. */
  .nav-open .navbar-translate {
    -webkit-transform: none !important;
    transform: none !important;
  }

  .navbar .navbar-collapse {
    width: min(82vw, 320px);
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
    box-shadow: -8px 0 24px rgba(23, 17, 17, 0.16);
  }

  .nav-open .navbar-collapse {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  .navbar .navbar-nav {
    padding: 8px;
    border-radius: 0 0 10px 10px;
  }

  .navbar .navbar-nav .nav-item .nav-link {
    width: 100%;
    margin: 2px 0;
    padding: 11px 14px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .index-page .page-header {
    height: 220px;
    min-height: 220px;
    margin-top: 74px;
  }

  .fixture { gap: 42px; }
  .fixture .schedule,
  .fixture .stats {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .squad .squad-players .player,
  .gallery .media { width: calc(33.333% - 15px); }
}

@media (max-width: 600px) {
  .container,
  .navbar .container { width: min(100% - 28px, 1200px); }

  .navbar,
  .navbar.navbar-transparent { height: 70px; }
  .navbar .nav-container .navbar-brand { width: auto; }
  .navbar .nav-container .navbar-brand img { height: 52px; }
  .navbar .nav-container .navbar-collapse { width: min(82vw, 320px); }

  .index-page .page-header {
    height: 170px;
    min-height: 170px;
    margin-top: 70px;
  }

  .cs { padding: 44px 0 54px; }
  .cs h1 { margin-bottom: 24px; }

  p, ul, ol { font-size: 16px; line-height: 1.65; letter-spacing: 0; }

  /* Full justification creates distracting gaps on narrow screens. */
  .about .details p,
  .details p {
    text-align: left;
    text-justify: auto;
  }

  .news { padding: 0 22px; }
  .news .article { margin: 0 7px; }

  .fixture .schedule,
  .fixture .stats { min-width: 0; }

  .fixture .schedule .schedule-body .schedule-field {
    min-height: 112px;
    height: auto;
    padding: 12px 10px;
    align-items: center;
  }

  .fixture .schedule .schedule-body .schedule-field .schedule-dt {
    min-width: 82px;
    max-width: 92px;
    font-size: 13px;
    line-height: 1.35;
  }

  .fixture .schedule .schedule-body .schedule-field .schedule-teams {
    min-width: 0;
    width: auto;
    flex: 1;
  }

  .fixture .schedule .schedule-body .schedule-field .schedule-teams .schedule-team {
    width: 76px;
  }

  .fixture .schedule .schedule-body .schedule-field .schedule-teams .schedule-team__score {
    width: 44px;
    margin: 0 3px;
  }

  .fixture .schedule .schedule-body .schedule-field .schedule-league {
    position: static;
    width: 34px;
    margin-left: 4px;
  }

  .fixture .schedule .schedule-body .schedule-field .schedule-league img {
    width: 100%;
    height: auto;
  }

  .fixture .stats .stats-hdr,
  .fixture .stats .stats-body .stats-field { padding-left: 8px; padding-right: 8px; }

  .squad .squad-players,
  .gallery { gap: 14px; }
  .squad .squad-players .player,
  .gallery .media { width: calc(50% - 7px); }

  footer { padding: 42px 0; }
  footer .footer-body { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
