@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --color-primary: #0B2C24;
    --color-secondary: #FFD700;
    --color-accent: #10B981;
    --color-bg-light: #F9FAFB;
    --color-text-dark: #374151;
}

html {
    scroll-behavior: smooth;
}

#main-header {
    transition: all 0.4s ease-in-out;
}

.header-scrolled {
    background-color: white !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-scrolled .nav-item {
    color: var(--color-text-dark) !important;
}

.header-scrolled .logo-text {
    color: var(--color-primary) !important;
}

.header-scrolled #menu-btn {
    color: var(--color-primary) !important;
}


.header-scrolled .cta-btn {
    color: var(--color-primary) !important;
    border-color: rgba(11, 44, 36, 0.3) !important;
}

.header-scrolled .cta-btn:hover {
    background-color: var(--color-primary) !important;
    color: white !important;
}

.header-scrolled #menu-btn {
    color: var(--color-primary) !important;
}

.header-scrolled .group button {
    color: var(--color-text-dark) !important;
}

.header-scrolled .group:hover button {
    color: var(--color-primary) !important;
}

.header-scrolled .group div div a {
    color: var(--color-text-dark);
}

.nav-item.active {
    color: var(--color-secondary) !important;
    font-weight: 600;
}

.header-scrolled .nav-item.active {
    color: var(--color-primary) !important;
}


.nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
}

.header-scrolled .nav-item:hover {
    background-color: rgba(11, 44, 36, 0.05);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}


.nav-item.active::after,
.nav-item:hover::after {
    width: 16px;

}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}


#menu-content {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}






.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


#videoModal {
    backdrop-filter: blur(10px);
}




/* aword */

.swiper-slide {
    height: auto !important;
}

.swiper-pagination-bullet-active {
    background: #B8860B !important;
    width: 25px !important;
    border-radius: 5px !important;
}

.swiper-pagination-bullet {
    background: #D1D5DB;
    opacity: 1;
}


/* Recognition */
.recognition-card.active {
    border-color: #15803d !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.dot.active {
    background-color: #fbbf24 !important;
    width: 24px;
}

.video-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* marque */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.media-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.media-pill:hover {
    border-color: #fbbf24;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #fbbf24;
    border-radius: 50%;
}




.tag-pill {
    @apply px-4 py-1.5 rounded-full border border-gray-200 text-[#0f172a] text-[11px] font-medium bg-white hover:border-[#15803d] hover:text-[#15803d] transition-all cursor-default;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-size: 1.25rem;
}