/* ==========================================================
   HPB - shared polish for inner pages (loaded from _Layout)
   Pages: Service, Project, Careers, News, Contact, Tags, About...
   ========================================================== */
:root {
    --hpb-red: #da3438;
    --hpb-red-dark: #891c1f;
    --hpb-red-soft: #fff1f1;
    --hpb-ink: #1f2430;
    --hpb-muted: #667085;
    --hpb-bg: #f6f7f9;
    --hpb-radius: 16px;
    --hpb-shadow: 0 6px 24px rgba(31, 36, 48, .08);
    --hpb-shadow-hover: 0 14px 36px rgba(218, 52, 56, .22);
}

/* ---------- Lenis (required rules) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Scroll progress bar ---------- */
#hpb-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    z-index: 100000;
    background: linear-gradient(90deg, var(--hpb-red), #ff8a8d);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
    will-change: transform;
}

/* ---------- Reveal: start hidden, Motion animates in (class added only when JS runs) ---------- */
html.js-reveal .hpb-reveal { opacity: 0; }

/* ---------- Page banner (breadcrumb-area) ---------- */
.breadcrumb-area {
    height: 300px;
    overflow: hidden;
    background-size: cover;
    background-position: 50% 50%;
}
.breadcrumb-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(20, 24, 33, .82) 0%, rgba(20, 24, 33, .55) 55%, rgba(137, 28, 31, .6) 100%);
}
.breadcrumb-area .services-banner { z-index: 2; }
.services-banner h2 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: .01em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
.services-banner h2::after {
    content: "";
    display: block;
    width: 64px; height: 4px;
    margin-top: 14px;
    border-radius: 4px;
    background: var(--hpb-red);
}
.breadcrumb-area .breadcrumb {
    padding: 10px 22px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}
.breadcrumb-area .breadcrumb li { font-size: 13px; letter-spacing: .06em; }
.breadcrumb-area .breadcrumb li a { transition: color .2s; }
.breadcrumb-area .breadcrumb li a:hover { color: #ffb3b5; }

/* ---------- Service list ---------- */
.service-area { background: var(--hpb-bg); padding-top: 70px; }
.service-items .single-item { margin-bottom: 30px; }
.service-items .single-item > .item {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: var(--hpb-radius);
    box-shadow: var(--hpb-shadow);
    transition: transform .3s, box-shadow .3s;
}
.service-items .single-item > .item:hover { transform: translateY(-6px); box-shadow: var(--hpb-shadow-hover); }
.img-service { overflow: hidden; }
.img-service img { width: 100%; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.service-items .item:hover .img-service img { transform: scale(1.07); }
.text-service { padding: 8px 22px 6px; }
.infoService h4 a { color: var(--hpb-ink); }
.infoService p { min-height: 0; padding-bottom: 14px; }
.btn-standard { box-shadow: 0 4px 14px rgba(31, 38, 66, .08); }
.btn-standard:hover { box-shadow: 0 8px 20px rgba(218, 52, 56, .3); }

/* ---------- Projects ---------- */
.cases-section .sec-title { margin: 50px 0 40px; }
.cases-section .sec-title h2 { color: var(--hpb-ink); }
.case-block {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: var(--hpb-radius);
    box-shadow: var(--hpb-shadow);
    transition: transform .3s, box-shadow .3s;
}
.case-block:hover { transform: translateY(-6px); box-shadow: var(--hpb-shadow-hover); }
.case-block .image-box { margin: 0; overflow: hidden; }
.case-block .image-box img { object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.case-block:hover .image-box img { transform: scale(1.07); }
.case-block .title a { color: var(--hpb-ink); }
.case-block .title a:hover { color: var(--hpb-red); text-decoration: none; }
.project-item { margin-bottom: 30px; }

/* ---------- Careers ---------- */
.careers { background: var(--hpb-bg); padding-bottom: 50px; }
.jp_hiring_heading_wrapper h2 { color: var(--hpb-ink); font-weight: 700; }
.career-itemmmmm {
    margin-bottom: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: var(--hpb-radius);
    box-shadow: var(--hpb-shadow);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.career-itemmmmm:hover { transform: translateY(-4px); border-color: var(--hpb-red); box-shadow: var(--hpb-shadow-hover); }
.jp_job_post_right_cont h4 a { color: var(--hpb-ink); transition: color .2s; }
.career-itemmmmm:hover .jp_job_post_right_cont h4 a { color: var(--hpb-red); text-decoration: none; }
.jp_job_post_keyword_wrapper { border-top: 1px dashed #e3e6ec; }

/* ---------- News ---------- */
.section-head { margin-bottom: 24px; }
.posts-grid .post {
    height: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: var(--hpb-radius);
    box-shadow: var(--hpb-shadow);
    transition: transform .3s, box-shadow .3s;
}
.posts-grid .post:hover { transform: translateY(-5px); box-shadow: var(--hpb-shadow-hover); }
.posts-grid .post .image-link { display: block; overflow: hidden; }
.posts-grid .post .image-link img { width: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.posts-grid .post:hover .image-link img { transform: scale(1.07); }
.posts-grid .post .meta, .posts-grid .post h2, .posts-grid .post .excerpt { padding-left: 20px; padding-right: 20px; }
.posts-grid .post .excerpt { padding-bottom: 20px; }
.posts-grid .post .post-link:hover { color: var(--hpb-red); }

/* ---------- Contact page ---------- */
.contact-form {
    background: #fff;
    border-radius: var(--hpb-radius);
    box-shadow: var(--hpb-shadow);
    padding: 30px;
}
.contact-form .form-control {
    height: auto;
    padding: 12px 14px;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-control:focus {
    border-color: var(--hpb-red);
    box-shadow: 0 0 0 3px rgba(218, 52, 56, .15);
    outline: 0;
}
.site-heading h2 span { color: var(--hpb-red); }

/* ---------- About / text pages ---------- */
h2.page_title { color: var(--hpb-ink); font-weight: 700; }
h2.page_title i { color: var(--hpb-red); }

/* ---------- Footer ---------- */
.footerlinewrap { background: linear-gradient(90deg, var(--hpb-red), var(--hpb-red-dark)); }
.footernavi li a { transition: color .2s; }

@media (max-width: 767px) {
    .breadcrumb-area { height: 240px; }
    .services-banner h2 { font-size: 30px; }
    .breadcrumb-area .breadcrumb { padding: 8px 14px; }
    .contact-form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ==========================================================
   Detail pages, About, CV form, text pages
   ========================================================== */

/* ---------- Service detail ---------- */
.service-detail { padding-top: 50px; padding-bottom: 50px; }
.service-detail-content { line-height: 1.8; color: #3b4252; }
.service-detail-content img { max-width: 100%; height: auto; border-radius: 12px; }
.service-detail-menubar .navbar-detail {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: var(--hpb-radius);
    box-shadow: var(--hpb-shadow);
}
.service-detail-menubar .navbar-detail.img-box { box-shadow: none; }
.navbar-detail a { transition: color .2s, padding-left .25s; }
.navbar-detail li:hover a { padding-left: 6px; }

/* ---------- Careers detail ---------- */
.job-detail-info { background: #fff; border-radius: var(--hpb-radius); overflow: hidden; box-shadow: var(--hpb-shadow); }
.job-detail-info ul li { transition: background .25s; }
.job-detail-info ul li:hover { background: var(--hpb-red-soft); }
.content-inner i { color: var(--hpb-red); }

/* ---------- News detail ---------- */
.title-news { font-weight: 700; line-height: 1.3; color: var(--hpb-ink); }
.border-right .content img { max-width: 100%; height: auto; border-radius: 12px; }
.border-right .content { line-height: 1.85; color: #3b4252; }
.tags .tag { border-radius: 999px; transition: background .2s, color .2s; }
.tags .tag:hover { background: var(--hpb-red); color: #fff; text-decoration: none; }
.widget .posts-list img { border-radius: 8px; object-fit: cover; }

/* ---------- About us ---------- */
#about-us #meet_team .img_left {
    border-radius: 22px;
    box-shadow: var(--hpb-shadow);
}
#about-us #meet_team .img_left img { width: 100%; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
#about-us #meet_team .img_left:hover img { transform: scale(1.04); }
#about-us #meet_team .text_right h3 { font-size: 28px; color: var(--hpb-ink); }
#about-us #history_company { padding-bottom: 20px; }
#kaisya_gaiyou { line-height: 1.8; color: #3b4252; }
#kaisya_gaiyou img { max-width: 100%; height: auto; border-radius: 12px; }
.prevTurn, .nextTurn { border-radius: 999px; transition: background .2s, color .2s, box-shadow .2s; }
.prevTurn:hover, .nextTurn:hover { box-shadow: 0 6px 16px rgba(218, 52, 56, .25); }
.zoomIconCate span, .zoomIconCate a { border-radius: 999px; }
#section_catalogue .book { filter: drop-shadow(0 18px 30px rgba(31, 36, 48, .22)); }

/* ---------- CV submit form ---------- */
#contactt input[type="text"]:focus, #contactt input[type="email"]:focus, #contactt input[type="tel"]:focus,
#contactt input[type="url"]:focus, #contactt input[type="date"]:focus, #contactt textarea:focus, #contactt select:focus {
    border-color: var(--hpb-red);
    box-shadow: 0 0 0 3px rgba(218, 52, 56, .15);
    outline: 0;
}
#contactt input[type="text"], #contactt input[type="email"], #contactt input[type="tel"],
#contactt input[type="url"], #contactt input[type="date"], #contactt textarea, #contactt select { border-radius: 10px; }
#contactt h3 { color: var(--hpb-ink); font-weight: 700; }

/* ---------- Text pages (Brse / Crm / Privacy) ---------- */
.container > .content, .container > .contentt, .container > .contenttt { padding-top: 40px; padding-bottom: 50px; line-height: 1.8; }

/* ==========================================================
   Round 3: typography, header, hero, buttons, widgets,
   feedback, project filter, dark mode, page transitions
   ========================================================== */

/* ---------- Typography: one family everywhere (icon fonts untouched) ---------- */
:root { --hpb-font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }
body, h1, h2, h3, h4, h5, h6, p, a, li, span, small, strong, label, button, input, textarea, select,
.btn, .form-control, .swal2-popup { font-family: var(--hpb-font); }
.fa, [class^="fa-"], [class*=" fa-"] { font-family: FontAwesome; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -0.01em; }

/* ---------- Cross-page fade (View Transitions, ignored by browsers without support) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: hpb-vt-out .22s ease both; }
::view-transition-new(root) { animation: hpb-vt-in .38s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes hpb-vt-out { to { opacity: 0; } }
@keyframes hpb-vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Buttons ---------- */
.hpb-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600; font-size: 15px; letter-spacing: .01em;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.hpb-btn--primary { color: #fff !important; background: linear-gradient(135deg, var(--hpb-red), var(--hpb-red-dark)); box-shadow: 0 10px 24px rgba(218, 52, 56, .4); }
.hpb-btn--primary:hover { box-shadow: 0 14px 32px rgba(218, 52, 56, .55); }
.hpb-btn--ghost { color: #fff !important; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.hpb-btn--ghost:hover { background: #fff; color: var(--hpb-ink) !important; }
.hpb-eyebrow--light { color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }

/* ---------- Header: glass menu + gradient info bar ---------- */
.header-top { background-image: linear-gradient(90deg, #da3438 0%, #b02a2e 60%, #891c1f 100%); font-size: 13px; }
.menu {
    background: rgba(255, 255, 255, .84) !important;
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    box-shadow: 0 1px 0 rgba(31, 36, 48, .06), 0 8px 24px rgba(31, 36, 48, .06) !important;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), background .3s !important;
}
@media (min-width: 1024px) {
    .menubar > li > a, .menubar > li > div > a { border-bottom: 3px solid transparent; font-weight: 600; color: #4a5160; }
    .menubar > li.active > div > a, .menubar > li.active > a, .menubar > li > a:hover, .menubar > li > div > a:hover { border-bottom: 3px solid var(--hpb-red); color: var(--hpb-red); }
}
.menu .dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--hpb-shadow); padding: 8px; }
.menu .dropdown-item { border-radius: 8px; transition: background .2s, color .2s; }
.menu .dropdown-item:hover { background: var(--hpb-red-soft); color: var(--hpb-red); }

/* ---------- Home hero ---------- */
.section_banner { background: #141821; }
.section_banner::after {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(20, 24, 33, .5) 0%, rgba(20, 24, 33, .18) 38%, rgba(20, 24, 33, .82) 100%);
    pointer-events: none;
}
.section_banner .text_video { z-index: 3; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .15); }
.hpb-hero { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 0 11vh; color: #fff; }
.hpb-hero .container { max-width: 1140px; }
.hpb-hero h1 {
    max-width: 800px;
    margin: 18px 0 14px;
    font-size: clamp(32px, 4.6vw, 62px);
    font-weight: 800; line-height: 1.12;
    color: #fff;
    text-shadow: 0 4px 28px rgba(0, 0, 0, .45);
}
.hpb-hero h1 span { color: #ff8a8d; }
.hpb-hero p { max-width: 600px; margin: 0 0 28px; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.hpb-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hpb-hero__scroll {
    position: absolute; right: 4%; bottom: 7vh;
    width: 26px; height: 42px;
    border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px;
}
.hpb-hero__scroll span {
    position: absolute; left: 50%; top: 8px;
    width: 4px; height: 8px; margin-left: -2px;
    background: #fff; border-radius: 2px;
    animation: hpb-scroll-cue 1.6s ease-in-out infinite;
}
@keyframes hpb-scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (max-width: 767px) {
    .hpb-hero { padding-bottom: 8vh; }
    .hpb-hero p { font-size: 15px; }
    .hpb-hero__scroll { display: none; }
    .hpb-btn { padding: 12px 22px; font-size: 14px; }
}

/* ---------- Floating widgets: one consistent look ---------- */
#top-btn {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hpb-red), var(--hpb-red-dark)) !important;
    box-shadow: 0 8px 20px rgba(31, 36, 48, .28);
}
.tel_mobile { background: linear-gradient(135deg, var(--hpb-red), var(--hpb-red-dark)); box-shadow: 0 8px 20px rgba(218, 52, 56, .4); }
.plugin-fb > img { border-radius: 50%; box-shadow: 0 8px 20px rgba(31, 36, 48, .25); transition: transform .25s; }
.plugin-fb > img:hover { transform: scale(1.08); }
.plugin-fb #plugin-fb > div { border-radius: 14px; overflow: hidden; box-shadow: var(--hpb-shadow); }

/* ---------- Feedback slider ---------- */
#feedback_client { background: var(--hpb-bg); padding: 80px 0; }
.content_feedback_item {
    margin: 10px 14px;
    height: calc(100% - 20px);
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--hpb-shadow);
    background: #fff;
}
.feedback_text {
    position: relative;
    background: linear-gradient(135deg, var(--hpb-red) 0%, var(--hpb-red-dark) 100%);
    padding: 48px 44px;
}
.feedback_text::before {
    content: "\201C";
    position: absolute; top: 6px; left: 26px;
    font: 800 120px/1 Georgia, serif;
    color: rgba(255, 255, 255, .18);
    pointer-events: none;
}
.feedback_text .feedback_text_content { position: relative; font-size: 16px; line-height: 1.75; }
.feedback_text_content .feedback_name h3 { color: #ffe0e1; font-size: 20px; }
.feedback_info .feedback_img img { object-fit: cover; }
.slick-custom-arrow { box-shadow: 0 8px 20px rgba(31, 36, 48, .18); border: 0; transition: background .2s, color .2s, box-shadow .2s; }
.slick-custom-arrow:hover { background: var(--hpb-red); color: #fff; }
@media (max-width: 767px) {
    .feedback_item { height: auto !important; }
    .content_feedback_item { flex-direction: column; }
    .feedback_text, .feedback_info { width: 100%; }
    .feedback_info .feedback_img { height: 240px; }
    .feedback_text { padding: 40px 24px 28px; }
}

/* ---------- Project filter ---------- */
.hpb-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 36px; padding: 0; }
.hpb-filter button {
    padding: 9px 22px;
    font-weight: 600; font-size: 14px;
    color: var(--hpb-ink);
    background: #fff;
    border: 1px solid #dfe3ea; border-radius: 999px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.hpb-filter button:hover { border-color: var(--hpb-red); color: var(--hpb-red); }
.hpb-filter button.is-active { color: #fff; background: linear-gradient(135deg, var(--hpb-red), var(--hpb-red-dark)); border-color: transparent; box-shadow: 0 8px 18px rgba(218, 52, 56, .3); }
.project-item.is-filtered-out { display: none !important; }

/* ---------- Dark mode toggle ---------- */
.hpb-theme-toggle {
    position: fixed; left: 20px; bottom: 20px; z-index: 1001;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--hpb-ink);
    background: #fff;
    border: 1px solid #eceef2; border-radius: 50%;
    box-shadow: 0 8px 20px rgba(31, 36, 48, .18);
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}
.hpb-theme-toggle:hover { transform: scale(1.08); }

/* ---------- Dark mode (opt-in, saved in localStorage) ----------
   Implemented as a colour inversion of the page with media inverted back, so
   legacy pages with hard-coded colours stay readable without per-rule overrides. */
html[data-theme="dark"] { background: #fff; filter: invert(.92) hue-rotate(180deg); }
html[data-theme="dark"] img,
html[data-theme="dark"] video,
html[data-theme="dark"] iframe,
html[data-theme="dark"] .breadcrumb-area,
html[data-theme="dark"] .hpb-hero,
html[data-theme="dark"] .fun-factor-area,
html[data-theme="dark"] .feedback_text,
html[data-theme="dark"] .hpb-marquee,
html[data-theme="dark"] .footerlinewrap,
html[data-theme="dark"] .header-top,
html[data-theme="dark"] .hpb-btn--primary,
html[data-theme="dark"] #top-btn,
html[data-theme="dark"] .tel_mobile {
    filter: invert(1) hue-rotate(180deg);
}
html[data-theme="dark"] .menu { background: rgba(255, 255, 255, .84) !important; }

@media (prefers-reduced-motion: reduce) {
    .hpb-hero__scroll span { animation: none; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Hero entrance: hidden until Motion animates it in (class set inline in Index.cshtml, removed if Motion is unavailable) */
html.js-hero .hpb-hero .container > * { opacity: 0; }

html.js-hero .hpb-hero .container > * { animation: hpb-hero-failsafe 0s 4s forwards; }
@keyframes hpb-hero-failsafe { to { opacity: 1; } }

/* ---------- News detail ---------- */
.news-article { max-width: 1140px; }
.news-article .border-right { border-right: 0 !important; padding-right: 36px; }
.news-article .content { font-size: 17px; line-height: 1.85; color: #2b3140; }
.news-article .content h1.title-news { font-size: 34px; line-height: 1.3; font-weight: 800; color: var(--hpb-ink); margin: 0 0 6px; }
.news-article .content .time-news { font-size: 12px; font-weight: 600; letter-spacing: .05em; color: var(--hpb-red); padding: 8px 0 22px; border-bottom: 1px solid #eceef2; margin-bottom: 26px; }
.news-article .content img { display: block; margin: 22px auto; border-radius: 12px; box-shadow: var(--hpb-shadow); }
.news-article .content p { margin-bottom: 1.1em; }
.news-article .content a { color: var(--hpb-red); }
.news-article .tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eceef2; gap: 6px; }
.news-article .el-tag { border-radius: 999px; padding: 0 14px; text-decoration: none; transition: background .2s; }
.news-article .el-tag.el-tag--info { background: var(--hpb-red); border-color: var(--hpb-red); }
.news-article .el-tag.el-tag--info:hover { background: var(--hpb-red-dark); }
.news-article .widget.latest-reviews > h3 { font-size: 20px; font-weight: 700; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--hpb-red); }
.news-article .widget.latest-reviews > h3 a { color: var(--hpb-ink); text-decoration: none; }
.news-article ul.posts-list li, .news-article ul.posts-list li:first-child { border: 0; background: #fff; border-radius: 12px; box-shadow: var(--hpb-shadow); padding: 10px; margin-bottom: 14px; align-items: center; transition: transform .2s, box-shadow .2s; }
.news-article ul.posts-list li:hover { transform: translateX(4px); box-shadow: var(--hpb-shadow-hover); }
.news-article ul.posts-list li a.image-link { width: 92px; flex: 0 0 92px; }
.news-article ul.posts-list li a.image-link img { width: 92px; height: 70px; object-fit: cover; border-radius: 8px; }
.news-article ul.posts-list li div { flex: 1; width: auto; }
.news-article ul.posts-list li div a { font-weight: 600; line-height: 1.4; text-decoration: none; display: block; }
.news-article ul.posts-list li div a:hover { color: var(--hpb-red); }
@media (max-width: 767px) { .news-article .border-right { padding-right: 15px; } .news-article .content h1.title-news { font-size: 26px; } }
.news-article ul.posts-list li div a { width: auto; }
.news-article ul.posts-list li a.image-link { background: linear-gradient(135deg, #f3f4f7, #e4e7ed); border-radius: 8px; height: 70px; overflow: hidden; }
.news-article ul.posts-list li div { padding-left: 14px; }

/* News list grid: even gutters + equal-height cards (overrides float/first-child padding in StyleS.css) */
.posts-grid.row { display: flex; flex-wrap: wrap; margin-left: -12px !important; margin-right: -12px !important; }
.posts-grid .column.one-third.col-md-4,
.posts-grid .column.one-third.col-md-4:first-child,
.posts-grid .column.one-third.col-md-4:last-child { padding: 0 12px; display: flex; }
.posts-grid .post { width: 100%; display: flex; flex-direction: column; }
.posts-grid .post .image-link { background: linear-gradient(135deg, #f3f4f7, #e4e7ed); }
.posts-grid .post .image-link img { height: 201px; display: block; color: transparent; }
.posts-grid .post .excerpt { margin-top: auto; }
@media (max-width: 767px) { .posts-grid .column.one-third.col-md-4 { flex: 0 0 100%; max-width: 100%; } }
.posts-grid .column.one-third.col-md-4 { padding-bottom: 24px; }
.posts-grid .post { margin-bottom: 0; }

/* About us: company-info table has a tall photo in a rowspan cell that stretches one row; keep it compact */
#kaisya_gaiyou td[rowspan] { vertical-align: top; }
#kaisya_gaiyou td[rowspan] img { width: 100%; height: auto; max-height: 240px; object-fit: cover; border-radius: 12px; }
#kaisya_gaiyou td { vertical-align: top; padding: 4px 8px 4px 0; line-height: 1.7; }
#kaisya_gaiyou iframe { max-width: 100%; border: 0; border-radius: 12px; margin-top: 10px; }
