/* Tailwind imports */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    /* --color-navy: #1e3a8a; */
    --color-navy: #3060e2;
    --color-gold: #fbbf24;
    --color-white: #ffffff;
}

body {
    font-family: 'Arial', sans-serif;
}

/* Menu chính Desktop */
.nav-link {
    color: white;
    padding: 0.75rem 0.75rem;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

/* Dropdown container Desktop */
.dropdown {
    position: relative;
}

/* Menu cấp 2 Desktop */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    z-index: 1000;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Hiện menu cấp 2 khi hover Desktop */
@media (min-width: 768px) {
    .dropdown:hover > .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu > li:hover > ul {
        display: block !important;
    }
}

/* Style cho item menu cấp 2 */
.dropdown-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--color-navy);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu > li > a:hover {
    background-color: var(--color-gold);
    color: var(--color-navy);
}

/* Menu cấp 3 Desktop */
.dropdown-menu > li {
    position: relative;
}

.dropdown-menu > li > ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    min-width: 220px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1001;
}

/* Style cho item menu cấp 3 */
.dropdown-menu > li > ul > li > a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-navy);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu > li > ul > li > a:hover {
    background-color: var(--color-gold);
    color: var(--color-navy);
}

/* =============== MOBILE MENU =============== */

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile menu sidebar */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background-color: white;
    z-index: 999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    left: 0;
}

/* Mobile menu header */
.mobile-menu-header {
    background-color: var(--color-navy);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Mobile menu items */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    color: var(--color-navy);
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.mobile-menu-list > li > a:hover {
    background-color: #f3f4f6;
}

/* Mobile submenu */
.mobile-submenu {
    display: none;
    background-color: #f9fafb;
    padding-left: 0.5rem;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--color-navy);
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-submenu li a:hover {
    background-color: #e5e7eb;
}

/* Mobile sub-submenu (cấp 3) */
.mobile-sub-submenu {
    display: none;
    background-color: #e5e7eb;
    padding-left: 0.5rem;
}

.mobile-sub-submenu.active {
    display: block;
}

.mobile-sub-submenu li a {
    padding: 0.75rem 1rem;
    color: var(--color-navy);
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #d1d5db;
}

.mobile-sub-submenu li a:hover {
    background-color: #d1d5db;
}

/* Rotate arrow when submenu is open */
.rotate-arrow {
    transition: transform 0.3s ease;
}

.rotate-arrow.active {
    transform: rotate(90deg);
}

/* Hide desktop menu on mobile */
@media (max-width: 1279px) {
    .desktop-menu {
        display: none;
    }
}

/* Hide mobile menu button on desktop */
@media (min-width: 1080px) {
    .mobile-menu-button {
        display: none;
    }
    .mobile-menu {
        display: none;
    }
    .mobile-menu-overlay {
        display: none;
    }
}
.icon {
    font-size: 24px;
    color: var(--color-navy);
    transition: color 0.3s ease;
    border-radius: 5px;
    padding: 5px;
    margin-left: 10px;
    margin-right: 10px;
}
.desktop-menu {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.desktop-menu.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
/* Slider styles */
.slider-wrapper {
    position: relative;
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.slider-prev, .slider-next {
    z-index: 10;
}

.dot {
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white !important;
    width: 2rem;
}
#scrollToTop {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(160deg, var(--color-navy), var(--color-gold));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

#scrollToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#scrollToTop.show {
    display: flex;
}
#socialButtons {
  position: fixed;
  bottom: 40px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-btn.facebook {
  background-color: #1877f2;
}

.social-btn.zalo {
  background-color: #0068ff;
}

.social-btn.zalo img {
  width: 24px;
  height: 24px;
}

/* Hiệu ứng hover */
.social-btn:hover {
  transform: scale(1.1);
}
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
    color: var(--color-navy);
    font-size: 0.95rem;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 3rem;
}

.ticker-item i {
    color: #dc2626;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused;
}
 .training-card {
    position: relative;
    overflow: hidden;
}

.training-card img {
    transition: transform 0.5s ease;
}

.training-card:hover img {
    transform: scale(1.2);
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    padding: 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.training-card:hover .overlay-content {
    transform: translateY(0);
}

.number-badge {
    transition: opacity 0.3s ease;
}

.training-card:hover .number-badge {
    opacity: 0;
}
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3e%3cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-position: center right 0.75rem;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Ensure the select has proper padding for the arrow */
select {
    padding-right: 2.5rem !important;
}