/* Responsive Styles - File CSS cho responsive design (mobile, tablet, desktop) */

/* Tablet */
@media screen and (max-width: 1502px) {
    .banner-container {
        transform: none;
    }

    .banner-content {
        flex: 0 1 auto;
        width: auto;
        max-width: calc(100% - min(520px, 44vw) - 120px);
    }

    .banner-title {
        font-size: 48px;
        line-height: 1.15;
    }

    .banner-card {
        top: 50%;
        right: 24px;
        width: min(520px, 44vw);
        height: auto;
    }
}

@media screen and (max-width: 1024px) {
    .header-container {
        padding: 1rem 1.5rem;
        gap: 1.5rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .banner-container {
        width: 100%;
    }
    
    
    .banner-image {
        min-height: 500px;
    }

    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solution-section {
        padding: 0;
    }
    
    .solution-container {
        gap: 2rem;
    }
    
}

/* Mobile */
@media screen and (max-width: 768px) {
    body {
        padding-top: 120px; /* Tăng padding cho mobile vì header có thể cao hơn */
    }
    
    .header-container {
        flex-wrap: nowrap;
        position: relative;
        padding: 1rem 24px;
        gap: 12px;
    }

    .header-logo-nav{
        gap: 0;
        min-width: 0;
    }
    
    .header-logo {
        flex: 1 1 auto;
        min-width: 0;
        height: auto;
    }

    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-left: 0;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-menu-icon {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    .header-actions {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 1001;
    }

    .header-actions.show {
        display: flex;
    }

    .header-actions .action-btn {
        width: 100%;
    }

    .banner {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding-bottom: 24px;
    }
    
    .banner-container {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        transform: none;
        padding: 8px 24px 0;
    }

    .banner-card {
        display: none;
    }
    
    .banner-content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .banner-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .banner-kicker {
        font-size: 11px;
    }

    .banner-description {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .platform {
        padding: 60px 0;
    }

    .platform-title {
        font-size: 32px;
        line-height: 1.25;
    }

    .platform-subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .platform-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    
    
    .banner-image,
    .banner-image-mobile {
        display: none;
    }
    
    .solution-section {
        padding: 0;
        margin-bottom: 40px;
    }
    
    .solution-container {
        flex-direction: column !important;
        gap: 0;
    }
    
    .solution-content {
        max-width: 100%;
        order: 1;
    }
    
    .solution-image {
        max-width: 100%;
        order: 2;
    }
    
    
    /* Product Section */
    .product {
        padding: 60px 0;
    }
    
    .product-container {
        padding: 0 24px;
    }
    
    .product-title {
        font-size: 32px;
        line-height: 1.25;
        margin-bottom: 32px;
        padding: 0 1rem;
    }

    .product-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .about-fox {
        padding: 60px 0;
    }

    .about-fox-title {
        font-size: 32px;
        line-height: 1.25;
    }

    .about-fox-copy p {
        font-size: 16px;
        line-height: 24px;
    }

    .about-fox-grid {
        grid-template-columns: 1fr;
    }

    .about-fox-card {
        padding: 16px;
    }

    .course-consult {
        padding: 40px 0 60px;
    }

    .course-consult-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
    }

    .course-consult-copy h2 {
        font-size: 24px;
    }

    .course-consult-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .course-consult-phone,
    .course-consult-trial {
        width: 100%;
    }

    .course-price {
        font-size: 24px;
    }
    
    .solution-title {
        font-size: 36px;
    }

    .solution-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .solution-price-label {
        white-space: nowrap;
    }
    
    .solution-image img {
        width: 100%;
        height: auto;
        max-height: none;
    }
    
    /* Learning System Section */
    .learning-system {
        padding: 60px 0;
    }
    
    .learning-system-container {
        flex-direction: column;
        padding: 0 24px;
        gap: 32px;
    }
    
    .learning-system-image {
        order: 1;
        width: 100%;
    }
    
    .learning-system-image img {
        width: 100%;
        max-width: 100%;
    }
    
    .learning-system-content {
        order: 2;
        max-width: 100%;
    }
    
    .learning-system-title {
        font-size: 36px;
        line-height: 1.4;
    }
    
    .learning-system-title .title-highlight {
        font-size: 36px;
    }
    
    /* Partner Section */
    .partner {
        padding: 60px 0;
    }
    
    .partner-container {
        flex-direction: column;
        padding: 0 24px;
        gap: 40px;
    }
    
    .partner-image {
        order: 1;
        width: 100%;
    }
    
    .partner-image img {
        width: 100%;
        max-width: 100%;
    }
    
    .partner-content {
        order: 2;
        width: 100%;
    }
    
    .partner-title {
        font-size: 36px;
        line-height: 1.4;
    }
    
    .title-audience {
        font-size: 36px;
        line-height: 1.4;
    }
    
    .partner-features {
        flex-direction: column;
    }
    
    .partner-features .partner-feature {
        width: 100%;
    }
    
    /* Target Group Section */
    .target-group {
        padding: 60px 1rem;
    }
    
    .target-group-title {
        font-size: 36px;
        line-height: 1.4;
    }
    
    .target-group-cards {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 32px;
        padding: 0;
    }
    
    .footer-main {
        padding: 52px 24px;
    }
    
    .copyright-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 0 24px;
    }
    
    .footer-copyright {
        padding: 0;
    }
}

/* Small Mobile */
@media screen and (max-width: 576px) {
    body {
        padding-top: 80px; /* Tăng padding cho small mobile */
    }

    .platform-title,
    .product-title,
    .about-fox-title {
        font-size: 28px;
    }

    .platform-card h3,
    .about-fox-card h3,
    .course-card-title {
        font-size: 18px;
        line-height: 26px;
    }
    
    .header-container {
        flex-direction: row;
        align-items: center;
    }

    .header-logo-nav{
        gap: 20px;
    }

    .header-logo {
        flex: 0 1 auto;
        min-width: 0;
        max-width: none;
        height: auto;
    }

    .logo-icon {
        height: 36px;
    }

    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
    
    .banner-content {
        margin: 0;
        padding: 0;
    }

    .banner-title {
        font-size: 32px;
    }
    
    
    .banner-actions {
        flex-direction: row;
    }
    
    .solution-section {
        padding: 0;
    }
    
    .solution-container {
        flex-direction: column !important;
        gap: 0;
    }
    
    .solution-image {
        order: 1;
    }
    
    .solution-content {
        order: 2;
    }
    
    .solution-features li {
        margin-bottom: 0.75rem;
    }
    
    /* Product Section */
    .product {
        padding: 60px 0;
    }
    
    .product-title {
        line-height: 1.3;
        margin-bottom: 40px;
    }
    
    /* Learning System Section */
    .learning-system {
        padding: 80px 0;
    }
    
    .learning-system-container {
        flex-direction: column;
    }
    
    .learning-system-content {
        order: 1;
    }
    
    .learning-system-image {
        order: 2;
    }
    
    .learning-system-title {
        line-height: 1.3;
    }
    
    /* Partner Section */
    .partner {
        padding: 80px 0;
    }
    
    .partner-title {
        line-height: 1.3;
    }
    
    .title-audience {
        line-height: 1.3;
    }
    
    .partner-features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .partner-features .partner-feature {
        width: calc(50% - 8px);
    }
    
    /* Target Group Section */
    .target-group {
        padding: 40px 1rem;
    }
    
    .target-group-title {
        font-size: 36px;
        max-width: 376px;
        margin: 0 auto;
        line-height: 1.3;
    }
    
    .target-card {
        max-width: 376px;
        margin: 0 auto;
    }

    .logo-img{
        height: 64px;
    }
}
