/* Școala Gimnazială Nr. 1 Ștefan Vodă. Fotografia și mesajul de sub ea. */
.jm-hero:has(#mod-custom222) {
    padding: 0;
    background: #f6f6f6;
    color: #151414;
}
.jm-hero .moduletable:has(> #mod-custom222),
.jm-hero .moduletable:has(> #mod-custom320) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}
#mod-custom222 .migration-carousel {
    display: block;
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: min(66.6667vw, 545px);
    min-height: 0;
    margin: 0 auto;
    aspect-ratio: auto;
    overflow: hidden;
    background: transparent;
}
#mod-custom222 .migration-carousel > figure {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}
#mod-custom222 .migration-carousel > figure img {
    display: block;
    width: min(817px, 100%);
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    box-sizing: border-box;
    border: 1px solid #e3e3e3;
}
#mod-custom222 .migration-carousel figcaption {
    box-sizing: border-box;
    position: absolute;
    left: 23.9583%;
    bottom: 16.5138%;
    width: 36.4583%;
    max-width: none;
    margin: 0;
    padding: 10px 30px;
    background: rgba(209, 23, 72, .9);
    color: #fff;
    font: 700 23px/1.1 Roboto, Arial, sans-serif;
    text-align: left;
    text-shadow: none;
    overflow-wrap: break-word;
}
/* Un singur diapozitiv are un indicator vizual. La mai multe, șablonul creează comenzile. */
#mod-custom222 .migration-carousel:has(> figure:only-of-type)::after {
    content: "";
    position: absolute;
    z-index: 2;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    pointer-events: none;
}
#mod-custom320 .cd-headline {
    padding: 25px 15px 30px;
    line-height: 1.1;
    text-align: center;
}
#mod-custom320 .cd-words-wrapper { white-space: normal; }

/* Cele opt scurtături cu pictogramă, grupate în perechi. */
.jm-top1 .jm-module-grid:has(#mod-custom317) {
    width: min(1170px, calc(100% - 30px));
}
@media (min-width: 1151px) {
    .jm-top1:has(#mod-custom317) { padding-block: 60px 75px; }
}
@media (max-width: 767px) {
    .jm-top1 .jm-module-grid:has(#mod-custom317) { grid-template-columns: minmax(0, 1fr); }
    .jm-top1 :is(#mod-custom317, #mod-custom318, #mod-custom319, #mod-custom353) .migration-feature {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }
}

/* Cele patru butoane de acces rapid. Întreaga suprafață deschide legătura. */
.jm-top2 .jm-module-grid:has(#mod-custom293) {
    width: min(1170px, calc(100% - 30px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}
.jm-top2 .moduletable:has(> :is(#mod-custom290, #mod-custom291, #mod-custom292, #mod-custom293)) {
    display: grid;
    place-items: stretch;
    box-sizing: border-box;
    min-height: 106px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
}
.jm-top2 .moduletable:has(> #mod-custom291) { background-color: #d11748; }
.jm-top2 :is(#mod-custom290, #mod-custom291, #mod-custom292, #mod-custom293),
.jm-top2 :is(#mod-custom290, #mod-custom291, #mod-custom292, #mod-custom293) :is(p, span, strong) {
    display: grid;
    margin: 0;
    padding: 0;
}
.jm-top2 :is(#mod-custom290, #mod-custom291, #mod-custom292, #mod-custom293) a {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-width: 0;
    padding: 16px 10px;
    color: #fff;
    font: 600 18.2px/1.1 Oswald, Arial, sans-serif;
    text-align: center;
    text-decoration: underline;
}
.jm-top2 :is(#mod-custom290, #mod-custom291) a {
    font-size: 16px;
    font-weight: 700;
}
.jm-top2 :is(#mod-custom290, #mod-custom291, #mod-custom292, #mod-custom293) a:focus-visible {
    outline: 3px solid #151414;
    outline-offset: -5px;
}

/* Caseta „Cele mai citite…” de pe prima pagină. */
.jm-home .jm-content-top > .moduletable.color1-ms.col-md-6 {
    align-self: start;
    padding: 30px;
    border-radius: 2px;
    background-color: var(--jm-school-bg, #d11748);
    color: var(--jm-school-text, #fff);
}
.jm-home .jm-content-top > .moduletable.color1-ms.col-md-6 > h3 {
    color: inherit;
}
.jm-home .jm-content-top > .moduletable.color1-ms.col-md-6 a {
    color: var(--jm-school-link, #fff);
    text-decoration: underline;
}

/* Panoul galben „Grădiniță” și „Activități”. */
.jm-content-top:has(> .moduletable > #mod-custom355) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}
.jm-content-top:has(#mod-custom355) > .moduletable { grid-column: 1 / -1; }
.jm-content-top:has(#mod-custom355) > .moduletable.col-md-6 { grid-column: auto; }
.jm-content-top > .moduletable:has(> #mod-custom355) {
    align-self: start;
    padding: 30px;
    margin: 0;
    background: #fac400;
    border-radius: 2px;
}
#mod-custom355 .row-fluid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}
#mod-custom355 .span12 { min-width: 0; margin: 0; }
#mod-custom355 .readmore-large {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 106px;
    padding: 18px clamp(14px, 2.45vw, 35px);
    margin: 0 !important; /* Spațiul dintre butoane este definit de grilă. */
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
    color: #fff;
    font: 600 clamp(22px, 3.2vw, 38px)/1.1 Roboto, Arial, sans-serif;
    text-transform: uppercase;
    text-decoration: none;
}
#mod-custom355 .readmore-large .icon-arrow-right {
    width: .95em;
    height: .75em;
    flex: none;
    background: currentColor;
    clip-path: polygon(0 33%, 55% 33%, 55% 0, 100% 50%, 55% 100%, 55% 67%, 0 67%);
}
#mod-custom355 .icon-arrow-right::before { content: none; }
#mod-custom355 .readmore-large:is(:hover, :focus-visible) {
    color: #5c4300;
    background: #fff;
}
#mod-custom355 .readmore-large:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Telefon, e-mail, adresă și pictogramele sociale. */
.jm-footer:has(#mod-custom322) {
    padding: 0;
    background: #0e4262;
}
.jm-footer .jm-footer-grid:has(#mod-custom322) {
    width: min(1170px, calc(100% - 30px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding-block: 60px 75px;
}
.jm-footer :is(#mod-custom322, #mod-custom323, #mod-custom324) .migration-feature {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 30px;
}
.jm-footer :is(#mod-custom322, #mod-custom323, #mod-custom324) .migration-feature-icon {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    border: 2px solid #d11748;
    border-radius: 50%;
    background: transparent;
    color: #d11748;
    font-size: 30px;
    line-height: 1;
}
.jm-footer #mod-custom322 .migration-feature-icon { font-size: 60px; }
.jm-footer #mod-custom324 .jm-school-feature-symbol:is(:hover, :focus-visible) .migration-feature-icon {
    background: #d11748;
    color: #fff;
}
.jm-footer :is(#mod-custom322, #mod-custom323, #mod-custom324) h3 {
    margin: 0;
    color: #fff;
    font: 600 16.1px/1.1 Roboto, Arial, sans-serif;
}
.jm-footer :is(#mod-custom322, #mod-custom323, #mod-custom324) p {
    margin: 5px 0 0;
    color: #fff;
    font: 400 14px/1.8 Roboto, Arial, sans-serif;
    overflow-wrap: anywhere;
}
.jm-footer :is(#mod-custom323, #mod-custom324) a { color: #fff; }
.jm-footer .jm-footer-bottom:has(#mod-custom315) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 30px;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 30px max(15px, calc((100% - 1170px) / 2));
    border: 0;
    margin: 0;
    background: #222a36;
}
.jm-footer-bottom:has(#mod-custom315) > div { margin: 0; }
.jm-footer-bottom:has(#mod-custom315) #mod-custom136 p { margin: 0; }
#mod-custom315 .migration-social { justify-content: center; }

@media (max-width: 979px) {
    #mod-custom222 .migration-carousel figcaption { font-size: 19px; padding: 10px 16px; }
    .jm-footer .jm-footer-grid:has(#mod-custom322) { gap: 20px; }
    .jm-footer :is(#mod-custom322, #mod-custom323, #mod-custom324) .migration-feature { gap: 14px; }
}
@media (max-width: 767px) {
    #mod-custom222 .migration-carousel figcaption {
        left: 5%;
        bottom: 16.5%;
        width: 90%;
        font-size: clamp(15px, 3.5vw, 20px);
    }
    #mod-custom320 .cd-headline { font-size: 24px !important; }
    .jm-top2 .jm-module-grid:has(#mod-custom293),
    .jm-content-top:has(> .moduletable > #mod-custom355),
    .jm-footer .jm-footer-grid:has(#mod-custom322),
    .jm-footer .jm-footer-bottom:has(#mod-custom315) { grid-template-columns: minmax(0, 1fr); }
    .jm-footer .jm-footer-grid:has(#mod-custom322) { gap: 44px; padding-block: 45px; }
    .jm-footer :is(#mod-custom322, #mod-custom323, #mod-custom324) .migration-feature {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .jm-footer .jm-footer-bottom:has(#mod-custom315) { gap: 20px; text-align: center; }
}
