:root {
    --primary-color: #1F2937;
    --secondary-color: #3B82F6;
    --accent-color: #22C55E;
    --background-color: #F9FAFB;
    --text-color: #111827;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    color: var(--text-color);
}

main {
    flex: 1;
}

.container {
    max-width: 1400px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-banner {
    position: relative;
    overflow: hidden;
    max-height: 200px;
}

.site-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
    z-index: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
}

.banner-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.navbar {
    background: white !important;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.brand-text {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--secondary-color) !important;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.nav-item.dropdown {
    position: static;
}

.dropdown-menu-categories {
    width: 100%;
    max-width: 1200px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    padding: 0 !important;
    margin-top: 0.5rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    background: white;
    position: absolute !important;
    max-height: 500px;
}

.categories-container {
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}


.btn:hover {
    color: white !important;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    background: white;
    border: 1px solid transparent;
    min-height: 110px;
    height: 110px;
    max-height: 110px;
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.category-item:hover {
    background-color: var(--background-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.15);
}

.category-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
}

.category-item:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(59, 130, 246, 0.2);
    color: var(--secondary-color);
}

.category-label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
    color: var(--text-color);
    transition: color 0.2s ease;
    padding: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-item:hover .category-label {
    color: var(--secondary-color);
}

.dropdown-menu-categories::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu-categories::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-menu-categories::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.dropdown-menu-categories::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .dropdown-menu-categories {
        width: 100vw;
        left: 0 !important;
        right: 0 !important;
        transform: none;
        max-height: 60vh;
        border-radius: 0;
        margin-top: 0;
    }
    
    .categories-container {
        padding: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-item {
        min-height: 100px;
        height: 100px;
        max-height: 100px;
        padding: 0.75rem 0.5rem;
    }
    
    .category-icon {
        font-size: 1.25rem;
        width: 40px;
        height: 40px;
    }
    
    .category-label {
        font-size: 0.7rem;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-menu-mega {
    width: 95vw;
    max-width: 1900px;
    min-width: 1500px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    padding: 0 !important;
    margin-top: 0.5rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    background: white;
    position: absolute !important;
    max-height: 80vh;
}

.mega-menu-container {
    padding: 2.5rem 3rem;
    width: 100%;
    box-sizing: border-box;
}

.mega-menu-container .row {
    margin: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.mega-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    background: white;
    border: 1px solid transparent;
    min-height: 110px;
    height: 110px;
    max-height: 110px;
    min-width: 10%;
    width: 10%;
    max-width: 126px;
    flex: 0 0 120px;
    flex-shrink: 0;
    margin: 0.5rem;
    box-sizing: border-box;
}

.mega-menu-item:hover {
    background-color: var(--background-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.15);
}

.mega-menu-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
}

.mega-menu-item:hover .mega-menu-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(59, 130, 246, 0.2);
    color: var(--secondary-color);
}

.mega-menu-label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
    color: var(--text-color);
    transition: color 0.2s ease;
    padding: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mega-menu-item:hover .mega-menu-label {
    color: var(--secondary-color);
}

.dropdown-menu-mega::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu-mega::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-menu-mega::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.dropdown-menu-mega::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

@media (max-width: 1600px) {
    .dropdown-menu-mega {
        width: 98vw;
        max-width: 100%;
        min-width: 100%;
        left: 1% !important;
        right: 1% !important;
        transform: none;
        max-height: 70vh;
    }

    .mega-menu-item {
        flex: 0 0 calc(20% - 1rem);
        max-width: calc(20% - 1rem);
        min-width: calc(20% - 1rem);
    }
}

@media (max-width: 1200px) {
    .dropdown-menu-mega {
        max-height: 65vh;
    }

    .mega-menu-item {
        flex: 0 0 calc(25% - 1rem);
        max-width: calc(25% - 1rem);
        min-width: calc(25% - 1rem);
    }
}

@media (max-width: 992px) {
    .dropdown-menu-mega {
        width: 100vw;
        left: 0 !important;
        right: 0 !important;
        max-height: 60vh;
        border-radius: 0;
        margin-top: 0;
    }

    .mega-menu-container {
        padding: 1.5rem;
    }

    .mega-menu-item {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
        min-width: calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    .dropdown-menu-mega {
        max-height: 70vh;
    }

    .mega-menu-container {
        padding: 1rem;
    }

    .mega-menu-item {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
        min-height: 110px;
        height: 110px;
        max-height: 110px;
        padding: 0.75rem 0.5rem;
        margin: 0.375rem;
    }

    .mega-menu-icon {
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
        margin-bottom: 0.5rem;
    }

    .mega-menu-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .dropdown-menu-mega {
        max-height: 75vh;
    }

    .mega-menu-item {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
        margin: 0.25rem;
    }

    .mega-menu-container {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .mega-menu-container {
        padding: 1rem;
    }

    .mega-menu-item {
        min-height: 90px;
        padding: 1rem 0.5rem;
    }

    .mega-menu-icon {
        font-size: 1.75rem;
        width: 50px;
        height: 50px;
    }

    .mega-menu-label {
        font-size: 0.75rem;
    }
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--background-color);
    color: var(--secondary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.language-selector {
    max-width: 200px;
}

.language-selector .form-select {
    border-color: #E5E7EB;
    color: var(--text-color);
}

.language-selector .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.site-footer {
    margin-top: auto;
    background-color: var(--primary-color) !important;
    color: white;
}

.site-footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.site-footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: white;
}

.social-links a {
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 1rem;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .banner-subtitle {
        font-size: 0.9rem;
    }

    .dropdown-menu {
        margin-top: 0;
    }
}
