/* =========================================
   Koolitused Shortcodes – ühine CSS
   ========================================= */

/* ─── Ühised stiilid ─────────────────────── */

.posts-container {
    margin-bottom: 75px;
}

.cover-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.toimunud-koolitused {
    max-height: 0px;
    transition: max-height 0.3s;
    overflow: hidden;
    margin-bottom: 75px;
}

.toimunud-koolitused p {
    margin-bottom: 0;
    border-bottom: 1px solid #e0ded9;
    padding: 3px 0px;
}

.toimunud-open {
    max-height: 2000px;
}


/* ─── [sisekoolitused] ───────────────────── */

.sisekoolitused-intro {
    margin-top: 75px;
}

.koolitus--sise {
    position: relative;
    display: flex;
    justify-content: space-between;
    transition: background 0.1s;
    border-bottom: 1px solid #e0ded9;
    padding: 25px 0px;
}

.koolitus--sise::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 0;
    width: 15px;
    height: 100%;
    transition: background 0.1s;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.koolitus--sise::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 0;
    width: 15px;
    height: 100%;
    transition: background 0.1s;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.koolitus--sise:first-child {
    border-top: 1px solid #e0ded9;
}

.koolitus--sise:hover {
    background: #f8fbfa;
}

.koolitus--sise:hover::before {
    background: #f8fbfa;
}

.koolitus--sise:hover::after {
    background: #f8fbfa;
}

.koolitus--sise:hover .button {
    background: #00b774;
}

.left-side p {
    margin: 0 !important;
    color: #575757;
}

.left-side {
    display: flex;
    flex-direction: column;
    width: 80%;
}

.left-side h3 {
    font-size: 24px;
    color: #414141;
    line-height: 34px;
    margin-bottom: 5px !important;
}

.right-side {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 15%;
}

.right-side a {
    margin: 0 !important;
}

.koolitaja-nimi span {
    font-weight: 700;
}

.posts-container--sise .button {
    padding: 10px 20px !important;
    pointer-events: none !important;
    min-width: 100px;
}

.sisekoolitused-heading {
    font-size: 28px;
    margin-top: 100px;
    font-weight: 500;
    border-bottom: 1px solid;
    width: auto;
    display: inline-block;
}

@media only screen and (max-width: 960px) {
    .koolitus--sise {
        flex-direction: column;
    }

    .sisekoolitused-heading {
        font-size: 22px;
    }

    .right-side {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .left-side {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .left-side p {
        margin-bottom: 15px !important;
    }

    .left-side h3 {
        font-size: 18px;
        line-height: 25px;
    }
}


/* ─── [avakoolitused] ────────────────────── */

.koolitus--ava {
    position: relative;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e0ded9;
    transition: background 0.15s;
    padding: 15px 0px;
}

.koolitus--ava:hover {
    background: #f8fbfa;
}

.koolitus--ava:hover .button {
    background: #00b774;
}

.koolitus--ava::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 0;
    width: 15px;
    height: 100%;
    transition: background 0.1s;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.koolitus--ava::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 0;
    width: 15px;
    height: 100%;
    transition: background 0.1s;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.koolitus--ava:hover::before {
    background: #f8fbfa;
}

.koolitus--ava:hover::after {
    background: #f8fbfa;
}

.month-category {
    margin-top: 75px;
}

.posts-container--ava .button {
    padding: 10px 20px !important;
    pointer-events: none !important;
}

.top-side {
    width: 100%;
    display: flex;
    margin-top: 20px;
    align-items: center;
}

.top-side p {
    margin: 0;
    line-height: 1;
}

.bottom-side {
    padding-left: 80px;
}

.bottom-side a {
    font-size: 24px;
    line-height: 1.3;
}

.date-cont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 50px;
    background: #4d4d4d;
    color: white;
    margin-right: 30px;
}

.date-cont p {
    margin: 0 !important;
    line-height: 1;
}

.koolituse-kuupaev-top {
    font-size: 22px;
}

@media only screen and (max-width: 700px) {
    .bottom-side {
        width: 100%;
        padding-left: 0px;
        margin-top: 30px;
    }

    .toimunud-cont {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ─── [tagasiside] ───────────────────────── */

#tagasiside-sektsioon,
#tagasiside-sektsioon * {
    color: #000000 !important;
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

h3 {
    margin-top: 75px;
}

.feedback-form {
    margin-bottom: 75px;
}

.feedback-form label {
    display: inline;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.8;
}

.feedback-form input[type=text],
.feedback-form textarea {
    width: 100%;
    box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
    border: none;
    background-color: #f5f7f8;
}

.feedback-form input[type=radio] {
    cursor: pointer;
    margin-right: 10px;
}

.feedback-form input[type=text]:focus,
.feedback-form textarea:focus {
    background-color: #f7fbfd !important;
}

.question {
    margin: 20px 0 5px 0;
    font-weight: 600;
    color: #000000;
}

.question-expl {
    font-weight: initial;
}

.asterix {
    color: red;
}

.palun-selgitage {
    margin-left: 10px;
    color: red;
    display: none;
}

#recommended {
    padding-bottom: 75px;
    padding-top: 75px;
    box-sizing: border-box;
}

.recommended-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, 31%);
    justify-content: space-between;
}

.recommended-links .koolitus a {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.recommended-links .koolitus {
    width: 100%;
    cursor: pointer;
    margin-bottom: 35px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    padding: 20px;
}

.img-cont {
    position: relative;
    padding-top: 68%;
}

.recommended-links .koolitus .img-cont img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

#already-answered a {
    padding-left: 10px;
    text-decoration: underline;
    cursor: pointer;
}

.loader {
    display: none;
    color: #00d285;
    font-size: 20px;
    margin: 100px auto;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    text-indent: -9999em;
    animation: load4 1.3s infinite linear;
}

@keyframes load4 {
    0%, 100% { box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0; }
    12.5%    { box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em; }
    25%      { box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em; }
    37.5%    { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em; }
    50%      { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em; }
    62.5%    { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em; }
    75%      { box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0; }
    87.5%    { box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em; }
}

.eelregistreerimise-plokk {
    border: 1px solid #005749;
    border-radius: 8px;
    padding: 32px;
    margin-top: 40px;
    margin-bottom: 30px;
    background: #f8fbfa;
}

.eelregistreerimise-plokk h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #1f1f1f;
    font-size: 42px;
    line-height: 1.2;
}

.eelregistreerimise-intro {
    margin-bottom: 28px;
    color: #575757;
    font-size: 16px;
    line-height: 1.7;
}

.eelregistreerimise-vorm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #222;
    font-size: 16px;
}

.eelregistreerimise-vorm input[type="text"],
.eelregistreerimise-vorm input[type="email"],
.eelregistreerimise-vorm input[type="tel"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    margin-bottom: 18px;
    border: 1px solid #b7c9c4 !important;
    border-radius: 6px;
    background: #ffffff !important;
    color: #222;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 52px;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.eelregistreerimise-vorm input[type="text"]:focus,
.eelregistreerimise-vorm input[type="email"]:focus,
.eelregistreerimise-vorm input[type="tel"]:focus {
    border-color: #005749 !important;
    outline: none;
    box-shadow: 0 0 0 1px #005749 !important;
    background: #ffffff !important;
}

#eel-submit-btn,
.eelregistreerimise-vorm button {
    display: inline-block;
    background: #005749 !important;
    color: #ffffff !important;
    border: 1px solid #005749 !important;
    border-radius: 6px;
    padding: 13px 26px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none !important;
    transition: background .15s ease, border-color .15s ease;
}

#eel-submit-btn:hover,
.eelregistreerimise-vorm button:hover {
    background: #00b774 !important;
    border-color: #00b774 !important;
    color: #ffffff !important;
}

.eel-loader,
.eel-success,
.eel-error {
    margin-top: 15px;
    font-weight: 600;
    font-size: 15px;
}

.eel-success { color: #0b7a4b; }
.eel-error   { color: #b42318; }

.eelregistreerimise-marge {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.7;
    color: #6b6b6b;
}

@media only screen and (max-width: 1100px) {
    .recommended-links {
        grid-template-columns: repeat(auto-fill, 48%);
    }
}

@media only screen and (max-width: 768px) {
    .eelregistreerimise-plokk {
        padding: 22px;
    }
    .eelregistreerimise-plokk h2 {
        font-size: 32px;
    }
    .eelregistreerimise-vorm input[type="text"],
    .eelregistreerimise-vorm input[type="email"],
    .eelregistreerimise-vorm input[type="tel"] {
        height: 48px;
        line-height: 48px;
    }
}

@media only screen and (max-width: 600px) {
    .recommended-links {
        grid-template-columns: repeat(auto-fill, 98%);
    }
}
