/* ==========================================================================
   HEO VÀNG - Premium Responsive Layouts & Mobile App Experience
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet Breakpoints (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-banner-slider {
    min-height: 70vh;
  }

  .banner-brand-title {
    font-size: 56px;
  }

  .banner-sub-headline {
    font-size: 24px;
  }

  .value-ribbon-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .ribbon-right-content {
    flex-direction: column;
  }

  .comp-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefits-4col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .services-2col-grid {
    grid-template-columns: 1fr;
  }

  .testi-open-stage {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .testi-slider-viewport {
    min-height: 280px;
  }

  .testi-photo-clean-wrap {
    display: none;
  }

  .news-grid-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .cta-fullwidth-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .cta-left-flex {
    flex-direction: column;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --------------------------------------------------------------------------
   Mobile Phone Breakpoints (<= 768px) - High-End App Layout
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Top info bar hidden to maximize screen space */
  .top-info-bar {
    display: none;
  }

  /* Header Bar Clean App Layout */
  .site-header {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.96);
  }

  .site-main-logo {
    height: 38px;
    max-width: 165px;
  }

  /* Ẩn nút đối tác trên header bar để KHÔNG chiếm chỗ hoặc đè nút 3 gạch */
  .header-actions .desktop-btn-partner {
    display: none !important;
  }

  /* Nút 3 gạch (Hamburger) hiện đại, vuông bo góc vàng ấm */
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #FEFCE8;
    border: 1.5px solid var(--c-yellow-deep);
    color: #1E1B00;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(245, 190, 35, 0.25);
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .mobile-toggle:hover {
    background: var(--c-yellow);
    transform: scale(1.05);
  }

  /* Menu 3 gạch mở dạng Drawer toàn màn hình mượt mà */
  .nav-menu {
    position: fixed;
    top: 58px;
    left: 0;
    width: 100%;
    height: calc(100vh - 58px);
    overflow-y: auto;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 24px 40px;
    gap: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    padding: 15px 0;
    border-bottom: 1px solid #F1F5F9;
    display: block;
    width: 100%;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--c-amber-dark);
    padding-left: 6px;
  }

  .nav-link::after {
    display: none;
  }

  /* Nút "Trở thành đối tác" chuyển vào trong menu 3 gạch */
  .mobile-nav-cta {
    display: block !important;
    width: 100%;
    margin-top: 24px;
    padding-top: 12px;
  }

  .mobile-btn-partner {
    display: flex !important;
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 800;
    background: var(--grad-primary-yellow);
    color: #1E1B00;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(245, 190, 35, 0.5);
    border: 1px solid rgba(251, 239, 118, 0.9);
  }

  /* ==========================================================================
     Hero Banner Layout on Mobile (Ảnh bao trọn, nâng chữ lên & phóng to vừa vặn)
     ========================================================================== */
  .hero-banner-slider {
    position: relative !important;
    width: 100% !important;
    min-height: 500px !important;
    height: 75vh !important;
    max-height: 600px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 0 0 68px 0 !important;
    background: #FFFDF9;
    overflow: hidden;
  }

  /* 1. ẢNH SLIDE BAO TRỌN TOÀN BỘ BANNER */
  .banner-slides-track {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1 !important;
  }

  .banner-slide-item {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center 25% !important;
    border-radius: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: none !important;
    transition: opacity 0.8s ease;
  }

  .banner-slide-item.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* 2. LỚP MẶT NẠ GRADIENT TỪ DƯỚI LÊN ĐỂ CHỮ VÀ NÚT Ở DƯỚI RÕ NÉT */
  .banner-light-mask {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(0deg, 
      rgba(255, 253, 249, 0.98) 0%, 
      rgba(255, 253, 249, 0.92) 32%, 
      rgba(255, 253, 249, 0.40) 56%, 
      rgba(255, 253, 249, 0) 78%) !important;
    z-index: 2 !important;
    pointer-events: none;
  }

  /* 3. NỘI DUNG VĂN BẢN & NÚT: ĐƯỢC NÂNG LÊN TRÊN 1 CHÚT, CĂN GIỮA */
  .banner-content-wrap {
    position: relative !important;
    z-index: 5 !important;
    padding: 0 20px !important;
    width: 100% !important;
    margin-top: auto !important;
  }

  .banner-text-block {
    max-width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
    margin: 0 auto !important;
  }

  /* Chữ phóng to ra một chút theo yêu cầu */
  .banner-brand-title {
    font-size: 28px !important;
    line-height: 1.15 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.02em !important;
    color: #0F172A !important;
    text-align: center !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  }

  .banner-sub-headline {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin-bottom: 16px !important;
    font-weight: 800 !important;
    text-align: center !important;
  }

  /* 4. ẨN BỎ ĐOẠN TEXT MÔ TẢ TRÊN ĐIỆN THOẠI */
  .banner-desc-text {
    display: none !important;
  }

  /* 5. 2 NÚT THU NHỎ, CĂN VÀO CHÍNH GIỮA MÀN HÌNH */
  .banner-actions-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .btn-banner-action,
  .btn-banner-watch {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
  }

  .btn-banner-action i,
  .btn-banner-watch i {
    font-size: 11px !important;
    margin-right: 4px !important;
  }

  /* 6. VẠCH DOTS CHUYỂN SLIDE Ở ĐÁY BANNER */
  .banner-slider-controls {
    position: absolute !important;
    bottom: 16px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 6 !important;
    margin: 0 !important;
  }

  .slider-progress-bars {
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .slider-progress-bar {
    width: 28px !important;
    height: 4px !important;
  }

  /* Dark Ribbon on Mobile */
  .value-ribbon-dark {
    padding: 36px 0;
    text-align: center;
  }

  .ribbon-heading {
    font-size: 24px;
    line-height: 1.25;
  }

  .ribbon-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .ribbon-right-content {
    align-items: center;
    gap: 16px;
  }

  .ribbon-circle-arrow {
    margin-top: 8px;
  }

  /* Section 2: Comparison on Mobile */
  .comparison-open-section {
    padding: 54px 0;
  }

  .comp-heading {
    font-size: 26px;
    line-height: 1.25;
  }

  .comp-description {
    font-size: 14px;
  }

  .comp-stage-flex {
    flex-direction: column;
    gap: 24px;
  }

  .problem-unboxed {
    width: 100%;
  }

  .phone-solution-frame {
    width: 200px;
    margin: 10px auto;
  }

  .solution-pills-col {
    width: 100%;
    gap: 10px;
  }

  .feature-tag-item {
    font-size: 13px;
    padding: 10px 14px;
  }

  /* Section 3: Benefits 4 Col on Mobile - Đổi thành các thẻ viền vàng gọn gàng */
  .benefits-open-section {
    padding: 54px 0;
  }

  .benefits-4col-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
  }

  .benefit-col {
    background: #FEFCE8;
    border-radius: 16px;
    padding: 20px;
    border-left: 4px solid var(--c-yellow-deep);
    border-top: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  }

  .benefit-col:hover {
    transform: none;
  }

  .benefit-name {
    font-size: 16px;
  }

  .benefit-desc {
    font-size: 13px;
  }

  /* Section 4: Services on Mobile */
  .services-banners-section {
    padding: 54px 0;
  }

  .service-banner-box {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .service-box-title {
    font-size: 24px;
  }

  .service-feature-checklist {
    font-size: 14px;
    gap: 10px;
  }

  /* Section 5: Testimonials on Mobile */
  .testimonial-unboxed-section {
    padding: 54px 0;
  }

  .testimonial-header-clean {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .testi-autoplay-indicator {
    font-size: 12px;
    padding: 5px 12px;
  }

  .testi-slider-viewport {
    min-height: 240px;
  }

  .testi-big-quote {
    font-size: 46px;
    margin-bottom: 0;
  }

  .testi-quote-text {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .testi-profile-clean {
    gap: 14px;
  }

  .testi-clean-avatar {
    width: 48px;
    height: 48px;
  }

  .testi-clean-name {
    font-size: 16px;
  }

  .testi-clean-title {
    font-size: 12px;
  }

  .testi-dots-track {
    margin-top: 24px;
  }

  /* Section 6: News on Mobile */
  .news-section {
    padding: 54px 0;
  }

  .news-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
  }

  .news-grid-3col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .news-thumb-wrap {
    height: 180px;
    border-radius: 16px;
    margin-bottom: 12px;
  }

  .news-title-text {
    font-size: 16px;
    line-height: 1.4;
  }

  .news-excerpt-text {
    font-size: 13px;
    line-height: 1.55;
  }

  /* Section 7: Seamless Full-Width CTA on Mobile */
  .cta-fullwidth-seamless {
    padding: 40px 0;
  }

  .cta-fullwidth-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cta-left-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .cta-logo-frame {
    height: 64px;
    padding: 8px 16px;
    margin: 0 auto;
  }

  .cta-bold-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .cta-message-text {
    font-size: 14px;
    line-height: 1.55;
  }

  .btn-cta-full-action {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
    margin: 0 auto;
  }

  /* Footer on Mobile */
  .site-footer-real {
    padding: 40px 0 24px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }

  .footer-copyright-row {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  /* News Listing Mobile */
  .news-hero-banner {
    padding: 44px 16px 36px;
  }

  .news-hero-title {
    font-size: 28px;
    line-height: 1.25;
  }

  .news-hero-subtitle {
    font-size: 14px;
  }

  .news-tabs-section {
    padding: 20px 0 12px;
  }

  .news-cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 16px 8px;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .news-cat-tabs::-webkit-scrollbar {
    display: none;
  }

  .news-tab-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 4px;
  }

  .news-card-modern .news-img-wrap {
    height: 200px;
  }

  .news-card-body {
    padding: 20px;
  }

  .news-card-title {
    font-size: 17px;
  }

  /* Article Detail Mobile */
  .article-detail-split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
  }

  .article-main-col {
    padding: 24px 18px;
    border-radius: 6px;
  }

  .article-main-title {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 14px;
  }

  .article-meta-line {
    font-size: 13px;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 20px;
  }

  .article-cover-wrap {
    border-radius: 6px;
    margin-bottom: 24px;
  }

  .article-cover-wrap img {
    max-height: 260px;
  }

  .article-body-text {
    font-size: 15.5px;
    line-height: 1.75;
  }

  .article-body-text .article-lead {
    font-size: 16.5px;
    margin-bottom: 18px;
  }

  .article-body-text h2 {
    font-size: 20px;
    margin: 28px 0 12px;
  }

  .article-body-text h3 {
    font-size: 18px;
    margin: 22px 0 10px;
  }

  .article-body-text blockquote {
    padding: 16px 18px;
    font-size: 15px;
    margin: 20px 0;
  }

  .article-footer-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }

  .btn-back-news {
    justify-content: center;
    width: 100%;
  }

  .article-share-links {
    justify-content: center;
  }

  .sidebar-widget-card {
    padding: 22px 18px;
    border-radius: 6px;
  }

  /* Customers & Case Studies Mobile */
  .case-overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-quote-box {
    padding: 18px;
    margin: 20px 0;
  }

  /* Contact Page Mobile */
  .contact-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-inputs-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-form-card {
    padding: 26px 20px;
  }

  .contact-page-section {
    padding: 36px 0 60px;
  }
}

