html {
    scroll-behavior: smooth;
}
/*HEADER*/
.navbar-custom {
    background-color: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
    position: fixed;
    width: 100%;
    height: 80px;
    z-index: 100;
}
.container-fluid {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    max-width: 100%;
}
.navbar-brand {
    display: none;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-height: 65px;
}
.navbar-brand-white {
    display: none;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-height: 80px;
}
.navbar-toggler {
    display: none;
    border: none;
    background: transparent;
    color: #770f00;
    font-size: 1.25rem;
    height: 40px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    outline: none;
}
.navbar-toggler::before {
    content: "\f0c9";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.25rem;
    color: inherit;
    margin-right: 3px;
}
.navbar-toggler.active::before {
    content: "\f00d";
}
.navbar-toggler span {
    margin-left: 2px;
}
.navbar-toggler:hover {
    color: #d3a66d;
}
.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}
.navbar-collapse {
    display: flex;
    justify-content: center;
    width: 100%;
    transition: max-height 0.4s ease, opacity 0.0s ease;
    max-height: 0;
    opacity: 1;
    overflow: visible;
}
.navbar-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}
.nav-left, .nav-right {
    display: flex;
    align-items: center;
}
.nav-left {
    margin-right: auto;
}
.nav-right {
    margin-left: auto;
}
.nav-item {
    margin: 0 10px;
}
.navbar-logo {
    display: flex;
    height: 65px;
}
.navbar-logo-white {
    display: flex;
    height: 80px;
}
.nav-text-custom {
    color: #770f00;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}
.nav-text-custom:hover, .navbar-toggler:hover, .social-icon1:hover, .social-icon2:hover {
    color: #b72812;
}
.social-icons {
    color: #770f00;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.social-icon1 {
    color: inherit;
    font-size: 1.5rem;
}
.social-icon2 {
    color: inherit;
    margin-left: 25px;
    font-size: 1.9rem;
}
.navbar-custom.scrolled {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid white;
    height: 70px;
}
.navbar-custom.scrolled .navbar-brand {
    display: flex;
}
.image-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.image-container {
    position: relative;
    width: 50%;
    height: auto;
    display: flex;
    z-index: -1;
}
.image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    width: auto;
}
@media (max-aspect-ratio: 1/1) {
    .image-wrapper {
        height: 50vh;
    }
}
@media (max-width: 700px) {
    .image-wrapper {
        height: 100vh;
    }
    .image-container {
        width: 75%;
    }
}
@media (max-width: 991px) {
    .navbar-toggler {
        display: flex;
    }
    .navbar-collapse {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        background-color: #770f00;
        border-bottom: 1px solid white;
        width: 100%;
        position: fixed;
        top: 80px;
        left: 0;
        z-index: 50;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        opacity: 0;
        overflow: hidden;
    }
    .navbar-toggler:hover {
        color: #770f00;
    }
    .navbar-collapse.show {
        max-height: 500px;
        opacity: 1;
    }
    .navbar-custom.show-menu {
        background-color: #770f00;
        border-bottom: 1px solid white;
        transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
    }
    .navbar-custom.scrolled.show-menu {
        background-color: #770f00;;
        height: 80px;
        border-bottom: 1px solid white;
        transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
    }
    .nav-item {
        padding-left: 10px;
        width: 100%;
        text-align: left;
        padding: 10px;
    }
    .nav-left, .nav-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10px;
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    .nav-text-custom, .social-icons {
        color: white;
        font-size: 1.25rem;
    }
    .navbar-custom.show-menu.scrolled .navbar-logo-white {
        height: auto;
        max-height: 80px;
    }
    .navbar-custom.show-menu .navbar-brand-white {
        display: flex;
    }
    .navbar-custom.show-menu .navbar-brand {
        display: none;
    }
    .navbar-custom.show-menu .navbar-toggler, .navbar-custom.show-menu .navbar-toggler:hover, .navbar-custom.show-menu .nav-text-custom:hover, .navbar-custom.show-menu .social-icon1:hover, .navbar-custom.show-menu .social-icon2:hover {
        color: white;
    }
}
/*ABOUT US*/
.about-section {
    background-color: #770f00;
    text-align: center;
    width: 100%;
    height: auto;
    color: white;
    font-family: "BerlingskeSerif-SemiBold", "Times New Roman";
}
.ab {
    padding: 115px 0 40px 0;
}
.cd {
    padding: 115px 0;
}
.about-section h2 {
    margin-bottom: 2.0rem;
    font-size: 1.4rem;
    letter-spacing: .32em;
    text-transform: uppercase;
}
.about-section p{
    line-height: 1.6;
    margin: 0 auto;
    display: block;
    font-size: 1.75rem;
    margin-block-start: 0.3em;
    margin-block-end: 0.3em;
    font-weight: bold;
}
.arrow-long {
    display: block;
    margin: 1rem auto 1.5rem;
    max-width: 1rem;
}
.arrow-long svg {
    width: 100%;
    height: auto;
}
.more-text {
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.7s ease-out;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0)); /* Для інших браузерів */
}
.more-text.expanded {
    max-height: 1700px;
    mask-image: none;
}
.toggle-button {
    background-color: #770f00;
    border: none;
    padding: 0 5px;
    cursor: pointer;
    font-size: 1.3rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: white;
    margin-top: 25px;
}
.toggle-button:focus {
    outline: none;
    box-shadow: none;
}
@media (min-width: 500.01px) and (max-width: 1024px){
    .more-text.expanded {
        max-height: 2500px;
    }
    .toggle-button {
        font-size: 1.2rem;
        margin-top: 20px;
    }
    .about-section{
        padding-left: 20px;
        padding-right: 20px;
    }
    .ab {
        padding: 100px 0 50px 0;
    }
    .cd {
        padding: 50px 0 80px 0;
    }
    .about-section h2{
        font-size: 1.3rem;
    }
    .about-section p {
        font-size: 1.5rem;
    }
}
@media (max-width: 500px){
    .more-text.expanded {
        max-height: 2500px;
    }
    .toggle-button {
        font-size: 0.9rem;
        margin-top: 15px;
    }
    .about-section{
        padding-left: 20px;
        padding-right: 20px;
    }
    .ab {
        padding: 80px 0 40px 0;
    }
    .cd {
        padding: 40px 0 60px 0;
    }
    .about-section h2{
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    .about-section p {
        font-size: 1.3rem;
    }
}
/*COURSES*/
.course-section {
    background-color: #f5f2e6;
    padding: 115px 10% 0;
    width: 100%;
    height: auto;
    font-family: "BerlingskeSerif-SemiBold", "Times New Roman";
}
.text-container {
    text-align: center;
    color: #770f00;
}
.text-container h1 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    letter-spacing: .32em;
    text-transform: uppercase;
}
.courses-container {
    width: 100%;
    margin-top: -20px;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}
.course-container{
    height: auto;
    margin-top: 75px;
}
.courses-column {
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.courses-column.animation {
    opacity: 1;
    transform: translateY(0);
}
.courses-column1, .courses-column2, .courses-column3 {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
}
.courses-column1 {
    padding-right: 5%;
}
.courses-column3 {
    padding-left: 5%;
}
.image {
    width: 100%;
    height: auto;
    max-height: 500px;
}
.image img {
    max-width: 100%;
    width: auto;
}
.text {
    width: 100%;
    margin: 0 60px;
    align-self: center;
}
.text h2 {
    color: #770f00;
    font-size: 2rem;
    margin: 1rem 0;
}
.text h3 {
    font-size: 1.5rem;
    color: #770f00;
    margin: 1rem 0;
}
.text h4 {
    font-size: 1.4rem;
    margin: 1rem 0;
}
.text h5{
    font-size: 1.4rem;
}
.text p {
    font-size: 1.25rem;
    margin: 0.4rem 0;
}
.hidden {
    display: none;
}
.nonvis {
    display: none;
}
@media (max-width: 1200px){
    .courses-container {
        margin-top: 15px;
    }
    .text {
        margin: 0 40px;
    }
    .text h2 {
        font-size: 1.9rem;
        margin: 0.9rem 0;
    }
    .text h3 {
        font-size: 1.45rem;
        margin: 0.9rem 0;
    }
    .text h4 {
        font-size: 1.35rem;
        margin: 0.9rem 0;
    }
    .text h5{
        font-size: 1.4rem;
    }
    .text p {
        font-size: 1.2rem;
    }
}
@media (max-width: 900px){
    .course-section {
        padding: 100px 10% 50px;
    }
    .course-container{
        margin-top: -5px;
    }
    .text-container h1{
        font-size: 1.3rem;
    }
    .courses-container {
        padding: 0 0;
    }
    .courses-column1, .courses-column2 {
        flex: 1 1 100%;
    }
    .courses-column1 {
        height: auto;
        padding: 0 15%;
        margin: 100px 0 40px;
    }
    .courses-column2 {
        padding: 0 10%;
        margin-top: -10px;
    }
    .courses-column3 {
        display: none;
    }
    .nonvis {
        display: flex;
    }
}
@media (max-width: 675px){
    .courses-column1 {
        padding: 0 10%;
    }
    .courses-column2 {
        padding: 0 0%;
    }
}
@media (max-width: 500px){
    .course-section {
        padding: 80px 10% 40px;
    }
    .courses-container {
        padding: 0 0;
        margin-top: -80px;
    }
    .image {
        width: auto;
        height: auto;
    }
    .text {
        margin: 0 10px;
    }
    .text-container h1 {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    .courses-column1 {
        height: auto;
        padding: 0 5%;
    }
    .courses-column3 {
        display: none;
    }
    .nonvis {
        display: flex;
    }
    .text {
        width: 90%;
        margin-right: 20px;
        align-self: center;
    }
    .text h2 {
        font-size: 1.65rem;
        margin: 0.7rem 0;
    }
    .text h3 {
        font-size: 1.35rem;
        margin: 0.5rem 0;
    }
    .text h4 {
        font-size: 1.27rem;
        margin: 1rem 0;
    }
    .text h5{
        font-size: 1.35rem;
    }
    .text p {
        font-size: 1.1rem;
        margin: 0.4rem 0;
    }
}
/* REGISTRATION */
.modal {
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    font-family: "BerlingskeSerif-SemiBold", "Times New Roman", serif;
}
#formModal form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 100%;
    background-image: url('../img/logo_form.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}
#form1 {
    position: relative;
    transform: scale(0);
    transition: transform 0.8s ease-out;
}
#form1.show {
    transform: scale(1);
}
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4rem;
    opacity: 1;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close:hover {
    color: #ecebeb;
    opacity: 1;
}
body.no-scroll {
    overflow: hidden;
}
.registration-section {
    background-color: #f5f2e6;
    padding: 115px 10% 100px;
    width: 100%;
    height: auto;
    font-family: "BerlingskeSerif-SemiBold", "Times New Roman", serif;
}
form h{
    color: #770f00;
    font-size: 2rem;
    display: grid;
    place-items: center;
    text-align: center;
    margin: 10px 0 20px;
    font-family: "Gill Sans", sans-serif;
}
form h1{
    font-size: 1rem;
    margin-bottom: 10px;
    margin-left: 5px;
}
form h2{
    font-size: 1.1rem;
    margin-top: 10px;
    text-align: center;
}
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
}
#form2 {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
#form2.animation {
    opacity: 1;
    transform: translateY(0);
}
.input-container {
    margin-bottom: 15px;
    position: relative;
}
label {
    font-size: 1.2rem;
    color: black;
    margin-bottom: 5px;
    margin-left: 5px;
    display: block;
}
.input-field {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    margin-bottom: 15px;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1.25rem;
    transition: border-color 0.3s ease;
}
.input-field.error {
    border-color: #f44336;
}
.input-field:focus {
    border-color: #770f00;
    outline: none;
    box-shadow: 0 0 8px rgb(129, 59, 49);
}
.exclamation {
    position: absolute;
    right: 10px;
    top: 53%;
    transform: translateY(-47%);
    display: none;
    width: 30px;
    height: 30px;
}
.error-message {
    color: red;
    font-size: 1rem;
    display: none;
    margin-top: -15px;
}
.input-container .error-message {
    display: none;
}
.input-container.show-error .error-message {
    display: block;
}
.input-container.show-error .exclamation {
    display: block;
}
.button1{
    background-color: #770f00;
    width: 100%;
    padding: 10px;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.button1:hover {
    background-color: #b72812;
}
.button1:focus {
    outline: none;
    box-shadow: none;
}
.success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.49);
    z-index: 1001;
    text-align: center;
}
.success-message p {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.button2 {
    padding: 10px 20px;
    background-color: #770f00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.4rem;;
}
.button2:hover {
    background-color: #b72812;
}
.button2:focus {
    outline: none;
    box-shadow: none;
}
@media (min-width: 600.01px) and (max-width: 1000px){
    .close {
        font-size: 3rem;
    }
    #formModal form::before {
        width: 50%;
    }
    .registration-section {
        padding: 100px 5% 80px;
    }
    form{
        width: 90%;
    }
    form h{
        font-size: 1.7rem;
        margin: 10px 0 10px;
    }
    form h1{
        font-size: 1rem;
    }
    form h2{
        font-size: 1rem;
        margin-top: 6px;
    }
    .input-field{
        margin-bottom: 7px;
        font-size: 1.15rem;
    }
    label{
        font-size: 1.1rem;
    }
    .button1 {
        font-size: 1.25rem;
    }
    .error-message{
        font-size: 0.9rem;
        margin-top: -9px;
    }
    .exclamation{
        right: 7px;
        top: 54%;
        transform: translateY(-46%);
        width: 27px;
        height: 27px;
    }
    .success-message p {
        font-size: 1.35rem;
        margin-bottom: 13px;
    }
    .button2 {
        font-size: 1.25rem;;
    }
}
@media (max-width: 600px){
    .close {
        font-size: 2.5rem;
    }
    #formModal form::before {
        width: 70%;
    }
    .registration-section {
        padding: 90px 2.5% 75px;
    }
    form{
        width: 95%;
    }
    form h{
        font-size: 1.4rem;
        margin: 5px 0 20px;
    }
    form h1{
        font-size: 0.85rem;
    }
    form h2{
        font-size: 0.9rem;
        margin-top: 4px;
    }
    .input-field{
        margin-bottom: 5px;
        font-size: 1rem;
    }
    label{
        font-size: 1rem;
    }
    .button1 {
        font-size: 1.1rem;
    }
    .error-message{
        font-size: 0.8rem;
        margin-top: -7px;
    }
    .exclamation{
        right: 7px;
        top: 53%;
        transform: translateY(-47%);
        width: 23px;
        height: 23px;
    }
    .success-message p {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    .button2 {
        font-size: 1.1rem;;
    }
}
/* FOOTER */
.footer-custom {
    background-color: #691212;
    color: white;
    padding: 80px 20vh 50px;
}
.column-container {
    max-width: 100%;
    margin: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.column {
    box-sizing: border-box;
}
.column1, .column2, .column3 {
    flex: 1 1 27%;
}
.column4 {
    flex: 1 1 19%;
}
.footer-custom .footer-heading {
    font-size: 2rem;
    margin-bottom: 15px;
}
.contact-info {
    margin-bottom: 15px;
}
.footer-custom h{
    font-size: 2rem;
    line-height: 2.5;
    width: auto;
}
.footer-custom p {
    margin: 15px 0;
    font-size: 1.1rem;
    font-family: "Gill Sans", sans-serif;
}
.footer-custom p1 {
    margin-right: 8px;
    line-height: 1.9;
    font-size: 1.3rem;
    font-family: "BerlingskeSerif-SemiBold", "Times New Roman";
}
.footer-link {
    color: white;
    transition: color 0.3s ease;
}
.footer-link.active {
    color: white;
    border-bottom: none;
    text-decoration: none;
}
.footer-link.hover {
    color: #d3a66d;
    border-bottom: none;
    text-decoration: none;
}
.footer-divider {
    border: 0;
    height: 1px;
    background-color: #7e1c1c;
    margin: 10px 0 20px;
}
.footer-custom h3{
    font-size: 1rem;
}
@media (min-width: 955.01px) and (max-width: 1282px){
    .footer-custom {
        padding: 40px 8%;
    }
    .column {
        width: 84%;
    }
}
@media (min-width: 630.01px) and (max-width: 1330px){
    .footer-custom {
        padding: 40px 6%;
    }
    .column {
        width: 88%;
    }
    .column1, .column2, .column3, .column4 {
        flex: 1 1 50%;
    }
    .column3{
        padding-right: 30px;
    }
}
@media (max-width: 630px){
    .footer-custom {
        padding: 40px 6%;
    }
    .column {
        width: 88%;
    }
    .column1, .column2, .column3, .column4{
        flex: 1 1 100%;
    }
}
@media (min-width: 450.01px) and (max-width: 1282px){
    .footer-custom h{
        font-size: 1.4rem;
        line-height: 2;
    }
    .footer-custom p {
        font-size: 1rem;
    }
    .footer-custom p1 {
        line-height: 1.5;
        font-size: 1.1rem;
    }
    .footer-custom h3{
        font-size: 0.9rem;
    }
}
@media (max-width: 450px){
    .footer-custom h{
        font-size: 1.3rem;
        line-height: 1.6;
    }
    .footer-custom p {
        margin: 10px 0;
        font-size: 0.95rem;
    }
    .footer-custom p1 {
        line-height: 1.5;
        font-size: 1.05rem;
    }
    .footer-custom h3{
        font-size: 0.8rem;
    }
}
