.event-join-now {
    background-color: #3B80E8;
    border: 1px solid #3B80E8;
    border-radius: 10px;
    color: white;
}

.event-join-now:hover {
    background: #E3EEFF;
    border: 1px solid #E3EEFF;
    color: #296ED6;
}

.align-right {
    text-align: right !important;
}

.course-price {
    color: #6255A4;
    font-weight: 700;
    font-size: 20px;
}


/* ------------------------------- Left Modal ------------------------------- */

.modal-left {
    display: flex;
    flex-direction: column;
    height: 550px;
    left: 50%;
    max-height: calc(100vh - 100px);
    max-width: calc(100vw - 20px);
    opacity: 0;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: .2s;
    visibility: hidden;
    width: 600px;
    z-index: -1;
}

.modal_conditions {
    background: #fff;
    bottom: 0;
    height: auto;
    left: auto;
    max-height: none;
    max-width: 100%;
    opacity: 1;
    right: -110%;
    top: 0;
    transform: none;
    visibility: visible;
    width: 466px;
}

.modal-left.js-modal-shown {
    opacity: 1;
    visibility: visible;
    z-index: 9992;
}

.modal_conditions.js-modal-shown {
    right: 0;
}

.modal__content {
    background: #fff;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modal__header {
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    padding: 10px 54px;
    position: relative;
    width: 100%;
}

.modal__body {
    flex-grow: 1;
    padding: 25px 15px;
    position: relative;
}

.modal__footer {
    border-top: 1px solid #f0f0f0;
    padding: 15px 17px;
}

.modal__scrollable {
    bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 15px;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1;
}

.modal__closer.closer {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.closer {
    align-items: center;
    cursor: pointer;
    display: flex;
    height: 20px;
    justify-content: center;
    position: relative;
    width: 20px;
}

.modal__closer_left {
    left: 20px;
    right: auto;
}

.overlay-left {
    pointer-events: initial;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, .55);
    bottom: 0;
    height: 100vh;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: .2s;
    visibility: hidden;
    width: 100vw;
}

.overlay-left-show {
    opacity: 1;
    visibility: visible;
}

.cart-product-title {
    font-weight: 600;
    font-size: 16px;
    color: #00082a !important;
}

.cart-product-counter {
    font-weight: 600;
    font-size: 16px;
    color: #00082a !important;
}

.cart-product-price {
    font-weight: 600;
    font-size: 16px;
    color: #00a046 !important;
}

.cart-product-discount {
    font-size: 14px;
    text-decoration: line-through;
    color: #e3e3e3 !important;
    font-weight: 400;
}

.cart-text-warning {
    color: #dc9409;
    font-weight: 400;
}

.order-success-part-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #00082a99;
}

.order-success-part-value {
    font-weight: 600;
    font-size: 1.25rem;
    color: #00082a;
}

.order-success-part-border-bottom {
    border-bottom: 1px solid #e8e3e3;
}

.cart-product-border-bottom {
    border-bottom: 1px solid #e8e3e3;
}

.certificate-list-item {
    border: 1px solid #E8E8E8;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 5px;
}

.certificate-list-item:hover {
    box-shadow: 0 0 13px rgb(0 0 0 / 30%);
    transition: all 0.5sease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -webkit-transition: all 0.5sease;
}

/* ------------------------------- Alerts ------------------------------- */

.alert-new {
    display: flex;
    position: fixed;
    z-index: 100000;
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 18px 20px;
    max-width: calc(100vw - 60px);
    width: 400px;
    right: 30px;
    top: 100px;
    font-size: 15px;
}

.alert-new > .fas {
    font-size: 21px;
    padding-right: 10px;
}

.alert-new-success {
    background-color: rgb(231 244 238);
    border: 1px solid #40C284;
    color: #40C284;
}

.alert-new-warning {
    background-color: rgb(249, 246, 214);
    border: 1px solid #F57A31;
    color: #F57A31;
}

.alert-new-danger {
    background-color: rgba(248, 231, 231, 0.4);
    border: 1px solid #FF3A3A;
    color: #FF3A3A;
}

.btn-event-view {
    background-color: #00cc51;
    border: 1px solid #06b54b;
    border-radius: 10px;
    color: white;
}

.btn-event-view:hover {
    background-color: #ebfaf1;
    border: 1px solid #06b54b;
    border-radius: 10px;
    color: #00cc51;
}

.btn-event-pay {
    background-color: rgba(2, 182, 179, 0.12);
    border: 1px solid #15a799;
    border-radius: 10px;
    color: #1db9aa;
}

.btn-event-pay:hover {
    background-color: #1db9aa;
    border: 1px solid #1db9aa;
    border-radius: 10px;
    color: white;
}

.event-lebel-center {
    align-items: center;
    display: flex;
}


.status_not_actual {
    background-color: rgb(221 188 42 / 45%) !important;
    color: #644503 !important;
}

.status_process {
    background-color: rgb(10 146 3) !important;
    color: #ffffff !important;
}

.status_planned {
    background-color: rgb(0 184 224) !important;
    color: #ffffff !important;
}

.status_self_planning {
    background-color: #096b3e !important;
    color: #ffffff !important;
}

.status_finished {
    background-color: #444DAA !important;
    color: #ffffff !important;
}

.status_unknown {
    background-color: rgb(201 205 205 / 25%) !important;
    color: #959a9a !important;
}

.event-item:hover {
    box-shadow: 0 0 13px rgb(0 0 0 / 30%);
    transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
}

.event-lesson-order-number {
    color: #1e88e5;
    background-color: rgb(68 77 170 / 12%);
    border: 3px solid #1e88e5;
    border-radius: 50%;
    display: flex
;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 11px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.event-lesson-finished {
    color: #444daa;
    background-color: rgb(68 77 170 / 12%);
    border: 3px solid #444daa;
}

.event-lesson-process {
    color: rgb(10 146 3) !important;
    background-color: rgb(10 146 3 / 12%);
    border: 3px solid rgb(10 146 3);;
}
.event-lesson-planned {
    color: rgb(0 184 224);
    background-color: rgb(0 184 224 / 12%);
    border: 3px solid rgb(0 184 224);
}

.event-lesson-unknown {
    color: #6c757d;
    background-color: rgb(0 184 224 / 12%);
    border: 3px solid #6c757d;
}

.event-lesson-not_actual {
    color: #6c757d;
    background-color: rgb(0 184 224 / 12%);
    border: 3px solid #6c757d;
}

.event-lesson-status {
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 11px;
    border-radius: 10%;
}

/* ==========================================================================
   IESF — Покращення зовнішнього вигляду публічної частини сайту
   Усі правила нижче заскоуплені під .ies-site (клас body публічного layout),
   тож кабінет та адмінка лишаються без змін.
   ========================================================================== */

/* --------------------------- Design tokens -------------------------------- */
:root {
    --ies-primary: #1e88e5;
    --ies-primary-dark: #296ED6;
    --ies-accent: #6255A4;
    --ies-accent-warm: #FE9445;
    --ies-ink: #1f2a37;
    --ies-muted: #5b6b7c;
    --ies-bg-soft: #f5f8fc;
    --ies-border: #e7edf4;
    --ies-radius: 14px;
    --ies-radius-sm: 10px;
    --ies-shadow-sm: 0 2px 8px rgba(20, 40, 80, .06);
    --ies-shadow: 0 8px 24px rgba(20, 40, 80, .08);
    --ies-shadow-lg: 0 16px 40px rgba(20, 40, 80, .12);
    --ies-transition: all .25s ease;
}

html { scroll-behavior: smooth; }
.ies-site ::selection { background: rgba(30, 136, 229, .18); }

/* ------------------------------- Header ----------------------------------- */
.ies-site .header-fixed {
    box-shadow: 0 4px 18px rgba(20, 40, 80, .06);
}

.ies-site .main-nav li a { transition: var(--ies-transition); }

.ies-site .main-nav > li > a { position: relative; }

.ies-site .main-nav > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ies-primary), var(--ies-accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.ies-site .main-nav > li:hover > a::after,
.ies-site .main-nav > li.active > a::after { transform: scaleX(.55); }

.ies-site .main-nav > li .submenu {
    box-shadow: var(--ies-shadow);
    border: 1px solid var(--ies-border);
    border-radius: var(--ies-radius-sm);
    overflow: hidden;
    padding: 6px 0;
}

.ies-site .main-nav > li .submenu li a {
    border-radius: 6px;
    transition: var(--ies-transition);
}

.ies-site .main-nav > li .submenu li a:hover {
    background: var(--ies-bg-soft);
    color: var(--ies-primary);
    padding-left: 22px;
}

/* ----------------------------- Breadcrumb --------------------------------- */
.ies-site .breadcrumb-bar {
    background: linear-gradient(135deg, var(--ies-bg-soft) 0%, #eaf2fc 100%);
    padding: 26px 0;
    margin-bottom: 8px;
    box-shadow: inset 0 -1px 0 var(--ies-border);
}

.ies-site .breadcrumb-bar .breadcrumb { margin-bottom: 0; }

.ies-site .breadcrumb-bar .breadcrumb-item a {
    color: var(--ies-primary);
    text-decoration: none;
    transition: var(--ies-transition);
}

.ies-site .breadcrumb-bar .breadcrumb-item a:hover { color: var(--ies-primary-dark); }
.ies-site .breadcrumb-bar .breadcrumb-item.active { color: var(--ies-muted); }

/* ---------------------------- Content & type ------------------------------ */
.ies-site .content {
    padding-top: 34px;
    padding-bottom: 54px;
}

.ies-site .content h2 {
    font-weight: 700;
    color: var(--ies-ink);
    margin-bottom: 22px;
    padding-bottom: 14px;
    position: relative;
}

.ies-site .content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ies-primary), var(--ies-accent));
}

.ies-site .content h3 {
    font-weight: 700;
    color: var(--ies-ink);
    margin-top: 6px;
    padding-left: 14px;
    border-left: 4px solid var(--ies-primary);
}

.ies-site .content h4 { font-weight: 600; color: var(--ies-ink); }
.ies-site .content p { line-height: 1.75; color: #3c4a59; }
.ies-site .content ol li,
.ies-site .content ul li { padding: 3px 0; }

/* -------------------------------- Cards ----------------------------------- */
.ies-site .card {
    border: 1px solid var(--ies-border);
    border-radius: var(--ies-radius);
    box-shadow: var(--ies-shadow-sm);
    overflow: hidden;
    margin-bottom: 18px;
    transition: var(--ies-transition);
}

.ies-site .card:hover {
    box-shadow: var(--ies-shadow);
    transform: translateY(-2px);
}

.ies-site .card-header {
    background: var(--ies-bg-soft);
    border-bottom: 1px solid var(--ies-border);
    color: var(--ies-ink);
    font-weight: 600;
    padding: 16px 20px;
}

.ies-site .card-body { padding: 20px; }
.ies-site .card-body ul { margin-bottom: 0; }
.ies-site .card-body li { padding: 4px 0; }

/* ------------------------------- Tables ----------------------------------- */
.ies-site .content .table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--ies-radius-sm);
    overflow: hidden;
    box-shadow: var(--ies-shadow-sm);
}

.ies-site .content .table th { background: var(--ies-bg-soft); color: var(--ies-ink); }

.ies-site .content .table thead th {
    background: var(--ies-primary);
    color: #fff;
    border-color: rgba(255, 255, 255, .15);
    font-weight: 600;
}

.ies-site .content .table.table-bordered td,
.ies-site .content .table.table-bordered th { border-color: var(--ies-border); }

.ies-site .content .table.table-striped tbody tr:nth-of-type(odd) { background: #fafcff; }
.ies-site .content .table tbody tr { transition: background .2s ease; }
.ies-site .content .table tbody tr:hover { background: #eef5ff; }

/* ------------------------------- Buttons ---------------------------------- */
.ies-site .content .btn {
    border-radius: var(--ies-radius-sm);
    font-weight: 600;
    padding: 4px 10px;
    transition: var(--ies-transition);
}

.ies-site .content .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--ies-shadow);
}

.ies-site .content .btn-primary { background: var(--ies-primary); border-color: var(--ies-primary); }
.ies-site .content .btn-primary:hover { background: var(--ies-primary-dark); border-color: var(--ies-primary-dark); }
.ies-site .content .btn-outline-primary { color: var(--ies-primary); border-color: var(--ies-primary); }
.ies-site .content .btn-outline-primary:hover { background: var(--ies-primary); border-color: var(--ies-primary); color: #fff; }
.ies-site .content .btn-success { background: #1faa59; border-color: #1faa59; }
.ies-site .content .btn-success:hover { background: #178a48; border-color: #178a48; }

/* ------------------------------- Alerts ----------------------------------- */
.ies-site .content .alert {
    border: none;
    border-radius: var(--ies-radius-sm);
    box-shadow: var(--ies-shadow-sm);
    padding: 18px 22px;
}

.ies-site .content .alert-info {
    background: #eaf4ff;
    color: #1c5a96;
    border-left: 4px solid var(--ies-primary);
}

/* ---------------------- Listing cards (events/certs) ---------------------- */
.ies-site .event-item,
.ies-site .certificate-list-item {
    border: 1px solid var(--ies-border);
    border-radius: var(--ies-radius);
    transition: var(--ies-transition);
}

.ies-site .event-item:hover,
.ies-site .certificate-list-item:hover {
    box-shadow: var(--ies-shadow-lg);
    transform: translateY(-4px);
}

/* -------------------------------- Footer ---------------------------------- */
.ies-site .footer {
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--ies-primary), var(--ies-accent)) 1;
}

/* ------------------------------ Responsive -------------------------------- */
@media (max-width: 767px) {
    .ies-site .breadcrumb-bar { padding: 18px 0; }
    .ies-site .content { padding-top: 24px; padding-bottom: 36px; }
    .ies-site .content h2 { font-size: 1.5rem; }
}

/* ==========================================================================
   IESF — Блок «Актуальні новини» на головній (нова картка новини)
   Постер зверху, текст у тілі картки знизу — без накладання тексту на зображення.
   ========================================================================== */
.ies-site .blog-latest .ies-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ies-border);
    border-radius: var(--ies-radius);
    overflow: hidden;
    box-shadow: var(--ies-shadow-sm);
    transition: var(--ies-transition);
    text-decoration: none;
}

.ies-site .blog-latest .ies-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ies-shadow-lg);
    border-color: #cfe0f5;
}

.ies-site .blog-latest .ies-news-card__media {
    position: relative;
    aspect-ratio: 1 / 1;      /* єдина квадратна область прев'ю для всіх карток */
    overflow: hidden;
    padding: 10px;            /* поля навколо постера */
    background: radial-gradient(circle at 50% 35%, #14315a 0%, #0b1f3a 100%);
}

.ies-site .blog-latest .ies-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* постер показується ПОВНІСТЮ, без обрізання; змінити на cover для обрізання під квадрат */
    display: block;
    border-radius: 8px;
    transition: transform .4s ease;
}

.ies-site .blog-latest .ies-news-card:hover .ies-news-card__media img {
    transform: scale(1.05);
}

.ies-site .blog-latest .ies-news-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    padding: 18px 20px 20px;
}

.ies-site .blog-latest .ies-news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ies-primary);
    font-size: 13px;
    font-weight: 600;
}

.ies-site .blog-latest .ies-news-card__title {
    margin: 0;
    color: var(--ies-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    /* постер уже містить повний заголовок, тож тут лише короткий підпис у 2 рядки */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ies-site .blog-latest .ies-news-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--ies-primary);
    font-size: 14px;
    font-weight: 600;
    transition: gap .2s ease;
}

.ies-site .blog-latest .ies-news-card:hover .ies-news-card__more {
    gap: 14px;
}

@media (max-width: 991px) {
    .ies-site .blog-latest .ies-news-card { margin-bottom: 24px; }
}
