/*
 Theme Name:   UAM
 Theme URI:    https://uam.ua/child/
 Description:  UAM Child Theme
 Author:       Oleksandr Nesterenko
 Author URI:   https://posmishka.com
 Template:     kadence
 Version:      1.2.25
 Tags:         customizable, modern, responsive-layout, gutenberg, header builder, footer builder
 Text Domain:  kadencechild
*/


@font-face {
    font-family: 'Gilroy';
    src: url('assets/webfonts/Gilroy-Medium.woff2') format('woff2'),
        url('assets/webfonts/Gilroy-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('assets/webfonts/Gilroy-Light.woff2') format('woff2'),
        url('assets/webfonts/Gilroy-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('assets/webfonts/Gilroy-Regular.woff2') format('woff2'),
        url('assets/webfonts/Gilroy-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('assets/webfonts/Gilroy-Heavy.woff2') format('woff2'),
        url('assets/webfonts/Gilroy-Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('assets/webfonts/Gilroy-Bold.woff2') format('woff2'),
        url('assets/webfonts/Gilroy-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


.home .entry-content-wrap,
.page .entry-content-wrap {
	padding: 0;
}

.home .entry-content .wp-block-group.has-background,
.page .entry-content .wp-block-group.has-background  {
	padding: 0;
}

.home .wp-block-group.has-background:before,
.page .wp-block-group.has-background:before {
	content: "";
	background: linear-gradient(61.51deg, rgba(0, 0, 0, 0.83) 2.99%, rgba(0, 0, 0, 0.415) 34.47%, rgba(0, 0, 0, 0) 48.59%);
	position: absolute;
	top:0; 
	bottom:0;
	left:0;
	right:0;
}

/* .home .wp-block-group.has-background .kb-row-layout-wrap {
	background: linear-gradient(61.51deg, rgba(0, 0, 0, 0.83) 2.99%, rgba(0, 0, 0, 0.415) 34.47%, rgba(0, 0, 0, 0) 48.59%);
} */


.about-timeline .kt-testimonial-item-wrap {

}


.about-timeline .kt-testimonial-item-wrap > * {
	/* outline: 1px solid red; */
	height: 9rem;
	margin: 0;
}

.about-timeline .kt-testimonial-item-wrap .kt-testimonial-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-bottom: 1px solid #360309;
    align-items: flex-start;
    text-align: left;
    padding: 0 1rem 1rem;
}

.about-timeline .kt-testimonial-item-wrap .kt-testimonial-meta-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    align-items: flex-start;
	padding: 1rem 1rem 0 1rem;;
}

.about-timeline .kt-blocks-testimonial-carousel-item.kb-slide-item.splide__slide {
	margin-right: 0 !important;
}

.kt-testimonial-occupation-wrap .kt-testimonial-occupation {
    
    text-align: left;
}

.about-timeline .kt-testimonial-item-wrap:after {
    content: "";
    width: 17px;
    height: 17px;
    background-color: #fff;
    border-radius: 17px;
    border: 1px solid #3e70ff;
    position: absolute;
    top: calc(50% - 10px);
    left: 10px;
}

#lang-switcher.menu-ls {
    list-style: none;
    padding: 0;
    margin: 0 1rem 0 0;
}

#lang-switcher.menu-ls a {
    padding-left: calc(2.5rem / 2);
    padding-right: calc(2.5rem / 2);
    padding-top: 0.6em;
    padding-bottom: 0.6em;
    color: var(--global-palette9);
	text-decoration: none;
    transition: all .2s ease-in-out;
    transform: translate3d(0, 0, 0);
}

#lang-switcher.menu-ls a:hover {
	color: #29abe2;

}

.site-footer ul.menu li.menu-item {
	line-height: inherit;
}

.site-footer ul.menu li.menu-item a {
    border: 0;
    text-align: center;
    padding: 0;
    margin-block-end: .25rem;
}

.partners-logos .kb-gallery-ul .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner figure .kb-gallery-image-contain.kadence-blocks-gallery-intrinsic img {
    object-fit: contain !important;
    max-height: 80px !important;
}

.partners-logos.wp-block-kadence-advancedgallery .kt-blocks-carousel .splide__arrow--prev {
    left: -3rem;
}

.partners-logos.wp-block-kadence-advancedgallery .kt-blocks-carousel .splide__arrow--next {
    right: -3rem;
}

.partners-logos .kb-splide .splide__arrow {
    font-size: 1rem;
    background: var(--splide-nav-background);
    border: 1px solid #888;
    border-radius: 50%;
    height: 2em;
    width: 2em;
    justify-content: center;
    opacity: .25;
    padding: 0;
    color: var(--splide-nav-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    box-shadow: none;
    transition: opacity .3s ease-in-out;
}

.home-hero-bg {
	background-position: 0% 100% !important;
    background-attachment: inherit !important;
}

/* body:after {
    background-image: url(https://uam.ua/wp-content/uploads/2025/06/homepage-1.webp) !important;
    background-position: 50% 0%;
    background-repeat: no-repeat;
    background-size: inherit;
    content: "";
    position: absolute;
    top: 34px;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
} */

#main-header .header-button {
    padding: .75rem 3rem;
    background: #33a8e2;
    border-radius: 12px;
	white-space:nowrap;
}

.wp-singular .lg-backdrop {
	background-color: #fff;
}

.wp-singular  .lg-outer .lg-thumb-outer {
    background-color: #eee;
}

.wp-singular   .lg-outer .lg-toogle-thumb {
	background-color: #eee;
}

.header-navigation .header-menu-container ul ul.sub-menu.mega-menu-wrapper {
    background: var(--global-palette9);
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 24px;
    width: var(--wp--style--global--content-size);
    max-width: calc( 100vw - 4rem );
    margin-left: auto !important;
    margin-right: auto !important;
    position: absolute;
    top: 100%;
    left: 2rem;
    transform: translateX(-50%);
    box-shadow: 1px 4px 15px rgba(0, 0, 0, 0.75);
    border-radius: 24px;
}

.nav--toggle-sub:not(.click-to-open) li:hover>ul.mega-menu-wrapper {
	display: grid;
}

.mega-menu-wrapper .mega-menu-card {
    width: 100% !important;
    padding: 0 !important;
    list-style: none;

    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
	padding-top: 1rem;
}

.mega-menu-wrapper .mega-menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.12);
}

.mega-menu-card a,
.mega-menu-card h4,
.mega-menu-card p {
    padding-left: 16px;
    padding-right: 16px;
}

.mega-menu-card .menu-image.menu-image-title-below {
    width: 100%;
    height: auto;
    object-fit: cover;
	aspect-ratio: 427 / 240;
}


.menu-image-title {
    margin: 12px 0 4px 0;
    font-size: 19px;
    color: #111;
    font-weight: 700;
	text-decoration: none;
	text-align: left !important;
	line-height:1.25;
}

.mega-menu-card__description {
    font-size: 0.9em;
    color: #555;
    margin: 0;
    flex-grow: 1; /* Pushes the button to the bottom. */
}

.mega-menu-card a,  .mega-menu-card a:hover {
	text-decoration: none;
}

.mega-menu-card__button {
    display: block;
    background-color: #111;
    color: #fff !important; /* Important to override theme link color. */
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 16px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

.mega-menu-card__button:hover {
    background-color: #005177;
}

.mega-menu .mega-menu-card {
    position: relative;
}

/* Now, create the line using the ::after pseudo-element.
   This rule applies the line to every card EXCEPT for the last one in each row (the 5th, 10th, etc.). */
.mega-menu .mega-menu-card:not(:nth-child(5n))::after {
    content: ''; /* Required for pseudo-elements to show up. */
    position: absolute;

    /* Position the line to the right of the card, in the middle of the 20px gap. */
    right: -10px; /* (gap / 2) = (20px / 2) */

    /* Make the line 80% of the card's height for nice spacing. */
    top: 0;
    height: 100%;
    
    /* Style the line itself. */
    width: 1px;
    background-color: #222; /* A light, subtle grey. */
}

.glightbox-kadence-dark.kadence-popup-2_9f5cdf-9c .goverlay {
    opacity: .35 !important;
}

footer.site-footer {
	
}


/*
 * Scroll-activated Video Block Styles
 */
.scroll-video-wrapper {
    position: relative;
    width: 100%;
    /* Creates a 16:9 aspect ratio box. Adjust if your video is different. */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.scroll-video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.5s ease-in-out;
}

.scroll-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* When the video is playing, fade out the cover image. */
.scroll-video-wrapper.is-playing .scroll-video-cover {
    opacity: 0;
    pointer-events: none; /* Allows clicks to go through to the player. */
}


.header-html-inner {
    display: flex;
    align-items: center;
}

#lang-switcher select {
    background: none;
    border: none;
    color: #fff;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiNiYmIiPjxwYXRoIGQ9Ik02IDlsNiA2IDYtNiIvPjwvc3ZnPg==) no-repeat 75% 50%;
}


