/* Global Styles */
:root {
    --primary-color: #00796b;
    --secondary-color: #ff9800;
    --dark-color: #333333;
    --light-color: #f4f4f4;
    --text-color: #333333;
    --white-color: #ffffff;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #005b4f;
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #e68900;
    color: var(--white-color);
}

/* Header Styles */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 1rem;
    color: var(--gray-color);
}

/* Main Navigation Styles */
#main-nav {
    position: relative;
}

#main-nav .main-menu {
    display: flex;
}

#main-nav li {
    position: relative;
    margin-left: 25px;
}

#main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    display: block;
}

#main-nav .main-menu > li > a {
    padding: 10px 0;
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#main-nav .main-menu > li > a:hover::after,
#main-nav .main-menu > li > a.active::after {
    width: 100%;
}

/* Submenu Styles */
#main-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

#main-nav .has-submenu {
    position: relative;
}

#main-nav .has-submenu > a::before {
    content: '\f107'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

#main-nav .has-submenu:hover > a::before {
    transform: rotate(180deg);
}

#main-nav .has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#main-nav .submenu li {
    margin: 0;
    width: 100%;
}

#main-nav .submenu a {
    padding: 10px 15px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

#main-nav .submenu a:hover {
    background-color: var(--light-color);
    padding-left: 20px;
    color: var(--primary-color);
}

#main-nav .submenu .submenu {
    top: 0;
    left: 100%;
    margin-top: 0;
}

/* Fix for submenu that might go off-screen */
#main-nav .submenu .has-submenu:last-child .submenu,
#main-nav .main-menu > li:nth-last-child(-n+2) .submenu .submenu {
    left: auto;
    right: 100%;
}

/* Change arrow direction for submenus that open to the left */
#main-nav .submenu .has-submenu:last-child > a::before,
#main-nav .main-menu > li:nth-last-child(-n+2) .submenu .has-submenu > a::before {
    content: '\f104'; /* Font Awesome left arrow */
    float: left;
    margin-left: 0;
    margin-right: 5px;
}

/* Adjust hover behavior for left-pointing arrows */
#main-nav .submenu .has-submenu:last-child:hover > a::before,
#main-nav .main-menu > li:nth-last-child(-n+2) .submenu .has-submenu:hover > a::before {
    transform: rotate(-180deg);
}

/* Mobile Menu Toggle */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-10px);
}

.hamburger::after {
    transform: translateY(10px);
}

/* Hamburger animation to X */
.hamburger.active::before {
    transform: rotate(45deg);
}

.hamburger.active::after {
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white-color);
    text-align: center;
    padding: 150px 0;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--light-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Activities Section */
.activities {
    padding: 80px 0;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.activity-content {
    padding: 20px;
    background-color: var(--white-color);
}

.activity-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.activity-content p {
    margin-bottom: 15px;
}

/* Contact Options Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-option {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-option:hover {
    transform: translateY(-10px);
}

.contact-option .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-option h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.contact-option p {
    margin-bottom: 25px;
    color: var(--gray-color);
}

.contact-option .btn {
    margin-top: 10px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3,
.footer-links h3,
.footer-social h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-info h3::after,
.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.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%;
    color: var(--white-color);
    transition: all 0.3s ease;
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Header */
.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 80px 0;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* About Page Styles */
.about-intro {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-text p {
    margin-bottom: 15px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-vision {
    padding: 80px 0;
    background-color: var(--light-color);
}

.mission-vision .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission, .vision, .values {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission .icon, .vision .icon, .values .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mission h2, .vision h2, .values h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.values ul {
    list-style: none;
    margin-top: 15px;
}

.values li {
    margin-bottom: 10px;
}

.team {
    padding: 80px 0;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.description {
    font-size: 0.95rem;
}

.certifications {
    padding: 80px 0;
    background-color: var(--white-color);
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.certification-item {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certification-item .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.certification-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Programs Page Styles */
.program-categories {
    padding: 80px 0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 25px;
    margin: 0 10px 10px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.category-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.category-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-content {
    padding: 20px;
}

.program-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.program-content p {
    margin-bottom: 15px;
}

.program-details {
    border-top: 1px solid var(--light-gray);
    padding-top: 15px;
    margin-top: 15px;
}

.program-details li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.program-details i {
    margin-right: 10px;
    color: var(--primary-color);
}

.custom-program {
    padding: 60px 0;
    background-color: var(--light-color);
    text-align: center;
}

.custom-content {
    max-width: 800px;
    margin: 0 auto;
}

.custom-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.custom-content p {
    margin-bottom: 30px;
}

.faq {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    background-color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
}

.toggle-icon {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--white-color);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* Gallery Page Styles */
.gallery {
    padding: 80px 0;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    margin: 0 5px 10px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white-color);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

/* Quote Page Styles */
.quote-form-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.quote-form-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Form progress indicator - hidden for single page form */
.form-progress {
    display: none; /* Hide progress indicator for single page form */
}

/* Hide all progress step related styles as they're not needed for single page form */
/*
.form-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 33.33%;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.progress-step.active .step-indicator {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.progress-step.completed .step-indicator {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.progress-step.completed .step-indicator::after {
    content: '\f00c'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.step-title {
    font-size: 0.9rem;
    color: var(--gray-color);
    transition: all 0.3s ease;
}

.progress-step.active .step-title {
    color: var(--primary-color);
    font-weight: bold;
}
*/

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-details i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-details strong {
    display: block;
    margin-bottom: 5px;
}

.contact-form .form-group,
.quote-form .form-group {
    margin-bottom: 20px;
}

.contact-form label,
.quote-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.quote-form input,
.quote-form textarea,
.quote-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.2);
    outline: none;
}

.quote-form input:hover,
.quote-form textarea:hover,
.quote-form select:hover {
    border-color: var(--primary-color);
}

.quote-form input.error,
.quote-form textarea.error,
.quote-form select.error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.visible {
    display: block;
}

.contact-form textarea,
.quote-form textarea {
    height: 150px;
    resize: vertical;
}

.quote-form .form-section {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 20px;
    display: block; /* Show all sections by default */
}

/* No longer needed since we're showing all sections
.quote-form .form-section.active {
    display: block;
}
*/

.quote-form .form-section:last-child {
    border-bottom: none;
}

.quote-form .form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.quote-form .form-section h3::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 25px;
    background-color: var(--primary-color);
    margin-right: 10px;
    border-radius: 3px;
}

.quote-form .form-row {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.quote-form .form-row .form-group {
    flex: 1 1 300px;
}

.quote-form small {
    display: block;
    margin-top: 5px;
    color: var(--gray-color);
    font-size: 0.85rem;
}

.quote-form .radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.quote-form .radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.quote-form .radio-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.quote-form span {
    margin-left: 10px;
}

/* Form navigation buttons */
.form-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.quote-form .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.quote-form .checkbox-group label {
    display: flex;
    align-items: flex-start;
    margin-right: 20px;
    margin-bottom: 10px;
    font-weight: normal;
    cursor: pointer;
    white-space: normal;
    line-height: 1.4;
}

.quote-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-top: 3px;
    flex-shrink: 0;
}

.quote-form .checkbox-group.multi-column {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

/*
.form-navigation .nav-left,
.form-navigation .nav-right {
    display: flex;
    align-items: center;
}

.form-navigation .nav-right {
    justify-content: flex-end;
}

.btn-prev {
    background-color: var(--light-gray);
    color: var(--dark-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
*/

/* Navigation buttons styles hidden for single page form */
/*
.btn-prev:hover {
    background-color: #d8d8d8;
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-prev:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-next {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-next:hover {
    background-color: #005b4f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-next:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
*/

/* Improved submit button */
.quote-form .btn-submit {
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.quote-form .btn-submit:hover {
    background-color: #e68900;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-form .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quote-form .btn-submit i {
    margin-left: 10px;
}

/* Success message styles */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message i {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.success-message h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.success-message p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.success-message .btn {
    margin-top: 20px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.map {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid var(--white-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 30px;
    color: var(--white-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

.lightbox-caption {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white-color);
    padding: 15px;
    text-align: center;
}

.lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.lightbox-caption p {
    font-size: 1rem;
}

/* Animation Classes */
.animate {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide mobile menu close button in PC view */
@media (min-width: 769px) {
    .mobile-menu-close {
        display: none !important;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Responsive styles for quote form */
    .quote-form-container {
        padding: 30px 20px;
    }
    
    .form-progress {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .form-progress::before {
        display: none;
    }
    
    .progress-step {
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .step-indicator {
        margin: 0 10px 0 0;
    }
    
    .quote-form .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .quote-form .form-row .form-group {
        flex: 1 1 100%;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile menu toggle button - positioned in the nav */
    #menu-toggle {
        display: block;
        position: relative; /* Changed from absolute to relative */
        z-index: 1001;
        margin-left: auto; /* Push to the right side */
    }
    
    /* Mobile menu panel */
    #main-nav .main-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        text-align: left;
        box-shadow: none;
        overflow-y: auto;
        padding: 100px 20px 20px; /* Increased top padding to avoid overlapping with logo */
        z-index: 999; /* Lower than the header */
    }
    
    /* Ensure header stays above the mobile menu */
    header {
        position: relative;
        z-index: 1000;
        background-color: var(--white-color);
    }
    
    /* Using hamburger button for both open and close */
    
    /* Prevent body scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    #main-nav.active .main-menu {
        display: flex;
    }
    
    #main-nav li {
        margin: 0;
        position: relative;
    }
    
    #main-nav .main-menu > li > a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--light-gray);
    }
    
    /* Mobile Submenu Styles */
    #main-nav .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: var(--light-color);
        width: 100%;
        padding-left: 15px;
    }
    
    #main-nav .has-submenu > a::before {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    #main-nav .has-submenu.active > a::before {
        transform: translateY(-50%) rotate(180deg);
    }
    
    #main-nav .has-submenu.active > .submenu {
        max-height: 1000px;
    }
    
    #main-nav .submenu a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    #main-nav .submenu .submenu {
        padding-left: 15px;
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    /* Mobile submenu toggle */
    #main-nav .submenu-toggle {
        position: absolute;
        right: 0;
        top: 0;
        height: 46px;
        width: 46px;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--dark-color);
        z-index: 10;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .feature-grid,
    .activity-grid,
    .program-programs .program-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Import Google Fonts - Noto Sans TC for Traditional Chinese */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid var(--white-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 30px;
    color: var(--white-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

.lightbox-caption {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white-color);
    padding: 15px;
    text-align: center;
}

.lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.lightbox-caption p {
    font-size: 1rem;
}