/* Banda de contact din JM Education6. */
.jm-footer:has(.jm-footer-grid #mod-custom150) {
    padding-block-start: 0;
}

.jm-footer-mod:has(#mod-custom150) {
    background-color: #0e4262;
}

.jm-footer-mod .jm-footer-grid:has(#mod-custom150) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding-block: 60px 75px;
}

.jm-footer-grid > .moduletable:has(> #mod-custom150) {
    order: -1;
}

.jm-footer-grid :is(#mod-custom150, #mod-custom151, #mod-custom152) .migration-feature {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 0 30px;
    min-height: 104px;
}

.jm-footer-grid :is(#mod-custom150, #mod-custom151, #mod-custom152) .migration-feature-icon {
    grid-area: 1 / 1 / 3 / 2;
    align-self: center;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin: 0;
    padding: 0;
    border: 2px solid #fac400;
    border-radius: 50%;
    color: #fac400;
    background: transparent;
    font-size: 30px;
}

.jm-footer-grid #mod-custom150 .migration-feature-icon {
    font-size: 60px;
}

.jm-footer-grid :is(#mod-custom150, #mod-custom151, #mod-custom152) .migration-feature-icon:hover {
    background: #fac400;
    color: #0e4262;
}

.jm-footer-grid :is(#mod-custom150, #mod-custom151, #mod-custom152) .stefan-feature-copy {
    grid-area: 1 / 2 / 3 / 3;
    align-self: center;
    min-width: 0;
}

.jm-footer-grid :is(#mod-custom150, #mod-custom151, #mod-custom152) h3 {
    grid-area: 1 / 2;
    align-self: end;
    margin: 0;
    color: #fac400;
    font: 600 1.15em/1.1 Roboto, Arial, sans-serif;
}

.jm-footer-grid :is(#mod-custom150, #mod-custom151, #mod-custom152) p {
    grid-area: 2 / 2;
    align-self: start;
    margin: 5px 0 0;
    color: white;
    font: 400 14px/1.8 Roboto, Arial, sans-serif;
    overflow-wrap: anywhere;
}

/* Telefonul și adresa conțin o culoare neagră salvată direct în editor. */
.jm-footer-grid :is(#mod-custom150, #mod-custom151, #mod-custom152) p :is(span, a) {
    color: inherit !important;
}

.jm-footer-grid #mod-custom152 a:hover,
.jm-footer-grid #mod-custom152 a:focus-visible {
    text-decoration: underline;
}

/* Cele două panouri alăturate de pe prima pagină. */
.jm-home .jm-content-top > .moduletable:has(> .mostread),
.jm-home .jm-content-top > .moduletable:has(> #mod-custom149) {
    align-self: flex-start;
    box-sizing: border-box;
    padding: 30px;
    margin: 0;
    border-radius: 2px;
}

.jm-home .jm-content-top > .moduletable:has(> .mostread) > h3 {
    margin: 0 0 30px;
    font-size: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.jm-home .jm-content-top .mostread.mod-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jm-home .jm-content-top .mostread.mod-list a {
    text-decoration: underline;
}

.jm-home .jm-content-top > .moduletable:has(> #mod-custom149) {
    background: #fac400;
}

#mod-custom149 .jm-buttons .row-fluid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    margin: 0;
}

#mod-custom149 .jm-buttons .span12 {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

#mod-custom149 a.readmore-large {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 30px clamp(20px, 5.6vw, 80px) 30px 35px;
    margin: 0;
    border: 2px solid white;
    border-radius: 2px;
    background: transparent;
    color: white;
    font: 600 clamp(24px, 3vw, 38px)/1.1 Roboto, Arial, sans-serif;
    text-align: start;
    text-transform: uppercase;
    text-decoration: none;
}

#mod-custom149 a.readmore-large:is(:hover, :focus-visible) {
    background: white;
    color: #0e4262;
}

/* Întreaga casetă „Activități” deschide linkul existent. */
.jm-top2 .jm-position > .moduletable:has(> #mod-custom141) {
    position: relative;
}

.jm-top2 #mod-custom141 a {
    font: 600 18.2px/1.1 Roboto, Arial, sans-serif;
    text-transform: uppercase;
}

.jm-top2 #mod-custom141 a::after {
    position: absolute;
    inset: 0;
    content: "";
}

#mod-custom149 a:focus-visible,
.jm-top2 #mod-custom141 a:focus-visible::after {
    outline: 3px solid #0e4262;
    outline-offset: 2px;
}

@media (max-width: 979px) {
    .jm-footer-mod .jm-footer-grid:has(#mod-custom150) {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-block: 40px;
    }
}

@media (max-width: 767px) {
    .jm-footer-grid :is(#mod-custom150, #mod-custom151, #mod-custom152) .migration-feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        text-align: center;
    }

    .jm-footer-grid :is(#mod-custom150, #mod-custom151, #mod-custom152) .migration-feature-icon {
        flex: none;
        margin-block-end: 20px;
    }

    .jm-footer-grid :is(#mod-custom150, #mod-custom151, #mod-custom152) :is(h3, p) {
        align-self: center;
    }

    .jm-home .jm-content-top > .moduletable:has(> #mod-custom149),
    .jm-home .jm-content-top > .moduletable:has(> .mostread) {
        padding: 20px;
    }

    #mod-custom149 .jm-buttons .row-fluid {
        gap: 16px;
    }

    #mod-custom149 a.readmore-large {
        padding: 20px;
    }
}
