/* ============================================
   RESPONSIVE STYLES - MOBILE MENU
   ============================================ */

/* Overlay - Hidden by default */
.overlay {
    display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    transition: all 0.3s ease;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

body.single-recruitment .hamburger-icon span,
body.home .hamburger-icon span {
    background-color: #f9f9f9;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (min-width: 768px) {
    .core-values-top>.core-values-title {
        position: absolute;
        bottom: 21px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 1400px) {
    .core-values-list {
        margin: 0 -12px;
    }

    .core-values-list-item {
        padding: 0 12px;
    }
}

@media (max-width: 1199px) {
    .site-footer {
        padding: 24px;
    }

    .footer-nav,
    .footer-policy-social {
        width: 220px;
    }

    .social-icons {
        gap: 8px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .core-values-title {
        font-size: 26px;
        line-height: 30px;
    }

    .strategy-direction-list {
        gap: 24px;
    }

    .archive-post-future-content-footer {
        flex-direction: column;
        height: 100%;
        align-items: end;
    }

    .archive-post-future-content-footer .archive-post-future-content-time {
        width: 100%;
    }
}

@media (max-width: 1023px) {
    .core-values-box-text {
        width: 270px;
    }
}

/* Responsive Styles - Below 991px */
@media (max-width: 991px) {
    ul.sub-menu {
        width: 100%;
    }

    .ecosystem-item {
        padding: 24px;
        height: 400px;
    }

    .ecosystem-title {
        left: 24px;
        top: 24px;
        font-size: 30px;
    }

    .core-values-bottom-title:before, .core-values-bottom-title:after {
        width: 175px;
        height: 80px;
    }

    .core-values-bottom-title {
        padding: 20px 180px;
        font-size: 30px;
    }

    .core-values-top {
        margin-top: 30px;
    }

    .core-values-box-text {
        width: 230px;
    }

    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide desktop navigation */
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: rgba(13, 108, 42, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        transition: all 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    body.single-recruitment .main-navigation,
    body.home .main-navigation {
        background: rgba(255, 255, 255, 0.98);
    }

    /* Menu open state */
    .main-navigation.menu-open {
        left: 0;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Navigation menu styles */
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px;
        width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    }

    .nav-menu::-webkit-scrollbar {
        height: 4px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

    body.single-recruitment .nav-menu::-webkit-scrollbar-thumb,
    body.home .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
    }

    /* Menu items */
    .nav-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.single-recruitment .nav-menu li,
    body.home .nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        font-weight: 500;
        color: #fff;
        width: 100%;
        white-space: nowrap;
    }

    body.single-recruitment .nav-menu a,
    body.home .nav-menu a {
        color: #374151;
    }

    .nav-menu a:hover {
        color: #d5a34c;
    }

    /* Submenu styles */
    .nav-menu .sub-menu {
        display: none;
        list-style: none;
        padding-left: 20px;
        margin-top: 0;
    }

    .nav-menu .sub-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    body.single-recruitment .nav-menu .sub-menu li,
    body.home .nav-menu .sub-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu .sub-menu a {
        padding: 12px 0;
        font-size: 14px;
    }

    /* Top header adjustments */
    .top-header-content {
        justify-content: space-between;
        gap: 15px;
    }

    .logo-section {
        flex: 1;
    }

    /* Overlay when menu is open */
    .overlay.menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .overlay.menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .footer-content {
        flex-direction: column;
    }

    .nav-menu {
        scroll-behavior: smooth;
    }

    .bannerSwiper-owl .owl-next,
    .bannerSwiper-owl .owl-prev {
        width: 30px;
        height: 30px;
        background-size: cover !important;
    }

    .bannerSwiper-owl .owl-prev {
        left: 10px;
    }

    .bannerSwiper-owl .owl-next {
        right: 10px;
    }

    .title-line1 {
        font-size: 30px;
        line-height: 45px;
    }

    .title-img {
        max-width: 400px;
    }

    .slide-description {
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
    }

    .slide-inner {
        padding: 0 50px;
    }

    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-box {
        padding: 0;
    }

    .solutions-section {
        padding: 64px 0;
    }

    .model-content-wrapper {
        flex-direction: column;
    }

    .model-text-column {
        width: 100%;
    }

    .model-video-column {
        width: 100%;
    }

    .news-content {
        padding: 12px;
    }

    .news-title {
        font-size: 16px;
        line-height: 24px;
        height: 48px;
    }

    .news-read-more {
        width: 30px;
        height: 30px;
    }

    .news-read-more .news-arrow-icon {
        width: 20px;
        height: 20px;
    }

    .news-excerpt {
        font-size: 14px;
        height: 63px;
    }

    .core-values-box-text {
        top: 380px;
        left: auto;
        right: calc(50% + 12px);
    }

    .core-values-box-text+.core-values-box-text {
        right: auto;
        left: calc(50% + 12px);
    }

    .strategy-direction-box {
        flex-direction: column;
    }

    .strategy-direction-content-inner {
        max-width: 100%;
    }

    .strategy-direction-list-item-icon {
        width: 120px;
        height: 120px;
    }

    .specialized-units-list-item {
        gap: 24px;
    }

    .specialized-units-list-item-thumb {
        min-width: auto;
        max-width: none;
        flex: 1;
    }

    .specialized-units-list {
        gap: 64px;
    }

    .cooperation-introduction-content {
        padding: 40px 24px;
        gap: 24px;
    }

    .cooperation-introduction-title {
        font-size: 36px;
        line-height: 1.5;
    }

    .archive-post-future-left-content {
        min-height: 480px;
    }

    .archive-post-future-right-content .archive-post-future-cont {
        gap: 8px;
    }

    .archive-post-future-right-content-image {
        height: 130px;
    }

    .archive-post-future-content-footer {
        gap: 8px;
    }

    section.archive-post-category-list {
        gap: 24px;
        grid-template-columns: repeat(2, 1fr);
        margin: 24px 0;
    }

    .archive-post-category-posts-item-title {
        font-size: 20px;
    }

    .archive-post-category-posts-item-excerpt {
        font-size: 16px;
        line-height: 24px;
    }

    .archive-post-category-list-item-title {
        font-size: 24px;
        line-height: 1.5;
    }

    .archive-post-list-item-content h3 {
        font-size: 18px;
        line-height: 24px;
        height: 48px;
    }

    .archive-post-list-item-content-time {
        font-size: 16px;
        line-height: 1.5;
    }

    .archive-post-list-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .archive-post-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-post-sidebar {
        min-width: 200px;
    }

    .archive-post-sidebar-list-title {
        margin-bottom: 24px;
    }

    .archive-post-sidebar-list-items a {
        padding: 6px 0;
    }

    .related-posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-us-box {
        gap: 24px;
    }

    .recruitment-introduction-list {
        padding: 24px;
    }

    .recruitment-introduction-item {
        gap: 8px;
    }

    .recruitment-introduction-icon {
        min-width: 40px;
        height: 40px;
        padding: 8px;
    }

    .recruitment-introduction-icon img {
        width: 24px;
    }

    .recruitment-introduction-description {
        font-size: 14px;
    }

    .recruitment-introduction-title {
        font-size: 16px;
        line-height: 20px;
    }

    .recruitment-list-tab {
        margin-bottom: 24px;
    }

    .recruitment-detail-options-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .recruitment-detail-options-item {
        flex: 0 0 calc(33.33% - 16px);
    }

    .factory-content {
        grid-template-columns: 1fr;
    }

    .product-detail-related-list,
    .product-list {
        gap: 24px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .partners-list {
        flex-direction: column;
    }
    
    .page-template-recruitment .page-banner {
        padding-bottom: 48px;
    }
    
    .specialized-units-list-item:nth-child(2n + 1) .specialized-units-list-item-thumb {
        order: 0;
    }

    .core-values-top {
        margin-bottom: 48px;
    }

    .core-values-box-content .core-values-box-text:last-child {
        margin: 0;
    }

    .core-values-bottom-title:before, .core-values-bottom-title:after {
        display: none;
    }

    .core-values-bottom-title {
        padding: 0 12px;
    }

    .core-values-box-text {
        width: 50%;
    }

    .site-footer {
        padding: 24px 0px;
    }

    .footer-watermark {
        font-size: 60px;
        letter-spacing: 15px;
    }

    .slide-buttons a {
        margin-top: 10px;
    }

    .slide-description {
        margin-bottom: 10px;
    }

    .slide-content {
        height: 100vh;
    }

    .introduction-section {
        padding: 30px 0;
    }

    .problems-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .solution-box {
        max-width: 400px;
        margin: auto;
    }

    .areas-grid-fullwidth {
        grid-template-columns: repeat(1, 1fr);
    }

    .model-video-column {
        padding: 0;
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-news-section .section-title {
        margin-bottom: 30px;
    }

    .news-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .partners-section {
        padding: 30px 0;
    }

    .partners-section .section-title {
        margin-bottom: 30px;
    }

    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .page-banner-title {
        font-size: 35px;
    }

    .core-values-top {
        width: 100%;
    }

    .core-values-box-text {
        position: initial;
    }

    .core-values-top {
        display: flex;
        flex-direction: column;
        gap: 24px;
        justify-content: center;
        align-items: center;
        margin-top: -20px;
    }

    .strategy-direction-list {
        flex-wrap: wrap;
    }

    .strategy-direction-list-item {
        flex: 0 0 calc(50% - 12px);
        margin-top: 0;
    }

    .strategy-direction-list-item:nth-child(1),
    .strategy-direction-list-item:nth-child(2) {
        margin-top: -57px;
        padding-bottom: 0;
    }

    .specialized-units-title span {
        display: none;
    }

    .specialized-units-list {
        gap: 24px;
    }

    .specialized-units-list-item {
        flex-direction: column;
        align-items: center;
    }

    .archive-post-future-content {
        flex-direction: column;
    }

    .archive-post-container {
        padding: 24px 12px;
    }

    .archive-post-future-left-content .archive-post-future-cont {
        padding: 12px;
    }

    .archive-post-future-left-content .archive-post-future-cont h3 {
        font-size: 24px;
    }

    .archive-post-list-wrapper {
        padding: 0;
        border: 0;
    }

    .related-posts {
        grid-template-columns: repeat(1, 1fr);
    }

    .main_single {
        padding-right: 0;
        border: 0;
    }

    .single-post-container {
        padding: 24px 0;
    }

    .single_post_title {
        font-size: 30px;
        line-height: 1.5;
    }

    .single_post_author {
        gap: 8px;
    }

    .single_post_author_icon {
        width: 30px;
        height: 30px;
        padding: 0;
        min-width: 30px;
    }

    .single_post_time {
        font-size: 16px;
    }

    .widget-read-most {
        border: 0;
        margin-top: 24px;
        padding-top: 0;
    }

    .related-posts-container {
        margin-top: 24px;
    }

    .contact-us-box {
        flex-direction: column;
    }

    .contact-us {
        margin: 24px 0;
    }

    .contact-us-box-title h2 {
        font-size: 30px;
    }

    .recruitment-introduction-list {
        flex-direction: column;
        max-width: 400px;
        margin: 24px auto 0;
        border-radius: 24px;
        align-items: flex-start;
    }

    .recruitment-list {
        flex-direction: column;
    }

    .recruitment-list-tab {
        gap: 12px;
    }

    .form-apply-content {
        padding: 40px 24px;
    }

    .form-apply-content-header-title {
        font-size: 30px;
        line-height: 1;
    }

    .form-apply-content-header {
        margin-bottom: 24px;
    }

    .form-apply-body {
        gap: 24px;
    }

    .form-apply-content-body {
        gap: 24px;
    }

    .btn-form-apply {
        font-size: 16px;
        height: 50px;
    }

    .custom-input-file {
        padding: 8px;
    }

    .form-apply-content-header-description {
        font-size: 16px;
    }

    .recruitment-detail-address-list {
        flex-direction: column;
    }

    .recruitment-detail-address-item {
        width: 100%;
    }

    .breadcrumb {
        padding: 12px 0;
    }

    .slide-image {
        opacity: 0.5;
        left: 0;
        right: 0;
        display: none;
    }

    section.factory-system {
        padding: 40px 0;
    }

    .factory-title {
        font-size: 30px;
    }

    .ecosystem-list {
        grid-template-columns: 1fr;
    }

    .ecosystem-title {
        font-size: 30px;
        margin-bottom: 40px
    }

    .ecosystem-item-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .achievements-top {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
        gap: 10px;
    }

    .achievements-list {
        grid-template-columns: 1fr;
    }

    .achievements-title {
        font-size: 30px;
    }

    .network-content {
        grid-template-columns: 1fr;
    }

    .network-title {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .network-shop-number {
        font-size: 46px;
    }

    .press-articles {
        grid-template-columns: 1fr;
    }

    .product-list-tab {
        gap: 8px;
    }

    .product-list-tab-item {
        padding: 8px 12px;
        font-size: 14px;
    }

    .footer-top, .footer-bottom-container {
        padding: 0 12px;
    }

    .product-list-tab-wrapper {
        margin-bottom: 30px;
    }

    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .product-detail-options-item-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-info .product-title {
        font-size: 30px;
    }

    .product-detail-info .product-price {
        font-size: 30px;
    }

    .product-detail-info .product-price-old {
        font-size: 16px;
    }

    .product-detail-info .product-price-wrapper {
        gap: 8px;
    }

    table {
        width: 100% !important;
    }

    .product-detail-options-item {
        width: 100% !important;
    }
}

@media (max-width: 574px) {
    .product-detail-options-item-list {
        grid-template-columns: repeat(1, 1fr);
    }
    .product-detail-related-list,
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .core-values-list-item {
        width: 100%;
    }

    .strategy-direction-list-item {
        flex: 0 0 100%;
        padding-bottom: 0;
    }

    .strategy-direction-list-item:nth-child(2) {
        margin-top: 0;
    }

    .strategy-direction-list-item:last-child {
        padding-bottom: 24px;
    }

    .cooperation-introduction-list {
        flex-wrap: wrap;
    }

    .cooperation-introduction-list-item {
        flex: 0 0 33.33%;
        max-width: 100%;
    }

    .cooperation-introduction-list-item:nth-child(4) {
        display: none;
    }

    .archive-post-future-left-content {
        min-height: 300px;
    }

    .archive-post-future-right-content .archive-post-future-cont h3 a {
        font-size: 18px;
    }

    .archive-post-future-right-content .archive-post-future-cont {
        padding: 0;
    }

    section.archive-post-category-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .archive-post-wrapper {
        flex-direction: column;
    }

    .related-title {
        font-size: 24px;
    }

    .contact-us-social {
        gap: 12px;
    }

    .contact-us-form-content {
        padding: 24px;
    }

    .btn-contact-submit {
        height: 50px;
    }

    .form-apply-content-body {
        grid-template-columns: repeat(1, 1fr);
    }

    .recruitment-detail-options-item {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 479px) {
    .core-values-box-text {
        width: 100%;
    }

    .core-values-box-content {
        flex-direction: column;
        gap: 24px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-post-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .statistics-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .blog-posts-item-content {
        padding: 0 8px;
    }

    .blog-posts-item-image {
        width: 100px;
        min-width: 100px;
    }

    .recruitment-detail-options-item {
        flex: 0 0 100%;
    }

    .recruitment-detail-options-list {
        max-width: 200px;
        margin: auto;
    }

    .slide-inner {
        padding: 0 12px;
    }
}

@media (max-width: 374px) {
    .product-detail-related-list,
    .product-list {
        grid-template-columns: repeat(1, 1fr);
    }
}