/* Services Slider Styles */
.services-slider-section {
    padding: 30px 0;
    background: #F2F2F2;
}

.services-slider-header {
    text-align: center;
}
.btn.btn-outline.btn-primary{
    border: 1px solid black !important;
    color: black !important;
}
.btn.btn-filled.btn-secondary{
    background: #F15B22 !important;
    color: white !important;
padding: 10px !important;
}
.services-slider-title {

    color: #1e293b;
    margin: 0;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 2.5rem; /* 40px / 16 = 2.5rem */
    line-height: 1.2; /* 120% = 1.2 */
    letter-spacing: 0; /* 0% = 0 */
    text-align: center;

}

.services-slider-title .highlight {
    color: #f97316;
}

.services-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.services-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.services-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.services-slide.active {
    opacity: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px !important;
    justify-content: center;
    padding: 0px 100px 0px !important;
    margin-top: 0px;
}

.service-card:hover .service-card-content{
    background: #001D67;
    position: absolute;
    height: calc(100% - 100px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    bottom: 0px;
    gap: 15px;
    width: 100%;
}
.service-card.card-active{
    height: 100% !important;
}
.service-card:hover .service-card-title,
.service-card:hover .service-card-description{
    color: white;
}
.service-card:hover .service-card-actions{
    display: flex !important;
}
.btn.btn-outline.btn-view-more,
.btn.btn-filled.btn-register {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 0.9375rem; /* 15px = 15 / 16 = 0.9375rem */
    line-height: 1.2; /* 120% = 1.2 (không cần đơn vị nếu là tỷ lệ) */
    letter-spacing: 0; /* 0% = 0 (không cần %) */
    text-align: center;
    padding: 10px 2px !important;

}

.service-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.service-card-2, .service-card-3 {
    border-radius: unset !important;
}

.service-card.service-card-1 {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.service-card.service-card-4 {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-card.featured {
    grid-row: span 2;
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    color: white;
}

.service-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-card.featured .service-card-image {
    height: 300px;
}

.service-card-image img {
    border-radius: 5px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 15px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card.featured .service-card-content {
    padding: 40px;
}

.service-card-title {


    margin: 0 0 15px 0;
    color: #1e293b;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 1.125rem; /* 18px / 16 = 1.125rem */
    line-height: 1.2; /* 120% = 1.2 */
    letter-spacing: 0; /* 0% = 0 */

}

.service-card.featured .service-card-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-card-description {

    color: #64748b;
    margin: 0 0 25px 0;
    flex: 1;
    font-family: Montserrat;
    font-weight: 400;
    font-size: 0.75rem; /* 12px / 16 = 0.75rem */
    line-height: 1.5; /* 150% = 1.5 */
    letter-spacing: 0; /* 0% = 0 */
    text-align: justify;

}

.service-card.featured .service-card-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.service-card-actions {
    display: none;
    gap: 15px;
    margin-top: auto;
}

.service-card.featured .service-card-actions {
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    flex: 1;
    font-family: Montserrat;
    font-weight: 400;
    font-size: 1rem; /* 16px / 16 = 1rem */
    line-height: 1.5; /* 150% = 1.5 */
    letter-spacing: 0; /* 0% = 0 */
    text-align: center;

}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-filled {
    background: white;
    color: black;
}

.btn-filled:hover {
    background: #ea580c;
    border-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Featured card button styles */
.service-card.featured .btn-outline {
    color: white;
    border-color: white;
}

.service-card.featured .btn-outline:hover {
    background: white;
    color: #1e40af;
}

.service-card.featured .btn-filled {
    background: #f97316;
    border-color: #f97316;
}

/* Navigation */
.services-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding: 10px;
}

.slider-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: white;
    transform: scale(1.1);
}

.slider-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #1e40af;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: #1e40af;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 25px;
    }

    .service-card.featured {
        grid-row: span 1;
    }

    .service-card.featured .service-card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .services-slider-section {
        padding: 60px 0;
    }

    .services-slider-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    .service-card-content {
        padding: 25px;
    }

    .service-card.featured .service-card-content {
        padding: 30px;
    }

    .service-card-actions {
        flex-direction: column;
    }
    .services-slider-nav {
        gap: 20px;
        margin-top: 40px;
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .services-slider-header {
        margin-bottom: 40px;
    }

    .services-slider-title {
        font-size: 1.8rem;
    }

    .service-card-content {
        padding: 20px;
    }

    .service-card-title {
        font-size: 1.3rem;
    }

    .service-card.featured .service-card-title {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.services-slider-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.services-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e40af;
    border-radius: 50%;
    animation: servicesSpinLoading 1s linear infinite;
}

@keyframes servicesSpinLoading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {
    .services-slider-nav {
        display: none;
    }

    .services-slide {
        opacity: 1 !important;
    }

    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
  