﻿:root {
    --btn-close-sizes: 20px;
    --text-primary-color: rgb(51, 51, 51);
    --text-secondary-color: #655e5a;
    --text-secondary-color-hover: #493e53;
    --border-color: #e5e7eb;
    --top-menu-height: 40px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    width: 100dvw !important;
    max-width: 100%;
}
.c-body {
    min-height: 100dvh;
}
.main-content-block {
    flex: 1 0 calc(100vh - 80px);
}
.c-top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}
.search-card-body {
    padding: 20px 20px 10px;
}
/* boostrap classes override */
.c-body .navbar {
    padding: 5px 20px;
    flex-flow: row nowrap;
}
.c-body .navbar-toggler {
    border: none;
    padding: 0;
}
.main-content-top-row {
    display: flex;
    flex-flow: row nowrap;
    margin-bottom: 2rem;
}
.c-body .navbar-brand {
    padding: 0;
    margin-top: 0;
    margin-bottom: auto;
}
/* end bootstrap classes override */

.category-btns-box{
    justify-content: flex-start;
}
.rounded-xxl{
    border-radius: 30px !important;
}
.button-hard.active{
    font-weight: bold;
}
.category-btn {
    position:relative;
    padding: 0.25em 0.4em;
    color: black;
    font-size: 0.9em;
    border-radius: 30px;
    transition: background-color 0.5s ease-in-out; /* Плавная анимация */
    margin: 0px 0.1em 0.1em 0px;
    cursor: pointer;
    border:none;
}
.category-toggler{
    box-shadow: none !important;
}
.category-toggler:hover{
    background: transparent !important;
}
.category-btn:hover {
    background: rgba(255, 101, 163, 0.3);
}

.category-btn.active {
    display: block !important;
    position: relative; /* Для правильного позиционирования псевдоэлементов */
    display: inline-block;
    color: black;
    background: linear-gradient(45deg, rgba(227, 153, 34, 0.8) 0, rgba(255, 101, 163, 0.6) 50%, rgba(227, 153, 34, 0.8) 100%);
    background-size: 200% 100%; /* Делаем фон в 2 раза шире элемента */
    transition: all 0.5s ease-in-out; /* Плавная анимация */
    cursor: pointer;
    overflow: hidden;
}
.category-btn.active:hover{
    background-position: -100% 0; /* Сдвиг градиента на ширину элемента */
}

/* Отключаем анимацию при удалении класса active */
.no-transition {
    transition: none !important; /* Отключение анимации */
}
.bg-amber-pink{
    background: linear-gradient(45deg, rgba(255, 190, 84, 0.6) 0, rgba(255, 138, 185, 0.4) 50%, rgba(255, 193, 94, 0.3) 100%);
}
.bg-green{
    background: linear-gradient(5deg, rgba(50, 155, 84, 0.7) 0, rgba(30, 155, 85, 0.7) 50%, rgba(50, 143, 94, 0.7) 100%);
    color:white;
}
.button-amber-pink {
    border: 1px solid rgba(0,0,0,0);
    position: relative;
    display: inline-block;
    color: black;
    background: linear-gradient(45deg, rgba(227, 153, 34, 0.8) 0, rgba(255, 101, 163, 0.6) 50%, rgba(227, 153, 34, 0.8) 100%);
    background-size: 200% 100%; /* Делаем фон в 2 раза шире элемента */
    transition: all 0.5s ease-in-out; /* Плавная анимация */
    cursor: pointer;
    overflow: hidden;
    margin:0;
}
.button-amber-pink:hover{
    border: 1px solid rgba(0,0,0,1);
    background-position: -100% 0; /* Сдвиг градиента на ширину элемента */
    font-weight:500;
}
.button-danger {
    position: relative;
    display: inline-block;
    color: white;
    background: linear-gradient(45deg, rgba(150, 53, 100, 0.2) 0, rgba(55, 11, 85, 0.2) 50%, rgba(227, 53, 34, 0.2) 100%);
    background-size: 200% 100%; /* Делаем фон в 2 раза шире элемента */
    transition: all 0.5s ease-in-out; /* Плавная анимация */
    cursor: pointer;
    overflow: hidden;
    margin:0;
}
.button-danger:hover{
    color: #f89;
    background-position: 100% 0; /* Сдвиг градиента на ширину элемента */
    font-weight:500;
}
.required::after {
    content:'*';
    color: red;
    display: inline;
    position:absolute;
    right: 0px;
    top:0px;
}

.necessary-data{
    display:none !important;
}
.course-tab {
    background:linear-gradient(15deg, rgba(227, 153, 34, 0.2) 0, rgba(255, 101, 163, 0.2) 33%, rgba(227, 153, 34, 0.2) 66%, rgba(255, 101, 163, 0.4) 100%);;
    background-size:200% 100%;
    transition: all 0.5s ease-in-out;
}
.course-tab:hover{
    background-position:100% 0;
}
.lesson-block{
    position: relative;
}
.first-letter {
    background: linear-gradient(-45deg, rgba(255,240,200, 0.7) 0, rgba(255,0,200, 0.7) 100%), 
                linear-gradient(45deg, rgba(227, 153, 34, 0.4) 0, rgba(255, 101, 163, 0.5) 40%, rgba(255, 101, 163, 0.5) 50%, rgba(227, 153, 34, 0.4) 100%),
                linear-gradient(-45deg, rgba(227, 153, 34, 0.4) 0, rgba(255, 241, 163, 0.8) 50%, rgba(227, 153, 34, 0.4) 100%);
    font-weight: 600;
    font-size: 4rem;   
    margin-inline: auto;
}
.lesson-block::after {
    content:"";
    position: absolute;
    bottom:0;
    left:0;
    width:100%;
    height:5px;
    background:linear-gradient(15deg, white 0, white 50%, rgba(227, 153, 34, 0.2) 67%, rgba(255, 101, 163, 0.2) 84%, white 100%);
    transition: 0.5s ease-in-out;
    background-size:200% 100%;
}
.lesson-block:hover::after {
    background-position:100% 0;
}

.required-move-left::after {
    content:'*';
    color: red;
    display: inline;
    position:absolute;
    font-size:1.3em;
    right: 17px;
    top:-3px;
}

/* Базовые стили для кнопок */
.button {
    line-height: 1.3em;
    display: flex;
    width: 100%; /* w-full */
    margin-top: 1rem; /* mt-4 */
    justify-content: center;
    padding: 0.5em 1em;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Зеленая градиентная кнопка */
.button-green-green {
    background: linear-gradient(45deg, rgba(146, 241, 95, 0.8), rgba(35, 168, 103, 0.6));
}

.button-green-green:hover {
    box-shadow: 0 6px 8px rgba(0, 128, 0, 0.4);
}
.slick-slide {
    box-sizing: border-box;
    width: 450px !important;
    max-width: 75vw !important;
}
.course-card-container {
    flex: 0 0 336px;
}
.course-card-list {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem;
}

/* Розовая градиентная кнопка */
.button-primary {
    background: linear-gradient(45deg, rgba(245, 164, 59, 0.8) 0, rgba(205, 97, 255, 0.6) 50%, rgba(214, 66, 255, 0.6) 100%);
    background-size: 200% 100px;
}

.button-primary:hover {
    box-shadow: 0 6px 8px rgba(50, 30, 50, 0.5);
    background-position: 100% 0; /* Сдвиг градиента на ширину элемента */
}

.button-secondary {
    background: linear-gradient(45deg, rgba(245, 164, 59, 0.3) 0, rgba(205, 97, 255, 0.3) 50%, rgba(101, 66, 255, 0.3) 100%);
    background-size: 200% 100px;
}


.button-secondary-disabled {
    background: linear-gradient(45deg, rgba(245, 164, 59, 0.3) 0, rgba(205, 97, 255, 0.3) 50%, rgba(101, 66, 255, 0.3) 100%);
    box-shadow:none;
    cursor:default;
    background-size: 200% 100px;
}

.button-secondary:hover {
    box-shadow: 0 6px 8px rgba(50, 30, 50, 0.1);
    background-position: 100% 0; /* Сдвиг градиента на ширину элемента */
}

.button-pink {
    background: linear-gradient(45deg, rgba(255, 126, 185, 0.8), rgba(255, 101, 163, 0.6));

}

.button-pink:hover {
    box-shadow: 0 6px 8px rgba(255, 105, 180, 0.4);
}

/* Сиреневая градиентная кнопка */
.button-lilac {
    background: linear-gradient(45deg, rgba(176, 117, 255, 0.8), rgba(158, 103, 227, 0.6));
}

.button-lilac:hover {
    box-shadow: 0 6px 8px rgba(128, 0, 128, 0.4);
}

/* Бирюзовая градиентная кнопка */
.button-turquoise {
    background: linear-gradient(45deg, rgba(103, 227, 216, 0.8), rgba(63, 198, 204, 0.6));
}

.button-turquoise:hover {
    box-shadow: 0 6px 8px rgba(64, 224, 208, 0.4);
}

/* Пример использования */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-arrow path {
    transition: 0.5s;
}

.nav-arrow:hover path{
    stroke: rgb(101, 66, 155);
    stroke-width: 1.2px;
}


@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

.hover-pulse:hover {
    animation: pulse 1s infinite;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.card-mask {
    background: radial-gradient(circle at -200px -200px, rgba(251, 237, 237, 0.5) 0%, rgb(251, 237, 237, 0.9) 50%, rgba(251, 237, 237, 0.6) 90%, rgba(251, 237, 237, 0.1) 140%);
    mix-blend-mode: luminosity;
}

.course-card {
    background-color: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.progress-bar {
    transition: width 0.5s ease-out;
}
.card-mask-element{
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    form.login-form {
        padding: 2em;
    }
    .login-form__title {
        margin-bottom: 48px;
        font-size: 24px;
    }
    .takecourse {
        padding: 0 !important;
    }
    .takecourse .category-btns-box {
        gap: 0;
    }
    .takecourse__text{
        display: none;
    }
    .takecourse .title {
        margin-bottom: 1rem;
    }
    .takecourse .slick-list{
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .takecourse .course-card-container {
        margin-bottom: 0 !important;
    }
    .takecourse .slick-slide {
        width: 250px !important;
        max-width: 30% !important;
    }
    .category-btn {
        font-size: 13px;
        font-weight: 300;
    }
    .card-body {
        padding: 0 !important;
    }
    .course-card .button {
        min-height: fit-content;
        padding-block: 1em;
        border-top-right-radius: 0;
        border-top-left-radius: 0;
    }
    .course-card .card-title {
        margin: 1rem !important;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .course-mask-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
    }
    .card-mask-element{
        opacity: 0.3;
    }
    .footer-flex {
        flex-flow: column;
        gap: 1em;
    }
}
.login-pass.reminder {
    margin-bottom: 0 !important;
    text-align: left;
}

/* Additional color classes for better UX/UI */
.bg-success { background-color: #48bb78; }
.bg-warning { background-color: #ed8936; }
.bg-danger { background-color: #f56565; }
.text-success { color: #48bb78; }
.text-warning { color: #ed8936; }
.text-danger { color: #f56565; }
/* 
button.btn-close {
    position: absolute;
    right: calc(var(--btn-close-sizes));
    top: var(--btn-close-sizes);
    width: var(--btn-close-sizes);
    height: var(--btn-close-sizes);
    color:black;
    transition: 0.3s;
} */

button.btn-close:hover {
    color: darkslategray;
}

button.btn-close {
    position: absolute;
    right: calc(var(--btn-close-sizes));
    width: var(--btn-close-sizes);
    color:black;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10;
}

button.btn-close:hover{
    color: darkslategrey;
}
#navbarNav {
    justify-content: end;

}

.text-gray-600 {
    --tw-text-opacity: 1 !important;
    color: rgba(55, 65, 81, var(--tw-text-opacity)) !important;
}
.hover-text-indigo-600:hover {
    --text-opacity: 1;
    color: #5a67d8 !important;
    color: rgba(90,103,216,var(--text-opacity)) !important;
}

.nav-item.active {
    font-weight: 600;
}

.logo-link img {
    height: 100%;
    max-height: 75px;
    width: auto;
}
div.registration-form {
    margin:auto;
}
form.registration-form .login-form__title{
    margin-bottom: 0;
}
form.registration-form {
    display: flex;
    flex-flow: column;
    gap: 1em;
}
.course-info {
    display: flex;
    flex-flow: row;
    gap: 1em;
}
/* Semantic layout blocks */
.app-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1 0 auto;
    margin-top: 40px;
    width: min(100%, 1400px);
    margin-inline: auto;
    padding: 1rem 1rem 1.5rem;
    min-height: 90dvh;
}

.site-header {
    background: #fff;
    box-shadow: 0 1px 10px rgba(15, 23, 42, 0.08);
}

.site-nav__content {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
}

.site-nav__toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.site-nav__links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .25rem;
}

.site-nav__link {
    color: #374151;
    transition: color .2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus {
    color: var(--deep-blue);
}

.site-nav__link.active {
    color: var(--deep-blue);
    font-weight: 600;
}

.site-footer {
    background: #fff;
    padding: 2rem 0 2rem;
}

.site-footer__inner {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.site-footer__columns {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 2rem;
}

.site-footer__column {
    width: min(100%, 320px);
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.site-footer__link {
    color: #4b5563;
    transition: color .2s ease;
}

.site-footer__link:hover {
    color: var(--deep-blue);
}

.site-footer__meta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer__contact {
    font-size: .875rem;
    color: #4b5563;
}

.page-frame {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 0;
}

.page-frame--wide {
    width: min(100%, 1400px);
}

.page-frame--narrow {
    width: min(100%, 960px);
}
section {
    padding-block: 0;
}
.page-section {
    padding-block: 0;
}

.section-heading {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-primary-color);
}
h3.section-heading {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}
h5.section-heading {
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    font-weight: 500;
}

.card-heading {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-primary-color);
}

.section-copy,
.muted-text {
    color: #4b5563;
}

.surface-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.surface-card--soft {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.surface-card__body {
    padding: 1.5rem;
}

.surface-card__body--compact {
    padding: 1rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stack--sm {
    gap: .75rem;
}

.stack--lg {
    gap: 1.5rem;
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.row-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.row-start {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    line-height: 1em;
    gap: .5rem;
    color: var(--text-secondary-color);
    transition: color .2s ease;
    font-size: 1rem;
}

.back-link:hover {
    color: var(--text-secondary-color-hover);
}

.back-link__icon {
    flex: 0 0 auto;
}
.back-link__icon svg{
    aspect-ratio: 1;
    width: 1em;
}

.category-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .05rem .8rem;
    font-size: 0.8rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    background: #f3f4f6;
    color: var(--text-primary-color);
    cursor: pointer;
    user-select: none;
    transition: background-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

.category-chip:hover {
    background: var(--border-color);
}

.category-chip.is-active {
    background: linear-gradient(45deg, rgba(227, 153, 34, 0.8) 0, rgba(255, 101, 163, 0.6) 50%, rgba(227, 153, 34, 0.8) 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.category-chip--toggle {
    background: #fff;
    border-color: var(--border-color);
}

.category-chip--toggle:hover {
    background: #fff7fb;
}

.category-chip__check {
    display: none;
}

.category-chip__label {
    cursor: pointer;
    font-weight: 500;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .75rem 1rem;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.action-button:active {
    transform: translateY(1px);
}

.action-button--primary {
    background: linear-gradient(45deg, rgba(245, 164, 59, 0.8) 0, rgba(205, 97, 255, 0.6) 50%, rgba(214, 66, 255, 0.6) 100%);
    color: var(--text-primary-color);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.action-button--primary:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.action-button--secondary {
    background: var(--border-color);
    color: var(--text-primary-color);
}

.action-button--danger {
    background: linear-gradient(45deg, rgba(150, 53, 100, 0.2) 0, rgba(55, 11, 85, 0.2) 50%, rgba(227, 53, 34, 0.2) 100%);
    color: #fff;
}

.action-button--danger:hover {
    color: #f89;
}
.site-alert-container {
    position: fixed;
    inset: calc(var(--top-menu-height) + 1rem) 20px auto;
    display: flex;
    flex-flow: column nowrap;
    justify-content: start;
    gap: 10px;
    z-index: 100000000;
}
.site-alert {
    width: 100%;
    padding: .875rem 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-primary-color);
    backdrop-filter: blur(2px);
    background: #f3f4f6aa;
    cursor: pointer;
    transition: opacity 0.5s;
}

.site-alert--success {
    background: #d1fae5aa;
    color: #065f46;
}

.site-alert--warning {
    background: #fef3c7aa;
    color: #92400e;
}

.site-alert--error {
    background: #fee2e2aa;
    color: #991b1b;
}

.site-alert__close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.course-card-shell {
    width: 100%;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.course-card-shell__link {
    display: block;
    position: relative;
    height: 250px;
    color: inherit;
    text-decoration: none;
}

.course-card-shell__body {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.course-card-shell__title {
    margin: .25rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    width: 80%;
}

.course-card-shell__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.course-card-shell__tag {
    display: inline-flex;
    font-size: 0.8rem;
    padding: .25rem .75rem;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.course-card-shell__cta {
    margin-top: .5rem;
    height: 38px;
}

.course-favorite-toggle--floating {
    position: absolute;
    top: 0rem;
    right: 0rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.hero-card {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.hero-card__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
}

.hero-card__subtitle {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

.hero-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16rem;
    height: 16rem;
    margin-inline: auto;
    border-radius: 9999px;
    background: #fff;
}

.hero-card__icon {
    width: 8rem;
    height: 8rem;
    color: #4f46e5;
}

.content-grid {
    display: grid;
    gap: 2rem;
}

.content-grid--two {
    grid-template-columns: 1fr;
}

.content-grid--sidebar {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .content-grid--two {
        grid-template-columns: 2fr 1fr;
    }

    .content-grid--sidebar {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .hero-card {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    }
}

.table-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    font-size: 0.9rem;
}
.table-list__header,
.table-list__row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: .75rem 1rem;
    border-radius: 1rem;
}
.table-list__row.certificate-item .table-list__cell {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.table-list__header {
    background: linear-gradient(45deg, rgba(255, 190, 84, 0.6) 0, rgba(255, 138, 185, 0.4) 50%, rgba(255, 193, 94, 0.3) 100%);
    font-weight: 600;
}

.table-list__row {
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.table-list__cell {
    min-width: 0;
}

.notice-page,
.auth-page,
.support-page,
.certificate-page,
.error-page,
.sales-page {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.notice-panel,
.support-panel,
.certificate-check,
.error-card,
.sales-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.notice-panel__actions,
.support-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.support-panel__title,
.certificate-check__title,
.error-card__title,
.sales-card__title {
    margin: 0 0 1rem;
    font-weight: 600;
}

.support-panel__subtitle,
.certificate-check__subtitle,
.sales-card__subtitle {
    color: #4b5563;
}

/* Page specific blocks */

.last-lesson-box {
    background-color: white;
    height: 110px;
    position: relative;
    overflow: hidden;
    border-radius: 999px 100px 100px 999px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(240px, 300px);
    align-items: stretch;
    gap: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}
.last-lesson-box .graduate-hat {
    margin-block: auto;
    display: grid;
    align-items: center;
}
.last-lesson-box .graduate-hat svg {
    width: 100px;
    height: 100px;
}

.last-lesson-box:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.last-lesson-box__content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 1rem 1rem 1rem 0;
    font-size: 1rem;
}

.last-lesson-box__title {
    margin: 0;
    font-weight: 600;
}

.last-lesson-box__subtitle {
    margin: 0;
}

.last-lesson-box__media {
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.last-lesson-box__image,
.last-lesson-box__image-wrap,
.last-lesson-box__triangle {
    position: absolute;
    inset: 0;
}

.last-lesson-box__image {
    z-index: 0;
}

.last-lesson-box__triangle {
    z-index: 2;
    left: -30px;
}

.last-lesson-box__arrow {
    z-index: 3;
}

.double-arrow {
    transition: 0.5s;
    translate: 0;
}
.white-triangle {
    transition: 0.5s;
}
.last-lesson-box:hover .double-arrow {
    translate: 200px 0;
}

.takecourse-section,
.reviews-section {
    width: min(100%, 1200px);
    margin-inline: auto;
}

.takecourse-section__heading,
.reviews-section__heading {
    margin: 0 0 .5rem;
}

.takecourse-section__copy {
    margin: 0;
    color: #4b5563;
}

.reviews-section__panel {
    background: #fff;
    border-radius: 30px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.reviews-section__stars {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.reviews-section__number {
    font-weight: 600;
}

.filter-sidebar {
    display: block;
}

.filter-sidebar__title {
    margin: 0;
    font-size: 1.25rem;
}

.filter-sidebar__textarea {
    width: 100%;
    min-height: 4rem;
    max-height: 8rem;
    padding: .75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 1rem;
    resize: vertical;
    outline: none;
}

.filter-sidebar__textarea:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.filter-sidebar__controls {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.filter-sidebar__categories {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.filter-sidebar__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.course-page {
    width: min(100%, 1400px);
}

.course-page__grid {
    align-items: start;
}

.course-page__main,
.course-page__aside {
    min-width: 0;
}

.course-page__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}
.course-page__aside .course-page__title {
    display: none;
}

.course-description {
    overflow: hidden;
}

.course-description__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.course-description__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-description__content {
    color: #374151;
}

.course-description__details {
    position: relative;
    color: #374151;
}

.course-description__details summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .25rem;
    font-weight: 600;
    color: #2563eb;
}

.course-description__details summary::-webkit-details-marker {
    display: none;
}

.course-description__details[open] summary {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: .75rem 0;
}

.course-description__details[open] {
    padding-bottom: 2.5rem;
}

.course-description__details-body {
    margin-top: 1rem;
}

.course-module {
    overflow: hidden;
}

.course-module__toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 0;
    background: linear-gradient(15deg, rgba(227, 153, 34, 0.2) 0, rgba(255, 101, 163, 0.2) 33%, rgba(227, 153, 34, 0.2) 66%, rgba(255, 101, 163, 0.4) 100%);
    background-size: 200% 100%;
    transition: background-position .3s ease;
    text-align: left;
}

.course-module__toggle:hover {
    background-position: 100% 0;
}

.course-module__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.course-module__header-title,
.course-module__header-meta {
    font-weight: 600;
}

.course-module__lessons {
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.lesson-item {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.lesson-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(15deg, white 0, white 50%, rgba(227, 153, 34, 0.2) 67%, rgba(255, 101, 163, 0.2) 84%, white 100%);
    background-size: 200% 100%;
    transition: background-position .3s ease;
}

.lesson-item:hover::after {
    background-position: 100% 0;
}

.lesson-item__row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0.5rem 0;
    justify-content: space-between;
}

.lesson-status {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 2px solid #d1d5db;
    flex: 0 0 auto;
}

.lesson-status--done {
    border-color: transparent;
}

.lesson-status--done svg {
    display: block;
}

.course-progress-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-progress-card .course-image {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.progress-ring {
    position: relative;
    width: 5rem;
    height: 5rem;
}

.progress-ring__value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
}

.certificate-page {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.certificate-check {
    padding: 1.5rem;
}

.certificate-check__section {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.certificate-check__record {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem .75rem;
    border-radius: .75rem;
    background: #fff;
}

.certificate-check__record:nth-child(odd) {
    background: #f9fafb;
}

.certificate-check__label {
    min-width: 10rem;
    font-weight: 600;
}

.certificate-check__value {
    flex: 1 1 auto;
    min-width: 0;
}

.certificate-check__alert {
    display: none;
}

.certificate-check__alert.is-visible {
    display: flex;
}

.table-list__link {
    color: inherit;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #2563eb;
    font-weight: 500;
}

.action-link:hover {
    color: #1d4ed8;
}

.notice-page {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.notice-panel {
    padding: 2rem;
}

.support-page {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.support-panel {
    padding: 1.5rem;
}

.admin-notice {
    width: min(100%, 960px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.admin-notice__card {
    padding: 2rem;
    text-align: center;
}

.admin-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .course-page__grid {
        grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    }

    .filter-sidebar {
        display: block;
    }

    .certificate-check__section {
        gap: .5rem;
    }
}

.site-logo {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.site-logo__mark {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    height: 40px;
}

.courses-page__layout {
    align-items: start;
    grid-template-areas:
        "filter-toggle"
        "filter-sidebar"
        "courses-main";
}

.courses-page__filter-toggle-wrap {
    grid-area: filter-toggle;
}

.courses-page__sidebar {
    grid-area: filter-sidebar;
    min-width: 0;
}

.courses-page__main {
    grid-area: courses-main;
    min-width: 0;
}

.courses-page__filter-toggle-wrap {
    display: block;
}

.courses-page__filter-toggle {
    width: 100%;
}

@media (min-width: 768px) {
    .courses-page__layout {
        grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
        grid-template-areas: "courses-main filter-sidebar";
    }

    .courses-page__filter-toggle-wrap {
        display: none;
    }
}

.course-page__layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-page__back-row {
    display: flex;
}

.course-page__columns {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.course-page__main {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.course-page__header,
.course-page__content {
    min-width: 0;
}

.course-page__aside {
    flex: 0 0 clamp(320px, 30vw, 420px);
    min-width: 0;
    width: clamp(320px, 30vw, 420px);
}

.course-page__back {
    width: fit-content;
}

.course-page__header .course-page__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.details-hide {
    display: none;
}

.course-description__details[open] .details-show {
    display: none;
}

.course-description__details[open] .details-hide {
    display: inline;
}

.lesson-status__icon {
    width: 1rem;
    height: 1rem;
}

.course-progress-card .surface-card__body {
    padding: 1.5rem;
}

.courses-page__filter-toggle {
    width: 100%;
}

.last-lesson-box__media {
    display: none;
}

@media (min-width: 768px) {
    .last-lesson-box__media {
        display: block;
    }

    .course-page__title--desktop {
        display: block;
    }

    .course-page__title--mobile {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .course-page__title--desktop {
        display: none;
    }

    .course-page__title--mobile {
        display: block;
    }
}

.category-chip[hidden] {
    display: none !important;
}


.profile-page {
    width: min(100%, 1100px);
    margin-inline: auto;
    padding-inline: 1rem;
}
.subscription-info {
    margin-left: 25%;
    margin-top: 1rem;
}
.profile-card {
    padding: 2rem;
}
hr {
    height: 0.1px;
    background-color: var(--border-color);
    width: 100%;
}
.profile-info {
    display: flex;
    flex-flow: row nowrap;
    gap: 2rem;
    width: 100%;
    align-content: start;
}
.profile-info form {
    flex: 1;
}
.profile-header {
    display: flex;
    height: fit-content;
    margin-bottom: auto;
    align-items: center;
    gap: 1rem;
}
.profile-header .left-column{
    width: 25%;
    flex: 0 0 25%;
}
.profile-header .right-column{
    width: 75%;
    flex: 0 0 75%;
}
.profile-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, rgba(255,240,200, 0.7) 0, rgba(255,0,200, 0.7) 100%), linear-gradient(45deg, rgba(227, 153, 34, 0.4) 0, rgba(255, 101, 163, 0.5) 40%, rgba(255, 101, 163, 0.5) 50%, rgba(227, 153, 34, 0.4) 100%), linear-gradient(-45deg, rgba(227, 153, 34, 0.4) 0, rgba(255, 241, 163, 0.8) 50%, rgba(227, 153, 34, 0.4) 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-link {
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--text-primary-color);
    cursor: pointer;
}
.row {
    gap: 0.25rem;
}
.profile-info .col-md-9 {
    width: unset;
    flex: 1 0;
}
.row, .row > * {
    margin: 0;
    padding: 0;
}
.row .col-form-label {
    color: var(--text-tertiary-color);
    font-size: 0.95rem;
}
.docs-page {
    width: min(100%, 1100px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.docs-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.docs-list__header,
.docs-list__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.docs-list__header {
    background: #f8fafc;
    font-weight: 600;
}

.docs-list__cell {
    min-width: 0;
}

.docs-list__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #2563eb;
    font-weight: 500;
}

.docs-list__link:hover {
    color: #1d4ed8;
}

.catalog-page {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.catalog-page__layout {
    display: grid;
    gap: 2rem;
}

.catalog-page__sidebar,
.catalog-page__content {
    min-width: 0;
}

.catalog-page__list {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.catalog-card {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.catalog-card__image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.catalog-card__body {
    padding: 1rem;
}

.catalog-card__title {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.catalog-card__meta {
    color: #4b5563;
    margin-bottom: .75rem;
}

.catalog-card__button {
    display: block;
    width: 100%;
    padding: .75rem 1rem;
    border-radius: 1rem;
    background: #4f46e5;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.error-page {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.error-page__inner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.error-page__content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    text-align: center;
}

.error-page__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

.error-page__media {
    max-width: 50%;
}

.error-page__media--main {
    max-width: 200px;
    opacity: 0.5;
}

.notice-page__card {
    padding: 2rem;
}

.error-page__media--mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .error-page__media--desktop {
        display: none;
    }

    .error-page__media--mobile {
        display: block;
    }
}

.checkout-page {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.checkout-page__grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 2rem;
    align-items: start;
}

.checkout-card,
.checkout-form {
    min-width: 0;
}

.checkout-card {
    padding: 2rem;
}

.checkout-card__back {
    margin-bottom: 0;
}

.checkout-card__image {
    overflow: hidden;
    border-radius: 1.5rem;
}

.checkout-card__image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.checkout-card__title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
}

.checkout-card__meta {
    color: #6b7280;
    font-weight: 500;
}

.checkout-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.checkout-form__legend {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 3rem);
    font-weight: 600;
}

.checkout-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.checkout-form__grid--single {
    grid-template-columns: 1fr;
}

.checkout-form__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.checkout-form__summary:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.checkout-form__summary-label {
    color: #6b7280;
    font-weight: 600;
}

.checkout-form__summary-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.checkout-form__actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.checkout-form__note {
    color: #6b7280;
    font-size: .95rem;
}

.checkout-form__link {
    font-weight: 600;
}

.multiwidget {
    display: flex;
    gap: .75rem;
    flex-wrap: nowrap;
    width: 100%;
}
.lesson-page {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
}


.lesson-progress-card {
    border-top-left-radius: 0rem !important;
    border-top-right-radius: 0rem !important;
    border-bottom-right-radius: 1.25rem !important;
    border-bottom-left-radius: 1.25rem !important;
}

.lesson-page__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.lesson-page__back-row {
    display: flex;
    width: 100%;
}

.lesson-page__back {
    width: fit-content;
}

.lesson-page__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
}

.lesson-page__layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.lesson-nav {
    flex: 0 0 clamp(4rem, 6vw, 5rem);
    max-width: clamp(4rem, 6vw, 5rem);
    display: flex;
    justify-content: center;
    align-self: center;
}

.lesson-page__content {
    flex: 0 1 900px;
    max-width: 900px;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.lesson-page__media-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem;
    border: 1px solid rgb(243, 243, 243);
}

.lesson-page__video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
    border-bottom-right-radius: 0rem;
    border-bottom-left-radius: 0rem;
    background: #000;
}

.lesson-page__video-frame > * {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.lesson-page__video-frame video,
.lesson-page__video-frame iframe {
    object-fit: contain;
}

.lesson-page__materials,
.lesson-page__text {
    margin-top: 2rem;
}
