@charset "utf-8";

/* Mobile & Tablet Styles */

/* Tablet / Small Laptop */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .culture-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tracking-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .tracking-form {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

/* Mobile (Phablet / Phone) */
@media (max-width: 768px) {
    .pc-br {
        display: none;
    }
    body {
        font-size: 0.3rem;
    }

    .header-inner {
        padding: 0 0.2rem;
    }

    /* Mobile Menu */
    .mobile-menu-btn {
        display: flex;
    }

    /* Hide PC Nav */
    .pc-nav {
        display: none !important;
    }

    /* Mobile Nav Styles */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 80px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 80px);
        background: #fff;
        box-shadow: -2px 5px 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        padding: 0.4rem;
        overflow-y: auto;
    }

    .mobile-nav.active {
        right: 0;
    }

    .mobile-nav > ul {
        flex-direction: column;
        gap: 0;
    }

    .mobile-nav > ul > li {
        height: auto;
        border-bottom: 1px solid #eee;
    }

    .mobile-nav > ul > li > a {
        display: block;
        padding: 0.3rem 0;
        font-size: 0.32rem; /* Menu items */
        position: relative;
    }
    .mobile-nav > ul > li > a.active {
        color: #0056b3;
        font-weight: 600;
    }
    
    /* Mobile Menu Arrow */
    .has-dropdown > a::after {
        content: '';
        position: absolute;
        right: 0.1rem;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
        width: 0.16rem;
        height: 0.16rem;
        border-right: 2px solid #666;
        border-bottom: 2px solid #666;
        transition: transform 0.3s ease;
        margin-top: -0.05rem; /* Slight adjustment for visual center */
    }

    .has-dropdown.active > a::after {
        transform: translateY(-50%) rotate(45deg);
    }

    .dropdown {
        position: static;
        transform: none;
        background: #f9f9f9;
        display: none;
        width: 100%;
        box-shadow: none;
        padding-left: 0.4rem;
    }

    /* Disable hover on mobile to prevent conflict */
    .has-dropdown:hover .dropdown {
        display: none;
    }

    .dropdown a {
        font-size: 0.3rem !important;
        padding: 0.3rem 0 !important;
        display: block;
    }
    .dropdown a.active {
        color: #0056b3;
        font-weight: 600;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }
    
    .header-inner::after {
        content: none;
    }

    .headline-section {
        padding: 40px 5%;
        text-align: center;
    }
    .headline-section h1 {
        font-size: 0.42rem;
    }
    .headline-section p {
        font-size: 0.18rem;
    }

    .principles-box {
        margin-top: 10px;
    }
    .principles-title {
        font-size: 0.32rem;
        margin-bottom: 15px;
    }
    .principles-list {
        flex-direction: column;
        gap: 10px;
    }
    .principles-list span {
        font-size: 0.26rem;
        justify-content: center;
        white-space: normal;
    }
    .principles-list span:not(:last-child)::after {
        display: none;
    }

    .about-hero-inner {
        padding: 60px 0;
    }
    .about-hero-text h1 {
        font-size: 0.44rem;
    }
    .about-hero-text p {
        font-size: 0.2rem;
    }
    .about-intro-grid {
        grid-template-columns: 1fr;
    }
    .intro-content {
        grid-template-columns: 1fr !important;
        gap: 24px;
        margin-top: 24px;
    }
    .intro-main-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .intro-section-main {
        padding-right: 0;
    }
    
    /* About page responsive adjustments */
    .feature-boxes {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .feature-box h4 {
        font-size: 0.32rem;
    }
    .feature-list li {
        font-size: 0.26rem;
    }
    
    .scope-boxes {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .scope-box-title {
        font-size: 0.32rem;
    }
    .scope-box-content {
        font-size: 0.26rem;
    }

    .about-timeline-section {
        padding: 40px 0;
    }
    .timeline-container-v2 {
        padding-left: 20px;
        padding-right: 20px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .timeline-item-v2 {
        width: 100%;
        margin-bottom: 0;
    }
    .timeline-item-v2:nth-child(odd),
    .timeline-item-v2:nth-child(even) {
        align-self: flex-start;
    }
    .timeline-content-v2 {
        max-width: 100%;
    }
    .timeline-line-v2 {
        left: 20px;
        display: none; /* Hide center line on mobile for simple stack */
    }
    /* If we want a left line */
    .timeline-container-v2 {
        border-left: 2px solid #e0e0e0;
        margin-left: 20px;
        padding-left: 30px;
        gap: 40px;
    }
    .timeline-marker-v2 {
        left: -36px; /* Adjust based on container border/padding */
    }
    .timeline-item-v2:nth-child(odd) .timeline-marker-v2,
    .timeline-item-v2:nth-child(even) .timeline-marker-v2 {
        left: -36px;
        right: auto;
    }
    .timeline-year-v2 {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        margin-bottom: 10px;
        display: block;
        text-align: left;
    }
    .timeline-item-v2:nth-child(odd) .timeline-year-v2,
    .timeline-item-v2:nth-child(even) .timeline-year-v2 {
        text-align: left;
        left: auto;
        right: auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
    }
    .showcase-grid {
    grid-template-columns: 1fr;
}

.showcase-grid-dense {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
    
    /* Tracking Box */
    .tracking-box {
        padding: 0.4rem;
    }

    .tracking-form {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group input {
        width: 100%;
        height: 0.8rem;
        font-size: 0.28rem;
    }
    
    .tracking-form button {
        height: 0.8rem;
        font-size: 0.3rem;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
    }
    
    .footer-left, .footer-right, .footer-center {
        width: 100%;
        margin-bottom: 0.6rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .link-title {
        font-size: 0.32rem !important;
        margin-bottom: 0.2rem;
    }

    .sub-links a {
        font-size: 0.28rem !important;
        line-height: 2;
    }
    
    .contact-info p {
        font-size: 0.28rem !important;
        line-height: 1.8;
    }
    
    .copyright p, .legal-links a {
        font-size: 0.24rem !important;
    }

    /* Pop Buttons */
    .pop .pop_a.pop_a2 .pop_a_box .pop_a_img svg {
        height: 18px;
    }

    /* Join Page Mobile Styles */
    .join-intro {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 30px;
    }

    .join-intro-image {
        min-height: 200px;
    }

    .join-intro-text h2 {
        font-size: 0.36rem;
        margin-bottom: 10px;
    }

    .join-intro-text p {
        font-size: 0.26rem;
        line-height: 1.6;
    }

    .join-intro-meta {
        grid-template-columns: 1fr; /* Stack meta items */
        gap: 12px;
        margin-top: 20px;
    }

    .join-meta-item {
        padding: 12px 16px;
    }
    
    .join-meta-label {
        font-size: 0.24rem;
        margin-bottom: 4px;
    }
    
    .join-meta-value {
        font-size: 0.28rem;
        word-wrap: break-word;
    }

    .service-headline h1 {
        white-space: normal;
    }

    .mobile-break {
        display: inline;
    }
}

/* Services Section Specific Mobile Styles (from max-width: 767px) */
@media (max-width: 767px) {
    .services-section {
        height: auto;
    }
    .h_pro {
        flex-direction: column;
    }

    .h_pro .list {
        width: 100% !important;
        height: auto;
        flex: none;
    }

    .h_pro .list .img {
        height: 4rem; 
    }
    .h_pro .list .item_text {
        height: auto;
        padding: 0.4rem;
    }
    .h_pro .list .item_text .title {
        font-size: 0.36rem;
        margin-bottom: 0.2rem;
    }
    .h_pro .list .item_text .p {
        font-size: 0.26rem;
        line-height: 1.6;
        height: auto;
        display: block;
        -webkit-line-clamp: unset;
    }
    .h_pro .list .item_text .btn {
        margin-top: 0.3rem;
        width: 2.4rem;
        height: 0.7rem;
        line-height: 0.7rem;
        font-size: 0.26rem;
    }
}
