/* ═══════════════════════════════════════════════════
   ACTS PAGE  (.mtic-page--acts)
   Hero (reusable .mtic-page-hero) + grid of category cards.
   Each card lists acts as links that open PDFs in a new tab.
═══════════════════════════════════════════════════ */

.mtic-page--acts {
    background-color: var(--mtic-white);
}

/* ── Hero ─────────────────────────────────────────
   Image rendered as an <img> so its built-in curved bottom shows, with the
   white page colour revealed below the curve (mirrors the Services hero).
   Text sits in an absolute overlay; readability via text-shadow. */
.mtic-acts-hero {
    position: relative;
    background-color: var(--mtic-white);
    margin-bottom: 2.5rem;
    line-height: 0;
}

.mtic-acts-hero__image {
    width: 100%;
    height: auto;
    display: block;
}

.mtic-acts-hero__inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    max-width: var(--mtic-container-max);
    margin: 0 auto;
    padding: 3.5rem var(--mtic-container-pad) 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.25rem;
    box-sizing: border-box;
    line-height: normal;
}

/* Typography matches the Services page hero (services.css). */
.mtic-acts-hero__title {
    font-family: var(--mtic-font-heading);
    font-size: clamp(1.75rem, 4vw, 42px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mtic-white);
    letter-spacing: 0.06em;
    line-height: 1.0;
    margin: 0;
    max-width: 640px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.mtic-acts-hero__title--highlight {
    color: var(--mtic-primary);
}

.mtic-acts-hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 30px);
    font-weight: 400;
    color: var(--mtic-white);
    margin: 0;
    max-width: 520px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.mtic-acts-hero__description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 420px;
    line-height: 1.65;
    margin: 0;
    padding-top: 0.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.mtic-acts__body {
    padding-top: var(--mtic-spacing-lg, 2.5rem);
    padding-bottom: var(--mtic-spacing-lg, 2.5rem);
}

/* ── Section heading ─────────────────────────────── */
.mtic-acts__head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mtic-acts__title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--mtic-dark);
    margin: 0;
    display: inline-block;
}

.mtic-acts__title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 0.6rem auto 0;
    background: var(--mtic-primary);
    border-radius: 2px;
}

/* ── Cards grid ──────────────────────────────────── */
.mtic-acts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.mtic-text-large .mtic-acts-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.mtic-text-large .mtic-acts-card__heading {
    min-height: unset;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ── Card ────────────────────────────────────────── */
.mtic-acts-card {
    display: flex;
    flex-direction: column;
    background: var(--mtic-dark);
    border: 1.5px solid var(--mtic-primary);
    border-radius: 16px;
    box-shadow: 0 0 0 4px rgba(1, 180, 150, 0.12);
    overflow: hidden;
    height: 100%;
    /* Keep the card clear of the sticky header when reached via a #slug anchor
       (homepage search "Topics" suggestions deep-link here). */
    scroll-margin-top: calc(var(--mtic-header-offset, 146px) + 1rem);
}

/* Summary = card header (icon + heading + mobile chevron) */
.mtic-acts-card__summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
    cursor: pointer;
    list-style: none;
}

.mtic-acts-card__summary::-webkit-details-marker {
    display: none;
}

.mtic-acts-card__icon {
    flex-shrink: 0;
    line-height: 0;
}

.mtic-acts-card__icon img {
    width: 48px;
    height: 48px;
    display: block;
}

.mtic-acts-card__heading {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mtic-white);
    line-height: 1.25;
    min-width: 0;
    word-wrap: break-word;
}

/* Desktop reserves two lines so the divider below the heading lands at the
   same height on every card, whether the title is one or two lines. */
@media screen and (min-width: 768px) {
    .mtic-acts-card__heading {
        min-height: 2.5em; /* 2 lines at line-height 1.25 */
        display: flex;
        align-items: flex-start;
    }
}

.mtic-acts-card__chevron {
    flex-shrink: 0;
    color: var(--mtic-white);
    line-height: 0;
    transition: var(--mtic-transition, transform 0.2s ease);
}

.mtic-acts-card[open] .mtic-acts-card__chevron {
    transform: rotate(180deg);
}

/* ── Card content (links list) ───────────────────── */
.mtic-acts-card__content {
    padding: 0 1.5rem 1.75rem;
}

/* Divider above the list, aligned with the icon/heading padding */
.mtic-acts-card__content::before {
    content: '';
    display: block;
    height: 1px;
    background: rgba(1, 180, 150, 0.4);
    margin: 0 0 1.25rem;
}

.mtic-acts-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mtic-acts-card__item {
    margin: 0;
}

.mtic-acts-card__link {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--mtic-white);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.45;
    min-height: 24px;
    transition: var(--mtic-transition, color 0.2s ease);
}

.mtic-acts-card__bullet {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    margin-top: 0.5rem;
    border-radius: 50%;
    background: currentColor;
}

.mtic-acts-card__link:hover .mtic-acts-card__link-text,
.mtic-acts-card__link:focus-visible .mtic-acts-card__link-text {
    text-decoration: underline;
}

.mtic-acts-card__link:hover,
.mtic-acts-card__link:focus-visible {
    color: var(--mtic-primary);
    outline: none;
}

.mtic-acts-card__empty {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

@media screen and (max-width: 767px) {
    .mtic-acts-hero {
        margin-bottom: 0;
    }

    /* Mobile banner text matches the Services hero (services.css). */
    .mtic-acts-hero__inner {
        padding: 3rem var(--mtic-container-pad) 2.5rem;
        gap: 0.75rem;
        text-align: left;
        margin-left: 0;
    }

    .mtic-acts-hero__title {
        font-size: 1.25rem;
        line-height: 0.71;
    }

    .mtic-acts-hero__subtitle {
        font-size: 0.85rem;
        line-height: 0;
        margin-bottom: 0.1rem;
        max-width: 100%;
    }

    .mtic-acts-hero__description {
        font-size: 0.72rem;
        line-height: 1.4;
        max-width: 80%;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    }
}

/* Tablet up: cards always expanded, no accordion chevron, vertical header. */
@media screen and (min-width: 768px) {
    .mtic-acts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mtic-acts-card__summary {
        flex-direction: column;
        align-items: flex-start;
        cursor: default;
        gap: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .mtic-acts-card__chevron {
        display: none;
    }

    /* Force content open on desktop regardless of the <details> state. */
    .mtic-acts-card__content {
        display: block;
        padding-top: 0;
    }
}

@media screen and (min-width: 992px) {
    .mtic-acts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1200px) {
    .mtic-acts-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}
