/* Custom CSS for Mon Phai Icons - Override old background images */

/* Fix news section height to prevent faction section misalignment - DESKTOP ONLY */
@media (min-width: 1025px) {
  .block__new-event {
    min-height: 615px !important;
    height: 615px !important;
    overflow: visible !important;
  }
  
  .wrap-block {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 1370px;
    margin: 0 auto;
  }
  
  .wrap-banner-news {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 35px;
    width: 100%;
  }
  
  .wrap-banner-news .search-banner {
    flex-shrink: 0;
    width: 640px;
  }
  
  .wrap-banner-news .home-news-event {
    flex-shrink: 0;
    width: 695px;
  }
  
  /* Ensure home-banner has proper dimensions */
  .home-banner {
    width: 630px;
    height: 350px;
    margin-top: 10px;
  }
  
  .banner-preview {
    width: 630px !important;
    height: 350px !important;
  }
  
  /* Desktop mp-tab styling */
  .mp-tab {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    position: relative !important;
    padding: 0 150px !important;
  }
  
  .mp-tab .swiper-container {
    overflow: visible !important;
    width: 100% !important;
  }
  
  .mp-tab .swiper-wrapper {
    display: flex !important;
    align-items: center !important;
  }
  
  .swiper-mp-tab .swiper-slide {
    background: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: auto !important;
    flex-shrink: 0 !important;
    margin-right: 20px !important;
    pointer-events: none !important;
  }
  
  .swiper-mp-tab .swiper-slide a {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    pointer-events: auto !important;
    padding: 5px !important;
  }
  
  .swiper-mp-tab .swiper-slide a img {
    width: 95px;
    height: 95px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    display: block;
  }
  
  .swiper-mp-tab .swiper-slide a span {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    white-space: nowrap;
    display: block;
  }
  
  .swiper-mp-tab .swiper-slide:hover a img {
    transform: scale(1.1);
  }
  
  .swiper-mp-tab .swiper-slide:hover a span {
    color: #ffd700;
  }
  
  .mp-tab .swiper-button-prev,
  .mp-tab .swiper-button-next {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
    z-index: 100 !important;
    position: absolute !important;
    width: 95px !important;
    height: 95px !important;
    background-size: contain !important;
    margin-top: 0 !important;
    pointer-events: auto !important;
  }
  
  .mp-tab .swiper-button-prev.swiper-button-disabled,
  .mp-tab .swiper-button-next.swiper-button-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
  }
  
  .mp-tab .swiper-button-prev {
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) scale(3) !important;
  }
  
  .mp-tab .swiper-button-next {
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) scale(3) !important;
  }
}

/* Tablet positioning */
@media (min-width: 768px) and (max-width: 1024px) {
  .mp-tab {
    padding: 0 100px !important;
    overflow: visible !important;
  }
  
  .mp-tab .swiper-container {
    overflow: visible !important;
  }
  
  .swiper-mp-tab .swiper-slide {
    background: none !important;
    margin-right: 15px !important;
    pointer-events: none !important;
  }
  
  .swiper-mp-tab .swiper-slide a {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    pointer-events: auto !important;
    padding: 5px !important;
  }
  
  .swiper-mp-tab .swiper-slide a img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
  }
  
  .swiper-mp-tab .swiper-slide a span {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
  }
  
  .mp-tab .swiper-button-prev,
  .mp-tab .swiper-button-next {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .mp-tab .swiper-button-prev {
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) scale(2.5) !important;
    width: 75px !important;
    height: 75px !important;
  }
  
  .mp-tab .swiper-button-next {
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) scale(2.5) !important;
    width: 75px !important;
    height: 75px !important;
  }
}

/* Mobile positioning - HIDE only character video, keep tuyethoc section */
@media (max-width: 767px) {
  /* Hide the character section title on mobile */
  .block__home-character > .block-title {
    display: none !important;
  }
  
  /* Hide only the character video/swiper part, not the entire block */
  .block__home-character .swiper-mp {
    display: none !important;
  }
  
  .block__home-character .mp-tab {
    display: none !important;
  }
  
  /* Remove padding/margin from block__home-character on mobile */
  .block__home-character {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    background: none !important;
  }
  
  /* Keep tuyethoc section visible - OVERRIDE inline CSS */
  .block__tuyethoc {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .block__home-character .block__tuyethoc {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Force show special feature section on mobile - OVERRIDE any hiding */
  .block__special-feature {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .block__special-feature .block-title {
    display: block !important;
  }
  
  .block__special-feature .container {
    display: block !important;
    visibility: visible !important;
  }
  
  .block__special-feature .special-feature {
    display: block !important;
    visibility: visible !important;
  }
  
  .block__special-feature .swiper-container {
    display: block !important;
  }
  
  .block__special-feature .swiper-wrapper {
    display: flex !important;
  }
  
  .block__special-feature .swiper-slide {
    display: block !important;
  }
}

/* Center footer content */
footer .footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1370px;
  margin: 0 auto;
  padding: 20px;
}

footer .footer .logo {
  text-align: center;
  margin-bottom: 15px;
}

footer .footer .footer-col {
  text-align: center;
}

footer .footer .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

footer .footer .copyright-text {
  text-align: center;
}
