* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif !important;
}

:root {
    --primary-color: #ffd700;
    --primary-dark: #e6c200;
    --secondary-color: #007bff;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --header-at-top-bg: #e6c200;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

/* Add viewport meta tag to HTML if not already present */
/* <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0"> */

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding-top: 0;
    width: 100%;
    overflow-x: hidden;
    
    & .header {
        background-color: var(--primary-color);
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        width: 100%;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    }

    .header.scrolling-down {
        transform: translateY(-100%);
        box-shadow: none;
    }

    .header.scrolling-up {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .header.at-top {
        background-color: var(--header-at-top-bg);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    height: 60px;
}

.logo img {
    height: 50px;
                transition: transform 0.3s ease;
    max-width: 100%;
}
                
.logo img:hover {
                    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
                    color: var(--text-dark);
    font-weight: 500;
                    transition: var(--transition);
                    position: relative;
                    padding: 5px 0;
                    }
                    
.nav-links a::after {
                        content: '';
                        position: absolute;
                        bottom: -2px;
                        left: 0;
                        width: 0;
                        height: 2px;
                        background-color: var(--secondary-color);
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
                    }
                    
.nav-links a:hover::after, 
.nav-links a.active::after {
                        width: 100%;
    opacity: 1;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--secondary-color);
}

.language-select-container {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
                background-color: var(--bg-white);
    border-radius: 5px;
    overflow: hidden;
                border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.language-select-container:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.language-select {
    padding: 5px 10px 5px 30px;
    background-color: transparent;
    border: none;
                cursor: pointer;
                transition: var(--transition);
    appearance: none;
    font-size: 0.95em;
    color: var(--text-dark);
    outline: none;
}

.language-icon {
    position: absolute;
    left: 8px;
    font-size: 0.9em;
    color: var(--secondary-color);
    transition: transform 0.5s ease;
    pointer-events: none;
}

/* Active link indicator */
.nav-links a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
    opacity: 1;
}

.mobile-menu-btn {
                display: none;
                flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    background: transparent;
    border: none;
                cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(135deg, var(--primary-color) 0%, #e0b800 100%);
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        z-index: 999;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
        padding: 16px !important;
        margin: 0;
        border-radius: 10px;
        background-color: rgba(255,255,255,0.2);
        font-size: 1.2em;
        font-weight: 500;
        letter-spacing: 0.5px;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-links.active a {
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Staggered animation for each link */
    .nav-links a:nth-child(1) { transition-delay: 0.05s; }
    .nav-links a:nth-child(2) { transition-delay: 0.1s; }
    .nav-links a:nth-child(3) { transition-delay: 0.15s; }
    .nav-links a:nth-child(4) { transition-delay: 0.2s; }
    .nav-links a:nth-child(5) { transition-delay: 0.25s; }
    .nav-links a:nth-child(6) { transition-delay: 0.3s; }
    
    .nav-links a:hover {
        background-color: rgba(255,255,255,0.3);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* Improved mobile button animation */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        height: 24px;
                    width: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
    }
    
    .mobile-menu-btn span {
        width: 100%;
                    height: 3px;
                    background-color: var(--text-dark);
                    border-radius: 3px;
        transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }
    
    .mobile-menu-btn span:nth-child(1) {
        width: 50%;
        align-self: flex-end;
    }
    
    .mobile-menu-btn span:nth-child(3) {
        width: 75%;
        align-self: flex-end;
    }
    
    body.menu-open .mobile-menu-btn span:nth-child(1) {
        width: 100%;
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    body.menu-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    
    body.menu-open .mobile-menu-btn span:nth-child(3) {
        width: 100%;
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .scroll-progress-container {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 3px;
        background: transparent;
        z-index: 999;
    }

    .scroll-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        width: 0;
        transition: width 0.2s ease;
    }

    @media (max-width: 768px) {
        .scroll-progress-container {
            top: 60px;
        }
    }
}

/* Add subtle animation for desktop navigation as well */
@media (min-width: 769px) {
    .nav-links a {
        transition: color 0.3s, transform 0.3s;
    }
    
    .nav-links a:hover {
        transform: translateY(-2px);
    }
}

/* Smaller mobile adjustments */
@media (max-width: 576px) {
    .header .nav {
        padding: 0 10px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .language-select-container {
        right: 50px;
    }
    
    .language-select {
        font-size: 0.8em;
        padding: 3px 6px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .logo img {
        height: 35px;
    }
    
    .language-select-container {
        right: 45px;
    }
}

/* Fix for touch devices */
@media (pointer: coarse) {
    .nav-links a, 
    .language-select,
    .mobile-menu-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Sections General Styling */
.section {
    padding: 80px 0;
    scroll-margin-top: 80px;
    width: 100%;
    
    & .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        width: 100%;
    }
    
    & .section-title {
        font-size: 2.2em;
        color: var(--text-dark);
        text-align: center;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 15px;
        
        &::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 3px;
            background-color: var(--primary-color);
        }
    }
    
    & .star-divider {
        color: var(--primary-color);
        font-size: 2em;
        margin: 20px 0;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        
        &::before, &::after {
            content: '';
            height: 1px;
            background-color: #ddd;
            flex: 1;
            margin: 0 15px;
        }
    }
}

/* Home Section */
#home {
    background-color: var(--bg-light);
    margin-top: 0;
    padding-top: 70px;
    
    & .main-content {
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    padding: 0 20px;
}

    & .title {
        font-size: 2.5em;
        color: var(--text-dark);
    margin-bottom: 30px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    }
    
    & .service-logo {
        width: 150px;
        margin-bottom: 20px;
        transition: transform 0.3s ease;
        
        &:hover {
            transform: scale(1.05);
        }
    }
    
    & .passport-container {
        margin: 30px 0;
        position: relative;
        overflow: hidden;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
    }
    
    & .service-text {
        font-size: 1.2em;
    margin: 20px 0;
        color: var(--text-dark);
        padding: 20px;
        background-color: var(--bg-white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        
        & p {
            margin-bottom: 10px;
            
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

/* About Section */
#about {
    background-color: var(--bg-white);
    
    & .about-content {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        align-items: center;
        justify-content: center;
        margin-top: 40px;
        
        & .about-image {
            flex: 1;
            min-width: 300px;
            position: relative;
            
            & img {
                width: 100%;
                border-radius: var(--border-radius);
                box-shadow: var(--shadow);
                transition: transform 0.5s ease;
                
                &:hover {
                    transform: translateY(-10px);
                }
            }
            
            & .experience-badge {
                position: absolute;
                bottom: -20px;
                right: -20px;
                background-color: var(--primary-color);
                color: var(--text-dark);
                width: 100px;
                height: 100px;
                border-radius: 50%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                box-shadow: var(--shadow);
                animation: pulse 2s infinite;
                
                & .years {
                    font-size: 2em;
                    font-weight: 700;
                    line-height: 1;
                }
                
                & .text {
                    font-size: 0.8em;
                    text-align: center;
                }
            }
        }
        
        & .about-text {
            flex: 1;
            min-width: 300px;
            
            & .about-subtitle {
                color: var(--secondary-color);
                font-size: 1.5em;
                margin-bottom: 15px;
                font-weight: 600;
                position: relative;
                padding-left: 15px;
                
                &::before {
                    content: '';
                    position: absolute;
                    left: 0;
                    top: 0;
                    height: 100%;
                    width: 5px;
                    background-color: var(--primary-color);
                    border-radius: 5px;
                }
            }
            
            & .about-subtitle-small {
                color: var(--text-dark);
                font-size: 1.3em;
                margin: 25px 0 15px;
                font-weight: 600;
            }
            
            & p {
                margin-bottom: 15px;
                line-height: 1.8;
                color: var(--text-light);
                font-size: 1.05em;
                text-align: justify;
                
                &:first-of-type {
                    font-weight: 500;
                    color: var(--text-dark);
                }
            }
            
            & .why-choose-us {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 15px;
                margin-top: 20px;
                
                & .reason {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    text-align: center;
                    padding: 15px 10px;
                    background-color: #f9f9f9;
                    border-radius: var(--border-radius);
                    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
                    transition: transform 0.3s ease, box-shadow 0.3s ease;
                    
                    &:hover {
                        transform: translateY(-5px);
                        box-shadow: var(--shadow);
                    }
                    
                    & i {
                        font-size: 2em;
                        color: var(--primary-color);
                        margin-bottom: 10px;
                    }
                    
                    & span {
                        font-weight: 500;
                        color: var(--text-dark);
                    }
                }
            }
        }
    }
}

/* Services Section */
#services {
    background-color: #f9f9f9;
    background-image: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    
    & .services-intro {
        max-width: 800px;
        margin: 30px auto;
        text-align: center;
        padding: 0 20px;
        
        & p {
            font-size: 1.1em;
            line-height: 1.8;
            color: var(--text-dark);
        }
    }
    
    & .services-detailed-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-top: 40px;
        
        & .service-detailed-card {
            background-color: var(--bg-white);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            display: flex;
            
            &:hover {
                transform: translateY(-5px);
                box-shadow: 0 15px 30px rgba(0,0,0,0.15);
            }
            
            & .service-detailed-icon {
                width: 60px;
                min-width: 60px;
                height: 60px;
                background-color: var(--primary-color);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                margin: 20px;
                
                & i {
                    font-size: 1.8em;
                    color: var(--text-dark);
                }
            }
            
            & .service-detailed-content {
                padding: 20px 20px 20px 0;
                flex: 1;
                
                & h3 {
                    color: var(--secondary-color);
                    margin-bottom: 10px;
                    font-size: 1.3em;
                    position: relative;
                }
                
                & p {
                    color: var(--text-light);
                    line-height: 1.6;
                    margin-bottom: 15px;
                }
                
                & .service-features {
                    list-style-type: none;
                    padding: 0;
                    
                    & li {
                        margin-bottom: 8px;
                        display: flex;
                        align-items: center;
                        color: var(--text-dark);
                        
                        & i {
                            color: var(--primary-color);
                            margin-right: 10px;
                            font-size: 1.1em;
                        }
                    }
                }
            }
        }
    }
    
    & .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        margin-top: 40px;
        
        & .service-card {
            background-color: var(--bg-white);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            margin-top: 15px;
            
            &:hover {
                transform: translateY(-10px);
                box-shadow: 0 15px 30px rgba(0,0,0,0.15);
            }
            
            & img {
                width: 100%;
                height: 200px;
                object-fit: cover;
                transition: transform 0.5s ease;
                
                &:hover {
                    transform: scale(1.05);
                }
            }
            
            & h3 {
                padding: 15px 15px 5px;
                color: var(--text-dark);
                position: relative;
                
                &::after {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 15px;
                    width: 30px;
                    height: 2px;
                    background-color: var(--primary-color);
                }
            }
            
            & p {
                padding: 10px 15px 20px;
                color: var(--text-light);
                line-height: 1.6;
            }
        }
    }
}

/* FAQ Section */
#faq {
    background-color: var(--bg-white);
    
    & .faq-container {
        max-width: 800px;
        margin: 40px auto;
        
        & .faq-category {
            margin: 30px 0 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary-color);
            
            & .faq-category-title {
                font-size: 1.4em;
                color: var(--secondary-color);
                font-weight: 600;
            }
        }
        
        & .faq-item {
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: transform 0.3s ease;
            
            &:hover {
                transform: translateY(-3px);
                box-shadow: var(--shadow);
            }
            
            & .faq-question {
                padding: 15px;
                background-color: #f9f9f9;
                cursor: pointer;
                display: flex;
                justify-content: space-between;
                align-items: center;
                
                & h3 {
                    margin: 0;
                    font-size: 1.1em;
                    color: var(--text-dark);
                    transition: color 0.3s ease;
                }
                
                & .toggle-icon {
                    font-size: 1.5em;
                    transition: transform 0.3s ease;
                    color: var(--primary-color);
                }
            }
            
            & .faq-answer {
                padding: 0;
                max-height: 0;
                overflow: hidden;
                transition: all 0.3s ease;
                background-color: var(--bg-white);
                
                & p {
                    color: var(--text-light);
                    line-height: 1.6;
                    margin-bottom: 15px;
                    
                    &:last-child {
                        margin-bottom: 0;
                    }
                    
                    &.note {
                        font-style: italic;
                        font-size: 0.9em;
                        color: #777;
                        padding-left: 15px;
                        border-left: 3px solid var(--primary-color);
                    }
                    
                    & strong {
                        color: var(--text-dark);
                        font-weight: 600;
                    }
                }
                
                & ul {
                    margin-bottom: 15px;
                    padding-left: 20px;
                    
                    & li {
                        color: var(--text-light);
                        margin-bottom: 8px;
                        line-height: 1.5;
                        
                        &:last-child {
                            margin-bottom: 0;
                        }
                    }
                }
            }
            
            &.active {
                & .faq-question {
                    background-color: var(--primary-color);
                    
                    & h3 {
                        color: var(--text-dark);
                    }
                    
                    & .toggle-icon {
                        transform: rotate(45deg);
                        color: var(--text-dark);
                    }
                }
                
                & .faq-answer {
                    padding: 15px;
                    max-height: 2000px;
                }
            }
        }
    }
}

/* Contact Section */
#contact {
    background-color: #f9f9f9;
    background-image: linear-gradient(135deg, #f9f9f9 0%, #e6e6e6 100%);
    
    & .contact-intro {
        max-width: 700px;
        margin: 0 auto 30px;
        text-align: center;
        
        & p {
            font-size: 1.1em;
            line-height: 1.6;
            color: var(--text-dark);
        }
    }
    
    & .contact-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top: 40px;
    }
    
    & .contact-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        
        & .contact-card {
            background-color: var(--bg-white);
            border-radius: var(--border-radius);
            padding: 20px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            
            &:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            }
            
            & .contact-card-icon {
                width: 60px;
                height: 60px;
                background-color: var(--primary-color);
                border-radius: 50%;
                margin-bottom: 15px;
                display: flex;
                align-items: center;
                justify-content: center;
                
                & i {
                    font-size: 1.5em;
                    color: var(--text-dark);
                }
            }
            
            & h3 {
                color: var(--secondary-color);
                margin-bottom: 10px;
                font-size: 1.2em;
            }
            
            & p {
                color: var(--text-dark);
                margin-bottom: 5px;
                font-size: 0.95em;
                
                &:last-child {
                    margin-bottom: 0;
                }
            }
            
            & .qr-code {
                width: 100px;
                margin: 10px auto 0;
                border-radius: 5px;
                box-shadow: 0 3px 5px rgba(0,0,0,0.1);
            }
        }
    }
    
    & .contact-map-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        
        & .contact-map {
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            height: 100%;
            
            & iframe {
                display: block;
                height: 100%;
                min-height: 450px;
            }
        }
        
        & .contact-form {
            background-color: var(--bg-white);
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: var(--shadow);
            
            & h3 {
                color: var(--secondary-color);
    margin-bottom: 20px;
                font-size: 1.3em;
                position: relative;
                padding-bottom: 10px;
                
                &::after {
                    content: '';
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    width: 40px;
                    height: 2px;
                    background-color: var(--primary-color);
                }
            }
            
            & .form-group {
                margin-bottom: 20px;
                
                & input,
                & textarea,
                & select {
                    width: 100%;
                    padding: 12px 15px;
                    border: 1px solid #ddd;
                    border-radius: 5px;
                    font-size: 1em;
                    transition: var(--transition);
                    
                    &:focus {
                        outline: none;
                        border-color: var(--primary-color);
                        box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
                    }
                }
                
                & select {
                    appearance: none;
                    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0l6 6 6-6z" fill="%23333"/></svg>');
                    background-repeat: no-repeat;
                    background-position: right 15px center;
                    padding-right: 30px;
                }
                
                & textarea {
                    resize: vertical;
                    min-height: 120px;
                }
            }
            
            & .submit-btn {
                background-color: var(--primary-color);
                color: var(--text-dark);
                border: none;
                padding: 12px 25px;
                border-radius: 5px;
                cursor: pointer;
                font-size: 1em;
                font-weight: 500;
                transition: var(--transition);
                display: inline-block;
                
                &:hover {
                    background-color: var(--primary-dark);
                    transform: translateY(-3px);
                    box-shadow: 0 5px 15px rgba(230, 194, 0, 0.3);
                }
                
                &:active {
                    transform: translateY(0);
                }
            }
        }
    }
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
    
    & .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        
        & p {
            margin: 0;
            font-size: 0.9em;
            opacity: 0.8;
        }
    }
}

/* Improved Mobile Styles */
@media (max-width: 1200px) {
    .container, 
    .nav {
        max-width: 95%;
    }
    
    #contact .contact-map-form {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    #services .services-detailed-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    #contact .contact-map-form {
        grid-template-columns: 1fr;
    }
    
    #contact .contact-map iframe {
        height: 350px;
        min-height: auto;
    }
    
    .article-nav {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header .nav {
        padding: 0 15px;
    }
    
    .header .nav .nav-links {
        display: block; /* Change from none to block */
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto;
        transform: translateX(-100%); /* Off-screen by default */
        transition: transform 0.3s ease-in-out;
        opacity: 0; /* Hide initially */
        visibility: hidden; /* Hide initially */
        
        &.active {
            transform: translateX(0); /* Slide in when active */
            opacity: 1; /* Show when active */
            visibility: visible; /* Show when active */
        }
        
        & a {
            padding: 12px !important; /* Larger touch target */
            border-radius: 5px;
            background-color: rgba(255,255,255,0.2);
            width: 100%;
            text-align: center;
            font-size: 1.1em; /* Slightly larger text */
            
            &:hover {
                background-color: rgba(255,255,255,0.4);
            }
        }
    }
    
    .header .nav .mobile-menu-btn {
        display: flex !important;
        z-index: 1050; /* Higher than header z-index */
        position: relative;
    }
    
    .about-content,
    .contact-container {
        flex-direction: column;
    }
    
    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .section {
        padding: 50px 0;
    }
    
    #home .title {
        font-size: 2em;
    }
    
    .contact-form, .contact-info {
        padding: 20px !important;
    }
    
    #services .services-detailed-grid {
        grid-template-columns: 1fr;
    }
    
    #services .service-detailed-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    #services .service-detailed-card .service-detailed-icon {
        margin: 20px 0 10px;
    }
    
    #services .service-detailed-card .service-detailed-content {
        padding: 0 20px 20px;
    }
    
    #services .service-detailed-card .service-features li {
        justify-content: center;
    }
    
    #faq .faq-container .faq-category .faq-category-title {
        font-size: 1.2em;
    }
    
    #faq .faq-container .faq-item .faq-question h3 {
        font-size: 1em;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .play-pause-btn {
        width: 35px;
        height: 35px;
    }
    
    #about .about-image .experience-badge {
        width: 80px;
        height: 80px;
        bottom: -15px;
        right: -15px;
    }
    
    #about .about-text .about-subtitle {
        font-size: 1.3em;
    }
    
    #about .about-text .why-choose-us {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    #contact .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    #contact .contact-card .contact-card-icon {
        width: 50px;
        height: 50px;
    }
    
    #contact .contact-card h3 {
        font-size: 1.1em;
    }
    
    #contact .contact-card p {
        font-size: 0.9em;
    }
    
    #contact .contact-form {
        padding: 20px;
    }
    
    #articles .articles-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    #articles .article-card {
        padding: 25px;
        padding-top: 55px;
    }
    
    #articles .article-card-title {
        font-size: 1.2rem;
    }
    
    #articles .article-card-icon-circle {
        width: 60px;
        height: 60px;
        top: -20px;
        
        & i {
            font-size: 1.5rem;
        }
    }
    
    #articles .view-all-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .article-detail .article-title {
        font-size: 1.8em;
    }
    
    .article-detail .article-meta {
        flex-wrap: wrap;
    }
    
    .related-items {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .filter-control {
        width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .language-select-container {
        position: absolute;
        top: 15px;
        right: 70px;
        margin-left: 0;
    }
    
    .article-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-container {
        width: 100%;
    }
    
    .filter-container select {
        flex-grow: 1;
    }
    
    .reset-filters {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-share {
        width: 100%;
        justify-content: flex-start;
    }
    
    .article-nav {
        grid-template-columns: 1fr;
    }
    
    .prev-article, .next-article {
        padding: 12px 15px;
    }
    
    .article-header .article-title {
        font-size: 1.6em;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }
    
    .process-step::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .step-icon-circle {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .step-number {
        top: 10px;
        right: 10px;
    }
    
    .step-content h4 {
        font-size: 1.2rem;
    }
    
    .step-details li {
        justify-content: center;
    }
    
    .process-title {
        font-size: 1.4rem;
    }

    .scroll-progress-container {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 3px;
        background: transparent;
        z-index: 999;
    }

    .scroll-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        width: 0;
        transition: width 0.2s ease;
    }

    @media (max-width: 768px) {
        .scroll-progress-container {
            top: 60px;
        }
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .header .nav .logo img {
        height: 40px;
    }
    
    #home .title {
        font-size: 1.8em;
    }
    
    .section-title {
        font-size: 1.8em !important;
    }
    
    .container, .nav {
        padding: 0 15px;
    }
    
    .pagination-item {
        min-width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6em !important;
    }
    
    #home .service-text {
        font-size: 1em;
    }
    
    .form-group input, 
    .form-group textarea,
    .form-group select,
    #contact .form-group input, 
    #contact .form-group textarea,
    #contact .form-group select {
        padding: 10px !important;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    #services .services-intro p {
        font-size: 1em;
    }
    
    #services .service-detailed-card .service-detailed-content h3 {
        font-size: 1.2em;
    }
    
    #faq .faq-container .faq-category {
        margin: 25px 0 10px;
    }
    
    #faq .faq-container .faq-item .faq-answer ul {
        padding-left: 15px;
    }
    
    .passport-slider-nav {
        bottom: 10px;
    }
    
    .slider-dots {
        gap: 8px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
    }
    
    #about .about-image .experience-badge {
        width: 70px;
        height: 70px;
        bottom: -10px;
        right: -10px;
        
        & .years {
            font-size: 1.6em;
        }
        
        & .text {
            font-size: 0.7em;
        }
    }
    
    #about .about-text .why-choose-us {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #about .about-text .why-choose-us .reason i {
        font-size: 1.6em;
    }
    
    #contact .contact-info {
        grid-template-columns: 1fr 1fr;
    }
    
    #contact .contact-map iframe {
        height: 250px;
    }
    
    #articles .articles-card-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .process-step {
        padding: 15px 10px;
        margin-bottom: 25px;
    }
    
    .step-icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .step-icon-circle i {
        font-size: 1.4rem;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .step-content h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .step-details li {
        font-size: 0.9rem;
    }
    
    .process-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .process-step::before {
        height: 25px;
    }

    .scroll-progress-container {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 3px;
        background: transparent;
        z-index: 999;
    }

    .scroll-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        width: 0;
        transition: width 0.2s ease;
    }

    @media (max-width: 768px) {
        .scroll-progress-container {
            top: 60px;
        }
    }
}

@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .header .nav .logo img {
        height: 35px;
    }
    
    .container, .nav {
        padding: 0 10px;
    }
    
    #home .title {
        font-size: 1.6em;
    }
    
    .section-title {
        font-size: 1.5em !important;
    }
    
    #about .about-text .why-choose-us {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .pagination-item {
        min-width: 30px;
        height: 30px;
        font-size: 0.9em;
    }
}

/* Utility classes for touch targets */
@media (pointer: coarse) {
    /* Ensures touch targets are at least 44px × 44px */
    .nav-links a, 
    .submit-btn,
    .filter-btn,
    .view-all-btn,
    .pagination-item,
    .back-link,
    .social-share a,
    .faq-question {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Fix for slider buttons */
    .slider-btn,
    .play-pause-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .mobile-menu-btn,
    .social-share,
    .pagination,
    .slider-nav,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --primary-dark: #000;
        --secondary-color: #005;
        --text-dark: #000;
        --text-light: #333;
        --bg-light: #fff;
        --bg-white: #fff;
        --shadow: 0 0 0 1px #000;
    }
    
    * {
        border-color: #000 !important;
    }
    
    a, button {
        text-decoration: underline !important;
    }
}

/* For screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for Safari fixed position bug */
@supports (-webkit-touch-callout: none) {
    .header {
        position: -webkit-sticky;
    }
}

/* Add smooth font display */
@font-face {
    font-family: 'Kanit';
    src: url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600&display=swap');
    font-display: swap;
    font-style: normal;
    font-weight: normal;
}

/* Fix font loading across all devices */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif !important;
}

/* Fix for position sticky on iOS */
.header {
    position: -webkit-sticky;
    position: sticky;
}

/* Add these styles for the new elements */

/* Service Icons */
.service-icon {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 2;
    transition: transform 0.3s ease;
}

.service-icon i {
    font-size: 1.5em;
    color: var(--text-dark);
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
}

/* Title Span */
.title span {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Footer Content */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.social-icons i {
    font-size: 1.2em;
    color: white;
}

/* Icon enhancements */
.service-text i, 
.contact-links i {
    margin-right: 10px;
    color: var(--primary-color);
}

.submit-btn i {
    margin-right: 8px;
}

/* Update existing passport container styles for the new slider */
.passport-slider-container {
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Slider styles */
.passport-slider {
    display: flex;
    width: 100%;
    position: relative;
    height: auto;
    overflow: hidden;
}

.passport-slide {
    flex: 0 0 100%;
    width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.passport-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.passport-slide.prev {
    transform: translateX(-100%);
}

.passport-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slider navigation controls */
.passport-slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 5;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1em;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Play/pause button */
.slider-play-pause {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
}

.play-pause-btn {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-pause-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.play-pause-btn .fa-play {
    display: none;
}

.play-pause-btn.play .fa-play {
    display: inline-block;
}

.play-pause-btn.play .fa-pause {
    display: none;
}

.play-pause-btn.pause .fa-pause {
    display: inline-block;
}

/* Add hover effects for slider */
.passport-slider-container:hover .slider-btn,
.passport-slider-container:hover .play-pause-btn {
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .play-pause-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .passport-slider-nav {
        bottom: 10px;
    }
    
    .slider-dots {
        gap: 8px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
    }
}

/* Animation for experience badge */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile adjustments for About section */
@media (max-width: 768px) {
    #about .about-image .experience-badge {
        width: 80px;
        height: 80px;
        bottom: -15px;
        right: -15px;
    }
    
    #about .about-text .about-subtitle {
        font-size: 1.3em;
    }
    
    #about .about-text .why-choose-us {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    #about .about-image .experience-badge {
        width: 70px;
        height: 70px;
        bottom: -10px;
        right: -10px;
        
        & .years {
            font-size: 1.6em;
        }
        
        & .text {
            font-size: 0.7em;
        }
    }
    
    #about .about-text .why-choose-us {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #about .about-text .why-choose-us .reason i {
        font-size: 1.6em;
    }
}

/* Mobile styles for contact section */
@media (max-width: 992px) {
    #contact .contact-map-form {
        grid-template-columns: 1fr;
    }
    
    #contact .contact-map iframe {
        height: 350px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    #contact .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    #contact .contact-card .contact-card-icon {
        width: 50px;
        height: 50px;
    }
    
    #contact .contact-card h3 {
        font-size: 1.1em;
    }
    
    #contact .contact-card p {
        font-size: 0.9em;
    }
    
    #contact .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    #contact .contact-info {
        grid-template-columns: 1fr 1fr;
    }
    
    #contact .contact-map iframe {
        height: 250px;
    }
    
    #contact .form-group input, 
    #contact .form-group textarea,
    #contact .form-group select {
        padding: 10px;
    }
}

/* Articles Section */
#articles {
    background-color: var(--bg-light);
    padding: 60px 0;
    
    & .articles-card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
        margin: 40px 0;
    }
    
    & .article-card {
        background-color: #fff;
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        position: relative;
        padding-top: 60px;
        
        &:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        & .article-card-number {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: var(--primary-color);
            color: #fff;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        & .article-card-icon-circle {
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 70px;
            background-color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            
            & i {
                font-size: 1.7rem;
                color: #fff;
            }
        }
        
        & .article-card-title {
            color: var(--text-dark);
            font-size: 1.3rem;
            font-weight: 500;
            margin-bottom: 15px;
            text-align: center;
        }
        
        & .article-card-underline {
            width: 50px;
            height: 3px;
            background-color: var(--primary-color);
            margin: 0 auto 20px;
        }
        
        & .article-card-description {
            color: var(--text-light);
            line-height: 1.5;
            margin-bottom: 25px;
            flex-grow: 1;
            text-align: center;
        }
        
        & .article-card-link {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
            display: inline-block;
            margin: auto auto 0;
            transition: all 0.3s ease;
            text-align: center;
            align-self: center;
            
            &:hover {
                color: var(--secondary-color);
            }
        }
    }
    
    & .no-articles {
        text-align: center;
        padding: 40px 20px;
        color: var(--text-light);
    font-size: 1.2em;
        background-color: rgba(255,255,255,0.8);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        margin: 30px 0;
        grid-column: 1/-1;
    }
    
    & .view-all-articles {
        text-align: center;
        margin: 20px 0 10px;
        
        & .view-all-btn {
            display: inline-flex;
            align-items: center;
            padding: 12px 25px;
            background-color: var(--primary-color);
            color: #fff;
            text-decoration: none;
            border-radius: var(--border-radius);
            font-weight: 500;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            
            & i {
                margin-left: 8px;
            }
            
            &:hover {
                background-color: var(--secondary-color);
                transform: translateY(-2px);
                
                & i {
                    transform: translateX(3px);
                    transition: transform 0.3s ease;
                }
            }
        }
    }
}

@media (max-width: 768px) {
    #articles .articles-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    #articles .article-card {
        padding: 25px;
        padding-top: 55px;
    }
    
    #articles .article-card-title {
        font-size: 1.2rem;
    }
    
    #articles .article-card-icon-circle {
        width: 60px;
        height: 60px;
        top: -20px;
        
        & i {
            font-size: 1.5rem;
        }
    }
    
    #articles .view-all-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    #articles .articles-card-grid {
        grid-template-columns: 1fr;
    }
}

/* All Articles Page Styles */
.all-articles {
    padding: 60px 0;
    background-color: var(--bg-white);
    background-image: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

.filters-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.filter-control {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--bg-white);
    transition: var(--transition);
}

.filter-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.search-btn {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

.reset-btn {
    background-color: #f1f1f1;
    color: var(--text-dark);
}

.reset-btn:hover {
    background-color: #e5e5e5;
}

.results-summary {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.95em;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 5px;
    background-color: #f5f5f5;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.pagination-item:hover {
    background-color: #e5e5e5;
}

.pagination-item.active {
    background-color: var(--primary-color);
    font-weight: 500;
}

.pagination-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.back-to-home {
    margin-top: 30px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link i {
    transition: transform 0.2s ease;
}

.back-link:hover {
    color: var(--primary-dark);
}

.back-link:hover i {
    transform: translateX(-5px);
}

/* Article Detail Page Styles */
.article-detail {
    padding: 50px 0;
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-detail .article-title {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.article-detail .article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.95em;
}

.article-meta .category {
    background-color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    color: var(--text-dark);
    font-weight: 500;
}

.article-content {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.1em;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.article-content h2, 
.article-content h3 {
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.article-content ul, 
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-to-articles {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-to-articles i {
    transition: transform 0.2s ease;
}

.back-to-articles:hover {
    color: var(--primary-dark);
}

.back-to-articles:hover i {
    transform: translateX(-5px);
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--text-dark);
    transition: var(--transition);
}

.social-share a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    font-size: 1.5em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.related-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-item {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 15px;
    transition: var(--transition);
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.related-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.related-item a:hover {
    color: var(--primary-dark);
}

/* PrEvious/NExt ArticlE Navigation */
.article-next-prev {
    margin-bottom: 30px;
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.prev-article, 
.next-article {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.prev-article {
    justify-content: flex-start;
}

.next-article {
    justify-content: flex-end;
}

.prev-article:hover,
.next-article:hover {
    background-color: var(--primary-color);
    color: white;
}

.prev-article i, 
.next-article i {
    color: var(--accent);
    transition: all 0.3s ease;
}

.prev-article:hover i, 
.next-article:hover i {
    color: white;
}

.prev-article i {
    margin-right: 10px;
}

.next-article i {
    margin-left: 10px;
}

.prev-article.empty, 
.next-article.empty {
    visibility: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .article-detail .article-title {
        font-size: 1.8em;
    }
    
    .article-detail .article-meta {
        flex-wrap: wrap;
    }
    
    .related-items {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .filter-control {
        width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
    }
}

.no-articles {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 1.2em;
    background-color: rgba(255,255,255,0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 30px 0;
}

/* Process Steps */
.process-steps-container {
    margin: 50px auto 30px;
    max-width: 900px;
}

.process-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.process-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.process-step {
    display: flex;
    margin-bottom: 30px;
    position: relative;
    padding: 25px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 32px;
    height: 30px;
    width: 2px;
    background-color: var(--primary-color);
    z-index: 1;
}

.process-step:last-child::before {
        display: none;
}

.step-icon-circle {
    width: 64px;
    height: 64px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.step-icon-circle i {
    font-size: 1.8rem;
    color: #fff;
}

.step-number {
    position: absolute;
    width: 28px;
    height: 28px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 15px;
    right: 15px;
    z-index: 2;
    font-size: 0.9rem;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 500;
}

.step-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-light);
}

.step-details li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Media queries for process steps */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }
    
    .process-step::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .step-icon-circle {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .step-number {
        top: 10px;
        right: 10px;
    }
    
    .step-content h4 {
        font-size: 1.2rem;
    }
    
    .step-details li {
        justify-content: center;
    }
    
    .process-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .process-step {
        padding: 15px 10px;
        margin-bottom: 25px;
    }
    
    .step-icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .step-icon-circle i {
        font-size: 1.4rem;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .step-content h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .step-details li {
        font-size: 0.9rem;
    }
    
    .process-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .process-step::before {
        height: 25px;
    }
}

/* Hide specific links at the top of the page */
a[href*="asdasdas"],
a[href*="document"],
a[href*="mou"],
a[href*="passport"],
a[href*="registration"],
a[href*="verification"],
body > a:not([href^="#"]):not([class]) {
    display: none !important;
}

/* Target text-based links directly */
body > a:contains("asdasdas"),
body > a:contains("document"), 
body > a:contains("mou"),
body > a:contains("passport"),
body > a:contains("registration"),
body > a:contains("verification") {
    display: none !important;
}

/* Additional selector to hide links at the very top of page */
body > a {
    display: none !important;
}

/* Hide links injected into the top of the page */
body::before {
    display: none !important;
    content: none !important;
}

/* BrEadcrumbs */
.breadcrumbs {
    background-color: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.9em;
    margin-top: 60px;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #bbbbbb;
    font-size: 0.8em;
}

.breadcrumbs .current {
    color: var(--text-light);
    font-weight: 500;
}

/* ArticlE DEtail EnhancEmEnts */
.article-detail {
    padding-top: 30px;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.article-title {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.9em;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    color: var(--accent);
}

.article-content {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.article-content h2, 
.article-content h3 {
    color: var(--primary);
    margin: 30px 0 15px;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.back-to-articles {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-to-articles:hover {
    color: var(--accent);
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-share span {
    color: var(--text-light);
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--light-bg);
    color: var(--text-dark);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* RElatEd ArticlEs */
.related-articles {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.related-articles h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.related-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.related-item i {
    color: var(--accent);
    margin-top: 5px;
}

.related-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.related-item a:hover {
    color: var(--primary-color);
}

/* PrEvious/NExt ArticlE Navigation */
.article-next-prev {
    margin-bottom: 30px;
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.prev-article, 
.next-article {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.prev-article {
    justify-content: flex-start;
}

.next-article {
    justify-content: flex-end;
}

.prev-article:hover,
.next-article:hover {
    background-color: var(--primary-color);
    color: white;
}

.prev-article i, 
.next-article i {
    color: var(--accent);
    transition: all 0.3s ease;
}

.prev-article:hover i, 
.next-article:hover i {
    color: white;
}

.prev-article i {
    margin-right: 10px;
}

.next-article i {
    margin-left: 10px;
}

.prev-article.empty, 
.next-article.empty {
    visibility: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .article-detail .article-title {
        font-size: 1.8em;
    }
    
    .article-detail .article-meta {
        flex-wrap: wrap;
    }
    
    .related-items {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .filter-control {
        width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
    }
}

.no-articles {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 1.2em;
    background-color: rgba(255,255,255,0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 30px 0;
}

/* Process Steps */
.process-steps-container {
    margin: 50px auto 30px;
    max-width: 900px;
}

.process-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.process-title::after {
    content: '';
        position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.process-step {
    display: flex;
    margin-bottom: 30px;
    position: relative;
    padding: 25px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 32px;
    height: 30px;
    width: 2px;
    background-color: var(--primary-color);
    z-index: 1;
}

.process-step:last-child::before {
        display: none;
}

.step-icon-circle {
    width: 64px;
    height: 64px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.step-icon-circle i {
    font-size: 1.8rem;
    color: #fff;
}

.step-number {
    position: absolute;
    width: 28px;
    height: 28px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
        top: 15px;
    right: 15px;
    z-index: 2;
    font-size: 0.9rem;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 500;
}

.step-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-light);
}

.step-details li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Media queries for process steps */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }
    
    .process-step::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .step-icon-circle {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .step-number {
        top: 10px;
        right: 10px;
    }
    
    .step-content h4 {
        font-size: 1.2rem;
    }
    
    .step-details li {
        justify-content: center;
    }
    
    .process-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .process-step {
        padding: 15px 10px;
        margin-bottom: 25px;
    }
    
    .step-icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .step-icon-circle i {
        font-size: 1.4rem;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .step-content h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .step-details li {
        font-size: 0.9rem;
    }
    
    .process-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .process-step::before {
        height: 25px;
    }
}

/* Mobile menu JavaScript helper */
/* Add this JavaScript to your site:
document.addEventListener('DOMContentLoaded', function() {
    const mobileMenuBtn = document.querySelector('.mobile-menu-btn');
    const navLinks = document.querySelector('.nav-links');
    
    if (mobileMenuBtn && navLinks) {
        mobileMenuBtn.addEventListener('click', function() {
            navLinks.classList.toggle('active');
            document.body.classList.toggle('menu-open');
        });
        
        // Close menu when clicking outside
        document.addEventListener('click', function(e) {
            if (!navLinks.contains(e.target) && !mobileMenuBtn.contains(e.target) && navLinks.classList.contains('active')) {
                navLinks.classList.remove('active');
                document.body.classList.remove('menu-open');
            }
        });
        
        // Close menu when window is resized above mobile breakpoint
        window.addEventListener('resize', function() {
            if (window.innerWidth > 768 && navLinks.classList.contains('active')) {
                navLinks.classList.remove('active');
                document.body.classList.remove('menu-open');
            }
        });
    }
});
*/

/* Additional mobile menu styles */
body.menu-open {
    overflow: hidden;
}

.mobile-menu-btn {
    cursor: pointer;
    padding: 5px;
    background: transparent;
    border: none;
    outline: none;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    margin-bottom: 5px;
    position: relative;
    background-color: var(--text-dark);
    border-radius: 3px;
    transform-origin: center;
    transition: var(--transition);
}

.mobile-menu-btn span:last-child {
    margin-bottom: 0;
}

body.menu-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Improved Mobile Menu Styling */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1050;
}

.mobile-menu-btn span {
        width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

@media (max-width: 768px) {
    /* ... other existing media query rules ... */
    
    .header .nav {
        height: 60px; /* Ensure consistent header height */
        align-items: center;
    }
    
    .header .nav .logo img {
        height: 40px; /* Slightly smaller logo on mobile */
    }
    
    .header .nav .mobile-menu-btn {
        display: flex !important;
        margin-left: 10px;
    }
    
    .header .nav .nav-links {
        position: fixed;
        top: 60px; /* Match header height */
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 60px); /* Full height minus header */
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        margin: 0;
        justify-content: flex-start;
        
        &.active {
            display: flex;
            transform: translateX(0);
        }
        
        & a {
            padding: 15px !important;
            margin: 0;
            border-radius: 5px;
            background-color: rgba(255,255,255,0.2);
            width: 100%;
            text-align: center;
            font-size: 1.1em;
            display: flex;
        justify-content: center;
            align-items: center;
            
            &:hover {
                background-color: rgba(255,255,255,0.4);
            }
        }
    }
    
    /* Move language selector for mobile */
    .language-select-container {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 60px; /* Position to the left of menu button */
        z-index: 1050;
    }
    
    .language-select {
        font-size: 0.9em;
        padding: 4px 8px;
    }
    
    /* Fix for menu button animation */
    body.menu-open .mobile-menu-btn span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    body.menu-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }
    
    body.menu-open .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    /* Prevent body scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* ... other existing media query rules ... */
}

/* Additional adjustments for smaller screens */
@media (max-width: 576px) {
    .header .nav {
        padding: 0 10px;
    }
    
    .language-select-container {
        right: 50px;
    }
    
    .language-select {
        font-size: 0.8em;
        padding: 3px 6px;
    }
}

@media (max-width: 360px) {
    .language-select-container {
        right: 45px;
    }
    
    .header .nav .logo img {
        height: 35px;
    }
}

/* Fix mobile menu display issues */
@media (max-width: 768px) {
    /* Mobile menu button styling */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        height: 24px;
        width: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
        position: relative;
    }
    
    .mobile-menu-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--text-dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    /* Mobile menu itself - fixed position, off-screen by default */
    .header .nav .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--primary-color);
        padding: 20px;
        z-index: 999;
        display: flex !important; /* Always display as flex */
        flex-direction: column;
        gap: 15px;
        overflow-y: auto;
        
        /* Position off-screen by default */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    /* Show the menu when active */
    .header .nav .nav-links.active {
        transform: translateX(0);
    }
    
    /* Menu links styling */
    .header .nav .nav-links a {
        display: block;
        padding: 15px !important;
        background-color: rgba(255,255,255,0.2);
        border-radius: 5px;
        text-align: center;
        width: 100%;
        color: var(--text-dark);
        font-weight: 500;
        margin-bottom: 5px;
    }
    
    .header .nav .nav-links a:hover {
        background-color: rgba(255,255,255,0.4);
    }
    
    /* Menu button animation */
    body.menu-open .mobile-menu-btn span:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }
    
    body.menu-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }
    
    body.menu-open .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }
}

/* Fix font-face declaration */
@font-face {
    font-family: 'Kanit';
    src: url('https://fonts.gstatic.com/s/kanit/v12/nKKU-Go6G5tXcr4KPxWzVaF5NQ.woff2') format('woff2');
    font-display: swap;
    unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
    font-weight: 400;
}

/* Fix for icon display on mobile devices */
.fas, .far, .fab, .fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900;
  display: inline-block;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.fab {
  font-family: "Font Awesome 6 Brands" !important;
}

.far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400;
}

/* Force icon visibility on mobile */
@media (max-width: 768px) {
  .service-detailed-icon i,
  .contact-card-icon i,
  .article-card-icon-circle i,
  .step-icon-circle i,
  .social-icons i,
  .fa, .fas, .far, .fab {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Language selector position */
.language-select-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 55px;
    z-index: 1000;
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Additional header styling */
.header .nav {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .nav .logo img {
    height: 80px;
}

/* Critical fix for mobile menu */
@media (max-width: 768px) {
    .header .nav .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--primary-color);
        padding: 20px;
        z-index: 999;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .header .nav .nav-links.active {
        transform: translateX(0);
    }
    
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        height: 24px;
        width: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
    }
    
    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: var(--text-dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    body.menu-open .mobile-menu-btn span:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }
    
    body.menu-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }
    
    body.menu-open .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }
    
    /* Improved mobile navigation links */
    .header .nav .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 15px !important;
        background-color: rgba(255,255,255,0.2);
        border-radius: 5px;
        font-size: 1.1em;
        margin-bottom: 5px;
        transition: background-color 0.3s ease;
    }
    
    .header .nav .nav-links a:hover {
        background-color: rgba(255,255,255,0.4);
    }
}

/* Mobile menu polish */
@media (max-width: 768px) {
    .language-select-container {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 60px;
    }
    
    .language-select {
        font-size: 0.9em;
        padding: 4px 8px 4px 26px;
    }
    
    .language-icon {
        left: 6px;
        font-size: 0.8em;
    }
    
    .nav-links {
        padding-top: 40px;
    }
    
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    }
    
    .nav-links a.active {
        background-color: rgba(255,255,255,0.4);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        position: relative;
    }
    
    .nav-links a.active::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: var(--secondary-color);
    }
}

/* Improved button touch area */
.mobile-menu-btn {
    padding: 8px;
    margin: -8px; /* Increase touch area without changing layout */
}

/* Enhanced mobile menu for active links */
@media (max-width: 768px) {
    .nav-links a.active {
        background-color: rgba(255,255,255,0.4);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        position: relative;
        overflow: hidden;
    }
    
    .nav-links a.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background-color: var(--secondary-color);
    }
}