/* ============================================================
   MY PROPERTY — ABOUT PAGE 2026
   Page-specific styles
   ============================================================ */

.about-page {
    --mp-about-purple: #965aa5;
    --mp-about-purple-dark: #763996;
    --mp-about-yellow: #f4b608;

    --mp-about-gray: #8f9193;
    --mp-about-gray-dark: #606062;

    --mp-about-text: #303033;
    --mp-about-muted: #6f7073;

    --mp-about-border: #e7e7e8;
    --mp-about-soft: #f7f7f8;
    --mp-about-white: #ffffff;

    --mp-about-radius: 8px;
    --mp-about-radius-lg: 12px;
}


/* ============================================================
   GENERAL
   ============================================================ */

.mp-about {
    background: var(--mp-about-white);
    color: var(--mp-about-text);
    font-size: 15px;
    line-height: 1.65;
}

.mp-about *,
.mp-about *::before,
.mp-about *::after {
    box-sizing: border-box;
}

.mp-about img {
    display: block;
    max-width: 100%;
    height: auto;
}

.mp-about a {
    color: var(--mp-about-purple-dark);
    text-decoration: none;
}

.mp-about a:hover,
.mp-about a:focus {
    color: var(--mp-about-purple);
    text-decoration: none;
}


/* ============================================================
   HERO
   ============================================================ */

.mp-about-hero {
    padding: 46px 0 0;
}

.mp-about-hero__image {
    overflow: hidden;
    border: 1px solid var(--mp-about-border);
    border-radius: var(--mp-about-radius-lg);
    background: #fff;
}

.mp-about-hero__image img {
    width: 100%;
}


/* ============================================================
   MAIN LAYOUT
   ============================================================ */

.mp-about-main {
    padding: 52px 0 80px;
}

.mp-about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
    gap: 64px;
    align-items: start;
}

.mp-about-primary {
    min-width: 0;
}

.mp-about-aside {
    min-width: 0;
}


/* ============================================================
   INTRO
   ============================================================ */

.mp-about-intro {
    margin-bottom: 44px;
}

.mp-about-eyebrow {
    margin-bottom: 9px;

    color: var(--mp-about-purple-dark);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mp-about-title {
    max-width: 760px;
    margin: 0 0 24px;

    color: var(--mp-about-text);

    font-size: clamp(28px, 3vw, 40px);
    font-weight: 650;
    line-height: 1.16;

    letter-spacing: -0.025em;
}

.mp-about-lead {
    max-width: 780px;

    color: var(--mp-about-muted);
    font-size: 16px;
    line-height: 1.75;
}

.mp-about-lead > p:first-child {
    margin-top: 0;
}

.mp-about-lead > p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   TYPOGRAPHY INSIDE CMS CONTENT
   ============================================================ */

.mp-about-primary h2,
.mp-about-aside h2 {
    margin: 46px 0 20px;

    color: var(--mp-about-text);

    font-size: 22px;
    font-weight: 650;
    line-height: 1.3;

    letter-spacing: -0.015em;
}

.mp-about-aside h2 {
    margin-top: 30px;
    font-size: 19px;
}

.mp-about-primary p,
.mp-about-aside p {
    margin: 0 0 17px;
}

.mp-about-primary ul,
.mp-about-aside ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.mp-about-primary li,
.mp-about-aside li {
    position: relative;

    margin: 0 0 12px;
    padding-left: 25px;
}

.mp-about-primary li::before,
.mp-about-aside li::before {
    content: "";

    position: absolute;
    top: 0.68em;
    left: 2px;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--mp-about-purple);
}


/* ============================================================
   EXISTING CMS BLOCK — tegevussuunad
   Keep original classes
   ============================================================ */

.mp-about .tegevussuunad-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin: 20px 0 46px;
}

.mp-about .tegevussuunad-item {
    padding: 22px 22px 20px;

    border: 1px solid var(--mp-about-border);
    border-radius: var(--mp-about-radius);

    background: var(--mp-about-white);
    
    transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
    
}

.mp-about .tegevussuunad-item:hover {
        background-color: #faf8fc;
        border-color: #d9d1e3;
    }
}

.mp-about .tegevussuunad-header {
    display: flex;
    gap: 11px;
    align-items: center;

    margin-bottom: 13px;
}

.mp-about .tegevussuunad-header img {
    flex: 0 0 22px;

    width: 22px;
    height: 22px;

    object-fit: contain;
}

.mp-about .tegevussuunad-header strong {
    font-size: 15px;
    font-weight: 650;
}

.mp-about .tegevussuunad-header a {
    color: var(--mp-about-purple-dark);
}

.mp-about .tegevussuunad-header a:hover {
    color: var(--mp-about-purple);
}

.mp-about .tegevussuunad-line {
    height: 1px;

    margin: 0 0 13px;

    border: 0;

    background: var(--mp-about-border);
}

.mp-about .tegevussuunad-item p {
    margin: 0;

    color: var(--mp-about-muted);

    font-size: 14px;
    line-height: 1.6;
}


/* ============================================================
   EXISTING SECTION BLOCKS
   ============================================================ */

.mp-about .section-block-p,
.mp-about .section-block-y {
    margin: 20px 0 42px;
    padding: 26px 28px;

    border: 1px solid var(--mp-about-border);
    border-radius: var(--mp-about-radius);

    background: var(--mp-about-soft);
}

/* Remove the old strong purple "card" impression */
.mp-about .section-block-p {
    border-left: 3px solid var(--mp-about-purple);
}

/* International partnership */
.mp-about .section-block-y {
    border-left: 3px solid var(--mp-about-yellow);
    background: #fffaf0;
}

.mp-about .section-block-p > *:last-child,
.mp-about .section-block-y > *:last-child {
    margin-bottom: 0;
}


/* ============================================================
   SERVICES / SUBPAGES GENERATED BY pdoResources
   ============================================================ */

.mp-about-subpages {
    margin-top: 44px;
}

.mp-about-subpages > h2 {
    margin-top: 0;
}

.mp-about-subpages__list {
    border-top: 1px solid var(--mp-about-border);
}

/*
   Existing tpl=kids output can remain unchanged.
   This also catches the legacy .list output.
*/

.mp-about-subpages__list .list,
.mp-about .panel .list {
    margin: 0;
}


/* ============================================================
   LEGACY PANEL RESET
   ============================================================ */

.mp-about .panel {
    margin: 0;

    border: 0;
    border-radius: 0;

    box-shadow: none;
    background: transparent;
}

.mp-about .panel-default {
    border: 0;
}

.mp-about .panel-header {
    margin: 0;
}


/* ============================================================
   VIDEO
   ============================================================ */

.mp-about-video {
    position: relative;

    overflow: hidden;

    width: 100%;
    aspect-ratio: 16 / 9;

    margin-bottom: 34px;

    border-radius: var(--mp-about-radius);
    background: #ededee;
}

.mp-about-video iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* ============================================================
   RIGHT COLUMN
   ============================================================ */

.mp-about-aside-content {
    color: var(--mp-about-muted);
}

.mp-about-aside-content > h2:first-child {
    margin-top: 0;
}

.mp-about-aside-content .section-block-p {
    padding: 23px 24px;

    font-size: 14px;
    line-height: 1.65;
}

.mp-about-aside-content .section-block-p ul {
    margin-top: 18px;
}

.mp-about-aside-content .section-block-p li {
    margin-bottom: 11px;
}


/* ============================================================
   SUPPORT / AWARD IMAGE
   ============================================================ */

.mp-about-support-image,
.mp-about-aside .post-image {
    margin: 30px 0;

    overflow: hidden;

    border: 1px solid var(--mp-about-border);
    border-radius: var(--mp-about-radius);

    background: var(--mp-about-white);
}

.mp-about-support-image img,
.mp-about-aside .post-image img {
    width: 100%;
}


/* ============================================================
   CONTACT CTA
   ============================================================ */

.mp-about-contact {
    margin-top: 30px;
}

.mp-about-contact__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    width: 100%;

    padding: 11px 24px;

    border: 1px solid var(--mp-about-purple-dark);
    border-radius: 6px;

    background: var(--mp-about-purple-dark);

    color: #fff !important;

    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease;
}

.mp-about-contact__button:hover,
.mp-about-contact__button:focus {
    border-color: var(--mp-about-purple);
    background: var(--mp-about-purple);

    color: #fff !important;
}


/* ============================================================
   OLD BUTTON COMPATIBILITY
   ============================================================ */

.about-page .button-link-purple {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 11px 24px;

    border: 1px solid var(--mp-about-purple-dark);
    border-radius: 6px;

    background: var(--mp-about-purple-dark);

    color: #fff;

    font-weight: 650;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {

    .mp-about-hero {
        padding-top: 32px;
    }

    .mp-about-main {
        padding-top: 40px;
        padding-bottom: 64px;
    }

    .mp-about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .mp-about-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .mp-about-video,
    .mp-about-aside-content {
        margin: 0;
    }

    .mp-about-contact {
        grid-column: 1 / -1;
        margin-top: 0;
    }

}


@media (max-width: 767px) {

    .mp-about-hero {
        padding-top: 22px;
    }

    .mp-about-main {
        padding-top: 34px;
        padding-bottom: 52px;
    }

    .mp-about-title {
        margin-bottom: 20px;

        font-size: 29px;
        line-height: 1.2;
    }

    .mp-about-lead {
        font-size: 15px;
        line-height: 1.7;
    }

    .mp-about-primary h2 {
        margin-top: 38px;

        font-size: 20px;
    }

    .mp-about .tegevussuunad-box {
        grid-template-columns: 1fr;
    }

    .mp-about-aside {
        display: block;
    }

    .mp-about-aside-content {
        margin-top: 34px;
    }

    .mp-about-contact {
        margin-top: 28px;
    }

    .mp-about .section-block-p,
    .mp-about .section-block-y {
        padding: 22px;
    }

}


@media (max-width: 480px) {

    .mp-about-hero__image {
        border-radius: 6px;
    }

    .mp-about .tegevussuunad-item {
        padding: 19px;
    }

}
/* ============================================================
   ABOUT — KEY FIGURES / STATS
   ============================================================ */

.mp-about-stats {
    padding: 54px 0 56px;


    background: #ffffff;
}

.mp-about-stats__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 28px;
}

.mp-about-stats__eyebrow {
    display: block;

    color: var(--mp-about-purple-dark);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mp-about-stats__title {
    max-width: 560px;
    margin: 0;

    color: var(--mp-about-text);

    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: -0.015em;
    text-align: right;
}


/* GRID */

.mp-about-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    border: 1px solid var(--mp-about-border);
    border-radius: var(--mp-about-radius);

    overflow: hidden;
}


/* ITEM */

.mp-about-stat {
    position: relative;

    min-height: 205px;
    padding: 30px 30px 28px;

    border-right: 1px solid var(--mp-about-border);

    background: #ffffff;
}

.mp-about-stat:last-child {
    border-right: 0;
}


/* ICON */

.mp-about-stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 28px;

    border-radius: 8px;

    background: rgba(150, 90, 165, 0.08);
}

.mp-about-stat__icon svg {
    width: 27px;
    height: 27px;

    fill: none;
    stroke: var(--mp-about-purple-dark);
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* NUMBER */

.mp-about-stat__value {
    margin-bottom: 7px;

    color: var(--mp-about-text);

    font-size: clamp(28px, 2.6vw, 38px);
    font-weight: 700;
    line-height: 1;

    letter-spacing: -0.035em;
}


/* LABEL */

.mp-about-stat__label {
    max-width: 220px;

    color: var(--mp-about-muted);

    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}


/* SMALL BRAND ACCENT */

.mp-about-stat::after {
    content: "";

    position: absolute;
    bottom: -1px;
    left: 30px;

    width: 34px;
    height: 2px;

    background: var(--mp-about-yellow);
}


/* ============================================================
   INTERACTION
   ============================================================ */

@media (hover: hover) {

    .mp-about-stat {
        transition:
            background-color 0.18s ease,
            transform 0.18s ease;
    }

    .mp-about-stat:hover {
        background: #fafafa;
    }

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991px) {

    .mp-about-stats {
        padding: 44px 0 46px;
    }

    .mp-about-stats__header {
        align-items: flex-start;
    }

    .mp-about-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-about-stat {
        border-bottom: 1px solid var(--mp-about-border);
    }

    .mp-about-stat:nth-child(2n) {
        border-right: 0;
    }

    .mp-about-stat:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .mp-about-stats {
        padding: 38px 0 40px;
    }

    .mp-about-stats__header {
        display: block;

        margin-bottom: 24px;
    }

    .mp-about-stats__title {
        max-width: none;
        margin-top: 8px;

        font-size: 19px;
        text-align: left;
    }

    .mp-about-stats__grid {
        grid-template-columns: 1fr 1fr;
    }

    .mp-about-stat {
        min-height: 175px;

        padding: 24px 18px 22px;
    }

    .mp-about-stat__icon {
        width: 42px;
        height: 42px;

        margin-bottom: 20px;
    }

    .mp-about-stat__icon svg {
        width: 23px;
        height: 23px;
    }

    .mp-about-stat__value {
        font-size: 27px;
    }

    .mp-about-stat__label {
        font-size: 13px;
    }

    .mp-about-stat::after {
        left: 18px;
    }

}