
:root {
    /* --- MÀU SẮC GỐC --- */
    --primary-color: #d32f2f;
    --secondary-color: #0d233e; /* Màu đen xám cho header card giống mẫu */
    --secondary-dark: #222222;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --card-header-bg: #343a40; /* Màu nền tối cho phần trên của card */

    --accent-gradient: linear-gradient(135deg, #0d233e 0%, #1e4b82 100%);
    --highlight-gradient: linear-gradient(135deg, #d32f2f 0%, #ff6b6b 100%);
}
tbody, td, tfoot, th, thead, tr {
    border-style: solid;
    border-width: 1px;
    border-color: #e0e0e0;
    padding: 10px 12px;
}
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

/* --- NAVBAR & FOOTER (GIỮ NGUYÊN) --- */
.navbar { box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 15px 0; }
.navbar-brand { font-weight: 700; font-size: 1.5rem; color: #172643; }
.nav-link { font-weight: 500; color: #333; padding: 10px 20px !important;}
.nav-link:hover { color: var(--primary-color); }
.navbar-toggler { border: none; padding: 0; width: 30px; height: 24px; position: relative; outline: none !important; box-shadow: none !important; }
.hamburger-lines { display: block; position: absolute; height: 3px; width: 100%; background: #0d233e; border-radius: 10px; left: 0; transition: .25s ease-in-out; }
.hamburger-lines:nth-child(1) { top: 0px; }
.hamburger-lines:nth-child(2) { top: 10px; }
.hamburger-lines:nth-child(3) { top: 20px; }
.offcanvas-header { background: var(--bg-light); border-bottom: 1px solid #eee; }
.offcanvas-title { font-weight: 700; color: #0d233e; }
.btn-contact { background: var(--primary-color); color: white; font-weight: 600; border-radius: 4px; padding: 8px 20px; text-decoration: none; }
.btn-contact:hover { background: #b71c1c; color: white; }

@media (min-width: 992px) {
    .navbar-offcanvas-lg { position: static; display: flex !important; flex-direction: row; align-items: center; justify-content: flex-end; width: auto; background: transparent; }
    .navbar-offcanvas-lg .offcanvas-header { display: none; }
    .navbar-offcanvas-lg .offcanvas-body { display: flex; padding: 0; overflow-y: visible; }
}

/* --- HERO SECTION --- */
.hero-section {
    /* background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); */
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
    background: #f2f2f2;
    background: linear-gradient(133deg, #fdfdfd 8%, rgb(255 230 231 / 67%) 28%, rgb(234 242 254 / .7) 36%);
}
.hero-title {
    font-weight: 700;
    color: #0d233e;
    margin-bottom: 15px;
}
.hero-desc {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* --- FILTER BAR --- */
.filter-bar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* --- GRID CARD STYLES (NEW) --- */
.case-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Top Dark Section */
.case-card-header {
    background: var(--card-header-bg); /* Màu xám đen */
    /* padding: 40px 20px; */
    text-align: center;
    color: #fff;
    position: relative;
    /* Thêm gradient nhẹ để tạo chiều sâu giống mẫu */
    background: linear-gradient(to bottom, #434343, #2b2b2b); 
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.case-card-header img {
    width: 100%;
    height: auto;
}

/* Đường viền màu trên cùng thẻ (tùy chọn giống mẫu) */
.case-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color); /* Hoặc màu xanh tùy case */
}

.client-industry {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: capitalize;
}

.leading-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 5px;
    display: block;
}

/* Bottom White Section */
.case-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.device-type {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.case-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.case-date {
    color: #888;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: padding-left 0.2s;
}

.read-more-link:hover {
    padding-left: 5px;
    color: #b71c1c;
}

/* Load More Button */
.btn-load-more {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-load-more:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Animation for new items */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Footer */
footer { background-color: #0d233e; color: white; padding: 50px 0 20px;}
footer h5 { color: #fff; font-weight: 700; margin-bottom: 20px; }
footer a { color: #ccc; text-decoration: none; }
footer a:hover { color: #fff; }


/* Breadcrumb */
.breadcrumb-section {
    background-color: #f1f1f1;
    padding: 10px 0;
    font-size: 0.9rem;
    margin-bottom: 30px;
    color: #666;
}
#breadcrumbs a {
    color: #666;
    text-decoration: none;
}
/* Main Layout */
h1.case-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.meta-info {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.meta-info .post-views {
    display: inline;
}
/* Content Styling */
.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.content-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 20px;
}

.highlight-box {
    background-color: #fff3f3;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
}

/* Process Steps */
.process-step {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}
.step-number {
    background-color: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 15px;
    flex-shrink: 0;
    font-weight: bold;
}

/* Sidebar Cards (Stellar Style) */
/* Sidebar Sticky */
.sticky-sidebar {
    position: -webkit-sticky; /* Cho Safari */
    position: sticky;
    top: 90px; 
    z-index: 10;
}
.sidebar-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-header-custom {
    background: var(--accent-gradient);
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.card-header-danger {
    background: var(--highlight-gradient);
}

.stat-item {
    margin-bottom: 15px;
}
.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}
.stat-value {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Tech List */
.tech-list li {
    margin-bottom: 8px;
    list-style: none;
    position: relative;
    padding-left: 25px;
}
.tech-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}
/* CTA Section */
.cta-section {
    background: #ebf6f2;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin-top: 40px;
    /* border: 1px dashed var(--primary-color); */
    box-shadow: 0 10px 32px rgb(34 42 53 / 0.12), 0 1px 1px rgb(0 0 0 / 0.05), 0 0 0 1px rgb(34 42 53 / 0.05), 0 4px 6px rgb(34 42 53 / 0.08), 0 24px 108px rgb(47 48 55 / 0.10);
    

    /* background-color: rgb(243, 247, 254);
    box-shadow: rgba(12, 0, 32, 0.06) 0px 4px 34px -6px, rgba(12, 0, 32, 0.03) 0px 0px 0px 1px; */
}

/* Video Placeholder */
.video-placeholder {
    width: 100%;
    height: 300px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
}
.play-btn {
    font-size: 3rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
}

@media (max-width: 991px) {
    .sidebar {
        margin-top: 40px;
    }
}

.fixed-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: fixed;
    right: 0;
    bottom: 20px;
    z-index: 999
}

/* .fixed-btn .goTop {
    margin-top: 10px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s
} */

.zalo a:hover {
    opacity: 0.8
}

.mess {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 10px
}

.mess a:hover {
    opacity: 0.8
}

.call {
    background-color: transparent;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -webkit-transition: visibility 0.5s;
    transition: visibility 0.5s;
    right: 0;
    bottom: 60px;
    display: block
}

.call .call-circle {
    width: 80px;
    height: 80px;
    top: 1px;
    left: 1px;
    position: absolute;
    background-color: transparent;
    border-radius: 100%;
    border: 2px solid #ef4636;
    -webkit-animation: phonering-alo-circle-anim 1.2s infinite ease-in-out;
    animation: phonering-alo-circle-anim 1.2s infinite ease-in-out;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    opacity: 0.5
}

.call .call-circle-fill {
    width: 60px;
    height: 60px;
    top: 11px;
    left: 11px;
    position: absolute;
    background-color: rgba(239,70,54,0.7);
    border-radius: 100%;
    border: 2px solid transparent;
    -webkit-animation: phonering-alo-circle-fill-anim 2.3s infinite ease-in-out;
    animation: phonering-alo-circle-fill-anim 2.3s infinite ease-in-out;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%
}

.call .call-img-circle {
    background-color: #ef4636;
    width: 40px;
    height: 40px;
    top: 21px;
    left: 21px;
    position: absolute;
    background-size: 20px;
    border-radius: 100%;
    border: 2px solid transparent;
    -webkit-animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
    animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center
}

.call .call-img-circle a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
}

.call .call-img-circle a img {
    width: 20px;
    height: 20px
}

@-webkit-keyframes phonering-alo-circle-anim {
    0% {
        -webkit-transform: rotate(0) scale(0.5) skew(1deg);
        -webkit-opacity: 0.1
    }

    30% {
        -webkit-transform: rotate(0) scale(0.7) skew(1deg);
        -webkit-opacity: 0.5
    }

    to {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
        -webkit-opacity: 0.1
    }
}

@-webkit-keyframes phonering-alo-circle-fill-anim {
    0% {
        -webkit-transform: rotate(0) scale(0.7) skew(1deg);
        opacity: 0.6
    }

    50% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
        opacity: 0.6
    }

    to {
        -webkit-transform: rotate(0) scale(0.7) skew(1deg);
        opacity: 0.6
    }
}

@-webkit-keyframes phonering-alo-circle-img-anim {
    0% {
        -webkit-transform: rotate(0) scale(1) skew(1deg)
    }

    10% {
        -webkit-transform: rotate(-25deg) scale(1) skew(1deg)
    }

    20% {
        -webkit-transform: rotate(25deg) scale(1) skew(1deg)
    }

    30% {
        -webkit-transform: rotate(-25deg) scale(1) skew(1deg)
    }

    40% {
        -webkit-transform: rotate(25deg) scale(1) skew(1deg)
    }

    50% {
        -webkit-transform: rotate(0) scale(1) skew(1deg)
    }

    to {
        -webkit-transform: rotate(0) scale(1) skew(1deg)
    }
}