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

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f8f9fa; /* Light gray background */
    font-size: 16px;
}

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

/* Header & Navigation */
header {
    background-color: #ffffff; /* White header */
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #007bff; /* Accent color */
}

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

header .logo h1 {
    font-size: 1.8rem;
    color: #0056b3; /* Darker blue for title */
    margin-bottom: 0.2rem;
}
header .logo p {
    font-size: 0.9rem;
    color: #555;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #0056b3;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: #e9ecef;
    color: #003d80;
}

nav ul li a.cta-button {
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
}
nav ul li a.cta-button:hover {
    background-color: #0056b3;
}


/* Hero Section */
#hero {
    background: linear-gradient(to right, #007bff, #0056b3); /* Gradient blue */
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

#hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

#hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 50px 0;
}

.content-section h2 {
    font-size: 2.2rem;
    color: #0056b3;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}
.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
}


.content-section h3 {
    font-size: 1.6rem;
    color: #0069d9;
    margin-top: 20px;
    margin-bottom: 15px;
}
.content-section p, .content-section ul li {
    margin-bottom: 1rem;
    color: #495057; /* Slightly lighter text for paragraphs */
}
.content-section ul {
    list-style-position: inside;
    padding-left: 0; /* Reset browser default */
}
.content-section ul li {
    padding-left: 1em; /* Indent list items */
    text-indent: -1em; /* Align text correctly after bullet */
}
.content-section ul li::before {
    content: "• ";
    color: #007bff; /* Bullet color */
    padding-right: 0.5em;
}


.alt-bg {
    background-color: #eef7ff; /* Very light blue for alternate sections */
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* ADDED: Specific styling for the grid in the #intro section for larger screens */
@media (min-width: 769px) {
    #intro .grid-container {
        grid-template-columns: repeat(4, 1fr); /* 4 columns */
    }
}
/* Note: On screens <= 768px, the existing @media rule for .grid-container 
   (in the Responsive Design section) will make it 1 column. */


.grid-container.tri-cols {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.grid-item h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

/* Flex Container */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.flex-item {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.flex-item h3 { margin-top: 0; }

/* Card Style (can be used with grid-item or other elements) */
.card {
    border-left: 5px solid #007bff;
}
.card h4 {
    font-size: 1.2rem;
    color: #0056b3;
    margin-bottom: 10px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding-left: 0;
}
.feature-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}
.feature-list li::before {
    content: '✓'; /* Checkmark */
    color: #28a745; /* Green for checkmarks */
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Accordion for "Strengthen ZT" */
.accordion {
    margin-top: 20px;
}
.accordion-item {
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}
.accordion-header {
    background-color: #e9ecef;
    color: #0056b3;
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header:hover {
    background-color: #d9e2ef;
}
.accordion-header::after {
    content: '+'; /* Unicode character for plus sign */
    font-size: 1.5rem;
    color: #007bff;
    font-weight: bold;
}
.accordion-item.active .accordion-header::after {
    content: "−"; /* Unicode character for minus sign */
}
.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-content p {
    margin: 15px 0;
}
.accordion-item.active .accordion-content {
    /* max-height will be set by JS, padding appears when active */
    padding: 15px 20px;
}


/* Call to Action Section */
.cta-section {
    background-color: #0056b3; /* Darker blue for CTA section */
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}
.cta-section h2::after{
    background-color: #fff;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #e9ecef;
}
.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff !important; /* Ensure text is white */
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}
.cta-button:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}
.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff !important;
    margin-left: 10px;
}
.cta-button.secondary:hover {
    background-color: #fff;
    color: #0056b3 !important;
}
.cta-button.large {
    font-size: 1.1rem;
    padding: 15px 30px;
}


/* Footer */
footer {
    background-color: #343a40; /* Dark footer */
    color: #adb5bd;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}
footer a {
    color: #ced4da;
    text-decoration: none;
}
footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    nav ul li {
        margin: 5px 0;
        width: 100%;
    }
    nav ul li a {
        display: block;
        text-align: center;
    }
    nav ul li a.cta-button {
        margin-top: 10px;
    }

    #hero h2 {
        font-size: 2.2rem;
    }
    #hero p {
        font-size: 1rem;
    }
    .content-section h2 {
        font-size: 1.8rem;
    }
    .content-section h3 {
        font-size: 1.4rem;
    }
    .flex-container {
        flex-direction: column;
    }
    .grid-container, .grid-container.tri-cols {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
}

@media (min-width: 769px) {
    #intro .grid-container {
        grid-template-columns: repeat(4, 1fr); /* 4 columns */
    }
}
/* Footer */
footer {
    background-color: #343a40; /* Dark footer */
    color: #adb5bd;
    text-align: center;
    padding: 40px 0 30px 0; /* Adjusted padding */
    font-size: 0.9rem;
}

footer .container {
    /* Container itself is centered by default */
}

footer h3 {
    font-size: 1.3rem;
    color: #e9ecef;
    margin-bottom: 20px;
    font-weight: 500;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px auto; /* Center the list block */
    max-width: 700px; /* Max width for readability of links */
    text-align: left; /* Align link text to the left */
}

footer ul li {
    margin-bottom: 10px;
    line-height: 1.5;
}

footer ul li a {
    color: #ced4da;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

footer p { /* For the copyright */
    font-size: 0.85rem;
    color: #868e96;
}