/*
Theme Name: ECW Real Estate Consultancy
Theme URI: https://ecw.com.vn
Author: VietLamCoder (LamWeb.com.vn)
Author URI: https://lamweb.com.vn
Description: Giao diện độc quyền chuẩn SEO và tối ưu hiệu năng cao cấp dành riêng cho ECW Real Estate Consultancy (Công ty TNHH ECW — https://ecw.com.vn). Thiết kế & Phát triển độc quyền bởi VietLamCoder (LamWeb.com.vn) — Hotline hỗ trợ kỹ thuật & Vận hành 24/7: 0944.71.4545 — Email: vietlamcoder@gmail.com. Hệ thống quản trị bất động sản chuyên nghiệp, tích hợp giải pháp BĐS thương mại & cho thuê văn phòng, đa ngôn ngữ (Tiếng Việt • English • Chinese), cấu hình trực quan ACF Pro Local JSON, tối ưu Core Web Vitals và tương thích 100% thiết bị di động.
Version: 2026.07.12
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lw-customize
Tags: real-estate, bat-dong-san, luxury, vietlamcoder, ecw, responsive, clean-code, custom-theme, seo-ready
*/

.wpcf7-form-control-wrap {
  width: 100%;
}

.tttq-content {
  text-align: right;
}

/* Hide CF7's default success and error output messages completely */
.wpcf7-response-output {
  display: none !important;
}

/* Hide CF7's default inline validation error tips */
.wpcf7-not-valid-tip {
  display: none !important;
}

/* Highlight invalid fields with a premium soft red styling */
.wpcf7-not-valid {
  border-color: #ef4444 !important;
  transition: all 0.25s ease-in-out !important;
}

.wpcf7-not-valid:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* SweetAlert2 Modern Premium Customization matching user request */
.fcv-swal-popup {
  border-radius: 24px !important;
  padding: 40px 32px 32px 32px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  max-width: 480px !important;
  text-align: center !important;
}

.fcv-swal-title,
.swal2-popup .swal2-title {
  display: block !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-top: 20px !important;
  margin-bottom: 10px !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.fcv-swal-text,
.swal2-popup .swal2-html-container {
  display: block !important;
  font-size: 15px !important;
  color: #374151 !important;
  margin-top: 10px !important;
  margin-bottom: 24px !important;
  line-height: 1.6 !important;
  text-align: center !important;
}

.fcv-swal-confirm-btn {
  background-color: #660c0c !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px 40px !important;
  border-radius: 50px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(102, 12, 12, 0.25) !important;
  display: inline-block !important;
}

.fcv-swal-confirm-btn:hover {
  background-color: #520909 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(102, 12, 12, 0.35) !important;
}

.fcv-swal-confirm-btn:active {
  transform: translateY(0) !important;
}

/* Customize SweetAlert2 success icon to match the design */
.swal2-icon.swal2-success {
  border-color: #10b981 !important;
  color: #10b981 !important;
  width: 80px !important;
  height: 80px !important;
  margin: 0 auto !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #10b981 !important;
  height: 5px !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border: 4px solid rgba(16, 185, 129, 0.2) !important;
}

.swal2-popup .swal2-icon {
  margin-top: 0 !important;
}

/* Customize SweetAlert2 error icon */
.swal2-icon.swal2-error {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  width: 80px !important;
  height: 80px !important;
  margin: 0 auto !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: #ef4444 !important;
}

/* Customize SweetAlert2 warning icon */
.swal2-icon.swal2-warning {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
  width: 80px !important;
  height: 80px !important;
  margin: 0 auto !important;
}

.swal2-icon.swal2-warning .swal2-icon-content {
  color: #f59e0b !important;
  font-size: 50px !important;
  line-height: 80px !important;
}

/* Disabled / Loading state for the submit button */
.wpcf7-submit.fcv-loading, 
.wpcf7-submit:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  position: relative !important;
}

/* Add a subtle fade pulse animation to the loading button */
.wpcf7-submit.fcv-loading {
  animation: fcvBtnPulse 1.5s infinite ease-in-out !important;
}

@keyframes fcvBtnPulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.4; }
  100% { opacity: 0.6; }
}

@media (max-width: 768px) {
  .sec-about .col-lg-8 .row.items-end > .col-12.mb-24 {
    order: 0;
  }

  .sec-about .col-lg-8 .row.items-end > .order-1-tablet {
    order: 1;
  }

  .sec-about .col-lg-8 .row.items-end > .col-12.col-md-6.col-lg-5.px-0 {
    order: 2;
  }

  .sec-about .btn-more {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .sec-project2 .item-project2 .row.info + .btn-more {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

body.project .ez-toc-container,
body.project-lease .ez-toc-container,
body.about .ez-toc-container,
body.project #ez-toc-container,
body.project-lease #ez-toc-container,
body.about #ez-toc-container {
  margin-top: 24px !important;
}

/* Tắt số đánh và sub-level indent theo setting plugin (counter = none) */
#ez-toc-container nav ul li a::before,
.ez-toc-counter nav ul li a::before,
.ez-toc-counter-rtl nav ul li a::before {
  content: none !important;
  display: none !important;
}

/* Đảm bảo font size và line-height của TOC đồng nhất trên tất cả ngôn ngữ */
body.project #ez-toc-container,
body.project-lease #ez-toc-container,
body.about #ez-toc-container,
#ez-toc-container {
  font-size: 15px !important;
  line-height: 1.6 !important;
}

body.project #ez-toc-container .ez-toc-title,
body.project-lease #ez-toc-container .ez-toc-title,
body.about #ez-toc-container .ez-toc-title,
#ez-toc-container .ez-toc-title {
  font-size: 18px !important;
  font-weight: 600 !important;
}

body.project #ez-toc-container nav ul li a,
body.project-lease #ez-toc-container nav ul li a,
body.about #ez-toc-container nav ul li a,
#ez-toc-container nav ul li a {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* Tắt phân cấp sub-level indent (flatten list) */
#ez-toc-container nav ul ul,
.ez-toc-counter nav ul ul {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* ==========================================================================
   INTERACTIVE CTA FLOATING WIDGET (Premium Design)
   ========================================================================== */
.fcv-cta-wrapper {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* Trigger Button */
.fcv-cta-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 8px 24px rgba(102, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
}

.fcv-cta-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(102, 0, 0, 0.4);
}

.fcv-cta-trigger:active {
  transform: scale(0.95);
}

.fcv-cta-trigger img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 50%;
}

.fcv-cta-trigger .fcv-cta-icon-close {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

/* Sub-buttons container */
.fcv-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Individual Sub-button */
.fcv-cta-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: #660000;
  text-decoration: none;
}

.fcv-cta-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.fcv-cta-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.fcv-cta-button:hover img {
  transform: rotate(10deg);
}

/* Tooltip design */
.fcv-cta-button .cta-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #ffffff;
  color: #660000;
  border: 1.5px solid #660000;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(102, 0, 0, 0.15);
  pointer-events: none;
}

.fcv-cta-button:hover .cta-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Default label "Liên hệ ngay" styling */
.fcv-cta-trigger .cta-label {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: #660000;
  border: 1.5px solid #660000;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(102, 0, 0, 0.15);
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fcv-cta-wrapper.active .fcv-cta-trigger .cta-label {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(10px);
}

/* Pulse animation on default button */
.fcv-cta-trigger .cta-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(102, 0, 0, 0.4);
  box-shadow: 0 0 0 0 rgba(102, 0, 0, 0.7);
  animation: fcvCtaPulse 2s infinite;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@keyframes fcvCtaPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(102, 0, 0, 0.7);
  }
  70% {
    transform: scale(1.3);
    box-shadow: 0 0 0 15px rgba(102, 0, 0, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(102, 0, 0, 0);
  }
}

/* Active state classes */
.fcv-cta-wrapper.active .fcv-cta-buttons {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fcv-cta-wrapper.active .fcv-cta-trigger .fcv-cta-icon-default {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

.fcv-cta-wrapper.active .fcv-cta-trigger .fcv-cta-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.fcv-cta-wrapper.active .fcv-cta-trigger .cta-pulse {
  opacity: 0;
}

/* Staggered load animation when active */
.fcv-cta-wrapper.active .fcv-cta-button:nth-child(1) { transition-delay: 0.05s; }
.fcv-cta-wrapper.active .fcv-cta-button:nth-child(2) { transition-delay: 0.1s; }
.fcv-cta-wrapper.active .fcv-cta-button:nth-child(3) { transition-delay: 0.15s; }
.fcv-cta-wrapper.active .fcv-cta-button:nth-child(4) { transition-delay: 0.2s; }

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .fcv-cta-wrapper {
    right: 16px;
    bottom: 16px;
    gap: 12px;
  }
  .fcv-cta-trigger {
    width: 50px;
    height: 50px;
  }
  .fcv-cta-trigger .cta-label {
    right: 60px;
    font-size: 13px;
    padding: 6px 16px;
  }
  .fcv-cta-button {
    width: 44px;
    height: 44px;
  }
  .fcv-cta-button .cta-tooltip {
    right: 56px;
    font-size: 12px;
    padding: 4px 14px;
  }
}


/* ── Footer: Khung thông tin công ty ───────────────────────────────────────── */
.footer-company-box {
  color: #fff;
  margin-top: 16px;
}

.footer-company-box__title {
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  line-height: 1.4;
  text-align: justify;
}

.footer-company-box__content {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  text-align: justify;
}

.footer-company-box__content p {
  margin: 0;
}

/* ── Footer: Miễn trừ trách nhiệm ──────────────────────────────────────────── */
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-disclaimer__title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  text-align: justify;
}

.footer-disclaimer__content {
  font-size: 12px;
  line-height: 1.7;
  text-align: justify;
}

.footer-disclaimer__content p {
  margin: 0;
}

/* ── Trang chính sách (tpl-policy.php) ─────────────────────────────────────── */
.policy-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e5e7eb;
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-section__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary, #8b0000);
  margin-bottom: 16px;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .policy-section__title {
    font-size: 24px;
  }
}

/* Wysiwyg content reset — đảm bảo ul/ol/p/h2-h6 hiển thị đúng */
.wysiwyg-content p { margin-bottom: 12px; line-height: 1.75; }
.wysiwyg-content p:last-child { margin-bottom: 0; }
.wysiwyg-content ul, .wysiwyg-content ol { padding-left: 20px; margin-bottom: 12px; }
.wysiwyg-content ul { list-style: disc; }
.wysiwyg-content ol { list-style: decimal; }
.wysiwyg-content li { margin-bottom: 6px; line-height: 1.7; }
.wysiwyg-content h2, .wysiwyg-content h3, .wysiwyg-content h4 {
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
}
.wysiwyg-content strong { font-weight: 700; }
.wysiwyg-content a { color: var(--color-primary, #8b0000); text-decoration: underline; }
.wysiwyg-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.wysiwyg-content table td, .wysiwyg-content table th {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  vertical-align: top;
}
.wysiwyg-content table th { font-weight: 700; background: #f9fafb; }

/* ── Trang chính sách: bảng 2 cột (label | nội dung) ───────────────────────── */

/* Wrapper hẹp hơn, căn giữa */
.sec-policy .wrapper {
  max-width: 960px;
}

.policy-table-wrap {
  margin-bottom: 0;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Border rõ, gần đen như design */
.policy-table tr {
  border-bottom: 1px solid #999999;
}
.policy-table tr:first-child {
  border-top: 1px solid #999999;
}

.policy-table th,
.policy-table td {
  padding-top: 28px;
  padding-bottom: 28px;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
  border: none;
  background: none;
  /* Cả 2 cột đều đậm, đen như design */
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Montserrat', sans-serif;
}

/* Cột label: indent trái, ~38% */
.policy-table th {
  width: 38%;
  padding-left: 60px;
  padding-right: 32px;
}

/* Cột nội dung: padding trái vừa phải */
.policy-table td {
  width: 62%;
  padding-left: 0;
  padding-right: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

/* wysiwyg bên trong td — giữ bold, reset spacing */
.policy-table td.wysiwyg-content p {
  margin: 0 0 10px 0;
  font-weight: 700;
  color: #1a1a1a;
}
.policy-table td.wysiwyg-content p:last-child {
  margin-bottom: 0;
}
.policy-table td.wysiwyg-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.policy-table td.wysiwyg-content li {
  margin-bottom: 12px;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  font-weight: 700;
  color: #1a1a1a;
}
.policy-table td.wysiwyg-content li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 700;
}
.policy-table td.wysiwyg-content li:last-child {
  margin-bottom: 0;
}
/* Khoảng cách giữa các nhóm bullet */
.policy-table td.wysiwyg-content ul + ul,
.policy-table td.wysiwyg-content p + ul,
.policy-table td.wysiwyg-content ul + p {
  margin-top: 16px;
}

/* Mobile: stack */
@media (max-width: 768px) {
  .policy-table th {
    padding-left: 16px;
  }
}
@media (max-width: 640px) {
  .policy-table,
  .policy-table tbody,
  .policy-table tr,
  .policy-table th,
  .policy-table td {
    display: block;
    width: 100%;
  }
  .policy-table tr {
    padding: 20px 0;
    border-bottom: 1px solid #999999;
  }
  .policy-table tr:first-child {
    border-top: 1px solid #999999;
  }
  .policy-table th,
  .policy-table td {
    padding: 0;
    border: none;
  }
  .policy-table th {
    padding-bottom: 8px;
    padding-left: 0;
  }
}

/* ── Modal Chính sách Cookies ───────────────────────────────────────────────── */
.modal-cookie-policy .modal-dialog {
  max-width: 680px;
}

/* Ép Bootstrap modal-dialog-scrollable hoạt động đúng với custom content */
.modal-cookie-policy .modal-dialog-scrollable .modal-content {
  max-height: 85vh;
  overflow: hidden;
}

.modal-cookie-policy .modal-dialog-scrollable .modal-body {
  overflow: visible;
  padding: 0;
}

.cookie-modal-content {
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  background: #fff;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

/* Phần scroll giữa header và footer */
.cookie-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.cookie-modal-groups {
  /* groups nằm trong body, không cần overflow riêng */
}

/* Phần scroll giữa header và footer */
.cookie-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

/* Header */
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.cookie-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.3;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}
.cookie-modal-close:hover {
  color: #111;
}

/* Intro text */
.cookie-modal-intro {
  padding: 20px 28px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  flex-shrink: 0;
  text-align: justify;
}
.cookie-modal-intro p { margin: 0; }

/* Scrollable groups area */
.cookie-modal-groups {
  overflow-y: auto;
  flex-grow: 1;
}

/* Từng nhóm cookie */
.cookie-group {
  padding: 20px 28px;
  border-bottom: 1px solid #e5e7eb;
}
.cookie-group:last-child {
  border-bottom: none;
}

.cookie-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-group__name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}

.cookie-group__desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  text-align: justify;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

/* Bắt buộc: mờ đi, không cho click */
.cookie-toggle.is-required {
  cursor: not-allowed;
  opacity: 0.45;
}

.cookie-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Track (nền toggle) */
.cookie-toggle__slider {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
  background: #ccc;
  border-radius: 30px;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

/* Circle (thumb) */
.cookie-toggle__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s ease;
  z-index: 1;
}

/* Checkmark SVG bên trong circle — dùng background-image */
.cookie-toggle__input:checked + .cookie-toggle__slider::after {
  transform: translateX(26px);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23660C0C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
}

/* Track màu đỏ khi checked */
.cookie-toggle__input:checked + .cookie-toggle__slider {
  background: var(--primary, #660C0C);
}

/* Xóa ::before cũ */
.cookie-toggle__input:checked + .cookie-toggle__slider::before {
  display: none;
}

/* Footer nút đồng ý */
.cookie-modal-footer {
  padding: 20px 28px 24px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  border-top: 1px solid #e5e7eb;
}

.btn-cookie-accept {
  background: var(--primary, #660C0C);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}
.btn-cookie-accept:hover {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .modal-cookie-policy .modal-dialog {
    margin: 8px;
    max-height: calc(100vh - 16px);
    align-items: flex-end;
  }
  .cookie-modal-content {
    max-height: calc(100vh - 16px);
    border-radius: 16px 16px 12px 12px;
  }
  .cookie-modal-header,
  .cookie-modal-intro,
  .cookie-group,
  .cookie-modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cookie-modal-title {
    font-size: 17px;
  }
  .btn-cookie-accept {
    width: 100%;
  }
}

/* ==========================================================================
   HOMEPAGE NEWS CARDS LAYOUT EQUALIZATION
   ========================================================================== */
.sec-news .item-blog .content .ttl {
  line-height: 1.4 !important;
  height: 4.2em !important; /* exactly 3 lines (1.4 * 3) */
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

.sec-news .item-blog .content .text {
  margin-top: 8px !important;
}

.sec-news .item-blog .content .text p.trim {
  line-height: 1.5 !important;
  height: 4.5em !important; /* exactly 3 lines (1.5 * 3) */
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 !important;
}

/* Align footer elements to the left on mobile screens */
@media (max-width: 768px) {
  .sec-footer .logo-f {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  .sec-footer .block.flex-col > div {
    justify-content: flex-start !important;
  }
  .sec-footer .news-social {
    justify-content: flex-start !important;
  }
  .sec-footer .menu-f {
    justify-content: flex-start !important;
  }
  .sec-footer h4 {
    text-align: left !important;
  }
}


