/* =========================================
   Thep Bach Viet — Supplemental Styles
   ========================================= */

/* Font — local OpenSans TTF thiếu tiếng Việt → override toàn bộ bằng Google Fonts 'Open Sans' */
html, body {
    font-family: 'Open Sans', sans-serif !important;
}
body * {
    font-family: inherit;
}
/* Ép trực tiếp cho vùng mô tả danh mục & sản phẩm */
.pd-desc, .cat-banner__desc,
.products-details__content-detail,
.products-details__content-detail p,
.products-details__content-detail td,
button, input, select, textarea {
    font-family: 'Open Sans', sans-serif !important;
}

/* Breadcrumb */
.breadcrumb-section { background:#f5f5f5; padding:0; border-bottom:1px solid #e0e0e0; }
.breadcrumb { display:flex; list-style:none; margin:0; padding:0; padding-top:25px; font-size:13px; }
.breadcrumb li { color:#666; }
.breadcrumb li + li::before { content:" › "; margin:0 6px; color:#aaa; }
.breadcrumb li a { color:#666; text-decoration:none; }
.breadcrumb li a:hover { color:#CC2020; }

/* Buttons */
.btn-primary { display:inline-block; padding:8px 20px; background:#CC2020; color:#fff; border-radius:3px; text-decoration:none; font-size:14px; border:none; cursor:pointer; }
.btn-primary:hover { background:#A81A1A; color:#fff; }
.btn-secondary { display:inline-block; padding:8px 20px; background:#555; color:#fff; border-radius:3px; text-decoration:none; font-size:14px; border:none; cursor:pointer; }
.btn-secondary:hover { background:#333; color:#fff; }

/* "Xem thêm" buttons — navy secondary brand color */
.product-widget .btn-primary,
.box-intro__content-detail__link .btn-primary,
.sign-link .btn-primary,
.news-home__footer .btn-primary,
.apc-card__btn { background:#1C2B6B !important; color:#fff !important; }
.product-widget .btn-primary:hover,
.box-intro__content-detail__link .btn-primary:hover,
.sign-link .btn-primary:hover,
.news-home__footer .btn-primary:hover,
.apc-card__btn:hover { background:#162356 !important; color:#fff !important; }

/* Header — tách khỏi body bằng viền + bóng nhẹ (tránh lẫn nền trắng ở trang trong) */
.header { border-bottom:1px solid #e8e8e8; box-shadow:0 2px 10px rgba(0,0,0,.06); position:relative; z-index:10; }

/* Header logo */
.header .logo img { height:120px; width:auto; }


/* About — product cards (apc) */
.apc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:40px; }
.apc-card { background:#fff; border-radius:10px; box-shadow:0 3px 14px rgba(0,0,0,.08); overflow:hidden; display:flex; flex-direction:column; transition:transform .25s,box-shadow .25s; }
.apc-card:hover { transform:translateY(-5px); box-shadow:0 10px 28px rgba(0,0,0,.13); }
.apc-card__img { width:100%; aspect-ratio:1; overflow:hidden; }
.apc-card__img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.apc-card:hover .apc-card__img img { transform:scale(1.05); }
.apc-card__body { padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.apc-card__title { font-size:16px; font-weight:700; color:#1C2B6B; margin:0 0 10px; text-transform:uppercase; letter-spacing:.3px; }
.apc-card__desc { font-size:13.5px; color:#555; line-height:1.65; margin:0 0 14px; }
.apc-card__features { list-style:none; padding:0; margin:0 0 18px; flex:1; }
.apc-card__features li { font-size:13px; color:#444; padding:3px 0; display:flex; align-items:flex-start; gap:8px; }
.apc-card__features li i { color:#CC2020; margin-top:3px; flex-shrink:0; }
.apc-card__btn { display:inline-flex; align-items:center; gap:8px; background:#CC2020; color:#fff; padding:9px 20px; border-radius:4px; font-size:13px; font-weight:600; text-decoration:none; align-self:flex-start; transition:background .2s; }
.apc-card__btn:hover { background:#A81A1A; color:#fff; }
@media(max-width:960px){ .apc-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .apc-grid { grid-template-columns:1fr; } }

/* Banner slider — full viewport height */
.slideshow .item-image { height:100vh !important; }
.slideshow .item-image img { width:100%; height:100% !important; object-fit:cover !important; }
.slideshow .item-info__subtitle,
.slideshow .item-info__title,
.slideshow .item-info__desc { white-space:nowrap; }

/* Page title — styles from style.min.css (.title-text blue ribbon + :after arrow) */
.title-desc { color:#666; font-size:15px; margin:0; }

/* Sign/quality section — item titles left-aligned */
.sign-box .item-title,
.sign-box .item-desc { text-align:left; }

/* Product detail — mockup layout */
.products-details { padding:60px 0; }
.products-details .container { display:flow-root; }
/* Fix: anchor height chain inside slide item */
.products-details__gallery-slide .item a { display:block; height:100%; }
/* Fix: re-enable slick arrows (mockup CSS hides ::before, custom arrow images missing) */
.products-details__gallery .slick-prev,
.products-details__gallery .slick-next { background:none !important; width:36px !important; height:36px !important; top:50% !important; z-index:5; }
.products-details__gallery .slick-prev:before,
.products-details__gallery .slick-next:before { display:block !important; font-size:28px; color:#fff; text-shadow:0 1px 4px rgba(0,0,0,.5); }
.products-details__gallery .slick-prev { left:10px !important; right:auto !important; }
.products-details__gallery .slick-next { right:10px !important; left:auto !important; }
/* Fix: specs table (handles both with/without explicit tbody) */
.products-details__content-detail table { width:100%; border-collapse:collapse; margin-bottom:0; }
.products-details__content-detail table tr:nth-child(odd) td,
.products-details__content-detail table tbody tr:nth-child(odd) td { background:#f6f6f6; }
.products-details__content-detail table tr td,
.products-details__content-detail table tbody tr td { padding:6px 10px; font-size:14px; vertical-align:top; }
.products-details__content-detail table tr td:first-child,
.products-details__content-detail table tbody tr td:first-child { width:130px; border-right:1px solid #e3e2e7; font-weight:700; color:#1C2B6B; }
.products-details__content-detail table tr th { background:#1C2B6B; color:#fff; padding:6px 10px; font-size:14px; text-align:left; }
/* Description text */
.pd-desc { margin-bottom:12px; color:#444; line-height:1.7; font-size:14px; }
.pd-desc p { margin-bottom:8px; }
.pd-desc ul { padding-left:18px; margin-bottom:8px; }
@media(max-width:768px) {
    .products-details__gallery, .products-details__content { width:100%; float:none; padding:0; margin-bottom:20px; }
}

/* Category banner */
.cat-banner { position:relative; height:260px; overflow:hidden; }
.cat-banner__img { position:absolute; inset:0; }
.cat-banner__img img { width:100%; height:100%; object-fit:cover; display:block; filter:brightness(.55); }
.cat-banner__overlay { position:absolute; inset:0; display:flex; align-items:center; }
.cat-banner__title { font-size:32px; font-weight:700; color:#fff; margin:0 0 10px; text-transform:uppercase; letter-spacing:.5px; text-shadow:0 2px 8px rgba(0,0,0,.4); }
.cat-banner__desc { font-size:15px; color:rgba(255,255,255,.88); margin:0; line-height:1.6; max-width:680px; }
@media(max-width:768px) {
    .cat-banner { height:180px; }
    .cat-banner__title { font-size:22px; }
    .cat-banner__desc { font-size:13px; }
}

/* Product sidebar + layout */
.product-list-wrapper { display:flex; gap:24px; margin-top:24px; }
.product-sidebar { width:220px; flex-shrink:0; }
.sidebar-title { font-size:16px; font-weight:600; color:#fff; background:#1C2B6B; padding:12px 16px; border-radius:4px 4px 0 0; }
.category-list { list-style:none; padding:0; margin:0; border:1px solid #dee2e6; border-top:none; border-radius:0 0 4px 4px; }
.category-list li a { display:block; padding:10px 16px; color:#333; text-decoration:none; font-size:14px; border-bottom:1px solid #f0f0f0; transition:background .2s; }
.category-list li a:hover, .category-list li.active a { background:#CC2020; color:#fff; }
.product-main { flex:1; min-width:0; }

/* Product grid */
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:22px; }
.product-card { position:relative; display:flex; flex-direction:column; border:1px solid #e8e8e8; border-radius:8px; overflow:hidden; background:#fff; transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.product-card:hover { transform:translateY(-4px); box-shadow:0 12px 26px rgba(28,43,107,.12); border-color:#d6d6d6; }
.product-card__media { aspect-ratio:4/3; overflow:hidden; background:#f3f4f6; }
.product-card__media img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.product-card:hover .product-card__media img { transform:scale(1.06); }
.product-card__content { padding:14px 14px 16px; display:flex; flex-direction:column; gap:10px; flex:1; }
.product-card__category { font-size:11.5px; font-weight:600; color:#CC2020; text-transform:uppercase; letter-spacing:.4px; }
.product-card__title { font-size:15.5px; font-weight:600; margin:0; line-height:1.4; }
.product-card__title a { color:#1C2B6B; text-decoration:none; }
/* Whole card clickable via a single stretched, accessible link */
.product-card__title a::after { content:""; position:absolute; inset:0; z-index:1; }
.product-card:hover .product-card__title a { color:#CC2020; }
.product-card__more { margin-top:auto; font-size:13px; font-weight:600; color:#8a8d99; display:inline-flex; align-items:center; gap:6px; transition:color .2s ease, gap .2s ease; }
.product-card__more i { font-size:12px; }
.product-card:hover .product-card__more { color:#CC2020; gap:9px; }

/* Category overview sections (/san-pham) */
.cat-section { padding:52px 0; }
.cat-section--alt { background:#f7f8fa; }
.cat-section + .cat-section { border-top:1px solid #ececec; }
.cat-section__head { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:26px; padding-bottom:14px; border-bottom:2px solid #1C2B6B; }
.cat-section__title { font-size:24px; font-weight:700; color:#1C2B6B; margin:0; text-transform:uppercase; letter-spacing:.3px; }
.cat-section__desc { margin:8px 0 0; color:#555; font-size:14px; line-height:1.6; max-width:760px; }
.cat-section__all { flex-shrink:0; display:inline-flex; align-items:center; gap:7px; color:#CC2020; font-weight:600; font-size:14px; text-decoration:none; white-space:nowrap; transition:gap .2s ease, color .2s ease; }
.cat-section__all:hover { color:#A81A1A; gap:11px; }
.cat-section__empty { color:#888; font-size:14px; padding:6px 0; margin:0; }
@media(max-width:600px){
    .cat-section { padding:36px 0; }
    .cat-section__head { flex-direction:column; align-items:flex-start; gap:10px; }
    .cat-section__title { font-size:20px; }
}

/* Product detail */
.product-detail-wrapper { display:flex; gap:32px; margin-top:24px; flex-wrap:wrap; }
.product-detail__gallery { width:400px; flex-shrink:0; }
.gallery-main img { width:100%; height:300px; object-fit:contain; border:1px solid #e0e0e0; border-radius:4px; cursor:zoom-in; }
.gallery-thumbs { display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.thumb-item { width:70px; height:70px; border:2px solid transparent; border-radius:4px; overflow:hidden; cursor:pointer; }
.thumb-item:hover, .thumb-item.active { border-color:#CC2020; }
.thumb-item img { width:100%; height:100%; object-fit:cover; }
.product-detail__info { flex:1; min-width:200px; }
.product-detail__category { font-size:13px; color:#CC2020; text-transform:uppercase; margin-bottom:6px; }
.product-detail__title { font-size:26px; font-weight:700; color:#1a1a1a; margin:0 0 16px; }
.product-detail__desc { color:#444; line-height:1.7; margin-bottom:20px; }
.product-detail__contact { display:flex; gap:12px; flex-wrap:wrap; }
.product-specs, .product-related { margin-top:40px; }
.specs-content table { width:100%; border-collapse:collapse; }
.specs-content table td, .specs-content table th { border:1px solid #ddd; padding:8px 12px; font-size:14px; }
.specs-content table th { background:#f5f5f5; }

/* News grid */
.news-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:24px; }
.news-card { border:1px solid #e8e8e8; border-radius:6px; overflow:hidden; background:#fff; transition:box-shadow .2s; }
.news-card:hover { box-shadow:0 4px 12px rgba(0,0,0,.1); }
.news-card__media img { width:100%; height:240px; object-fit:cover; }
.news-card__content { padding:14px; }
.news-card__date { font-size:12px; color:#999; margin-bottom:8px; }
.news-card__title { font-size:15px; font-weight:600; margin:0 0 10px; line-height:1.4; }
.news-card__title a { color:#222; text-decoration:none; }
.news-card__title a:hover { color:#CC2020; }

/* News detail */
.news-thumb { margin-bottom:20px; }
.news-thumb img { width:100%; max-height:420px; object-fit:cover; border-radius:6px; display:block; }
.article-content__post-title { font-size:26px !important; font-weight:700; color:#1a1a1a; line-height:1.4; }
.css-content h2 { color:#1C2B6B !important; }
.css-content h3 { color:#1C2B6B !important; }
.share-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 18px; border-radius:4px; font-size:13px; text-decoration:none; font-weight:600; }
.share-fb { background:#1877f2; color:#fff !important; }
.share-fb:hover { background:#1558b0; color:#fff !important; }

/* Pagination */
.pagination { display:flex; justify-content:center; gap:4px; margin-top:32px; }
.page-btn { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border:1px solid #ddd; border-radius:4px; text-decoration:none; color:#333; font-size:14px; transition:all .2s; }
.page-btn:hover { background:#CC2020; color:#fff; border-color:#CC2020; }
.page-btn.active { background:#CC2020; color:#fff; border-color:#CC2020; }

/* About page */
.about-intro { padding:40px 0; }
.about-intro__content { display:flex; gap:32px; align-items:flex-start; flex-wrap:wrap; }
.about-intro__text { flex:1; min-width:280px; line-height:1.8; color:#333; }
.about-highlights { list-style:none; padding:0; margin:16px 0; }
.about-highlights li { padding:4px 0; color:#333; }
.about-highlights li i { color:#27ae60; margin-right:8px; }
.about-intro__gallery { flex:1; min-width:280px; }
.gallery-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.gallery-grid a img { width:100%; height:160px; object-fit:cover; border-radius:4px; cursor:pointer; transition:opacity .2s; }
.gallery-grid a:hover img { opacity:.85; }
.about-info { background:#f8f9fa; padding:40px 0; }
.info-boxes { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:20px; }
.info-box { background:#fff; border-radius:6px; padding:20px; text-align:center; box-shadow:0 2px 6px rgba(0,0,0,.06); }
.info-box__icon { font-size:32px; color:#CC2020; margin-bottom:10px; }
.info-box__title { font-size:13px; text-transform:uppercase; color:#999; margin-bottom:6px; }
.info-box__text { font-size:14px; color:#333; line-height:1.5; }
.info-box__text a { color:#333; text-decoration:none; }
.about-history { padding:40px 0; }
.timeline { position:relative; padding-left:40px; }
.timeline::before { content:''; position:absolute; left:12px; top:0; bottom:0; width:2px; background:#e0e0e0; }
.timeline-item { position:relative; margin-bottom:32px; display:flex; gap:24px; }
.timeline-year { position:absolute; left:-52px; background:#CC2020; color:#fff; font-size:12px; font-weight:700; padding:4px 8px; border-radius:4px; white-space:nowrap; top:12px; }
.timeline-content { background:#fff; border:1px solid #e8e8e8; border-radius:6px; padding:16px 20px; flex:1; }
.timeline-content h3 { margin:0 0 8px; font-size:16px; color:#1a1a1a; }
.timeline-content p { margin:0; color:#555; font-size:14px; line-height:1.6; }

/* ===== CERTIFICATION PAGE ===== */

/* Banner */
.cert-banner { position:relative; background:linear-gradient(135deg,#1C2B6B 0%,#2B4EC2 50%,#CC2020 100%); padding:0; text-align:center; overflow:hidden; }
.cert-banner::before { content:''; position:absolute; inset:0; background:url('/file.hoaphat.com.vn/hoaphat-com-vn/2020/03/web-thep-1920x700px-03.png') center/cover no-repeat; opacity:.12; }
.cert-banner__overlay { position:absolute; inset:0; background:rgba(10,30,80,.65); }
.cert-banner__content { position:relative; z-index:1; }
.cert-banner__title { font-size:38px; font-weight:700; color:#fff; margin:0 0 12px; text-transform:uppercase; letter-spacing:1px; text-shadow:0 2px 8px rgba(0,0,0,.3); }
.cert-banner__sub { font-size:17px; color:rgba(255,255,255,.85); margin:0 0 20px; }
.cert-banner__breadcrumb { display:inline-flex; align-items:center; gap:8px; font-size:14px; color:rgba(255,255,255,.7); }
.cert-banner__breadcrumb a { color:rgba(255,255,255,.9); text-decoration:none; }
.cert-banner__breadcrumb a:hover { color:#fff; }
.cert-banner__breadcrumb i { font-size:12px; }

/* Stats bar */
.cert-stats { background:#fff; box-shadow:0 4px 20px rgba(0,0,0,.08); position:relative; z-index:2; margin-top:-1px; }
.cert-stats__grid { display:grid; grid-template-columns:repeat(4,1fr); }
.cert-stats__item { padding:28px 20px; text-align:center; border-right:1px solid #f0f0f0; transition:background .2s; }
.cert-stats__item:last-child { border-right:none; }
.cert-stats__item:hover { background:#fafafa; }
.cert-stats__icon { font-size:28px; color:#CC2020; margin-bottom:8px; }
.cert-stats__number { font-size:34px; font-weight:700; color:#1C2B6B; line-height:1; margin-bottom:6px; }
.cert-stats__label { font-size:13px; color:#777; }

/* Section */
.cert-section { padding:60px 0; background:#f5f7fa; }

/* Grid */
.cert-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:48px; }

/* Card */
.cert-card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 4px 16px rgba(0,0,0,.07); transition:transform .3s, box-shadow .3s; display:flex; flex-direction:column; }
.cert-card:hover { transform:translateY(-6px); box-shadow:0 12px 32px rgba(0,0,0,.13); }

/* Badge */
.cert-card__badge { font-size:12px; font-weight:600; text-transform:uppercase; padding:8px 16px; letter-spacing:.5px; display:flex; align-items:center; gap:6px; }
.cert-card__badge i { font-size:13px; }
.cert-card__badge--blue   { background:#e8f0fe; color:#2B4EC2; }
.cert-card__badge--gold   { background:#fef9e7; color:#9a6f00; }
.cert-card__badge--red    { background:#fdecea; color:#CC2020; }
.cert-card__badge--navy   { background:#eef2fa; color:#2c3e70; }
.cert-card__badge--green  { background:#e8f5e9; color:#2e7d32; }

/* Image wrap */
.cert-card__img-wrap { display:block; position:relative; overflow:hidden; background:#f9f9f9; aspect-ratio:4/3; text-decoration:none; }
.cert-card__img-wrap img { width:100%; height:100%; object-fit:contain; padding:12px; box-sizing:border-box; transition:transform .4s; }
.cert-card:hover .cert-card__img-wrap img { transform:scale(1.04); }

/* Overlay */
.cert-card__overlay { position:absolute; inset:0; background:rgba(10,30,80,.55); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; opacity:0; transition:opacity .3s; color:#fff; }
.cert-card:hover .cert-card__overlay { opacity:1; }
.cert-card__overlay i { font-size:28px; }
.cert-card__overlay span { font-size:14px; font-weight:500; letter-spacing:.3px; }

/* Info */
.cert-card__info { padding:18px 20px 20px; flex:1; display:flex; flex-direction:column; gap:8px; }
.cert-card__title { font-size:16px; font-weight:700; color:#1C2B6B; margin:0; line-height:1.3; }
.cert-card__desc { font-size:13px; color:#666; line-height:1.6; margin:0; flex:1; }
.cert-card__tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.cert-tag { font-size:11px; padding:3px 10px; border-radius:20px; background:#f0f4ff; color:#2B4EC2; font-weight:500; border:1px solid #d0dcf8; }

/* Trust CTA */
.cert-trust { background:linear-gradient(135deg,#1C2B6B,#2B4EC2); padding:48px 0; }
.cert-trust__inner { display:flex; align-items:center; gap:32px; flex-wrap:wrap; }
.cert-trust__icon { font-size:52px; color:rgba(255,255,255,.3); flex-shrink:0; }
.cert-trust__text { flex:1; min-width:240px; }
.cert-trust__text h3 { font-size:20px; font-weight:700; color:#fff; margin:0 0 8px; }
.cert-trust__text p { font-size:14px; color:rgba(255,255,255,.8); margin:0; line-height:1.6; }
.cert-trust__btn { display:inline-flex; align-items:center; gap:8px; padding:12px 28px; background:#CC2020; color:#fff; border-radius:6px; text-decoration:none; font-weight:600; font-size:14px; white-space:nowrap; transition:background .2s; flex-shrink:0; }
.cert-trust__btn:hover { background:#A81A1A; color:#fff; }

/* Section header */
.title { text-align:left; margin-bottom:8px; }

/* Old cert styles kept for fallback */
.certification-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:20px; margin-top:20px; }
.cert-item { text-align:center; }
.cert-item a img { width:100%; height:200px; object-fit:contain; border:1px solid #e8e8e8; border-radius:6px; padding:10px; transition:box-shadow .2s; }
.cert-item a:hover img { box-shadow:0 4px 12px rgba(0,0,0,.15); }
.cert-name { font-size:13px; color:#555; margin-top:8px; }

/* Responsive cert */
@media (max-width:900px) { .cert-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px) {
    .cert-grid { grid-template-columns:1fr; }
    .cert-stats__grid { grid-template-columns:repeat(2,1fr); }
    .cert-banner__title { font-size:26px; }
    .cert-trust__inner { flex-direction:column; text-align:center; }
}

/* Gallery */
.gallery-album { margin-bottom:32px; }
.album-title { font-size:18px; font-weight:600; color:#1a1a1a; margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid #CC2020; display:inline-block; }
.gallery-section .gallery-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.gallery-section .gallery-grid a img { width:100%; height:180px; object-fit:cover; border-radius:4px; transition:opacity .2s; cursor:pointer; }
.gallery-section .gallery-grid a:hover img { opacity:.85; }

/* Recruitment */
.job-list { display:flex; flex-direction:column; gap:16px; margin-top:20px; }
.job-card { border:1px solid #e8e8e8; border-radius:6px; overflow:hidden; background:#fff; }
.job-card__header { padding:16px 20px; }
.job-card__title { font-size:18px; font-weight:600; margin:0 0 10px; }
.job-card__title a { color:#1a1a1a; text-decoration:none; }
.job-card__title a:hover { color:#CC2020; }
.job-card__meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#666; }
.job-card__meta span { display:flex; align-items:center; gap:6px; }
.job-card__footer { padding:12px 20px; background:#f9f9f9; border-top:1px solid #e8e8e8; }

/* Recruitment detail */
.recruitment-detail-wrapper { display:flex; gap:32px; flex-wrap:wrap; margin-top:24px; }
.job-detail { flex:1; min-width:280px; }
.job-detail__title { font-size:26px; font-weight:700; color:#1a1a1a; margin:0 0 16px; }
.job-detail__meta { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid #e8e8e8; }
.meta-item { display:inline-flex; align-items:center; gap:8px; font-size:13px; color:#555; background:#f5f5f5; padding:5px 12px; border-radius:20px; }
.job-detail__content { color:#333; line-height:1.8; font-size:15px; }
.apply-form-box { width:340px; flex-shrink:0; background:#fff; border:1px solid #e8e8e8; border-radius:6px; padding:20px; height:fit-content; }
.apply-form-title { font-size:17px; font-weight:600; margin:0 0 16px; color:#1a1a1a; }

/* Contact */
.contact-wrapper { display:flex; gap:32px; flex-wrap:wrap; margin-top:24px; }
.contact-info { flex:1; min-width:280px; }
.contact-info__title { font-size:17px; font-weight:600; margin:0 0 16px; }
.contact-info__list { list-style:none; padding:0; margin:0 0 20px; }
.contact-info__list li { display:flex; gap:12px; padding:10px 0; border-bottom:1px solid #f0f0f0; font-size:14px; color:#333; align-items:flex-start; }
.contact-info__list li i { color:#CC2020; width:18px; flex-shrink:0; margin-top:2px; }
.contact-info__list a { color:#333; text-decoration:none; }
.contact-info__list a:hover { color:#CC2020; }
.contact-map { border-radius:6px; overflow:hidden; }
.contact-form-box { flex:1; min-width:280px; background:#fff; border:1px solid #e8e8e8; border-radius:6px; padding:24px; }
.contact-form-title { font-size:17px; font-weight:600; margin:0 0 16px; color:#1a1a1a; }

/* Shared form styles */
.form-group { margin-bottom:14px; }
.form-group label { display:block; font-size:14px; font-weight:500; margin-bottom:5px; color:#333; }
.form-group input, .form-group textarea, .form-group select {
    width:100%; padding:8px 12px; border:1px solid #ced4da; border-radius:4px;
    font-size:14px; color:#333; box-sizing:border-box; background:#fff;
}
.form-group input:focus, .form-group textarea:focus { outline:none; border-color:#CC2020; box-shadow:0 0 0 2px rgba(200,0,0,.1); }
.form-group textarea { min-height:100px; resize:vertical; }
.required { color:#e74c3c; }

/* Alert boxes */
.alert-box { padding:12px 16px; border-radius:4px; margin-bottom:16px; font-size:14px; }
.alert-success { background:#d4edda; border:1px solid #c3e6cb; color:#155724; }
.alert-danger { background:#f8d7da; border:1px solid #f5c6cb; color:#721c24; }

/* Slideshow — full viewport height */
.slideshow .item-image { height:100vh; overflow:hidden; }
.slideshow .item-image img { width:100%; height:100% !important; min-height:unset !important; max-height:unset !important; object-fit:cover; display:block; }

/* Home sections — nhịp dọc đồng nhất 64px, nền xen kẽ xám/trắng */
.box-intro    { padding:64px 0; background:#f9f9f9; }
.sign         { padding:64px 0; }
.product-home { padding:64px 0; margin:0; background:#f9f9f9; }
.news-slide   { padding:64px 0; margin:0; }
.news-home    { padding:64px 0; background:#fff; }
.sign-link    { margin:32px 0 0; }

.box-intro__content { display:flex; gap:32px; align-items:center; flex-wrap:wrap; margin-bottom:40px; }
.box-intro__content-detail { flex:1; min-width:280px; }
.box-intro__content-detail__desc { color:#555; line-height:1.8; margin:16px 0; }
.box-intro__content-video { flex:1; min-width:280px; }
.box-intro__content-video__thumb { position:relative; cursor:pointer; border-radius:6px; overflow:hidden; }
.box-intro__content-video__thumb img { width:100%; display:block; }
.play-btn { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:56px; color:rgba(255,255,255,.9); text-shadow:0 2px 8px rgba(0,0,0,.4); }

/* Product home — square cards with slide-up hover overlay */
.product-home__list { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:20px; }
.product-home__list .product-widget {
    position:relative; overflow:hidden;
    width:auto !important; float:none !important; margin:0 !important;
    aspect-ratio:1;
}
.product-home__list .product-widget__media {
    position:absolute; inset:0; width:100%; height:100%; float:none;
}
.product-home__list .product-widget__media img {
    width:100%; height:100%; object-fit:cover; display:block;
    max-width:none !important; max-height:none !important;
}
.product-home__list .product-widget__content {
    position:absolute; left:0; right:0; bottom:-130px;
    width:100%; background:rgba(0,0,0,.75); transition:.4s; padding:0;
}
.product-home__list .product-widget:hover .product-widget__content { bottom:0; }

.news-home__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:20px; }
.news-home__footer { text-align:center; margin-top:32px; }
.news-card__link { display:block; text-decoration:none; color:inherit; height:100%; }
.news-card:hover .news-card__title { color:#CC2020; }
.news-card__title { font-size:15px; font-weight:600; margin:0; line-height:1.5; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

.contact-home { padding:48px 0; }
.contact-home__list { list-style:none; padding:0; margin:16px 0 24px; }
.contact-home__list li { display:flex; gap:12px; padding:8px 0; font-size:15px; color:#333; }
.contact-home__list li i { color:#CC2020; width:18px; }
.contact-home__list a { color:#333; text-decoration:none; }

.main { min-height:60vh; }

.footer-top__header { width:100%; margin-bottom:10px; }

/* Floating buttons — brand colors */
.icon-fix-right .item { background:#fff !important; }
.icon-fix-right .item-image a { display:flex !important; align-items:center; justify-content:center; padding:0 !important; }
.icon-fix-right .item.ifr-zalo .item-image img { display:block; width:30px; height:30px; border-radius:6px; }
.icon-fix-right .item.ifr-phone .item-image i { color:#CC2020; font-size:16px; }
.icon-fix-right .item.ifr-top .item-image i { color:#CC2020; font-size:16px; }
.icon-fix-right .item:hover { opacity:.85; }

/* Footer — hanging indent: icon stays fixed, wrapped text aligns below text start */
.footer-item__list li a { display:flex; align-items:flex-start; gap:0; }
.footer-item__list li a i { flex-shrink:0; width:28px; line-height:22px; text-align:center; }

@media (max-width: 768px) {
    .product-list-wrapper { flex-direction:column; }
    .product-sidebar { width:100%; }
    .about-intro__content, .box-intro__content, .contact-wrapper,
    .recruitment-detail-wrapper, .product-detail-wrapper { flex-direction:column; }
    .news-detail-wrapper { grid-template-columns:1fr; }
    .product-detail__gallery { width:100%; }
    .news-detail__sidebar { width:100%; }
    .apply-form-box { width:100%; }
    .product-home__list { grid-template-columns:repeat(2,1fr); }
    .news-home__grid { grid-template-columns:repeat(2,1fr); }
    /* Nhịp dọc gọn hơn trên mobile */
    .box-intro, .sign, .product-home, .news-slide, .news-home { padding:40px 0; }
    .box-intro__content { margin-bottom:28px; }
}

@media (max-width: 480px) {
    .product-home__list { grid-template-columns:1fr; }
    .news-home__grid { grid-template-columns:1fr; }
}

/* Ẩn ảnh nền trái/phải của footer */
.footer-background { display: none !important; }

/* ===== BRAND COLORS: ghi đè theme style.min.css ===== */
/* Red #CC2020 | Navy #1C2B6B */

/* Footer background */
.footer-top { background: #1C2B6B !important; }
.footer-bottom { background: #111D4A !important; }
.footer-bottom__copyright p a,
.footer-bottom__copyright p span { color: rgba(255,255,255,.7) !important; }

/* Scrollbar */
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover { background: #1C2B6B !important; }

/* Heading decorative border & slick dot active */
.heading-border,
.slick-dots li.slick-active span { background: #CC2020 !important; }

/* Title ribbon tag */
.title-text { background: #CC2020 !important; margin-top:20px; }
.title-text::after { border-left-color: #CC2020 !important; }

/* Nav hover */
.active-link:hover { color: #CC2020 !important; }

/* Pagination */
.pagination .page-link:hover,
.pagination .active,
.pagination .active .page-link { background: #CC2020 !important; border-color: #CC2020 !important; color: #fff !important; }

/* Form submit / agency buttons */
.form-submit button,
.agency-system__content form button { background: #CC2020 !important; }

/* Article links & contact box */
.article-content__post-info ul li a { color: #CC2020 !important; }
.article-contact { border-color: #CC2020 !important; }
.article-contact__title { color: #CC2020 !important; }

/* Sign/quality boxes hover */
.sign-box__item .item:hover,
.sign-box__item .item:hover::after { border-color: #CC2020 !important; }
.sign-box__item .item:hover::before { background: #CC2020 !important; }
.sign-box__item .item:hover .item-desc,
.sign-box__item .item:hover .item-title { color: #CC2020 !important; }

/* Product intro slide image border */
.box-intro__slide .item-image { border-color: #CC2020 !important; }

/* Product variant tabs */
.products-details__content-variant ul li a:hover,
.products-details__content-variant ul li.active a { background: #CC2020 !important; color: #fff !important; }

/* Intro short title */
.intro-short__content-title { color: #1C2B6B !important; }

/* Intro products corner brackets */
.intro-products__list .item::before,
.intro-products__list .item::after { border-color: #CC2020 !important; }
.intro-products__list .first-item { background: #CC2020 !important; }

/* Recruitment table */
.recruitment-table table tr th { background: #1C2B6B !important; }
.recruitment-table table tr .time { color: #CC2020 !important; }
.related-recruitment .item-time { background: #CC2020 !important; }

/* Agency content */
.agency-content__title h1,
.agency-content__title p { color: #1C2B6B !important; }
.agency-content__box .box-title i { color: #CC2020 !important; }
.agency-content__box .box-title h2,
.agency-content__box .box-title p { color: #1C2B6B !important; }
.agency-content__box .box-list .item a { color: #1C2B6B !important; }
