/* --- Загальне скидання стилів для обгорток каруселей --- */
.fcs-carousel-wrapper div,
.fcs-carousel-wrapper span,
.fcs-carousel-wrapper p,
.fcs-carousel-wrapper h1,
.fcs-carousel-wrapper h2,
.fcs-carousel-wrapper h3,
.fcs-carousel-wrapper h4,
.fcs-carousel-wrapper h5,
.fcs-carousel-wrapper h6,
.fcs-carousel-wrapper ul,
.fcs-carousel-wrapper ol,
.fcs-carousel-wrapper li {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    box-sizing: border-box;
}

/* Окреме, менш агресивне скидання для посилань та кнопок */
.fcs-carousel-wrapper a,
.fcs-carousel-wrapper button {
    font-family: inherit;
    color: inherit;
    font-size: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Стилі для контенту всередині слайдів --- */
.fcs-course-kicker {
    font-size: 16px;
    color: #555555;
    display: block;
    line-height: 1.4;
}

.fcs-course-title {
    font-size: 32px !important;
    color: #3c5e32;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    margin: 15px 0 !important;
}

.fcs-course-timing,
.fcs-course-description,
.fcs-course-cost {
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
}

/* --- СТИЛІ ДЛЯ ЛЕЙБЛІВ --- */
.fcs-label {
    font-weight: 700 !important; /* Зроблено жирнішим */
    color: #1e293b;
    margin-right: 5px;
}

/* --- ВІДСТУП ДЛЯ ВАРТОСТІ --- */
.fcs-course-cost {
    margin-bottom: 15px !important; /* Додано нижній відступ */
}


.fcs-course-description p,
.fcs-course-description ul,
.fcs-course-description ol {
    margin-bottom: 0.8em;
}
.fcs-course-description li {
    margin-bottom: 0.4em;
}
.fcs-course-description ul, .fcs-course-description ol {
    padding-left: 20px;
}
.fcs-course-description h1, .fcs-course-description h2, .fcs-course-description h3,
.fcs-course-description h4, .fcs-course-description h5, .fcs-course-description h6 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/* --- Стилі для кнопок "Записатись на курс" та Telegram --- */
.fcs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 25px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border-width: 2px;
    border-style: solid;
    text-align: center;
    line-height: 1;
}

.fcs-button-enroll {
    color: #FFFFFF  !important;
    background-color: var(--ast-global-color-0, #3c8923)    !important;
    border-color: var(--ast-global-color-0, #3c8923)    !important;
    flex-grow: 1    !important;
    min-width: 150px    !important;
}
.fcs-button-enroll:hover {
    background-color: var(--ast-global-color-1, #53b75f)    !important;
    border-color: var(--ast-global-color-0, #53b75f)    !important;
}

.fcs-button-telegram-icon {
    width: 44px    !important;
    height: 44px    !important;
    padding: 0    !important;
    border-radius: 50%    !important;
    background-color: var(--ast-global-color-0, #3c8923)    !important;
    border-color: var(--ast-global-color-0, #3c8923)    !important;
    flex-shrink: 0    !important;
    display: inline-flex    !important;
    align-items: center    !important;
    justify-content: center    !important;
}
.fcs-button-telegram-icon:hover {
    background-color: var(--ast-global-color-1, #53b75f)    !important;
    border-color: var(--ast-global-color-0, #53b75f)    !important;
}
.fcs-telegram-svg-icon {
    width: 24px;
    height: 24px;
    fill: #FFFFFF;
}

/* --- Стилі для тултіпа --- */
.fcs-button-wrapper {
    position: relative;
    display: flex;
    flex-grow: 1;
}

.fcs-button-wrapper .fcs-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    color: #FFFFFF;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.4;
    z-index: 1000;
    transition: opacity 0.25s ease, visibility 0s 0.25s, transform 0.25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    width: auto;
    min-width: 260px;
    max-width: 320px;
    pointer-events: none;
    white-space: normal;
    text-align: left;
}
.fcs-button-wrapper .fcs-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}
.fcs-button-wrapper:hover .fcs-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}
.fcs-tooltip-content a {
    color: #53b75f;
    text-decoration: underline;
    font-weight: normal;
    font-size: inherit;
    pointer-events: auto;
}
.fcs-tooltip-content a:hover {
    text-decoration: none;
}

/* --- Стилі для повідомлення "Немає курсів" --- */
.fcs-no-courses-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border: 1px dashed #dddddd;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 700px;
}
.fcs-no-courses-message .fcs-text-base {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}
.fcs-no-courses-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 25px;
    background-color: var(--ast-global-color-0, #3c8923);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    border: 2px solid var(--ast-global-color-0, #3c8923);
    line-height: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-top: 10px;
}
.fcs-no-courses-link:hover {
    background-color: var(--ast-global-color-1, #53b75f);
    border-color: var(--ast-global-color-1, #53b75f);
    color: #FFFFFF;
}