/* ==========================================================================
   BestatServices Features Section v2 - Advanced Redesign
   ========================================================================== */

.feat-v2-section {
    position: relative;
    padding: 80px 0;
    background-color: #001a4d; /* Dark background behind all cards to make them pop */
    overflow: hidden;
}

/* Base Container */
.feat-v2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Header Area */
.feat-v2-header {
    text-align: center;
    margin-bottom: 60px;
}
.feat-v2-eyebrow {
    color: #00e5ff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.feat-v2-eyebrow-rule {
    height: 1px;
    width: 40px;
    background-color: #00e5ff;
    opacity: 0.5;
}
.feat-v2-title {
    color: #ffffff !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}
.feat-v2-sub {
    color: #d1e8ff !important;
    font-size: 18px !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

/* Grid Layout */
.feat-v2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .feat-v2-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .feat-v2-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Styling */
.feat-v2-card {
    background-color: #003399; /* Dark Blue Base */
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Hover State */
.feat-v2-card:hover {
    background-color: #007bff; /* Light Blue Hover */
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

/* Sparkles Background on Hover */
.feat-v2-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px), 
        radial-gradient(circle, rgba(255,255,255,0.2) 2px, transparent 2px),
        radial-gradient(circle, rgba(255,215,0,0.3) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px, 30px 30px;
    background-position: 0 0, 20px 20px, 10px 30px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}
.feat-v2-card:hover::before {
    opacity: 1;
}

/* Ensure content stays above sparkles */
.feat-v2-card-top,
.feat-v2-card-title,
.feat-v2-card-body,
.feat-v2-card-bottom {
    position: relative;
    z-index: 1;
}

/* Top Area: Icon Box & Number */
.feat-v2-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}
.feat-v2-icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #00e5ff; /* Cyan text */
    transition: all 0.5s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.feat-v2-card:hover .feat-v2-icon-box {
    background-color: #FFD700; /* Yellow */
    color: #003399; /* Dark blue */
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(255,215,0,0.4);
}
.feat-v2-num {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    transition: all 0.4s ease;
}
.feat-v2-card:hover .feat-v2-num {
    color: rgba(255,255,255,0.9);
}

/* Title */
.feat-v2-card-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    line-height: 1.3;
}
.feat-v2-card:hover .feat-v2-card-title {
    color: #FFD700; /* Yellow */
    transform: translateX(5px);
}

/* Body / Description */
.feat-v2-card-body {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    line-height: 1.6;
    transition: all 0.5s ease;
    
    /* Truncate content to exactly 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feat-v2-card:hover .feat-v2-card-body {
    color: #ffffff; /* Pure white for maximum readability on bright blue */
}

/* Stats Bottom Area (if used) */
.feat-v2-card-bottom {
    margin-top: auto;
    padding-top: 20px;
}
.feat-v2-stat {
    display: flex;
    flex-direction: column;
}
.feat-v2-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #00e5ff;
    transition: color 0.4s ease;
}
.feat-v2-card:hover .feat-v2-stat-num {
    color: #FFD700;
}
.feat-v2-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    transition: color 0.4s ease;
}
.feat-v2-card:hover .feat-v2-stat-label {
    color: rgba(255,255,255,0.9);
}

/* Global CTA Section */
.feat-v2-cta-wrap {
    text-align: center;
    margin-top: 50px;
}
.feat-v2-cta-btn {
    display: inline-flex;
    align-items: center;
    background-color: #FFD700;
    color: #003399;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.feat-v2-cta-btn:hover {
    background-color: #ffffff;
    color: #003399;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    text-decoration: none;
}
.feat-v2-cta-btn svg {
    margin-right: 10px;
}
.feat-v2-cta-support {
    color: #d1e8ff !important;
    font-size: 16px !important;
    margin-top: 20px !important;
    line-height: 1.5 !important;
}
