/* ================================
   TOUR CATEGORY CARDS - BLUE & WHITE THEME
   Grid & Slider Versions
   ================================ */

/* ===== GRID VERSION (Default) ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 40px 0;
    padding: 0;
}

/* ===== SLIDER VERSION ===== */
.category-slider {
    position: relative;
    margin: 40px 0;
    overflow: hidden;
    padding: 0 80px;
}

.category-slider-wrapper {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.category-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.category-slider .category-card {
    min-width: 350px;
    flex-shrink: 0;
}

/* Slider Navigation Arrows - BLUE THEME */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.slider-nav:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

/* ===== CARD STYLES (Shared) ===== */
.category-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Category Image - Full Coverage - ENSURE COVERS WHOLE CARD */
.category-card-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
}

.category-card:hover .category-card-image {
    transform: scale(1.1);
}

/* Gradient Overlay */
.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    transition: background 0.5s ease;
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* Category Content - Centered Name */
.category-card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 30px;
}

/* Category Name - Professional & Clean */
.category-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.category-card:hover .category-name {
    transform: translateY(-10px);
}

/* Tour Count Badge - Bottom Left - LIGHT GRAY/WHITE */
.category-count {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 1;
}

/* Explore Button - Bottom Right - LIGHT BLUE */
.category-button {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: #60a5fa;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-card:hover .category-button {
    opacity: 1;
    transform: translateY(0);
}

.category-button:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        height: 350px;
    }
    
    .category-name {
        font-size: 1.6rem;
    }
    
    .category-slider {
        padding: 0 50px;
    }
    
    .category-slider .category-card {
        min-width: 280px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
}
