/*!
 * Landing Page Responsive CSS
 * Chứa tất cả media queries và responsive styles cho mobile/tablet
 * Version: 1.0
 */

/* ==========================================================================
   Large Desktop Screens (≥ 1441px)
   ========================================================================== */

@media (min-width: 1441px) {
    .hero.landing-page {
        padding: 3rem 0;
        min-height: 75vh; /* Giảm để đảm bảo có scroll */
    }
    
    .logo-container {
        margin-bottom: 3rem;
    }
    
    .title-line {
        width: 70%;
    }
    
    /* Đảm bảo recruitment section có đủ chiều cao */
/*    .recruitment-section {
        min-height: 80vh;
    }*/
    
    /* Force scrolling */
    html {
        overflow-y: scroll !important;
    }
    
    body {
        min-height: 120vh; /* Đảm bảo có đủ nội dung để scroll */
    }
}

/* ==========================================================================
   Desktop and Laptop Screens (1200px - 1440px)
   ========================================================================== */

@media (min-width: 1201px) and (max-width: 1440px) {
    .hero.landing-page {
        padding: 2.5rem 0;
        min-height: 80vh; /* Giảm từ 100vh để đảm bảo có scroll */
    }
    
    .logo-container {
        margin-bottom: 2.5rem;
        margin-left: -496px;
    }
    
    .logo-everwin {
        max-height: 75px;
    }
    
    .title-everwin {
        font-size: 2rem;
    }
    
    .title-line {
        width: 75%;
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .container {
        max-width: 1200px;
    }
    
    /* Đảm bảo có scroll */
/*    .recruitment-section {
        min-height: 70vh;
    }*/
    
    /* Force scrolling */
    html {
        overflow-y: scroll !important;
    }
    
    body {
        min-height: 110vh;
    }
}

/* ==========================================================================
   Large Tablets and Small Laptops (≤ 1200px)
   ========================================================================== */

@media (max-width: 1200px) {
    .hero.landing-page {
        padding: 1.5rem 0;
        min-height: 85vh; /* Đảm bảo có scroll */
    }
    
    .section-title h2 {
        font-size: 18px !important;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
    
    .title-line {
        width: 80%;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
    
    /* Đảm bảo có scroll */
/*    .recruitment-section {
        min-height: 60vh;
    }*/
    
    /* Force scrolling cho desktop nhỏ */
    html {
        overflow-y: scroll !important;
    }
}

/* ==========================================================================
   Tablets and Large Mobile (≤ 991px)
   ========================================================================== */

@media (max-width: 991px) {
    /* Hide mobile-specific elements */
    .mobile-hide {
        display: none !important;
    }
    
    /* Hero section adjustments */
    .hero.landing-page {
        min-height: 100vh;
        padding: 1.5rem 0;
    }

    /* Logo and branding */
    .logo-container {
        margin-bottom: 2rem;
        z-index: 10;
        position: relative;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Hero content */
    .hero-content {
        padding: 0;
        text-align: center;
    }

    /* Title styling */
    .title-line {
        width: 100%;
        font-size: 1.5rem;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .title-line:first-child {
        margin-bottom: 0.5rem;
    }

    .title-line:last-child {
        padding-left: 2rem; /* Tạo indent cho dòng thứ 2 */
    }

    /* Description text */
    .desciption-site {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    /* VNPT Credit responsive */
    .vnpt-credit {
        bottom: 15px;
        right: 15px;
    }
}

/* ==========================================================================
   Small Tablets and Large Mobile (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Layout adjustments */
    .hero.landing-page {
        min-height: 100vh;
        padding: 1rem 0;
    }

    /* Logo section */
    .logo-container {
        margin-bottom: 1.5rem;
        z-index: 10;
        position: relative;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Title responsiveness */
    .title-line {
        font-size: 1.3rem;
        line-height: 1.3;
        white-space: normal;
        width: 100%;
        text-align: center;
    }

    .title-line:first-child {
        margin-bottom: 0.4rem;
    }

    .title-line:last-child {
        padding-left: 1.5rem; /* Tạo indent cho dòng thứ 2 */
        font-weight: 600;
    }

    /* Description */
    .desciption-site {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    /* Search box */
    .search-box {
        padding: 1rem 0;
    }

    /* Button styling - Match both buttons */
    .btn-search-location,
    .btn-recruitment {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }

    /* VNPT Credit */
    .vnpt-credit {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
    }

    .vnpt-credit span {
        font-size: 6px;
    }
    
    /* Ensure no horizontal overflow */
    .col-12,
    .col-md-12,
    .col-lg-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ==========================================================================
   Mobile Devices (≤ 480px)
   ========================================================================== */

@media (max-width: 480px) {
    /* Layout optimization */
    .hero.landing-page {
        min-height: 100vh;
        padding: 0.5rem 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 0rem;
    }

    /* Logo and branding */
    .logo-container {
        margin-bottom: 1rem;
        z-index: 10;
        position: relative;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .logo-everwin {
        max-height: 50px;
    }

    .title-everwin {
        font-size: 1.2rem !important;
    }

    /* Title optimization */
    .title-line {
        font-size: 1.1rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
        white-space: normal;
        width: 100%;
        text-align: center;
    }

    .title-line:first-child {
        margin-bottom: 0.3rem;
    }

    .title-line:last-child {
        padding-left: 1rem; /* Tạo indent nhỏ hơn cho màn hình nhỏ */
        font-weight: 600;
        font-size: 86%;
    }

    /* Description */
    .desciption-site {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    /* Button styling - Match both buttons */
    .search-box {
        padding: 0.5rem 0;
    }

    .btn-search-location,
    .btn-recruitment {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

/* ==========================================================================
   Very Small Mobile Devices (≤ 375px)
   ========================================================================== */

@media (max-width: 375px) {
    /* Further optimize text */
    .title-line {
        font-size: 1rem;
    }

    .title-line:last-child {
        padding-left: 0.8rem;
    }

    .desciption-site {
        font-size: 0.85rem;
    }
    
    /* Button adjustments - Match both buttons */
    .btn-search-location,
    .btn-recruitment {
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem;
    }
}

/* ==========================================================================
   Extra Small Mobile Devices (≤ 320px)
   ========================================================================== */

@media (max-width: 320px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .title-line {
        font-size: 0.95rem;
    }
    
    .title-line:last-child {
        padding-left: 0.5rem;
    }
    
    .desciption-site {
        font-size: 0.8rem;
    }
    
    /* Button adjustments - Match both buttons */
    .btn-search-location,
    .btn-recruitment {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}

/* ==========================================================================
   Tablet Portrait Orientation (769px - 1024px)
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .hero.landing-page {
        min-height: 100vh;
        padding: 1.5rem 0;
    }

    .container {
        max-width: 100%;
        padding-right: 0;
    }

    /* Logo optimization for portrait */
    .logo-container {
        margin-left: 0px;
    }

    .logo-everwin {
        max-height: 70px;
    }

    .title-everwin {
        font-size: 2rem !important;
    }

    /* Stack layout for portrait */
    .col-lg-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .col-lg-6:first-of-type {
        margin-bottom: 2rem;
    }

    /* Title adjustments */
    .title-line {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
        width: 100%;
    }

    .title-line:last-child {
        font-weight: 600;
    }

    /* Description */
    .desciption-site {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    /* Search box */
    .search-box {
        padding: 1rem 0;
        margin-top: 0.5rem;
        max-width: 100%;
    }

    .btn-search-location {
        font-size: 1rem;
        padding: 1rem 2rem;
    }

    .btn-recruitment {
        font-size: 1rem;
        padding: 1rem 2rem;
    }

    /* Image section */
    .mobile-hide {
        display: block !important;
        text-align: center;
    }

    .mobile-hide img {
        max-height: 50vh;
        width: auto;
    }

    /* VNPT Credit */
    .vnpt-credit {
        bottom: 20px;
        right: 20px;
        padding: 8px 15px;
    }

    .vnpt-credit span {
        font-size: 14px;
    }
}

/* ==========================================================================
   Tablet Landscape Orientation (769px - 1024px)
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero.landing-page {
        min-height: 100vh;
        padding: 1rem 0;
        display: flex;
        align-items: center;
    }

    .container {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Logo optimization for landscape */
    .logo-container {
        margin-bottom: 1rem;
        z-index: 10;
        position: relative;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .logo-everwin {
        max-height: 60px;
    }

    .title-everwin {
        font-size: 1.8rem !important;
    }

    /* Content layout for landscape */
    .row.align-items-center {
        height: 100%;
        min-height: calc(100vh - 2rem);
    }

    /* Two column layout optimization */
    .col-lg-6:first-of-type {
        padding-right: 1rem;
    }

    .col-lg-6:last-of-type {
        padding-left: 1rem;
    }

    /* Title adjustments */
    .title-line {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
        width: 90%;
    }

    .title-line:first-child {
        margin-bottom: 0.3rem;
    }

    .title-line:last-child {
        padding-left: 1rem;
        font-weight: 600;
    }

    /* Description */
    .desciption-site {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    /* Search box */
    .search-box {
        padding: 0.8rem 0;
        margin-top: 0.5rem;
    }

    /* Button styling - Match both buttons */
    .btn-search-location,
    .btn-recruitment {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
    }

    /* Image column */
    .mobile-hide {
        display: block !important;
    }

    .mobile-hide img {
        max-height: 70vh;
        width: auto;
    }

    /* VNPT Credit */
    .vnpt-credit {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
    }

    .vnpt-credit span {
        font-size: 13px;
    }
}

/* ==========================================================================
   Small Tablet Landscape Orientation (481px - 768px)
   ========================================================================== */

@media (min-width: 481px) and (max-width: 768px) and (orientation: landscape) {
    .hero.landing-page {
        min-height: 100vh;
        padding: 0.8rem 0;
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Logo for small tablet landscape */
    .logo-container {
        margin-bottom: 0.8rem;
        z-index: 10;
        position: relative;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .logo-everwin {
        max-height: 45px;
    }

    .title-everwin {
        font-size: 1.3rem !important;
    }

    /* Content adjustments */
    .row.align-items-center {
        min-height: calc(100vh - 1.6rem);
    }

    /* Hide image on small tablet landscape to save space */
    .mobile-hide {
        display: none !important;
    }

    /* Center content when image is hidden */
    .col-lg-6:first-of-type {
        margin: 0 auto;
        max-width: 600px;
    }

    /* Title adjustments */
    .title-line {
        font-size: 1.1rem;
        line-height: 1.2;
        margin-bottom: 0.2rem;
        width: 95%;
    }

    .title-line:last-child {
        padding-left: 0.8rem;
    }

    /* Description */
    .desciption-site {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    /* Search box */
    .search-box {
        padding: 0.5rem 0;
    }

    /* Button styling - Match both buttons */
    .btn-search-location,
    .btn-recruitment {
        font-size: 0.9rem;
        padding: 0.7rem 1.3rem;
    }

    /* VNPT Credit */
    .vnpt-credit {
        bottom: 10px;
        right: 10px;
        padding: 5px 10px;
    }

    .vnpt-credit span {
        font-size: 12px;
    }
}

/* ==========================================================================
   Landscape Orientation for Mobile
   ========================================================================== */

@media (max-width: 480px) and (orientation: landscape) {
    .hero.landing-page {
        min-height: 100vh;
        padding: 0.3rem 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo-container {
        margin-bottom: 0.3rem;
        z-index: 10;
        position: relative;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .logo-everwin {
        max-height: 35px;
    }

    .title-everwin {
        font-size: 0.9rem !important;
    }

    .title-line {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }

    .title-line:last-child {
        padding-left: 0.3rem;
    }

    .desciption-site {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .search-box {
        padding: 0.2rem 0;
    }
    
    /* Button styling - Match both buttons */
    .btn-search-location,
    .btn-recruitment {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Hide image to save space */
    .mobile-hide {
        display: none !important;
    }

    /* Center content */
    .col-lg-6:first-of-type {
        margin: 0 auto;
        max-width: 500px;
    }

    /* VNPT Credit */
    .vnpt-credit {
        bottom: 5px;
        right: 5px;
        padding: 3px 6px;
    }

    .vnpt-credit span {
        font-size: 10px;
    }
}

/* ==========================================================================
   High DPI / Retina Displays
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-everwin {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .vnpt-credit,
    .search-box {
        display: none !important;
    }
    
    .hero.landing-page {
        min-height: auto;
        padding: 1rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .wow,
    .fadeInUp,
    .btn-search-location,
    .hero-content {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   Dark Mode Support (if needed in future)
   ========================================================================== */

/* @media (prefers-color-scheme: dark) {
    .vnpt-credit {
        background-color: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.10.9);
    }
    
    .vnpt-credit span {
        color: #063e71;
    }
} */
