/* ------HEADER------ */
@media (max-width: 1010px) {
    .nav-bar {
        width: calc(100% - 32px);
        gap: 10px;
    }

    .logo {
        padding-inline: 12px;
        font-size: 16px;
    }

    .nav-link {
        padding-inline: 7px;
        font-size: 11px;
    }

    .nav-contact-item {
        margin-left: 4px;
        padding-left: 8px;
    }

    .nav-contact-item .nav-link {
        padding-inline: 12px;
    }
}

@media (max-width: 768px) {
    .nav-bar {
        position: relative;
        width: 100%;
        min-height: 60px;
        height: 60px;
        gap: 12px;
    }

    .logo {
        height: 60px;
        flex-shrink: 0;
        padding: 0 15px;
        font-size: 14px;
    }

    /* Nút hamburger */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;

        width: 40px;
        height: 40px;
        padding: 8px;

        border: 1px solid #e6e8eb;
        border-radius: 4px;
        background: #fff;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #132238;
        border-radius: 2px;
    }

    /* Mặc định ẩn menu trên mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;

        width: 100%;
        padding: 12px;
        background: #fff;
        border: 1px solid #ebebeb;
        box-shadow: 0 8px 16px rgb(0 0 0 / 8%);
    }

    /* Hiện menu khi được mở */
    .nav-links.is-open {
        display: block;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
        white-space: normal;
    }

    .nav-contact-item {
        margin: 4px 0 0;
        padding: 8px 0 0;
        border-left: none;
        border-top: 1px solid #e6e8eb;
    }

    .nav-contact-item .nav-link {
        padding: 10px 12px;
        text-align: center;
    }
}

/* ------HERO------ */


@media (max-width: 900px) {
    .section-keyvisual .wrapper {
        gap: 24px;
    }

    .hero-title .name {
        font-size: 15px;
    }

    .hero-title .title-primary {
        font-size: clamp(30px, 4vw, 38px);
    }

    .hero-image {
        flex-basis: 40%;
        width: 40%;
    }

    .hero-introduction .more-about {
        gap: 10px;
    }
}



@media (max-width: 640px) {
    .section-keyvisual .wrapper {
        width: calc(100% - 32px);
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding-block: 36px 0;
    }

    .hero-introduction {
        width: 100%;
        min-width: 0;
        margin-top: 0;
    }

    .hero-title .name {
        font-size: 14px;
    }

    .hero-title .title-primary {
        font-size: clamp(30px, 8vw, 38px);
        line-height: 1.2;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero-title .desc-primary {
        max-width: 100%;
        font-size: 13px;
    }

    .hero-introduction .more-about {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 24px;
    }

    .hero-introduction .more-about a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-image {
        display: block;
        width: min(100%, 360px);
        max-width: 100%;
        height: auto;
        flex: none;
        align-self: center;
        object-fit: contain;
    }
}

/* ---------Float Banner--------- */

/* Tablet */
@media (max-width: 900px) {
    .float-banner {
        width: calc(100% - 32px);
        margin-top: -70px;
    }

    .float-banner .wrapper {
        gap: 24px;
        padding: 28px;
    }

    .float-banner .introduction {
        flex: 1;
        max-width: none;
        min-width: 0;
        gap: 20px;
    }

    .float-banner .introduction > img {
        width: 120px;
        height: 160px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .introduction-and-contact {
        min-width: 0;
    }

    .introduction .contact {
        flex-wrap: wrap;
    }

    .featured-by {
        flex-shrink: 0;
        padding: 12px;
    }

    .featured-by-logos {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .float-banner {
        width: calc(100% - 32px);
        margin-top: -24px;
    }

    .float-banner .wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 16px;
    }

    .float-banner .introduction {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 16px;
    }

    .float-banner .introduction > img {
        display: block;
        width: 130px;
        height: 150px;
        object-fit: cover;
        align-self: flex-start;
    }

    .introduction .title-secondary {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .introduction .desc-secondary {
        font-size: 13px;
        line-height: 1.7;
        overflow-wrap: break-word;
    }

    .introduction .contact {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 18px;
    }

    .introduction .contact a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        text-align: center;
    }

    .featured-by {
        width: 100%;
        padding: 14px;
        box-sizing: border-box;
    }

    .featured-by-logos {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
        margin: 12px 0 0;
    }

    .featured-by-logos img {
        display: block;
        max-width: 100%;
        max-height: 32px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}

/* ------Working History ------ */
/* Tablet */
@media (max-width: 900px) {
    .working-history .wrapper {
        padding-block: 40px;
    }

    .working-history-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .working-history-card {
        padding: 20px;
        min-width: 0;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .working-history .wrapper {
        padding-block: 32px;
    }

    .working-history-title {
        margin-bottom: 24px;
    }

    .working-history-title .title-tertiary {
        font-size: 24px;
        line-height: 1.3;
    }

    .working-history-title .desc-tertiary {
        display: block;
        font-size: 13px;
        line-height: 1.7;
    }

    .working-history-title .desc-tertiary br {
        display: none;
    }

    .working-history-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .working-history-card {
        grid-template-rows: auto 1fr;
        gap: 16px;
        padding: 18px;
    }

    .working-history-card-image {
        margin: 0;
    }

    .working-history-card-image img {
        width: 100%;
        max-width: 314px;
        height: auto;
        aspect-ratio: 27 / 17;
        object-fit: contain;
    }
    .working-history-card-date {
        font-size: 10px;
        line-height: 1.5;
    }

    .working-history-card-content .title-quaternary {
        font-size: 17px;
        line-height: 1.4;
        overflow-wrap: break-word;
        margin-block: 8px;
    }

    .working-history-card-content .desc-quaternary {
        font-size: 13px;
        line-height: 1.7;
    }

    .btn-slider {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 24px;
    }
}

/* -------------About me ------------- */


/* Tablet */
@media (max-width: 900px) {
    .about .wrapper {
        padding-block: 48px;
    }

    .about-content {
        gap: 32px;
    }

    .about-introduction {
        width: 55%;
        min-width: 0;
    }

    .about-introduction .about-title {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .about-subtitle {
        font-size: clamp(20px, 2.8vw, 25px);
        line-height: 1.4;
    }

    .about-subtitle br {
        display: none;
    }

    .about-image {
        flex: 1;
        min-width: 0;
    }

    .about-image img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .about .wrapper {
        padding-block: 36px;
    }

    .about-content {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }

    .about-introduction {
        width: 100%;
    }

    .about-introduction .about-title {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .about-subtitle {
        font-size: clamp(20px, 5.5vw, 25px);
        line-height: 1.4;
        margin-bottom: 24px;
    }

    .about-subtitle br {
        display: none;
    }

    .actor {
        font-size: 14px;
    }

    .actor .job-title {
        font-size: 11px;
    }

    .about-image {
        width: 100%;
    }

    .about-image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* -----------Qualification & Awards ----------- */
/* Tablet */
@media (max-width: 1000px) {
    .qualification .wrapper {
        padding-block: 48px;
    }

    .qualification-container {
        width: 100%;
        min-width: 0;
    }

    .qualification-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .qualification-list {
        min-width: 0;
    }

    .qualification-item {
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 16px;
    }

    .awards-list {
        padding-top: 32px;
        column-gap: 20px;
        row-gap: 40px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .qualification .wrapper {
        padding-block: 32px;
    }

    .qualification-header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 28px;
    }

    .qualification-header .title-tertiary {
        font-size: 24px;
        line-height: 1.3;
    }

    .qualification-header .desc-tertiary {
        font-size: 13px;
        line-height: 1.7;
    }

    .qualification-header .desc-tertiary br {
        display: none;
    }

    .qualification-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .qualification-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .qualification-meta {
        gap: 4px;
    }

    .qualification-meta a {
        font-size: 12px;
    }

    .qualification-meta span {
        font-size: 11px;
    }

    .qualification-info h3 {
        font-size: 16px;
    }

    .qualification-info p {
        font-size: 12px;
        line-height: 1.7;
    }

    .awards-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding-top: 28px;
    }

    .award-card {
        grid-column: auto;
        grid-row: auto;
        min-height: 160px;
        padding: 82px 16px 18px;
        margin-top: 0;
    }

    .award-card img {
        top: -22px;
        left: 16px;
        width: 52px;
        height: 85px;
    }

    .award-number {
        top: 12px;
        right: 14px;
        font-size: 34px;
    }

    .award-info h3 {
        font-size: 16px;
    }

    .award-info p {
        font-size: 12px;
        line-height: 1.7;
    }
}

/* ----------Sensitive personal---------- */

/* Tablet */
@media (max-width: 900px) {
    .book-section .wrapper {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        width: calc(100% - 32px);
        padding-block: 40px;
    }

    .book-visual {
        min-height: 400px;
    }

    .book-image-back {
        width: 52%;
        left: -4%;
    }

    .book-image-front {
        width: 70%;
        left: 24%;
    }

    .book-content {
        padding-left: 28px;
    }

    .book-title {
        font-size: 22px;
    }

    .book-feature h3 {
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .book-section::before {
        width: 100%;
        height: 260px;
        inset: 0 0 auto;
    }

    .book-section .wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
        padding: 32px 16px;
        gap: 28px;
    }

    .book-visual {
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 1 / 0.85;
        max-width: 420px;
        align-self: center;
    }

    .book-image-back {
        width: 48%;
        left: 2%;
        top: 5%;
    }

    .book-image-front {
        width: 60%;
        left: 35%;
        top: 5%;
    }

    .book-content {
        width: 100%;
        padding-left: 0;
        padding-top: 24px;
        align-items: flex-start;
    }

    .book-content::before {
        top: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        height: 1px;
    }

    .book-content-inner {
        max-width: none;
    }

    .book-title {
        font-size: 23px;
        line-height: 1.3;
    }

    .book-description {
        font-size: 13px;
        line-height: 1.7;
    }

    .book-description br {
        display: none;
    }

    .book-author {
        margin-top: 20px;
    }

    .book-divider {
        margin: 24px 0;
    }

    .book-feature {
        margin-bottom: 22px;
    }

    .book-feature h3 {
        align-items: flex-start;
        font-size: 15px;
        line-height: 1.5;
    }

    .book-feature p {
        font-size: 12px;
        line-height: 1.7;
    }

    .feature-icon {
        width: 18px;
        height: 18px;
        margin-top: 2px;
    }
}

/* -----------Success Stories----------- */
/* Tablet */
@media (max-width: 900px) {
    .success-stories .wrapper {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 24px;
        padding-block: 60px;
    }

    .success-stories-content-container {
        width: 90%;
    }

    .success-story-cards {
        padding: 30px 24px;
        border-width: 2px;
    }

    .success-story-content {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .success-stories .wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 40px 16px;
    }

    .success-stories-content-container {
        width: 100%;
    }

    .success-stories-content-container h2 {
        text-align: center;
        font-size: 26px;
        line-height: 1.3;
    }

    .success-stories-content-container span {
        display: block;
        font-size: 14px;
        line-height: 1.6;
        margin-top: 12px;
    }

    .btn-slider {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }

    .success-stories-contents {
        width: 100%;
    }

    .success-story-cards {
        padding: 24px 20px;
        border-width: 2px;
    }

    .success-story-cards img {
        width: 26px;
        margin-bottom: 14px;
    }

    .success-story-content {
        font-size: 15px;
        line-height: 1.6;
        overflow-wrap: break-word;
    }
}

/* ------------Even and show--------------- */

/* Tablet */
@media (max-width: 900px) {
    .event-and-show .wrapper {
        padding-block: 40px;
    }

    .event-and-show-title {
        gap: 24px;
        margin-bottom: 24px;
    }

    .title-and-subtitle {
        width: 65%;
        min-width: 0;
    }

    .title-and-subtitle .title {
        font-size: 30px;
    }

    .event-and-show-content {
        gap: 16px;
    }

    .event-and-show-cards {
        flex: 1;
        min-width: 0;
        padding: 18px;
    }

    .time-and-comment {
        flex-wrap: wrap;
        gap: 8px 12px;
        font-size: 11px;
    }

    .event-and-show-card-content .title {
        font-size: 14px;
        line-height: 1.4;
    }

    .event-and-show-card-content .event-and-show-content {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .event-and-show .wrapper {
        padding: 36px 16px;
    }

    .event-and-show-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 24px;
    }

    .title-and-subtitle {
        width: 100%;
    }

    .title-and-subtitle .title {
        font-size: 26px;
        line-height: 1.3;
    }

    .title-and-subtitle .title:after {
        width: 120px;
        margin: 10px 0 16px;
    }

    .title-and-subtitle .subtitle {
        font-size: 13px;
        line-height: 1.7;
    }

    .btn-slider {
        display: flex;
        gap: 12px;
    }

    .event-and-show-content {
        flex-direction: column;
        gap: 16px;
    }

    .event-and-show-cards {
        width: 100%;
        box-sizing: border-box;
        padding: 20px 18px;
    }

    .time-and-comment {
        flex-wrap: wrap;
        gap: 8px 14px;
        font-size: 11px;
        line-height: 1.5;
    }

    .time-and-comment span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .time-and-comment span img {
        width: 18px;
        height: 18px;
        object-fit: contain;
        margin: 0;
    }

    .event-and-show-card-content .title {
        font-size: 16px;
        line-height: 1.4;
    }

    .event-and-show-card-content .event-and-show-content {
        font-size: 12px;
        line-height: 1.7;
    }
}

/* --------------footer--------------- */

/* Tablet */
@media (max-width: 900px) {
    .footer .wrapper {
        width: calc(100% - 48px);
    }

    .footer-cta {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px;
        padding: 55px 0;
    }

    .footer-cta h2 {
        font-size: 25px;
    }

    .footer-cta-content p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 28px;
        padding: 50px 0;
    }

    .footer-brand {
        min-height: 90px;
    }

    .footer-location,
    .footer-navigation,
    .footer-social {
        min-width: 0;
    }

    .footer-copyright {
        text-align: center;
        line-height: 1.6;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .footer .wrapper {
        width: calc(100% - 32px);
    }

    .footer-cta {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 40px 0;
    }

    .footer-cta h2 {
        font-size: 25px;
        line-height: 1.35;
        margin-bottom: 0;
    }

    .footer-cta h2 br {
        display: none;
    }

    .footer-cta-content p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 22px;
    }

    .footer-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 14px 17px;
    }

    .footer-btn img {
        width: 15px;
        height: 15px;
        object-fit: contain;
        margin: 0;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
        padding: 36px 0;
    }

    .footer-brand {
        width: 100%;
        max-width: 150px;
        min-height: 80px;
    }

    .footer-logo {
        font-size: 17px;
        padding-left: 14px;
    }

    .footer-heading {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .footer-location p {
        font-size: 11px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .footer-links a {
        font-size: 12px;
        padding: 5px 8px;
    }

    .footer-social-list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .footer-social-list a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 7px;
    }

    .footer-social-list a img {
        display: block;
        width: 15px;
        height: 15px;
        object-fit: contain;
    }

    .footer-copyright {
        padding: 16px 0;
        font-size: 10px;
        line-height: 1.7;
        text-align: center;
        justify-content: center;
    }
}

/* Màn hình rất nhỏ */
@media (max-width: 380px) {
    .footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .footer-brand {
        min-height: 75px;
    }

    .footer-cta h2 {
        font-size: 22px;
    }
}