/* =========================================================
   mobile.css - Giao diện Responsive cho Trung Tâm Âm Nhạc Mary Mỹ
   Nạp sau style.css. Desktop (>=1200px) giữ nguyên thiết kế gốc.
   ========================================================= */

/* ---------- Tối ưu tốc độ: ảnh nền dùng bản WebP (nhẹ hơn 10-100 lần) ----------
   Lớp .webp được gắn vào thẻ <html> khi trình duyệt hỗ trợ WebP (xem templates/index.php) */
.webp .section-chothuedan { background-image: url(../images/bg_chothuedan.png.webp); }
.webp .wrap-newsletter { background-image: url(../images/bg_dangkynhantin.png.webp); }
.webp .section-albumhome { background-image: url(../images/bg_album.png.webp); }
.webp .section-quatrinh { background-image: url(../images/bg_quytrinh.png.webp); }
.webp .section-linhvuchoatdongHome { background-image: url(../images/bg_linhvuc.png.webp); }
.webp footer { background-image: url(../images/bg_footer.png.webp); }
/* Ảnh mask: style.css dùng sẵn bản WebP, trình duyệt cũ không hỗ trợ WebP dùng lại PNG */
.no-webp .about_right img { -webkit-mask-image: url(../images/markabout.png); }
.no-webp .feedback-item-img img { -webkit-mask-image: url(../images/mark.png); }

/* Tiêu đề giới thiệu: desktop vẫn hiển thị liền một dòng như cũ */
.about-text2 span.about-line {
    display: inline;
    font: inherit;
    margin: 0;
    color: inherit;
}

/* ---------- Thanh menu mobile: ẩn trên desktop ---------- */
.menu_mobi,
.menu_mobi_add,
.menu_baophu {
    display: none;
}

/* =========================================================
   <= 1199px : laptop nhỏ / tablet ngang
   ========================================================= */
@media (max-width: 1199px) {
    .wrap-content {
        width: calc(100% - 30px);
    }

    .menu ul li a {
        padding: 12px 10px 10px;
        font-size: 15px;
    }

    .section-chothuedan {
        width: 100%;
    }
}

/* =========================================================
   <= 991px : tablet / điện thoại -> dùng menu mobile
   ========================================================= */
@media (max-width: 991px) {
    html,
    body {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
    }

    /* Ẩn header desktop, hiện thanh menu mobile */
    .header {
        display: none;
    }

    .menu_mobi {
        display: block;
        position: sticky;
        top: 0;
        z-index: 999;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .menu-bar-res {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        height: 64px;
        padding: 0 12px;
    }

    .icon_menu_mobi {
        margin: 0;
        flex: 0 0 44px;
    }

    #hamburger {
        display: block;
        cursor: pointer;
        position: relative;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--bgnhat, #D6F4F5);
    }

    #hamburger:before,
    #hamburger:after,
    #hamburger span {
        content: '';
        position: absolute;
        left: 12px;
        right: 12px;
        height: 2px;
        border-radius: 2px;
        background: var(--bgmain, #5DC7CA);
    }

    #hamburger:before { top: 15px; }
    #hamburger span { top: 21px; }
    #hamburger:after { top: 27px; }

    .logo-mobile {
        flex: 1 1 auto;
        text-align: center;
    }

    .logo-mobile img {
        width: auto;
        height: 48px;
        object-fit: contain;
    }

    .hotline-mobi {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bgmain, #5DC7CA);
        color: #fff;
        font-size: 18px;
        animation: mobiRing 1.6s infinite;
    }

    .hotline-mobi:hover {
        color: #fff;
    }

    @keyframes mobiRing {
        0%, 100% { box-shadow: 0 0 0 0 rgba(93, 199, 202, 0.6); }
        70% { box-shadow: 0 0 0 10px rgba(93, 199, 202, 0); }
    }

    /* Menu trượt từ trái */
    .menu_mobi_add {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 82%;
        max-width: 360px;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        background: #fff;
        z-index: 100000;
        transition: left 0.35s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .menu_mobi_add.menu_mobi_active {
        left: 0;
    }

    .menu_baophu {
        position: fixed;
        inset: 0;
        margin: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 99999;
    }

    .title-responsive-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: var(--bgmain, #5DC7CA);
        color: #fff;
    }

    .title-responsive-menu p {
        margin: 0;
        font-family: var(--fontSM);
        font-size: 17px;
        text-transform: uppercase;
    }

    .title-responsive-menu p i {
        margin-right: 6px;
    }

    .close_menu {
        width: 32px;
        height: 32px;
        line-height: 32px;
        text-align: center;
        border-radius: 50%;
        background: #fff;
        color: var(--bgmain, #5DC7CA);
        font-weight: bold;
        cursor: pointer;
    }

    .menu_mobi_add ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .menu_mobi_add ul li a {
        display: block;
        padding: 14px 18px;
        border-bottom: 1px solid #eef3f3;
        color: #222;
        font-family: var(--fontM);
        font-size: 15px;
        text-transform: uppercase;
        text-decoration: none;
    }

    .menu_mobi_add ul li a.active {
        color: var(--bgmain, #5DC7CA);
        background: var(--bgnhat, #D6F4F5);
    }

    .hotline-email-responsive {
        padding: 18px;
        font-size: 14px;
        line-height: 1.5;
        color: #444;
    }

    .hotline-email-responsive h2 {
        font-family: var(--fontSM);
        font-size: 17px;
        color: var(--bgmain, #5DC7CA);
        margin: 0 0 10px;
    }

    .hotline-email-responsive a,
    .hotline-email-responsive span {
        display: flex;
        gap: 10px;
        margin: 8px 0;
        color: #444;
    }

    .hotline-email-responsive a {
        font-family: var(--fontSM);
        font-size: 18px;
        color: #e53935;
    }

    .hotline-email-responsive i {
        width: 16px;
        margin-top: 3px;
        color: var(--bgmain, #5DC7CA);
    }

    /* ---------- Nội dung bài viết (soạn từ trình soạn thảo) ---------- */
    .content-text,
    .content-detail,
    .wrap-content {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .content-text img,
    .content-detail img {
        max-width: 100% !important;
        height: auto !important;
    }

    .content-text iframe,
    .content-text video,
    .content-text embed,
    .wrap-content iframe {
        max-width: 100% !important;
    }

    .content-text table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    .content-text span,
    .content-text p {
        white-space: normal !important;
    }

    /* ---------- Slider ---------- */
    .slider .scroll-down {
        display: none;
    }

    /* ---------- Tiêu đề khối ---------- */
    .title-home-static {
        padding: 30px 0 0;
        margin: 0 0 20px;
    }

    .title-home-static-name,
    .wrap-newsletter .title-home h3 {
        font-size: 40px;
        line-height: 1.2;
    }

    .padding,
    .section-about,
    .section-tintucsHome,
    .section-tiktok-home,
    .section-chothuedan {
        padding: 35px 0;
    }

    /* ---------- Giới thiệu ---------- */
    .row_about {
        gap: 25px;
    }

    .about_left,
    .about_right {
        width: 100%;
        padding: 0;
    }

    .about_right {
        text-align: center;
    }

    .about-text2 {
        font-size: 40px;
        line-height: 1.2;
    }

    /* ---------- Đăng ký nhận tin ---------- */
    .cover-newsletter {
        gap: 25px;
    }

    .newsletter-left,
    .newsletter-right {
        width: 100%;
    }

    /* ---------- Khóa học ---------- */
    .khoachoc-item {
        margin: 30px 0;
        gap: 25px;
        justify-content: space-between;
        align-items: center;
    }

    .khoachoc-item-img {
        max-width: 42%;
        flex: 0 0 42%;
    }

    .khoachoc-item-content {
        width: auto;
        flex: 1 1 0;
    }

    /* ---------- Cho mượn đàn ---------- */
    .section-chothuedan:before,
    .section-chothuedan:after {
        display: none;
    }

    .chothuedan-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .chothuedan-content {
        width: 100%;
        order: -1;
    }

    .chothuedan-image {
        width: calc(50% - 10px);
    }

    /* ---------- Tin tức ---------- */
    .row-tintucHome {
        gap: 20px;
    }

    .col-tintucHome-left,
    .col-tintucHome-right {
        width: 100%;
        padding: 0;
    }

    /* ---------- TikTok ---------- */
    .tiktok-home-top {
        flex-wrap: wrap;
        gap: 15px;
    }

    .tiktok-home-heading,
    .tiktok-home-intro {
        width: 100%;
    }

    .tiktok-home-label {
        font-size: 34px;
    }

    .tiktok-home-bottom {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* ---------- Footer ---------- */
    footer {
        margin: 60px 0 0;
    }

    .row_footer {
        flex-wrap: wrap;
        gap: 25px;
    }

    .footer1,
    .footer2,
    .footer3,
    .footer4 {
        width: 100%;
    }

    .space-footer,
    .line-footer {
        display: none;
    }

    .menu-footer ul {
        justify-content: center;
        gap: 0 18px;
    }
}

/* =========================================================
   <= 767px : điện thoại
   ========================================================= */
@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .wrap-content {
        width: calc(100% - 32px);
    }

    .title-home-static-name,
    .wrap-newsletter .title-home h3,
    .about-text2 {
        font-size: 32px;
    }

    .about-text1 {
        font-size: 22px;
    }

    .title-home-static-desc {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .title-newsletter-right {
        font-size: 26px;
    }

    .tiktok-home-label {
        font-size: 30px;
    }

    .about_des,
    .khoachoc-item-desc {
        text-align: justify;
    }

    .flex-newsletter {
        grid-template-columns: 1fr;
    }

    .newsletter-button input[name='submit-newsletter'] {
        width: 100%;
    }

    .khoachoc-item,
    .khoachoc-item:nth-child(2n) {
        flex-direction: column;
        margin: 20px 0 35px;
        gap: 15px;
    }

    .khoachoc-item-img {
        max-width: 100%;
        flex: none;
        width: 100%;
    }

    .khoachoc-item-img img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 12px;
    }

    .khoachoc-item-content {
        width: 100%;
        flex: none;
    }

    .khoachoc-item-desc {
        margin: 12px 0 18px;
    }

    .chothuedan-image {
        width: calc(50% - 8px);
        padding: 4px;
    }

    .chothuedan-button {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tintuc-item a .tintuc-item-content {
        padding: 12px;
    }

    .tintuc-item-content .tintuc-item-name,
    .tintuc-item-name {
        font-size: 20px;
    }

    .logo-footer {
        margin: -90px 0 15px;
    }

    .logo-footer img {
        max-width: 100px;
    }

    .menu-footer {
        margin: 0 0 15px;
    }

    .menu-footer ul li a {
        padding: 8px 0;
    }

    .newsletter-title h3 {
        font-size: 32px;
        line-height: 1.2;
    }

    /* Nút nổi (Zalo / Gọi / Messenger / Lên đầu trang): thu nhỏ, gom sát mép phải */
    .btn-frame {
        transform: scale(0.8);
        transform-origin: 100% 100%;
        right: 10px !important;
    }

    .btn-zalo {
        bottom: 205px !important;
    }

    .btn-phone {
        bottom: 152px !important;
    }

    /* Messenger: cùng cỡ, thẳng hàng và cùng hiệu ứng tỏa sóng với nút Zalo / Gọi */
    .js-facebook-messenger-box {
        width: 50px !important;
        height: 50px !important;
        right: 10px !important;
        bottom: 99px !important;
        overflow: visible !important;
        box-shadow: none !important;
        background: var(--bgmainhv) !important;
        animation: none !important;
        transform: scale(0.8) !important;
        transform-origin: 100% 100%;
    }

    .js-facebook-messenger-box svg#fb-msng-icon {
        width: 26px;
        height: 26px;
        top: 12px;
        left: 12px;
    }

    .js-facebook-messenger-box svg#close-icon {
        display: none;
    }

    .js-facebook-messenger-box::before,
    .js-facebook-messenger-box::after {
        content: '';
        position: absolute;
        border-radius: 100%;
        z-index: -1;
        pointer-events: none;
        animation-duration: 1s;
        animation-iteration-count: infinite;
        animation-fill-mode: both;
    }

    /* Vòng viền lan ra (giống .kenit-alo-circle) */
    .js-facebook-messenger-box::before {
        width: 60px;
        height: 60px;
        top: -5px;
        left: -5px;
        border: 2px solid var(--bgmain);
        opacity: 0.5;
        animation-name: zoomIn;
    }

    /* Quầng sáng nhịp đập (giống .kenit-alo-circle-fill) */
    .js-facebook-messenger-box::after {
        width: 70px;
        height: 70px;
        top: -10px;
        left: -10px;
        background-color: var(--bgmainhv);
        opacity: 0.4;
        animation-name: pulse;
    }

    .progress-wrap {
        right: 12px !important;
        bottom: 38px !important;
        transform: scale(0.8);
        transform-origin: 100% 100%;
    }
}

/* =========================================================
   Chỉnh sửa theo yêu cầu (chỉ điện thoại <= 767px)
   ========================================================= */
@media (max-width: 767px) {
    /* 1. Giới thiệu: bỏ dòng "Kính chào...", tiêu đề 2 dòng */
    .about-text2 .about-welcome {
        display: none;
    }

    .about-text2 {
        font-size: clamp(28px, 9.4vw, 40px);
        line-height: 1.2;
        margin: 5px 0 20px;
    }

    .about-text2 span.about-line {
        display: block;
    }

    /* 2 + 3. Cho thuê đàn: bỏ nút "Xem thêm", 2 ảnh nằm cạnh nhau */
    .chothuedan-content .khoachoc-item-button {
        display: none;
    }

    .chothuedan-desc {
        margin-bottom: 4px;
    }

    .chothuedan-inner {
        gap: 12px;
    }

    .chothuedan-image {
        width: calc(50% - 6px);
        max-width: none;
        padding: 4px;
    }

    /* 4 + 5. Tin tức & Album: ảnh nhỏ 2 ảnh / hàng, tự chạy qua lại */
    .tintuc-click .tintuc-item a {
        margin: 6px 0;
    }

    .tintuc-click .tintuc-item a img,
    .album-slick .album-item a img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .tintuc-click .tintuc-item a .tintuc-item-content {
        padding: 10px;
    }

    .tintuc-click .tintuc-item-content .tintuc-item-name {
        font-size: 16px;
        line-height: 1.3;
        color: #fff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
        margin-bottom: 6px;
    }

    .tintuc-click .tintuc-date-created {
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 6px;
    }

    .album-slick .album-item {
        margin: 8px 0 0;
    }

    /* 6. Bỏ nút chuyển trên phần Đánh giá, kéo 2 phần sát lại */
    .tiktok-home-arrows {
        display: none;
    }

    .section-tiktok-home {
        padding-bottom: 10px;
    }

    .section-feedback {
        padding-top: 0;
    }

    .section-feedback .title-home-static {
        padding-top: 28px;
    }

    /* 7. Đánh giá khách hàng: 2 đánh giá / hàng */
    .feedback-slick.row {
        margin-left: 0;
        margin-right: 0;
    }

    .feedback-slick .slick-track {
        display: flex;
    }

    .feedback-slick .slick-slide {
        height: auto;
        padding-left: 6px;
        padding-right: 6px;
    }

    .feedback-slick .slick-slide > div {
        height: 100%;
    }

    .feedback-item {
        width: auto;
        height: 100%;
        min-height: 0;
        padding: 14px 12px;
    }

    .feedback-item-name {
        font-size: 18px;
        margin: 0 0 8px;
    }

    .feedback-item-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .feedback-item-img {
        margin: 14px auto 0;
    }

    .feedback-item-img img {
        width: 100%;
        height: auto;
    }
}

/* =========================================================
   Chỉnh sửa 13/11/2026 theo file "SỬA WEBSITE"
   ========================================================= */

/* Giới thiệu (trang chủ): bỏ dòng "Kính chào quý khách...", tiêu đề nằm trên 1 hàng */
.about-text2 .about-welcome {
    display: none;
}

.about-text2 {
    white-space: nowrap;
    font-size: min(46px, calc(50vw / 12.8));
    line-height: 1.25;
}

.about-text2 span.about-line {
    display: inline;
}

/* Tiêu đề mục TikTok: căn giữa, cùng kiểu với các mục khác (biểu tượng + tên + dòng phụ) */
.tiktok-home-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    margin-bottom: 25px;
}

.tiktok-home-heading {
    width: 100%;
    text-align: center;
    padding: 55px 0 0;
    background: url(../images/line.png) top center no-repeat;
}

.tiktok-home-label {
    margin: 5px 0;
    font-size: 54px;
    color: var(--colormainhv);
    text-transform: capitalize;
}

.tiktok-home-name {
    margin: 5px 0;
    font: 400 16px/1.4 var(--font);
    color: var(--colormain);
}

.tiktok-home-intro {
    width: 100%;
    text-align: center;
    padding-top: 0;
}

@media (max-width: 991px) {
    /* Thanh menu mobile luôn cố định ở đầu màn hình khi cuộn
       (sticky không chạy vì html/body đang overflow-x: hidden) */
    .menu_mobi {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    body {
        padding-top: 64px;
    }

    html {
        scroll-padding-top: 72px;
    }

    .about-text2 {
        font-size: min(40px, calc((100vw - 40px) / 12.8));
    }

    .tiktok-home-heading {
        padding-top: 30px;
    }

    .tiktok-home-label {
        font-size: 40px;
        line-height: 1.2;
    }
}

@media (max-width: 767px) {
    .about-text2 {
        margin: 5px 0 20px;
    }

    .tiktok-home-label {
        font-size: 32px;
    }

    .tiktok-home-name {
        font-size: 13px;
        letter-spacing: 2px;
    }
}

@media (max-width: 991px) {
    /* Tiêu đề các mục: biểu tượng (48px) phía trên không đè lên chữ */
    .title-home-static,
    .section-feedback .title-home-static,
    .tiktok-home-heading {
        padding-top: 54px;
    }
}
