/* Slider dots color to gray */
.slick-dots li button:before,
.slick-dots li.slick-active button:before {
    color: #8E8E8E !important;
    opacity: 1;
}

/* Course titles and link color */
.section #ourcourses .item__title,
.section #ourcourses .link-default {
    color: #808DFF;
}

/* Group rows background */
.group__box:not(.group__box--header) {
    background: #D9D9D9 !important;
}

/* Stage numbers background blue */
.stage__number span {
    background: #808DFF !important;
    color: #fff !important;
}


/* Scroll-to-top button blue */
.scrolltop span {
    background: #808DFF !important;
    color: #fff !important;
}
.scrolltop svg use {
    stroke: #fff;
}
.hero-logo {
    bottom: unset !important;
    top: 10px !important;
}

.faq__item.open-item .faq__item-arrow svg {
    stroke: #fff !important;
}

.faq__item .faq__item-arrow svg {
    stroke: #808DFF !important;
}

.faq__item.open-item .faq__item-arrow {
    background: #808DFF !important;
}

.faq__item-arrow {
    border-color: #808DFF !important;

}

.link-red {
    background: #808DFF !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0px rgb(136 141 255 / 25%);
    }
    70% {
        box-shadow: 0 0 0 8px rgb(136 141 255 / 25%);
    }
    100% {
        box-shadow: 0 0 0 0px rgb(136 141 255 / 25%);
    }
}

@media screen and (max-width: 1200px) {
    .hero-logo {
        display: none;
    }
}

.school__editor li::before{
    content: '';
    display: block;
    width: 19px;
    height: 19px;
    position: absolute;
    left: 0;
    top: 3px;
    background: url("https://aura-school.com/wp-content/themes/wp-bootstrap-starter-master/img/star.svg") no-repeat center;
    filter: hue-rotate(220deg) saturate(1.2) brightness(0.8);
    background-size: contain;
}

#main-nav > ul > li > a:before {
    content: '';
    display: block;
    width: 19px;
    height: 19px;
    background: url("https://aura-school.com/wp-content/themes/wp-bootstrap-starter-master/img/star.svg") no-repeat center;
    filter: hue-rotate(220deg) saturate(1.2) brightness(0.8);
    background-size: contain;
    min-width: 19px;
    margin-right: 6px;
    position: relative;
    top: 0px;
}


.newbox .item {
    background: #eaecec !important;
}

.group__link button:hover {
    background: #808DFF !important;
}

.slick-dots button {
    border-color: #8E8E8E !important;
}

.slick-dots .slick-active button {
    background: #8E8E8E !important;
}

.load-btn {
    border-color: #808DFF !important;
    color: #808DFF !important;
}

.load-btn svg {
    filter: hue-rotate(240deg) saturate(1.2) brightness(0.9);
}

.load-btn:hover {
    background: #808DFF !important;
    color: #fff !important;
}

.load-btn:hover svg {
    filter: brightness(0) invert(1);
}

/* Стилі для модального вікна курсів */
.course-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    position: relative;
    animation: slideIn 0.3s ease-out;
    border: 1px solid #D9D9D9;
    overflow-y: auto;
}

/* Менший розмір модального вікна коли немає форми */
.modal-content.no-form {
    max-width: 500px;
    width: 80%;
}

/* Стилі для відео відгуків */
.review__video {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review__video:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.review__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    background: #f8f9fa;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #8E8E8E;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    z-index: 1000;
}

.modal-close:hover {
    color: #dc3545;
    background-color: #f8f9fa;
}

/* Двоколонковий макет модального вікна */
.modal-body {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* Ліва частина - інформація про курс */
.course-info {
    flex: 1;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.3;
}

/* Стилі для контенту курсів */
.course-badge {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    border-left: 4px solid #808DFF;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.course-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #495057;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    padding-left: 25px;
}

.course-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.course-features li:last-child {
    border-bottom: none;
}

.course-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.primary {
    background: #808DFF;
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128, 141, 255, 0.3);
}

.action-btn.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #D9D9D9;
}

.action-btn.secondary:hover {
    background: #D9D9D9;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

/* Права частина - форма */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #D9D9D9;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: #8E8E8E;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #D9D9D9;
    border-radius: 12px;
    font-size: 16px;
    color: #495057;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #808DFF;
    box-shadow: 0 0 0 4px rgba(128, 141, 255, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: #808DFF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(128, 141, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #8E8E8E;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Анімації */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Адаптивність */
@media (max-width: 1024px) {
    .modal-body {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
    
    .modal-body[style*="grid-template-columns: 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .form-section {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
        max-height: 85vh;
    }
    
    .modal-content.no-form {
        max-width: 450px;
        width: calc(100% - 40px);
    }
    
    /* Адаптивність для відео відгуків на планшетах */
    .review__video video {
        height: auto;
        min-height: 400px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .modal-body[style*="grid-template-columns: 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0;
    }
    
    .modal-title {
        font-size: 24px;
        text-align: center;
    }
    
    .course-badge {
        font-size: 18px;
        text-align: center;
    }
    
    .course-features li {
        font-size: 15px;
        padding: 10px 0 10px 20px;
    }
    
    .course-actions {
        justify-content: center;
    }
    
    .action-btn {
        flex: 1;
        min-width: 140px;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
        margin: 10px;
        width: calc(100% - 20px);
        max-height: 80vh;
    }
    
    .modal-content.no-form {
        max-width: 400px;
        width: calc(100% - 20px);
    }
    
    /* Адаптивність для відео відгуків на мобільних */
    .review__video video {
        height: auto;
        min-height: 300px;
    }
    
    .course-badge {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .course-features li {
        font-size: 14px;
    }
    
    .action-btn {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
}

/* Стилі для секції гарантій */
.section--guarantees {
    background: linear-gradient(135deg, #f8f9fa 0%, #D9D9D9 100%);
    padding: 80px 0;
}

.guarantees {
    max-width: 1200px;
    margin: 0 auto;
}

.guarantees__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.guarantee__item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}


.guarantee__icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.guarantee__title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.guarantee__desc {
    font-size: 16px;
    color: #8E8E8E;
    line-height: 1.6;
    margin: 0;
}

.guarantee__cta {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.guarantee__cta-text {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.5;
}

.guarantee__cta .link-red {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Адаптивність для гарантій */
@media (max-width: 768px) {
    .section--guarantees {
        padding: 60px 0;
    }
    
    .guarantees__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .guarantee__item {
        padding: 30px 20px;
    }
    
    .guarantee__icon {
        font-size: 50px;
    }
    
    .guarantee__title {
        font-size: 20px;
    }
    
    .guarantee__desc {
        font-size: 15px;
    }
    
    .guarantee__cta {
        padding: 30px 20px;
    }
    
    .guarantee__cta-text {
        font-size: 18px;
    }
    
    .guarantee__cta .link-red {
        padding: 15px 25px;
        font-size: 16px;
    }
}

/* Trial Lesson Modal Styles */
.trial-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.trial-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 480px;
    position: relative;
    animation: slideIn 0.3s ease-out;
    text-align: center;
}

.trial-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
}

.trial-modal-close:hover {
    color: #dc3545;
    background-color: #f8f9fa;
}

.trial-modal-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
}

.trial-form {
    width: 100%;
}

.trial-form-group {
    margin-bottom: 20px;
    position: relative;
}

.trial-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #D9D9D9;
    border-radius: 50px;
    font-size: 16px;
    color: #495057;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    text-align: center;
}

.trial-input:focus {
    outline: none;
    border-color: #808DFF;
    box-shadow: 0 0 0 4px rgba(128, 141, 255, 0.1);
    transform: translateY(-2px);
}

.trial-input::placeholder {
    color: #adb5bd;
    font-style: normal;
}

.phone-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #D9D9D9;
    border-radius: 50px;
    background-color: #fff;
    transition: all 0.3s ease;
    padding: 0;
    margin-bottom: 20px;
}

.phone-group:focus-within {
    border-color: #808DFF;
    box-shadow: 0 0 0 4px rgba(128, 141, 255, 0.1);
    transform: translateY(-2px);
}

.phone-flag {
    display: flex;
    align-items: center;
    padding: 16px 15px 16px 15px;
    width: 90px;
    gap: 8px;
    border-right: 1px solid #D9D9D9;
    flex-shrink: 0;
    cursor: pointer;
}

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 2px;
}

.phone-code {
    font-size: 16px;
    color: #495057;
    font-weight: 500;
}

.phone-input {
    border: none !important;
    border-radius: 0 50px 50px 0 !important;
    box-shadow: none !important;
    transform: none !important;
    padding-left: 15px !important;
    text-align: left !important;
}

.phone-input:focus {
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Country code select for trial modal */
#trialCountryCode.trial-select {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 90px; /* clickable area = flag + code width */
    opacity: 0; /* hide text; keep native dropdown */
    cursor: pointer;
    z-index: 2;
    border: none;
    background: transparent;
    outline: none;
}

#trialCountryCode.trial-select:focus,
.country-select:focus {
    outline: none;
}

.country-select {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 90px;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    border: none;
    background: transparent;
    outline: none;
}

.trial-submit-btn {
    width: 100%;
    padding: 18px;
    background: #808DFF;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    margin: 10px 0 20px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.trial-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(128, 141, 255, 0.3);
}

.trial-submit-btn:active {
    transform: translateY(0);
}

.trial-submit-btn:disabled {
    background: #8E8E8E;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.arrow-icon {
    width: 12px;
    height: 11px;
    fill: white;
}

.trial-info {
    margin-top: 20px;
    font-size: 12px;
    color: #8E8E8E;
    line-height: 1.4;
    text-align: center;
}

.trial-info .important {
    font-weight: 600;
    color: #495057;
}

.trial-info a {
    color: #808DFF;
    text-decoration: none;
}

.trial-info a:hover {
    text-decoration: underline;
}

.trial-message {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.trial-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.trial-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design for Trial Modal */
@media (max-width: 768px) {
    .trial-modal-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }
    
    .trial-modal-title {
        font-size: 28px;
    }
    
    .trial-input {
        padding: 14px 18px;
        font-size: 16px;
    }
    
    .phone-flag {
        padding: 14px 12px 14px 18px;
    }
    
    .trial-submit-btn {
        padding: 16px;
        font-size: 16px;
    }
    
    .trial-info {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .trial-modal-content {
        padding: 25px 15px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .trial-modal-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .trial-input {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .phone-flag {
        padding: 12px 10px 12px 16px;
        gap: 6px;
    }
    
    .flag-icon {
        width: 20px;
        height: 15px;
    }
    
    .phone-code {
        font-size: 15px;
    }
    
    .trial-submit-btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .home .banner-my-hero {
        margin-top: 30px;
    }
}

.item__title span {
    color: #808DFF !important;
}