﻿
:root {
    --primary-green: #303296;
    --dark-gray: #374151;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --text-gray: #6b7280;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

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

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 80px;
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
}

    .logo img {
        height: 100%;
        width: auto;
        max-height: 40px;
    }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav-links a {
        text-decoration: none;
        color: var(--dark-gray);
        font-weight: 500;
        transition: color 0.3s;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary-green);
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon {
    font-size: 1.2rem;
    color: var(--dark-gray);
    cursor: pointer;
}

.search-icon {
    width: 16px;
    height: 16px;
    border: 2px solid #374151;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

    .search-icon::after {
        content: '';
        position: absolute;
        bottom: -4px;
        right: -4px;
        width: 6px;
        height: 2px;
        background: #374151;
        transform: rotate(45deg);
    }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        background: var(--dark-gray);
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    padding-top: 80px;
    overflow-y: auto;
}

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu li {
        border-bottom: 1px solid #e5e7eb;
    }

    .mobile-menu a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--dark-gray);
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.3s;
    }

        .mobile-menu a:hover,
        .mobile-menu a.active {
            background: #f3f4f6;
            color: var(--primary-green);
        }

    .mobile-menu .dropdown-arrow {
        float: right;
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

    .mobile-overlay.active {
        display: block;
    }

.dropdown-arrow {
    font-size: 0.8rem;
}

.spacer {
    /*height: 80px;*/
}

/* Banner Section */
.banner-section {
    width: 100%;
    margin-top: 0;
}

.banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Page head (same as download.html) */
.page-wrap {
    padding: 28px 0 50px;
    background: var(--bg);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 14px;
}

    .breadcrumb a {
        color: var(--text);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            color: var(--primary-green);
        }

.breadcrumb-sep {
    color: var(--muted);
}

/* Product Intro (above grid) */
.intro-section {
    background: #fff;
    padding: 0 0 60px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2.5rem;
    align-items: center;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0 0 1rem 0;
}

.intro-underline {
    width: 60px;
    height: 4px;
    background: #dc2626;
    margin-bottom: 1.5rem;
}

.intro-text {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

.intro-media {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
    aspect-ratio: 16/9;
}

    .intro-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Products Section */
.products-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.products-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

.product-image {
    width: 100%;
    height: 200px;
   /* background: #f3f4f6;*/
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.product-code {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    /*line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;*/
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 28px 0;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    cursor: pointer;
    transition: .2s ease;
    user-select: none;
    text-decoration: none;
}

    .page-btn:hover {
        border-color: #d1d5db;
        box-shadow: 0 2px 8px rgba(0,0,0,.06);
    }

    .page-btn.active {
        background: var(--primary-green);
        color: #fff;
        border-color: var(--primary-green);
    }

.page-input {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 8px;
}

    .page-input input {
        width: 80px;
        height: 36px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        padding: 0 10px;
        outline: none;
    }

.page-go {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

/* Question Section */
.question-section {
    background: rgba(41, 43, 46, 1);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

    .question-section::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 100%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="ribbon" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 0L20 10L10 20L0 10Z" fill="%23dc2626" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23ribbon)"/></svg>') repeat;
        opacity: 0.3;
        transform: rotate(15deg) translateX(50px);
    }

.question-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.question-content {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

.question-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    position: relative;
}

.question-underline {
    width: 60px;
    height: 4px;
    background: #dc2626;
    margin-bottom: 1.5rem;
}

.question-description {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
}

.question-cta {
    flex-shrink: 0;
    margin-top: 2rem;
    text-align: right;
}

.cta-button {
    background: #303296;
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(48, 50, 150, 0.3);
}

    .cta-button:hover {
        background: #212529;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(48, 50, 150, 0.4);
    }

.cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(3px);
}

/* Contact Form Section */
.contact-form-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.text-intro {
    background: var(--white);
    padding: 2rem;
}

    .text-intro h2 {
        font-size: 2rem;
        color: var(--dark-gray);
        margin-top: 0;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .text-intro .highlight-text {
        color: var(--primary-green);
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 2rem;
    }

    .text-intro ul {
        list-style: none;
        padding: 0;
    }


    .text-intro li {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
        color: var(--text);
        line-height: 1.6;
        font-size: 1rem;
    }

        .text-intro li::before {
            content: '✓';
            color: var(--primary-green);
            font-weight: bold;
            font-size: 1.2rem;
            margin-top: 0.1rem;
            flex-shrink: 0;
        }

.contact-form-section {
    background: var(--white);
}

.contact-form {
    background: var(--white);
    padding: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

    .form-group label {
        display: block;
        margin-top: 0;
        margin-bottom: 0.5rem;
        color: var(--dark-gray);
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        font-size: 1rem;
        transition: border-color 0.3s;
        background: #f9fafb;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-green);
        }

    .form-group textarea {
        height: 100px;
        resize: vertical;
    }

.submit-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .submit-btn:hover {
        background: #212529;
    }

.required {
    color: #dc2626;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

.footer-mission {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: rgba(204, 204, 204, 1);
    line-height: 1.6;
    max-width: 600px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

    .footer-column a:hover {
        color: #fff;
    }

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
    overflow: hidden;
}

    .social-icon:hover {
        transform: scale(1.1);
    }

    .social-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
    font-size: 0.9rem;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .intro-title {
        font-size: 2.2rem;
    }
}

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

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .product-card {
        padding: 1rem !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }

    .product-image {
        height: auto !important;
        aspect-ratio: 4/3 !important;
        font-size: 0.8rem !important;
        flex-shrink: 0 !important;
    }

    .product-code {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }

    .product-description {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        flex-grow: 1 !important;
        overflow: visible !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    }

    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .question-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

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

    .question-title {
        font-size: 2rem;
    }

    .question-underline {
        margin: 0 auto 1.5rem auto;
    }

    .question-cta {
        margin-top: 0;
        text-align: center;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .banner-image {
        height: 200px;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .products-title {
        font-size: 2rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .page-input {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

        .page-input input {
            width: 60px;
            height: 32px;
        }

    .page-go {
        height: 32px;
        padding: 0 8px;
        font-size: 0.9rem;
    }
}

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

    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .product-card {
        padding: 0.8rem !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }

    .product-image {
        height: auto !important;
        aspect-ratio: 4/3 !important;
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
    }

    .product-code {
        font-size: 0.85rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.3 !important;
    }

    .product-description {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        flex-grow: 1 !important;
        overflow: visible !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    }

    .intro-title {
        font-size: 1.8rem;
    }

    .products-title {
        font-size: 1.8rem;
    }

    .question-title {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .banner-image {
        height: 150px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-mission {
        font-size: 1.2rem;
    }
}

