/* ===========================================================================
   Package detail page -- approval-deadline design (CPP / FPC compliance packages).
   Loaded by resources/views/v2/packages/detail.blade.php only when
   $package_approval['enabled'] is true, on top of package-detail.css, so the
   page-wide rules below never reach any other package or page.
   Fonts are declared as plain `font-family: Inter`, exactly as package-detail.css
   does, so new and stock elements always resolve to the same face.
   State (registration | inprogress | soon | available) is rendered server-side;
   the only state hook in CSS is data-pkg-state on the deadline bar.
   =========================================================================== */
.pkgDeadlineBar {
    /* Full-bleed strip, opaque because it is position:sticky. The visible card is
       .pkgDeadlineBar__inner, inset to the content container. */
    background: #F5F8FD;
    padding: 12px 0;
    font-family: Inter;
}

/* Docks directly under the sticky header and stays there while scrolling.
   --pkgBarTop is the header's measured height; the class is only added once the
   JS has measured, so if scripting fails the bar stays in normal flow rather than
   pinning to y=0 and hiding behind the header. z-index sits just under the header,
   matching the tabs bar, which docks below this one. */
html.pkg-hasstickybar .pkgDeadlineBar {
    position: sticky;
    top: var(--pkgBarTop, 0px);
    z-index: var(--pkgTabsZ, 1010);
}
.pkgDeadlineBar__inner {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-left-width: 4px;          /* accent stripe -- colour set per state */
    border-radius: 8px;
}
.pkgDeadlineBar__icon {
    flex: 0 0 auto; width: 16px; height: 16px;
    /* Box and background-size both 16px so the SVG scales cleanly rather than
       being cropped or letterboxed inside a larger box. */
    background: center / 16px 16px no-repeat;   /* glyph set per state */
}
.pkgDeadlineBar p {
    margin: 0; font-size: 14px; font-weight: 400; line-height: 20px; color: #5D667B;
    text-align: center;
}

/* Once the line wraps, a vertically centred icon reads as floating, so pin it
   back to the first line on narrow screens. */
@media (max-width: 767.98px) {
    .pkgDeadlineBar__inner { align-items: flex-start; }
    .pkgDeadlineBar__icon { margin-top: 2px; }
}
.pkgDeadlineBar strong { font-weight: 600; color: #26244A; }

/* Inline text CTA inside the bar -- inherits the bar's colour for the state. */
.pkgBarCta {
    color: inherit; font-weight: 600; text-decoration: underline;
    text-underline-offset: 3px; white-space: nowrap;
}
.pkgBarCta:hover { color: inherit; text-decoration: none; }
.pkgValidChip {
    display: inline-flex; align-items: center; gap: 8px;
    /* #FFFBEB vanished against the page background (#F5F8FD) and #FDF2D6 was too
       heavy -- this sits between the two. */
    background: #FEF7E1; border: 1px solid #F7DC9D; border-radius: 999px;
    padding: 8px 14px; margin: 0 0 16px;
    font-family: Inter;
    font-size: 13px; font-weight: 600; line-height: 18px; color: #8A6519;
}
.pkgValidChip svg { flex: 0 0 auto; }

/* Section tabs: the active pill is filled rather than outlined. Stock is
   `section.overview-section .nav-tabs .nav-link.active { color:#7162EA;
   border-color:#7162EA }` -- same selector weight, so this just has to come later.
   The :hover rule is included because the stock hover sets border-color only and
   would otherwise leave a filled pill looking half-reverted on hover. */
section.overview-section .nav-tabs .nav-link.active,
section.overview-section .nav-tabs .nav-link.active:hover {
    /* #3A58EF -- the same blue as the table's Watch Now / Certificate buttons,
       not the stock #7162EA purple. */
    background: #3A58EF;
    border-color: #3A58EF;
    color: #FFF;
    font-weight: 500;
}

/* Stock hovers an inactive tab to a purple border, which clashed with the blue
   active pill. */
section.overview-section .nav-tabs .nav-link:hover { border-color: #3A58EF; }

/* ===========================================================================
   TOP BANNER COLOUR SYSTEM -- one component, semantic colour per state.
   Scope is the bar under the header ONLY; page branding, CTAs and chips stay on
   the normal palette. Each state sets the card fill, its border, the 4px left
   accent stripe, the text colours and the status glyph.
     1 Registration : amber  -- deadline to act on before starting
     2 In Progress  : blue   -- active progress, informational
     3 Coming Soon  : red    -- approvals expired, no more credit
     4 New Courses  : green  -- available / positive / actionable
   =========================================================================== */
.pkgDeadlineBar[data-pkg-state="registration"] .pkgDeadlineBar__inner {
    background: #FFF7E6;
    border-color: #F6C453;
    border-left-color: #D98A0B;
}
.pkgDeadlineBar[data-pkg-state="registration"] .pkgDeadlineBar__icon { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10' fill='%23D98A0B'/><path d='M10 4.6a1.05 1.05 0 0 1 1.05 1.05v4.9a1.05 1.05 0 0 1-2.1 0v-4.9A1.05 1.05 0 0 1 10 4.6Z' fill='white'/><circle cx='10' cy='14.4' r='1.2' fill='white'/></svg>"); }
.pkgDeadlineBar[data-pkg-state="registration"] p { color: #A86400; }
.pkgDeadlineBar[data-pkg-state="registration"] strong { color: #7D4A00; }
.pkgDeadlineBar[data-pkg-state="inprogress"] .pkgDeadlineBar__inner {
    background: #EEF4FF;
    border-color: #AFC6FF;
    border-left-color: #315EDB;
}
.pkgDeadlineBar[data-pkg-state="inprogress"] .pkgDeadlineBar__icon { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10' fill='%23315EDB'/><circle cx='10' cy='5.6' r='1.2' fill='white'/><path d='M10 8.3a1.05 1.05 0 0 1 1.05 1.05v5.1a1.05 1.05 0 0 1-2.1 0v-5.1A1.05 1.05 0 0 1 10 8.3Z' fill='white'/></svg>"); }
.pkgDeadlineBar[data-pkg-state="inprogress"] p { color: #315EDB; }
.pkgDeadlineBar[data-pkg-state="inprogress"] strong { color: #1F3F9E; }
.pkgDeadlineBar[data-pkg-state="soon"] .pkgDeadlineBar__inner {
    background: #FFF1F2;
    border-color: #FDA4AF;
    border-left-color: #E11D48;
}
.pkgDeadlineBar[data-pkg-state="soon"] .pkgDeadlineBar__icon { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10' fill='%23E11D48'/><path d='M10 4.6a1.05 1.05 0 0 1 1.05 1.05v4.9a1.05 1.05 0 0 1-2.1 0v-4.9A1.05 1.05 0 0 1 10 4.6Z' fill='white'/><circle cx='10' cy='14.4' r='1.2' fill='white'/></svg>"); }
.pkgDeadlineBar[data-pkg-state="soon"] p { color: #BE123C; }
.pkgDeadlineBar[data-pkg-state="soon"] strong { color: #8F0D2D; }
.pkgDeadlineBar[data-pkg-state="available"] .pkgDeadlineBar__inner {
    background: #F0FDF4;
    border-color: #86EFAC;
    border-left-color: #16A34A;
}
.pkgDeadlineBar[data-pkg-state="available"] .pkgDeadlineBar__icon { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10' fill='%2316A34A'/><path d='m5.6 10.3 2.9 2.9 5.9-6.2' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.pkgDeadlineBar[data-pkg-state="available"] p { color: #15803D; }
.pkgDeadlineBar[data-pkg-state="available"] strong { color: #166534; }
.pkgCrumb {
    font-family: Inter;
    font-size: 14px; font-weight: 400; line-height: 20px;
    color: #5D667B; margin: 0 0 14px;
}
.pkgCrumb a { color: #5D667B; text-decoration: none; }
.pkgCrumb a:hover { color: #3A58EF; text-decoration: underline; }
.pkgCrumb span { margin: 0 8px; color: #98A2B3; }

/* Title -> stats: stock rule is only 12px, too tight at 42px display size. */
.q_main_left h1 { margin-bottom: 20px; }

/* Stats -> pill: stock .last-update has no bottom margin, which is what left the
   pill tucked under the star rating. */
.q_main_left .last-update { margin-bottom: 28px; }

/* Pill -> CTA. The 28px lives on the pill; the stock .btngroup_header
   padding-top:35px is removed so the gap is not applied twice. */
.pkgValidChip { margin: 0 0 28px; }
.q_main_left .btngroup_header { padding-top: 0; }
.q_main_left .btngroup_header a.Fill_Btn,
.q_main_left .btngroup_header button.Fill_Btn {
    min-width: 250px;
    margin-left: 0;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Responsive: stats may wrap, but the CTAs stay left aligned rather than being
   centred and stretched to 100% by the stock mobile rules. The 250px box is kept,
   capped so it cannot overflow a narrow column. */
@media (max-width: 991.98px) {
    .q_main_left .btngroup_header { justify-content: flex-start; }
    .q_main_left .btngroup_header a.Fill_Btn,
    .q_main_left .btngroup_header button.Fill_Btn {
        width: auto;
        min-width: 250px;
        max-width: 100%;
        margin: 0;
    }
}

/* ===========================================================================
   "How CPP credit works in this package" -- 4-step journey.
   The dashed rail sits behind the cards, so it shows only in the gaps and the
   row reads as one connected sequence. Reuses the existing palette only:
   purple #7162EA, primary blue #3A58EF, navy #26244A, greys, borders #EAECF0.
   =========================================================================== */
.cpeFlow {
    background: linear-gradient(180deg, #F4F3FF 0%, #EEF2FD 100%);
    padding: 64px 0;
    font-family: Inter;
}
.cpeFlow__head { max-width: 680px; margin: 0 0 40px; }
.cpeFlow h2 {
    font-size: 34px; font-weight: 700; line-height: 1.2; letter-spacing: -.6px;
    color: #26244A; margin: 0 0 12px;
}
.cpeFlow__lede { font-size: 16px; font-weight: 400; line-height: 24px; color: #5D667B; margin: 0; }
.cpeFlow__steps {
    position: relative; list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.cpeFlow__steps::before {
    content: ""; position: absolute; z-index: 0; top: 48px; left: 0; right: 0; height: 2px;
    background-image: linear-gradient(90deg, #C7C2F5 50%, transparent 50%);
    background-size: 10px 2px; background-repeat: repeat-x;
}
.cpeFlow__step {
    position: relative; z-index: 1;
    background: #fff; border: 1px solid #EAECF0; border-radius: 14px;
    padding: 24px 22px 26px;
    transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
}
.cpeFlow__step:hover {
    transform: translateY(-3px); border-color: #C7C2F5;
    box-shadow: 0 12px 24px rgba(38, 36, 74, .08);
}

/* Icon and number share one row, so the dashed rail passes cleanly through the
   centre of every icon tile instead of cutting across the number badges. */
.cpeFlow__top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.cpeFlow__marker {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    width: 28px; height: 28px; border-radius: 50%;
    background: #3A58EF; color: #fff;
    font-size: 13px; font-weight: 700; line-height: 1;
}
.cpeFlow__icon {
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    width: 48px; height: 48px; border-radius: 12px;
    background: #F4F3FF; color: #7162EA;
}
.cpeFlow__stepTitle {
    font-size: 17px; font-weight: 600; line-height: 24px; color: #26244A; margin: 0 0 8px;
}
.cpeFlow__stepText {
    font-size: 14px; font-weight: 400; line-height: 21px; color: #5D667B; margin: 0;
    min-height: 42px; /* two lines -- keeps the card bottoms level */
}
.cpeFlow__note {
    display: flex; align-items: flex-start; gap: 10px; margin: 32px 0 0;
    font-size: 14px; font-weight: 400; line-height: 21px; color: #5D667B;
}
.cpeFlow__note svg { flex: 0 0 auto; margin-top: 3px; color: #7162EA; }
.cpeFlow__note strong { font-weight: 600; color: #26244A; }
@media (max-width: 1199.98px) {
    .cpeFlow__steps { gap: 16px; }
    .cpeFlow__step { padding: 22px 18px 24px; }
    .cpeFlow__steps::before { top: 46px; }
}

/* Below 4-across the rail no longer describes the reading order, so it is removed. */
@media (max-width: 991.98px) {
    .cpeFlow { padding: 48px 0; }
    .cpeFlow__steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cpeFlow__steps::before { display: none; }
    .cpeFlow h2 { font-size: 28px; }
    .cpeFlow__head { margin-bottom: 32px; }
}
@media (max-width: 575.98px) {
    .cpeFlow { padding: 40px 0; }
    .cpeFlow__steps { grid-template-columns: 1fr; }
    .cpeFlow h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .cpeFlow__step { transition: none; }
    .cpeFlow__step:hover { transform: none; }
}

/* NOTE specificity: package-detail.css has `#courses a.roundBtn { display:inline-block }`
   at (1,1,1), which beat a plain `.statusInprog` (0,1,0) and left BOTH the stock status
   and the Watch Now button visible in every state. !important settles it for good. */

/* ===========================================================================
   Courses table: tighter heading gap + a calmer, card-style table.
   Stock rules box every cell in #EAECF0 and tint the header purple, which reads
   as a grid. Horizontal rules only, muted secondary columns, one rounded card.
   =========================================================================== */

/* 1. Heading -> banner/table gap. Stock .section-title is 40px and .tab-data adds
   12px of top padding on top of it, which left a large void under "Courses". */

/* ===========================================================================
   One horizontal grid for the whole page.
   The header used a near-edge-to-edge container-fluid while every section used
   Bootstrap's .container, whose breakpoint max-widths left ~145px gutters at
   1920px -- so the two edges never lined up. Everything now shares one gutter
   token and one max width:
     - desktop 120px, laptop (<1440) 80px, small laptop (<1200) 48px, tablet 24px, mobile 16px
     - content stops growing at --pageMax and centres on ultra-wide screens.
   Full-bleed strips (top bar, header, deadline bar, section backgrounds) keep
   their full-width backgrounds; only their inner content follows the grid, via
   padding-inline that grows to centre the content once the viewport passes
   --pageMax.
   =========================================================================== */
:root {
    --pageGutter: 120px;
    --pageMax: 1920px;
    /* Inline padding for a full-bleed element whose content must sit on the grid. */
    --pageInset: max(var(--pageGutter), calc((100% - var(--pageMax)) / 2 + var(--pageGutter)));
}
@media (max-width: 1439.98px) {
    :root { --pageGutter: 80px; }
}
@media (max-width: 1199.98px) {
    :root { --pageGutter: 48px; }
}
@media (max-width: 991.98px) {
    :root { --pageGutter: 24px; }
}
@media (max-width: 575.98px) {
    :root { --pageGutter: 16px; }
}

/* Every page section, the hero, tabs bar, deadline bar and footer. */
body .container {
    width: 100%;
    max-width: var(--pageMax);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pageGutter);
    padding-right: var(--pageGutter);
    box-sizing: border-box;
}

/* The header (top utility bar + nav row) deliberately keeps the stock site-wide
   spacing -- near edge-to-edge, full-size logo -- so it matches every other
   MYCPE ONE page. Only the page body below it follows --pageGutter. */

/* ---------------------------------------------------------------------------
   Team Subscription banner (.accounting_firm).
   1. Two photos were stacked: package-detail.css paints the team photo as the
      card's background-image on desktop, and the same photo also ships as an
      <img class="bg_img"> that the stock CSS only intends for mobile (where it
      removes the background). Hide the <img> wherever the background is used.
   2. The <img> was also what stretched the card; with it gone, trim the stock
      74px top/bottom padding and size the background to the card's height so the
      photo is never cropped and never runs under the copy.
   --------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .accounting_firm_inner img.bg_img { display: none; }
    .accounting_firm .accounting_firm_inner {
        padding-top: 56px;
        padding-bottom: 56px;
    }
}
@media (min-width: 1200px) {
    .accounting_firm .accounting_firm_inner { background-size: auto 100%; }
}

/* FAQ: question -> answer gap. Bootstrap stacks the button's 16px bottom padding
   on the body's 16px top padding (~32px), which detached the answer from its
   question. Tighten both only while the item is open, so closed rows keep their
   original height. */
.faqs .accordion-item .accordion-button:not(.collapsed) { padding-bottom: 6px; }
.faqs .accordion-item .accordion-body { padding-top: 0; }
.faqs .accordion-item .accordion-body p:last-child { margin-bottom: 0; }

/* FAQ typography matches the Details section (.details_items p.title / its
   bullet text) instead of the stock 20px/600 question and 18px/28px answer, so
   the two neighbouring sections read as one system. Selectors mirror the stock
   `.faqs .accordion-flush > .accordion-item > .accordion-header .accordion-button`
   chain so they win on specificity, not on source order alone. */
.faqs .accordion-flush > .accordion-item > .accordion-header .accordion-button,
.faqs .accordion-flush > .accordion-item > .accordion-header .accordion-button.collapsed {
    font-family: Inter;
    font-size: 18px;
    font-weight: 600;
    line-height: 130%;
    color: #00001E;
}
.faqs .accordion-flush > .accordion-item .accordion-body,
.faqs .accordion-flush > .accordion-item .accordion-body p {
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #475467;
    text-align: left !important; /* beats the pasted inline text-align: justify */
}

/* Overview -> Courses gap. Stock `.section` pads ~110px on both sides, so the two
   paddings stacked into ~230px of empty band between the Overview card and the
   "Courses" heading. Halve each side; the background change still marks the break. */

/* "Why professionals trust" (certificate slider) -> tabs: the stock 110px
   `.section` bottom padding left a dead band above the tabs bar. */
section.why_professtion.section { padding-bottom: 40px; }
@media (max-width: 767.98px) {
    section.why_professtion.section { padding-bottom: 24px; }
}
section#overview { padding-bottom: 56px; }
section#courses { padding-top: 56px; }
@media (max-width: 767.98px) {
    section#overview { padding-bottom: 32px; }
    section#courses { padding-top: 32px; }
}

/* Same stacked-padding problem further down the page, from package-detail.css:
   1. Courses -> Details: 110px + 110px of `.section` padding.
   2. Inside the Details card: `.details_items-wrap { margin-bottom:50px }` on top
      of `.tab-data`'s own 40px bottom padding left a blank band under "Notes".
   3. Details -> "Need guidance" banner: Details' 110px bottom padding plus the
      banner section's 110px top padding. Both share the #F5F8FD background, so
      the banner section needs no top padding of its own.
   4. Banner -> testimonials: `section.about_us h2 { margin-top:135px }`. */
section#courses { padding-bottom: 56px; }
section#details { padding-top: 56px; padding-bottom: 56px; }
#details .details_items-wrap { margin-bottom: 0; }
section.Latest_CPA_Catalog { padding-top: 0; }

/* With the Team Subscription banner removed, FAQs (stock `pt-0`) now follows the
   "Need guidance" banner (stock `pb-0`) directly. !important is needed to beat
   Bootstrap's !important utility class. */
section#faqs.faqs { padding-top: 56px !important; }
@media (max-width: 767.98px) {
    section#faqs.faqs { padding-top: 32px !important; }
}
section.about_us h2 { margin-top: 72px; }
@media (max-width: 767.98px) {
    section#courses { padding-bottom: 32px; }
    section#details { padding-top: 32px; padding-bottom: 32px; }
    section.about_us h2 { margin-top: 48px; }
}
#courses .section-title { margin-bottom: 16px; }
#courses .tab-data { padding-top: 0; }

/* 2. The card. Radius lives here with overflow hidden so the header corners clip. */
#courses .tab-overview-data {
    background: #fff;
    border: 1px solid #EAECF0;
    border-radius: 12px;
    overflow: hidden;
}
#courses .table-overview {
    border: 0;
    border-radius: 0;
    margin-bottom: 0;
}
#courses .table-overview .table { margin: 0; }

/* Header: lighter than the stock purple, lowercase-weight label treatment. */
#courses .table-overview thead th {
    background: #F9FAFB;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 14px 14px;
    border: 0;
    border-bottom: 1px solid #EAECF0;
}

/* Body: horizontal rules only -- no vertical grid lines. */
#courses .table-overview tbody td {
    font-size: 14px;
    line-height: 20px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #F2F4F7;
    vertical-align: middle;
}
#courses .table-overview tbody tr:last-child td { border-bottom: 0; }
#courses .table-overview tbody tr { transition: background-color .15s ease-out; }
#courses .table-overview tbody tr:hover { background: #FAFAFF; }

/* Column hierarchy: title and credit carry the weight, the rest recede. */
#courses .table-overview tbody td:nth-child(1) { color: #1D2939; font-weight: 500; }

/* Course Title column: the stock width="300" attribute squeezed titles onto two
   lines while the short columns (credits, format) kept spare room. Give the title
   ~38% on desktop -- at 1920px that keeps every title up to ~80 characters on one
   line; only the single ~95-character title wraps. (No nowrap: it forced the column
   out to the longest title's width.) Below 992px the stock auto layout is kept so
   the table doesn't need to scroll sideways on tablets. */
@media (min-width: 992px) {
    #courses .table-overview thead th:nth-child(1),
    #courses .table-overview tbody td:nth-child(1) { width: 38%; }
}
#courses .table-overview tbody td:nth-child(2) { color: #1D2939; font-weight: 700; white-space: nowrap; }

/* Courses with no CPP credit attached. Needs its own weight/colour because the
   rule above sets the whole credit column to 700/#1D2939. */
#courses .table-overview tbody td .notEligible {
    font-style: italic;
    font-weight: 400;
    color: #98A2B3;
}

/* Credit Summary rows, all four states. Stock is 16px with the label at 500;
   this drops both to 14px and makes the credit figure bold so it reads as the
   value against its muted label. */
#summaryContent .summary-data ul li {
    font-size: 14px;
    font-weight: 700;
}
#summaryContent .summary-data ul li span {
    font-size: 14px;
    font-weight: 400;
}
#courses a.roundBtn,
#courses a.roundBtn:hover {
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    /* One width for every status button in every state, so "Certificate",
       "Watch Now" and "Resume" all line up instead of sizing to their text. */
    min-width: 128px;
    text-align: center;
}

/* Status text ("Expired on ...") sits in a <p>, which picks up
   `.tab-overview-data p { font-size:16px; margin-bottom:10px }` from
   package-detail.css. The 16px made it larger than every other cell, and the
   bottom margin pushed it above the centre line of a vertically-centred cell.
   Scoped to cells so the Overview tab's body copy is unaffected. */
#courses .table-overview tbody td p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

/* "Expired on ..." status: same muted italic treatment as "Not Eligible". */
#courses .table-overview tbody td .statusExpired {
    font-style: italic;
    font-weight: 400;
    color: #98A2B3;
}

/* Keep every cell's content on the row's centre line. */
#courses .table-overview tbody td { vertical-align: middle; }
#courses .table-overview tbody td.text-center { text-align: center; }
#courses .table-overview tbody td:nth-child(3),
#courses .table-overview tbody td:nth-child(4) { color: #667085; }
#courses .table-overview tbody td:nth-child(1) a { color: inherit; font-weight: 500; }

/* 3. Collapsed to the first 10 rows until "Show all courses" is clicked. */
#courses .table-overview.is-collapsed tbody tr:nth-child(n+11) { display: none; }
.coursesMore {
    border-top: 1px solid #EAECF0;
    padding: 14px 20px;
    text-align: center;
    background: #fff;
}
.coursesMore__btn {
    background: none; border: 0; padding: 4px 8px; cursor: pointer;
    font-family: Inter;
    font-size: 14px; font-weight: 600; line-height: 20px;
    color: #3A58EF; text-decoration: underline; text-underline-offset: 3px;
}
.coursesMore__btn:hover { color: #26244A; }
.coursesMore__btn:focus-visible { outline: 2px solid #3A58EF; outline-offset: 2px; border-radius: 4px; }
.coursesNotice {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 20px; padding: 20px 24px;
    background: linear-gradient(180deg, #F5F8FF 0%, #EDF2FF 100%);
    border: 1px solid #D7E0FC; border-radius: 14px;
    font-family: Inter;
}
.coursesNotice__icon { flex: 0 0 auto; display: flex; }
.coursesNotice__rule { flex: 0 0 auto; width: 1px; align-self: stretch; background: #CBD7F8; }
.coursesNotice__copy { flex: 1 1 auto; min-width: 0; }
.coursesNotice__title {
    margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 24px; color: #15183B;
}
.coursesNotice__text {
    margin: 0; font-size: 13px; font-weight: 400; line-height: 21px; color: #5D667B;
}

/* Sized to match the table's "Watch Now" button exactly: #courses a.roundBtn is
   14px/500 with line-height 16px, padding 10px 18px, a 1px border and 4px radius,
   so both buttons come out the same height. */
.coursesNotice__btn {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #3A58EF; color: #fff;
    border: 1px solid #3A58EF; border-radius: 4px;
    padding: 10px 18px; text-decoration: none;
    font-size: 14px; font-weight: 500; line-height: 16px; white-space: nowrap;
    transition: background-color .18s ease-out;
}
.coursesNotice__btn:hover { background: #2B45CC; color: #fff; }
.coursesNotice__btn:focus-visible { outline: 2px solid #15183B; outline-offset: 2px; }
@media (max-width: 767.98px) {
    .coursesNotice { flex-wrap: wrap; gap: 14px; padding: 18px; }
    .coursesNotice__rule { display: none; }
    .coursesNotice__copy { flex: 1 1 100%; order: 2; }
    .coursesNotice__btn { order: 3; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .coursesNotice__btn { transition: none; }
}
#courses .tab-data.pkgCourses--soon {
    padding: 0;
    background: transparent;
    border-radius: 0;
}
.comingSoon {
    display: flex; align-items: center; gap: 22px;
    margin-bottom: 20px; padding: 20px 24px;
    background: linear-gradient(180deg, #F7F7FE 0%, #EFF0FC 100%);
    border: 1px solid #DCDAF7; border-radius: 14px;
    font-family: Inter;
    overflow: hidden;
}
.comingSoon__icon {
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: #FFF; border: 1px solid #DCDAF7; color: #7162EA;
}
.comingSoon__copy { flex: 1 1 auto; min-width: 0; }
.comingSoon__pill {
    display: inline-block; margin-bottom: 8px;
    background: #E7E4FB; color: #5925DC; border-radius: 999px;
    padding: 4px 11px; font-size: 12px; font-weight: 600; line-height: 16px;
}
.comingSoon__title {
    margin: 0 0 4px; font-size: 20px; font-weight: 700; line-height: 28px; color: #15183B;
}
.comingSoon__text {
    margin: 0; font-size: 14px; font-weight: 400; line-height: 21px; color: #5D667B;
}
@media (max-width: 575.98px) {
    .comingSoon { gap: 16px; padding: 18px; align-items: flex-start; }
    .comingSoon__icon { width: 48px; height: 48px; }
    .comingSoon__icon svg { width: 24px; height: 24px; }
    .comingSoon__title { font-size: 17px; line-height: 24px; }
}
@media (max-width: 767.98px) {
    #courses .section-title { margin-bottom: 12px; }
    #courses .table-overview thead th,
    #courses .table-overview tbody td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    #courses .table-overview tbody tr { transition: none; }
}

/* ---------------------------------------------------------------------------
   Meta strip (.qualif_grad): reveal as it scrolls into view.
   The hidden state is applied by JS, never in the stylesheet -- if scripting or
   IntersectionObserver is unavailable the strip just renders normally rather
   than staying invisible forever.
   --------------------------------------------------------------------------- */
.qualif_grad.pkgReveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease-out, transform .55s ease-out;
    will-change: opacity, transform;
}
.qualif_grad.pkgReveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------
   First fold: the hero (.q_main_banner) fills whatever viewport height is left
   under the sticky header + deadline bar, so the meta strip (.qualif_grad)
   always starts below the fold at any resolution or zoom level.
   --pkgFoldTop is the hero's measured distance from the top of the page
   (header + bar + anything else above it), set by JS on load/resize/state change.
   svh keeps mobile browser toolbars from pushing the strip into view; vh is the
   fallback. The content is centred so the extra height splits above and below
   instead of piling up as a gap before the strip.
   --------------------------------------------------------------------------- */
section.q_main_banner {
    box-sizing: border-box;
    min-height: calc(100vh - var(--pkgFoldTop, 0px));
    min-height: calc(100svh - var(--pkgFoldTop, 0px));
    display: flex;
    flex-direction: column;
    justify-content: center;
}
section.q_main_banner > .container { width: 100%; }

/* Hero stats: "Last Updated" is a caption for the date below it, but the stock
   label style matched the big stat figures and out-sized the date. Drop it to a
   muted caption so the date reads as the value. */
.q_main_banner .last_part label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #667085;
}

/* The date itself: 16/24 semibold, down from the stock 20px, so it sits level
   with the other stat values. Beats stock `.last-update > div p` (0,1,2). */
.q_main_banner .last_part p {
    margin: 0;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
}

/* The validity window is the one fact in the note people need to act on. */

/* ===================== Sticky section tabs ===================== */

/* The four section tabs sit in the flow until they reach the main header, then ride
   along underneath it. The geometry is driven by two custom properties measured in JS:
     --pkgTabsTop  = height of header.new_header (Bootstrap .sticky-top)
     --pkgTabsBarH = height of the bar itself (20px gap + tabs + 20px gap) */
:root {
    --pkgTabsGap: 10px;
    --pkgTabsTop: 0px;
    --pkgTabsBarH: 0px;
    --pkgTabsZ: 1010;
    --pkgTabsBg: #F5F8FD;
}
.pkgTabs { position: relative; }

/* The 20px above and below the tabs lives on the bar, not on the tab list, so the bar
   is exactly the same height docked or undocked -- that is what keeps the swap silent. */
.pkgTabs .pkgTabs__bar {
    padding: var(--pkgTabsGap) 0;
    background: var(--pkgTabsBg);
    transition: background-color .18s linear, opacity .18s ease, transform .18s ease;
}
section.overview-section.pkgTabs .nav-tabs { margin-bottom: 0; }
.pkgTabs__spacer { display: none; }
.pkgTabs.is-stuck .pkgTabs__spacer { display: block; }
.pkgTabs.is-stuck .pkgTabs__bar {
    position: fixed;
    /* 1px tuck under the deadline bar: both heights are rounded, so without it a
       sub-pixel seam can open between the two docked bars. */
    top: calc(var(--pkgTabsTop) - 1px);
    left: 0;
    right: 0;
    /* Under the header (.sticky-top is 1020), over every page section. */
    z-index: var(--pkgTabsZ);
    box-shadow: 0 1px 0 rgba(16, 24, 40, .06);
}

/* Past the bottom of the FAQs section there is nothing left to navigate to, so fade the
   bar out rather than let it hang over the reviews, catalog and footer. */
.pkgTabs.is-stuck.is-past .pkgTabs__bar {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

/* Native anchor jumps clear the docked bar too -- the "Register for Package" /
   "Continue Learning" / "View Syllabus" buttons all point at #courses. */
section#overview,
section#courses,
section#details,
section#faqs {
    scroll-margin-top: calc(var(--pkgTabsTop) + var(--pkgTabsBarH) + 12px);
}
@media (prefers-reduced-motion: reduce) {
    .pkgTabs .pkgTabs__bar { transition: none; }
}

/* ---------------------------------------------------------------------------
   Overview tab body. The copy is rich text typed in admin
   (packages.package_description): bold paragraphs used as headings, justified
   text, stock bullets. Restyled in place -- left aligned, blue dot bullets,
   bold paragraphs reading as headings -- without touching the stored HTML.
   --------------------------------------------------------------------------- */
#overview .tab-overview-data {
    font-family: Inter;
    color: #475467;
}
#overview .tab-overview-data p,
#overview .tab-overview-data li,
#overview .tab-overview-data div {
    font-size: 15px;
    line-height: 24px;
    text-align: left !important; /* beats the pasted inline text-align: justify */
}
#overview .tab-overview-data p { margin: 0 0 14px; }
#overview .tab-overview-data p:last-child { margin-bottom: 0; }
#overview .tab-overview-data p strong,
#overview .tab-overview-data p b {
    font-weight: 600;
    color: #1D2939;
}
#overview .tab-overview-data ul {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
#overview .tab-overview-data ul li {
    position: relative;
    padding-left: 20px;
    font-weight: 400 !important; /* some pasted items carry inline font-weight: bold */
}
#overview .tab-overview-data ul li + li { margin-top: 8px; }
#overview .tab-overview-data ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3A58EF;
}
#overview .tab-overview-data ol { margin: 0 0 24px; padding-left: 20px; }
#overview .tab-overview-data ol li + li { margin-top: 8px; }
#overview .tab-overview-data a {
    color: #3A58EF;
    font-weight: 500;
    text-decoration: none;
}
#overview .tab-overview-data a strong,
#overview .tab-overview-data a b { color: inherit; font-weight: inherit; }
#overview .tab-overview-data a:hover { text-decoration: underline; text-underline-offset: 3px; }
