﻿/* ==========================================================
   In vải Hoàng Minh - Main Stylesheet
   ========================================================== */
:root {
    --primary-color: #213d53;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --light-gray: #f5f7fa;
    --border-color: #e0e6ed;
    --white: #ffffff;
    --box-shadow: 0 4px 20px rgba(33, 61, 83, 0.08);
    --box-shadow-hover: 0 8px 30px rgba(33, 61, 83, 0.15);
    --border-radius: 10px;
    --transition: all .3s cubic-bezier(.25,.46,.45,.94);
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 50px;
    --spacing-xxl: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary-color); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: var(--transition);
}
.header.scrolled { background: rgba(255,255,255,0.98); box-shadow: 0 4px 20px rgba(33,61,83,0.1); }
.header-content { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 20px; }
.logo a { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); display: flex; align-items: center; gap: 8px; }
.logo img { max-height: 50px; }

.nav-menu { list-style: none; display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 10px 14px; color: var(--text-color); font-weight: 500; border-radius: 6px; }
.nav-link:hover, .nav-item.active .nav-link { background: var(--light-gray); color: var(--primary-color); }
.nav-item.active .nav-link { border-bottom: 2px solid var(--accent-color); }
.dropdown-menu, .dropdown-submenu-content {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--white); list-style: none; padding: 8px 0;
    box-shadow: var(--box-shadow-hover); border-radius: 8px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition); z-index: 100;
}
.dropdown:hover > .dropdown-menu, .dropdown-submenu:hover > .dropdown-submenu-content {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li { position: relative; }
.dropdown-menu a, .dropdown-submenu-content a { padding: 10px 18px; color: var(--text-color); font-weight: 400; display: block; }
.dropdown-menu a:hover, .dropdown-submenu-content a:hover { background: var(--light-gray); color: var(--primary-color); }
.dropdown-submenu-content { top: 0; left: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.search-box { display: flex; background: var(--light-gray); border-radius: 20px; padding: 4px 8px; }
.search-box input { border: 0; background: transparent; padding: 6px 8px; outline: none; width: 160px; }
.search-box button { border: 0; background: var(--primary-color); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.hotline { display: flex; align-items: center; gap: 8px; color: var(--secondary-color); font-weight: 700; }

/* Search toggle button */
.search-toggle-btn { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--primary-color); padding: 4px 8px; transition: var(--transition); }
.search-toggle-btn:hover { color: var(--secondary-color); }

/* Header search slide-down bar */
.header-search-bar {
    background: var(--primary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    padding: 0;
}
.header-search-bar.open {
    max-height: 80px;
    padding: 12px 0;
}
.header-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 40px;
    padding: 8px 16px;
}
.header-search-form input {
    flex: 1;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    outline: none;
}
.header-search-form input::placeholder { color: rgba(255,255,255,.6); }
.header-search-form button[type="submit"] {
    background: var(--secondary-color);
    border: 0;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.header-search-form button[type="submit"]:hover { background: #c0392b; }
.search-close-btn { background: none; border: 0; color: rgba(255,255,255,.7); font-size: 1.1rem; cursor: pointer; padding: 4px; flex-shrink: 0; }
.search-close-btn:hover { color: #fff; }

/* Search results page */
.search-page-form { margin-bottom: 32px; }
.search-page-input-wrap { display: flex; gap: 12px; flex-wrap: wrap; }
.search-page-input { flex: 1; min-width: 200px; border: 2px solid #ddd; border-radius: 40px; padding: 12px 20px; font-size: 1rem; outline: none; transition: var(--transition); }
.search-page-input:focus { border-color: var(--primary-color); }
.search-page-btn { background: var(--primary-color); color: #fff; border: 0; border-radius: 40px; padding: 12px 28px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.search-page-btn:hover { background: #1a3147; }
.search-result-count { color: var(--text-light); margin-bottom: 36px; font-size: 1rem; }
.search-result-count strong { color: var(--primary-color); }
.search-result-count em { color: var(--secondary-color); font-style: normal; }
.search-group { margin-bottom: 48px; }
.search-group-title { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--light-gray); }
.search-empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.search-empty i { font-size: 3rem; color: #ccc; margin-bottom: 16px; display: block; }
.search-empty h3 { font-size: 1.4rem; margin-bottom: 8px; }
.search-empty a { color: var(--primary-color); }
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-list-item { display: flex; gap: 20px; align-items: flex-start; }
.news-list-thumb { width: 120px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.news-list-thumb img { width: 100%; height: 80px; object-fit: cover; transition: var(--transition); }
.news-list-thumb:hover img { transform: scale(1.05); }
.news-list-body h3 { font-size: 1rem; margin-bottom: 6px; }
.news-list-body h3 a { color: var(--text-color); }
.news-list-body h3 a:hover { color: var(--primary-color); }
.news-list-body p { font-size: .9rem; color: var(--text-light); line-height: 1.6; margin: 0; }
.news-meta { display: flex; gap: 16px; font-size: .8rem; color: var(--text-light); margin-bottom: 6px; }
.service-card-link { text-decoration: none; }
.service-card-link .service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(33,61,83,.15); }

.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); }

/* ===== Hero ===== */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-color), #1a3147);
    color: var(--white);
    padding: 80px 0;
    position: relative; overflow: hidden;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 720px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 30px; font-weight: 600; border: 0; cursor: pointer; transition: var(--transition); }
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: #1a3147; color: var(--white); transform: translateY(-2px); }
.btn-cta { background: var(--secondary-color); color: var(--white); }
.btn-cta:hover { background: #c0392b; color: var(--white); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary-color); }
.btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }

/* ===== Sections ===== */
.section { padding: var(--spacing-xxl) 0; }
.section-header { text-align: center; margin-bottom: var(--spacing-xl); }
.section-header h2 { font-size: 2rem; color: var(--primary-color); margin-bottom: 12px; position: relative; display: inline-block; padding-bottom: 12px; }
.section-header h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); border-radius: 2px; }
.section-header { text-align: center; margin-bottom: var(--spacing-xl); }
.section-header p { color: var(--text-light); max-width: 720px; margin: 0 auto; }
.section.bg-light { background: var(--light-gray); }

/* ===== Grid cards ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
    background: var(--white); border-radius: var(--border-radius);
    box-shadow: var(--box-shadow); overflow: hidden;
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--box-shadow-hover); }
.card-image { aspect-ratio: 4/3; overflow: hidden; background: var(--light-gray); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-image img { transform: scale(1.07); }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.05rem; font-weight: 600; color: var(--primary-color); margin-bottom: 8px; min-height: 50px; }
.card-text { color: var(--text-light); font-size: .9rem; flex: 1; margin-bottom: 12px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--text-light); }

/* ===== Page header ===== */
.page-header {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5276 60%, #154360 100%);
    color: var(--white); padding: 80px 0 50px; text-align: center;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 12px; }
.breadcrumb { font-size: .95rem; }
.breadcrumb a { color: var(--white); opacity: .8; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* ===== Forms ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--text-color); }
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border-color);
    border-radius: 8px; font-size: 1rem; font-family: inherit;
    transition: var(--transition); background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(33,61,83,.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-error { color: var(--secondary-color); font-size: .85rem; margin-top: 4px; }

/* ===== Alerts ===== */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== Footer ===== */
.footer { background: var(--primary-color); color: rgba(255,255,255,.85); padding: 60px 0 0; }
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1.1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: var(--accent-color); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; margin-top: 40px; text-align: center; font-size: .9rem; }
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-links a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border-radius: 50%; }

/* ===== Floating social ===== */
ul.social-fixed {
    position: fixed; top: 40%; right: 10px; list-style: none; z-index: 9999;
}
ul.social-fixed li { margin: 10px 0; }
ul.social-fixed li a {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; background: var(--white);
    border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.2);
    color: var(--secondary-color); font-size: 1.4rem;
    transition: var(--transition);
}
ul.social-fixed li a:hover { transform: scale(1.1); }
ul.social-fixed li.zalo a { color: #0068ff; }
ul.social-fixed li.fb a { color: #1877f2; }
ul.social-fixed li.call a { color: var(--secondary-color); animation: ring 1.5s infinite; }
@keyframes ring { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }

/* ===== Back to top ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 14px;
    width: 46px;
    height: 46px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(33,61,83,.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s, background .2s;
    z-index: 9998;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--accent-color); }

/* ===== Pricing table ===== */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--box-shadow); border-radius: var(--border-radius); overflow: hidden; margin-bottom: 32px; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-color); }
.price-table th { background: var(--primary-color); color: var(--white); font-weight: 600; }
.price-table tr:hover { background: var(--light-gray); }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 6px; list-style: none; margin-top: 32px; }
.pagination .page-item .page-link { padding: 8px 14px; background: var(--white); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-color); }
.pagination .page-item.active .page-link { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.pagination .page-item.disabled .page-link { opacity: .4; }

/* ===== About / Article content ===== */
.article-content { line-height: 1.8; font-size: 1.05rem; }
.article-content h2 { color: var(--primary-color); margin: 28px 0 16px; }
.article-content h3 { color: var(--primary-color); margin: 22px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px 22px; }
.article-content img { border-radius: 8px; margin: 16px 0; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .menu-toggle { display: block; }
    .nav { position: fixed; top: 70px; right: -100%; width: 280px; height: calc(100vh - 70px); background: var(--white); padding: 20px; box-shadow: var(--box-shadow-hover); transition: var(--transition); overflow-y: auto; }
    .nav.open { right: 0; }
    .nav-menu { flex-direction: column; gap: 0; }
    .dropdown-menu, .dropdown-submenu-content { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 16px; display: none; }
    .nav-item.open > .dropdown-menu, .dropdown-submenu.open > .dropdown-submenu-content { display: block; }
    .header-actions .search-box { display: none; }
    .hero h1 { font-size: 1.8rem; }
    .page-header h1 { font-size: 1.6rem; }
    .section { padding: 50px 0; }
}
@media (max-width: 600px) {
    .hero { padding: 50px 0; }
    .header-actions .hotline span { display: none; }
}

/* ===== Hero Banner Slideshow ===== */
.hero-banner {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    background: #213d53;
}
.slideshow-container {
    position: relative;
    width: 100%;
    min-height: 520px;
}
.slide {
    display: none;
    position: relative;
    width: 100%;
}
.slide.active { display: block; }
.slide-bg {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(33,61,83,0.75) 0%, rgba(33,61,83,0.35) 100%);
    display: flex;
    align-items: center;
}
.slide-content {
    color: #fff;
    padding: 40px 0;
    max-width: 700px;
}
.slide-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.slide-content p {
    font-size: 1.15rem;
    opacity: .9;
    margin-bottom: 28px;
}
.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary-color);
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    margin-right: 12px;
}
.slide-btn:hover { background: #c0392b; color: #fff; transform: translateY(-2px); }
.slide-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,.7);
    transition: var(--transition);
}
.slide-btn-outline:hover { background: #fff; color: var(--primary-color); }
.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.slide-prev:hover, .slide-next:hover { background: rgba(255,255,255,.3); }
.slide-prev { left: 20px; }
.slide-next { right: 20px; }
.slide-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: 0;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.slide-dot.active { background: #fff; transform: scale(1.3); }
@media (max-width: 768px) {
    .slideshow-container, .slide-bg { min-height: 320px; height: 320px; }
    .slide-content h2 { font-size: 1.5rem; }
    .slide-content p { font-size: .95rem; }
}

/* ===== Stats / counter bar ===== */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-color), #1a5276);
    color: #fff;
    padding: 40px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
}
.stat-item { padding: 10px; }
.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label { font-size: .95rem; opacity: .9; }

/* ===== Service cards ===== */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid transparent;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-top-color: var(--accent-color);
}
.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), #2e86c1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.8rem;
    color: #fff;
}
.service-card-image {
    width: 100%;
    height: 200px;
    margin: -32px -24px 20px;
    width: calc(100% + 48px);
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.service-card:hover .service-card-image img {
    transform: scale(1.05);
}
.service-card h3 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: .9rem; margin-bottom: 16px; }
.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.service-link:hover { color: var(--primary-color); }

/* ===== Testimonials ===== */
.testimonials-section {
    background: linear-gradient(135deg, var(--light-gray), #eaf2fa);
    padding: var(--spacing-xxl) 0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px 28px;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--box-shadow-hover); }
.quote-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), #2e86c1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}
.testimonial-stars { margin-bottom: 12px; }
.testimonial-stars i { color: var(--accent-color); font-size: .9rem; }
.testimonial-text {
    color: var(--text-color);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--light-gray);
}
.author-name { font-weight: 700; color: var(--primary-color); font-size: .95rem; }
.author-position { color: var(--text-light); font-size: .82rem; }

/* ===== FAQ ===== */
.faq-section { padding: var(--spacing-xxl) 0; }
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
    gap: 12px;
}
.faq-question:hover { background: var(--light-gray); }
.faq-question h3 { font-size: 1rem; color: var(--primary-color); margin: 0; flex: 1; }
.faq-question .faq-icon { color: var(--secondary-color); font-size: .9rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-question { background: var(--primary-color); }
.faq-item.open .faq-question h3 { color: #fff; }
.faq-item.open .faq-question .faq-icon { color: #fff; transform: rotate(45deg); }
.faq-answer {
    display: none;
    padding: 18px 22px;
    background: #f9fbfd;
    color: var(--text-color);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
}
.faq-answer ul { margin: 10px 0 0 18px; }
.faq-answer li { margin-bottom: 6px; }
.faq-item.open .faq-answer { display: block; }

/* ===== CTA section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #1a3147);
    color: #fff;
    padding: 70px 0;
    text-align: center;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-section p { font-size: 1.1rem; opacity: .85; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-hotline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color);
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    margin-right: 14px;
    transition: var(--transition);
}
.cta-hotline:hover { background: #e67e22; color: #fff; transform: scale(1.05); }
.cta-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,.6);
    transition: var(--transition);
}
.cta-contact:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ===== Vision / Mission ===== */
.vision-mission-section { padding: var(--spacing-xxl) 0; }
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.vision-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.vision-item:nth-child(1) { border-bottom-color: var(--primary-color); }
.vision-item:nth-child(2) { border-bottom-color: var(--secondary-color); }
.vision-item:nth-child(3) { border-bottom-color: var(--accent-color); }
.vision-item:hover { transform: translateY(-6px); box-shadow: var(--box-shadow-hover); }
.vision-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}
.vision-item:nth-child(1) .vision-icon { background: rgba(33,61,83,.1); color: var(--primary-color); }
.vision-item:nth-child(2) .vision-icon { background: rgba(231,76,60,.1); color: var(--secondary-color); }
.vision-item:nth-child(3) .vision-icon { background: rgba(243,156,18,.1); color: var(--accent-color); }
.vision-item h3 { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 12px; }
.vision-item p { color: var(--text-light); line-height: 1.7; }

/* ===== Strengths ===== */
.strengths-section { background: var(--light-gray); padding: var(--spacing-xxl) 0; }
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.strength-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 24px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.strength-card:hover { transform: translateY(-4px); box-shadow: var(--box-shadow-hover); }
.strength-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), #2e86c1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.strength-card h3 { font-size: 1rem; color: var(--primary-color); margin-bottom: 6px; }
.strength-card p { color: var(--text-light); font-size: .88rem; line-height: 1.6; margin: 0; }

/* ===== Company stats on about page ===== */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.about-stat-item {
    background: var(--white);
    border-radius: 10px;
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--box-shadow);
}
.about-stat-number { font-size: 1.9rem; font-weight: 800; color: var(--secondary-color); display: block; }
.about-stat-label { font-size: .82rem; color: var(--text-light); margin-top: 4px; }

/* ===== Featured news on homepage ===== */
.news-card-featured .card-image { aspect-ratio: 16/9; }

/* ===== Responsive additions ===== */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-section h2 { font-size: 1.5rem; }
    .cta-hotline, .cta-contact { margin: 6px 4px; display: inline-flex; }
    .slide-content h2 { font-size: 1.4rem; }
}

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}
.timeline-item {
    display: flex;
    gap: 28px;
    margin-bottom: 36px;
    position: relative;
}
.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin-left: 20px;
}
.timeline-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 22px 26px;
    box-shadow: var(--box-shadow);
    flex: 1;
    border-left: 3px solid var(--accent-color);
}
.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.timeline-content h3 { color: var(--primary-color); font-size: 1.05rem; margin-bottom: 8px; }
.timeline-content p { color: var(--text-light); font-size: .9rem; line-height: 1.6; margin: 0; }

/* ===== Team ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--box-shadow-hover); }
.team-avatar {
    background: linear-gradient(135deg, var(--primary-color), #1a5276);
    padding: 32px 0 0;
    display: flex;
    justify-content: center;
}
.team-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.25);
    object-fit: cover;
}
.team-info { padding: 20px 22px 24px; }
.team-info h3 { font-size: 1.05rem; color: var(--primary-color); margin-bottom: 4px; }
.team-position {
    display: inline-block;
    background: rgba(243,156,18,.15);
    color: #b7770d;
    font-size: .78rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.team-info p { color: var(--text-light); font-size: .88rem; line-height: 1.6; margin-bottom: 14px; }
.team-social { display: flex; justify-content: center; gap: 10px; }
.team-social a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem;
    transition: var(--transition);
}
.team-social a:hover { background: var(--primary-color); color: var(--white); }

/* ===== Awards ===== */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.award-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 28px 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: var(--transition);
    border-left: 3px solid var(--accent-color);
}
.award-card:hover { transform: translateY(-4px); box-shadow: var(--box-shadow-hover); }
.award-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-color), #e67e22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.award-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.award-info h3 { font-size: .95rem; color: var(--primary-color); margin-bottom: 4px; }
.award-info p { color: var(--text-light); font-size: .83rem; line-height: 1.5; margin: 0; }

/* ===== News layout (sidebar + main) ===== */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 900px) {
    .news-layout { grid-template-columns: 1fr; }
    .news-sidebar { order: -1; }
}
.news-search-notice {
    background: var(--light-gray);
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    margin-bottom: 24px;
    font-size: .95rem;
}
.news-cat-badge {
    display: inline-block;
    background: rgba(33,61,83,.08);
    color: var(--primary-color);
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ===== Sidebar widgets ===== */
.news-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 22px 20px;
}
.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}
.sidebar-search {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.sidebar-search-input {
    flex: 1;
    border: 0;
    padding: 10px 14px;
    font-size: .9rem;
    outline: none;
    font-family: inherit;
}
.sidebar-search-btn {
    background: var(--primary-color);
    color: #fff;
    border: 0;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
}
.sidebar-search-btn:hover { background: var(--accent-color); }
.sidebar-cat-list { list-style: none; }
.sidebar-cat-list li { border-bottom: 1px solid var(--light-gray); }
.sidebar-cat-list li:last-child { border-bottom: 0; }
.sidebar-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 4px;
    color: var(--text-color);
    font-size: .9rem;
    transition: var(--transition);
}
.sidebar-cat-list a:hover, .sidebar-cat-list a.active { color: var(--primary-color); font-weight: 600; padding-left: 8px; }
.cat-count {
    background: var(--light-gray);
    color: var(--text-light);
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 20px;
}
.sidebar-cat-list a.active .cat-count { background: var(--primary-color); color: #fff; }

/* Popular posts */
.popular-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.popular-item {}
.popular-link { display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; }
.popular-link:hover .popular-title { color: var(--primary-color); }
.popular-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.popular-thumb-placeholder {
    width: 64px;
    height: 48px;
    background: var(--light-gray);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    flex-shrink: 0;
}
.popular-info { flex: 1; }
.popular-title { display: block; font-size: .85rem; font-weight: 500; color: var(--text-color); line-height: 1.4; margin-bottom: 4px; transition: var(--transition); }
.popular-views { font-size: .75rem; color: var(--text-light); }

/* Newsletter */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color), #1a5276) !important;
    color: #fff;
    text-align: center;
}
.newsletter-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 14px;
}
.newsletter-widget h4 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.newsletter-widget p { color: rgba(255,255,255,.8); font-size: .85rem; margin-bottom: 14px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-input {
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    font-size: .9rem;
    outline: none;
    font-family: inherit;
    width: 100%;
}
.newsletter-btn {
    background: var(--accent-color);
    color: #fff;
    border: 0;
    padding: 11px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: .9rem;
    transition: var(--transition);
    font-family: inherit;
}
.newsletter-btn:hover { background: #e67e22; }
.newsletter-note { font-size: .75rem; color: rgba(255,255,255,.6); margin: 8px 0 0; }
