/* ================================
   Compact Services Section
================================ */
.services-compact {
    background: white;
}

.service-card-compact {
    background: white;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.service-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.35s;
    transform-origin: left;
}

.service-card-compact:hover::before {
    transform: scaleX(1);
}

.service-card-compact:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Compact Service Icon */
.service-icon-compact {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card-compact:hover .service-icon-compact {
    transform: rotateY(360deg) scale(1.08);
}

/* Icon Color Variations */
.service-icon-compact.scholarship {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.service-icon-compact.application {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.service-icon-compact.visa {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.service-icon-compact.test {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.service-icon-compact.departure {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Service Title */
.service-card-compact h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Service Description */
.service-card-compact p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

/* Minimal Service Link */
.service-link-minimal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: auto;
}

.service-link-minimal i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.service-link-minimal:hover {
    gap: 10px;
    color: var(--primary-dark);
}

.service-link-minimal:hover i {
    transform: translateX(4px);
}

/* Alternative: Horizontal Compact Layout */
.service-card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 20px;
}

.service-card-horizontal .service-icon-compact {
    margin: 0;
    flex-shrink: 0;
}

.service-card-horizontal .service-content {
    flex: 1;
}

/* ================================
   Alternative: Grid Icon Style
================================ */
.service-icon-grid {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    transition: all 0.4s;
}

.service-card-compact:hover .service-icon-grid {
    background: var(--gradient-1);
    color: white;
    transform: rotateY(360deg);
}

/* ================================
   Responsive Design
================================ */
@media (max-width: 991px) {
    .service-card-compact {
        padding: 24px 20px;
    }
    
    .service-icon-compact {
        width: 65px;
        height: 65px;
        font-size: 28px;
        margin-bottom: 18px;
    }
    
    .service-card-compact h5 {
        font-size: 1.1rem;
    }
    
    .service-card-compact p {
        font-size: 0.88rem;
    }
}

@media (max-width: 767px) {
    .services-compact {
        padding: 3rem 0;
    }
    
    .service-card-compact {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .service-card-compact {
        padding: 22px 18px;
    }
    
    .service-icon-compact {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
}

/* ================================
   Optional: Numbered Services Style
================================ */
.service-card-numbered {
    position: relative;
}

.service-number {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* ================================
   Optional: Floating Background Effect
================================ */
.service-card-compact::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--gradient-1);
    opacity: 0.03;
    border-radius: 50%;
    transition: all 0.5s;
}

.service-card-compact:hover::after {
    bottom: -30px;
    right: -30px;
    opacity: 0.06;
}
