/* =========================================================
   INNER-PAGES.CSS — Shared inner-page design system
   Loaded on every page except the front page.
   Source: Figma inner page frames (Our Team 1531:3320, About 1472:1966,
   Contact 1736:754, Resources 1821:493, CMC 1531:2080, ...).
   The home page keeps its own split-heading / hero design.
   ========================================================= */

/* ── Full-bleed inner hero (Figma: 1920×832, content bottom-aligned) ── */
.hero-section:not(.hero-section--compact) {
    min-height: 832px;
    padding-top: 200px;
    padding-bottom: 40px;
    align-items: flex-end;
}
.hero-section:not(.hero-section--compact) .hero-content { max-width: none; gap: 16px; }
.hero-section:not(.hero-section--compact) .hero-content-main { gap: 16px; }
.hero-section:not(.hero-section--compact) .hero-content .h1 {
    font-size: 44px;
    line-height: 56px;
    font-weight: var(--font-weight-medium);
}
.hero-section .hero-content-main .hero-desc > p {
    max-width: none;
    font-size: var(--font-size-p3);
    line-height: 28px;
}
.hero-desc p + p { margin-top: 10px; }
.hero-desc .fw-medium { font-weight: var(--font-weight-medium); }
.hero-desc strong { font-weight: var(--font-weight-bold); }
.hero-section:not(.hero-section--compact)::after {
    background-image: url("../images/about-design/hero-top.png");
    background-size: 100% 150px;
    background-position: top;
}
.hero-section:not(.hero-section--compact)::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: min(100%, 500px);
    background: url("../images/about-design/hero-bottom.png") center / 100% 100%;
    transform: rotate(180deg);
    z-index: 1;
    pointer-events: none;
}
.hero-section .hero-slide-img { object-position: center; }
.hero-section:not(.hero-section--compact) .hero-actions { margin-top: 4px; }

/* Centered section headings now live in common.css (shared with the home page). */

/* ── Team grid (About "people behind" + Our Team directory) ── */
.team-section .team-grid .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 30px;
}
.team-section .team-grid .swiper-slide { width: 100%; }
.team-section .team-grid .member-photo-wrap { aspect-ratio: 327 / 394; height: auto; }

/* ── Service area image cards ── */
.services-section .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.services-section .service-card { min-height: 0; aspect-ratio: 684 / 360; }

/* ── Vision ── */
.vision-section .vision-banner { background: var(--color-offwhite); color: var(--color-black); }
.vision-section .vision-visual { height: auto; aspect-ratio: 803 / 400; }
.vision-section .vision-img { object-position: center; }

/* ── Pre-footer (Figma: H2 50/64, P2 21/28, 1221px text column) ── */
.pre-footer-section .pre-footer-content { max-width: 1221px; }
.pre-footer-section .pre-footer-content .h2 { line-height: 64px; font-weight: var(--font-weight-medium); }
.pre-footer-section .pre-footer-desc p + p { margin-top: 10px; }
.pre-footer-section .pre-footer-desc strong { font-weight: var(--font-weight-bold); }
.pre-footer-section .pre-footer-desc ul {
    display: inline-block;
    list-style: disc;
    padding-left: 20px;
    text-align: left;
    font-size: var(--font-size-p3);
    line-height: 1.5;
}

@media (max-width: 1199px) {
    .hero-section:not(.hero-section--compact) { min-height: 680px; }
    .hero-section:not(.hero-section--compact) .hero-content .h1 { font-size: 38px; line-height: 1.3; }
    .pre-footer-section .pre-footer-content .h2 { line-height: 1.25; }
}
@media (max-width: 991px) {
    .hero-section:not(.hero-section--compact) { min-height: 560px; padding-top: 160px; }
    .hero-section:not(.hero-section--compact) .hero-content .h1 { font-size: 32px; }
    .team-section .team-grid .swiper-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 767px) {
    .hero-section:not(.hero-section--compact) { min-height: 480px; padding-top: 130px; padding-bottom: 30px; }
    .hero-section:not(.hero-section--compact) .hero-content .h1 { font-size: 28px; }
    .hero-section .hero-content-main .hero-desc > p { font-size: 16px; line-height: 1.6; }
}
@media (max-width: 600px) {
    .team-section .team-grid .swiper-wrapper,
    .services-section .services-grid { grid-template-columns: 1fr; }
    .services-section .service-card { min-height: 185px; }
}

/* Figma: image/content split sections draw a hairline between the heading block and content. */
.site-main :is(.integration-section, .explore-section, .service-capabilities-section, .media-cards-section) .title-split {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(3, 8, 50, 0.1);
}

/* FAQ (Figma CMC 1531:3265): closed rows are indented to align with the open card text. */
.faq-section .faq-item:not(.is-open) { padding: 0 30px 0 31px; }

/* ── Light-header pages (News, articles, webinars): offset for the 126px absolute header ── */
.has-light-header .site-main { padding-top: 126px; }

/* ── Breadcrumb trail (ngt_biopharma_breadcrumb) ── */
.page-breadcrumb { padding: 15px 0; border-bottom: 1px solid rgba(3, 8, 50, 0.2); }
.page-breadcrumb ol { list-style: none; margin: 0; padding: 0; gap: 8px 14px; }
.page-breadcrumb li { gap: 14px; font-size: var(--font-size-p3); line-height: 28px; color: var(--color-black); }
.page-breadcrumb li + li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(-45deg);
}
.page-breadcrumb a { color: var(--color-black); }
.page-breadcrumb a:hover { color: var(--color-primary); }
.page-breadcrumb [aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 991px) { .has-light-header .site-main { padding-top: 110px; } }
@media (max-width: 767px) {
    .has-light-header .site-main { padding-top: 96px; }
    .page-breadcrumb li { font-size: 15px; line-height: 24px; }
}
