/* Định nghĩa biến màu sắc */
:root {
    --primary-color: #005f69;
    --secondary-color: #f26f33;
    --text-color: #ffffff;
    --card-bg-color: #0d6c77;
    --body-bg-color: #f0f2f5;
}

body {
    font-family: 'Lexend', sans-serif;
    background-color: var(--body-bg-color);
}

/* Phần Header */
.header-section {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 550px;

    /* Sử dụng ảnh nền để dễ dàng quản lý và co giãn */
    background-image: url('../images/student.png');
    background-repeat: no-repeat;
    background-position: 100% 100%; /* Căn ảnh về phía dưới cùng bên phải */
    background-size: auto 100%; /* Co giãn chiều cao theo header, chiều rộng tự động */
}

.header-content {
    position: relative;
    z-index: 5;
}

.header-section .ueh-logo-top {
    position: absolute;
    top: 2rem;
    right: 3rem;
    width: 150px;
    z-index: 10;
}

.header-section .main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.header-section .sub-title {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.header-section ul {
    padding-left: 1.2rem;
    list-style: none;
}

.header-section ul li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.header-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-color);
    font-weight: bold;
}

.header-section ul li a {
    color: var(--text-color);
    text-decoration: underline;
}

.header-section ul li a:hover {
    color: #ddd;
}

.btn-custom-orange {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-custom-orange:hover {
    background-color: #d95f2a;
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Cập nhật CSS cho container nút bấm */
.action-buttons-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column; /* Xếp nút chính và nhóm nút phụ theo chiều dọc */
    align-items: flex-start; /* Căn lề trái trên desktop */
    gap: 1rem; /* Khoảng cách giữa nút chính và nhóm nút phụ */
}

.secondary-buttons {
    display: flex;
    flex-wrap: wrap; /* Cho phép các nút xuống hàng trên màn hình nhỏ */
    gap: 1rem; /* Khoảng cách giữa các nút phụ */
}


.btn-custom-outline {
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--text-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

/* Phần Iframe */
.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin: 2rem 0;
}

/* Phần Footer Wrapper */
.footer-wrapper {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 4rem 0;
}

.footer-wrapper .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-card .phone-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact-card .icon-group {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Khoảng cách giữa các icon */
    margin-bottom: 1.5rem;
}

.contact-card .contact-icon {
    width: 40px;
    height: 40px;
}

.contact-card .card-text {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.bottom-footer {
    padding-top: 4rem; /* Tạo khoảng cách với phần liên hệ */
}

.bottom-footer .ueh-logo-bottom {
    width: 150px;
}

.slide-detail{
    color: var(--secondary-color);
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .header-section {
        display: block;
        min-height: 0;
        padding-top: 2rem;
        padding-bottom: 2rem;
        background-image: none; /* Ẩn ảnh nền student trên mobile */
        text-align: center;
    }
    .header-section .ueh-logo-top {
        position: static;
        margin: 0 auto 1.5rem;
    }
    .header-content {
        text-align: center;
    }
    .header-section .main-title {
        font-size: 2.2rem;
    }
    .header-section .row {
        justify-content: center;
    }
    .header-section ul {
        display: inline-block;
        padding-left: 0;
        text-align: left; /* Căn lề trái cho text trong list */
        max-width: 100%;
    }
    
    /* Căn giữa các nút trên mobile */
    .action-buttons-container {
        align-items: center;
    }
    .secondary-buttons {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .footer-wrapper {
        padding: 3rem 0;
    }
    .footer-wrapper .section-title {
        font-size: 2rem;
    }
    .contact-card .phone-number {
        font-size: 1.5rem;
    }
}
