html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #515351;
    background-color: #ffffff;
}

/* Header */
header {
    position: relative;
    z-index: 9999;
}

.logo-img {
    max-height: 130px;
}

.nav-link {
    font-size: 20px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3C09DA;
}

.dropdown-menu,
.dropdown-item {
    white-space: normal;
    word-break: break-word;
    font-size: 14px;
}

.sign-up {
    border: 2px solid #7caae4;
    background: none;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
    justify-self: end;
    display: block;
    margin-left: auto;
}

.sign-up:hover {
    background: #3C09DA;
    color: white;
    border: 2px solid #3C09DA;
}

.sign-up:active {
    transform: scale(0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    background: #EAF4FF linear-gradient(to right, #eeeeee 20%, #4f90e2 100%) no-repeat;
    background-size: cover;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 48px);
    color: #515351;
    font-weight: normal;
    margin-bottom: 40px;
}

.hero-img {
    width: 85%;
    height: auto;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.buttons button {
    background-color: #4f90e2;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid #4f90e2;
    border-radius: 40px;
    text-align: center;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 100px;
    padding: 10px;
    box-sizing: border-box;
}

.buttons button:hover {
    background: #3C09DA;
    color: white;
    border: 2px solid #3C09DA;
}

.buttons button:active {
    transform: scale(0.5);
    box-shadow: 0 2px 10px rgba(2, 22, 34, 0.2);
}

.hero-item {
    border: 2px solid #7caae4;
    background: white;
    border-radius: 40px;
    text-align: center;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 100px;
    padding: 10px;
    box-sizing: border-box;
}

/* Programs Section */
.programs h2 {
    color: #515351;
}

.program {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
    background: #EAF4FF linear-gradient(to right, #eeeeee 20%, #4f90e2 100%) no-repeat;
    background-size: cover;
    border-radius: 20px;
    padding: 30px 15px 30px 0;
}

.first {
    background: #EAF4FF linear-gradient(to right, #eeeeee 20%, #4f90e2 100%) no-repeat;
    background-size: cover;
}

.second {
    background: #EAF4FF linear-gradient(to right, #eeeeee 30%, #4f90e2 100%) no-repeat;
    background-size: cover;
}

.third {
    background: #EAF4FF linear-gradient(to right, #eeeeee 40%, #4f90e2 100%) no-repeat;
    background-size: cover;
}

.program-header h3 {
    font-size: 24px;
    font-weight: normal;
    color: #515351;
    margin: 0 20px 20px 20px;
}

.program-title {
    font-size: 24px;
    font-weight: normal;
    color: #4f90e2;
    display: block;
    margin: 0 20px 20px 20px;
}

.program-text {
    margin: 0 20px;
    color: white;
}

.program-details p {
    font-size: 18px;
    margin: 0 20px 20px;
    color: white;
}

.details-button {
    border: 2px solid #eeeeee;
    background: #eeeeee;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 18px;
    cursor: pointer;
    color: #515351;
    transition: 0.3s;
    justify-self: end;
    display: block;
    margin-left: auto;
}

.details-button:hover {
    background: #3C09DA;
    color: white;
    border: 2px solid #3C09DA;
}

.details-button:active {
    transform: scale(0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Signup Section */
.signup-section {
    background-color: #eeeeee;
    text-align: center;
    padding: 80px 0;
}

.signup-button {
    border: 2px solid #7caae4;
    background: #7caae4;
    padding: 14px 24px;
    border-radius: 40px;
    font-size: 20px;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

.signup-button:hover {
    background: #3C09DA;
    color: white;
    border: 2px solid #3C09DA;
}

.signup-button:active {
    transform: scale(0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Experience Section */
.experience-block {
    background-color: #7caae4;
    border-radius: 20px;
    padding: 0 40px;
}

.subtitle {
    font-size: 18px;
    color: #515351;
    margin-bottom: 40px;
}

.experience-item img {
    width: auto;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
}

.experience-item {
    color: white;
}

/* Formats Section */
.formats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.format-item {
    padding: 20px;
    border-radius: 40px;
    width: 600px;
    text-align: left;
    font-size: 18px;
    background: #EAF4FF linear-gradient(#4f90e2 20%, #eeeeee 100%) no-repeat;
    background-size: cover;
    color: white;
}

.individually {
    background: #EAF4FF linear-gradient(#eeeeee 20%, #4f90e2 100%) no-repeat;
    color: #515351;
}

.format-item h3 {
    font-size: 24px;
    color: white;
    margin-top: 15px;
    font-weight: normal;
}

.individually h3 {
    font-size: 24px;
    color: #515351;
    margin-top: 15px;
    font-weight: normal;
}

/* Format-choice Section */
.format-choice {
    padding: 60px 10%;
    text-align: center;
}

.format-choice h2 {
    color: #4f90e2;
}

.format-choice p {
    text-align: left;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 50px 10%;
    margin-top: 80px;
    margin-bottom: 80px;
    background: #EAF4FF linear-gradient(to right, #eeeeee 20%, #4f90e2 100%) no-repeat;
    background-size: cover;
}

.cta-section h2 {
    font-size: 28px;
    color: #515351;
    margin-bottom: 10px;
    font-weight: normal;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-button {
    border: 2px solid white;
    padding: 14px 24px;
    border-radius: 40px;
    font-size: 18px;
    cursor: pointer;
    color: #515351;
    background-color: white;
    transition: 0.3s;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.cta-button:hover {
    background: #3C09DA;
    color: white;
    border: 2px solid #3C09DA;
}

.cta-button:active {
    transform: scale(0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Founder Section */
.founder ul {
    list-style: none;
    padding-left: 0;
}

.founder h2 {
    font-size: 28px;
    color: #4f90e2;
    margin-bottom: 30px;
    text-align: center;
    font-weight: normal;
}

.founder h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: normal;
}

.founder ul li {
    font-size: 18px;
    margin-bottom: 10px;
}

.founder p {
    font-size: 18px;
    margin-top: 20px;
}

.founder-image img {
    width: 75%;
    border-radius: 10px;
}

/* Reviews Slider */
.slider-wrapper {
    position: relative;
    margin: 0 auto;
}

.slider {
    position: relative;
    overflow: visible;
    transition: height 0.3s ease;
}

.slider h3 {
    font-size: 24px;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.review-slide h3 {
margin-bottom: 0;
}

.review-text {
    padding-left: 10px;
    text-align: left;
}

.reviews-slider h2 {
    font-size: 28px;
    color: #4f90e2;
    margin-bottom: 30px;
    padding-bottom: 30px;
    font-weight: normal;
}

.review-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.review-date {
    margin-bottom: 0;
    font-size: 14px;
}

.prev-slide,
.next-slide {
    position: absolute;
    top: 35%;
    background-color: #4f90e2;
    border-color: #4f90e2;
}

.prev-slide {
    left: -60px;
    top: 60px;
}

.next-slide {
    right: -60px;
    top: 60px;
}

.prev-slide:active,
.next-slide:active {
    transform: scale(0.90);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    padding: 60px 10%;
}

.contact-info {
    text-align: center;
}

.contact h2 {
    font-size: 28px;
    color: #4f90e2;
    margin-bottom: 10px;
    font-weight: normal;
}

.contact-info {
    max-width: 100%;
}

.contact-info p {
    font-size: 18px;
}

.contact-icons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

.contact-icons img {
    width: 65px;
    height: 65px;
    transition: transform 0.3s;
}

.contact-icons img:hover {
    transform: scale(1.2);
}

::placeholder {
    color: #4f90e2 !important;
}

/* Modal Form */
.modal-title {
    color: #4f90e2;
}

.modal-body {
    color: #515351;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Footer */
footer {
    background-color: #4f90e2;
    color: white;
    padding: 25px 10%;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin: auto;
    padding-top: 10px;
    width: 100%;
    max-width: 100%;
}

.footer-logo {
    text-align: left;
}

.footer-logo-img {
    max-width: 150px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.footer-contacts {
    text-align: left;
}

.footer-contacts h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
    margin-top: 0;
}

.footer-contacts p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* General English Section */
.general-english-section {
    padding: 60px 10%;
    background-color: white;
}

.general-english-image img {
    border-radius: 10px;
}

.general-english-content h1 {
    font-size: 32px;
    color: #4f90e2;
    text-align: center;
    font-weight: normal;
}

.general-english-content p {
    font-size: 18px;
    color: #515351;
}

.general-english-content h2 {
    font-size: 28px;
    color: #515351;
    text-align: center;
    font-weight: normal;
}

.general-english-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.general-english-content ul li {
    font-size: 18px;
    color: #515351;
}

.general-english-content ul li strong {
    color: #515351;
}

.general-english-item {
    display: flex;
    align-items: center;
    background-color: #c1d6d4;
    border-radius: 20px;
    padding: 15px 20px;
    transition: transform 0.3s;
}

/* Tabs Section */
.levels-section {
    width: 100%;
    max-width: 1500px;
}

.levels-section h2 {
    font-size: 28px;
    color: #515351;
    font-weight: normal;
}

.nav-pills .nav-link {
    color: #515351;
    font-size: 18px;
    padding: 15px;
    margin-bottom: 5px;
    text-align: left;
    max-width: 300px;
}

.nav-pills .nav-link.active {
    display: inline-block;
    padding: 14px 30px;
    background: #EAF4FF linear-gradient(to right, #c1d6d4 20%, #eeeeee 100%) no-repeat;
    color: #515351;
    font-size: 18px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    max-width: 280px;
    transition: background-color 0.5s ease;
}

.tab-content ul {
    background: #EAF4FF linear-gradient(to left, #c1d6d4 20%, #eeeeee 100%) no-repeat;
    border-radius: 20px;
    list-style: none;
    padding-left: 0;
    margin: 0;
    transition: background-color 0.5s ease;
}

.tab-content li {
    font-size: 18px;
    color: #515351;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.tab-content li::before {
    content: "•";
    color: #515351;
    position: absolute;
    left: 0;
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
}

/* Course Info Section */
.course-info-section {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 28px;
    color: #515351;
    text-align: center;
    font-weight: bold;
}

.course-target-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.course-target-item {
    background-color: #eeeeee;
    border-radius: 20px;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.course-target-item p {
    font-size: 18px;
    color: #515351;
    margin-bottom: 0;
}

.course-price-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
    align-items: center;
}

.course-price-item {
    background: #eeeeee;
    background-size: cover;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    max-width: 250px;
    flex-direction: column;
    color: #515351;
}
.course-individually {
    margin-right: 250px;
}

.course-group {
    background: #eeeeee;
}

.price-title {
    font-size: 18px;
    margin: 0;
    color: #515351;
}

.price-details {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.price-cost {
    font-size: 18px;
    margin: 0;
}

.course-button-wrapper {
    text-align: center;
}

.course-main-button {
    display: inline-block;
    padding: 14px 30px;
    background-color: #c1d6d4;
    color: #515351;
    font-size: 18px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.course-main-button:hover {
    background-color: #8BB1AF;
}

.course-target-item img.item-icon {
    display: block;
    margin: 0 auto;
    width: 40px;
    height: auto;
}

/* For Profession Section */
.for-profession-section {
    padding: 60px 10%;
    background-color: white;
}

.for-profession-image img {
    border-radius: 10px;
}

.for-profession-content h1 {
    font-size: 32px;
    color: #4f90e2;
    text-align: center;
    font-weight: normal;
}

.for-profession-content p {
    font-size: 18px;
    color: #515351;
}

.for-profession-content h2 {
    font-size: 28px;
    color: #515351;
    text-align: center;
    font-weight: normal;
}

.for-profession-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.for-profession-content ul li {
    font-size: 18px;
    color: white;
}

.for-profession-content ul li strong {
    color: white;
}

.for-profession-item {
    display: flex;
    align-items: center;
    background-color: #4d5245;
    border-radius: 20px;
    padding: 15px 20px;
    transition: transform 0.3s;
}

.course-main-button-profession {
    display: inline-block;
    padding: 14px 30px;
    background-color: #4d5245;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.course-main-button-profession:hover {
    background-color: #a1a994;
}

.course-price-item-profession {
    background-color: #eeeeee;
    background-size: cover;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    max-width: 250px;
    min-width: 250px;
    flex-direction: column;
    color: #515351;
}

/* Speaking Club Section */
.speaking-club-section {
    padding: 60px 10%;
    background-color: white;
}

.speaking-club-image img {
    border-radius: 10px;
}

.speaking-club-content h1 {
    font-size: 32px;
    color: #4f90e2;
    text-align: center;
    font-weight: normal;
}

.speaking-club-content p {
    font-size: 18px;
    color: #515351;
}

.speaking-club-content h2 {
    font-size: 28px;
    color: #515351;
    text-align: center;
    font-weight: normal;
}

.speaking-club-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.speaking-club-content ul li {
    font-size: 18px;
    color: white;
}

.speaking-club-content ul li strong {
    color: white;
}

.speaking-club-item {
    display: flex;
    align-items: center;
    background-color: #966a45;
    border-radius: 20px;
    padding: 15px 20px;
    transition: transform 0.3s;
}

.course-main-button-speaking-club {
    display: inline-block;
    padding: 14px 30px;
    background-color: #966a45;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.course-main-button-speaking-club:hover {
    background-color: #b38d6d;
}

.course-price-item-speaking-club {
    background-color: #eeeeee;
    background-size: cover;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    max-width: 250px;
    min-width: 250px;
    flex-direction: column;
}

/* Test Section */
.test {
    background: white;
    border-radius: 20px;
    padding: 30px 30px 30px 30px;
}

.list-group-item.option {
    cursor: pointer;
}

.list-group-item.option:hover {
    background-color: #f8f9fa;
}

.modal-title {
    color: #4f90e2;
}

.item-icon {
    display: block;
    margin: 0 auto;
    width: 40px;
    height: auto;
}

.item-icon-clock {
    display: inline-block;
    margin: 0 auto;
    width: 40px;
    height: auto;
}

.correct-answer {
    color: #4f90e2;
}

#resultModal .modal-body a {
    color: #515351;
}

#resultModal .modal-content {
    position: relative;
}

#resultModal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.accordion-button, .accordion-body {
    color: #515351;
}

/* FAQ Section */
.accordion-content h1 {
    font-size: 38px;
    color: #4f90e2;
    text-align: center;
    font-weight: normal;
}

.accordion-content p {
    font-size: 18px;
    color: #515351;
}

.accordion-content h2 {
    font-size: 28px;
    color: #4f90e2;
    text-align: center;
    font-weight: normal;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-img {
        padding-top: 10px;
    }

    .program {
        grid-template-columns: 1fr;
    }

    .buttons {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .navbar-collapse {
        align-items: flex-end;
    }

    .custom-nav {
        display: flex; !important;
        align-items: flex-start; !important;
    }

    .slider-wrapper {
        padding: 0 60px;
    }
    .prev-slide,
    .next-slide {
        top: 80px;
        transform: translateY(-50%);
    }
    .prev-slide {
        left: 0;
    }
    .next-slide {
        right: 0;
    }

    .review-slide {
        padding: 10px 15px;
        font-size: 14px;
    }

    .prev-slide:active,
    .next-slide:active {
        transform: translateY(-50%) scale(0.90);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .buttons button:active, .details-button:active, .signup-button:active, .sign-up:active, .cta-button:active {
        transform: scale(0.95);
    }

    .speaking-club-image, .for-profession-image, .general-english-image {
        padding-bottom: 50px;
    }
}

@media (min-width: 768px) {
    .course-target-container {
        flex-direction: row;
    }
    .course-target-item {
        flex: 1;
    }
}

@media (min-width: 576px) {
    .course-price-container {
        flex-direction: row;
    }
    .course-price-item {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .course-individually {
        margin: 0 auto !important;
        float: none;
        display: block;
        align-self: center;
    }
}

@media (min-width: 200px) {
    .cta {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 756px) {
    .main-text {
        text-align: center; !important;
    }
}

@media (max-width: 990px) {
    .burger-button {
        max-height: 40px;
        margin-top: 30px;
    }
}

@media (max-width: 756px) {
    .burger-button {
        max-height: 40px;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .burger-button {
        max-height: 40px;
        margin-top: 10px;
    }
}

@media (min-width: 250px) and (max-width: 576px) {
    .logo-img {
        width: auto;
        height: 55px;
    }
}

@media (max-width: 770px) {
    .program-details p {
        color: #515351;
    }
    .program-text {
        color: #515351;
    }
}

@media (max-width: 770px) {
    .for-profession-section {
        padding-top: 20px;
    }
    .general-english-section {
        padding-top: 20px;
    }
    .speaking-club-section {
        padding-top: 20px;
    }
}