﻿.section-head {
    display: flex;
    flex-direction: column;
    ALIGN-ITEMS: center;
}
/* Lớp phủ mờ toàn màn hình */
.ads-overlay {
    display: none; /* mặc định ẩn */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

    /* khi mở quảng cáo */
    .ads-overlay.show {
        display: flex;
    }

/* Khung chứa ảnh quảng cáo */
.ads-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

    .ads-container img {
        max-width: 100%;
        max-height: 85vh; /* Giới hạn chiều cao để không bị tràn */
        border-radius: 8px;
        box-shadow: 0 0 30px rgba(255,255,255,0.2);
    }

/* Nút X đóng quảng cáo */
.ads-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .ads-close:hover {
        color: #ff0000;
        transform: rotate(90deg);
    }

/* Responsive cho Mobile */
@media (max-width: 768px) {
    .ads-container {
        width: 95%;
    }

    .ads-close {
        top: -35px;
        right: 10px;
    }
}

/* ADS 2 BÊN LUÔN BÁM THEO SCROLL */
/* ADS 2 bên */
.ads-side {
    position: fixed !important;
    top: 0; /* lên sát top luôn */
    width: 10%;
    height: 100vh;
    width: 10%;
    z-index: 9000;
}

/* tránh bị cha ảnh hưởng */
body {
    overflow-x: hidden;
}

/* trái */
.ads-left {
    left: 0;
}

/* phải */
.ads-right {
    right: 0;
}

/* ảnh */
.ads-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;

}

/* ẩn mobile */
@media (max-width: 1200px) {
    .ads-side {
        display: none !important;
    }
}
.ads-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 20px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5000000;
    transition: 0.3s;
}

    .ads-close-btn:hover {
        background: red;
        transform: rotate(90deg);
    }
.admission-section {
    padding: 80px 0;
    background: #f7f9fc;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

    .section-head h2 {
        font-size: 42px;
        font-weight: 700;
    }

    .section-head .accent {
        color: #0d6efd;
    }

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #0d6efd;
    font-weight: 600;
    letter-spacing: 1px;
}

.adm-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all .35s ease;
    position: relative;
}

    .adm-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    }

.thumb {
    height: 220px;
    overflow: hidden;
}

    .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

.adm-card:hover .thumb img {
    transform: scale(1.08);
}

.card-content {
    padding: 25px;
}

    .card-content h4 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 15px;
    }

.desc {
    color: #666;
    line-height: 1.7;
    min-height: 90px;
}

.adm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0d6efd;
    font-weight: 600;
    transition: .3s;
}

    .adm-link:hover {
        gap: 14px;
    }

.badge-hot {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff3d3d;
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}
/* wrapper ngoài */
.util-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* track chạy */
.util-grid {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: utilMarquee 28s linear infinite;
}

    /* hover dừng */
    .util-grid:hover {
        animation-play-state: paused;
    }

/* item */
.util-item {
    min-width: 220px;
    flex-shrink: 0;
}

/* animation chạy nối đuôi */
@keyframes utilMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}