/**
 * 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;
}

.main-header-style2 {
    padding-left: var(--header-logo-width) !important;
}

.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: 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;
}

.logo-box-style2 a img,
.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);
}

/* 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: 767px) {
    :root {
        --header-logo-width: 190px;
        --header-logo-height: 56px;
        --header-logo-img-max-height: 40px;
    }

    .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;
}

/* 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 (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;
    }
}

@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;
    }
}
