/* Modern Design System for CHOICE */
:root {
    --primary-color: #0088cc;
    --primary-dark: #006699;
    --secondary-color: #4db8ff;
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --font-heading: 'Noto Sans TC', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 40px 0;
}

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

.text-white {
    color: white !important;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: white;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang-btn {
    padding: 5px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* Hero */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: url('assets/images/hero-bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.hero-feature-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.hero-feature-item span {
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Specific Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 100px 0 60px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.breadcrumb {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.comparison-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.comparison-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    position: absolute;
    top: -10px;
    right: -10px;
}

.comparison-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Suitable Grid */
.suitable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.suitable-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    border-top: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.suitable-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Report Section */
.report .row {
    display: flex;
    gap: 50px;
}

.col-6 {
    flex: 1;
}

.tech-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 50px;
}

.step-item {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-connector {
    flex: 0 0 50px;
    display: flex;
    justify-content: center;
    padding-top: 15px;
    color: #ddd;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.testimonial-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.user-info {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.user-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-dark);
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
}

.contact-form button {
    width: 100%;
    border-radius: 5px;
}

/* Footer */
.footer {
    background: #111;
    color: #888;
    padding: 40px 0;
    border-top: 1px solid #222;
}

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

.footer-right a {
    color: white;
    margin-left: 20px;
    font-size: 1.2rem;
}

/* Auth Pages */
.auth-page {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    border: none;
    background: none;
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}

.btn-social:hover {
    background: #f9f9f9;
}

.auth-divider {
    text-align: center;
    color: #999;
    margin: 20px 0;
    font-size: 0.9rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Dashboard */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f4f6f9;
}

.sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.user-profile-mini {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--text-light);
    gap: 15px;
}

.sidebar-nav li.active a,
.sidebar-nav a:hover {
    background: #f0f7ff;
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.dashboard-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dash-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.status-card .progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    position: relative;
}

.progress-step {
    z-index: 2;
    text-align: center;
    width: 80px;
}

.progress-step .circle {
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.progress-step.completed .circle,
.progress-step.active .circle {
    background: var(--primary-color);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
    position: relative;
    top: -15px;
}

.progress-line.completed {
    background: var(--primary-color);
}

/* QA Page */
.qa-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.qa-question {
    padding: 15px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qa-answer {
    padding: 0 15px 15px;
    color: var(--text-light);
    display: none;
}

.qa-item.active .qa-answer {
    display: block;
    animation: fadeIn 0.3s;
}

.qa-item.active .qa-question {
    color: var(--primary-color);
}

/* About Page */
.about-hero {
    height: 25vh;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/images/innerbg_about.jpg') center/cover;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.products-hero {
    height: 25vh;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/images/innerbg_products.jpg') center/cover;
}

.qa-hero {
    height: 25vh;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/images/innerbg_qa.jpg') center/cover;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-grid,
    .report .row,
    .dashboard-container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .page-header {
        padding: 50px 0 30px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }
}

/* About Page Refined */
.about-intro {
    text-align: center;
    margin-bottom: 50px;
}

.about-intro h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-intro p {
    font-size: 1.2rem;
    color: #666;
}

.about-text {
    line-height: 1.8;
}

.about-highlight {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    border-left: 5px solid var(--primary-color);
}

.about-highlight h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.about-highlight p {
    margin-bottom: 0;
}

.cert-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.cert-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cert-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.cert-sublist {
    padding-left: 0;
    list-style: none;
    /* Reset default list style */
}

.cert-sublist li {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid #eee;
}

.cert-sublist li:last-child {
    margin-bottom: 0;
}

.cert-sublist h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.cert-sublist p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Basic Grid System for Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class^="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

@media (max-width: 767px) {
    .row {
        flex-direction: column;
    }

    .col-md-3,
    .col-md-9 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* =========================================
   Product Carousel Styling
   ========================================= */
.carousel-container {
    position: relative;
    max-width: 100%;
    /* Increased from 1000px to fill container */
    margin: 40px auto;
    padding: 0 50px;
    /* Space for arrows */
}

.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 20px;
    /* Hide Scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.product-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.product-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s;
}

.slide-content {
    padding: 30px;
    text-align: center;
}

.slide-tag {
    display: inline-block;
    background: rgba(0, 136, 204, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.slide-content h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.slide-image {
    width: 100%;
    height: 550px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfcfc;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    /* Interaction Cue */
    position: relative;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Changed to cover as requested */
    object-position: top center;
    /* Focus on top of image */
    transition: transform 0.5s ease;
}

.product-slide:hover .slide-image img {
    transform: scale(1.03);
}

/* Hover overlay effect to cue click */
.slide-image::after {
    content: '\f00e';
    /* FontAwesome search-plus icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.slide-image:hover::after {
    opacity: 1;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 15px rgba(0, 136, 204, 0.3);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding-top: 50px;
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0;
    }

    .carousel-btn {
        display: none;
        /* Hide arrows on mobile, rely on swipe */
    }

    .slide-image {
        height: 350px;
        /* Increased mobile height */
    }
}