/* Existing styles remain unchanged */

/* Language Switching */
.lang-en {
    display: block;
}

/* Show Chinese when lang-zh class is on the body */
body.lang-zh .lang-zh {
    display: block;
}

body.lang-zh .lang-en {
    display: none;
}

/* Show English when lang-en class is on the body */
body.lang-en .lang-en {
    display: block;
}

body.lang-en .lang-zh {
    display: none;
}

/* Header styling */
.header-top {
    text-align: center;
    padding: 20px 0;
    background-color: #004080;  /* Dark blue background for the logo area */
}

.header-logo {
    max-width: 300px;  /* Enlarging the logo by 1.5 times */
    height: auto;
}

/* Flexbox for navigation and language switch alignment */
.nav-container {
    display: flex;
    justify-content: center;  /* Centralize the navigation bar */
    align-items: center;
    background-color: #004080;  /* Dark blue background for navigation */
    padding: 15px;
    position: relative;
}

.nav-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;  /* Align navigation items horizontally */
    justify-content: center;  /* Keep nav links centered */
}

.nav-links li {
    margin-right: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;  /* White text for navigation */
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f8d568;  /* Gold hover effect */
}

/* Language button aligned to the right */
.language-switch {
    position: absolute;
    right: 20px;
}

.language-switch button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #004080;  /* Dark blue button */
    color: #ffffff;
    border: none;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.language-switch button:hover {
    background-color: #f8d568;  /* Gold hover */
    color: #004080;  /* Dark blue text on hover */
}

/* About Us, Philosophy, Services, Portfolio sections */
section {
    padding: 50px 0;
    text-align: left;
}

h2 {
    font-size: 2em;
    color: #004080;  /* Consistent dark blue for section headings */
    margin-bottom: 20px;
}

.philosophy-section {
    background: #fff;
    padding: 40px;
    text-align: left;
    color: #333;
}

.philosophy-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.philosophy-section p {
    line-height: 1.6;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.philosophy-section ol {
    margin-left: 20px;
    counter-reset: item;
    line-height: 2;
}

.philosophy-section ol li {
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 40px;
    counter-increment: item;
    font-size: 1.5rem;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #004080;  /* Dark blue for consistency */
    color: #ffffff;  /* White text */
    text-decoration: none;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #f8d568;  /* Gold hover effect */
    color: #004080;  /* Dark blue text on hover */
}

/* Footer styles */
footer {
    background-color: #004080;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 1em;
}

/* Container */
.container {
    line-height: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

/* Mobile Optimization */
@media (max-width: 767px) {
    .nav-links {
        flex-direction: column; /* Stack navigation items vertically */
        align-items: center; /* Center items */
    }

    .nav-links li {
        margin-right: 0; /* Remove right margin */
        margin-bottom: 10px; /* Space between items */
    }

    section {
        padding: 30px 0; /* Reduce padding for mobile */
    }

    h2 {
        font-size: 1.5em; /* Smaller heading size on mobile */
    }

    .philosophy-section {
        padding: 20px; /* Reduce padding for mobile */
    }

    .philosophy-section p {
        font-size: 1.2rem; /* Smaller paragraph size on mobile */
    }

    .philosophy-section h2 {
        font-size: 1.8rem; /* Adjust heading size for mobile */
    }
    
    .philosophy-section ol li {
        padding: 20px; /* Adjust padding for mobile */
        font-size: 1.2rem; /* Smaller list item size on mobile */
    }

    .language-switch {
        position: relative; /* Adjust position for mobile */
        margin-top: 10px; /* Add margin for spacing */
    }
}
