﻿:root {
    --primary-color: #658ce7;
    --primary-light: #E9EFFC;
    --primary-dark: #5E7AC7;
    --primary-gradient: linear-gradient(145deg, #86A6F0, #A9DFC7);
    --secondary-color: #A9DFC7;
    --secondary-light: #E6F4EF;
    --gradient-accent: linear-gradient(145deg, #7FB8A0, #86A6F0);
    --secondary-dark: #7FB8A0;
    --text-color: #1E293B;
    --body-text-color: #64748B;
    --gray: #64748B;
    --background-color: #f2f5f5;
    --white: #FFFFFF;
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.5);
    --shadow-sm: 0 5px 10px -4px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(134,166,240,0.4);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: 1px solid rgba(255,255,255,0.1);
    --radius-lg: 32px;
    --radius-md: 20px;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, 'Segoe UI', 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure consistent font for headings */
h1, h2, h3, h4, h5, h6 {
    font-family: Verdana, 'Segoe UI', 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Ensure consistent font for buttons and navigation */
button, .btn, .nav-link, .lang-btn {
    font-family: Verdana, 'Segoe UI', 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (min-width:1600px) {
    .container {
        max-width: 1500px;
    }
}

.nav-logo {
    left: 2rem;
    display: flex;
}

.nav-logo .logo-img {
    height: 45px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    /*gap: 2rem;*/
    align-items: center;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-dark);
        background-color: rgba(114, 152, 241, 0.1);
    }

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            /*width: 30px;*/
            width: 50%;
            height: 3px;
            background: var(--secondary-color);
            border-radius: 2px;
        }

.nav-mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 810px) {
    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
    }

        .nav-logo a {
            font-size: 1.5rem;
            flex-direction: column;
            text-align: center;
        }

    .logo-img {
        height: 40px !important;
        margin-right: 0 !important;
        margin-top: 5px;
    }

    .nav-menu {
        position: fixed;
        /*top: 80px;*/
        top: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 888;
        border-radius: 15px;
        max-height: 0;
        overflow: hidden;
    }

        .nav-menu.active {
            transform: translateY(0);
            opacity: 1;
            max-height: 500px;
        }

    .nav-link {
        width: 100%;
        padding: 1rem 3.5rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

        .nav-link::after {
            content: '›';
            font-size: 1.2rem;
            color: var(--text-light);
        }

        .nav-link.active::after {
            display: none;
        }

    .nav-mobile-toggle {
        display: block;
        order: -1;
        margin-right: auto;
        z-index: 999;
    }
}

.navbar {
    /*background: var(--white);*/
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 15px;
    width: 95%;
    z-index: 10000;
    justify-self: center;
    padding: 0.5rem 0;
    border-radius: 15px;
    backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    /*max-width: 1400px;*/
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

/* Language Toggle Button Styles */
.lang-toggle {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color, #658ce7);
    color: var(--primary-color, #658ce7);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.lang-btn:hover {
    background: var(--primary-color, #658ce7);
    color: white;
}

.lang-btn.active {
    background: var(--primary-color, #658ce7);
    color: white;
    display: none;
}

@media (max-width: 768px) {
    .lang-toggle {
        margin-left: 0;
        margin: 10px;
        justify-content: center;
    }
}

.btn {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    z-index: 9999 !important;
}

.btn-primary {
    background: var(--secondary-dark);
    color: var(--white);
}

    .btn-primary:hover {
        background: var(--secondary-color);
        color: var(--text-color);
        transform: translateY(-2px);
    }

.btn-secondary {
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    background: rgba(255,255,255,0.4);
}

    .btn-secondary:hover {
        background: var(--primary-color);
        color: var(--white);
    }

.btn-secondary-small {
    padding: 6px 20px;
    font-weight: 500;
    font-size: medium;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    background: rgba(255,255,255,0.4);
}

    .btn-secondary-small:hover {
        background: var(--primary-color);
        color: var(--white);
    }

.text-highlight-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-highlight-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-separator {
    width: 90%;
    justify-self: center;
    /*margin: 15px;
    border-color: var(--secondary-color);
    height: 3px;*/
}

.sitemap-social {
    background: #edf2fc;
    color: var(--text-color);
    padding: 3rem 0 1rem 0;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.sitemap-section h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.sitemap-section ul {
    list-style: none;
    padding: 0;
}

.sitemap-section li {
    margin-bottom: 0.75rem;
}

.sitemap-section a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .sitemap-section ul li a::before {
        content: "›";
        font-size: 1.1rem;
        color: var(--primary-color);
    }

    .sitemap-section a:hover {
        opacity: 1;
        color: var(--primary-dark);
        transform: translateX(5px);
    }

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.contact-info i {
    color: #7298f1;
    width: 20px;
}

.social-media-floating {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1000;
}

.social-toggle {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.3);
    transition: all 0.3s ease;
    z-index: 1002;
    border: 2px solid var(--secondary-color);
}

    .social-toggle:hover {
        background: var(--white);
        color: var(--secondary-color);
        transform: scale(1.1);
    }

.social-buttons {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    margin-bottom: 10px;
}

.social-media-floating.active .social-buttons {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.social-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: block;
    background-color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 41px;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    transform: scale(0);
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.social-media-floating.active .social-btn {
    transform: scale(1);
}

    .social-media-floating.active .social-btn:nth-child(1) {
        transition-delay: 0.1s;
    }

    .social-media-floating.active .social-btn:nth-child(2) {
        transition-delay: 0.2s;
    }

    .social-media-floating.active .social-btn:nth-child(3) {
        transition-delay: 0.3s;
    }

.social-btn i {
    position: relative;
    display: inline-block;
    color: #262626;
    z-index: 3;
    transition: 0.5s;
}

.social-btn:hover i {
    color: var(--white) !important;
    transform: rotateY(360deg);
}

.social-btn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 100%;
    transition: 0.5s;
    z-index: 2;
}

.social-btn:hover::before {
    top: 0;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-btn.whatsapp::before {
    background: #25D366;
    color: white;
}

.social-btn.whatsapp i {
    color: #25D366;
}

.social-btn.youtube::before {
    background: #FF0000;
}

.social-btn.youtube i {
    color: #FF0000;
}

.social-btn.email::before {
    background: var(--primary-color);
}

.social-btn.email i {
    color: var(--primary-color);
}

.sitemap-social .social-links {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

    .sitemap-social .social-links a {
        width: 45px;
        height: 45px;
        display: block;
        background-color: var(--white);
        border: 2px solid var(--white);
        border-radius: 50%;
        text-align: center;
        line-height: 41px;
        font-size: 18px;
        position: relative;
        overflow: hidden;
        z-index: 1;
        transition: all 0.3s ease;
        text-decoration: none;
    }

        .sitemap-social .social-links a i {
            position: relative;
            display: inline-block;
            color: #262626;
            z-index: 3;
            transition: 0.5s;
        }

        .sitemap-social .social-links a:hover i {
            color: var(--white) !important;
            transform: rotateY(360deg);
        }

        .sitemap-social .social-links a::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 100%;
            transition: 0.5s;
            z-index: 2;
        }

        .sitemap-social .social-links a:hover::before {
            top: 0;
        }

        .sitemap-social .social-links a:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
        }

        .sitemap-social .social-links a.whatsapp::before {
            background: #25D366;
        }

        .sitemap-social .social-links a.whatsapp i {
            color: #25D366;
        }

        .sitemap-social .social-links a.youtube::before {
            background: #FF0000;
        }

        .sitemap-social .social-links a.youtube i {
            color: #FF0000;
        }

        .sitemap-social .social-links a.email::before {
            background: var(--primary-dark);
        }

        .sitemap-social .social-links a.email i {
            color: var(--primary-dark);
        }

@media (max-width: 768px) {
    .social-media-floating {
        right: 1rem;
        bottom: 1rem;
    }

    .social-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        line-height: 41px;
        font-size: 16px;
    }

    .social-buttons {
        gap: 10px;
    }
}

.footer-logo {
    height: 55px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 5px 10px;
}

.footer {
    background: #edf2fc;
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
}

.footer-container {
    margin-top: 15px;
}