/* ================================
   BRIEF HISTORY PAGE
================================ */

.mtic-page--brief-history {
    position: relative;
    padding-bottom: var(--mtic-spacing-lg);
}

.mtic-page--brief-history::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/themes/mtic-theme/assets/images/about/brief-history-bg-mask.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.mtic-page--brief-history > section,
.mtic-page--brief-history > div {
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.mtic-brief-history {
    gap: var(--mtic-spacing-lg);
    padding: var(--mtic-spacing-lg) var(--mtic-spacing-lg) var(--mtic-spacing-xl);
    box-shadow: 0px 1px 8.9px 0px #00000040; 
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Title H1 */
.mtic-brief-history h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--mtic-primary);
    margin-bottom: var(--mtic-spacing-md);
    text-align: center;
}

.mtic-brief-history h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color:var(--mtic-teal);
    border-radius: 20px;
    margin: 12px auto 0;
}

.mtic-brief-history h1:not(:first-child) {
    margin-top: var(--mtic-spacing-lg);
}
/* Sub Title H2 */
.mtic-brief-history h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--mtic-primary);
    margin-bottom: var(--mtic-spacing-md);
    margin-top: var(--mtic-spacing-lg);
}

/* Paragraphs */
.mtic-brief-history p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--mtic-text);
    margin-bottom: var(--mtic-spacing-md);
    text-align: justify;
}

.mtic-brief-history p:last-child {
    margin-bottom: 0;
}

/* List */
.mtic-brief-history ol {
    padding-left: 1.75rem;
    margin-bottom: var(--mtic-spacing-md);
}

.mtic-brief-history__list--lower-alpha {
    list-style-type: lower-alpha;
}

.mtic-brief-history__list--lower-roman {
    list-style-type: lower-roman;
}

/* List Items */
.mtic-brief-history ol li {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--mtic-text);
    margin-bottom: var(--mtic-spacing-sm);
}

.mtic-brief-history ol li::marker {
    color: var(--mtic-primary);
    font-weight: 700;
}

.mtic-brief-history ol li > p {
    margin-top: var(--mtic-spacing-sm);
    margin-bottom: 0;
}

/* ── Hero ── */
.mtic-page--brief-history .mtic-page-hero {
    border-radius: 0;
    min-height: 0;
    aspect-ratio: 1340 / 411;
    background-position: center;
    margin-bottom: 2.5rem;
    /* The PNG's bottom corners are transparent (the curve is part of
       the artwork) — the component's dark fallback colour must not
       show through them. */
    background-color: transparent;
}

.mtic-page--brief-history .mtic-page-hero::before {
    content: none;
}

/* Text sizing and padding mirror the Statistics hero (statistics.css);
   only the alignment (component default / centred on mobile) differs. */
.mtic-page--brief-history .mtic-page-hero__inner {
    padding: 3.5rem var(--mtic-container-pad) 4.5rem;
    margin: 0 0 0 4rem;
}

.mtic-page--brief-history .mtic-page-hero__title {
    font-family: var(--mtic-font-heading);
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 42px);
    color: var(--mtic-white);
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 0.06em;
    line-height: 0.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.25rem; 
}

/* White subtitle (overrides the component's teal). */
.mtic-page--brief-history .mtic-page-hero__subtitle {
    color: var(--mtic-white);
    font-size: clamp(1.1rem, 2.5vw, 30px);
    font-weight: 400;
    line-height: 1.3;
    max-width: 520px;
    margin-bottom: 1.25rem; /* statistics hero uses flex gap 1.25rem */
}

.mtic-page--brief-history .mtic-page-hero__desc {
    font-size: 1.25rem;
    max-width: 420px;
    padding-top: 0.25rem;
}

.mtic-brief-history__list-title {
    margin-bottom: 4px !important;  
}
/* Responsive - Tablet */
@media (max-width: 1024px) {
 
    .mtic-brief-history h1 {
        font-size: 1.75rem;
    }

    .mtic-brief-history h2 {
        font-size: 1.125rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {

    .mtic-page--brief-history .mtic-page-hero__inner {
        padding: 3rem var(--mtic-container-pad) 2.5rem;
        text-align: left;
        margin-left: 0;
    }
  
    .mtic-page--brief-history .mtic-page-hero__title {
        font-size: 1.25rem;
        line-height: 0.71;
        margin-bottom: 0.75rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .mtic-page--brief-history .mtic-page-hero__subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        white-space: normal;
    }

    .mtic-page--brief-history .mtic-page-hero__desc {
        font-size: 0.72rem;
        line-height: 1.4;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    }

    .mtic-brief-history {
        padding: var(--mtic-spacing-md) var(--mtic-spacing-md) var(--mtic-spacing-lg);
    }

    .mtic-brief-history h1 {
        font-size: 1.25rem;
    }

    .mtic-brief-history h2 {
        font-size: 1rem;
    }

    .mtic-brief-history p {
        font-size: 0.875rem;
        text-align: left;  
    }

    .mtic-brief-history ol li {
        font-size: 0.875rem;
    }
}
