.bg-primary {
  background: #8C0321 !important;
}

.btn-primary {
  background: #8C0321;
  border-color: #8C0321;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: rgba(140, 3, 33, 0.8);
  border-color: #8C0321;
}

.btn-outline-primary {
  background: transparent;
  border-color: #8C0321;
  color: #8C0321;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
  background: rgba(140, 3, 33, 0.8);
  border-color: #8C0321;
  box-shadow: none;
  outline: none;
}

.text-primary {
  color: #8C0321 !important;
}

.text-primary1 {
  color: #16012C !important;
}

.text-primary-shade1 {
  color: #443158 !important;
}

.text-purple {
  color: #8E2BAF !important;
}

.btn-secondary {
  background: #A8915D;
  border-color: #A8915D;
}
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  background: rgba(168, 145, 93, 0.8);
  border-color: #A8915D;
}

.text-secondary {
  color: #A8915D !important;
}

.text-black {
  color: #000 !important;
}

.text-black1 {
  color: #8C0321 !important;
}

.bg-black2 {
  background: #971C37 !important;
}

.text-black2 {
  color: #971C37 !important;
}

.bg-white {
  background: #fff !important;
}

.btn-white {
  background: #fff;
  border-color: #fff;
}
.btn-white:hover, .btn-white:focus, .btn-white:active {
  background: rgba(255, 255, 255, 0.8);
  border-color: #fff;
}

.btn-outline-white {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline-white:hover, .btn-outline-white:focus, .btn-outline-white:active {
  background: rgba(255, 255, 255, 0.8);
  border-color: #fff;
  box-shadow: none;
  outline: none;
}

.text-white {
  color: #fff !important;
}

.bg-maroon {
  background: #8C0321 !important;
}

.text-maroon {
  color: #8C0321 !important;
}

.text-pink {
  color: #F4EAF7 !important;
}

.text-pink-dark {
  color: #F1E5F1 !important;
}

.text-grey {
  color: #899AA0 !important;
}

.text-grey1 {
  color: #B8C3C6 !important;
}

.text-grey-dark {
  color: #625f5f !important;
}

.bg-lightgrey1 {
  background: #F4F1F3 !important;
}

.text-green {
  color: #15AA9C !important;
}

.text-red {
  color: #C6002F !important;
}

.inner-banner {
  background-color: #a8915d;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 161px;
  width: 100%;
  z-index: 0;
}
@media (max-width: 767.98px) {
  .inner-banner {
    min-height: 140px;
  }
}
.inner-banner h2 {
  bottom: 40px;
  margin-bottom: 0;
  z-index: 2;
}
.inner-banner button {
  bottom: 37px;
  margin-bottom: 0;
  z-index: 2;
}
.inner-banner button:hover {
  background-color: #8C0321;
}

.inner-banner-news-detail {
  background-color: #a8915d;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 161px;
  width: 100%;
  display: flex;
  align-items: center;
}
@media (max-width: 767.98px) {
  .inner-banner-news-detail {
    min-height: 140px;
  }
}
.inner-banner-news-detail .banner-content {
  position: absolute;
  top: 70px;
  inset-inline-start: 0;
  inset-inline-end: 0;
  padding-inline-start: 12px;
  padding-inline-end: 12px;
  z-index: 2;
}
@media (max-width: 767.98px) {
  .inner-banner-news-detail .banner-content {
    top: 100px;
    bottom: 42px;
  }
}
.inner-banner-news-detail .banner-content h2 {
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  .inner-banner-news-detail .banner-content .font-size-5 {
    font-size: 12px;
  }
}

.btn-with-arrow {
  position: relative;
  padding-inline: 20px;
  white-space: nowrap;
}
@media (max-width: 991.98px) {
  .btn-with-arrow {
    margin-bottom: 10px;
  }
}
.btn-with-arrow::before {
  position: absolute;
  content: url("../images/icon/arrow-right-white.svg");
  transform: scaleX(-1);
  inset-inline-start: 5px;
  top: 15%;
}
[dir=rtl] .btn-with-arrow::before {
  transform: scaleX(1);
  top: 22%;
}

.ball-img {
  position: absolute;
  inset-inline-end: 5%;
  top: -100px;
  opacity: 0;
  visibility: hidden;
  transform: rotate(0deg) scale(0.5);
  transition: opacity 1s ease, transform 2s ease, top 3s ease;
  pointer-events: none;
}

.ball-img.loaded {
  opacity: 1;
  visibility: visible;
  top: 70px;
  transform: rotate(500deg) scale(0.5);
}

.ball-img.reverse {
  transform: rotate(-25deg) scale(-3);
}
[dir=rtl] .ball-img.reverse {
  transform: rotate(25deg) scale(3);
}

.referee-modal {
  --bs-modal-width: 1442px;
}
@media (max-width: 1450px) {
  .referee-modal .modal-dialog {
    margin: 20px;
  }
}
.referee-modal .modal-header {
  border-bottom: transparent;
}
.referee-modal .card-body {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.referee-modal .card-body p {
  font-size: 16px;
  color: #ac0016;
  font-weight: bold;
}
.referee-modal .modal-content {
  background-color: #a44861;
  padding-inline: 30px;
}
.referee-modal .card-img-top {
  background-color: #8C0321;
  -o-object-fit: contain;
     object-fit: contain;
  min-width: 200px;
}
.referee-modal .btn-close {
  background: transparent var(--bs-btn-close-bg) center/2em auto no-repeat;
  --bs-btn-close-bg: url(../images/icon/referee-modal-close.svg);
  --bs-btn-close-opacity: 1;
  inset-inline-end: -4px;
  inset-inline-start: auto;
  top: -14px;
  width: 30px;
  height: 30px;
  background-color: #8c0321;
  border-radius: 50%;
  position: absolute;
  z-index: 10;
}
.referee-modal .card {
  margin-inline: 15px;
}
.referee-modal .slider-wrapper {
  margin-inline: -15px;
  margin-block: 30px 100px;
}
.referee-modal .slick-next {
  left: 50%;
  transform: translateX(20%);
}
.referee-modal .slick-next:before {
  content: url("../images/icon/arrow-end.svg");
}
[dir=rtl] .referee-modal .slick-next:before {
  content: url("../images/icon/arrow-start.svg");
}
.referee-modal .slick-prev {
  left: 50%;
  transform: translateX(-120%);
}
.referee-modal .slick-prev:before {
  content: url("../images/icon/arrow-start.svg");
}
[dir=rtl] .referee-modal .slick-prev:before {
  content: url("../images/icon/arrow-end.svg");
}
.referee-modal .slick-prev,
.referee-modal .slick-next {
  z-index: 30;
  right: auto;
  top: 106%;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 2px solid #f1f1f1;
  background: #fff;
}
[dir=rtl] .referee-modal .slick-prev {
  right: 50%;
  transform: translateX(125%);
  left: auto;
}
[dir=rtl] .referee-modal .slick-next {
  right: 50%;
  transform: translateX(0%);
  left: auto;
}

.refereeing-cases-slider .video {
  position: relative;
  border-radius: 12px;
  line-height: 0px;
}
.refereeing-cases-slider .video a::after {
  content: "";
  background: rgba(0, 0, 0, 0.2);
  position: absolute;
  width: 100%;
  height: 100%;
  inset-inline-start: 0;
  top: 0;
}
.refereeing-cases-slider .video .play-btn {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 40%;
  inset-inline-start: 0;
  inset-inline-end: 0;
  margin: 0 auto;
  cursor: pointer;
  z-index: 1;
  transition: 0.3s all;
}
.refereeing-cases-slider .video .play-btn:hover {
  background: #FFB92E;
}
.refereeing-cases-slider .video .play-btn img {
  width: auto !important;
  height: auto !important;
}
.refereeing-cases-slider .video {
  border-radius: 12px;
  border-end-start-radius: 0px;
  border-end-end-radius: 0px;
  -o-object-fit: cover;
     object-fit: cover;
}

.news-updates-section .item {
  margin-inline-start: 15px;
  margin-inline-end: 15px;
}
.news-updates-section .card {
  border: 1px solid #C0B8BE;
  border-radius: 12px;
  overflow: hidden;
}
.news-updates-section .card-body {
  padding: 30px;
}
@media (max-width: 991.98px) {
  .news-updates-section .card-body {
    padding: 20px;
  }
}
.news-updates-section .card-body .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.news-updates-section a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  transition: all 0.6s ease;
}
.news-updates-section a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  border-radius: 5px;
  height: 0.05em;
  bottom: 0;
  inset-inline-start: 0;
  background: currentcolor;
  transform-origin: bottom end;
  transition: transform 0.25s ease-out;
}
.news-updates-section .card-img-top {
  transition: transform 0.5s ease;
  transform-origin: bottom center;
  -o-object-fit: cover;
     object-fit: cover;
  height: 230px;
}
.news-updates-section .card-title {
  transition: all 0.6s ease;
  min-height: 53px;
  font-size: 20px !important;
}
.news-updates-section .card:hover .card-title {
  text-decoration: underline;
}
[dir=rtl] .news-updates-section .search-holder .form-select {
  padding-inline-start: 40px !important;
}

@media (max-width: 991.98px) {
  .date p {
    font-size: 14px !important;
  }
}

.daterangepicker {
  direction: ltr;
}

.qal-section {
  overflow: hidden;
}

[dir=rtl] .single-news-section .search-holder .form-select {
  padding-inline-start: 40px !important;
}

.refereeing-table-section {
  padding-inline: 142px;
  padding-block: 92px;
}
@media (max-width: 991.98px) {
  .refereeing-table-section {
    padding: 40px 10px 32px 10px;
  }
}
.refereeing-table-section .nav-pills .nav-link.active {
  background-color: #8c0321;
  color: #fff !important;
  border: 1px solid #8c0321;
}
.refereeing-table-section .tab-content {
  width: 100%;
  border-radius: 24px;
  background-color: #a44861;
  background-size: cover;
  align-content: start;
  overflow: hidden;
  position: relative;
  top: -22px;
  flex-grow: 1;
}
@media (max-width: 991.98px) {
  .refereeing-table-section .tab-content {
    border-radius: 10px;
    padding-inline-end: 32px;
    top: -4px;
  }
}
.refereeing-table-section .nav-link {
  color: #8C0321;
  background-color: #fff;
  border: 1px solid #b8c3c6;
  padding: 5px 40px 27px;
  border-radius: 12px 12px 0 0;
  white-space: nowrap;
}
@media (max-width: 1199.98px) {
  .refereeing-table-section .nav-link {
    padding: 9px 18px 30px;
  }
}
@media (max-width: 991.98px) {
  .refereeing-table-section .nav-link {
    padding: 10px 12px 10px;
    border-radius: 8px 10px 0 0;
    font-size: 14px;
  }
}
@media (max-width: 575.98px) {
  .refereeing-table-section .nav-link {
    min-width: 140px;
  }
}
[dir=rtl] .refereeing-table-section .nav-link {
  padding: 5px 27px 25px;
  white-space: nowrap;
}
@media (max-width: 991.98px) {
  [dir=rtl] .refereeing-table-section .nav-link {
    padding: 5px 27px 10px;
  }
}
@media (max-width: 575.98px) {
  [dir=rtl] .refereeing-table-section .nav-link {
    padding: 5px 27px 11px;
    white-space: nowrap;
  }
}
.refereeing-table-section .ctm-1 {
  width: calc(100% - 64px);
}
@media (max-width: 991.98px) {
  .refereeing-table-section .ctm-1 {
    width: 100%;
  }
}
.refereeing-table-section .ctm-4 {
  width: calc(100% - 64px);
}
@media (max-width: 991.98px) {
  .refereeing-table-section .ctm-4 {
    width: 100%;
  }
}
.refereeing-table-section .ctm-2 {
  width: calc(100% - 0px);
  margin: 32px;
}
.refereeing-table-section .ctm-5 {
  width: calc(100% - 0px);
  margin: 32px;
  margin-top: 0px;
}
.refereeing-table-section .ctm-3 {
  margin: 16px;
  width: calc(100% - 32px);
}
.refereeing-table-section .ctm-3 thead tr th {
  white-space: nowrap;
}
.refereeing-table-section .ctm-3 tbody tr td:first-child {
  border-start-start-radius: 10px;
  border-end-start-radius: 10px;
}
.refereeing-table-section .ctm-3 tbody tr td:last-child {
  border-start-end-radius: 10px;
  border-end-end-radius: 10px;
}
.refereeing-table-section .ctm-3 tbody tr:last-child td:first-child {
  border-end-start-radius: 10px;
  border-start-start-radius: 10px;
}
.refereeing-table-section .ctm-3 tbody tr:last-child td:last-child {
  border-end-end-radius: 10px;
  border-start-end-radius: 10px;
}
.refereeing-table-section .ctm-3 .clock {
  width: 100px;
}
.refereeing-table-section .table > :not(caption) > * > * {
  border-color: transparent;
}
.refereeing-table-section .align-middle {
  vertical-align: middle !important;
}
.refereeing-table-section .py-28 {
  padding-block: 28px;
}
.refereeing-table-section .clock {
  width: 83px;
}
.refereeing-table-section .referee-box {
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  min-height: 200px;
  max-height: 400px;
}
@media (max-width: 575.98px) {
  .refereeing-table-section .referee-box {
    flex-direction: column;
    max-height: 600px;
  }
}
.refereeing-table-section .referee-image {
  background-color: #8c0321;
  margin: 0;
  min-width: 45%;
  width: 45%;
  min-height: 100%;
  display: flex;
  align-items: end;
  min-height: 200px;
}
@media (max-width: 575.98px) {
  .refereeing-table-section .referee-image {
    min-width: auto;
    width: auto;
  }
}
.refereeing-table-section .referee-image img {
  margin: 0;
  -o-object-fit: cover;
     object-fit: cover;
  height: 300px;
}
.refereeing-table-section .referee-details {
  width: 55%;
  min-width: 55%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
@media (max-width: 575.98px) {
  .refereeing-table-section .referee-details {
    min-width: auto;
    width: auto;
    height: auto;
    margin-block: 20px;
  }
}
.refereeing-table-section .referee .row-wrapper {
  margin-inline: -32px;
}
@media (min-width: 1200px) and (max-width: 1700px) {
  .refereeing-table-section .font-size-9 {
    font-size: 12px !important;
  }
}
@media (min-width: 1200px) and (max-width: 1700px) and (max-width: 575.98px) {
  .refereeing-table-section .font-size-9 {
    font-size: 10px !important;
  }
}
.refereeing-table-section .custom-form {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 20px;
  color: #8C0321;
  width: auto;
  padding: 8px 24px;
  border-radius: 12px;
  border-color: #E5DFE4;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url(../images/icon/qal-table-downarrow.svg);
  background-color: #F2F2F2;
  padding-inline-end: 35px;
  background-repeat: no-repeat;
  background-size: 16px;
}
[dir=rtl] .refereeing-table-section .custom-form {
  padding-inline-start: 35px;
  padding-inline-end: auto;
}
.refereeing-table-section .custom-form option {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  color: #8C0321;
}

.team-table-bg {
  background-image: url("../images/img/football-ranking-bg1.png");
  background-size: cover;
  background-color: #F1E5F1;
  border-radius: 12px;
}

.table-responsive {
  scrollbar-color: #8C0321 transparent;
  /* Firefox */
}
[dir=rtl] .table-responsive {
  scrollbar-color: #8C0321 transparent;
  /* Firefox */
}

/* WebKit Browsers (Chrome, Safari, Edge) */
.table-responsive ::-webkit-scrollbar {
  width: 50px;
  border-radius: 12px;
}

/* Scrollbar Track (Background) */
.table-responsive ::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 12px;
  margin: 2px;
  width: 50px;
}

/* Scrollbar Thumb (Draggable part) */
.table-responsive ::-webkit-scrollbar-thumb {
  background: #8C0321;
  border-radius: 10px;
  width: 50px;
}

/* Hover Effect */
.table-responsive ::-webkit-scrollbar-thumb:hover {
  background: #8C0321;
  width: 50px;
  border-radius: 10px;
}

table td:first-child h5 {
  white-space: wrap;
}

table td:first-child {
  max-width: 138px;
}

.highlight-img {
  position: relative;
  height: calc(100% - 87px);
}
.highlight-img figcaption {
  bottom: 0px;
  padding-inline: 56px;
  padding-block: 42px;
  color: #fff;
  z-index: 2;
}
@media (max-width: 575.98px) {
  .highlight-img figcaption {
    padding-inline: 13px;
    padding-block: 13px;
  }
}
.highlight-img figcaption p {
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
}
@media (max-width: 991.98px) {
  .highlight-img figcaption p {
    font-size: 14px;
  }
}
.highlight-img .view-all-tag {
  height: 56px;
  width: 222px;
  border-radius: 12px;
  background: #a21c37;
  justify-content: center;
}
@media (max-width: 575.98px) {
  .highlight-img .view-all-tag {
    height: 36px;
    width: 180px;
  }
}
.highlight-img img {
  position: relative;
  z-index: 0;
  border-radius: 16px;
  -o-object-fit: cover;
     object-fit: cover;
}
.highlight-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  z-index: 1;
  border-radius: 16px;
}

.referee-slider figure {
  background-color: rgba(140, 3, 33, 0.83);
  border-start-start-radius: 16px;
  border-start-end-radius: 16px;
  margin-bottom: 0px;
}
.referee-slider .card {
  border-radius: 16px;
}
.referee-slider .card img {
  height: 415px;
  -o-object-fit: cover;
     object-fit: cover;
}
.referee-slider .card-body {
  background-color: #F4F1F3;
  border-end-start-radius: 16px;
  border-end-end-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}
.referee-slider .card-body .border-start {
  border-inline-start: 1px solid #ded7dc;
}
.referee-slider .card-body h5 {
  margin-bottom: 24px;
}
.referee-slider .card-body p {
  margin-bottom: 0;
  color: #C6002F;
  font-weight: 700;
}
p .referee-slider .card-body:last-of-type {
  border-left: 1px solid #dee2e6;
  padding-left: 0.5rem;
  margin-left: 0.5rem;
}
.referee-slider .slick-next,
.referee-slider .slick-prev {
  z-index: 1;
  border: 1px solid white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  top: 45%;
}
.referee-slider .slick-next {
  inset-inline-end: 14px;
}
.referee-slider .slick-next:before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  -webkit-mask-image: url("../images/icon/arrow-end.svg");
  -webkit-mask-repeat: no-repeat;
  background: #fff;
  -webkit-mask-position: center;
  -webkit-mask-size: 12px;
          mask-size: 12px;
}
[dir=rtl] .referee-slider .slick-next:before {
  transform: scale(-1);
}
.referee-slider .slick-prev {
  inset-inline-start: 20px;
}
.referee-slider .slick-prev:before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  -webkit-mask-image: url("../images/icon/arrow-start.svg");
  -webkit-mask-repeat: no-repeat;
  background: #fff;
  -webkit-mask-position: center;
  -webkit-mask-size: 12px;
          mask-size: 12px;
}
[dir=rtl] .referee-slider .slick-prev:before {
  transform: scale(-1);
}

.law-of-games {
  position: relative;
}
.law-of-games .content {
  position: absolute;
  color: #fff;
  inset-inline-start: 60%;
  transform: translateX(-50%);
  bottom: 40px;
}
[dir=rtl] .law-of-games .content {
  transform: translateX(50%);
}
@media (max-width: 1700px) {
  .law-of-games .content {
    inset-inline-start: 50%;
  }
}
.law-of-games .content h3 {
  margin-bottom: 12px;
}
@media (max-width: 1500px) {
  .law-of-games .content h3 {
    font-size: 20px;
  }
}
.law-of-games .content p {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 16px;
}
@media (max-width: 1500px) {
  .law-of-games .content p {
    font-size: 14px;
  }
}
.law-of-games .content .border-bottom {
  border-color: rgba(255, 255, 255, 0.24);
}
.law-of-games figure img {
  border-radius: 16px;
}
[dir=rtl] .law-of-games figure img {
  transform: scaleX(-1);
}
.law-of-games .dropdown-toggle::after {
  margin-inline-end: 14px;
  -webkit-mask-image: url("../images/icon/arrow-end.svg");
  rotate: 90deg;
  -webkit-mask-repeat: no-repeat;
  background: #000;
  -webkit-mask-position: center;
  -webkit-mask-size: 10px;
          mask-size: 10px;
  width: 20px;
  height: 20px;
}
.law-of-games button {
  padding: 10px;
  padding-inline: 22px 0px;
}
.law-of-games .download-text {
  position: relative;
  padding-inline-end: 22px;
}
.law-of-games .download-text::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background-color: #ccc;
  margin-inline: 7px;
}
@media (max-width: 575.98px) {
  .law-of-games .download-text::after {
    height: 40px;
  }
}

@media (max-width: 1400px) and (min-width: 1200px) {
  .law-of-games img {
    height: 270px;
  }
}
@media (max-width: 575.98px) {
  .law-of-games button {
    padding: 8px;
    padding-inline: 15px 0px;
  }
  .law-of-games img {
    height: 270px;
  }
}
