:root {
    --primary-color: #1a5fb4;
    --secondary-color: #26a269;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
    --bg-light: #f5f5f5;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

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

.header-main {
    padding: 15px 0;
    position: relative;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.logo-img { height: 50px; vertical-align: middle; margin-right: 10px; }
.lang-btn { margin-left: 10px; padding: 5px 10px; border: 1px solid var(--white); border-radius: 4px; }
.card-img { width: 100%; height: 160px; object-fit: contain; }
.card-body-flex { display: flex; flex-direction: column; flex: 1; }
.card-text-truncate { height: 60px; overflow: hidden; flex: 1; }
.carousel-desc { color: #fff; margin-bottom: 15px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

.nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav a {
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

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

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

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-switch a {
    padding: 5px 10px;
    border: 1px solid var(--white);
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-switch a.active {
    background: var(--white);
    color: var(--primary-color);
}

.mobile-top-nav {
    display: none;
}

.mobile-nav-toggle {
    display: none;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.lang-btn {
    padding: 5px 10px;
    border: 1px solid var(--white);
    border-radius: 4px;
    transition: all 0.3s;
}

.banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    opacity: 0.9;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-color);
}

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

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-image {

}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: contain;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
    text-align: justify;
    line-height: 1.4;
}

.card-text {
    color: var(--light-text);
    margin-bottom: 12px;
    text-align: justify;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background: #154a8a;
}

.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 40px 0 20px;
}

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

.footer h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer a {
    display: block;
    padding: 5px 0;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 14px;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--light-text);
}

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

.article-detail {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.article-detail .title {
    font-size: 32px;
    margin-bottom: 20px;
}

.article-detail .meta {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 14px;
}

.article-detail .content {
    line-height: 1.8;
}

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

.article-detail .content h1, .article-detail .content h2, .article-detail .content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.article-detail .content ul, .article-detail .content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.article-detail .content li {
    margin-bottom: 5px;
}

.article-detail .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-detail .content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.article-detail .content th,
.article-detail .content td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

.article-detail .content th {
    background: #f5f7fa;
    font-weight: 600;
    white-space: nowrap;
}

.article-detail .content tr:nth-child(even) td {
    background: #fafbfc;
}

.article-detail .content tr:hover td {
    background: #f0f4f8;
}

@media (max-width: 768px) {
    .article-detail .content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

.contact-info {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
}

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

.contact-form {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

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

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

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.pagination a:hover {
    background: var(--bg-light);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.carousel-overlay h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-overlay p {
    font-size: 20px;
    margin-bottom: 20px;
}

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

.carousel-overlay .btn:hover {
    background: var(--bg-light);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(0,0,0,0.6);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }

    .carousel-overlay h2 {
        font-size: 28px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .mobile-top-nav {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 10px 15px;
        z-index: 9999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .mobile-top-nav .logo {
        color: var(--white);
        font-size: 18px;
        font-weight: bold;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-top-nav .logo img {
        height: 35px;
        width: auto;
    }
    
    .mobile-top-nav .lang-btn {
        padding: 8px 16px;
        border: 1px solid var(--white);
        border-radius: 4px;
        color: var(--white);
        text-decoration: none;
        font-size: 14px;
        background: transparent;
        transition: all 0.3s;
    }
    
    .mobile-top-nav .lang-btn:hover {
        background: rgba(255,255,255,0.2);
    }
    
    .mobile-nav-controls {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-top-nav .mobile-nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .mobile-top-nav .mobile-nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--white);
        border-radius: 2px;
    }
    
    .header {
        padding-top: 60px;
        position: relative;
    }
    
    .nav {
        display: none !important;
    }
    
    .header-main .mobile-nav-toggle {
        display: none !important;
    }
    
    .header-main .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    .mobile-nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: 15px;
    }
    
    .mobile-nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--white);
        border-radius: 2px;
    }
    
    .nav.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        z-index: 1000;
    }
    
    .nav.active a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        color: var(--white);
    }
    
    .nav.active a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .nav.active .lang-btn {
        background: rgba(255,255,255,0.1);
        border-radius: 4px;
        margin: 10px 20px;
        text-align: center;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .carousel-overlay h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .carousel-overlay p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .carousel-overlay .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .carousel-dots {
        bottom: 15px;
    }
    
    .contact-info, .contact-form {
        padding: 20px;
    }
    
    .company-intro {
        flex-direction: column;
    }
    
    .company-intro img {
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        font-size: 14px;
    }
    
    .article-detail h1 {
        font-size: 24px;
    }
    
    .article-detail img {
        max-width: 100%;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .nav {
        font-size: 14px;
    }
    
    .nav a {
        padding: 8px 12px;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 26px;
    }
}