/* ====================
   1. CẤU HÌNH CƠ BẢN
   ==================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

:root {
    /* --- BẢNG MÀU CHUẨN L40 --- */
    --primary-color: #E31E24; /* Màu Đỏ Logo (Dùng cho nút, tiêu đề, active) */
    --secondary-color: #1B365D; /* Màu Xanh Đậm ICC040 (Dùng cho nền tối, footer) */
    --text-muted: #6c757d;
}

.text-primary { color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color); 
}
.btn-primary:hover {
    background-color: #c41217; /* Đỏ đậm hơn khi hover */
    border-color: #c41217;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ====================
   2. NAVBAR & HEADER
   ==================== */
/* Header Overlay (Menu đè lên ảnh) */
.header-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%;
    z-index: 999;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.header-overlay .top-bar {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.header-overlay .navbar {
    background: transparent !important;
    box-shadow: none !important;
}

.header-overlay .navbar-brand,
.header-overlay .nav-link, 
.header-overlay .top-bar, .header-overlay .top-bar a, .header-overlay .top-bar i {
    color: #fff !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Navbar Logo Animation */
.navbar-brand img {
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Page Header (Banner Trang Con) */
.page-header {
    height: 50vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 0;
}
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.5); }

@media (max-width: 768px) {
    .page-header { height: 40vh; }
}

/* ====================
   3. TRANG CHỦ & GENERAL
   ==================== */
/* Tiêu đề Section */
.section-header { margin-bottom: 50px; text-align: center; }
.section-subtitle {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--primary-color); margin: 15px auto 0; border-radius: 2px;
}

/* Hero Carousel (Zoom Effect) */
@keyframes kenburns {
    from { transform: scale(1); transform-origin: center center; }
    to { transform: scale(1.15); transform-origin: center center; }
}
.carousel-item { height: 80vh; position: relative; overflow: hidden; }
.ken-burns-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    animation: kenburns 25s linear infinite alternate; z-index: 0;
}
.overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); z-index: 1;
}
.carousel-caption { z-index: 2; bottom: 30%; }

/* Service Cards (Trang chủ) */
.home-service-box {
    position: relative; overflow: hidden; border-radius: 15px;
    height: 350px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.home-service-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.home-service-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, var(--secondary-color), transparent);
    padding: 30px; color: #fff; transition: all 0.3s;
}
.home-service-box:hover .home-service-img { transform: scale(1.1); }
.service-icon-small { font-size: 2rem; margin-bottom: 15px; color: #fff; }

/* Stat Box */
.stat-box {
    background: #fff; padding: 30px 20px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center;
    transition: transform 0.3s; border-bottom: 4px solid transparent;
}
.stat-box:hover { transform: translateY(-10px); border-bottom-color: var(--primary-color); }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary-color); margin-bottom: 5px; }
.stat-label { font-weight: 600; color: var(--secondary-color); text-transform: uppercase; font-size: 0.9rem; }

/* Home News Card */
.home-news-card { border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-radius: 10px; overflow: hidden; transition: all 0.3s; }
.home-news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.home-news-img { height: 200px; object-fit: cover; }
.home-news-body { padding: 20px; }
.home-news-title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; color: #333; text-decoration: none; }
.home-news-title:hover { color: var(--primary-color); }

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, var(--secondary-color), #8a1014); 
    color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.cta-pattern {
    position: absolute; top: -50%; left: -10%; width: 50%; height: 200%;
    background: rgba(255,255,255,0.05); transform: rotate(30deg);
}

/* Footer */
footer.bg-dark {
    background-color: var(--secondary-color) !important;
}
footer a:hover { color: #fff !important; }

/* =========================================
   4. GIỚI THIỆU (TABS & SLIDER ĐỐI TÁC)
   ========================================= */
.vision-tabs-section {
    position: relative; padding: 80px 0;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070');
    background-size: cover; background-attachment: fixed; background-position: center;
}
.vision-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27, 54, 93, 0.9); /* Màu xanh đậm overlay */
}
.custom-tabs { border-bottom: none; justify-content: center; margin-bottom: 0; }
.custom-tabs .nav-link {
    border: none; border-radius: 10px 10px 0 0;
    background-color: rgba(255, 255, 255, 0.15); color: #fff;
    font-weight: 600; padding: 15px 40px; text-transform: uppercase; transition: all 0.3s ease;
}
.custom-tabs .nav-link.active {
    background-color: #fff;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}
.custom-tabs .nav-link:hover { background-color: rgba(255, 255, 255, 0.3); color: #fff; }
.custom-tab-content {
    background: #fff; border-radius: 10px; border-top-left-radius: 0; border-top-right-radius: 0; 
    padding: 50px; min-height: 400px;
}
.tab-image { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.core-value-list-item { display: flex; align-items: center; margin-bottom: 15px; padding: 10px; border-radius: 6px; transition: background 0.3s; }
.core-value-list-item:hover { background: #f8f9fa; }
.core-value-icon-small {
    width: 40px; height: 40px;
    background: rgba(227, 30, 36, 0.1); color: var(--primary-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px;
}

/* Partner Slider */
.partner-logo-box {
    height: 120px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #eee; border-radius: 15px;
    padding: 15px; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.partner-logo-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.partner-logo-img {
    max-height: 80px; max-width: 100%; filter: grayscale(100%); opacity: 0.7; transition: all 0.3s ease;
}
.partner-logo-box:hover .partner-logo-img { filter: grayscale(0%); opacity: 1; }
.partner-carousel-control {
    width: 40px; height: 40px; background-color: var(--primary-color);
    border-radius: 50%; top: 50%; transform: translateY(-50%); opacity: 1;
}
.partner-carousel-control:hover { background-color: var(--secondary-color); }
.carousel-control-prev.partner-carousel-control { left: -20px; }
.carousel-control-next.partner-carousel-control { right: -20px; }
@media (max-width: 768px) { .partner-carousel-control { display: none; } }
#partnerCarousel .carousel-item { height: auto !important; min-height: unset !important; }
#partnerCarousel .carousel-inner { padding-bottom: 30px; }

/* =========================================
   5. CÁC TRANG CHỨC NĂNG KHÁC
   ========================================= */

/* --- LIÊN HỆ --- */
.contact-icon-circle {
    width: 50px; height: 50px; min-width: 50px;
    background-color: rgba(227, 30, 36, 0.1);
    color: var(--primary-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-right: 20px; transition: all 0.3s ease;
}
.contact-info-item:hover .contact-icon-circle {
    background-color: var(--primary-color); color: #fff; transform: rotateY(360deg);
}
.contact-form-box { background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-control:focus, .form-select:focus {
    background-color: #fff; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
}
.map-container iframe { width: 100%; height: 450px; border: 0; filter: grayscale(20%); }

/* --- TUYỂN DỤNG (CẬP NHẬT MỚI) --- */
.benefit-box {
    text-align: center; padding: 30px 20px; background: #fff; border: 1px solid #eee;
    border-radius: 12px; transition: all 0.3s; height: 100%;
}
.benefit-box:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--primary-color); }
.benefit-icon {
    width: 70px; height: 70px;
    background: rgba(227, 30, 36, 0.1); color: var(--primary-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 20px; transition: all 0.3s;
}
.benefit-box:hover .benefit-icon { background: var(--primary-color); color: #fff; }

/* JOB CARD (Thẻ việc làm 3D Effect) */
.job-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.job-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(227, 30, 36, 0.15);
    border-color: transparent;
}
.job-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0%;
    background: var(--primary-color); transition: height 0.3s ease;
}
.job-card:hover::before { height: 100%; }

.job-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.job-title a { text-decoration: none; color: #333; transition: color 0.3s; }
.job-card:hover .job-title a { color: var(--primary-color); }

.job-meta { font-size: 0.95rem; color: #666; margin-bottom: 20px; line-height: 1.8; }
.job-meta i { color: var(--text-muted); width: 20px; text-align: center; margin-right: 8px; }
.text-success.fw-bold {
    color: #28a745 !important; background: rgba(40, 167, 69, 0.1);
    padding: 2px 8px; border-radius: 4px; font-size: 0.9rem;
}

.btn-apply {
    background: #fff; color: var(--primary-color); border: 1px solid var(--primary-color);
    font-weight: 600; padding: 8px 25px; border-radius: 50px; text-decoration: none;
    transition: all 0.3s ease; display: inline-block;
}
.job-card:hover .btn-apply, .btn-apply:hover {
    background: var(--primary-color); color: #fff; box-shadow: 0 4px 10px rgba(227, 30, 36, 0.3);
}

.job-badge {
    position: absolute; top: 20px; right: 20px; background: #ffc107;
    color: #856404; font-size: 0.7rem; font-weight: 800; padding: 4px 10px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- TIN TỨC --- */
.news-filter-btn {
    border: 1px solid #e0e0e0; background: #fff; color: #555;
    padding: 8px 25px; border-radius: 50px; margin: 0 5px 10px;
    font-weight: 500; transition: all 0.3s;
}
.news-filter-btn:hover, .news-filter-btn.active {
    background: var(--primary-color); color: #fff; border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(227, 30, 36, 0.2);
}

.news-card {
    background: #fff; border: none; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: all 0.3s ease;
    height: 100%; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.news-img-wrap {
    position: relative; overflow: hidden; padding-top: 60%; width: 100%;
}
.news-card-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.5s ease;
}
.news-card:hover .news-card-img { transform: scale(1.1); }
.news-date-badge {
    position: absolute; top: 15px; left: 15px; background: #fff;
    padding: 5px 12px; border-radius: 6px; font-size: 0.8rem;
    font-weight: bold; color: #333; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2; text-align: center;
}
.news-date-badge span { display: block; line-height: 1; }
.news-day { font-size: 1.2rem; font-weight: 800; color: var(--primary-color); }
.news-month { font-size: 0.7rem; text-transform: uppercase; margin-top: 2px; }

.news-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.news-category {
    font-size: 0.75rem; text-transform: uppercase; color: var(--primary-color);
    font-weight: 700; margin-bottom: 10px; letter-spacing: 1px;
}
.news-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 15px; line-height: 1.4; }
.news-title a { color: #333; text-decoration: none; transition: color 0.2s; }
.news-title a:hover { color: var(--primary-color); }
.news-excerpt {
    color: #6c757d; font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-link {
    color: var(--primary-color); font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center;
}
.news-link:hover { text-decoration: underline; }

.pagination .page-link {
    border: none; margin: 0 5px; border-radius: 5px !important; color: #555;
    font-weight: 600; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
}
.pagination .page-link:hover { background-color: #f0f0f0; color: var(--primary-color); }
.pagination .page-item.active .page-link {
    background-color: var(--primary-color); border-color: var(--primary-color);
    color: #fff; box-shadow: 0 4px 10px rgba(227, 30, 36, 0.3);
}

/* --- TIN CHI TIẾT --- */
.blog-content h3 { color: var(--primary-color); }
.blog-content blockquote { border-left: 5px solid var(--primary-color); }
.widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 50px; height: 2px; background: var(--primary-color); }
.mini-post-item:hover .mini-post-title { color: var(--primary-color); }
.cat-list a:hover { color: var(--primary-color); padding-left: 5px; }

/* --- LĨNH VỰC HOẠT ĐỘNG --- */
.sector-card {
    display: flex; background: #fff; border: 1px solid #e9ecef; border-radius: 10px;
    overflow: hidden; margin-bottom: 30px; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.sector-card:hover {
    transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary-color);
}
.sector-img-wrap { width: 35%; position: relative; overflow: hidden; }
.sector-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.sector-card:hover .sector-img { transform: scale(1.1); }
.sector-body { width: 65%; padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.sector-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; color: #333; }
.sector-title a { text-decoration: none; color: inherit; transition: color 0.2s; }
.sector-title a:hover { color: var(--primary-color); }
.sector-desc {
    color: #6c757d; font-size: 0.95rem; margin-bottom: 15px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.btn-link-custom {
    color: var(--primary-color); font-weight: 600; text-decoration: none;
    font-size: 0.9rem; display: inline-flex; align-items: center;
}
.btn-link-custom:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .sector-card { flex-direction: column; }
    .sector-img-wrap, .sector-body { width: 100%; }
    .sector-img-wrap { height: 200px; }
}
.sidebar-box { background: #f8f9fa; padding: 25px; border-radius: 10px; margin-bottom: 30px; border: 1px solid #eee; }
.sidebar-heading {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color); position: relative;
}
.category-list li { margin-bottom: 10px; border-bottom: 1px dashed #e0e0e0; padding-bottom: 10px; }
.category-list li:last-child { border: none; margin: 0; padding: 0; }
.category-list a {
    color: #555; text-decoration: none; display: flex; justify-content: space-between;
    align-items: center; transition: all 0.2s; font-weight: 500;
}
.category-list a:hover, .category-list a.active { color: var(--primary-color); padding-left: 5px; }
.count-badge { background: #e9ecef; color: #333; font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; }
.download-box { background: var(--secondary-color); color: #fff; padding: 30px; border-radius: 10px; text-align: center; }
.download-box h5 { font-weight: 700; margin-bottom: 15px; }
.btn-light-outline {
    border: 1px solid #fff; color: #fff; background: transparent;
    border-radius: 50px; padding: 8px 20px; transition: all 0.3s;
}
.btn-light-outline:hover { background: #fff; color: var(--secondary-color); }

/* =========================================
   BOOTSTRAP OVERRIDES (MÀU SẮC)
   ========================================= */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-dark { background-color: var(--secondary-color) !important; }
.text-success { color: #28a745 !important; }

/* =========================================
   6. STYLE TIN TỨC MỚI (FIX LỖI GIAO DIỆN)
   ========================================= */

/* Section Wrapper */
.news-section-v2 {
    position: relative;
    padding: 80px 0 100px;
    background-color: var(--secondary-color); /* MÀU DỰ PHÒNG: Xanh đậm */
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Lớp phủ màu XANH ĐẬM đặc trưng của L40 */
.news-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27, 54, 93, 0.95); /* Màu #1B365D + độ trong suốt */
    z-index: 1;
}

.letter-spacing-2 { letter-spacing: 2px; }

/* Menu Links (Giả lập Tabs) */
.news-nav-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.news-nav-links a:hover, 
.news-nav-links a.active {
    color: #fff !important;
    border-color: #fff;
}

/* Card Style - Khung tin tức */
.card-news-custom {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-news-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* QUAN TRỌNG: Khung chứa ảnh phải có chiều cao cố định */
.card-img-top-wrap {
    height: 220px !important; /* Bắt buộc chiều cao 220px */
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #eee;
}

/* Ảnh bên trong khung */
.card-img-top-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cắt ảnh vừa khung, không bị méo */
    transition: transform 0.5s;
    display: block;
}

.card-news-custom:hover .card-img-top-wrap img {
    transform: scale(1.1);
}

/* Badge (Tin L40) */
.news-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: #fff;
    color: #333;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
}

/* Cắt chữ đoạn mô tả */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.card-news-custom:hover .read-more-link,
.card-news-custom:hover .card-title a {
    color: var(--primary-color);
}

/* =========================================
   7. STYLE GIỚI THIỆU (CHUẨN SOURCE OCBS - L40 VERSION)
   ========================================= */

.about-style-l40 {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
    position: relative;
}

/* KHUNG CHỨA HÌNH ẢNH (WRAPPER) */
.about-l40-left {
    position: relative;
    height: 600px; /* Chiều cao cố định để giữ khung */
    width: 100%;
    margin-top: 30px;
}

/* --- 1. HÌNH NỀN XOAY (SHAPE) --- */
.shape-rotater {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    z-index: 0;
    opacity: 0.05; /* Làm mờ để thành nền */
    animation: rotateme 60s linear infinite;
    
    /* Thay hình shape bằng Logo L40 */
    background-image: url('images/L40.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

@keyframes rotateme {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- 2. ẢNH CHÍNH (IMG-BOX1: DỌC) --- */
.img-box1 {
    position: absolute;
    bottom: 0;
    left: 20px;
    z-index: 1;
    width: 45%; /* Chiều rộng hẹp */
    height: 500px; /* Chiều cao lớn -> Tạo dáng dọc */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.img-box1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 3. ẢNH PHỤ (IMG-BOX2: NGANG) --- */
.img-box2 {
    position: absolute;
    top: 30px;
    right: -70px;
    z-index: 2;
    width: 58%; /* Rộng hơn ảnh chính */
    height: 250px; /* Thấp -> Tạo dáng ngang */
    border-radius: 15px;
    overflow: hidden;
    
    /* VIỀN TRẮNG DÀY: Kỹ thuật tách ảnh giống OCBS */
    border: 12px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.img-box2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 4. BADGE THỐNG KÊ (EXPERIENCE-BOX) --- */
/* --- 4. BADGE THỐNG KÊ (CÓ ĐỘ TRONG SUỐT) --- */
/* --- 4. BADGE THỐNG KÊ (NỀN TRONG SUỐT + MÀU XANH CŨ) --- */
.experience-box {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 3;
    
    /* --- THAY ĐỔI TẠI ĐÂY --- */
    /* Màu xanh cũ (#1B365D) chuyển sang RGBA có độ mờ 0.85 (85%) */
    background-color: rgba(27, 54, 93, 0.85); 
    
    /* Hiệu ứng làm mờ nền phía sau (Glassmorphism) giúp chữ dễ đọc hơn */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* ------------------------ */

    width: 230px;
    height: 230px;
    border-radius: 15px;
    
    /* Flexbox căn giữa nội dung */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    
    /* VIỀN TRẮNG DÀY: Giữ nguyên để tách khối */
    border: 12px solid #fff;
    
    /* Bóng đổ nhẹ hơn chút để hợp với độ trong suốt */
    box-shadow: 0 15px 35px rgba(27, 54, 93, 0.25);
}

/* LOGO L40 TRONG BADGE */
.exp-icon {
    width: 60px; /* Kích thước cố định nhỏ gọn */
    height: 60px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.exp-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    
}

/* TEXT TRONG BADGE */
.experience-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1;
}
.experience-box h2 span {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
}
.experience-box .text h3 {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 991px) {
    .about-l40-left { height: auto; margin-top: 50px; }
    .shape-rotater { width: 300px; height: 300px; left: 50%; top: 50%; }
    
    .img-box1, .img-box2, .experience-box {
        position: relative;
        width: 100%;
        top: auto; bottom: auto; left: auto; right: auto;
        border: none;
        margin-bottom: 20px;
    }
    .img-box1 { height: 350px; }
    .experience-box { height: auto; padding: 30px; border: none; width: 100%; }
}

/* =========================================
   8. ĐỐI TÁC CHIẾN LƯỢC (OCBS STYLE)
   ========================================= */

.partner-section {
    position: relative;
    border-top: 1px solid #f0f0f0; /* Đường kẻ mờ ngăn cách */
}

/* Typography chuẩn L40 */
.partner-section h6 {
    font-size: 0.85rem;
    color: var(--primary-color) !important; /* Màu Đỏ L40 */
}

.partner-section h2 {
    color: var(--secondary-color); /* Màu Xanh đậm L40 */
}

/* Style cho từng ô logo */
.partner-item {
    height: 100px; /* Chiều cao cố định khung chứa */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.4s ease;
    /* Hiệu ứng Frame ẩn: Ban đầu không có viền, hover mới hiện */
    border: 1px solid transparent; 
}

/* Ảnh logo */
.partner-item img {
    max-width: 100%;
    max-height: 60px; /* Giới hạn chiều cao logo cho đều */
    object-fit: contain;
    filter: grayscale(100%); /* Chuyển sang đen trắng */
    opacity: 0.6; /* Làm mờ nhẹ */
    transition: all 0.4s ease;
}

/* Hiệu ứng khi di chuột vào (Hover) */
.partner-item:hover {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Đổ bóng nhẹ */
    transform: translateY(-5px); /* Nổi lên */
    border-color: #eee; /* Hiện viền mờ */
}

.partner-item:hover img {
    filter: grayscale(0%); /* Trả lại màu gốc */
    opacity: 1; /* Rõ nét 100% */
    transform: scale(1.1); /* Phóng to nhẹ logo */
}

/* Responsive: Trên mobile logo nhỏ hơn chút */
@media (max-width: 768px) {
    .partner-item { height: 80px; }
    .partner-item img { max-height: 45px; }
}
/* =========================================
   9. CUSTOM BUTTON SLIDER ĐỐI TÁC
   ========================================= */

/* Định vị nút bấm ra ngoài rìa một chút */
.partner-nav-btn {
    width: 50px !important;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important; /* Luôn hiển thị rõ */
    background: none;
    border: none;
}

/* Đẩy nút ra 2 bên mép (nếu màn hình rộng) */
.carousel-control-prev.partner-nav-btn { left: -10px; }
.carousel-control-next.partner-nav-btn { right: -10px; }

@media (min-width: 1200px) {
    .carousel-control-prev.partner-nav-btn { left: -60px; }
    .carousel-control-next.partner-nav-btn { right: -60px; }
}

/* Style cho vòng tròn icon */
.partner-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color); /* Màu nền Xanh đậm L40 */
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Hiệu ứng Hover vào nút -> Chuyển màu Đỏ */
.partner-nav-btn:hover .partner-nav-icon {
    background-color: var(--primary-color); /* Màu Đỏ L40 */
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(227, 30, 36, 0.3);
}

/* Ẩn nút trên mobile để đỡ vướng (Mobile sẽ vuốt tay) */
@media (max-width: 768px) {
    .partner-nav-btn { display: none; }
}


/* =========================================
   10. STYLE FOOTER & CTA (OCBS REPLICA)
   ========================================= */

/* --- CTA SECTION (Banner phía trên) --- */
.footer-cta-section {
    padding-bottom: 50px;
    background-color: #fff; /* Nền trắng để nối liền phần trên */
}

/* --- CTA SECTION FULL WIDTH --- */
.cta-section-full {
    width: 100%;
    padding: 20px 0; /* Khoảng cách trên dưới */
    /* Gradient Đỏ - Xanh đậm L40 chạy toàn màn hình */
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    
}

/* Họa tiết trang trí nền */
.cta-bg-pattern-full {
    position: absolute;
    top: -50%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none; /* Không che mất nút bấm */
}

/* Ảnh minh họa bên phải */
.cta-img-full {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    /* Hiệu ứng nghiêng và nổi khối */
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) scale(0.9);
    box-shadow: -20px 20px 50px rgba(0,0,0,0.3);
    border: 5px solid rgba(255,255,255,0.15);
    transition: transform 0.5s ease;
}

/* Khi di chuột vào khu vực CTA, ảnh sẽ thẳng lại */
.cta-section-full:hover .cta-img-full {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1);
}

/* --- FOOTER MAIN (Giữ nguyên hoặc chỉnh lại màu nền nếu cần) --- */
.footer-ocbs {
    background-color: #F9FAFB !important;
    font-size: 0.95rem;
}

/* Link Style */
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #555; /* Màu chữ xám đậm */
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-links a:hover {
    color: var(--primary-color) !important; /* Bắt buộc dùng màu Đỏ */
    padding-left: 5px;
    background: transparent !important; /* Đảm bảo không bị dính nền lạ */
}

/* Social Icons */
.social-icons-footer a {
    width: 36px; height: 36px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    color: #333;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}
.social-icons-footer a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Nút download app (nếu có dùng sau này) */
.btn-app-store {
    background: #000;
    color: #fff;
    border-radius: 8px;
    padding: 5px 15px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 10px;
}
.btn-app-store:hover { background: #333; color: #fff; }

/* =========================================
   11. STYLE SIDEBAR TIN TỨC (FIX LỖI)
   ========================================= */

/* Khoảng cách giữa các Widget */
.sidebar-widget {
    margin-bottom: 40px; /* Tạo khoảng cách thoáng giữa các khối */
}

/* Tiêu đề Widget (Gạch chân đỏ) */
.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    border-bottom: 1px solid #eee;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color); /* Màu đỏ chủ đạo */
}

/* 1. Form Tìm kiếm */
.sidebar-widget .form-control {
    border-radius: 50px; /* Bo tròn ô nhập liệu */
    padding-right: 40px; /* Chừa chỗ cho nút search */
    border: 1px solid #e0e0e0;
}
.sidebar-widget .form-control:focus {
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
    border-color: var(--primary-color);
}
.sidebar-widget button[type="submit"] {
    background: none;
    border: none;
    top: 2px;
    right: 5px;
    height: 34px;
    width: 34px;
    border-radius: 50%;
    transition: background 0.3s;
}
.sidebar-widget button[type="submit"]:hover {
    background-color: #f0f0f0;
}

/* 2. Danh sách Danh mục (Category) */
.cat-list li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee; /* Đường kẻ đứt nét mờ */
    padding-bottom: 10px;
}
.cat-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.cat-list a {
    display: flex;
    justify-content: space-between; /* Đẩy số lượng sang phải */
    align-items: center;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: all 0.3s;
}
.cat-list a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* Hiệu ứng dịch chuyển nhẹ */
}
.cat-list a span {
    font-size: 0.8rem;
    background-color: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
    color: #888;
}

/* 3. Bài viết mới nhất (Mini Posts) */
.mini-post-item {
    display: flex; /* Xếp ảnh và chữ nằm ngang */
    align-items: center;
    text-decoration: none;
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.mini-post-item:hover {
    transform: translateX(5px);
}

/* Ảnh thumbnail nhỏ */
.mini-post-img {
    width: 80px;
    height: 80px;
    object-fit: cover; /* Cắt ảnh vuông vắn không bị méo */
    border-radius: 10px;
    margin-right: 15px;
    flex-shrink: 0; /* Giữ nguyên kích thước ảnh */
}

/* Tiêu đề bài viết nhỏ */
.mini-post-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
    /* Cắt dòng nếu tiêu đề quá dài */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}
.mini-post-item:hover .mini-post-title {
    color: var(--primary-color);
}

/* Ngày tháng */
.mini-post-date {
    font-size: 0.8rem;
    color: #999;
}
/* =========================================
   FIX LỖI ẢNH TRÀN TOÀN TRANG
   (Không thay đổi thiết kế cũ)
   ========================================= */
img {
    max-width: 100%; /* Ảnh không bao giờ được rộng hơn khung chứa nó */
    height: auto;    /* Chiều cao tự động điều chỉnh theo tỷ lệ, tránh méo ảnh */
    display: block;  /* Loại bỏ khoảng trắng thừa nhỏ xíu bên dưới một số ảnh */
}

/* Đảm bảo các ảnh trong bài viết hoặc khung nội dung không bị tràn */
.container img, 
.row img, 
.col img,
.card-body img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   12. HIỆU ỨNG PRELOADER (LOADING PAGE)
   ========================================= */

/* Màn che toàn màn hình */
#l40-preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* --- THAY ĐỔI QUAN TRỌNG TẠI ĐÂY --- */
    background-color: rgba(0, 0, 0, 0.6); /* Màu đen với độ trong suốt 60% */
    backdrop-filter: blur(5px); /* Làm mờ nội dung trang web phía sau */
    -webkit-backdrop-filter: blur(5px); /* Hỗ trợ trình duyệt Safari */
    /* ----------------------------------- */

    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    visibility: visible;
}

/* Class để ẩn loader đi */
#l40-preloader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Không chặn click khi đã ẩn */
}

/* Khung chứa Logo và Vòng xoay */
.loader-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. Vòng tròn xoay (Spinner Ring) */
.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    /* Tạo màu gradient Đỏ - Xanh cho viền */
    border-top-color: var(--primary-color); /* Màu Đỏ */
    border-right-color: var(--secondary-color); /* Màu Xanh */
    animation: spinRing 1s linear infinite; /* Xoay liên tục */
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* Hiệu ứng xoay vòng */
@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 2. Logo ở giữa */
.loader-logo-wrap {
    width: 70px; /* Kích thước logo nhỏ hơn vòng tròn */
    height: 70px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 50%; /* Nền trắng tròn phía sau logo */
    animation: pulseLogo 2s ease-in-out infinite; /* Hiệu ứng nhịp thở nhẹ */
}

.loader-logo-wrap img {
    max-width: 80%;
    height: auto;
}

/* Hiệu ứng Logo phóng to thu nhỏ nhẹ (Nhịp thở) */
@keyframes pulseLogo {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(0.95); }
}

/* =========================================
   13. NÚT SCROLL TO TOP (L40 STYLE)
   ========================================= */

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99; /* Đảm bảo nút luôn nằm trên các thành phần khác */
    border: none;
    outline: none;
    
    /* Màu nền mặc định: Xanh đậm L40 */
    background-color: var(--secondary-color); 
    color: white;
    
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Bo tròn hoàn toàn */
    font-size: 1.2rem;
    
    /* Hiệu ứng bóng đổ và chuyển động mượt */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    
    /* Mặc định ẩn nút đi (dùng JS để hiện) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Khi nút hiện ra (JS sẽ thêm class này) */
#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hiệu ứng khi di chuột vào: Chuyển sang màu Đỏ L40 và bay lên nhẹ */
#scrollToTopBtn:hover {
    background-color: var(--primary-color); /* Màu đỏ */
    transform: translateY(-5px); /* Bay lên 5px */
    box-shadow: 0 8px 15px rgba(227, 30, 36, 0.4); /* Bóng đỏ phát sáng */
}

/* Responsive: Trên điện thoại nút nhỏ lại chút và dịch vào trong */
@media (max-width: 768px) {
    #scrollToTopBtn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}