/**
 * Essential Slider Cards CSS - GUARANTEED VISIBLE
 * Save as: /assets/css/slider-cards.css
 */

/* ========================================
   SLIDER CONTAINER & TRACK
   ======================================== */

.slider-cards-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.slider-cards-wrapper {
    position: relative;
    padding: 0 70px; /* Space for arrows */
    margin: 0 auto;
}

.slider-cards-container {
    overflow: hidden;
    width: 100%;
}

.slider-cards-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* ========================================
   CARDS
   ======================================== */

.slider-card {
    flex-shrink: 0;
}

.card-inner {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.slider-card:hover .card-inner {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066b2 0%, #003d6b 100%);
    border-radius: 50%;
    font-size: 36px;
    color: #fff;
}

.card-content {
    text-align: center;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.card-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* ========================================
   NAVIGATION ARROWS - CRITICAL STYLES
   ======================================== */

.slider-arrow {
    /* Positioning - MUST BE VISIBLE */
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    
    /* Size */
    width: 50px !important;
    height: 50px !important;
    
    /* Appearance */
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50% !important;
    
    /* Layout */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Interaction */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    
    /* Typography */
    font-size: 20px !important;
    color: #333 !important;
    
    /* Shadow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    
    /* Remove default button styles */
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

.slider-arrow-prev {
    left: 0 !important;
}

.slider-arrow-next {
    right: 0 !important;
}

.slider-arrow:hover:not(:disabled) {
    background: #0066b2 !important;
    color: #fff !important;
    border-color: #0066b2 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 102, 178, 0.3) !important;
}

.slider-arrow:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    background: #f5f5f5 !important;
}

/* Ensure icon inside is visible */
.slider-arrow i {
    display: block !important;
    line-height: 1 !important;
}

/* ========================================
   PAGINATION DOTS - CRITICAL STYLES
   ======================================== */

.slider-dots {
    /* Positioning */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    
    /* Spacing */
    margin-top: 40px !important;
    padding: 20px 0 !important;
    
    /* Visibility */
    z-index: 10 !important;
}

.slider-dot {
    /* Size */
    width: 12px !important;
    height: 12px !important;
    
    /* Appearance */
    background: #d0d0d0 !important;
    border: none !important;
    border-radius: 50% !important;
    
    /* Interaction */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    
    /* Remove default button styles */
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    
    /* Ensure visibility */
    display: block !important;
}

.slider-dot:hover {
    background: #a0a0a0 !important;
    transform: scale(1.2) !important;
}

.slider-dot.active {
    background: #0066b2 !important;
    width: 32px !important;
    border-radius: 6px !important;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 767px) {
    .slider-cards-wrapper {
        padding: 0 50px; /* Less space on mobile */
    }
    
    .slider-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    
    .slider-arrow-prev {
        left: 5px !important;
    }
    
    .slider-arrow-next {
        right: 5px !important;
    }
    
    .card-inner {
        padding: 20px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-description {
        font-size: 14px;
    }
}

/* ========================================
   DEBUGGING HELPERS (Remove after testing)
   ======================================== */

/* Uncomment these to test if arrows/dots are there but invisible */
/*
.slider-arrow {
    background: red !important;
    color: white !important;
}

.slider-dot {
    background: blue !important;
}

.slider-dot.active {
    background: green !important;
}
*/