/* ==========================================================================
   ANCC International - Press release pages
   Used by: template-ancc-press-ku-leuven-en.php
            template-ancc-press-ku-leuven-de.php

   Every selector is scoped under .ancc-pr-hero or .ancc-pr, so nothing here
   can affect the rest of the website. No global body / h1 / h2 / p / a /
   :root rules are declared. Palette and type scale follow the existing
   "ANCC Awards" page so the two templates read as siblings.
   Sizes are in em so they follow the theme's own large-screen body scaling
   (16px -> 19px @1900 -> 20px @2300 -> 24px @2600 -> 28px @2900 -> 32px @3400).
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Font alias
   The theme registers its single Aptos Display file as "italic 600", so the
   browser cannot render bold or italic text with it - bold and italic
   passages from the press release would look like plain text. This alias
   points at the SAME theme font file under a unique family name, declared as
   regular/400, so <strong> and <em> inside these pages render as bold and
   italic exactly as in the Word document. The theme's own "Aptos Display"
   declaration is not touched.
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'ANCC PR Aptos';
    src: url('ancc-fonts/aptos-display.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Page header (reuses the theme's .page-header banner)
   -------------------------------------------------------------------------- */
/* Banner image: desktop by default, separate image on mobile.
   The two image URLs are passed from the template as CSS variables. */
.page-header.ancc-pr-hero .page-header__bg {
    background-image: var(--ancc-pr-banner-desktop);
}

@media (max-width: 767px) {
    .page-header.ancc-pr-hero .page-header__bg {
        background-image: var(--ancc-pr-banner-mobile);
    }
}

.page-header.ancc-pr-hero .ancc-pr-hero__title {
    /* The theme capitalises every word of .page-header__title, which would
       change the wording of the official headline. Keep it exactly as written. */
    text-transform: none;
    font-size: 40px;
    line-height: 1.22;
    max-width: 1000px;
    margin-bottom: 16px;
    overflow-wrap: break-word;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.page-header.ancc-pr-hero .ancc-pr-breadcrumb {
    max-width: 100%;
    flex-wrap: nowrap;
}

.page-header.ancc-pr-hero .ancc-pr-breadcrumb li {
    text-transform: none;
}

.page-header.ancc-pr-hero .ancc-pr-breadcrumb li:first-child {
    flex: none;
}

.page-header.ancc-pr-hero .ancc-pr-breadcrumb li:last-child {
    min-width: 0;
}

.page-header.ancc-pr-hero .ancc-pr-breadcrumb li:last-child span {
    display: block;
    max-width: 560px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 1199px) {
    .page-header.ancc-pr-hero .ancc-pr-hero__title {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    /* the theme sets 40px !important at this width; a long headline needs less */
    .page-header.ancc-pr-hero .ancc-pr-hero__title {
        font-size: 28px !important;
        line-height: 1.25;
    }

    .page-header.ancc-pr-hero .ancc-pr-breadcrumb li:last-child span {
        max-width: 220px;
    }
}

@media (max-width: 575px) {
    .page-header.ancc-pr-hero .ancc-pr-hero__title {
        font-size: 24px !important;
    }
}

@media (max-width: 390px) {
    .page-header.ancc-pr-hero .ancc-pr-hero__title {
        font-size: 22px !important;
    }

    .page-header.ancc-pr-hero .ancc-pr-breadcrumb li:last-child span {
        max-width: 170px;
    }
}

@media (min-width: 1900px) {
    .page-header.ancc-pr-hero .ancc-pr-hero__title {
        font-size: 46px;
        max-width: 1200px;
    }

    .page-header.ancc-pr-hero .ancc-pr-breadcrumb li:last-child span {
        max-width: 760px;
    }
}

@media (min-width: 2300px) {
    .page-header.ancc-pr-hero .ancc-pr-hero__title {
        font-size: 50px;
        max-width: 1400px;
    }
}

@media (min-width: 2900px) {
    .page-header.ancc-pr-hero .ancc-pr-hero__title {
        font-size: 58px;
        max-width: 1700px;
    }
}

@media (min-width: 3400px) {
    .page-header.ancc-pr-hero .ancc-pr-hero__title {
        font-size: 64px;
        max-width: 1900px;
    }
}

/* --------------------------------------------------------------------------
   2. Content section
   -------------------------------------------------------------------------- */
.ancc-pr {
    --ancc-pr-navy: #0B2E4F;
    --ancc-pr-blue: #145DA0;
    --ancc-pr-teal: #12A9A9;
    --ancc-pr-brand: #009685;
    --ancc-pr-text: #33475C;
    --ancc-pr-muted: #3C5570;
    --ancc-pr-line: #E1EBF2;
    --ancc-pr-soft: #F7FAFC;
    --ancc-pr-bg: #F3F8FB;

    position: relative;
    background-color: var(--ancc-pr-bg);
    padding: 96px 0;
    overflow: hidden;
    color: var(--ancc-pr-text);
    font-family: 'ANCC PR Aptos', var(--insuba-font, "Aptos Display"), sans-serif;
}

/* soft decorative background shapes (same as the ANCC Awards page) */
.ancc-pr .ancc-pr-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ancc-pr .ancc-pr-blob--one {
    top: -180px;
    right: -160px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle at 30% 30%, rgba(18, 169, 169, 0.18), rgba(18, 169, 169, 0) 70%);
}

.ancc-pr .ancc-pr-blob--two {
    bottom: -220px;
    left: -180px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 60% 60%, rgba(20, 93, 160, 0.14), rgba(20, 93, 160, 0) 70%);
}

.ancc-pr .ancc-pr-container {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   2b. Language switch button (EN -> DE)
   -------------------------------------------------------------------------- */
.ancc-pr .ancc-pr-lang {
    display: block;
    position: relative;
    z-index: 2;
    margin-bottom: 28px;
}

.ancc-pr a.ancc-pr-lang__btn {
    position: relative;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 10px;
    border-radius: 999px;
    background-color: #0B2E4F !important;
    background-image: linear-gradient(120deg, #0B2E4F 0%, #145DA0 60%, #12A9A9 130%) !important;
    color: #FFFFFF !important;
    text-shadow: none;
    font-family: inherit;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 12px 26px -12px rgba(11, 46, 79, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* light sweep on hover */
.ancc-pr a.ancc-pr-lang__btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.ancc-pr a.ancc-pr-lang__btn:hover,
.ancc-pr a.ancc-pr-lang__btn:focus-visible {
    color: #FFFFFF !important;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -12px rgba(11, 46, 79, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.ancc-pr a.ancc-pr-lang__btn:hover::before,
.ancc-pr a.ancc-pr-lang__btn:focus-visible::before {
    left: 130%;
}

.ancc-pr a.ancc-pr-lang__btn:focus-visible {
    outline: 3px solid var(--ancc-pr-teal);
    outline-offset: 3px;
}

/* round badge holding a mini German-flag stripe set */
.ancc-pr .ancc-pr-lang__flag {
    position: relative;
    flex: none;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(180deg, #111111 0 33.33%, #DD0000 33.33% 66.66%, #FFCE00 66.66% 100%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* English variant of the badge (used on the German page) */
.ancc-pr .ancc-pr-lang__flag--en {
    background: #012169;
}

.ancc-pr .ancc-pr-lang__flag--en svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ancc-pr .ancc-pr-lang__text {
    color: #FFFFFF !important;
    white-space: nowrap;
}

.ancc-pr .ancc-pr-lang__text i {
    font-style: normal;
    font-weight: 500;
    opacity: 0.7;
    margin: 0 0.35em;
}

.ancc-pr .ancc-pr-lang__arrow {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    background-color: #FFFFFF;
    transition: transform 0.3s ease;
}

.ancc-pr .ancc-pr-lang__arrow svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: var(--ancc-pr-navy);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ancc-pr a.ancc-pr-lang__btn:hover .ancc-pr-lang__arrow,
.ancc-pr a.ancc-pr-lang__btn:focus-visible .ancc-pr-lang__arrow {
    transform: translateX(4px);
}

@media (max-width: 575px) {
    .ancc-pr .ancc-pr-lang {
        margin-bottom: 22px;
    }

    .ancc-pr a.ancc-pr-lang__btn {
        gap: 10px;
        font-size: 0.9375em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ancc-pr a.ancc-pr-lang__btn,
    .ancc-pr a.ancc-pr-lang__btn::before,
    .ancc-pr .ancc-pr-lang__arrow {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   3. Article card
   -------------------------------------------------------------------------- */
.ancc-pr .ancc-pr-article {
    position: relative;
    background-color: #FFFFFF;
    border: 1px solid var(--ancc-pr-line);
    border-radius: 20px;
    box-shadow: 0 10px 30px -18px rgba(11, 46, 79, 0.25);
    padding: 64px 72px 72px;
    overflow: hidden;
}

/* thin brand accent along the top edge of the card */
.ancc-pr .ancc-pr-article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ancc-pr-navy) 0%, var(--ancc-pr-blue) 45%, var(--ancc-pr-teal) 100%);
}

.ancc-pr .ancc-pr-article p,
.ancc-pr .ancc-pr-article blockquote,
.ancc-pr .ancc-pr-article strong,
.ancc-pr .ancc-pr-article em {
    font-family: inherit;
}

.ancc-pr .ancc-pr-article p {
    font-size: 1.0625em;
    line-height: 1.8;
    color: var(--ancc-pr-text);
    margin: 0 0 1.4em 0;
}

.ancc-pr .ancc-pr-article strong {
    font-weight: 700;
}

.ancc-pr .ancc-pr-article em {
    font-style: italic;
}

/* Sub-headline (italic in the original document) */
.ancc-pr .ancc-pr-article .ancc-pr-subhead {
    position: relative;
    font-size: 1.3em;
    line-height: 1.6;
    font-weight: 500;
    color: var(--ancc-pr-navy);
    padding: 0 0 32px 0;
    margin: 0 0 36px 0;
    border-bottom: 1px solid var(--ancc-pr-line);
}

.ancc-pr .ancc-pr-article .ancc-pr-subhead::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 72px;
    height: 3px;
    border-radius: 3px;
    background-color: var(--ancc-pr-teal);
}

/* Dateline (bold in the original document) */
.ancc-pr .ancc-pr-article .ancc-pr-dateline {
    color: var(--ancc-pr-navy);
    letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   3b. Images
   - cover image: the <img> placed directly above the article card
   - article image: the <img> placed inside the article card
   -------------------------------------------------------------------------- */
.ancc-pr .ancc-pr-container [class*="col-"] > img,
.ancc-pr .ancc-pr-article > img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 2em 0;
    border-radius: 16px;
    border: 1px solid var(--ancc-pr-line);
    box-shadow: 0 14px 34px -20px rgba(11, 46, 79, 0.45);
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.45s ease,
                filter 0.45s ease,
                border-color 0.45s ease;
    will-change: transform;
}

/* cover image sits above the card: use a fixed gap instead of em */
.ancc-pr .ancc-pr-container [class*="col-"] > img {
    margin: 0 0 28px 0;
}

@media (hover: hover) {
    .ancc-pr .ancc-pr-container [class*="col-"] > img:hover,
    .ancc-pr .ancc-pr-article > img:hover {
        transform: translateY(-8px) scale(1.015);
        border-color: var(--ancc-pr-teal);
        box-shadow: 0 30px 50px -22px rgba(11, 46, 79, 0.55),
                    0 0 0 4px rgba(18, 169, 169, 0.16);
        filter: saturate(1.08) contrast(1.03);
    }
}

@media (max-width: 767.98px) {
    .ancc-pr .ancc-pr-container [class*="col-"] > img,
    .ancc-pr .ancc-pr-article > img {
        border-radius: 12px;
    }

    .ancc-pr .ancc-pr-article > img {
        margin-bottom: 1.5em;
    }

    .ancc-pr .ancc-pr-container [class*="col-"] > img {
        margin-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ancc-pr .ancc-pr-container [class*="col-"] > img,
    .ancc-pr .ancc-pr-article > img {
        transition: none;
    }

    .ancc-pr .ancc-pr-container [class*="col-"] > img:hover,
    .ancc-pr .ancc-pr-article > img:hover {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   4. Quotations
   -------------------------------------------------------------------------- */
.ancc-pr .ancc-pr-quote {
    position: relative;
    margin: 44px 0;
    padding: 32px 36px 32px 100px;
    background-color: var(--ancc-pr-soft);
    border: 1px solid var(--ancc-pr-line);
    border-left: 4px solid var(--ancc-pr-teal);
    border-radius: 14px;
}

.ancc-pr .ancc-pr-quote__icon {
    position: absolute;
    top: 32px;
    left: 30px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ancc-pr-navy) 0%, var(--ancc-pr-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ancc-pr .ancc-pr-quote__icon svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
}

.ancc-pr .ancc-pr-article .ancc-pr-quote p {
    font-size: 1.125em;
    line-height: 1.8;
    color: var(--ancc-pr-navy);
    margin: 0;
}

.ancc-pr .ancc-pr-quote + .ancc-pr-quote {
    margin-top: -16px;
}

/* --------------------------------------------------------------------------
   5. "About" boilerplate
   -------------------------------------------------------------------------- */
.ancc-pr .ancc-pr-about {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--ancc-pr-line);
}

.ancc-pr .ancc-pr-about__block {
    background-color: var(--ancc-pr-soft);
    border: 1px solid var(--ancc-pr-line);
    border-left: 4px solid var(--ancc-pr-blue);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

.ancc-pr .ancc-pr-about__block:last-child {
    margin-bottom: 0;
}

.ancc-pr .ancc-pr-article .ancc-pr-about__title {
    font-family: inherit;
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ancc-pr-navy);
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 12px 0;
}

.ancc-pr .ancc-pr-article .ancc-pr-about__block p {
    font-size: 1em;
    line-height: 1.75;
    margin: 0;
}

/* --------------------------------------------------------------------------
   6. German page: allow long compound words to hyphenate on small screens
   -------------------------------------------------------------------------- */
.ancc-pr[lang="de"] .ancc-pr-article p,
.ancc-pr[lang="de"] .ancc-pr-article .ancc-pr-about__title {
    overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .ancc-pr .ancc-pr-article {
        padding: 56px 56px 60px;
    }
}

@media (max-width: 991.98px) {
    .ancc-pr {
        padding: 80px 0;
    }

    .ancc-pr .ancc-pr-article {
        padding: 48px 44px 52px;
    }
}

@media (max-width: 767.98px) {
    .ancc-pr {
        padding: 56px 0 64px;
    }

    .ancc-pr .ancc-pr-article {
        padding: 36px 24px 40px;
        border-radius: 16px;
    }

    .ancc-pr .ancc-pr-article p {
        font-size: 1em;
        line-height: 1.75;
    }

    .ancc-pr .ancc-pr-article .ancc-pr-subhead {
        font-size: 1.125em;
        padding-bottom: 24px;
        margin-bottom: 28px;
    }

    .ancc-pr .ancc-pr-quote {
        margin: 32px 0;
        padding: 76px 20px 24px 20px;
    }

    .ancc-pr .ancc-pr-quote + .ancc-pr-quote {
        margin-top: -8px;
    }

    .ancc-pr .ancc-pr-quote__icon {
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .ancc-pr .ancc-pr-quote__icon svg {
        width: 17px;
        height: 17px;
    }

    .ancc-pr .ancc-pr-article .ancc-pr-quote p {
        font-size: 1.0625em;
    }

    .ancc-pr .ancc-pr-about {
        margin-top: 40px;
        padding-top: 36px;
    }

    .ancc-pr .ancc-pr-about__block {
        padding: 22px 20px;
    }

    .ancc-pr .ancc-pr-article .ancc-pr-about__title {
        font-size: 1.125em;
    }

    .ancc-pr[lang="de"] .ancc-pr-article p {
        -webkit-hyphens: auto;
        hyphens: auto;
    }
}

@media (max-width: 390px) {
    .ancc-pr .ancc-pr-article {
        padding: 32px 18px 36px;
    }
}

/* --------------------------------------------------------------------------
   8. Very large screens (mirrors the breakpoints used on the Awards page)
   -------------------------------------------------------------------------- */
@media (min-width: 1900px) {
    .ancc-pr .ancc-pr-article {
        padding: 80px 96px 88px;
    }

    .ancc-pr .ancc-pr-quote {
        padding: 40px 44px 40px 124px;
    }

    .ancc-pr .ancc-pr-quote__icon {
        top: 40px;
        left: 38px;
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .ancc-pr .ancc-pr-quote__icon svg {
        width: 24px;
        height: 24px;
    }

    .ancc-pr .ancc-pr-about__block {
        padding: 36px 40px;
    }
}

@media (min-width: 2600px) {
    .ancc-pr {
        padding: 128px 0;
    }

    .ancc-pr .ancc-pr-quote {
        padding-left: 150px;
    }

    .ancc-pr .ancc-pr-quote__icon {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }

    .ancc-pr .ancc-pr-quote__icon svg {
        width: 30px;
        height: 30px;
    }
}

/* --------------------------------------------------------------------------
   9. Print (clean press-release printout)
   -------------------------------------------------------------------------- */
@media print {
    .ancc-pr .ancc-pr-lang {
        display: none;
    }

    .ancc-pr {
        background: #FFFFFF;
        padding: 0;
    }

    .ancc-pr .ancc-pr-blob {
        display: none;
    }

    .ancc-pr .ancc-pr-article {
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .ancc-pr .ancc-pr-article::before {
        display: none;
    }

    .ancc-pr .ancc-pr-container [class*="col-"] > img,
    .ancc-pr .ancc-pr-article > img {
        box-shadow: none;
        break-inside: avoid;
    }

    .ancc-pr .ancc-pr-quote,
    .ancc-pr .ancc-pr-about__block {
        break-inside: avoid;
    }
}
