/**
 * Hero Slider CSS - HostAdvice.com Inspired
 * Simplified version - no flickering
 */

.hero-slider-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 2rem 0 2.5rem;
    position: relative;
    overflow: visible;
    min-height: auto;
    z-index: 1 !important;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 900px;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.featured-hostings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
    align-items: start;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.featured-hosting-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    min-height: auto;
}

.featured-hosting-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: #6c757d;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 10;
}

.featured-hosting-card.rank-1 .rank-badge,
.featured-hosting-card.rank-2 .rank-badge,
.featured-hosting-card.rank-3 .rank-badge {
    background: #6c757d;
}

.featured-hosting-card.featured-company {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.expert-choice-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #28a745;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    z-index: 10;
}

.expert-choice-badge::before {
    content: '🏆';
    font-size: 0.75rem;
    line-height: 1;
}

.hosting-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    padding-top: 2rem;
    min-height: 70px;
}

.hosting-logo-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hosting-logo {
    max-width: 160px;
    max-height: 50px;
    object-fit: contain;
    display: block;
}

.hosting-logo-fallback {
    width: 160px;
    height: 52px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hosting-rating-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-bottom: 1rem;
    justify-content: center;
}

.hosting-rating {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.hosting-rating .fas.fa-star,
.hosting-rating .fas.fa-star-half-alt {
    color: #ffc107;
    font-size: 1rem;
}

.hosting-rating .far.fa-star {
    color: #dee2e6;
    font-size: 1rem;
}

.hosting-rating-value {
    font-size: 1.5rem;
    color: #212529;
    font-weight: 700;
    line-height: 1;
}

.hosting-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
}

.hosting-feature i {
    color: #28a745;
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.visit-site-btn {
    width: 100%;
    background: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.visit-site-btn.featured-btn {
    background: #0d6efd;
    color: white;
}

.visit-site-btn:hover {
    background: #0d6efd;
    color: white;
}

.hosting-types-nav {
    background: white;
    padding: 1.25rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    margin-top: -2.5rem;
    border-radius: 12px 12px 0 0;
}

.hosting-types-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.hosting-type-btn {
    background: #f8f9fa;
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.hosting-type-btn:hover,
.hosting-type-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.advanced-filters-btn {
    background: white;
    border: 2px solid #dee2e6;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.advanced-filters-btn:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
}

.featured-hosting-card.left {
    grid-column: 1;
}

.featured-hosting-card.center {
    grid-column: 2;
}

.featured-hosting-card.right {
    grid-column: 3;
}

/* Responsive */
@media (max-width: 1200px) {
    .featured-hostings {
        gap: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    .featured-hostings {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
    }
    
    .featured-hosting-card.left,
    .featured-hosting-card.center,
    .featured-hosting-card.right {
        grid-column: 1;
    }
    
    .featured-hosting-card {
        min-height: 300px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-slider-section {
        padding: 2rem 0 4rem;
    }
    
    .featured-hostings {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hosting-types-nav {
        margin-top: -2rem;
    }
    
    .hosting-types-list {
        gap: 0.5rem;
    }
    
    .hosting-type-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .featured-hosting-card {
        min-height: 280px;
        padding: 1.5rem;
    }
    
    .hosting-rating-value {
        font-size: 1.2rem;
    }
}
