:root {
--primary-color: #0056b3;
            --secondary-color: #f8f9fa;
            --text-color: #333;
            --accent-color: #dc3545;
            --border-color: #dee2e6;
            --fb-color: #1877f2;
            --line-color: #06c755;
            --yt-color: #ff0000;
}

html {
scroll-behavior: smooth;
}

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            margin: 0;
            padding: 0;
            padding-top: 60px; 
            background-color: #ffdfb6;
}

.navbar {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: #ffffff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            z-index: 1000;
}

.nav-container {
max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px;
            position: relative;
}

.nav-logo {
font-weight: bold;
            font-size: 1.2rem;
            color: var(--primary-color);
            text-decoration: none;
}

.nav-toggle {
display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--primary-color);
            cursor: pointer;
            padding: 5px;
}

.nav-menu {
display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            align-items: center;
}

.nav-menu > li {
margin-left: 12px;
            position: relative;
}

.nav-link {
text-decoration: none;
            color: #555;
            font-weight: 500;
            font-size: 0.95rem;
            padding: 8px 0;
            display: inline-block;
            transition: color 0.3s;
}

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

.dropdown-menu {
display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #ffffff;
            min-width: 180px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.15);
            list-style: none;
            padding: 8px 0;
            margin: 0;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            z-index: 1100;
}

.dropdown-menu li {
width: 100%;
}

.dropdown-menu a {
color: #333;
            padding: 10px 16px;
            text-decoration: none;
            display: block;
            font-size: 0.9rem;
            font-weight: 500;
            white-space: nowrap;
            transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
background-color: #f1f3f5;
            color: var(--primary-color);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
display: block;
}

.nav-social {
font-size: 1.1rem;
            transition: transform 0.2s, color 0.2s;
}

.nav-social.fb:hover {
color: var(--fb-color); transform: scale(1.1);
}

.nav-social.line:hover {
color: var(--line-color); transform: scale(1.1);
}

.nav-social.yt:hover {
color: var(--yt-color); transform: scale(1.1);
}

.nav-cta {
background-color: var(--accent-color);
            color: white !important;
            padding: 6px 10px !important;
            border-radius: 20px;
}

.nav-cta:hover {
background-color: #bd2130;
}

@media (max-width: 992px) {
  body {
padding-top: 55px;
  }

  .nav-toggle {
display: block;
  }

  .nav-menu {
display: none; 
                flex-direction: column;
                width: 100%;
                position: absolute;
                top: 100%;
                left: 0;
                background-color: #ffffff;
                box-shadow: 0 4px 10px rgba(0,0,0,0.1);
                padding: 15px 0;
                border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
display: flex;
  }

  .nav-menu > li {
margin: 0;
                width: 100%;
                text-align: center;
  }

  .nav-link {
padding: 10px 20px;
                width: 100%;
                box-sizing: border-box;
  }

  .dropdown-menu {
position: static;
                box-shadow: none;
                border: none;
                background-color: #f8f9fa;
                border-radius: 0;
  }

  .dropdown-menu a {
padding: 8px 20px;
                text-align: center;
                color: #555;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
display: block;
  }

  .social-group {
display: flex;
                justify-content: center;
                gap: 20px;
                margin: 10px 0;
  }

  .nav-cta {
display: inline-block;
                width: 80%;
                margin: 5px auto;
  }
}

.hero-banner {
width: 100%; display: block; margin: 0; padding: 0;
}

.hero-banner img {
width: 100%; height: auto; display: block;
}

.visually-hidden {
position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.container {
max-width: 1200px; margin: 0 auto; padding: 20px;
}

.ai-summary-box {
background-color: #e9f7fe; border-left: 5px solid var(--primary-color); padding: 20px; margin: 30px 0; border-radius: 4px;
}

.ai-summary-box h2 {
margin-top: 0; color: var(--primary-color); font-size: 1.5rem;
}

.ai-summary-box ul {
margin-bottom: 0; padding-left: 20px;
}

section,
article {
scroll-margin-top: 80px;
}

.section-title {
text-align: center; margin: 40px 0 20px 0; color: var(--primary-color);
}

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

.card {
background: var(--secondary-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px;
}

.card h3 {
margin-top: 0; color: var(--primary-color);
}

#teacher-service .card > h3 {
text-align: center;
}

#teacher-service .card > h3 i {
display: block; margin-bottom: 8px; font-size: 1.8rem;
}

.table-responsive {
overflow-x: auto; margin-bottom: 30px;
}

table {
width: 100%; border-collapse: collapse; margin: 10px 0; background: #fff;
}

th,
td {
border: 1px solid #aab7c2; padding: 12px; text-align: left;
}

td ul {
margin:0px 5px 0px -1.5em;
}

th {
background-color: #dfe7ed; color: #263746; font-weight: bold;
}

tr:nth-child(even) {
background-color: #f4f7f9;
}

.testimonial-grid {
display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; margin-bottom: 40px;
}

.testimonial-card {
background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.testimonial-stars {
color: #ffc107; font-size: 1.2rem; margin-bottom: 10px;
}

.testimonial-meta {
font-size: 0.9rem; color: #666; margin-bottom: 15px; border-bottom: 1px dashed var(--border-color); padding-bottom: 10px;
}

.testimonial-meta strong {
color: var(--primary-color); font-size: 1rem;
}

.testimonial-content {
font-size: 0.95rem; color: #444; text-align: justify;
}

details {
background: var(--secondary-color); border: 1px solid var(--border-color); border-radius: 4px; padding: 15px; margin-bottom: 10px;
}

summary {
font-weight: bold; cursor: pointer; font-size: 1.1rem;
}

details[open] summary {
margin-bottom: 10px; color: var(--primary-color);
}

#faq-section details p,
#faq-section details li,
#faq-section details li strong {
color: #7f8c8d;
}

#faq-section details p {
margin-bottom: 10px;
}

#faq-section details ul,
#faq-section details ol {
margin-top: 0; margin-bottom: 16px; padding-left: 1.5rem;
}

#faq-section details li::marker {
color: #7f8c8d;
}

.cta-container {
text-align: center; margin: 20px 0;
}

.btn {
display: inline-block; background-color: var(--accent-color); color: white; padding:5px 15px;margin: 2px; text-decoration: none; font-size: 1rem; font-weight: bold; border-radius: 50px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: background-color 0.3s;
}

.btn:hover {
background-color: #bd2130;
}

.footer-social-box {
margin: 20px 0;
}

.footer-social-btn {
display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background-color: #495057; color: white; text-decoration: none; margin: 0 8px; font-size: 1.2rem;
}

.footer-social-btn.fb:hover {
background-color: var(--fb-color);
}

.footer-social-btn.line:hover {
background-color: var(--line-color);
}

.footer-social-btn.yt:hover {
background-color: var(--yt-color);
}

footer {
background-color: #343a40; color: white; text-align: center; padding: 40px 20px; margin-top: 50px; font-size: 0.9rem;
}

footer p a,
footer p a:visited {
color: #ffffff; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease;
}

footer .container > p a:hover,
footer .container > p a:focus-visible {
color: #ffd166 !important;
}

.consult-section {
max-width: 1100px;
    margin: 40px auto;
    padding: 35px 25px;
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    box-sizing: border-box;
}

#faq-section a,
#faq-section a:visited,
.consult-head a,
.consult-head a:visited,
.line-note a,
.line-note a:visited {
color: var(--primary-color);
}

#faq-section a:hover,
.consult-head a:hover,
.line-note a:hover {
color: #003f82;
}

.consult-head {
text-align: center;
}

.consult-head h2 {
margin: 0; color: var(--primary-color);
}

.consult-head p {
margin: 8px 0 22px; color: #60717d;
}

.consult-panel {
display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: stretch;
}

.trial-box {
display: flex;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #b9c8d6;
    border-radius: 12px;
}

.trial-box h3 {
margin: 8px 0; color: #2c3e50;
}

.trial-box p {
margin: 0 0 18px; color: #60717d;
}

.trial-box > div > i {
color: var(--primary-color); font-size: 2rem;
}

.trial-box .btn {
margin-top: 8px;
}

.consult-section form {
padding: 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.consult-section form > h3 {
margin: 0; color: #2c3e50; font-size: 1.35rem;
}

.consult-section form > p {
margin: 4px 0 18px; color: #60717d;
}

.form-grid {
display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

.consult-section input,
.consult-section textarea {
width: 100%;
    padding: 12px 14px;
    color: #2c3e50;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    font: inherit;
}

.consult-section input:focus,
.consult-section textarea:focus {
outline: 0;
    background: #fff;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, .15);
}

.consult-section textarea {
grid-column: 1 / -1; resize: vertical;
}

.consult-section input[type="submit"] {
grid-column: 1 / -1;
    max-width: 220px;
    margin: 18px auto 0;
    color: #fff;
    background: var(--accent-color);
    border: 0;
    cursor: pointer;
    font-weight: 700;
}

.consult-section input[type="submit"]:hover {
background: #bd2130;
}

.hidden-frame {
display: none;
}

.line-note {
margin: 18px 0 0; text-align: center;
}

.copyright {
color: #aaa; font-size: .8rem; margin-top: 20px;
}

.v9-section {
padding: 34px 0;
}

#free-service {
padding-top: 12px;
}

#free-service .section-title {
margin-top: 0;
}

.v9-next {
background: var(--secondary-color); border-radius: 22px; padding: 28px;
}

.v9-next-grid {
display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

.v9-next-grid article {
background: #fff; border-radius: 16px; padding: 26px; box-shadow: 0 5px 16px rgba(0,0,0,.04);
}

.v9-next-grid i {
display: block; margin: 0 auto 10px; color: #0056b3; font-size: 2rem; text-align: center;
}

.v9-next-grid h3 {
margin: 0 0 12px; color: #174c7d; text-align: center;
}

.v9-next-grid p {
margin: 0 0 14px; text-align: left;
}

.v9-next-grid a {
display: block; margin-top: 9px; color: #0056b3; font-weight: 700; text-decoration: none;
}

.v9-next-grid a:hover {
color: #003f82; text-decoration: underline;
}

@media (max-width: 992px) {
  .v9-next-grid {
grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .v9-next {
padding: 18px;
  }

  .v9-section {
padding: 24px 0;
  }

  #free-service {
padding-top: 8px;
  }

  .course-plan-wrap {
overflow: visible;
  }

  .course-plan-table,
  .course-plan-table tbody,
  .course-plan-table tr,
  .course-plan-table td {
display: block; width: 100%;
  }

  .course-plan-table {
margin: 0;
  }

  .course-plan-table thead {
display: none;
  }

  .course-plan-table tbody tr {
margin-bottom: 16px;
        overflow: hidden;
        background: #fff;
        border: 1px solid #dce5ed;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(34,59,85,.06);
  }

  .course-plan-table tbody td {
display: grid;
        grid-template-columns: 78px minmax(0,1fr);
        gap: 10px;
        box-sizing: border-box;
        padding: 11px 13px;
        border: 0;
        border-bottom: 1px solid #edf1f4;
        background: #fff;
        text-align: left;
  }

  .course-plan-table tbody td:last-child {
border-bottom: 0;
  }

  .course-plan-table tbody td::before {
color: #617487;
        font-size: .84rem;
        font-weight: 800;
  }

  .course-plan-table tbody td:nth-child(1) {
display: block;
        padding: 12px 14px;
        background: #eaf4ff;
        color: #174c7d;
        font-size: 1.05rem;
        text-align: center;
  }

  .course-plan-table tbody td:nth-child(1)::before {
content: none;
  }

  .course-plan-table tbody td:nth-child(2)::before {
content: "內容";
  }

  .course-plan-table tbody td:nth-child(3)::before {
content: "期限";
  }

  .course-plan-table tbody td:nth-child(4)::before {
content: "適合對象";
  }

  #license-compare .course-plan-table tbody td:nth-child(2)::before {
content: "及格標準";
  }

  #license-compare .course-plan-table tbody td:nth-child(3)::before {
content: "考試題型";
  }

  #license-compare .course-plan-table tbody td:nth-child(4)::before {
content: "難易度";
  }

  #license-compare .course-plan-table tbody td:nth-child(5)::before {
content: "職涯發展";
  }

  .course-plan-table tbody td ul {
margin: 0; padding-left: 1.2rem;
  }
}

@media (max-width: 700px) {
  .consult-section {
margin: 24px 0; padding: 24px 16px;
  }

  .consult-panel,
  .form-grid {
grid-template-columns: 1fr;
  }

  .consult-section textarea {
grid-column: auto;
  }

  .trial-box .btn {
width: 100%; box-sizing: border-box;
  }
}
