/*
 * Article components for content written in the CMS (TinyEditor).
 * Use the classes inside a <div class="str-article"> wrapper.
 * Loaded on the public site (includes/head.blade.php) and inside the editor (config/filament-tinyeditor.php).
 */

.str-article {
    --str-blue: var(--color_primary, #0071dc);
    --str-yellow: var(--color_secondary, #f7bc20);
    --str-heading: var(--color_text_heading, #161616);
    --str-text: var(--color_text_body, #5a5a5a);
    --str-soft: #f3f7fc;
    --str-border: #e3eaf3;

    font-family: var(--font_family_body, "Roboto", sans-serif);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--str-text);
    margin-top: 1.25rem;
}

.str-article > * + * {
    margin-top: 1.25rem;
}

.str-article h2,
.str-article h3 {
    font-family: var(--font_family_heading, "Jost", sans-serif);
    color: var(--str-heading);
    line-height: 1.25;
    margin-bottom: 0;
}

.str-article h2 {
    font-size: 1.6rem;
    font-weight: 600;
}

.str-article h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
}

.str-article p,
.single-blog-wrap .blog-content-box .str-article p { /* beats the theme's 30px on the CultureBlend page */
    margin-bottom: 0;
}

/* Small label above the heading: "Erasmus+ · CultureBlend" */
.str-kicker {
    display: inline-block;
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--str-blue);
    background: var(--str-soft);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
}

/* Opening paragraph */
.str-lead {
    font-size: 1.15rem;
    color: var(--str-heading);
    border-left: 4px solid var(--str-yellow);
    padding-left: 1rem;
}

/* Key facts: date, period, place, participants */
.str-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
}

.str-fact {
    position: relative;
    background: var(--str-soft);
    border: 1px solid var(--str-border);
    border-radius: 14px;
    padding: 0.9rem 1rem 0.9rem 3.1rem;
    line-height: 1.35;
}

.str-fact::before {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--str-blue);
    content: "\f05a"; /* info */
}

.str-fact--date::before { content: "\f073"; }      /* calendar */
.str-fact--period::before { content: "\f274"; }    /* calendar-check */
.str-fact--place::before { content: "\f3c5"; }     /* map marker */
.str-fact--people::before { content: "\f0c0"; }    /* users */
.str-fact--phone::before { content: "\f095"; }     /* phone */
.str-fact--email::before { content: "\f0e0"; }     /* envelope */
.str-fact--target::before { content: "\f140"; }    /* bullseye */
.str-fact--money::before { content: "\f4c0"; }     /* hand holding money */

.str-fact__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--str-text);
}

.str-fact__value {
    display: block;
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--str-heading);
}

/* Topic pills */
.str-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.str-tags li {
    background: #fff;
    border: 1px solid var(--str-blue);
    color: var(--str-blue);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Highlighted statement (selector beats the default blockquote styles of the site and the editor) */
.str-article blockquote.str-quote {
    position: relative;
    background: var(--str-soft);
    border: 0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    margin: 1.5rem 0 0;
    color: var(--str-heading);
    font-style: italic;
}

.str-quote::before {
    position: absolute;
    left: 1.25rem;
    top: 1.15rem;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    font-size: 1.25rem;
    color: var(--str-yellow);
    content: "\f10d"; /* quote-left */
}

.str-quote p {
    margin: 0;
}

/* Closing wish */
.str-wish {
    background: var(--str-yellow);
    color: var(--str-heading);
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
}

/* EU funding note */
.str-eu {
    border-top: 1px solid var(--str-border);
    padding-top: 1.25rem;
    margin-top: 2rem;
}

.str-eu__title {
    font-weight: 600;
    color: var(--str-heading);
    font-size: 0.95rem;
}

.str-eu__disclaimer {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #7a7a7a;
    margin-top: 0.6rem !important;
}

/* Links inside article text */
.str-article a:not(.str-button) {
    color: var(--str-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: break-word; /* only breaks a word that does not fit on its own line */
}

.str-article a:not(.str-button):hover {
    text-decoration-thickness: 2px;
}

/* List with check marks */
.str-checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    display: grid;
    gap: 0.65rem;
}

.str-checklist li {
    position: relative;
    padding-left: 2.1rem;
}

.str-checklist li::before {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--str-blue);
    color: #fff;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.65rem;
    line-height: 1.4rem;
    text-align: center;
    content: "\f00c"; /* check */
}

.str-checklist li p {
    margin: 0;
}

/* Cards: <ul class="str-cards"> (plain) or <ol class="str-cards"> (numbered); <strong> is the card title */
.str-cards {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.75rem;
    counter-reset: str-card;
}

.str-cards li {
    position: relative;
    background: #fff;
    border: 1px solid var(--str-border);
    border-top: 3px solid var(--str-blue);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    font-size: 0.97rem;
    line-height: 1.6;
}

.str-cards li strong {
    display: block;
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-size: 1.05rem;
    color: var(--str-heading);
    margin-bottom: 0.3rem;
}

ol.str-cards li {
    counter-increment: str-card;
    padding-left: 3.4rem;
    border-top-width: 1px;
}

ol.str-cards li::before {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--str-blue);
    color: #fff;
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.8rem;
    text-align: center;
    content: counter(str-card);
}

/* Call to action / contact box */
.str-cta {
    background: var(--str-soft);
    border: 1px solid var(--str-border);
    border-left: 4px solid var(--str-blue);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.str-cta p {
    margin: 0;
}

.str-cta p + p {
    margin-top: 0.85rem;
}

.str-article a.str-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--str-blue);
    color: #fff;
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.str-article a.str-button::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.8em;
    content: "\f061"; /* arrow right */
}

.str-article a.str-button:hover,
.str-article a.str-button:focus-visible {
    background: #005bb2;
    color: #fff;
    transform: translateY(-1px);
}

/* Documents (PDF) list */
.str-docs {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    display: grid;
    gap: 0.5rem;
}

.str-docs li {
    position: relative;
    background: #fff;
    border: 1px solid var(--str-border);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    line-height: 1.45;
}

.str-docs li::before {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.15rem;
    color: #d64541;
    content: "\f1c1"; /* file pdf */
}

.str-docs li p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .str-article a.str-button {
        transition: none;
    }
}

@media (max-width: 575.98px) {
    .str-article {
        font-size: 1rem;
    }

    .str-article h2 {
        font-size: 1.35rem;
    }

    .str-article blockquote.str-quote {
        padding: 1rem 1.1rem 1rem 3rem;
    }
}

/* Images inside article text */
.str-article img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.str-figure {
    margin: 0;
}

.str-figure figcaption {
    font-size: 0.85rem;
    color: #7a7a7a;
    margin-top: 0.5rem;
    text-align: center;
}

/* CTA with text on one side and an image (QR code) on the other */
.str-cta--split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.str-cta--split > div {
    flex: 1 1 260px;
}

.str-cta--split > div > p + p {
    margin-top: 0.85rem;
}

.str-article img.str-qr {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    border: 1px solid var(--str-border);
}

/* Activity and About us pages: images column stays in view next to long texts */
/* The theme sets overflow:hidden on this section, which disables position:sticky; clip crops the same way without that side effect. */
.activity-page {
    overflow: clip;
}

@media (min-width: 768px) {
    .activity-media {
        position: sticky;
        top: 110px;
    }
}
