/*!
Theme Name: Egypt
Theme URI: https://23july.hostlin.com/egypt/
Author: Themekalia
Author URI: https://themeforest.net/user/themekalia/portfolio
Description: Egypt – Museum & Exhibition WordPress Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: egypt
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* All pages */
body.custom-css {
    color: #000;
}

html[lang="zh-HK"] p{
  line-height: 34px;
}

html[lang="zh-HK"] .h2, html[lang="zh-HK"] h2 {
    font-size: 1.75rem;
}

.stricked-menu.stricky-fixed {
  display: none!important;
}
.preloader span {
    background-image: url(./images/icons/preloader_200.png);
}
.site-header {
    display: block;
    position: relative;
    width: 100%;
    z-index: 11;
}
.site-header__header-one {
    background-color: #351C75;
    position: fixed;
}
.logo img {
    max-width: 30%;
}
.right-side-box {
    display: none!important;
}

.header-navigation ul.navigation-box>li {
    padding: 42px 0 20px 0;
}

.site-header__header-one .container {
    padding-right: 48px;
}

.sub-main-header {
  display: flex;
  position: absolute;
  cursor: pointer;
  top: 10px;
  right: 0;
  padding-right: 48px;
  z-index: 11;
}

.sub-main-footer {
  display: flex;
  width: 100%;
  cursor: pointer;
  z-index: 11;
  justify-content: center;
}

.sub-main-header .main-header-icon,
.sub-main-footer .main-footer-icon {
  margin: 0 6px;
}

.sub-main-header .main-header-icon:last-child {
  margin: 0 2px 0;
}

.sub-main-header .main-header-icon img, 
.sub-main-footer .main-footer-icon img{
  max-width: 20px;
}

.sub-main-header .main-header-icon img, 
.sub-main-footer .main-footer-icon img{
  filter: invert(100%) sepia(0%) saturate(7483%) hue-rotate(238deg) brightness(97%) contrast(99%);
}

.hkmac-section {
  width: 100%;
  position: relative;
  padding: 0px 42%;
  text-align: center;
  margin: 80px 0 40px 0;
}

.hkmac-hm-section {
  padding: 10px 20px 50px 20px;
}

.hkmac-section-hr {
    padding: 15px 0px 0px 0px;
    border-style: solid;
    border-width: 4px 0px 0px 0px;
    border-color: #351C75;
}

.hkmac-section-title {
  font-size: 24px;
}

.site-footer {
  background-color: #351C75;
  background-image: url("");
}

.site-footer__copy {
  color: #fff;
}

.sponsor-group {
  width: 100%;
  text-align: center;
}

.sponsor-group img {
  max-height: 200px;
  padding-right: 10px;
}

.sponsor-group .sponsor-1-title,
.sponsor-group .sponsor-2-title,
.sponsor-group .sponsor-3-title {
  padding: 10px 0;
  font-size: 20px;
  color: #fff;
}

.sponsor-group .sponsor-1-img,
.sponsor-group .sponsor-2-img,
.sponsor-group .sponsor-3-img {
    background-color: #fff;
}

.tbview table {
  width: 100%;
  margin-bottom: 10px;
}

.tbview table tr,
.tbview table th {
  padding: 8px; 
  background-color: #180778; 
  color: white; 
  text-align: left;
  border: 1px solid #000;
}

.tbview table td {
  padding: 8px; 
  border: 1px solid #000;
  color: #000;
  background-color: #D9D8D9;
}

.row .page-title {
  width: 100%;
  font-size: 40px;
  color: #180778; 
  padding-top: 40px;
  text-align: center;
}

.row .page-subtitle {
  width: 100%;
  font-size: 16px;
  color: #180778;
  padding: 30px 20px;
  text-align: center;
  line-height: 30px;
}

.hkmac-ri-anchor {
  padding-bottom: 40px;
}

.row {
  margin: 0 auto;
}

.header-navigation ul.navigation-box>li>.dropdown>li>a {
  border: 2px solid #fff;
  border-bottom: 0px;
  color: #fff;
  background-color: #351c75;
}
.header-navigation ul.navigation-box>li>.dropdown>li>a:last-child {
  border-bottom: 1px solid #fff;
} 

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--thm-font);
}

/* Tablet */
@media (max-width: 1199px) {
  .header-navigation .container .menu-toggler {
      float: right;
      right: -88%;
      margin: 31px 0;
  }
  .sub-main-header {
    top: 30px;
    margin-right: 0px;
    padding-right: 20px;
    z-index: 1;
  }
  .header-navigation .container .menu-toggler {
    z-index: 12;
  }
  
  .header-navigation .main-navigation {
    position: fixed;
    left: 0;
    overflow: hidden;
    height: 100vh;
    max-height: 100vh;
  }
  
  .hkmac-section {
    padding: 0px 30%;
  }

  .site-header__header-one .container {
    padding-right: 0;
  }
}

@media (max-width: 1000px) {
  .header-navigation .container .menu-toggler {
      right: -80%;
  }
}
/* Tablet */

/* Mobile */
@media (max-width: 650px) {
  .sub-main-header {
    margin-right: 40px;
  }
  .header-navigation .container .menu-toggler {
      right: -62%;
  }
  
  .hkmac-section {
    padding: 0px 20%;
  }
}

@media (max-width: 500px) {
  .header-navigation .container .menu-toggler {
    right: -54%;
  }
}

@media (max-width: 460px) {
  .header-navigation .container .menu-toggler {
    right: -50%;
  }
}

@media (max-width: 420px) {

  .header-navigation .container .menu-toggler {
      right: 0;
  }
  
  .sub-main-header {
    margin-right: 40px;
  }
    
}

/* Mobile */
/* All pages */

/* ---------------------------------- */
/* Homepage */
#hkmac-homepage {
    position: relative;
    width: 100%;
    padding-top: 88px;
}

#hkmac-homepage .carousel-slide .learnmorebtn {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px 15px;
  background: #fff;
  color: #000;
  cursor: pointer;
  border-radius: 6px;
  transition: all 1.0s ease;
    border: 1px solid #000;
}

#hkmac-homepage .carousel-slide .learnmorebtn:hover {
    animation: colorTransition 1.0s ease forwards;
    cursor: pointer;
}


#hkmac-hm-video {
  width:100%; 
  aspect-ratio: 500/250;
  border-radius: 40px;
}

.hkmac-hm-video-title {
  font-size: 24px;
  color: #000;
  font-weight: bold;
  line-height: 32px;
}

.hkmac-hm-video-hr {
    width: 30px;
    margin: 20px 0 30px 0;
    border-style: solid;
    border-width: 4px 0px 0px 0px;
    border-color: #351C75; 
}

.hkmac-hm-video-playbtn {
  align-content: center;
  /* background-image: url("./images/icons/icon-playbtn.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 48px;
  height: 48px;
  cursor: pointer; */
}

/* Hover effect */
.hkmac-hm-video-playbtn:hover {
  opacity: 0.8;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.hkmac-hm-video-btn {
    display: flex;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    position: relative;
    color: #000;
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #cdcdcd;
}

.hkmac-hm-video-btn.selected { 
  color: #fff;
  background-color: rgb(53 28 117);
}

.hkmac-hm-video-btn.selected::after {
    content: '';
    position: absolute;
    inset: -8px;
    display: block;
    border-radius: 26px;
    border: 4px solid #052856;
    z-index: 1;
}

.hkmac-hm-video-playbtn i {
  font-size: 48px;
  color: #ffffff;
}

.blog-two__image>img { 
    height: 500px;
    object-fit: cover;
}

.hkmac-hm-video-subtitle {
  width: 90%;
}

/* #hkmac-homepage .carousel-slide .learnmorebtn:not(:hover) {
    animation: colorTransition 1.0s ease reverse;
} */

@keyframes colorTransition {
    0% {
        background-color: white;
        color: black;
    }
    100% {
        background-color: black;
        color: white;
    }
}

#hkmac-homepage .carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

#hkmac-homepage .carousel-track {
  display: flex;
  width: 300%; /* 3 slides */
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

#hkmac-homepage .carousel-slide {
  width: 33.333%; /* 1/3 of the track */
  height: 100%;
  position: relative;
}

#hkmac-homepage .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hkmac-homepage .caption {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 50%;
}

#hkmac-homepage .caption h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

#hkmac-homepage .caption p {
  font-size: 1.2rem;
}

#hkmac-homepage .prev-btn, #hkmac-homepage .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

#hkmac-homepage .prev-btn:hover, #hkmac-homepage .next-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#hkmac-homepage .prev-btn {
  left: 20px;
}

#hkmac-homepage .next-btn {
  right: 20px;
}

#hkmac-homepage .carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

#hkmac-homepage .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
  border: 1px solid #000;
}

#hkmac-homepage .dot.active {
  background-color: #000;
}

.hkmac-hm-news {
  padding: 10px 30px;
}

/* Responsive adjustments */
/* Tablet */
@media (max-width: 1199px) {
  /* #hkmac-homepage .carousel-container {
    height: 300px;
  } */
  
  #hkmac-homepage .caption h2 {
    font-size: 1.8rem;
  }
  
  #hkmac-homepage .caption p {
    font-size: 1rem;
  }
}
/* Tablet */
/* Mobile */

@media (max-width: 600px) {
  
  .blog-two__image>img { 
      height: auto;
  }
  
}
/* Mobile */
/* Homepage */

/* Race Information */
#hkmac-raceinformation {
    position: relative;
    width: 100%;
    padding-top: 88px;
}

#hkmac-raceinformation .h2,
#hkmac-raceinformation h2 {
    font-size: 2rem;
    font-weight: bold;
}

#hkmac-raceinformation .hkmac-ri-section {
    padding-top: 160px;
}
  
#hkmac-raceinformation .hkmac-section, 
#hkmac-raceinformation .hkmac-content-section {
    padding: 0 5%;
    margin-bottom: 20px;
}

#hkmac-raceinformation .hkmac-section{
    text-align: left;
}

#hkmac-raceinformation .hkmac-section-title {
  font-size: 40px;
  color: #000; 
}

#hkmac-raceinformation .hkmac-section-hr {
    width: 20%;
    padding: 0;
    margin: 20px 0;
}

.hkmac-sticky-menu {
  position: fixed;
  width: 100%;
  background-color: #fff;
  z-index: 1;
}

@media (max-width: 650px) {
  #hkmac-raceinformation .hkmac-ri-section {
    padding-top: 200px;
  }
}



/* Race Information */

/* Events */
#hkmac-events {
    position: relative;
    width: 100%;
    padding-top: 88px;
}

#hkmac-events .hkmac-section, 
#hkmac-events .hkmac-content-section {
    padding: 0 5%;
    margin-bottom: 20px;
}

#hkmac-events .hkmac-section{
    text-align: left;
}

#hkmac-events .hkmac-section-title {
  font-size: 40px;
  color: #000; 
}

#hkmac-events .hkmac-section-hr {
    width: 20%;
    padding: 0;
    margin: 20px 0;
}

#hkmac-events .hkmac-section-title {
  font-size: 40px;
  color: #000; 
}

#hkmac-events .hkmac-section-hr {
    width: 20%;
    padding: 0;
    margin: 20px 0;
}

#hkmac-events .card-header .title {
    font-size: 17px;
    color: #180778;
    font-weight: 700;
}
#hkmac-events .card-header .accicon {
  float: right;
  font-size: 20px;  
  width: 1.2em;
}
#hkmac-events .card-header{
  cursor: pointer;
  border-bottom: none;
}
#hkmac-events .card{
  border: 1px solid #ddd;
}
#hkmac-events .card-body{
  border-top: 1px solid #ddd;
}
#hkmac-events .card-header:not(.collapsed) .rotate-icon {
  transform: rotate(180deg);
}
#hkmac-events .fa-angle-down:before {
  content: "\2212";
}
#hkmac-events .collapsed .fa-angle-down:before{
  content: "\02B";
}

#hkmac-events .iframe-video {
  width:100%; 
  height: 300px;
}
#hkmac-events .card-body .col-md-6{
  margin: 10px 0;
}
#hkmac-events .card-body img {
  height: 300px; 
  object-fit: cover; 
  width: 100%;
}

#hkmac-events .image-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

#hkmac-events .popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

#hkmac-events .popup-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

#hkmac-events .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
}

#hkmac-events .card-body .container .row .col-md-6 img {
  cursor: pointer;
  transition: opacity 0.3s;
}

#hkmac-events .card-body .container .row .col-md-6 img:hover {
  opacity: 0.8;
}
/* Events */
/* CustomPage */

/* Events */
#hkmac-custompage {
    position: relative;
    width: 100%;
    padding-top: 88px;
}

#hkmac-custompage .hkmac-custompage-section, 
#hkmac-custompage .hkmac-content-section {
    padding: 0 5%;
    margin-bottom: 20px;
}
/* CustomPage */
/* UpComingPage */
.hkmac-upcomingevent .img-fluid {
    max-width: 50%;
    height: auto;
}

/* Responsive adjustments */
/* Tablet */
@media (max-width: 1199px) {
.hkmac-upcomingevent .upcomingtitle {
  margin-top: 20px;
}
}
/* Tablet */
/* UpComingPage */
/* ---------------------------------- */