/* ==========================================================================
   RESPONSIVE ADJUSTMENTS - SCALABLE & PERSISTENT 2-COLUMN LAYOUT
   ========================================================================== */

@media (max-width: 1400px) {
  .nav-menu {
    gap: 8px;
  }
  .nav-link {
    font-size: 0.925rem;
    padding: 6px 2px;
  }
  .campus-links {
    font-size: 0.8rem;
  }
  .btn-tuvan {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  .khampha-text-box {
    padding: 10px 30px 45px 20px !important;
  }
  .phuongthuc-text-box {
    padding: 10px 30px 45px 20px !important;
  }
}

@media (max-width: 1200px) and (min-width: 992px) {
  .nav-menu {
    gap: 5px;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 5px 1px;
  }
  .campus-links {
    font-size: 0.75rem;
  }
  .brand-logo img {
    height: 44px;
  }
  .khampha-full-grid {
    grid-template-columns: 44% 56% !important;
  }
  .khampha-text-box {
    padding: 10px 20px 35px 15px !important;
  }
  .phuongthuc-full-grid {
    grid-template-columns: 44% 56% !important;
  }
  .phuongthuc-text-box {
    padding: 10px 20px 35px 15px !important;
  }
}

@media (max-width: 991px) {
  .nav-menu {
    display: none;
  }
  .campus-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* Chỉ chuyển thành 1 cột trên điện thoại di động (< 768px) */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 75px;
  }
  section[id],
  div[id],
  [id] {
    scroll-margin-top: 75px;
  }
  .container-full {
    padding: 0 16px;
  }
  .header-inner {
    height: 70px;
  }
  .brand-logo img {
    height: 40px;
  }
  .khampha-full-grid {
    grid-template-columns: 1fr !important;
  }
  .khampha-img-box {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
  }
  .khampha-img-box img {
    width: 100% !important;
    height: auto !important;
  }
  .khampha-text-box {
    padding: 25px 16px 50px !important;
  }
  .khampha-heading {
    font-size: 1.45rem;
  }
  .elementor-tab-title {
    font-size: 1rem;
    padding: 16px 0;
  }

  /* TẠI SAO CHỌN UEH RESPONSIVE */
  .section-taisao {
    padding: 40px 0 60px 0;
  }
  .taisao-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }
  .taisao-block-item {
    margin-bottom: 45px;
    padding-bottom: 25px;
  }
  .taisao-visual-container,
  .taisao-visual-container.layout-reverse {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    gap: 0 !important;
  }
  .taisao-image-box {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
  .taisao-image-box img {
    width: 100%;
    height: auto;
    display: block;
  }
  .taisao-tabs-sidebar,
  .taisao-tabs-sidebar.sidebar-left {
    order: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 16px 0 16px 0 !important;
    gap: 10px !important;
    align-self: center !important;
  }
  .taisao-tab-btn {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    padding: 9px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    border-radius: 25px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    max-width: 100%;
    transition: all 0.2s ease !important;
  }
  .taisao-tab-btn:hover {
    transform: translateY(-2px) !important;
  }
  .taisao-tab-btn span {
    white-space: normal !important;
    display: inline-block;
  }
  .taisao-detail-container {
    flex-direction: column;
    gap: 18px;
    padding: 0 8px;
  }
  .taisao-detail-heading {
    flex: 1 1 100%;
    text-align: left;
    width: 100%;
  }
  .taisao-detail-heading h3 {
    font-size: 1.3rem;
    line-height: 1.35;
  }
  .taisao-divider-line {
    width: 100%;
    height: 2px;
    margin: 0;
  }
  .taisao-detail-content {
    flex: 1 1 100%;
    width: 100%;
  }
  .taisao-ranking-list li {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  /* VIDEO SHOWCASE RESPONSIVE */
  .video-showcase-grid {
    grid-template-columns: 1fr;
  }
  .video-content-col {
    padding: 35px 20px 45px 20px;
  }
  .video-heading-badge {
    margin-left: 0 !important;
    padding: 14px 20px;
    margin-bottom: 18px;
  }
  .video-heading-badge h2 {
    font-size: 1.4rem;
  }
  .video-body-text p {
    font-size: 0.975rem;
    line-height: 1.65;
  }

  /* HỌC GÌ Ở UEH? RESPONSIVE */
  .section-hocgi {
    padding: 40px 0 60px 0;
  }
  .hocgi-main-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }
  .hocgi-card {
    flex: 0 0 75%;
    min-width: 220px;
  }
  .hocgi-arrow {
    display: none;
  }
  .hocgi-tab-content-wrapper {
    padding: 22px 16px;
    border-radius: 10px;
  }
  .hocgi-tab-heading {
    font-size: 1.25rem;
  }
  .hocgi-tab-body p {
    font-size: 0.95rem;
  }
  .hocgi-grid-list {
    grid-template-columns: 1fr;
    margin-left: 10px;
  }
  .hocgi-bullet-list {
    margin-left: 10px;
  }

  /* CHƯƠNG TRÌNH ĐÀO TẠO RESPONSIVE */
  .section-chuongtrinh {
    padding: 40px 0 60px 0;
  }
  .chuongtrinh-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .chuongtrinh-tabs-header {
    flex-direction: column;
    gap: 8px;
  }
  .chuongtrinh-tab-btn {
    width: 100%;
    justify-content: center;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.875rem;
  }
  .chuongtrinh-tab-panel {
    padding: 16px 12px;
    border-radius: 8px;
  }
  .chuongtrinh-notes {
    padding: 14px 16px;
    margin-bottom: 18px;
  }
  .chuongtrinh-notes p {
    font-size: 0.85rem;
  }
  .chuongtrinh-table-container {
    height: 60vh;
    min-height: 380px;
  }
  .chuongtrinh-table th, 
  .chuongtrinh-table td {
    padding: 8px 8px;
    font-size: 12px;
  }
  .isb-block-wrapper {
    padding: 16px 12px;
  }
  .isb-title {
    font-size: 1.05rem;
  }

  /* 02 PHƯƠNG THỨC TUYỂN SINH RESPONSIVE */
  .phuongthuc-full-grid {
    grid-template-columns: 1fr !important;
  }
  .phuongthuc-img-box {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
  }
  .phuongthuc-img-box img {
    width: 100% !important;
    height: auto !important;
  }
  .phuongthuc-text-box {
    padding: 25px 16px 50px !important;
  }
  .phuongthuc-heading {
    font-size: 1.45rem;
  }
  .phuongthuc-formula-box {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
  .phuongthuc-tools-block {
    padding: 24px 18px;
    margin-top: 25px;
    border-radius: 8px;
  }
  .phuongthuc-subheading {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }
  .phuongthuc-icon-item a {
    font-size: 0.925rem;
    gap: 10px;
  }
  .phuongthuc-icon-item a i,
  .phuongthuc-icon-item .icon-spacer {
    width: 18px;
    font-size: 0.9rem;
  }

  /* 7 BƯỚC XÉT TUYỂN RESPONSIVE */
  .section-timeline {
    padding: 40px 0 60px 0;
  }
  .timeline-main-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }
  .ueh-modern-timeline {
    padding: 10px 0;
  }
  .ueh-step-item {
    flex: 0 0 86%;
    min-width: 260px;
  }
  .ueh-step-title {
    font-size: 1rem;
  }
  .ueh-nav-btn {
    display: none;
  }

  /* Q&A & NEWS RESPONSIVE */
  .section-qa {
    padding: 45px 0 55px 0;
  }
  .qa-title {
    font-size: 2rem;
  }
  .qa-subtitle {
    font-size: 1.05rem;
    margin-bottom: 22px;
  }
  .qa-search-input {
    font-size: 0.875rem;
    padding: 10px 14px;
  }
  .qa-search-btn {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
  .section-news {
    padding: 40px 0 60px 0;
  }
  .news-grid-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .news-col-title {
    font-size: 1.45rem;
    margin-bottom: 16px;
  }
  .news-article-link {
    font-size: 0.975rem;
  }

  /* ĐĂNG KÝ TƯ VẤN RESPONSIVE */
  .section-tuvan {
    padding: 45px 0 55px 0;
  }
  .tuvan-heading {
    font-size: 1.55rem;
    text-align: center;
    margin-bottom: 18px;
  }
  .tuvan-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .tuvan-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tuvan-visual-col {
    max-width: 260px;
    margin: 0 auto;
  }
  .tuvan-policy-box p {
    font-size: 0.8rem;
  }

  /* FOOTER RESPONSIVE */
  .main-footer {
    padding: 45px 0 0 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 35px;
  }
  .footer-col-1 .footer-logo img {
    max-width: 150px;
  }

  /* FLOATING ICONS RESPONSIVE */
  .floating-chat-icon {
    bottom: 20px;
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 1.45rem;
  }
  .scroll-to-top-btn {
    bottom: 76px;
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .ueh-step-item {
    flex: 0 0 calc(50% - 15px);
  }
  .news-grid-container {
    gap: 28px;
  }
  .tuvan-grid {
    grid-template-columns: 55% 45%;
    gap: 25px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-col-1 {
    grid-column: span 2;
  }
}

/* ==========================================================================
   SMALL SMARTPHONES (Max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .section-title,
  .khampha-heading,
  .phuongthuc-heading,
  .timeline-main-title,
  .taisao-title,
  .hocgi-main-title,
  .chuongtrinh-title,
  .tuvan-heading {
    font-size: 1.35rem !important;
  }

  .video-heading-badge h2 {
    font-size: 1.2rem !important;
  }

  .qa-title {
    font-size: 1.85rem !important;
  }

  .elementor-tab-title {
    font-size: 0.9rem !important;
  }

  .hocgi-card {
    flex: 0 0 82%;
    min-width: 200px;
  }

  .ueh-step-item {
    flex: 0 0 92%;
    min-width: 240px;
  }

  .taisao-tab-btn {
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
    border-radius: 20px !important;
  }
  .taisao-tabs-sidebar,
  .taisao-tabs-sidebar.sidebar-left {
    margin: 14px 0 12px 0 !important;
    gap: 8px !important;
  }
  .taisao-detail-heading h3 {
    font-size: 1.18rem !important;
  }
}



