/* CURADLE CSS TOPIC AUDIT — 2026-09-19
 * Status: MODIFIED
 * File upload name: curadle-brand-colors(2).css
 * Backup: 00_BACKUP_ALL_81_ORIGINAL_CSS/curadle-brand-colors(2).css
 */
/* Khu vực: Nhận diện thương hiệu. Thành phần: thành phần được chọn bởi selector này. Mục đích: áp dụng kiểu hiển thị riêng cho thành phần này. Selector: :root. */
:root {
  --brand: #2e3d98 !important;
  --brand-dark: #24317d !important;
  --ink: #17214F !important;
  --curadle-navy: #2e3d98;
  --curadle-cyan: #1ED7E5;
  --curadle-yellow: #FEDB00;
  --curadle-pale: #F4F8FF;
  --curadle-section-title-underline: #2e3d98 !important;
}/* Thay toàn bộ màu cam của Curadle bằng Curadle Navy, giữ nguyên mọi kích thước. */
/* Khu vực: Nhận diện thương hiệu. Thành phần: nội dung văn bản. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Selector: .text-brand-400,.text-brand-500,.text-brand-600,.text-brand-700, .text-#2e3d98-400,.text-#2e3d98-500,.text-#2e3d98-600,.text-#2e3d98-700, .text-amb.... */
.text-brand-400,.text-brand-500,.text-brand-600,.text-brand-700,
.text-#2e3d98-400,.text-#2e3d98-500,.text-#2e3d98-600,.text-#2e3d98-700,
.text-amber-400,.text-amber-500,.text-amber-600,.text-amber-700 { color:#2e3d98 !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: thành phần được chọn bởi selector này. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Selector: .bg-brand-400,.bg-brand-500,.bg-brand-600,.bg-brand-700, .bg-#2e3d98-400,.bg-#2e3d98-500,.bg-#2e3d98-600,.bg-amber-400,.bg-amber-500,.bg-amber-600. */
.bg-brand-400,.bg-brand-500,.bg-brand-600,.bg-brand-700,
.bg-#2e3d98-400,.bg-#2e3d98-500,.bg-#2e3d98-600,.bg-amber-400,.bg-amber-500,.bg-amber-600 { background-color:#2e3d98 !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: thành phần được chọn bởi selector này. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Selector: .bg-brand-50,.bg-brand-100,.bg-#2e3d98-50,.bg-#2e3d98-100,.bg-amber-50,.bg-amber-100. */
.bg-brand-50,.bg-brand-100,.bg-#2e3d98-50,.bg-#2e3d98-100,.bg-amber-50,.bg-amber-100 { background-color:#F4F8FF !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: thành phần được chọn bởi selector này. Mục đích: tạo viền, bo góc hoặc đổ bóng. Selector: .border-brand-100,.border-brand-200,.border-brand-300,.border-brand-400, .border-#2e3d98-100,.border-#2e3d98-200,.border-#2e3d98-300,.border-amber-.... */
.border-brand-100,.border-brand-200,.border-brand-300,.border-brand-400,
.border-#2e3d98-100,.border-#2e3d98-200,.border-#2e3d98-300,.border-amber-100,.border-amber-200,.border-amber-300 { border-color:#DCE7F8 !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: thành phần được chọn bởi selector này. Mục đích: áp dụng kiểu hiển thị riêng cho thành phần này. Selector: .from-brand-500,.from-#2e3d98-500,.from-amber-500. */
.from-brand-500,.from-#2e3d98-500,.from-amber-500 { --tw-gradient-from:#2e3d98 var(--tw-gradient-from-position) !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: thành phần được chọn bởi selector này. Mục đích: áp dụng kiểu hiển thị riêng cho thành phần này. Selector: .to-amber-300,.to-#2e3d98-300,.to-brand-300. */
.to-amber-300,.to-#2e3d98-300,.to-brand-300 { --tw-gradient-to:#1ED7E5 var(--tw-gradient-to-position) !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: thành phần được chọn bởi selector này. Mục đích: áp dụng kiểu hiển thị riêng cho thành phần này. Selector: .via-amber-50,.via-#2e3d98-50,.via-brand-50. */
.via-amber-50,.via-#2e3d98-50,.via-brand-50 { --tw-gradient-to:rgba(244,248,255,0) var(--tw-gradient-to-position) !important; --tw-gradient-stops:var(--tw-gradient-from),#F4F8FF var(--tw-gradient-via-position),var(--tw-gradient-to) !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: thành phần được chọn bởi selector này. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Trạng thái/phạm vi: đối với phần tử trang trí tạo bằng CSS. Selector: .after\:bg-brand-500::after. */
.after\:bg-brand-500::after { background-color:#2e3d98 !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: trường nhập/chọn dữ liệu. Mục đích: thiết lập màu sắc, nền và độ hiển thị, tạo viền, bo góc hoặc đổ bóng. Selector: .btn-primary, button[type="submit"], input[type="submit"]. */
.btn-primary,
button[type="submit"],
input[type="submit"] {
  background:#2e3d98 !important;
  border-color:#2e3d98 !important;
  box-shadow:0 14px 30px rgba(45,60,152,.24), inset 0 2px 0 rgba(255,255,255,.5) !important;
}

/* Khu vực: Nhận diện thương hiệu. Thành phần: trường nhập/chọn dữ liệu. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Trạng thái/phạm vi: khi người dùng rê chuột. Selector: .btn-primary:hover,button[type="submit"]:hover,input[type="submit"]:hover. */
.btn-primary:hover,button[type="submit"]:hover,input[type="submit"]:hover { background:#24317d !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: nút thao tác. Mục đích: thiết lập màu sắc, nền và độ hiển thị, tạo viền, bo góc hoặc đổ bóng. Selector: .btn-secondary. */
.btn-secondary { border-color:rgba(45,60,152,.38) !important; color:#2e3d98 !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: menu điều hướng. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Trạng thái/phạm vi: khi người dùng rê chuột; khi đang được chọn/kích hoạt. Selector: .curadle-global-nav a:hover, .curadle-global-nav a.active, .curadle-global-submenu a:hover, .curadle-global-submenu a.active, .curadle-featured-lin.... */
.curadle-global-nav a:hover,
.curadle-global-nav a.active,
.curadle-global-submenu a:hover,
.curadle-global-submenu a.active,
.curadle-featured-link,
.curadle-featured-more a,
.curadle-news-footer a:hover { color:#2e3d98 !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: menu điều hướng. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Trạng thái/phạm vi: đối với phần tử trang trí tạo bằng CSS. Selector: .curadle-global-nav > a::after, .curadle-global-nav-item > a::after, .heading-line::after, .curadle-home-section-heading > h2::after. */
.curadle-global-nav > a::after,
.curadle-global-nav-item > a::after,
.heading-line::after,
.curadle-home-section-heading > h2::after { background:#2e3d98 !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: banner/hero đầu trang. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Trạng thái/phạm vi: khi đang được chọn/kích hoạt. Selector: .curadle-hero-dot.is-active. */
.curadle-hero-dot.is-active { background:#2e3d98 !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: banner/hero đầu trang. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Trạng thái/phạm vi: khi người dùng rê chuột. Selector: .curadle-hero-arrow:hover. */
.curadle-hero-arrow:hover { color:#2e3d98 !important; }

/* Khu vực: Nhận diện thương hiệu. Thành phần: biểu tượng. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Selector: .curadle-footer-contact-icon. */
.curadle-footer-contact-icon { color:#2e3d98 !important; }/* Nền hero trang chủ nhạt hơn nhưng giữ nguyên cấu trúc Curadle. */
/* Khu vực: Nhận diện thương hiệu. Thành phần: banner/hero đầu trang. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Selector: .home .hero-circuit, .curadle-front-page > .hero-circuit. */
.home .hero-circuit,
.curadle-front-page > .hero-circuit {
  background:
    radial-gradient(circle at 12% 12%,rgba(30,215,229,.09),transparent 30%),
    radial-gradient(circle at 88% 12%,rgba(45,60,152,.10),transparent 34%),
    linear-gradient(120deg,#fff 0%,#F1F6FF 100%) !important;
}/* V14: remove every orange accent, including mobile breakpoints */
/* Khu vực: Nhận diện thương hiệu. Thành phần: thành phần được chọn bởi selector này. Mục đích: áp dụng kiểu hiển thị riêng cho thành phần này. Selector: :root. */
:root{
  --curadle-navy:#2e3d98;
  --curadle-cyan:#1ED7E5;
  --curadle-yellow:#FEDB00;
  --brand:#2e3d98;
  --brand-500:#2e3d98;
  --brand-600:#24317d;
  --brand-soft:#F1F4FF;
}

/* Khu vực: Nhận diện thương hiệu. Thành phần: menu điều hướng. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Trạng thái/phạm vi: khi người dùng rê chuột; khi được focus. Selector: a, a:hover, a:focus, .site-header a:hover, .main-navigation a:hover, .current-menu-item>a, .current-menu-ancestor>a, .entry-content a, .footer a:hover. */
a, a:hover, a:focus,
.site-header a:hover,
.main-navigation a:hover,
.current-menu-item>a,
.current-menu-ancestor>a,
.entry-content a,
.footer a:hover{color:#2e3d98;}

/* Khu vực: Nhận diện thương hiệu. Thành phần: phân trang. Mục đích: thiết lập màu sắc, nền và độ hiển thị, tạo viền, bo góc hoặc đổ bóng. Trạng thái/phạm vi: khi đang được chọn/kích hoạt. Selector: button,.button,input[type="submit"],input[type="button"], .wp-element-button,.btn-primary,.brand-button, [class*="btn-"]:not(.btn-outline), .swiper.... */
/* Trạng thái active của slider vẫn dùng màu thương hiệu.
 * KHÔNG áp màu nền cho mọi button/.button tại cấp global: mỗi component tự quyết định
 * primary / secondary / inactive để desktop và mobile không ghi đè lẫn nhau. */
.swiper-pagination-bullet-active,
.slick-dots li.slick-active button,
.owl-dot.active span{
  background-color:#2e3d98;
  border-color:#2e3d98;
  color:#fff;
}

/* Khu vực: Nhận diện thương hiệu. Thành phần: menu điều hướng. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Selector: .heading-line:after,.section-title:after,.menu-item.current-menu-item>a:after, .menu-item.current-menu-ancestor>a:after. */
.heading-line:after,.section-title:after,.menu-item.current-menu-item>a:after,
.menu-item.current-menu-ancestor>a:after{background:#2e3d98!important;}/* Remove warm/orange surfaces left by legacy Curadle styles */
/* Khu vực: Nhận diện thương hiệu. Thành phần: banner/hero đầu trang. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Selector: .hero-circuit,.page-hero,.sub-hero,.archive-hero,.story-hero, .blog-hero,.product-hero,.contact-hero,.resource-hero, [class*="hero-"]. */
.hero-circuit,.page-hero,.sub-hero,.archive-hero,.story-hero,
.blog-hero,.product-hero,.contact-hero,.resource-hero,
[class*="hero-"]{background-color:#F4F6FF;}
@media (max-width: 1024px){  /* Khu vực: Nhận diện thương hiệu. Thành phần: menu điều hướng. Mục đích: thiết lập màu sắc, nền và độ hiển thị. Trạng thái/phạm vi: khi người dùng rê chuột; trên màn hình nhỏ theo breakpoint đã khai báo. Selector: a:hover,.mobile-menu a:hover,.mobile-menu .current-menu-item>a. */
a:hover,.mobile-menu a:hover,.mobile-menu .current-menu-item>a{color:#2e3d98!important;}  /* Khu vực: Nhận diện thương hiệu. Thành phần: menu điều hướng. Mục đích: thiết lập màu sắc, nền và độ hiển thị, tạo viền, bo góc hoặc đổ bóng. Trạng thái/phạm vi: khi đang được chọn/kích hoạt; trên màn hình nhỏ theo breakpoint đã khai báo. Selector: button,.button,input[type="submit"],.wp-element-button, .mobile-menu-toggle,.mobile-nav .active>a, .swiper-pagination-bullet-active,.slick-dots li..... */
/* Mobile chỉ tô những trạng thái active có chủ đích.
   * Tuyệt đối không dùng button/.button !important ở đây vì sẽ biến toàn bộ
   * filter, close, secondary, map control... thành primary trên điện thoại. */
  .mobile-nav .active>a,
  .swiper-pagination-bullet-active,
  .slick-dots li.slick-active button{
    background-color:#2e3d98!important;
    border-color:#2e3d98!important;
  }
}




/* ======================================================================
 * CURADLE GLOBAL UI COLOR CONTRACT — 2026-09-19
 * Áp dụng nhất quán cho desktop + tablet + mobile.
 * Chỉ khóa các control mang vai trò PRIMARY/SECONDARY rõ ràng;
 * không ép mọi button thành màu navy để tránh phá nút close/delete/status.
 * ====================================================================== */
:root {
    --curadle-ui-primary: #2e3d98;
    --curadle-ui-primary-hover: #24317d;
    --curadle-ui-primary-soft: #f1f4ff;
    --curadle-ui-ink: #17214f;
    --curadle-ui-muted: #667085;
    --curadle-ui-border: #dce2f3;
}

body:not(.wp-admin) :is(
    .btn-primary,
    .primary-button,
    .curadle-primary-button,
    .curadle-header-search-submit,
    button[type="submit"],
    input[type="submit"],
    .wp-element-button
) {
    background-color: var(--curadle-ui-primary) !important;
    border-color: var(--curadle-ui-primary) !important;
    color: #fff !important;
}
body:not(.wp-admin) :is(
    .btn-primary,
    .primary-button,
    .curadle-primary-button,
    .curadle-header-search-submit,
    button[type="submit"],
    input[type="submit"],
    .wp-element-button
):is(:hover,:focus-visible) {
    background-color: var(--curadle-ui-primary-hover) !important;
    border-color: var(--curadle-ui-primary-hover) !important;
    color: #fff !important;
}

body:not(.wp-admin) :is(.btn-secondary,.secondary-button,.curadle-secondary-button) {
    background: #fff !important;
    border-color: var(--curadle-ui-primary) !important;
    color: var(--curadle-ui-primary) !important;
}
body:not(.wp-admin) :is(.btn-secondary,.secondary-button,.curadle-secondary-button):is(:hover,:focus-visible) {
    background: var(--curadle-ui-primary-soft) !important;
    border-color: var(--curadle-ui-primary) !important;
    color: var(--curadle-ui-primary-hover) !important;
}

/* Icon bên trong control lấy màu từ chữ của control, tránh desktop/mobile lệch icon. */
body:not(.wp-admin) :is(
    .btn-primary,.primary-button,.curadle-primary-button,
    .btn-secondary,.secondary-button,.curadle-secondary-button,
    .curadle-header-icon,.curadle-header-search-submit
) :is(svg,i,[class*="icon"]) {
    color: inherit !important;
}

/* Focus ring thống nhất; không thay status success/error/warning. */
body:not(.wp-admin) :is(a,button,input,select,textarea,[role="button"]):focus-visible {
    outline-color: var(--curadle-ui-primary) !important;
}

/* ======================================================================
 * HOTFIX 2026-09-21 — DESKTOP / MOBILE COLOR PARITY
 * Global color file owns TOKENS and explicit PRIMARY roles only.
 * It must never infer "primary" from the HTML tag <button> itself.
 * ====================================================================== */
:root {
  --curadle-ui-primary: #2e3d98;
  --curadle-ui-primary-hover: #24317d;
  --curadle-ui-primary-soft: #f1f4ff;
  --curadle-ui-ink: #17214f;
  --curadle-ui-muted: #667085;
  --curadle-ui-border: #dce2f3;
  --curadle-ui-surface: #ffffff;
}

/* Explicit primary roles only. */
body:not(.wp-admin) :is(
  .btn-primary,
  .primary-button,
  .curadle-primary-button,
  .curadle-header-search-submit,
  button[type="submit"],
  input[type="submit"],
  .wp-element-button
) {
  background-color: var(--curadle-ui-primary) !important;
  border-color: var(--curadle-ui-primary) !important;
  color: #fff !important;
}

/* Touch behavior is shared across breakpoints, without changing colors. */
body:not(.wp-admin) :is(button,[role="button"],input[type="button"],input[type="submit"],select,a) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
