/* Home page "Chemical Compliance Software & Portal Solutions" cards (resources/views/homepage.blade.php) */
.hp-offer { margin-top: 56px; margin-bottom: 24px; }
.hp-offer-head { max-width: 760px; margin-bottom: 28px; }
.hp-offer-head h2 { font-size: 1.9rem; font-weight: 600; color: #0b2a4a; margin-bottom: 8px; text-decoration: none; }
.hp-offer-head p { color: #5b6573; font-size: 1.02rem; line-height: 1.6; margin: 0; }

.hp-offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hp-offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3e9f1;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hp-offer-card:hover,
.hp-offer-card:focus-within { transform: translateY(-3px); border-color: #cfdbe9; box-shadow: 0 12px 28px rgba(11, 42, 74, .12); }

.hp-offer-img { aspect-ratio: 16 / 10; background: #0d1b2e; overflow: hidden; }
.hp-offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hp-offer-card:hover .hp-offer-img img { transform: scale(1.04); }

.hp-offer-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 20px 20px; }
.hp-offer-body h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 8px; }
.hp-offer-link { color: #0b2a4a; text-decoration: none; }
/* the whole card is the link */
.hp-offer-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hp-offer-link:focus-visible { outline: none; }
.hp-offer-card:focus-within { outline: 2px solid #0070ad; outline-offset: 2px; }
.hp-offer-body p { color: #5b6573; font-size: .95rem; line-height: 1.6; margin: 0 0 16px; flex: 1 1 auto; }
.hp-offer-cta { display: inline-flex; align-items: center; gap: 6px; color: #0070ad; font-size: .92rem; font-weight: 500; }
.hp-offer-cta i { transition: transform .2s ease; }
.hp-offer-card:hover .hp-offer-cta i { transform: translateX(4px); }

@media (max-width: 991.98px) {
    .hp-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .hp-offer { margin-top: 36px; }
    .hp-offer-head { text-align: center; }
    .hp-offer-head h2 { font-size: 1.5rem; }
    .hp-offer-grid { grid-template-columns: 1fr; gap: 14px; }
    /* phones: compact horizontal cards */
    .hp-offer-card { flex-direction: row; }
    .hp-offer-img { flex: 0 0 104px; aspect-ratio: auto; }
    .hp-offer-body { padding: 14px 16px; }
    .hp-offer-body p { font-size: .9rem; margin-bottom: 8px; }
}

/* ===================== Shared home-page pieces ===================== */
.hp-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #0070ad; }
.hp-h2 { font-size: 1.9rem; font-weight: 600; line-height: 1.25; color: #0b2a4a; margin: 0 0 12px; text-decoration: none !important; }
.hp-h3 { font-size: 1.25rem; font-weight: 600; color: #0b2a4a; margin: 0; text-decoration: none !important; }
.hp-lead { color: #4a5563; font-size: 1.02rem; line-height: 1.7; margin: 0 0 18px; }
.hp-section-head { margin-bottom: 24px; }
.hp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 6px; font-size: .95rem; font-weight: 500; text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.hp-btn i { transition: transform .15s ease; }
.hp-btn:hover i { transform: translateX(3px); }
.hp-btn-primary { background: #142D41; color: #fff; border: 1px solid #142D41; }
.hp-btn-primary:hover { background: #0b2a4a; color: #fff; box-shadow: 0 4px 14px rgba(20, 45, 65, .25); }
.hp-btn-outline { background: #fff; color: #142D41; border: 1px solid #c9d4e2; }
.hp-btn-outline:hover { border-color: #142D41; color: #142D41; }
.hp-btn-light { background: #fff; color: #0b2a4a; border: 1px solid #fff; }
.hp-btn-light:hover { background: #eaf3fa; color: #0b2a4a; }
.hp-checks { list-style: none; margin: 0 0 24px; padding: 0; }
.hp-checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: #2b3442; line-height: 1.5; }
.hp-checks li::before {
    content: "\F26E";   /* bootstrap-icons check-lg */
    font-family: "bootstrap-icons";
    position: absolute; left: 0; top: 1px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #e8f2f9; color: #0070ad; font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.hp-checks-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.hp-more { display: inline-flex; align-items: center; gap: 6px; color: #0070ad; font-size: .9rem; font-weight: 500; }
.hp-more i { transition: transform .2s ease; }

/* ===================== Text + media (account benefits, how-to video, why us) ===================== */
.hp-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-top: 72px; margin-bottom: 24px; }
.hp-split-reverse .hp-split-text { order: 2; }
.hp-split-reverse .hp-split-media { order: 1; }
.hp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0d1b2e; box-shadow: 0 18px 40px rgba(11, 42, 74, .18); }
.hp-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0d1b2e; }
.hp-why-img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 40px rgba(11, 42, 74, .15); }

/* ===================== Coverage (global reach + services) ===================== */
.hp-cover { margin-top: 80px; margin-bottom: 24px; }
.hp-cover-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.hp-reach { position: relative; border-radius: 12px; overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; background: #0b2a4a; }
.hp-reach-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hp-reach::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 42, 74, .1) 0%, rgba(11, 42, 74, .92) 70%); }
.hp-reach-body { position: relative; z-index: 1; padding: 32px; color: #fff; }
.hp-reach-body h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; color: #fff; }
.hp-reach-body p { color: #dbe6f2; line-height: 1.7; margin-bottom: 20px; max-width: 560px; }
.hp-services { display: grid; gap: 16px; align-content: stretch; }
.hp-service {
    position: relative; display: flex; gap: 16px; align-items: flex-start;
    padding: 24px; border: 1px solid #e3e9f1; border-radius: 12px; background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hp-service:hover, .hp-service:focus-within { border-color: #cfdbe9; box-shadow: 0 12px 28px rgba(11, 42, 74, .1); transform: translateY(-2px); }
.hp-service-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 10px; background: #f0f6fb; display: inline-flex; align-items: center; justify-content: center; }
.hp-service h3 { font-size: 1.1rem; font-weight: 600; margin: 2px 0 6px; }
.hp-service-link { color: #0b2a4a; text-decoration: none; }
.hp-service-link::after { content: ""; position: absolute; inset: 0; }
.hp-service p { color: #5b6573; font-size: .95rem; line-height: 1.6; margin: 0 0 10px; }
.hp-service:hover .hp-more i { transform: translateX(4px); }

/* ===================== Stats strip (counter script unchanged) ===================== */
.counter-box { border: 1px solid #e3e9f1 !important; border-radius: 12px; box-shadow: none !important; background: #f7f9fc; margin-top: 56px !important; }
.counter-box .row { padding: 12px 8px !important; }
.counter-box h4.counter { text-decoration: none !important; color: #0070ad !important; font-size: 2rem !important; margin-bottom: 4px; }
.counter-box h4.counter + div { color: #4a5563; font-size: .9rem; line-height: 1.4; }

/* ===================== Reports + latest news ===================== */
.hp-latest { margin-top: 72px; margin-bottom: 24px; }
.hp-latest-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.hp-latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #e3e9f1; }
.hp-viewall { font-size: .9rem; font-weight: 500; color: #0070ad; text-decoration: none; white-space: nowrap; }
.hp-viewall:hover { text-decoration: underline; }
.hp-report { position: relative; border: 1px solid #e3e9f1; border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.hp-report:hover, .hp-report:focus-within { box-shadow: 0 12px 28px rgba(11, 42, 74, .1); transform: translateY(-2px); }
.hp-report-img { aspect-ratio: 4 / 3; background: #eef2f7; overflow: hidden; }
.hp-report-img img { width: 100%; height: 100%; object-fit: cover; }
.hp-report-body { padding: 20px 22px 22px; }
.hp-tag { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: #e8f2f9; color: #0070ad; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hp-report-body h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.hp-report-link { color: #0b2a4a; text-decoration: none; }
.hp-report-link::after { content: ""; position: absolute; inset: 0; }
.hp-report-body p { color: #5b6573; font-size: .93rem; line-height: 1.6; margin: 0 0 12px; }
.hp-report:hover .hp-more i { transform: translateX(4px); }

.hp-news-search { position: relative; margin-bottom: 8px; }
.hp-news-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a96a6; }
.hp-news-search .search-input { height: 44px; padding-left: 40px; border: 1px solid #d5dde8; border-radius: 8px; background: #f7f9fc; font-size: .95rem; font-style: normal; box-shadow: none; }
.hp-news-search .search-input:focus { border-color: #0070ad; background: #fff; box-shadow: 0 0 0 3px rgba(0, 112, 173, .12); }
.hp-news { position: relative; padding: 16px 12px; margin: 0 -12px; border-bottom: 1px solid #eef2f7; border-radius: 8px; transition: background-color .15s ease; }
.hp-news:hover { background: #f7f9fc; }
.hp-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .8rem; color: #6b7684; }
.hp-news-country { padding: 2px 10px; border-radius: 999px; background: #e8f2f9; color: #0070ad; font-weight: 600; }
.hp-news h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.45; margin: 0 0 4px; }
.hp-news-link { color: #0b2a4a; text-decoration: none; }
.hp-news-link::after { content: ""; position: absolute; inset: 0; }
.hp-news:hover .hp-news-link { color: #0070ad; }
.hp-news p { color: #5b6573; font-size: .93rem; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-news-list #newsPagination { margin-top: 16px; }

/* ===================== FAQ ===================== */
.hp-faq { margin-top: 80px; margin-bottom: 64px; background: transparent !important; box-shadow: none !important; padding-top: 0 !important; padding-bottom: 0 !important; border-radius: 0 !important; }
.hp-faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.hp-faq-intro { position: sticky; top: 150px; }
.hp-faq-list { border-top: 1px solid #e3e9f1; }
.home-faq-section.hp-faq .faq-item { border-bottom: 1px solid #e3e9f1; padding: 0; }
.home-faq-section.hp-faq .faq-question {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
    padding: 18px 4px; border: 0; background: transparent; text-align: left;
    font-size: 1.02rem; font-weight: 500; color: #0b2a4a; cursor: pointer;
}
.home-faq-section.hp-faq .faq-question::after { content: none; }
.home-faq-section.hp-faq .faq-question:hover { color: #0070ad; }
.home-faq-section.hp-faq .faq-question:focus-visible { outline: 2px solid #0070ad; outline-offset: 2px; border-radius: 4px; }
.hp-faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #f0f4f9; color: #0b2a4a; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.faq-item.active .hp-faq-icon { transform: rotate(45deg); background: #0070ad; color: #fff; }
.home-faq-section.hp-faq .faq-answer { margin: 0; padding: 0 44px 18px 4px; color: #4a5563; line-height: 1.7; }

/* ===================== Responsive ===================== */
@media (max-width: 991.98px) {
    .hp-split, .hp-cover-grid, .hp-latest-grid, .hp-faq-grid { grid-template-columns: 1fr; gap: 28px; }
    .hp-split-reverse .hp-split-text, .hp-split-reverse .hp-split-media { order: initial; }
    .hp-split { margin-top: 56px; }
    .hp-faq-intro { position: static; }
}
@media (max-width: 575.98px) {
    .hp-h2 { font-size: 1.5rem; }
    .hp-checks-2 { grid-template-columns: 1fr; }
    .hp-reach { min-height: 320px; }
    .hp-reach-body { padding: 22px; }
    .hp-service { padding: 18px; }
}

/* Reports + Latest News: both columns always end at the same height */
.hp-latest-grid { align-items: stretch; }
.hp-latest-grid > div { display: flex; flex-direction: column; min-width: 0; }
.hp-report { flex: 1 1 auto; display: flex; flex-direction: column; }
.hp-report-img { aspect-ratio: 16 / 9; flex-shrink: 0; }
.hp-report-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.hp-report-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hp-report-body .hp-more { margin-top: auto; }
.hp-news-list { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; }
.hp-news-list > .hp-news:last-of-type { border-bottom: 0; }
@media (max-width: 991.98px) {
    .hp-news-list { justify-content: flex-start; }
}
.hp-report-body .hp-tag { align-self: flex-start; }
