﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f8f9fa;
    color: #222;
}

/* Header */
header {
    background: #1878e7;
    color: #fff;
    padding: 0 0 10px 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 100px 0 100px;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 123, 255, 0.45));
}

    .logo:hover {
        transform: scale(1.08);
        filter: drop-shadow(0 8px 20px rgba(0, 123, 255, 0.65));
    }
.boxaydung {
    color:white; font-size: 1.4rem; font-weight:700; flex:1; padding-left:10px;
}
.header-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    flex: 1;
    padding-left: 30px;
}

.header-code {
    text-align: center;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    min-width: 120px;
}

.school-code {
    background: #ff3366;
    color: white;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 6px;
    margin-top: 3px;
}
    .school-code:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(255, 51, 102, 0.4);
        background: #ff1a5c;
        color: white;
    }

/* Banner */
.banner {
    position: relative;
    width: 100%;
    height: 380px;
    background: #dce9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.banner-content {
    position: absolute;
    left: 7%;
    top: 30%;
    color: #fff;
    text-shadow: 2px 2px 8px #222;
}

    .banner-content h1 {
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

.btn-main {
    background: #1878e7;
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.consult-form {
    position: absolute;
    right: 3%;
    top: 5%;
    background: rgba(255,255,255,0.98);
    padding: 22px 28px;
    border-radius: 9px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.09);
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 12px;

}

    .consult-form h3 {
        margin-bottom: 6px;
        color: #1878e7;
        font-size: 1.1rem;
    }

    .consult-form input, .consult-form button {
        padding: 8px;
        border-radius: 5px;
        border: 1px solid #1878e7;
        font-size: 1rem;
    }

    .consult-form button {
        background: #1878e7;
        color: #fff;
        font-weight: 700;
        border: none;
        cursor: pointer;
    }

/* Menu */
.main-menu {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.menu-btn {
    background: linear-gradient(90deg, #0069ff, #2c8bff);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 115, 255, 0.35);
}

    .menu-btn:hover {
        background: #0056d4;
        transform: translateY(-3px);
    }

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #ffffff;
    min-width: 240px;
    top: 48px;
    border-radius: 10px;
    padding: 6px 0;
    box-shadow: 0 10px 24px rgba(0, 60, 145, 0.18);
    border: 1px solid #d7e7ff;
    z-index: 200;
}

    .dropdown-content a {
        display: block;
        padding: 12px 18px;
        color: #0056b3;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: 0.25s ease;
    }

        .dropdown-content a:hover {
            background: #007bff;
            color: #ffffff;
        }

.dropdown.show .dropdown-content {
    display: block;
}

/* News Section */
.news-section {
    background: #fff;
    margin: 40px 0;
    padding: 24px 40px;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.06);
}

    .news-section h2 {
        color: #e60023;
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

.news-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.news-main {
    flex: 2;
    display: flex;
    flex-direction: column;
}

    .news-main img {
        width: 100%;
        border-radius: 10px;
    }

.news-main-title {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
}

.btn-view-all {
    margin-top: 14px;
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.25s;
}

    .btn-view-all:hover {
        background: #005ecb;
        transform: translateY(-2px);
    }

.news-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-side-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: #000;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    transition: 0.25s ease;
}

    .news-side-item img {
        width: 85px;
        height: 55px;
        object-fit: cover;
        border-radius: 6px;
    }

    .news-side-item strong {
        font-size: 15px;
        line-height: 1.3;
        display: block;
    }

    .news-side-item span {
        font-size: 13px;
        color: #666;
        margin-top: 4px;
        display: block;
    }

    .news-side-item:hover strong {
        color: #007bff;
    }

.pagination {
    text-align: center;
    margin-top: 28px;
}

    .pagination a {
        display: inline-block;
        padding: 7px 14px;
        margin: 0 4px;
        border-radius: 6px;
        text-decoration: none;
        color: #007bff;
        border: 1px solid #c9dffc;
        font-size: 14px;
        transition: 0.25s;
    }

        .pagination a:hover, .pagination a.active {
            background: #007bff;
            color: #fff;
        }

/* Majors Section */
.majors-section {
    background: #fff0f2;
    margin: 0 0 30px 0;
    padding: 28px 40px 22px 40px;
    border-radius: 10px;
}

    .majors-section h2 {
        text-align: center;
        font-size: 26px;
        margin-bottom: 28px;
        color: #003f9e;
        font-weight: 700;
    }

.majors-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    padding: 0 20px;
}

.major-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.35s ease;
    cursor: pointer;
    position: relative;
}

    .major-card img {
        width: 100%;
        height: 170px;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

    .major-card:hover img {
        transform: scale(1.08);
    }

.major-info {
    padding: 14px;
}

    .major-info strong {
        font-size: 17px;
        color: #003f9e;
        display: block;
        margin-bottom: 6px;
    }

    .major-info p {
        font-size: 14px;
        color: #444;
    }

.major-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0, 90, 180, 0.25);
}

.major-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,123,255,0.05), rgba(0,123,255,0.12));
    opacity: 0;
    transition: 0.35s ease;
}

.major-card:hover::after {
    opacity: 1;
}

/* Events Section */
.events-section {
    background: #fff;
    margin: 24px 0;
    padding: 22px 40px;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.05);
}

    .events-section h2 {
        text-align: center;
        font-size: 26px;
        margin-bottom: 28px;
        color: #003f9e;
        font-weight: 700;
    }

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    padding: 0 20px;
}

.event-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
    transition: 0.35s ease;
    cursor: pointer;
    position: relative;
}

    .event-card img {
        width: 100%;
        height: 165px;
        object-fit: cover;
        transition: 0.35s ease;
    }

    .event-card:hover img {
        transform: scale(1.08);
    }

.event-info {
    padding: 14px 16px;
}

    .event-info strong {
        font-size: 17px;
        color: #003f9e;
        display: block;
        margin-bottom: 6px;
    }

    .event-info p {
        font-size: 14px;
        color: #444;
        line-height: 1.45;
    }

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,108,218,0.25);
}

.event-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,145,255,0.1), rgba(0,145,255,0.18));
    opacity: 0;
    transition: 0.35s ease;
}

.event-card:hover::after {
    opacity: 1;
}

/* Partners Section */
.partners-section {
    text-align: center;
    margin: 50px 0;
}

    .partners-section h2 {
        font-size: 28px;
        margin-bottom: 20px;
        font-weight: bold;
    }

.partners-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partners-list {
    display: flex;
    gap: 50px;
    align-items: center;
    animation: scrollPartners 18s linear infinite;
}

    .partners-list img {
        height: 80px;
        transition: transform 0.3s ease, filter 0.3s ease;
        cursor: pointer;
    }

.partners-wrapper:hover .partners-list {
    animation-play-state: paused;
}

.partners-list img:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
.footer {
    background: #eef4fc;
    padding-top: 50px;
    color: #000;
    font-size: 15px;
}

.footer-container {
    max-width: 1350px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 30px 50px;
}

.footer-column {
    line-height: 1.75;
}

    .footer-column strong {
        font-size: 16px;
        color: #003a9b;
    }

    .footer-column a {
        text-decoration: none;
        color: #000;
        transition: .3s;
        display: block;
        margin: 4px 0;
    }

        .footer-column a:hover {
            color: #0066ff;
            transform: translateX(4px);
        }

.social-icons {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 15px;
}

    .social-icons a {
        display: inline-block;
        transition: all 0.3s ease;
    }

    .social-icons img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 8px;
        transition: all 0.35s ease;
        filter: brightness(0.8);
        cursor: pointer;
        border: 2px solid transparent;
    }

        .social-icons img:hover {
            transform: scale(1.15) translateY(-2px);
            filter: brightness(1);
            box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4);
            border-color: #0066ff;
        }

.footer-bottom {
    background: #0066ff;
    text-align: center;
    padding: 14px 0;
    color: white;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .header-top, .banner, .news-section, .majors-section, .events-section, .partners-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .banner-img {
        width: 100%;
    }

    .main-menu {
        flex-direction: column;
        gap: 8px;
    }

    .majors-list, .events-list, .partners-list {
        flex-direction: column;
        gap: 14px;
    }

    .major-card, .event-card {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .news-container {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons img {
        margin: 8px;
    }
}


/*CSS cho mobile*/

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    /* Header Mobile */
    .header-top {
        flex-direction: column;
        padding: 10px 20px;
        text-align: center;
        gap: 15px;
    }

    .header-title {
        color: white;
        font-size: calc(0.5rem + 0.5vw); /* Tự động thay đổi theo chiều rộng viewport */
        flex: 1;
        padding-left: 10px;
    }
    /*lớn nhỏ logo mobile*/
    .logo {
        width: 100px;
        height: 160px;
        order: 0;
    }

    .header-code {
        order: 3;
        margin-top: 10px;
    }

    /* Banner Mobile - FIXED LAYOUT */
    .banner {
        height: auto;
        flex-direction: column;
        position: relative;
        padding-bottom: 0;
    }

    .banner-img {
        height: 200px;
        object-fit: cover;
    }

    .banner-content {
        position: relative;
        left: 0;
        top: 0;
        text-align: center;
        padding: 20px 15px;
        background: rgba(24, 120, 231, 0.9);
        width: 100%;
        border-radius: 0;
        margin-bottom: 0;
    }

        .banner-content h1 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
        }
    .boxaydung {
        color: white;
        font-size: calc(0.5rem + 0.5vw); /* Tự động thay đổi theo chiều rộng viewport */
        flex: 1;
        padding-left: 10px;
    }
   

    /* FORM ĐĂNG KÝ TƯ VẤN - FIXED POSITION */
    .consult-form {
        position: relative;
        right: 0;
        top: 0;
        width: 90%;
        margin: 0 auto;
        padding: 20px;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-radius: 10px;
        transform: translateY(-20px);
        z-index: 10;
    }

    /* Menu Mobile */
    .main-menu {
        flex-direction: column;
        gap: 8px;
        padding: 25px 15px 15px;
        margin: 0;
        background: #fff;
        border-radius: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .menu-btn {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 15px;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid #e0e0e0;
        margin-top: 5px;
        border-radius: 8px;
        overflow: hidden;
    }

        .dropdown-content a {
            padding: 12px 15px;
            font-size: 14px;
            border-bottom: 1px solid #f5f5f5;
        }

            .dropdown-content a:last-child {
                border-bottom: none;
            }

    /* News Section Mobile */
    .news-section {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .news-container {
        flex-direction: column;
        gap: 20px;
    }

    .news-side-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

        .news-side-item img {
            width: 80px !important;
            height: 60px;
            margin-bottom: 0;
            flex-shrink: 0;
        }

    /* Majors Section Mobile */
    .majors-section {
        padding: 20px 15px;
    }

    .majors-list {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .major-card {
        margin-bottom: 0;
    }

    /* Events Section Mobile */
    .events-section {
        padding: 20px 15px;
    }

    .events-list {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    /* Partners Section Mobile */
    .partners-section {
        margin: 30px 0;
        padding: 0 15px;
    }

    .partners-list {
        gap: 25px;
    }

        .partners-list img {
            height: 60px;
        }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 30px;
        text-align: center;
    }

    .footer-column {
        width: 100% !important;
    }

    .social-icons {
        justify-content: center;
        margin-top: 15px;
    }

    /* Pagination Mobile */
    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

        .pagination a {
            padding: 8px 12px;
            font-size: 13px;
        }
}

@media (max-width: 480px) {
    /* Small Mobile */
    .header-title {
        font-size: 0.95rem;
    }

    .banner {
        height: auto;
    }

    .banner-img {
        height: 180px;
    }

    .banner-content h1 {
        font-size: 1.2rem;
    }

    .btn-main {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .consult-form {
        width: 95%;
        padding: 15px;
        transform: translateY(-15px);
    }

        .consult-form h3 {
            font-size: 1.1rem;
            margin-bottom: 10px;
        }

    .news-section h2,
    .majors-section h2,
    .events-section h2 {
        font-size: 1.3rem;
    }

    .partners-list img {
        height: 50px;
    }

    .footer {
        padding-top: 30px;
    }

    .main-menu {
        padding: 20px 10px 10px;
    }

    .menu-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* ===== TOUCH FRIENDLY FOR MOBILE ===== */
@media (hover: none) {
    .menu-btn:hover,
    .btn-main:hover,
    .btn-view-all:hover,
    .major-card:hover,
    .event-card:hover {
        transform: none;
    }

    .dropdown-content {
        display: none;
    }

    .dropdown.show .dropdown-content {
        display: block;
    }
}

/* ===== MOBILE MENU IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
    }

    /* Improved dropdown animation */
    .dropdown-content {
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }

    .dropdown.show .dropdown-content {
        max-height: 400px;
    }
}

/* ===== IMPROVED MOBILE LAYOUT ===== */
@media (max-width: 768px) {
    /* Better spacing */
    section {
        margin: 15px 0;
    }

    /* Improved typography for mobile */
    h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    /* Better touch targets */
    .menu-btn,
    .btn-main,
    .btn-view-all,
    .pagination a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Improved images for mobile */
    .major-card img,
    .event-card img,
    .news-main img {
        height: 150px;
    }

    /* Better form inputs for mobile */
    .consult-form input {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        margin-bottom: 10px;
    }

    /* Form button styling */
    .consult-form button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

/* ===== FIX Z-INDEX ISSUES ===== */
@media (max-width: 768px) {
    .banner {
        z-index: 1;
    }

    .consult-form {
        z-index: 2;
    }

    .main-menu {
        z-index: 3;
        position: relative;
    }
}
/* ===== MOBILE HEADER HORIZONTAL LAYOUT ===== */
@media (max-width: 768px) {
    .header-top {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        gap: 15px;
        flex-wrap: nowrap;
    }

    
    .header-title {
        flex: 1;
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.3;
        padding-left: 0;
        margin: 0;
    }

    .header-code {
        flex-shrink: 0;
        text-align: center;
        padding: 8px 10px;
    }

        .header-code span {
            font-size: 0.75rem;
            display: block;
            margin-bottom: 4px;
        }

    .school-code {
        padding: 4px 10px;
        font-size: 0.85rem;
        margin-top: 2px;
    }
}

/* ===== SMALL MOBILE OPTIMIZATION ===== */
@media (max-width: 480px) {
    .header-top {
        padding: 10px 12px;
        gap: 12px;
    }

    

    .header-title {
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .header-code {
        padding: 6px 8px;
    }

        .header-code span {
            font-size: 0.7rem;
        }

    .school-code {
        padding: 3px 8px;
        font-size: 0.8rem;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 360px) {
    .header-top {
        padding: 8px 10px;
        gap: 10px;
    }

  

    .header-title {
        font-size: 0.75rem;
    }

    .header-code {
        padding: 5px 6px;
    }

        .header-code span {
            font-size: 0.65rem;
        }

    .school-code {
        padding: 2px 6px;
        font-size: 0.75rem;
    }
}

/* ===== TABLET OPTIMIZATION ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-top {
        padding: 1px 60px 0 60px;
    }

   

    .header-title {
        font-size: 1.2rem;
    }
}
/* ===== MOBILE PARTNERS CAROUSEL - HORIZONTAL FIX ===== */
@media (max-width: 768px) {
    .partners-section {
        margin: 30px 0;
        padding: 0 15px;
        overflow: hidden;
    }

    .partners-wrapper {
        overflow: hidden;
        position: relative;
        width: 100%;
        margin-top: 20px;
    }

    .partners-list {
        display: flex;
        flex-direction: row; /* Đảm bảo theo chiều ngang */
        flex-wrap: nowrap; /* Không xuống dòng */
        gap: 25px;
        align-items: center;
        animation: scrollPartnersMobile 20s linear infinite;
        padding: 10px 0;
        width: max-content; /* Chiều rộng tự động theo nội dung */
    }

        .partners-list a {
            display: inline-block;
            flex-shrink: 0; /* Không bị co lại */
        }

        .partners-list img {
            height: 50px;
            width: auto;
            flex-shrink: 0;
            transition: transform 0.3s ease, filter 0.3s ease;
        }

    /* Pause on hover */
    .partners-wrapper:hover .partners-list {
        animation-play-state: paused;
    }

    /* Hover effect */
    .partners-list img:hover {
        transform: scale(1.15);
        filter: brightness(1.2);
    }
}

/* ===== SMALL MOBILE OPTIMIZATION ===== */
@media (max-width: 480px) {
    .partners-section {
        margin: 25px 0;
        padding: 0 12px;
    }

    .partners-list {
        gap: 20px;
        animation-duration: 18s;
    }

        .partners-list img {
            height: 45px;
        }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 360px) {
    .partners-list {
        gap: 15px;
        animation-duration: 16s;
    }

        .partners-list img {
            height: 40px;
        }
}

/* ===== KEYFRAMES FOR MOBILE ===== */
@keyframes scrollPartnersMobile {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== ENHANCED VISUALS FOR MOBILE ===== */
@media (max-width: 768px) {
    .partners-list img {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        background: #fff;
        padding: 5px;
    }
}
.btn-main {
    background: #1878e7;
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

    /* Hiệu ứng hover cho desktop */
    .btn-main:hover {
        background: #145cb3;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(24, 120, 231, 0.4);
    }

/* Hiệu ứng cho mobile (touch devices) */
@media (max-width: 768px) {
    .btn-main {
        width: 90%;
        max-width: 280px;
        padding: 14px 32px;
        font-size: 1.1rem;
        border-radius: 10px;
        margin: 15px auto;
    }

        /* Hiệu ứng khi chạm trên mobile */
        .btn-main:active {
            background: #0f4a8f;
            transform: scale(0.98);
            box-shadow: 0 3px 8px rgba(24, 120, 231, 0.3);
        }

        /* Hiệu ứng ripple cho mobile */
        .btn-main::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s;
        }

        .btn-main:active::after {
            width: 100px;
            height: 100px;
        }
}

/* Hiệu ứng cho tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .btn-main {
        padding: 13px 26px;
        font-size: 1.05rem;
    }
}

/* Đảm bảo nút luôn căn giữa */
.banner-content {
    text-align: center;
}

/* Thêm hiệu ứng loading khi click */
.btn-main.loading {
    pointer-events: none;
    opacity: 0.7;
}

    .btn-main.loading::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid transparent;
        border-top: 2px solid #fff;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/*Hết Mobile*/
/*Hiển thị báo lỗi trên form đăng ký tư vấn */
.field-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.25rem;
}

.success-message {
    color: #065f46;
    font-size: 0.875rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 0.375rem;
    text-align: center;
}

.hidden {
    display: none;
}

.border-red-500 {
    border-color: #ef4444 !important;
}

.bg-red-50 {
    background-color: #fef2f2 !important;
}

.border-green-500 {
    border-color: #10b981 !important;
}

.bg-green-50 {
    background-color: #ecfdf5 !important;
}

.input-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.consult-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fa-spinner {
    margin-right: 0.5rem;
}
/*Hết báo lỗi*/

/*Chọn ngành quan tâm*/

/* Thêm CSS cho modal và toast */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
}

    .close:hover {
        color: #dc2626;
    }

.form-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1100;
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/*Hết chọn ngành quan tâm*/
