:root {
    --btn-close-sizes: 20px;
}

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

body {
    width: 100vw !important;
}

.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: 700;
    font-size: 3rem;
    
}
.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 {
    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;
}
.slick-slide .course-card-container {
    max-width:100% !important;
}

/* Розовая градиентная кнопка */
.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) {
    .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;
}
.main-content-block {
    flex-basis: 75vh;
}

/* 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; }
.popup{
    position: fixed;
    translate: -50% -50%;
    top: 50vh;
    left: 50vw;
    z-index: 1000;
}
/* 
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-700 {
    --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: 700;
}

.last-lesson-box{
    height: 138px;
}
.logo-link img {
    height: 100%;
    max-height: 75px;
    width: auto;
}