header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    background-color: #ffffff;
    z-index: 100;
    transition: transform 0.35s ease;
    transform: translateY(0);
}

header.hidden {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
}

header .header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1150px;
    height: fit-content;
}

header .header-logo {
    flex-grow: 1;
    height: 70px;
    padding: 10px;
}

header .header-widget {
    display: flex;
    flex-direction: row;
    align-items: end;
    height: 70px;
    padding: 10px;
}

header .header-widget-container {
    padding: 0 20px;
}

header .header-widget-container .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 175px;
    height: 37px;
    padding: 12px 24px;
    background-color: #eff2f7;
    color: var(--brand-primary);
    border: none;
    border-radius: 3px;
}

header .dropdown .dropdown-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--brand-primary);
    text-decoration: none;
}

header .dropdown-menu {
    margin-top: 5px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

header .dropdown-item {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    color: var(--brand-primary);
    border-radius: 5px;
    transition: all 0.3s ease;
}

header .dropdown-item:hover {
    background-color: var(--brand-primary);
    color: #ffffff;
}

header .dropdown-divider {
    margin: 8px 0;
    border-color: #e0e0e0;
}

header .dropdown .language-flag {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 12px;
    object-fit: contain;
}

header .dropdown-item .language-flag {
    margin-right: 0;
    flex-shrink: 0;
}

header .user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .user-avatar-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

header .user-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    header .header-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    header .header-logo {
        height: auto;
        text-align: center;
    }

    header .header-logo img {
        max-width: 120px;
        height: auto;
    }

    header .header-widget {
        width: 100%;
        height: auto;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    header .header-widget-language {
        display: none;
    }

    header .header-widget-container {
        flex-grow: 1;
        padding: 0;
    }

    header .header-widget-container .button {
        padding: 10px 20px;
        height: 35px;
    }

    header .header-widget-container .button span {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    header .header-widget {
        gap: 5px;
    }
}

footer {
    width: 100%;
    height: fit-content;
    padding: 10px;
}

footer .wrapper-logo {
    display: none;
}

footer .footer-wrapper {
    width: 100%;
    padding: 80px 20px;
    border-radius: 16px;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

footer .wrapper-header {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

footer .header-left {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 15px;
}

footer .header-left .footer-courses-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

footer .header-left .courses-list {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: start;
    justify-content: start;
    gap: 35px;
}

footer .header-left .courses-list .course-item {
    width: 100%;
    height: fit-content;
    display: grid;
    grid-template-columns: 100px auto;
    gap: 20px;
}

footer .header-left .courses-list .course-item img {
    width: 100px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background-color: #ffffff;
}

footer .header-left .courses-list .course-item .course-item-title {
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.4em;
    color: #ffffff;
}

footer .header-right {
    flex-grow: 1;
    padding-left: 10%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 30px;
}

footer .subscribe-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    padding-bottom: 30px;
}

footer .header-right .subscribe-form .form-title {
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

footer .header-right .subscribe-form .form-radio-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 10px;
    font-size: 16px;
}

footer .header-right .subscribe-form .form-radio-group label {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    cursor: pointer;
}

footer .header-right .subscribe-form .form-input-group {
    width: 100%;
    height: 70px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 10px;
    padding: 10px 0px;
}

footer .header-right .subscribe-form .form-input-group .primary-button {
    max-width: 250px;
}

footer .header-right .menu-links {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

footer .header-right .menu-links .menu-links-group {
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 10px;
}

footer .header-right .menu-links .menu-links-group .menu-link-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

footer .header-right .menu-links .menu-links-group .menu-link-item {
    font-size: 14px;
    font-weight: 500;
    color: #ced4da;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .header-right .menu-links .menu-links-group .menu-link-item:hover {
    color: #e2504b;
}

footer .wrapper-footer {
    width: 100%;
    max-width: 1300px;
    padding: 10px 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

footer .wrapper-footer .footer-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 30px;
    font-weight: 400;
    text-decoration: none;
}

footer .wrapper-footer .footer-right .copyright {
    font-size: 10px;
    color: #ced4da;
}

footer .wrapper-footer .footer-right .link-item {
    font-size: 14px;
    color: #ced4da;
    transition: all 0.3s ease;
}

footer .wrapper-footer .footer-right .link-item:hover {
    color: #e2504b;
}

@media (max-width: 1024px) {
    footer .wrapper-logo {
        display: block;
    }

    footer .footer-wrapper .wrapper-header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0px 10px;
    }

    footer .footer-wrapper .wrapper-header .header-left {
        width: 100%;
        max-width: 100%;
    }

    footer .footer-wrapper .wrapper-header .header-left .courses-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        align-items: start;
        justify-items: start;
    }

    footer .footer-wrapper .wrapper-header .header-right {
        width: 100%;
        max-width: 100%;
        padding-left: 0%;
        padding-top: 40px;
    }

    footer .wrapper-footer {
        justify-content: center;
    }

    footer .footer-wrapper .footer-left {
        display: none;
    }
}

@media (max-width: 768px) {
    footer .footer-wrapper .wrapper-header .header-left .courses-list {
        grid-template-columns: repeat(1, 1fr);
    }

    footer .footer-wrapper .wrapper-header .header-left .courses-list .course-item {
        grid-template-columns: 60px auto;
    }

    footer .footer-wrapper .wrapper-header .header-left .courses-list .course-item img {
        width: 60px;
        height: 40px;
        border-radius: 5px;
    }

    footer .footer-wrapper .wrapper-header .form-input-group {
        flex-direction: column;
    }

    footer .footer-wrapper .wrapper-header .form-input-group .primary-button {
        max-width: 100%;
        min-height: 48px;
    }
}