/* Định nghĩa biến CSS cho màu sắc để dễ quản lý */
:root {
    /* Màu sắc chủ đạo mới - Lấy cảm hứng từ preny.ai: xanh, tím, hồng gradient */
    --primary-blue: #3A8DFF; /* Xanh dương chính */
    --primary-purple: #8A40FF; /* Tím */
    --primary-pink: #FF4092; /* Hồng */
    
    /* Gradient mới cho Hero Section và các điểm nhấn */
    --gradient-main-start: #3A8DFF; /* Xanh dương */
    --gradient-main-end: #8A40FF;   /* Tím */
    --gradient-hover-start: #2A72DB; /* Xanh đậm hơn khi hover */
    --gradient-hover-end: #6E33CC;   /* Tím đậm hơn khi hover */

    /* Màu sắc trung tính - Điều chỉnh để bớt đơn điệu, có thể có sắc thái nhẹ */
    --text-dark: #212121; /* Chữ đen đậm hơn */
    --text-light: #616161; /* Chữ xám */
    --bg-body: #F5F5F5; /* Nền toàn trang xám rất nhạt */
    --bg-white: #FFFFFF; /* Nền trắng tinh */
    --border-color: #E0E0E0; /* Viền các phần tử */
    --bg-dark-footer: #212529; /* Màu nền tối cho footer */

    /* Màu sắc mới cho Contact Section */
    --contact-bg-dark: #2c005f; /* Màu tím đậm hơn cho nền contact */
    --contact-text-light: #e0e0e0; /* Màu chữ sáng cho nền tối */


    /* Bóng đổ */
    --shadow-subtle: 0 4px 15px rgba(0,0,0,0.05); /* Bóng đổ nhẹ */
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.1); /* Bóng đổ trung bình */
    --shadow-strong: 0 12px 40px rgba(0,0,0,0.2); /* Bóng đổ mạnh */
    
    /* Bóng đổ mới cho các card nổi bật hơn */
    --card-elevated-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Bóng đổ rõ ràng hơn */
    --card-hover-elevated-shadow: 0 12px 35px rgba(0,0,0,0.2); /* Bóng đổ mạnh hơn khi hover */
    
    /* Bóng đổ cho social bubbles */
    --bubble-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

body {
    font-family: 'Lexend', sans-serif; /* Sử dụng font Lexend */
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Ngăn tràn ngang */
    background-color: var(--bg-body); /* Nền toàn trang */
}

/* Navbar */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-subtle);
    padding: 1rem 0; /* Tăng padding để thanh nav cao hơn */
}
.navbar-brand {
    font-weight: 700; /* Đậm hơn */
    font-size: 2rem !important; /* Lớn hơn */
    color: var(--primary-blue) !important; /* Màu xanh chủ đạo */
    background: -webkit-linear-gradient(45deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important; /* Tăng padding */
    position: relative;
}
.nav-link.active {
    color: var(--primary-purple) !important; /* Màu active là tím */
    font-weight: 600;
}
.nav-link:hover {
    color: var(--primary-blue) !important; /* Màu hover là xanh */
}
/* Hiệu ứng gạch chân dưới khi active/hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0.25rem; /* Khoảng cách từ chữ đến gạch chân */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    transition: width .3s ease-in-out;
}
.nav-link.active::after,
.nav-link:hover::after {
    width: 70%; /* Chiều rộng gạch chân */
}
.navbar .nav-item .btn.nav-link { /* Nút "Bắt đầu ngay" */
    color: white !important;
    background: linear-gradient(90deg, var(--gradient-main-start), var(--gradient-main-end)) !important;
    border: none !important;
    border-radius: 50px !important; /* Bo tròn nhiều hơn */
    padding: 0.75rem 1.5rem !important; /* Tăng padding */
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 1 !important;
    transition: all 0.3s ease;
}
.navbar .nav-item .btn.nav-link:hover {
    background: linear-gradient(90deg, var(--gradient-hover-start), var(--gradient-hover-end)) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px); /* Nhấc nhẹ lên */
}
.navbar .nav-item .btn.nav-link::after { /* Bỏ gạch chân cho nút */
    display: none;
}


/* Dropdown menu styles */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: 0.75rem; /* Bo tròn nhiều hơn */
    padding: 0.75rem 0;
    margin-top: 0.5rem; /* Khoảng cách với navlink */
}
.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-item:hover {
    background-color: var(--bg-body);
    color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-main-start) 0%, var(--gradient-main-end) 100%);
    color: white;
    padding: 120px 0; /* Tăng padding */
    text-align: center;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1); /* Bóng đổ bên trong */
}
.hero-section h1 {
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 1.5rem !important;
}
.hero-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem !important;
    color: var(--bg-white); /* Chuyển màu chữ thành trắng tinh */
    opacity: 1; /* Đảm bảo không bị mờ */
    font-weight: 300; /* Làm chữ nhẹ hơn để dễ đọc */
    text-shadow: 0 0 5px rgba(0,0,0,0.1); /* Thêm bóng chữ nhẹ */
}
.hero-section .btn-light {
    color: var(--primary-purple) !important; /* Chữ màu tím */
    background-color: var(--bg-white) !important;
    border-color: var(--bg-white) !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.hero-section .btn-light:hover {
    background-color: rgba(255,255,255,0.9) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.hero-section .btn-outline-light {
    border-color: rgba(255,255,255,0.7) !important;
    color: white !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
}
.hero-section .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    border-color: white !important;
}
.hero-section img {
    border-radius: 12px !important;
    box-shadow: var(--shadow-strong) !important;
    margin-top: 4rem !important;
}


/* Section Cards Styling */
section {
    padding: 80px 0;
}
section:nth-child(odd) { /* Các section lẻ (ví dụ: video-quang-cao, features, cau-hoi-thuong-gap) */
    background-color: var(--bg-white);
}
section:nth-child(even) { /* Các section chẵn (ví dụ: video-gioi-thieu-san-pham, thu-vien-mau) */
    background-color: var(--bg-body);
}
h2 {
    font-weight: 700;
    font-size: 23px;
    margin-bottom: 1.5rem !important;
    color: var(--text-dark);
}
p.lead {
    color: var(--text-light);
}

a{
    text-decoration: none;
}

.feature-card, .blog-post-card, .template-card, .faq-item { /* Đã xóa .price-card ở đây vì có style riêng */
    background-color: var(--bg-white);
    border-radius: 12px; /* Bo góc nhiều hơn */
    box-shadow: var(--card-elevated-shadow); /* Sử dụng bóng đổ mới nổi bật hơn */
    padding: 30px;
    margin-bottom: 30px; /* Thêm khoảng cách dưới các thẻ */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin-right: 15px;
    margin-left: 15px;
    border: 1px solid var(--border-color); /* Thêm viền mỏng */
}
/* Điều chỉnh margin-bottom cho hàng trên của tính năng */
#features .row .col-md-4:nth-child(-n+3) .feature-card { /* Chọn 3 phần tử đầu tiên */
    margin-bottom: 30px; /* Khoảng cách với hàng dưới */
}
/* Điều chỉnh padding cho cột để bù trừ margin của card và giữ lưới Bootstrap */
.row > .col-md-4 {
    padding-left: 15px;
    padding-right: 15px;
}
.feature-card:hover, .blog-post-card:hover, .template-card:hover, .faq-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-elevated-shadow); /* Bóng đổ mạnh hơn khi hover */
}
.feature-card i {
    font-size: 3.5rem !important;
    margin-bottom: 20px;
    color: var(--primary-blue) !important;
}
/* Giữ lại màu đặc trưng cho các icon tính năng */
.feature-card .fas.fa-magic { color: #FF6F61 !important; }
.feature-card .fas.fa-cut { color: #28a745 !important; }
.feature-card .fas.fa-robot { color: #17a2b8 !important; }
.feature-card .fas.fa-palette { color: #fd7e14 !important; }
.feature-card .fas.fa-headset { color: #ffc107 !important; }
.feature-card .fas.fa-share-alt { color: #6c757d !important; }

/* How It Works Section icons */
.how-it-works .card { /* Áp dụng style cho card trong How It Works */
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--card-elevated-shadow); /* Nổi bật hơn */
    border: 1px solid var(--border-color); /* Thêm viền mỏng */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.how-it-works .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-elevated-shadow);
}
.how-it-works i {
    font-size: 4rem !important;
    margin-bottom: 20px;
    color: var(--primary-blue) !important;
}


/* CTA Section */
.cta-section .btn-primary {
    background: linear-gradient(90deg, var(--gradient-main-start), var(--gradient-main-end)) !important;
    border: none !important;
    color: white !important;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.cta-section .btn-primary:hover {
    background: linear-gradient(90deg, var(--gradient-hover-start), var(--gradient-hover-end)) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* Pricing Section */
.price-card { /* Điều chỉnh price-card riêng */
    background-color: var(--bg-white);
    border: 1px solid var(--border-color); /* Thêm viền mỏng */
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-elevated-shadow); /* Bóng đổ nổi bật */
}
.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-elevated-shadow);
}
.price-card.featured {
    background: linear-gradient(135deg, var(--gradient-main-start) 0%, var(--gradient-main-end) 100%);
    border: none;
    color: white; /* Đảm bảo chữ trắng trong card featured */
    transform: scale(1.05);
    box-shadow: var(--shadow-strong); /* Bóng đổ mạnh hơn cho featured */
}
.price-card.featured:hover {
    transform: scale(1.07); /* Phóng to hơn khi hover featured */
    box-shadow: 0 15px 50px rgba(0,0,0,.35);
}
.price-card .btn-outline-primary {
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    border-radius: 50px; /* Bo tròn nút */
}
.price-card .btn-outline-primary:hover {
    background-color: var(--primary-blue) !important;
    color: white !important;
}
.price-card.featured .btn-light {
    color: var(--primary-blue) !important; /* Chữ xanh */
    background-color: white !important; /* Nền trắng */
    border-radius: 50px; /* Bo tròn nút */
}
.price-card.featured .btn-light:hover {
    background-color: rgba(255,255,255,0.9) !important;
}
.price-card h4.fw-bold { /* Màu chữ tiêu đề gói giá */
    color: var(--text-dark);
}
.price-card.featured h4.fw-bold { /* Màu chữ tiêu đề gói giá featured */
    color: white;
}
.price-card p.fs-1.fw-bold { /* Màu chữ "Liên hệ" */
    display: none; /* Ẩn hoàn toàn dòng "Liên hệ" */
}


/* Blog, Template, FAQ section specific styles */
.blog-section .btn-primary, .template-library-section .btn-primary {
    background: linear-gradient(90deg, var(--gradient-main-start), var(--gradient-main-end)) !important;
    border: none !important;
    color: white !important;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.blog-section .btn-primary:hover, .template-library-section .btn-primary:hover {
    background: linear-gradient(90deg, var(--gradient-hover-start), var(--gradient-hover-end)) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}
.blog-section .btn-outline-primary, .template-library-section .btn-outline-success {
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    border-radius: 50px;
    font-weight: 500;
}
.blog-section .btn-outline-primary:hover, .template-library-section .btn-outline-success:hover {
    background-color: var(--primary-blue) !important;
    color: white !important;
}
.blog-post-card img, .template-card img {
    border-radius: 8px; /* Giữ nguyên bo góc ảnh bên trong card */
}

/* FAQ Section - Giảm khoảng cách */
.faq-section .accordion-item {
    margin-bottom: 8px; /* Giảm margin giữa các item */
    border: 1px solid var(--border-color); /* Thêm border cho mỗi item */
    border-radius: 8px;
}
.faq-section .accordion-header button {
    padding: 0.9rem 1.25rem; /* Giảm padding tiêu đề */
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border: 0;
    border-radius: 8px;
    box-shadow: none; /* Loại bỏ bóng đổ mặc định của accordion button */
}
.faq-section .accordion-header button:not(.collapsed) {
    color: var(--primary-blue);
    background-color: rgba(58, 141, 255, 0.05); /* Màu nền nhạt khi mở */
    box-shadow: none;
}
.faq-section .accordion-body {
    padding: 0.9rem 1.25rem; /* Giảm padding body */
    color: var(--text-light);
    border-top: 1px solid var(--border-color); /* Thêm đường kẻ trên body */
}


/* Footer */
.footer {
    background-color: var(--bg-dark-footer); /* Sử dụng biến cho màu nền tối của footer */
    color: #f8f9fa; /* Màu chữ trắng cho toàn bộ footer */
    padding: 60px 0;
    font-weight: 300; /* Font nhẹ hơn cho footer */
}
.footer .text-white-50 {
    color: rgba(248, 249, 250, 0.7) !important; /* Làm mờ chữ */
}
.footer a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer a:hover {
    color: var(--primary-blue); /* Màu xanh mới cho hover */
}
.footer .footer-logo {
    color: var(--primary-blue) !important; /* Logo footer cũng dùng màu xanh chính */
    background: -webkit-linear-gradient(45deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer h5 {
    color: var(--bg-white) !important; /* Tiêu đề footer màu trắng */
    font-weight: 600;
}
/* Icon liên hệ trong footer */
.footer p i {
    color: var(--primary-blue); /* Màu icon liên hệ là xanh */
}


/* Social Bubble Icons */
.social-bubble-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-bubble-container a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: white;
    border-radius: 50%;
    box-shadow: var(--bubble-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    font-size: 1.5rem;
    overflow: hidden;
}
.social-bubble-container a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Specific styles for each social bubble (vibrant colors) */
.social-bubble-container .bubble-facebook { background-color: #1877F2; } /* Facebook blue */
.social-bubble-container .bubble-zalo { background-color: var(--bg-white); border: 1px solid var(--border-color); } /* Nền trắng cho Zalo */
.social-bubble-container .bubble-zalo .zalo-text-logo { color: #0087FF; font-size: 0.9rem; font-weight: bold; } /* Zalo blue for text */
.social-bubble-container .bubble-youtube { background-color: #FF0000; } /* YouTube red */
.social-bubble-container .bubble-tiktok { background-color: #000000; } /* TikTok black */

/* Icon colors for bubbles (when using Font Awesome) */
.social-bubble-container .bubble-facebook i,
.social-bubble-container .bubble-youtube i,
.social-bubble-container .bubble-tiktok i {
    color: white;
}

/* Styles for the new sections */
.blog-section, .template-library-section, .faq-section, .contact-section {
    padding: 80px 0;
}
/* Nền của các section chính */
section:nth-child(odd) { /* Các section lẻ (ví dụ: video-quang-cao, features, cau-hoi-thuong-gap) */
    background-color: var(--bg-white);
}
section:nth-child(even) { /* Các section chẵn (ví dụ: video-gioi-thieu-san-pham, thu-vien-mau) */
    background-color: var(--bg-body);
}
/* Contact Section MỚI - Điều chỉnh để không bị override bởi nth-child(even) */
#contact {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #000000 100%); /* Nền gradient tím sang đen */
    color: white; /* Màu chữ trắng */
    padding: 100px 0; /* Tăng padding */
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.15); /* Bóng đổ mềm */
}
#contact h2 {
    color: white; /* Tiêu đề màu trắng */
}
#contact .form-label {
    color: rgba(255,255,255,0.8); /* Màu label form sáng nhẹ */
}
#contact .form-control {
    background-color: rgba(255,255,255,0.1); /* Nền input hơi trong suốt */
    border-color: rgba(255,255,255,0.3); /* Viền input sáng */
    color: white; /* Chữ trong input trắng */
    border-radius: 8px;
}
#contact .form-control::placeholder { /* Màu placeholder */
    color: rgba(255,255,255,0.5);
}
#contact .form-control:focus {
    background-color: rgba(255,255,255,0.2);
    border-color: white;
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.25); /* Bóng đổ focus trắng */
}
#contact .btn-primary { /* Nút Gửi yêu cầu */
    background: linear-gradient(90deg, var(--gradient-main-start), var(--gradient-main-end)) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
#contact .btn-primary:hover {
    background: linear-gradient(90deg, var(--gradient-hover-start), var(--gradient-hover-end)) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
/* --- STYLES CHO TRANG TIN TỨC CHI TIẾT news-detail.html --- */
.news-detail-header-section { /* Thay thế .page-hero-section */
    background-color: var(--bg-white); /* Nền trắng như icham.vn */
    padding: 30px 0 20px; /* Padding trên dưới */
    text-align: left; /* Căn trái */
    border-bottom: 1px solid var(--border-color); /* Đường kẻ dưới */
}
.news-detail-header-section .container {
    max-width: 900px; /* Giới hạn chiều rộng tiêu đề như icham.vn */
}
.news-detail-header-section .breadcrumb {
    background-color: transparent; /* Nền trong suốt */
    padding: 0;
    margin-bottom: 10px; /* Khoảng cách với tiêu đề chính */
}
.news-detail-header-section .breadcrumb-item a {
    color: var(--text-light); /* Màu link breadcrumb */
    text-decoration: none;
    font-size: 0.9rem;
}
.news-detail-header-section .breadcrumb-item.active {
    color: var(--text-dark); /* Màu trang hiện tại */
}
.news-detail-header-section .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-light); /* Màu dấu phân cách */
}

.news-detail-header-section h1.post-main-title {
    font-size: 2.5rem; /* Kích thước tiêu đề chính */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px; /* Khoảng cách với ngày */
    line-height: 1.3;
}
.news-detail-header-section .post-date {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px; /* Khoảng cách với hero image */
}
.news-detail-header-section .post-hero-image {
    width: 100%;
    height: auto; /* Chiều cao tự động */
    max-height: 450px; /* Chiều cao tối đa */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px; /* Khoảng cách với nội dung */
    box-shadow: var(--shadow-medium);
}

.news-detail-content-section { /* Phần chứa nội dung bài viết */
    padding: 40px 0 60px; /* Padding trên dưới */
    background-color: var(--bg-white); /* Nền trắng */
}
.news-detail-content-section .container {
    max-width: 900px; /* Chiều rộng nội dung bài viết */
}
.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.post-content p {
    color: var(--text-dark); /* Chữ nội dung màu tối */
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-subtle);
}
.post-content ul,
.post-content ol {
    color: var(--text-dark); /* Màu chữ list */
    margin-bottom: 1.5rem;
    padding-left: 20px;
}
.post-content ul li,
.post-content ol li {
    margin-bottom: 8px;
}
.post-content strong {
    font-weight: 700; /* Đảm bảo chữ in đậm rõ ràng */
}


.back-to-news-btn {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.back-to-news-btn:hover {
    background-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Related Posts */
.related-posts-section {
    background-color: var(--bg-body); /* Nền xám nhạt cho section này */
    padding: 60px 0;
}
.related-posts-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
.related-posts-section .blog-post-card {
    /* Kế thừa style từ .blog-post-card chung, chỉ ghi đè margin nếu cần */
    margin-left: 0; 
    margin-right: 0; 
}
.related-posts-section .col-md-4 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Hero Section (Mini Hero for News Page) */
.page-hero-section {
    background: linear-gradient(135deg, var(--gradient-main-start) 0%, var(--gradient-main-end) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    box-shadow: inset 0 -5px 15px rgba(0,0,0,0.1);
}
.page-hero-section h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem !important;
}
.page-hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #fff !important;
}

/* Blog Post Grid */
.news-section {
    padding: 80px 0;
    background-color: var(--bg-body); /* Nền tổng thể của section tin tức */
}
.news-section .row {
    margin-left: -15px; /* Bù trừ padding cột */
    margin-right: -15px; /* Bù trừ padding cột */
}
.news-section .col-md-4 {
    padding-left: 15px; /* Đảm bảo padding mặc định của Bootstrap */
    padding-right: 15px; /* Đảm bảo padding mặc định của Bootstrap */
    margin-bottom: 30px; /* Khoảng cách giữa các hàng */
}
.blog-post-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--card-elevated-shadow); /* Sử dụng bóng đổ nổi bật */
    padding: 20px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex; /* Dùng flexbox để căn chỉnh nội dung bên trong */
    flex-direction: column;
}
.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-elevated-shadow); /* Bóng đổ mạnh hơn khi hover */
}
.blog-post-card img {
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-post-card .post-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.blog-post-card h4.h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.3;
}
.blog-post-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    flex-grow: 1; /* Cho phép đoạn văn bản mở rộng để đẩy nút xuống cuối */
}
.blog-post-card .btn-outline-primary {
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    border-radius: 50px;
    font-weight: 500;
    margin-top: 15px; /* Khoảng cách từ text đến nút */
    align-self: flex-start; /* Căn nút theo chiều ngang */
}
.blog-post-card .btn-outline-primary:hover {
    background-color: var(--primary-blue) !important;
    color: white !important;
}

/* Pagination */
.pagination {
    margin-top: 30px; /* Khoảng cách từ lưới bài viết đến phân trang */
}
.pagination .page-link {
    border-radius: 50px;
    margin: 0 5px;
    color: var(--primary-blue);
    border-color: var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle); /* Bóng đổ nhẹ cho page links */
}
.pagination .page-item.active .page-link {
    background: linear-gradient(90deg, var(--gradient-main-start), var(--gradient-main-end)) !important;
    border-color: var(--gradient-main-start) !important;
    color: white !important;
    box-shadow: var(--shadow-medium); /* Bóng đổ rõ hơn khi active */
}
.pagination .page-link:hover {
    background-color: rgba(58, 141, 255, 0.1);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-subtle);
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}