/* Reset và base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    color: #1d1d1f;
    background: #fff;
}

/* Layout chính */
.sc-bBrHrO {
    min-height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header styles */
.sc-hAZoDl {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.9); /* Increased opacity for better visibility */
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.sc-fnykZs {
    width: 100%;
}

.sc-ftvSup {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    width: 100%;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.sc-papXJ {
    position: relative;
}

.sc-iqcoie {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
    color: #1d1d1f;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.sc-iqcoie:hover {
    color: #0066cc;
}

.sc-iqcoie a {
    color: inherit;
    text-decoration: none;
}

.ssc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssc-icon svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sc-iqcoie:hover .ssc-icon svg {
    transform: rotate(180deg);
}

/* Banner styles */
.home-banner-carousel {
    width: 100%;
    margin-top: 0;
}

.banner-item {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.desktop-banner {
    display: block;
}

.tablet-banner {
    display: none;
}

.mobile-banner {
    display: none;
}

/* Tracking search styles */
.home-tracking-input-container {
    max-width: 1000px;
    margin: 30px auto 30px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.home-tracking-input {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tracking-methods {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tracking-method {
    background: transparent;
}

.tracking-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.method-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.tracking-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.tracking-search-left {
    flex: 1;
}

.input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: transparent;
    font-size: 17px;
    line-height: 1.23536;
    font-weight: 400;
    letter-spacing: -.022em;
    transition: all 0.3s ease;
}

.input:focus {
    outline: none;
}

.tracking-search-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.button {
    width: 24px;
    height: 24px;
    background: transparent;
    color: #c21807;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.button::after {
    content: "→";
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.button:hover {
    color: #a01405;
    transform: translateX(2px);
}

.button:hover::after {
    transform: translateX(2px);
}

.method-divider {
    text-align: center;
    position: relative;
    margin: 8px 0;
}

.method-divider span {
    background: white;
    padding: 0 16px;
    color: #86868b;
    font-weight: 500;
    position: relative;
    z-index: 1;
    font-size: 15px;
}

.method-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    z-index: 0;
}

#trackingResult, #userTrackingList {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

#trackingResult p, #userTrackingList p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #1d1d1f;
}

#trackingResult strong {
    font-weight: 600;
}

@media (max-width: 768px) {
    .home-tracking-input {
        padding: 24px;
    }

    .tracking-method {
        padding: 24px;
    }

    .method-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .input {
        font-size: 16px;
        padding: 14px 16px;
    }

    .button {
        width: 20px;
        height: 20px;
    }

    .button::after {
        font-size: 18px;
    }

    .tracking-search-left {
        padding-right: 36px;
    }
}

@media (max-width: 480px) {
    .home-tracking-input {
        padding: 20px;
    }

    .tracking-method {
        padding: 20px;
    }

    .method-title {
        font-size: 17px;
    }

    .input {
        font-size: 15px;
        padding: 12px 14px;
    }

    .button {
        width: 18px;
        height: 18px;
    }

    .button::after {
        font-size: 16px;
    }

    .tracking-search-left {
        padding-right: 32px;
    }
}

/* Services styles */
.home-module {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.home-module-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: auto;
    text-align: center;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 20; /* Ensure title is above other elements */
}

.home-trustmove-service {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.home-trustmove-service-item {
    padding: 32px;
    border-radius: 16px;
    background: #f5f5f7;
    text-align: center;
    transition: all 0.3s ease;
}

.home-trustmove-service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.home-trustmove-service-item .icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.home-trustmove-service-item .title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.home-trustmove-service-item .detail {
    font-size: 16px;
    color: #86868b;
    margin-bottom: 24px;
    display: block;
    line-height: 1.6;
}

.home-trustmove-service-item .learn-more {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.home-trustmove-service-item .learn-more:hover {
    color: #0055b3;
}

/* Footer styles */
.home-footer {
    background: #f5f5f7;
    padding: 80px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.company-info {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.company-info > div {
    flex: 1;
}

.company-name {
    font-size: 24px;
    font-weight: 600;
    margin: 24px 0;
}

.company-location {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.location-wrapper {
    display: flex;
    gap: 16px;
}

.location-icon {
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

.location-details {
    flex: 1;
}

.address {
    font-size: 16px;
    color: #86868b;
    line-height: 1.6;
    margin-bottom: 8px;
}

.business-license {
    font-size: 14px;
    color: #86868b;
}

/* Mobile menu styles */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1d1d1f;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 80px 24px 24px;
    height: 100%;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.close-menu {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #1d1d1f;
}

.close-menu svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item .sc-iqcoie {
    font-size: 18px;
    padding: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .sc-ftvSup {
        justify-content: space-between;
    }

    .banner-item {
        height: 400px;
    }

    .home-tracking-input-container {
        margin: 20px 16px;
        padding: 0;
    }

    .home-tracking-input {
        padding: 20px;
        margin: 0;
        width: 100%;
    }

    .tracking-search {
        flex-direction: row;
        align-items: center;
    }

    .input {
        font-size: 15px;
        padding: 14px 16px;
    }

    .button {
        padding: 6px;
    }

    .button::after {
        font-size: 18px;
    }

    .home-module {
        padding: 30px 16px;
    }

    .home-module-title {
        font-size: 36px;
        margin-bottom: 32px;
        padding-top: 20px; /* Add padding to ensure title is visible below the header */
    }

    /* Ensure the tracking module has enough space at the top on mobile */
    .home-module:first-of-type {
        padding-top: 80px;
        padding-bottom: 0;
    }

    .home-trustmove-service {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-trustmove-service-item {
        padding: 24px;
    }

    .company-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .company-location {
        flex-direction: column;
        align-items: center;
    }

    .desktop-banner {
        display: none;
    }

    .tablet-banner {
        display: block;
    }

    .mobile-banner {
        display: none;
    }
}

@media (max-width: 480px) {
    .banner-item {
        height: 300px;
    }

    .home-module {
        padding: 25px 16px;
    }

    /* Ensure the tracking module has enough space at the top on small mobile */
    .home-module:first-of-type {
        padding-top: 70px;
        padding-bottom: 0;
    }

    .home-module-title {
        font-size: 28px;
        padding-top: 15px; /* Increase padding for smaller screens */
        margin-bottom: 20px;
    }

    .home-trustmove-service-item {
        padding: 20px;
    }

    .home-trustmove-service-item .icon {
        width: 60px;
        height: 60px;
    }

    .home-trustmove-service-item .title {
        font-size: 20px;
    }

    .home-trustmove-service-item .detail {
        font-size: 14px;
    }

    .home-footer {
        padding: 40px 16px;
    }

    .company-name {
        font-size: 20px;
    }

    .address {
        font-size: 14px;
    }

    .desktop-banner {
        display: none;
    }

    .tablet-banner {
        display: none;
    }

    .mobile-banner {
        display: block;
    }

    .home-tracking-input-container {
        margin: 15px 16px;
    }

    .input {
        font-size: 14px;
        padding: 12px 14px;
    }

    .button {
        padding: 4px;
    }

    .button::after {
        font-size: 16px;
    }
}

.hidden {
    display: none !important;
}