﻿/* site-master.css — extracted from vn/Site.master */

/* ================================================
   CUSTOM MENU 3 CẤP - DESKTOP & MOBILE (ĐỒNG BỘ)
   ================================================ */

/* Reset cơ bản */
.custom-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-menu__item {
    position: relative;
}

.custom-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 10px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.custom-menu__arrow {
    margin-left: 10px;
    font-size: 11px;
    transition: transform 0.3s ease;
    font-style: normal;
}

/* ================================================
   DESKTOP (>= 992px)
   ================================================ */
@media (min-width: 992px) {
    .header__logo {
        width: 30%;
    }

    .header__logo img {
        max-width: 100%;
        height: auto;
    }

    .custom-menu__list {
        display: flex;
        flex-direction: row;
        gap: 6px;
        align-items: center;
    }

    .custom-menu__link {
        padding: 6px 8px;
        white-space: nowrap;
        border-radius: 6px;
    }

    /* Submenu - hiển thị khi hover */
    .custom-menu__submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-radius: 8px;
        padding: 10px 0;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    }

    .custom-menu__item.has-submenu:hover > .custom-menu__submenu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Cấp 3 - bên phải */
    .custom-menu__submenu .custom-menu__item.has-submenu > .custom-menu__submenu {
        top: 0;
        left: 100%;
        margin-left: 0px;
        min-width: 210px;
    }

    .custom-menu__submenu .custom-menu__item.has-submenu:hover > .custom-menu__submenu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Hover effect */
    .custom-menu__link:hover {
        background: #f0f4ff;
        color: #4d7cff;
    }

    .custom-menu__item.has-submenu:hover > .custom-menu__link .custom-menu__arrow {
        transform: rotate(180deg);
    }

    /* Ẩn mobile elements */
    .mobile__menu--toggle,
    .mobile__menu--overlay {
        display: none !important;
    }

    /* Đảm bảo header luôn ở trên cùng */
    .header,
    .header__wrapper,
    .header__right,
    .header__logo,
    .lang__trigger,
    #search-btn,
    .mobile__menu--toggle {
        z-index: 1200;
    }
}

/* ================================================
   MOBILE (<= 991px)
   ================================================ */
@media (max-width: 991px) {
    /* Header luôn ở trên cùng, không bị menu che */
    .header,
    .header__wrapper,
    .header__right,
    .header__logo,
    .lang__trigger,
    #search-btn,
    .mobile__menu--toggle,
    #langSwitcher,
    .search__trigger {
        position: relative;
        z-index: 1200 !important;
    }

    /* Nút hamburger - lớn, dễ chạm */
    .mobile__menu--toggle {
        display: block !important;
        margin-left: 12px;
        z-index: 1200;
    }

    .mobile__menu--btn {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 12px;
        touch-action: manipulation;
    }

    .mobile__menu--icon {
        width: 42px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile__menu--icon span {
        width: 100%;
        height: 5px;
        background-color: #222;
        border-radius: 4px;
        transition: all 0.35s ease;
    }

    .mobile__menu--btn.active .mobile__menu--icon span:nth-child(1) {
        transform: rotate(45deg) translate(11px, 11px);
    }

    .mobile__menu--btn.active .mobile__menu--icon span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .mobile__menu--btn.active .mobile__menu--icon span:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
    }

    /* Sidebar menu chính */
    .mobile-sidebar-menu {
        position: fixed;
        inset: 0 0 0 auto;
        width: 85vw;
        max-width: 380px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -12px 0 40px rgba(0,0,0,0.25);
        z-index: 1050;                   /* Thấp hơn header */
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 90px 20px 60px;         /* Padding top lớn hơn để tránh chồng header */
    }

    .mobile-sidebar-menu.active {
        transform: translateX(0);
    }

    /* Overlay nền tối */
    .mobile__menu--overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1040;                   /* Thấp hơn menu, thấp hơn header */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        pointer-events: none;
    }

    .mobile__menu--overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Nội dung menu */
    .custom-menu__list {
        display: block;
        padding: 0;
    }

    .custom-menu__item .custom-menu__link {
        color: #222;
        font-size: 1.1rem;
        padding: 16px 24px;
        border-bottom: 1px solid #eee;
    }

    /* Submenu mobile */
    .custom-menu__submenu {
        display: none;
        padding-left: 24px;
        background: #f9f9f9;
        border-left: 4px solid #e0e7ff;
    }

    .custom-menu__submenu.active {
        display: block;
    }

    .custom-menu__item.has-submenu.active > .custom-menu__link .custom-menu__arrow {
        transform: rotate(180deg);
    }
}

/* Menu tài khoản (admin / user đăng nhập) */
@media (min-width: 992px) {
    .custom-menu__user {
        margin-left: auto;
    }

    .custom-menu__user > .custom-menu__submenu {
        left: auto;
        right: 0;
        min-width: 240px;
    }
}

.custom-menu__logout {
    color: #c62828 !important;
    font-weight: 600;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

    .social-links a:hover {
        background: var(--primary-yellow);
        color: var(--text-dark);
        transform: translateY(-2px);
    }

/* ==================== BASE STYLES ==================== */
.navigation__menu--item ul.submenu li, 
.navigation__menu--item .sub__style li {
    padding: 0 10px !important;
}

.navigation__menu--item ul.submenu, 
.navigation__menu--item .sub__style {
    padding: 10px 0 !important;
}

.blog__single--item--meta .blog__cat {    
    background: none !important;
}

.list-group {
    font-size: 1.2rem !important;
}

.navigation__menu ul {
    gap: 20px !important;
}

.rts-footer.v_2.rts-footer-padding {
    padding-left: 10px;
}

.single-brand-logo img {
    max-height: 100px;
}

.btn {
    white-space: nowrap !important;
}

.error {
    color: orangered;
}

#ctl00_timkiem {
    max-width: max-content;
    padding: 18px 21px;
    background: var(--rt-primary);
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: center;
    display: block;
    margin-left: -9px;
    border-radius: 0 5px 5px 0;
    font-size: var(--p-s);
}

.chosen-container-single .chosen-single {
    height: 38px !important;
    line-height: 38px !important;
    border-radius: 4px;
}

.chosen-container {
    font-size: inherit !important;
    zoom: 1;
}

.campus__single--item--thumb a {
    position: relative;
    z-index: 10;
}

.campus__single--item--title a {
    position: relative;
    z-index: 10;
}

.rts-section-padding {
    padding: 30px 0 !important;
}

.tution__single--box--faculty {
    text-decoration: none !important;
}

.rts-brand .single-brand-logo img {
    filter: none !important;
    opacity: 1 !important;
    transition: all 0.4s ease;
}

.rts-brand .single-brand-logo img:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

#ui-datepicker-div {
    z-index: 2000 !important;
}

/* ==================== LANGUAGE SWITCHER ==================== */
.selected__lang {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-align: left;
}

.translate__lang {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 160px;
    z-index: 1001;
    margin-top: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.lang__trigger.active .translate__lang {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.translate__lang ul {
    list-style: none;
    padding: 10px 0;
}

.translate__lang li {
    margin: 0;
}

.translate__lang a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.translate__lang a:hover {
    background: #f8f9ff;
    color: #667eea;
    padding-left: 25px;
}

.translate__lang a.active {
    background: #667eea;
    color: white;
}

.translate__lang a.active:hover {
    background: #5a6fd8;
    color: white;
}

.translate__lang a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #667eea;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.translate__lang a:hover::before {
    opacity: 1;
}

.translate__lang a.active::before {
    opacity: 0;
}

/* ==================== NEWSLETTER ==================== */
.message { 
    margin-top: 15px; 
    padding: 12px; 
    border-radius: 4px;
    display: none;
}

.message.success { 
    color: #155724; 
    background: #d4edda; 
    border: 1px solid #c3e6cb;
}

.message.error { 
    color: #721c24; 
    background: #f8d7da; 
    border: 1px solid #f5c6cb;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== GOOGLE TRANSLATE HIDE ==================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0px !important;
}

.goog-te-balloon-frame {
    display: none !important;
}

#google_translate_element2 {
    display: none !important;
}
.blog-details{
    padding-left:10px;
     padding-right:10px;
}
.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.rts-footer.v_2 .rts-footer-newsletter {
    
   margin-bottom: 5px !important;
}

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #c0395a;  /* màu hồng đậm */
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: #a02f4a;  /* tối hơn khi hover */
}

.social-links a i {
  line-height: 1;
}

/* Sticky table header (jquery.stickyTableHeaders) — nổi trên nội dung, dưới site header */
table.stickyTableHeaders thead.tableFloatingHeaderOriginal {
  background: #f8f9fa !important;
  z-index: 1100 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
table.stickyTableHeaders thead.tableFloatingHeaderOriginal th,
table.stickyTableHeaders thead.tableFloatingHeaderOriginal td {
  background: #f8f9fa !important;
}

/* Placeholder mờ — phân biệt với giá trị đã nhập */
::placeholder {
  color: #94a3b8 !important;
  opacity: 0.65;
  font-weight: 400;
}
::-webkit-input-placeholder {
  color: #94a3b8 !important;
  opacity: 0.65;
  font-weight: 400;
}
::-moz-placeholder {
  color: #94a3b8 !important;
  opacity: 0.65;
  font-weight: 400;
}
:-ms-input-placeholder {
  color: #94a3b8 !important;
  opacity: 0.65;
  font-weight: 400;
}
::-ms-input-placeholder {
  color: #94a3b8 !important;
  opacity: 0.65;
  font-weight: 400;
}
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: #94a3b8 !important;
  opacity: 0.65;
}
