/* ==========================================================================
   ĐÔNG Y GIA TRUYỀN THẾ LONG - RESPONSIVE STYLESHEET
   Tối ưu hiển thị hoàn hảo trên Tablet, iPad và Điện thoại thông minh
   ========================================================================== */

/* --- 1. TABLET & IPAD (Max width: 992px) --- */
@media (max-width: 992px) {
    .section {
        padding: 38px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Topbar */
    .topbar-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .topbar-left, .topbar-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Navigation Mobile Drawer */
    .mobile-toggle {
        display: block;
    }

    .btn-search-header {
        padding: 8px 14px;
        font-size: 0.88rem;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        padding: 80px 24px 30px 24px;
        transition: right 0.35s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .navbar.active {
        right: 0;
    }

    .navbar .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .navbar .nav-item {
        width: 100%;
    }

    .navbar .nav-link {
        width: 100%;
        padding: 12px 16px;
        border-radius: var(--radius-md);
        font-size: 1.05rem;
    }

    /* Hero Banner Slider Tablet */
    .hero {
        padding: 30px 0 0 0;
    }

    .hero-slide {
        padding: 20px 0 40px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title .highlight-gold-frame {
        padding: 6px 28px;
        margin: 8px auto 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 520px;
        margin: 0 auto;
        text-align: left;
    }

    .hero-bottom-container {
        flex-direction: column;
        gap: 18px;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 18px;
    }

    .hero-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .hero-prev-arrow {
        left: 8px;
    }

    .hero-next-arrow {
        right: 8px;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-text {
        text-align: justify;
        text-justify: inter-word;
    }

    /* Contact Section */
    .contact-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Gallery Split Layout Tablet */
    .gallery-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .media-prev-arrow {
        left: 8px;
    }

    .media-next-arrow {
        right: 8px;
    }

    .img-box {
        height: 240px;
    }

    .video-box {
        height: 300px;
    }

    /* Testimonials Slider Tablet */
    .testimonial-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .testimonial-slider-wrapper {
        padding: 0 35px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* --- 2. MOBILE PHONE (Max width: 768px) --- */
@media (max-width: 768px) {
    .section {
        padding: 32px 0;
    }

    .topbar {
        display: none; /* Ẩn topbar trên mobile để màn hình gọn gàng */
    }

    .logo-title {
        font-size: 0.98rem;
        white-space: nowrap;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    /* Hero Banner Slider Mobile */
    .hero {
        padding: 20px 0 0 0;
    }

    .hero-slide {
        padding: 10px 0 35px 0;
    }

    .hero-title {
        font-size: 1.55rem;
        line-height: 1.25;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title-top {
        font-size: 1.55rem;
        white-space: normal;
        text-align: center;
    }

    .hero-title .highlight-gold-frame {
        padding: 6px 22px;
        margin: 8px auto 0 auto;
        max-width: 95%;
    }

    .hero-title .highlight-gold-frame::before {
        left: 8px;
        font-size: 0.8rem;
    }

    .hero-title .highlight-gold-frame::after {
        right: 8px;
        font-size: 0.8rem;
    }

    .hero-title .highlight-gold {
        font-size: 1.25rem;
        white-space: normal;
        text-align: center;
    }

    .hero-badge {
        font-size: 1.05rem;
        padding: 8px 18px;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-card-featured {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    }

    .hero-card-img {
        height: 190px;
    }

    .hero-card-body {
        padding: 18px;
    }

    .hero-card-body h4 {
        font-size: 1.15rem;
    }

    .hero-nav-arrow {
        display: none; /* Trên mobile người dùng lướt vuốt tay mượt mà */
    }

    .hero-bottom-bar {
        padding: 14px 0;
    }

    .hero-bottom-container {
        gap: 14px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    .stat-item {
        gap: 8px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .stat-number {
        font-size: 1.15rem;
    }

    .stat-label {
        font-size: 0.68rem;
    }

    .stat-divider {
        display: none;
    }

    /* About Section */
    .img-wrapper.main-img {
        width: 100%;
    }

    .img-wrapper.main-img img {
        height: 320px;
    }

    .img-wrapper.sub-img {
        display: none; /* Ẩn ảnh nhỏ để layout đơn giản, nhẹ nhàng hơn */
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .about-action {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Media Set Slider Mobile */
    .media-slider-wrapper {
        padding: 0;
    }

    .media-slider-viewport {
        padding: 0;
    }

    .slide-badge-topic {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .slide-top-images {
        gap: 4px;
        padding: 4px 4px 0 4px;
    }

    .slide-bottom-video {
        padding: 4px;
    }

    .img-box {
        height: 165px;
    }

    .video-box {
        height: 220px;
    }

    .media-nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .media-prev-arrow {
        left: 6px;
    }

    .media-next-arrow {
        right: 6px;
    }

    /* Grid Sections */
    .remedies-grid,
    .why-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonial Slider Mobile */
    .testimonial-slide {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 8px;
    }

    .testimonial-slider-wrapper {
        padding: 0 5px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .prev-arrow {
        left: -10px;
    }

    .next-arrow {
        right: -10px;
    }

    .testi-customer-img-box {
        height: 160px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Floating action buttons */
    .floating-actions {
        bottom: 20px;
        right: 15px;
        gap: 10px;
    }

    .float-btn {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }

    .float-tooltip {
        display: none;
    }
}

/* --- 3. SMALL MOBILE (Max width: 480px) --- */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 1.45rem;
    }

    .hero-title .highlight-gold-frame {
        padding: 5px 14px;
        border-width: 1.5px;
    }

    .hero-title .highlight-gold-frame::before,
    .hero-title .highlight-gold-frame::after {
        display: none;
    }

    .hero-title .highlight-gold {
        font-size: 1.15rem;
        white-space: normal;
    }

    .hero-badge {
        font-size: 0.95rem;
        padding: 7px 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .modal-box {
        padding: 24px 18px;
    }

    .gallery-action-btns {
        flex-direction: column;
        gap: 10px;
    }

    .gallery-action-btns .btn {
        width: 100%;
    }

    .remedy-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .logo-title {
        font-size: 0.86rem;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }
}
