/* Discover Services Component Styles */
.discover-services-section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
   
}

.discover-services-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: #2046a1; /* Màu chính */
    z-index: -1;
}

.discover-main {
    margin-top: 40px;
    position: relative;
}

.discover-main-video {
    position: relative;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.discover-main-video img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0) 50%, rgba(26, 26, 26, 0.8) 75%, #1A1A1A 100%);
    transition: background 0.3s ease;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-link:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.discover-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.discover-service-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
}

.discover-service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.discover-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0) 50%, rgba(26, 26, 26, 0.8) 75%, #1A1A1A 100%);
    transition: background 0.3s ease;
}

.discover-service-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    text-align: center;
}

.discover-service-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.discover-service-item:hover img {
    transform: scale(1.05);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-modal.active {
    visibility: visible;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
}

.close-video {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.close-video:hover {
    transform: scale(1.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .discover-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .discover-service-item {
        height: 180px;
    }
    
    .discover-service-title h3 {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .discover-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .discover-service-item {
        height: 200px;
    }
    
    .discover-service-title h3 {
        font-size: 18px;
    }
    
    .play-button svg {
        width: 60px;
        height: 60px;
    }
}

.title-main-wrapper .title-subtitle {
    color: #B89B33; /* Màu phụ */
}

.title-main-wrapper .title-main {
    color: #2046a1; /* Màu chính - vì tiêu đề nằm trên nền trắng */
} 