.win{
  color: #089d9a;
}
.loss{
  color: #c62332;
}
.draw{
  color: #878d96;
}
.links {
  display: flex;
  justify-content: center;
}
html { overflow-x: auto; }
.main_team {
  background-color:#0057a5;
  color: #fff;
}
.match-list-item .match-score.loss {
  color: #c62332 !important;
}
.match-list-item .match-score.win {
  color: #1a9433 !important;
}
.texts{color: #000;}
article{color:#000 !important;}
.texts img{max-width:100%;height:auto !important;}
@media (max-width: 991.98px){.order-responsive{order:-1}}
.text-black{color:#000 !important;}

/* Club logos sizing */
.match-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f2f4f8;
  flex-shrink: 0;
}

/* Match row styling */
.match-row {
  padding: 12px 0;
  border-bottom: 1px solid #e6e8eb;
  color: inherit;
  transition: background-color 0.15s;
}
.match-row:hover {
  background-color: #f8f9fa;
}
.match-row-featured {
  background-color: #f0f6ff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #d0e2ff;
}

/* Sponsor slideshow */
.partners-slider .slick-slide {
  padding: 0 15px;
  box-sizing: border-box;
}
.partners-slider .slick-slide img {
  max-width: 150%;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
}
.sponsors {
  padding: 20px 0;
  overflow: hidden;
}

/* Match detail - bigger formatting */
.match-detail .match-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 32px 24px;
}
.match-detail .match-header,
.match-detail .match-header * {
  font-family: Inter, sans-serif;
}
.match-detail .match-meta {
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.match-detail-teams {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
}
.match-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-width: 0;
}
.match-team-card .match-detail-logo {
  display: block;
  margin: 0 auto 8px !important;
}
.match-team-name {
  margin: 0 auto;
  max-width: 260px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #0e243a;
  word-break: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.match-score-card {
  min-width: 180px;
  text-align: center;
  justify-self: center;
}
.match-detail-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.match-teams-names {
  font-size: 1.25rem;
}
.match-teams-names .fw-bold {
  font-size: 1.35rem;
}
.match-final-score {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  margin: 12px 0 4px;
}
.match-final-score.win {
  color: #1a9433;
}
.match-final-score.loss {
  color: #c62332;
}
.match-final-score.draw {
  color: #878d96;
}
.match-period-score {
  font-size: 1rem;
  color: #6c757d;
}

/* Match score win/loss/draw colors */
.match-score.win {
  color: #1a9433 !important;
  font-weight: 700;
}
.match-score.loss {
  color: #c62332 !important;
  font-weight: 700;
}
.match-score.draw {
  color: #878d96 !important;
}

/* Homepage match cards - enlarged content */
.matches-panel .match {
  margin: 20px 8px;
}
.matches-panel .match .match-logos {
  margin: 16px 0;
}
.matches-panel .match .match-logos span {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  margin: 0 6px;
}
.matches-panel .match .match-info,
.matches-panel .match .match-league {
  font-size: 14px;
  padding: 4px 2px;
  letter-spacing: 1.5px;
}
.matches-panel .match .match-team {
  font-size: 20px;
  line-height: 1.3;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.matches-panel .match .match-score {
  font-size: 48px;
}

/* Homepage match category header */
.match-category {
  font-family: RevolutionGothic, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0057a5;
  margin-bottom: 4px;
}

/* Match team subtitle (our team) */
.match-team-sub {
  font-size: 16px;
  color: #878d96;
  line-height: 1.33;
}

/* Match period score on homepage */
.match-period {
  font-size: 14px;
  color: #6c757d;
  line-height: 1;
}

/* Topstory grid layout - 1 large left + 2 small right */
.topstory-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 8px;
  height: 480px;
  overflow: hidden;
}
.topstory-grid .main-item {
  grid-row: 1 / 2;
  min-height: 0;
  height: 100%;
}
.topstory .topstory-grid .main-item img,
.topstory .topstory-grid .topstory-side .side-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  max-width: none;
}
.topstory-grid .topstory-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  height: 100%;
}
.topstory-grid .topstory-side .side-item {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.topstory .topstory-grid .topstory-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
/* Override main CSS :after gradient that uses margin-top:-200px */
.topstory .topstory-grid .topstory-item::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  height: 60%;
  margin-top: 0;
  width: auto;
  background-image: none;
  background: linear-gradient(180deg, rgba(18,22,25,0) 0%, rgba(18,22,25,0.85) 100%);
  pointer-events: none;
  z-index: 0;
}
/* Ensure detail text is above gradient */
.topstory .topstory-grid .topstory-item .topstory-item-detail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  z-index: 1;
}
.topstory .topstory-grid .topstory-item .topstory-item-detail h3 {
  text-align: center;
}
.topstory-grid .main-item .topstory-item-detail {
  padding: 24px 32px;
}
.topstory-grid .side-item .topstory-item-title {
  font-size: 16px;
}
.topstory-grid .side-item .topstory-item-meta {
  font-size: 12px;
}
@media (max-width: 767.98px) {
  .topstory-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .topstory-grid .main-item {
    height: 300px;
  }
  .topstory-grid .topstory-side {
    flex-direction: column;
  }
  .topstory-grid .topstory-side .side-item {
    height: 200px;
  }
}

/* Topstory section spacing */
.topstory.my-lg-4 {
  margin-bottom: 2rem !important;
}

/* Article with image - matching reference layout */
.article-with-image {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #e6e8eb;
}
.article-with-image .article-thumb {
  flex-shrink: 0;
  width: 260px;
}
.article-with-image .article-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.article-with-image .article-content-wrap {
  flex: 1;
  min-width: 0;
}
.article-with-image .article-content-wrap h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
}
.article-with-image .article-content-wrap h3 a {
  color: #000;
}
.article-with-image .article-content-wrap h3 a:hover {
  text-decoration: underline !important;
}
.article-with-image .article-content-wrap p {
  margin: 8px 0 12px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}
.article-with-image .article-info {
  font-size: 13px;
}
/* News section layout */
.news-section {
  padding-top: 32px;
}
.news-section .news-articles {
  margin-top: 16px;
}
.news-section .news-articles .article-with-image:first-child {
  padding-top: 8px;
}
.news-section .news-articles .article-with-image:last-child {
  border-bottom: none;
}

@media (max-width: 767.98px) {
  .article-with-image {
    flex-direction: column;
  }
  .article-with-image .article-thumb {
    width: 100%;
  }
  .article-with-image .article-thumb img {
    height: 200px;
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.gallery-card {
  border: 1px solid #c9d6e5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  color: #0f2c4a;
  transition: transform .16s ease, box-shadow .16s ease;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 39, 86, .12);
}
.gallery-card-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.gallery-card-placeholder {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef3f8;
  color: #6a7480;
}
.gallery-card-body {
  padding: 12px 14px 14px;
}
.gallery-card-body h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}
.gallery-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  color: #6f7d90;
  margin-bottom: 8px;
}
.gallery-card-body p {
  margin: 0;
  font-family: Inter, sans-serif;
  color: #39485a;
  font-size: 14px;
}
.gallery-detail-description {
  max-width: 920px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  color: #36475c;
}
.gallery-masonry {
  margin-top: 16px;
  columns: 4 260px;
  column-gap: 14px;
}
.gallery-thumb-btn {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  margin: 0 0 14px;
  padding: 0;
  cursor: zoom-in;
}
.gallery-thumb-btn img {
  width: 100%;
  border-radius: 10px;
  display: block;
  break-inside: avoid;
  border: 1px solid #d8e0ea;
}
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 24, .92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}
.gallery-lightbox.open {
  display: flex;
}
.gallery-lightbox-image {
  max-width: min(92vw, 1400px);
  max-height: 78vh;
  border-radius: 10px;
  object-fit: contain;
}
.gallery-lightbox-caption {
  margin-top: 10px;
  color: #dbe7f4;
  font-family: Inter, sans-serif;
  font-size: 14px;
  text-align: center;
  max-width: 92vw;
}
.gallery-lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 27px;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox-prev { left: 18px; }
.gallery-lightbox-next { right: 18px; }

/* Unified content style: articles + match reports */
.content-page {
  margin-top: 28px;
}
.content-article {
  color: #0e1d2f;
}
.content-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.12;
  color: #0a2f57;
}
.content-meta {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 10px;
  color: #fff;
  background: #c62332;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.content-cover img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.content-intro {
  margin: 8px 0 18px;
  padding: 16px 18px;
  border-left: 4px solid #0057a5;
  background: #edf3f9;
  border-radius: 0 10px 10px 0;
}
.content-intro p:last-child {
  margin-bottom: 0;
}
.content-intro p {
  margin: 0 0 8px;
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: #24384d;
}
.content-body {
  margin-top: 8px;
}
.content-body h2,
.content-body h3,
.content-body h4 {
  margin: 26px 0 12px;
  color: #0a2f57;
}
.content-body p,
.content-body li {
  margin: 0 0 14px;
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: #1f2f40;
}
.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Related gallery preview inside article/report */
.content-gallery {
  margin-top: 32px;
}
.content-gallery h2 {
  margin-bottom: 12px;
  font-size: 34px;
}
.content-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.content-gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #c9d6e5;
}
.content-gallery-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.content-gallery-item:hover img {
  transform: scale(1.03);
}
.content-gallery-link {
  display: inline-block;
  margin-top: 2px;
}

/* Mobile optimization for content pages */
@media (max-width: 991.98px) {
  .content-page {
    margin-top: 18px;
  }
  .content-title {
    font-size: clamp(28px, 8vw, 40px);
  }
  .content-intro {
    padding: 12px 14px;
  }
  .content-intro p {
    font-size: 16px;
    line-height: 1.55;
  }
  .content-body p,
  .content-body li {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 12px;
  }
  .content-gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .content-gallery-item img {
    height: 210px;
  }
  .match-detail .match-header {
    padding: 18px 12px;
  }
  .match-detail-teams {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .match-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    justify-content: center;
    text-align: center;
  }
  .match-team-name {
    font-size: 18px;
    line-height: 1.2;
    max-width: 100%;
  }
  .match-score-card {
    min-width: 0;
  }
  .match-detail-logo {
    width: 62px;
    height: 62px;
  }
  .match-final-score {
    font-size: 34px;
    line-height: 1;
    margin: 0 0 4px;
  }
  .match-period-score {
    font-size: 13px;
  }
}
