/**
 * Site-specific layout tweaks (loads after theme CSS).
 */

/* Header logo — slightly smaller than theme default (300×90) */
:root {
    --header-logo-width: 240px;
    --header-logo-height: 72px;
    --header-logo-img-max-height: 54px;
}

/* Logo sits inline before navigation (not in the left sidebar box) */
.main-header-style2--nav-logo {
    padding-left: 0 !important;
}

.main-header-style2--nav-logo .main-header-style2__logo-box {
    display: none;
}

.main-header-style2--nav-logo .main-header-style2__top-left {
    padding-left: 60px;
}

.main-header-style2--nav-logo .main-header-style2__top-line {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 28px;
    min-width: 0;
}

.main-header-style2--nav-logo .main-header-style2__tagline {
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.main-header-style2--nav-logo .main-header-style2__top-contacts {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
}

.main-header-style2--nav-logo .main-header-style2__top-contacts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.main-header-style2--nav-logo .main-header-style2__top-contacts .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--thm-primary-color);
    font-size: 16px;
    line-height: 1;
}

.main-header-style2--nav-logo .main-header-style2__top-contacts a {
    color: #5e5b5a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.main-header-style2--nav-logo .main-header-style2__top-contacts a:hover {
    color: var(--thm-primary-color);
}

/* Full-width header navigation bar */
.main-header-style2--nav-logo .main-header-style2__bottom {
    width: 100%;
    margin-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.main-header-style2--nav-logo .main-header-style2__bottom-inner {
    width: 100%;
}

.main-header-style2--nav-logo .main-header-style2__bottom-inner::before {
    left: 0;
    right: 0;
    border-radius: 0;
}

.main-header-style2--nav-logo .main-header-style2__bottom-left {
    flex: 1;
}

.main-header-style2--nav-logo .main-menu-style1 .main-menu__wrapper-inner {
    align-items: center;
    gap: 32px;
    padding-left: 16px;
}

.main-header-style2--nav-logo .main-header-style2__bottom-left .sticky-logo-box-style1 {
    display: block;
    flex-shrink: 0;
    padding-left: 48px;
}

.main-header-style2--nav-logo .main-header-style2__bottom-left .main-menu-style1__left {
    width: auto;
    flex: 1;
}

.main-header-style2--nav-logo .main-header-style2__bottom-left .main-menu-style1__left .main-menu-box {
    width: 100%;
    margin-left: 0;
}

/* Three counters — equal thirds on large screens */
@media only screen and (min-width: 1200px) {
    .fact-counter-style1 .row > .col-xl-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
}

.about-style3--enhanced {
    background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
    padding-top: 70px;
    padding-bottom: 70px;
}

.about-style3--home.about-style3--enhanced {
    padding-top: 70px;
}

.about-style3--enhanced .about-style3__content {
    background: #ffffff;
    border: 1px solid #e7edf7;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(16, 2, 40, 0.08);
    padding: 36px 32px;
}

.about-style3--enhanced .about-style3__img .inner img {
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
}

.main-slider-style2 .cms-home-slider-slide .main-slider-content .sub-title,
.main-slider-style2 .cms-home-slider-slide .main-slider-content .big-title,
.main-slider-style2 .cms-home-slider-slide .main-slider-content .text,
.main-slider-style2 .cms-home-slider-slide .main-slider-content .btn-box {
    opacity: 1;
    transform: none;
}

/* Home slider typography */
.main-slider-style2 .main-slider-content .big-title h2 {
    font-size: 56px;
    line-height: 1.15em;
}

.main-slider-style2 .main-slider-content .sub-title {
    max-width: 100%;
    align-items: flex-start;
}

.main-slider-style2 .main-slider-content .sub-title h5 {
    display: inline-block;
    height: auto;
    min-height: 32px;
    padding: 8px 18px;
    line-height: 1.4;
    white-space: normal;
    text-align: left;
}

/* Home slider: fixed height so mixed image/content sizes never leave a gap */
.main-slider.main-slider-style2 {
    margin-bottom: 0;
    overflow: hidden;
}

.main-slider.main-slider-style2 .thm-swiper__slider {
    height: 720px;
    min-height: 720px;
}

.main-slider-style2 .swiper-wrapper,
.main-slider-style2.swiper-container-fade .swiper-slide {
    height: 100% !important;
    min-height: 100%;
}

.main-slider-style2 .swiper-slide .image-layer,
.main-slider-style2 .swiper-slide .image-layer__left-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.main-slider-style2 .image-layer {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.main-slider-style2 .swiper-slide .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-box-style2 {
    width: var(--header-logo-width) !important;
    height: var(--header-logo-height) !important;
}

.logo-box-style2::before {
    right: -145px;
    background-color: #ffffff !important;
}

/* Footer top: logo + phone bar full width, 50/50 split */
.footer-style2__top-left--full {
    width: 100%;
}

.footer-style2__top-left--full .logo-box,
.footer-style2__top-left--full .phone-box {
    flex: 1 1 50%;
    width: 50%;
    max-width: 50%;
    box-sizing: border-box;
}

.footer-style2__top-left--full .logo-box {
    display: flex;
    align-items: center;
}

.footer-style2__top-left--full .phone-box {
    margin-left: 0;
    padding-left: 30px;
    justify-content: center;
}

.logo-box-style2 a img,
.main-header-style2--nav-logo .sticky-logo-box-style1 a img {
    max-height: var(--header-logo-img-max-height);
    width: auto;
    max-width: calc(var(--header-logo-width) - 48px);
    height: auto;
    object-fit: contain;
}

@media only screen and (min-width: 1200px) and (max-width: 1500px) {
    :root {
        --header-logo-width: 210px;
        --header-logo-height: 64px;
        --header-logo-img-max-height: 48px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    :root {
        --header-logo-width: 200px;
        --header-logo-height: 60px;
        --header-logo-img-max-height: 44px;
    }

    .logo-box-style2::before {
        right: -60px;
    }
}

/* Footer gallery widget (3 × 2 grid) */
.footer-widget-gallery ul li {
    width: calc(33.333% - 15px);
}

.footer-widget-gallery ul li .img-box {
    aspect-ratio: 1;
}

.footer-widget-gallery ul li .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-widget-gallery__more {
    margin: 4px 0 0;
    padding-top: 4px;
    clear: both;
}

.footer-widget-gallery__more a {
    color: var(--thm-primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    transition: color 0.2s ease;
}

.footer-widget-gallery__more a:hover {
    color: var(--thm-white);
}

/* Home / about gallery — uniform tile heights */
.project-style1 .single-project-style1__img {
    aspect-ratio: 4 / 3;
}

.project-style1 .single-project-style1__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery page */
.project-page-two {
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 185, 0, 0.08), transparent 28%),
        linear-gradient(180deg, #f4f6f8 0%, #eef1f4 100%) !important;
}

.project-page-two .project-menu-box {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 18px;
}

.project-page-two .single-project-style1 {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.mobile-nav__contact li > i {
    margin-right: 8px;
}

.cms-review-quote-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 185, 0, 0.16);
    color: var(--thm-primary-color);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
    line-height: 1;
    padding-top: 13px;
}

.enroll-box-style1 .icon span,
.login-register-box-style1 .icon span,
.header-phone-number-box-style1 .icon span,
.side-content-button .icon-dots-menu,
.footer-style2__top .phone-box .icon i {
    display: inline-block;
    line-height: 1;
}

/* Enroll page */
.enroll-info-section {
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 185, 0, 0.16), transparent 30%),
        linear-gradient(180deg, #fff9ec 0%, #f7f3ed 100%);
    padding-bottom: 90px;
}

.enroll-info-cards {
    row-gap: 24px;
}

.enroll-info-card {
    height: 100%;
    box-shadow: 0 18px 45px rgba(20, 24, 32, 0.12);
}

.enroll-info-card .content-box {
    min-height: 155px;
}

.enroll-form-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(18, 24, 38, 0.96), rgba(38, 47, 62, 0.92)),
        url("../assets/images/shapes/contact-style2__bg.png");
    background-size: cover;
    background-position: center;
    padding-top: 110px;
}

.enroll-form-section .sec-title h2,
.enroll-form-section .sec-title .text p {
    color: #fff;
}

.enroll-form-card {
    background: #fffdf8;
    border: 1px solid rgba(255, 185, 0, 0.18);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.enroll-form-grid {
    row-gap: 18px;
}

.enroll-form-group-title {
    margin-bottom: 24px;
    padding: 18px 22px;
    border-radius: 14px;
    background: #f7f1e7;
    border-left: 5px solid var(--thm-primary-color);
}

.enroll-form-group-title span {
    display: block;
    margin-bottom: 4px;
    color: var(--thm-primary-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.enroll-form-group-title h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.contact-form form .enroll-input,
.contact-form form .enroll-select {
    width: 100%;
    height: 60px;
    border: 1px solid var(--thm-border-color);
    border-radius: 8px;
    background-color: #fff;
    color: var(--thm-body-font-color);
    font-size: 16px;
    padding: 0 20px;
    transition: all 300ms ease;
}

.contact-form form .enroll-textarea {
    height: 150px;
    border-radius: 8px;
    resize: vertical;
}

.contact-form form .enroll-textarea--short {
    height: 126px;
}

.contact-form form .enroll-input:focus,
.contact-form form .enroll-select:focus,
.contact-form form .enroll-textarea:focus {
    border-color: var(--thm-primary-color);
    box-shadow: 0 0 0 4px rgba(255, 185, 0, 0.14);
    outline: none;
}

.enroll-submit-box {
    margin-top: 12px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.enroll-submit-note {
    max-width: 560px;
    color: var(--thm-body-font-color);
    font-size: 16px;
    line-height: 1.6;
}

.contact-submit-box {
    clear: both;
    align-items: flex-start;
}

.contact-submit-box .enroll-submit-note {
    flex: 1 1 420px;
    padding-top: 8px;
}

.contact-submit-action {
    flex: 0 0 auto;
}

@media only screen and (max-width: 1199px) {
    .main-header-style2--nav-logo {
        padding-left: 0 !important;
    }

    .main-header-style2--nav-logo .main-menu-style1 .main-menu__wrapper-inner {
        justify-content: space-between;
        width: 100%;
        gap: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .main-header-style2--nav-logo .main-header-style2__bottom-left {
        width: 100%;
        padding-right: 0;
    }

    .main-header-style2--nav-logo .main-header-style2__bottom-left .sticky-logo-box-style1 {
        padding-left: 0;
        margin-right: 0;
    }

    .main-header-style2--nav-logo .main-header-style2__bottom-left .main-menu-style1__left {
        margin-left: auto !important;
        flex: 0 0 auto;
        width: auto;
    }

    .main-header-style2--nav-logo .main-header-style2__bottom-left .main-menu-style1__left .main-menu-box {
        width: auto;
        margin-left: 0 !important;
        display: flex;
        justify-content: flex-end;
    }

    .main-header-style2--nav-logo .main-header-style2__bottom-left .main-menu .mobile-nav__toggler {
        margin-left: 0;
        padding-right: 4px;
    }
}

@media only screen and (max-width: 767px) {
    :root {
        --header-logo-width: 190px;
        --header-logo-height: 56px;
        --header-logo-img-max-height: 40px;
    }

    .main-header-style2--nav-logo .main-header-style2__top-left {
        padding-left: 20px;
    }

    .main-header-style2--nav-logo .main-header-style2__top-line {
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .main-header-style2--nav-logo .main-header-style2__tagline {
        white-space: normal;
    }

    .main-header-style2--nav-logo .main-header-style2__top-contacts {
        gap: 16px;
    }

    .footer-style2__top-left--full .logo-box,
    .footer-style2__top-left--full .phone-box {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .footer-style2__top-left--full .phone-box {
        padding-left: 0;
        padding-top: 16px;
        justify-content: flex-start;
    }

    .footer-style2__top-left--full .phone-box::before {
        display: none;
    }

    .enroll-info-section,
    .enroll-form-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .enroll-form-card {
        padding: 34px 24px 28px;
    }

    .enroll-submit-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* CMS cookie consent (System → Settings → Cookie Consent) */
.cms-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    padding: 16px;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(110%);
    transition: transform 0.35s ease;
}

.cms-cookie-banner--visible {
    transform: translateY(0);
}

.cms-cookie-banner__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cms-cookie-banner__text {
    margin: 0;
    flex: 1 1 280px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.cms-cookie-banner__btn {
    flex-shrink: 0;
}

@media only screen and (max-width: 575px) {
    .cms-cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cms-cookie-banner__btn {
        width: 100%;
        text-align: center;
    }
}

/* Contact page map: iframe fills the map column */
.lacation-style1--contact .lacation-style1__map .google-map {
    height: 100%;
    min-height: 100%;
}

.lacation-style1--contact .lacation-style1__map-box {
    height: 100% !important;
    min-height: 100%;
    opacity: 1;
    mix-blend-mode: normal;
}

/* Contact page: map hidden — location panel full width */
.lacation-style1--no-map {
    padding-top: 80px;
    padding-bottom: 80px;
}

.lacation-style1--no-map .lacation-style1__tab {
    display: block;
    width: 100%;
}

.lacation-style1--no-map .lacation-style1__tab .tabs-content-box {
    display: none;
}

.lacation-style1--no-map .lacation-style1__tab-button {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-top: 0;
    text-align: center;
}

.lacation-style1--no-map .lacation-style1__tab-button .sec-title,
.lacation-style1--no-map .lacation-style1__tab-button .text {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.lacation-style1--no-map .lacation-style1__tab-button .tab-btn-box {
    max-width: 570px;
    margin-left: auto;
    margin-right: auto;
}

.lacation-style1--no-map .lacation-style1__tab-button .btn-box {
    display: flex;
    justify-content: center;
}

/* Home reviews: spacing below map / FAQ */
.testimonial-page--home {
    padding-top: 80px;
}

/* Why Learn With Us left panel image */
.technology-style1__bg {
    background-image: url("../img/uujmed.webp") !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .main-slider-style2 .main-slider-content .big-title h2 {
        font-size: 48px;
    }
}

@media only screen and (max-width: 991px) {
    .main-slider.main-slider-style2 .thm-swiper__slider {
        height: 620px;
        min-height: 620px;
    }

    .main-slider-style2 .container {
        padding-top: 140px !important;
        padding-bottom: 140px !important;
    }

    .main-slider-style2 .main-slider-content .big-title h2 {
        font-size: 44px;
    }

    .main-slider-style2 .main-slider-content .sub-title h5 {
        font-size: 13px;
        padding: 7px 14px;
    }
}

@media only screen and (max-width: 767px) {
    .main-slider.main-slider-style2 .thm-swiper__slider {
        height: 540px;
        min-height: 540px;
    }

    .main-slider-style2 .container {
        padding-top: 110px !important;
        padding-bottom: 110px !important;
    }

    .main-slider-style2 .main-slider-content .big-title h2 {
        font-size: 34px;
    }

    .main-slider-style2 .main-slider-content .sub-title h5 {
        font-size: 12px;
        padding: 6px 12px;
    }
}
