@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/*********************************************** Globals *******************************/
:root {
    --theme-primary: #075C83;
    --theme-text-color-hover: #0D9ECF;
    --theme-text-color-secondary: #212529;
    --theme-bg-overlay: rgba(7, 92, 131, 0.5);
}

html,
body {
    box-sizing: border-box;
    min-height: 100%;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: var(--theme-text-color-secondary);
    font-size: 15px;
    background-color: #fff;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-primary) #f9f9f9;
    position: relative;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

/* scrollbar */
/* Chrome, Edge, Safari */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
    background: #f9f9f9;
}

html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
    background: var(--theme-primary);
    border-radius: 10px;
    border: 2px solid #f9f9f9;
}

html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover {
    background: var(--theme-text-color-hover);
}

/* text */
.primary-theme-text {
    color: var(--theme-primary);
}

/* buttons */
.button-primary {
    background-color: var(--theme-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.4s ease-in-out;
    transform: perspective(1px) translateZ(0);
    overflow: hidden;
    position: relative;
}

.button-primary:hover {
    background-color: #064A6B;
    color: #fff;
    text-decoration: none;
}

.button-primary:before {
    content: "";
    position: absolute;
    z-index: -1;
    height: 2rem;
    width: 2rem;
    top: calc(50% - 1rem);
    left: calc(50% - 1rem);
    transform: scale(0);
    transition: all 0.5s ease-in-out;
    background-color: #064A6B;
}

.button-primary:hover:before {
    transform: scale(10);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--theme-text-color-hover), var(--theme-primary));
    color: #fff;
    font-weight: 600;
    border-radius: 7px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border: none;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-text-color-hover));
    transform: translateY(-2px);
    color: #fff;
}

/* backgrounds */
.background-light {
    background-color: #f5f7fa;
}

/* bg overlay */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* cards */
.card {
    border-radius: 15px;
}

/* section */
.section {
    padding: 80px 0;
    position: relative;
}

/* section title/subtitle */
.section-subtitle {
    font-size: 16px;
    color: var(--theme-primary);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--theme-text-color-secondary);
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 14px;
    }
}

/* section title border */
.section-title-border {
    width: 90px;
    height: 2px;
    background: var(--theme-primary);
    background: linear-gradient(to right, transparent, var(--theme-primary), transparent);
    margin: 0 auto;
}

/* carousel controls */
/* Controls */
.carousel-control-prev-icon {
    transform: rotate(180deg);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: url('../img/TLM-carousel-indicator.svg');
}

@media screen and (max-width: 991.98px) {
    .carousel-control-prev {
        left: -60px;
    }

    .carousel-control-next {
        right: -60px;
    }
}

@media screen and (max-width: 575.98px) {
    .carousel-control-prev, .carousel-control-next {
        display: none;
    }
}

/* form control */
.form-control {
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 12px 15px;
    transition: all 0.3s ease;
    border-width: 2px;
    color: var(--theme-text-color-secondary);
}

.form-control.is-invalid:focus, .form-control.is-valid:focus {
    box-shadow: none;
}

.form-control:hover:not(.is-invalid):not(.is-valid), .form-control:focus:not(.is-invalid):not(.is-valid) {
    border-color: var(--theme-primary);
    box-shadow: none;
    outline: none;
}

.form-control:not(.is-invalid):not(.is-valid)::placeholder {
    color: var(--theme-text-color-hover);
    opacity: 1;
    font-weight: 400;
}

.form-control.is-invalid::placeholder {
    color: #dc3545;
    opacity: 1;
    font-weight: 400;
}

/* form validation */
.validation-msg {
    margin-top: 6px;
}

/* textarea */
/* Chrome, Edge, Safari */
textarea::-webkit-scrollbar {
    width: 2px;
}

textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

textarea::-webkit-scrollbar-thumb {
    background: var(--theme-primary);
    border-radius: 6px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: var(--theme-text-color-hover);
}

textarea {
    scrollbar-width: thin;
    scrollbar-color: var(--theme-primary) #f1f1f1;
}

/*********************************************** Preloader *******************************/
#preloader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 9999;
}

#preloader .preloader-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #4A99B8 40%, #B0E0F8 100%);
    background-size: 400% 400%;
    animation: GradientShiftAnimation 10s ease infinite;
    z-index: -1;
}

#preloader .preloader-grid {
    display: grid;
    grid-template-columns: repeat(9, 20px);
    gap: 12px;
    align-items: end;
}

#preloader .preloader-arc {
    width: 6px;
    height: 70px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 3px;
    animation: MoveArcAnimation 1.2s ease-in-out infinite;
}

#preloader .preloader-arc:nth-child(1) {
    animation-delay: 0s;
}

#preloader .preloader-arc:nth-child(2) {
    animation-delay: 0.2s;
}

#preloader .preloader-arc:nth-child(4) {
    animation-delay: 0.4s;
}

#preloader .preloader-arc:nth-child(5) {
    animation-delay: 0.6s;
}

#preloader .preloader-arc:nth-child(7) {
    animation-delay: 0.8s;
}

#preloader .preloader-arc:nth-child(8) {
    animation-delay: 1s;
}

#preloader .preloader-letter {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-size: 40px;
    color: #fff;
    font-weight: bold;
    animation: LetterPulseAnimation 1.5s infinite;
}

/*********************************************** Navbar Header top *******************************/
.navbar-header-top {
    background-color: var(--theme-primary);
    color: #fff;
    height: 50px;
    line-height: 50px;
    text-align: center;
    width: 100%;
}

.navbar-header-top a {
    color: #fff;
    text-decoration: none;
}

.navbar-header-top a:hover {
    color: var(--theme-text-color-hover);
}

.navbar-header-top-left a {
    font-size: 20px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.navbar-header-top-left a:first-of-type, .navbar-header-top-right a:first-of-type {
    padding-left: 10px;
    padding-right: 10px;
}

.navbar-header-top-left a:not(:first-of-type):not(:last-of-type), .navbar-header-top-right a:not(:first-of-type):not(:last-of-type) {
    padding-right: 10px;
}

@media screen and (max-width: 767.98px) {
    .navbar-header-top-right a span {
        display: none;
    }
}


/*********************************************** Main Navbar *******************************/
.main-navbar {
    /* background-color: transparent; */
    width: 100%;
    transition: all 0.3s ease-in-out;
    top: 50px;
}

.main-navbar .navbar-toggler {
    border-color: var(--theme-primary);
}

.main-navbar .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.main-navbar.sticky {
    position: fixed;
    top: 0;
    background-color: #fff;
    box-shadow: 0px 3px 10px 0px rgba(22, 28, 45, .08);
    z-index: 1060;
}

.main-navbar.sticky .nav-item .nav-link {
    color: var(--theme-text-color-secondary);
}

.main-navbar .nav-item .nav-link {
    color: #fff;
    font-weight: 600;
    padding: 15px 10px;
    transition: color 0.3s ease-in-out;
    position: relative;
}

.main-navbar .nav-item .nav-link:hover, .main-navbar .nav-item .nav-link.active, .main-navbar .nav-item .nav-link:focus {
    color: var(--theme-primary);
}

.main-navbar .nav-item .nav-link:not(.language-toggle)::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--theme-primary);
    transition: width 0.3s ease;
}

.main-navbar .nav-item .nav-link:hover:not(.active)::before {
    width: 100%;
}

@media screen and (max-width: 991.98px) {
    .main-navbar {
        background-color: #fff;
    }

    .main-navbar .nav-item .nav-link {
        color: var(--theme-text-color-secondary);
    }

    .main-navbar .nav-item .nav-link:hover:not(.active)::before {
        max-width: 200px;
    }

    .main-navbar .nav-item .nav-link::before {
        max-width: 200px;
    }

}

/*********************************************** Navbar Language picker *******************************/
/* Main language button */
.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    border-radius: 12px;
    background: #f0f8fc;
    color: var(--theme-text-color-hover);
}

.language-dropdown {
    border-radius: 10px;
    min-width: 130px;
    max-width: 200px;
    padding: 6px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: none;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.main-navbar.sticky .language-dropdown {
    background-color: var(--theme-primary);
}

.language-dropdown .dropdown-item {
    color: var(--theme-primary);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 18px;
    border-radius: 8px;
}

.language-dropdown .dropdown-item:active {
    background-color: unset;
}

.language-dropdown .dropdown-item:hover {
    color: var(--theme-text-color-secondary);
}

.main-navbar.sticky .language-dropdown .dropdown-item {
    color: #fff;
}

.main-navbar.sticky .language-dropdown .dropdown-item:hover {
    color: var(--theme-text-color-hover);
    background-color: unset;
}

.language-toggle::after {
    margin-left: 0.35rem;
    transition: transform 0.25s ease;
}

.language-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.language-flag {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
}

@media screen and (max-width: 991.98px) {
    .language-dropdown {
        background-color: var(--theme-primary);
    }

    .language-dropdown .dropdown-item {
        color: #fff;
    }

    .language-dropdown .dropdown-item:hover {
        color: var(--theme-text-color-hover);
    }
}

/*********************************************** Section Header *******************************/
.section-header {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 150px 0 150px 0;
    background-color: var(--theme-bg-overlay);
}

.section-header .bg-overlay {
    background-color: var(--theme-bg-overlay);
    background: url("../img/header-overlay.svg");
    opacity: .6;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.header-shape {
    position: absolute;
    pointer-events: none;
    right: 0;
    bottom: 0;
    left: 0;
}

.header-shape>img {
    width: 100%;
    height: auto
}

/*********************************************** Section About *******************************/
.section-about-content p {
    text-align: justify;
}

/*********************************************** Section Services *******************************/
.section-services-card {
    text-align: center;
    border: 1px solid #dedede;
    transition: all 0.35s ease;
    position: relative;
    background-color: #fff;
    padding-top: 60px;
    padding-bottom: 30px;
}

.section-services-card:hover {
    border-color: var(--theme-primary);
}

.section-services-card .icon-holder {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 2px solid var(--theme-primary);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    z-index: 2;
}

.section-services-card:hover .icon-holder {
    transform: translateX(-50%) scale(1.1);
}

.section-services-card .icon-holder i {
    font-size: 30px;
    color: var(--theme-primary);
}

.section-services-card .service-title {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--theme-primary);
    margin-bottom: 15px;
}


.section-services-card .service-description {
    width: 80%;
    margin: 0 auto;
}

/*********************************************** Section Counters *******************************/
.section-counters {
    background: url("../img/TLM-map-bg.jpg");
    background-repeat: no-repeat;
    /* background-position: center center; */
    background-attachment: fixed;
    background-size: cover;
    background-color: rgba(7, 92, 131, 0.7);
    min-height: 500px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.section-counters .counter-item {
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.section-counters .counter-item+p {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*********************************************** Back to Top Button *******************************/
#back-to-top {
    position: fixed;
    bottom: 80px;
    right: 40px;
    background-color: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top:hover {
    background-color: var(--theme-text-color-hover);
    transform: translateY(-3px);
}

/*********************************************** Calendly widget *******************************/
.calendly-badge-content {
    transition: all 0.3s ease;
}

.calendly-badge-content:hover {
    background-color: var(--theme-text-color-hover) !important;
    transform: translateY(-3px);
}

/* .calendly-overlay .calendly-spinner {
    display: none !important;
} */

.calendly-popup {
    width: 100% !important;
}

@media screen and (max-width: 975px) {
    .calendly-popup {
        width: 95% !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/*********************************************** Section Testimonials *******************************/
.testimonial-card {
    max-width: 600px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-left: 4px solid var(--theme-text-color-hover);
    position: relative;
}

.testimonial-card:hover {
    transform: scale(0.98);
    border-color: var(--theme-primary);
}

/* Faded oversized quote marks */
.testimonial-card::before,
.testimonial-card::after {

    position: absolute;
    pointer-events: none;
    line-height: 0.8;
    font-family: Georgia, serif;
    color: var(--theme-text-color-hover);
    opacity: 0.1;
    font-size: 110px;
    font-weight: bold;
}

.testimonial-card::before {
    content: "“";
    top: 15px;
    left: 25px;
}

.testimonial-card::after {
    content: "”";
    bottom: -20px;
    right: 25px;
}

.testimonial-name {
    color: var(--theme-text-color-hover);
    font-weight: 700;
}

.testimonial-message {
    color: var(--theme-text-color-secondary);
    font-style: italic;
    line-height: 1.6;
    position: relative;
}

#testimonialCarousel .carousel-inner {
    min-height: 300px;
}

#testimonialCarousel .carousel-inner {
    transition: height 0.5s ease;
}


/*********************************************** Section FAQ *******************************/
#faq .accordion-item {
    border: none;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#faq .accordion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--theme-primary);
}

#faq .accordion-button {
    font-weight: 600;
    color: var(--theme-primary);
    background: #fff;
    box-shadow: none;
    padding: 20px 25px;
    transition: all 0.3s ease;
}

#faq .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--theme-text-color-hover) 0%, var(--theme-primary) 100%);
    color: #fff;
}

#faq .accordion-button::after {
    background-image: url('../img/TLM-carousel-indicator.svg');
    transform: rotate(90deg);
}

#faq .accordion-button:not(.collapsed)::after {
    transform: rotate(-90deg);
    background-image: url('../img/TLM-carousel-indicator-white.svg');
}

#faq .accordion-body {
    color: var(--theme-text-color-secondary);
    line-height: 1.7;
}

/*********************************************** Section Contact *******************************/
.contact-form {
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 15px;
    border-left: 4px solid var(--theme-text-color-hover);
}

.contact-form:hover {
    transform: translateY(-3px);
    border-color: var(--theme-primary);
}

.contact-form textarea {
    resize: none;
    max-height: 200px;
    overflow-y: auto;
}

.contact-form .btn-gradient {
    border-radius: 50px;
}

/* Validation feedback */
.contact-form .was-validated .form-control:invalid {
    border-color: #dc3545;
}

.contact-form .was-validated .form-control:valid {
    border-color: #28a745;
}

/*********************************************** Footer *******************************/
/* Footer Bottom */
.footer-bottom {
    background-color: #f5f7fa;
    border-top: 1px solid rgba(7, 92, 131, 0.9);
}

.footer-bottom p {
    color: var(--theme-text-color-secondary);
    font-size: 0.875rem;
    margin: 0;
}


/*********************************************** recaptcha *******************************/
.grecaptcha-badge {
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: 0px !important;
}

.grecaptcha-badge:hover {
    width: 256px !important;
}

/*********************************************** Section Students Slider *******************************/
.students-slider-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0f0fa 100%);
    overflow: hidden;
}

.students-slider {
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.students-slider:active {
    cursor: grabbing;
}

.student-slide {
    flex: 0 0 auto;
    width: 20%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.student-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    filter: grayscale(50%) brightness(0.9);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease, box-shadow 0.8s ease;
    will-change: transform, filter;
}

.student-slide img:hover {
    transform: scale(1.15) translateY(-12px);
    filter: grayscale(0%) brightness(1.1) saturate(1.2);
    box-shadow: 0 25px 60px rgba(7, 92, 131, 0.45);
}

@media screen and (max-width: 1200px) {
    .student-slide {
        width: 25%;
    }
}

@media screen and (max-width: 992px) {
    .student-slide {
        width: 33.33%;
    }
}

@media screen and (max-width: 576px) {
    .student-slide {
        width: 80%;
        margin: 0 auto;
    }
}

/*********************************************** Cookies consent*******************************/
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--theme-primary) 0%, rgba(7, 92, 131, 0.9) 100%);
    color: #fff;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    opacity: 0;
    z-index: 9999;
    border-radius: 5px;
}

#cookieConsent.show {
    transform: translateY(0);
    opacity: 1;
}

#cookieConsent.hide {
    transform: translateY(100%);
    opacity: 0;
}

#cookieConsent .consent-text {
    flex: 1 1 auto;
    min-width: 200px;
}

#cookieConsent .consent-actions {
    display: flex;
    gap: 0.75rem;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
}

#cookieConsent button {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cookieConsent button.accept {
    background: var(--theme-text-color-hover);
    color: #fff;
}

#cookieConsent button.cancel {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

#cookieConsent button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(7, 92, 131, 0.35);
}

@media screen and (max-width: 575.98px) {
    #cookieConsent {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    #cookieConsent .consent-actions {
        width: 100%;
        justify-content: center;
    }

    #cookieConsent button {
        width: 120px;
    }
}