/* Mặc định căn lề đều cho thẻ <p> */

/* --- 1. BIẾN & CÀI ĐẶT CHUNG --- */
:root {
    --primary-color: #9C0A21;
    --primary-hover: #7d081a;
    --secondary-color: #222;
    --text-main: #444;
    --light-bg: #fbfbfb;
    --border-color: #f0f0f0;
}

body.archive {
    background-color: #fff;
    min-height: 100vh;
}

/* --- 2. NỘI DUNG BÀI VIẾT (ENTRY CONTENT) --- */
.entry-content { 
    font-size: 1.125rem; 
    line-height: 1.8;
    margin-bottom: 2rem;
    counter-reset: h2counter; 
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
}

.entry-meta span {
    margin-right: 1.5rem;
}

.featured-image-container {
    margin-bottom: 2rem;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.entry-content h2 { 
    color: var(--primary-color); 
    font-weight: 700; 
    margin: 20px 0 10px; 
    font-size: 1.8rem; 
    position: relative; 
    scroll-margin-top: 100px; /* Quan trọng để không bị che khi click TOC */
}

.entry-content h2 {
    counter-increment: h2counter;
    counter-reset: h3counter;
}

.entry-content h2::before {
    content: counter(h2counter) ". ";
}

.entry-content h3 {
    counter-increment: h3counter;
    counter-reset: h4counter;
}

.entry-content h3::before {
    content: counter(h2counter) "." counter(h3counter) ". ";
}

.entry-content h4 {
    counter-increment: h4counter;
}

.entry-content h4::before {
    content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) ". ";
}

/* Alert tùy chỉnh giống mẫu */
.custom-alert { 
    background: #fff5f6; 
    border-left: 4px solid var(--primary-color); 
    padding: 20px; 
    border-radius: 8px; 
    margin: 30px 0; 
}

/* --- 3. MỤC LỤC (TOC) & SCROLLSPY --- */
.elitech-toc-wrapper { background: var(--light-bg); border: 1px solid var(--border-color); border-radius: 12px; }

.toc-list a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    display: block;
    padding: 8px 0;
    transition: 0.3s;
    border-bottom: 1px solid #eee;
}

.toc-list li:last-child a { border-bottom: none; }

/* Trạng thái Active cho ScrollSpy */
.toc-list a.active {
    color: var(--primary-color) !important;
    font-weight: 700;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

/* --- 4. SIDEBAR & WIDGETS --- */

.single-post-layout .sidebar-sticky {
    font-family: 'Roboto', sans-serif;
}

.single-post-layout .sidebar-widget {
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    font-family: 'Roboto', sans-serif;
}

.single-post-layout .widget-title { 
    font-size: 0.9rem; font-weight: 800; margin-bottom: 20px; 
    color: #111; text-transform: uppercase; text-align: center; 
}


/* --- 5. MOBILE ACTIONS (Hotline/Zalo dưới cùng) --- */
.mobile-action-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    display: none; /* Sẽ hiện ở media query */
    background: #fff; padding: 10px; z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

@media (max-width: 991px) {
    .mobile-action-bar { display: flex; gap: 10px; }
    .single-post-layout .sidebar-sticky { position: static; }
}

/* --- SINGLE POST LAYOUT --- */
.single-post-layout {
    padding: 3rem 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.single-post-layout,
.single-post-layout * {
    font-family: inherit;
}

.single-post-layout .content-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 15px;
}

.single-post-layout .content-row {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.single-post-layout .content-main {
    flex: 0 0 calc(66.666% - 25px);
}

.single-post-layout .content-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    flex: 0 0 calc(33.333% - 25px);
}

/* Responsive for Single Post */
@media (max-width: 991px) {
    .single-post-layout .content-row {
        flex-direction: column;
        gap: 30px;
    }
    .single-post-layout .content-main,
    .single-post-layout .content-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }
}

/* Hotline styling override */
.single-post-layout .widget-hotline {
    border: 2px solid var(--primary-color);
    background: #fff;
    border-radius: 24px;
    color: var(--primary-color);
    padding: 20px 18px;
    text-align: center;
}

.single-post-layout .widget-hotline .h4 {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.5rem;
}

.single-post-layout .widget-hotline .icon-hotline {
    font-size: 1.9rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.single-post-layout .widget-hotline h5 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #111;
}

.single-post-layout .widget-hotline .phone-number {
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.single-post-layout .widget-hotline .small-text {
    margin: 0;
    font-size: 0.9rem;
    color: #111;
}

/* Commitment widget */
.single-post-layout .commitment-widget {
    text-align: center;
}

.single-post-layout .commitment-icons {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1rem;
}

.single-post-layout .commitment-item {
    flex: 1;
    text-align: center;
}

.single-post-layout .commitment-icon-iso { color: #ffc107; margin-bottom: 0.5rem; }
.single-post-layout .commitment-icon-safe { color: #007bff; margin-bottom: 0.5rem; }
.single-post-layout .commitment-icon-warranty { color: #28a745; margin-bottom: 0.5rem; }

/* --- SEO: BÀI VIẾT LIÊN QUAN (Tỷ lệ 4:3) --- */
.single-post-layout .related-posts { margin-top: 4rem; padding-top: 3rem; border-top: 2px solid var(--light-bg); }
.single-post-layout .related-title { 
    font-size: 1.8rem; 
    font-weight: 800; 
    margin-bottom: 3rem; 
    text-align: center; 
    color: #111; 
    position: relative; 
}
.single-post-layout .related-title::after { 
    content: ''; 
    position: absolute; 
    bottom: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60px; 
    height: 3px; 
    background: var(--primary-color); 
}
/* Sử dụng Grid để chia cột cố định */
.single-post-layout .related-row { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Luôn chia 3 cột bằng nhau */
    gap: 2rem; 
}
/* Bỏ bớt các thuộc tính flex không cần thiết */
.single-post-layout .related-col { 
    min-width: 0; /* Để nội dung bên trong không làm vỡ grid */
}
.single-post-layout .related-card { 
    background: #fff; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 4px 16px rgba(0,0,0,0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}
.single-post-layout .related-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 32px rgba(0,0,0,0.12); 
}
.single-post-layout .related-card a { 
    text-decoration: none; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}
.single-post-layout .related-card .img-wrapper { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 4 / 3; 
    overflow: hidden; 
    border-radius: 16px 16px 0 0; 
    flex-shrink: 0; 
}
.single-post-layout .related-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease; 
}
.single-post-layout .related-card:hover img { 
    transform: scale(1.05); 
}
.single-post-layout .related-card h4 { 
    font-size: 1.1rem; 
    font-weight: 700; 
    line-height: 1.4; 
    color: #222; 
    margin-bottom: 0.5rem; 
    padding: 1.5rem 1.5rem 0; 
}
.single-post-layout .related-card .post-date { 
    font-size: 0.8rem; 
    color: #888; 
    padding: 0 1.5rem 1.5rem; 
    margin-top: auto; 
}

/* Responsive cho mobile */
@media (max-width: 992px) {
    .related-row { grid-template-columns: repeat(2, 1fr); } /* 2 cột trên máy tính bảng */
}

@media (max-width: 768px) { 
    .related-row { grid-template-columns: 1fr; } /* 1 cột trên điện thoại */
}

/* --- SCROLLSPY & Auto Numbering TOC --- */
.single-post-layout .sidebar-toc-list { 
    list-style: none; 
    padding: 0 10px; 
    margin: 0; 
    text-align: left; 
    counter-reset: toccounter; 
}

.single-post-layout .sidebar-toc-list li { 
    padding: 3px 0; 
    border-bottom: 1px solid var(--light-bg); 
}

.single-post-layout .sidebar-toc-list a { 
    text-decoration: none; 
    color: #666; 
    font-size: 0.9rem; 
    display: block; 
    transition: 0.3s ease; 
    position: relative; 
}

.single-post-layout .sidebar-toc-list a::before {
    counter-increment: toccounter;
    content: counter(toccounter) ". ";
    margin-right: 5px;
}

/* Trạng thái Active khi cuộn */
.single-post-layout .sidebar-toc-list a.active-toc { 
    color: var(--primary-color) !important; 
    font-weight: 700; 
}

/* Custom classes for contact page */

.bg-primary { background-color: var(--primary-color); }
.text-primary { color: var(--primary-color); }
.border-primary { border-color: var(--primary-color); }
.hover-bg-primary:hover { background-color: var(--primary-hover); }

.transition-all { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(156, 10, 33, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(156, 10, 33, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(156, 10, 33, 0); }
}
.animate-call { animation: pulse-red 2s infinite; }

.fixed { position: fixed; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.z-50 { z-index: 50; }
.md\\:hidden { display: none; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.rounded-full { border-radius: 9999px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.bg-gray-900 { background-color: #111827; }
.text-white { color: #fff; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.overflow-hidden { overflow: hidden; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.opacity-30 { opacity: 0.3; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.text-center { text-align: center; }
.inline-block { display: inline-block; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.rounded { border-radius: 0.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.mb-4 { margin-bottom: 1rem; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.25em; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.md\\:text-6xl { font-size: 3.75rem; line-height: 1; }
.font-extrabold { font-weight: 800; }
.mb-6 { margin-bottom: 1.5rem; }
.leading-tight { line-height: 1.25; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-gray-300 { color: #d1d5db; }
.mb-8 { margin-bottom: 2rem; }
.font-light { font-weight: 300; }
.flex-col { flex-direction: column; }
.sm\\:flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.bg-white\\/10 { background-color: rgba(255, 255, 255, 0.1); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.border-2 { border-width: 2px; }
.border-white\\/30 { border-color: rgba(255, 255, 255, 0.3); }
.hover\\:bg-white:hover { background-color: #fff; }
.hover\\:text-gray-900:hover { color: #111827; }

.bg-gray-50 { background-color: #f9fafb; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.flex-wrap { flex-wrap: wrap; }
.-mx-4 { margin-left: -1rem; margin-right: -1rem; }
.items-stretch { align-items: stretch; }
.w-full { width: 100%; }
.lg\\:w-5\\/12 { width: 41.666667%; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.lg\\:mb-0 { margin-bottom: 0; }
.p-8 { padding: 2rem; }
.md\\:p-10 { padding: 2.5rem; }
.rounded-3xl { border-radius: 1.5rem; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.border { border-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }
.h-full { height: 100%; }
.text-3xl { font-size: 1.875rem; }
/* .text-3xl { font-size: 1.875rem; line-height: 2.25rem; } */
.font-black { font-weight: 900; }
.mb-6 { margin-bottom: 1.5rem; }
.text-gray-900 { color: #111827; }
.tracking-tight { letter-spacing: -0.025em; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.group:hover .group-hover\\:bg-primary { background-color: var(--primary-color); }
.group:hover .group-hover\\:text-white { color: #fff; }
.hover\\:border-primary\\/20:hover { border-color: rgba(156, 10, 33, 0.2); }
.hover\\:bg-red-50:hover { background-color: #fef2f2; }
.cursor-default { cursor: default; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.bg-gray-100 { background-color: #f3f4f6; }
.shrink-0 { flex-shrink: 0; }
.ml-5 { margin-left: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.text-gray-600 { color: #4b5563; }
.leading-relaxed { line-height: 1.625; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-gray-500 { color: #6b7280; }
.mt-1 { margin-top: 0.25rem; }
.font-semibold { font-weight: 600; }
.text-gray-400 { color: #9ca3af; }
.italic { font-style: italic; }
.mt-10 { margin-top: 2.5rem; }
.pt-8 { padding-top: 2rem; }
.border-t { border-top-width: 1px; }
.mb-5 { margin-bottom: 1.25rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.rounded-xl { border-radius: 0.75rem; }
.bg-gray-50 { background-color: #f9fafb; }
.text-gray-600 { color: #4b5563; }
.hover\\:bg-facebook:hover { background-color: #1877f2; }
.hover\\:bg-youtube:hover { background-color: #dc2626; }
.hover\\:bg-zalo:hover { background-color: #0068ff; }
.hover\\:text-white:hover { color: #fff; }
.hover\\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\\:translate-y-1:hover { transform: translateY(-0.25rem); }
.lg\\:w-7\\/12 { width: 58.333333%; }
.md\\:p-12 { padding: 3rem; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.bg-primary\\/5 { background-color: rgba(156, 10, 33, 0.05); }
.rounded-bl-full { border-bottom-left-radius: 9999px; }
.-mr-16 { margin-right: -4rem; }
.-mt-16 { margin-top: -4rem; }
.z-10 { z-index: 10; }
.mb-2 { margin-bottom: 0.5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }
.group:focus-within .group-focus-within\\:text-primary { color: var(--primary-color); }
.pl-11 { padding-left: 2.75rem; }
.pr-4 { padding-right: 1rem; }
.border-2 { border-width: 2px; }
.border-gray-100 { border-color: #f3f4f6; }
.focus\\:border-primary:focus { border-color: var(--primary-color); }
.focus\\:ring-0:focus { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
.outline-none { outline: none; }
.bg-gray-50 { background-color: #f9fafb; }
.focus\\:bg-white:focus { background-color: #fff; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.resize-none { resize: none; }
.hover\\:bg-black:hover { background-color: #000; }
.transform { transform: translateZ(0); }
.hover\\:translate-y-1:hover { transform: translateY(-0.25rem); }
.space-x-3 > * + * { margin-left: 0.75rem; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.hidden { display: none; }
.mt-6 { margin-top: 1.5rem; }
.p-6 { padding: 1.5rem; }
.bg-green-50 { background-color: #f0fdf4; }
.border-green-200 { border-color: #bbf7d0; }
.text-green-700 { color: #15803d; }
.rounded-2xl { border-radius: 1rem; }
.animate-bounce { animation: bounce 1s infinite; }
.h-550 { height: 550px; }
.top-10 { top: 2.5rem; }
.left-10 { left: 2.5rem; }
.max-w-sm { max-width: 24rem; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.font-bold { font-weight: 700; }
.hover\\:underline:hover { text-decoration: underline; }
.grayscale { filter: grayscale(100%); }
.hover\\:grayscale-0:hover { filter: grayscale(0%); }
.duration-700 { transition-duration: 700ms; }
.max-w-3xl { max-width: 48rem; }
.mb-20 { margin-bottom: 5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg\\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-8 { gap: 2rem; }
.p-10 { padding: 2.5rem; }
.border-2 { border-width: 2px; }
.border-gray-50 { border-color: #f9fafb; }
.hover\\:border-primary\\/10:hover { border-color: rgba(156, 10, 33, 0.1); }
.hover\\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.group:hover .group-hover\\:scale-125 { transform: scale(1.25); }
.group:hover .group-hover\\:text-primary { color: var(--primary-color); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }

/* Hover contrast improvements */
.hover-bg-primary:hover { background-color: var(--primary-hover); }
.hover-bg-primary\\/20:hover { background-color: rgba(156, 10, 33, 0.2); }
.hover-bg-red-50:hover { background-color: #fef2f2; }
.hover-bg-facebook:hover { background-color: #1877f2; }
.hover-bg-youtube:hover { background-color: #dc2626; }
.hover-bg-zalo:hover { background-color: #0068ff; }
.hover-text-white:hover { color: #fff; }
.hover-shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover-border-primary\\/20:hover { border-color: rgba(156, 10, 33, 0.2); }
.hover-bg-gray-50:hover { background-color: #f9fafb; }
.hover-shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.hover-bg-black:hover { background-color: #000; }
.hover-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover-underline:hover { text-decoration: underline; }
.hover-grayscale-0:hover { filter: grayscale(0%); }
.group-hover-bg-primary:hover { background-color: var(--primary-color); }
.group-hover-text-white:hover { color: #fff; }
.group-hover-scale-125:hover { transform: scale(1.25); }
.group-hover-text-primary:hover { color: var(--primary-color); }
.group-focus-within-text-primary:focus-within { color: var(--primary-color); }
.focus-border-primary:focus { border-color: var(--primary-color); }
.focus-bg-white:focus { background-color: #fff; }

/* Bootstrap-like classes for optimization (no full Bootstrap) */
.display-5 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
}

.fw-bold {
    font-weight: 700 !important;
}

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

.rounded-4 {
    border-radius: 0.375rem !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.bg-white {
    background-color: #fff !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* --- CONTACT FORM STYLING --- */
#contactForm input,
#contactForm select,
#contactForm textarea {
    border: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(156, 10, 33, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

#contactForm input::placeholder,
#contactForm select::placeholder,
#contactForm textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

#contactForm button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

#contactForm button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#contactForm button[type="submit"]:hover::before {
    left: 100%;
}

#contactForm button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form labels enhancement */
#contactForm label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

/* Icon positioning in inputs */
#contactForm .relative span {
    transition: color 0.3s ease;
}

#contactForm .relative input:focus + span,
#contactForm .relative select:focus + span,
#contactForm .relative textarea:focus + span {
    color: var(--primary-color);
}

/* Success message styling */
#successMessage {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* 1. Thiết lập khoảng cách chung cho các khối */
.entry-content > * {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #000000;
    text-align: justify;
}

/* 2. Định dạng lại Tiêu đề (Headings) */
.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}
.entry-content h2 { font-size: 1.8rem;}
.entry-content h3 { font-size: 1.5rem; }

/* 3. "Cứu rỗi" Danh sách (Lists) - Cái bạn đang ghét nhất */
.entry-content ul, 
.entry-content ol,
.wp-block-list {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.entry-content ul, 
ul.wp-block-list {
    list-style-type: disc; /* Dấu chấm tròn */
}

.entry-content ol, 
ol.wp-block-list {
    list-style-type: decimal; /* Số thứ tự */
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* 4. Hình ảnh và Chú thích (Images & Captions) */
.wp-block-image {
    margin-bottom: 2rem;
}
.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.wp-block-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* 5. Khối trích dẫn (Quotes) */
.wp-block-quote {
    border-left: 5px solid var(--primary-color);
    padding: 1rem 2rem;
    margin: 2rem 0;
    background-color: #f9f9f9;
}
.wp-block-quote p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0.5rem !important;
}

/* 6. Bảng (Tables) */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-family: 'Roboto', sans-serif;
}
.entry-content th,
.entry-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.entry-content thead {
    background-color: #f2f2f2;
}

/* 7. Khối phân cách (Separator/HR) */
.wp-block-separator {
    margin: 3rem auto;
    border: none;
    border-bottom: 2px solid #eee;
    width: 100px;
}
