/* Hand-written: what Elementor's JavaScript and the Customizer added. */

/* Main menu: sub-menus on hover / keyboard focus (Elementor used SmartMenus). */
.elementor-nav-menu--main .elementor-nav-menu li { position: relative; }
/* Dropdowns as wide as their longest item (SmartMenus sized them in JS; Elementor CSS fixes 12em). */
.elementor-nav-menu--main .elementor-nav-menu ul { position: absolute; z-index: 100; top: 100%; left: 0; width: auto; min-width: 12em; }
.elementor-nav-menu--main .elementor-nav-menu ul ul { top: 0; left: 100%; }
.elementor-nav-menu--main .elementor-nav-menu li:hover > ul,
.elementor-nav-menu--main .elementor-nav-menu li:focus-within > ul { display: block; }
.elementor-nav-menu--main .elementor-nav-menu > li:hover > a { /* keep the hover line while in the sub-menu */ }
.elementor-nav-menu a:not([href]) { cursor: pointer; }

/* Phone menu: Elementor opened it with a scale animation, positioned by JS. */
.elementor-nav-menu--dropdown.elementor-nav-menu__container { position: absolute; z-index: 9997; }
.elementor-menu-toggle:not(.elementor-active) + .elementor-nav-menu__container { transform: scaleY(0); max-height: 0; overflow: hidden; }
.elementor-menu-toggle.elementor-active + .elementor-nav-menu__container { transform: scaleY(1); max-height: 100vh; overflow-y: auto; }

/* The Customizer CSS of the old site only styled the JetEngine course table; that is in shetland-site/assets/courses.css now. */

/* What Astra printed while Elementor was active (its Elementor compatibility CSS). */
:root { --e-global-color-astglobalcolor0: #046bd2; --e-global-color-astglobalcolor1: #045cb4; --e-global-color-astglobalcolor2: #1e293b; --e-global-color-astglobalcolor3: #334155; --e-global-color-astglobalcolor4: #F0F5FA; --e-global-color-astglobalcolor5: #FFFFFF; --e-global-color-astglobalcolor6: #D1D5DB; --e-global-color-astglobalcolor7: #111111; --e-global-color-astglobalcolor8: #111111; }
.site-content > .ast-container > .elementor { flex: 1 1 100%; width: 100%; }
.elementor-widget-heading .elementor-heading-title { margin: 0; }
.elementor-widget-heading h1.elementor-heading-title { line-height: 1.4em; }
.elementor-widget-heading h2.elementor-heading-title,
.elementor-widget-heading h3.elementor-heading-title { line-height: 1.3em; }
.elementor-widget-heading h4.elementor-heading-title,
.elementor-widget-heading h5.elementor-heading-title { line-height: 1.2em; }
.elementor-widget-heading h6.elementor-heading-title { line-height: 1.25em; }
.elementor-page .ast-menu-toggle { color: unset; background: unset; }
.elementor-post.elementor-grid-item.hentry { margin-bottom: 0; }

/* Sidebar month dropdown (the old template's own CSS). */
.elementor-widget-wp-widget-archives h5 { display: none; }
.elementor-widget-wp-widget-archives select { width: 100%; height: 30px; padding: 0 6px; border: 1px solid #f2f2f2; border-radius: 0; background-color: #f2f2f2; color: #2f2f2f; font: 600 14px Roboto, sans-serif; }

/* Converted pages: the blocks keep Elementor's spacing, not the block defaults. */
.elementor figure.wp-block-image { margin: 0; }
.elementor .wp-block-group { box-sizing: border-box; }
.elementor .sh-course-filter-wrap { flex: 1 1 100%; width: 100%; }
.elementor .wp-block-image a { display: inline-block; }
.elementor .wp-block-image img { vertical-align: middle; display: inline-block; }

/* Entrance animations (Elementor "Motion effects > Entrance animation"), played by nav.js on scroll.
   Hidden only once the script has run, so without JavaScript everything shows. */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0) } to { opacity: 1; transform: none } }
.sh-anim-on .sh-anim:not(.sh-anim-in) { visibility: hidden; }
.sh-anim-in { animation-duration: 1.25s; animation-fill-mode: both; }
.sh-anim-in.sh-anim-slow { animation-duration: 2s; }
.sh-anim-in.sh-anim-fast { animation-duration: .75s; }
.sh-anim-in.sh-anim-fadeIn { animation-name: fadeIn; }
.sh-anim-in.sh-anim-fadeInUp { animation-name: fadeInUp; }
@media (prefers-reduced-motion: reduce) { .sh-anim-in { animation: none !important; } }

/* Sticky containers (Elementor Pro sticky). The header template's wrapper steps aside so the
   page (#page) is the sticky parent and the header stays at the top all the way down. */
.elementor-location-header { display: contents; }
.sh-sticky { position: sticky !important; top: var(--wp-admin--admin-bar--height, 0px); }
@media (min-width: 1025px) { .sh-sticky-off-desktop { position: relative !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .sh-sticky-off-tablet { position: relative !important; } }
@media (max-width: 767px) { .sh-sticky-off-mobile { position: relative !important; } }
@media (max-width: 600px) { .admin-bar .sh-sticky { top: 0; } } /* the admin bar scrolls away on phones */

/* Scrolling opacity (Elementor Pro motion effects), set by nav.js. */
.sh-fx-el, .elementor-motion-effects-layer { transition: opacity 1s cubic-bezier(0, .33, .07, 1.03); }
.elementor-motion-effects-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.elementor-motion-effects-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-repeat: no-repeat; background-size: cover; }
@media (prefers-reduced-motion: reduce) { .sh-fx-el, .elementor-motion-effects-layer { transition: none; } }

/* Quiz (QSM): with Elementor qmn_primary.css came after the quiz's inline CSS and made its labels
   blocks; now WordPress loads it in <head>, before that, so the rule is repeated here, stronger. */
.mlw_qmn_quiz .quiz_section label, .mlw_qmn_quiz .quiz_section .mlw_qmn_question { display: block; }

/* Course filter in the post template's sidebar: there the Jet widgets stood flush at the top and the button was 52px. */
.single-post .sh-course-filter--stack { padding-top: 0; }
.single-post .sh-course-filter--stack .sh-course-filter__submit { height: 52px; }

/* ---- Main page: the theme header over the hero, as the old page had it ----
   The hero keeps its own pull-up (margin-top -160px / -224px / -168px), which
   puts it under the header just as under the old in-content one, so the same
   part of the picture shows. Over the picture the top bar is see-through with
   white text and icons; on desktop the menu bar is a white box (the page width
   stays clear). Once the page scrolls (nav.js: .sh-scrolled) the menu bar is
   the full-width white bar of the other pages. */
body.home .elementor-5933 .elementor-element.elementor-element-ae98578:not(.elementor-motion-effects-element-type-background) { background-color: transparent; border-bottom-color: transparent; }
body.home .elementor-5933 .elementor-element.elementor-element-ae98578 .elementor-element.e-con:not(.elementor-motion-effects-element-type-background) { background-color: transparent; }
body.home .elementor-5933 .elementor-element-ae98578 .elementor-icon-list-text,
body.home .elementor-5933 .elementor-element-ae98578 .elementor-icon-list-item > a { color: #fff; }
body.home .elementor-5933 .elementor-element-ae98578 .elementor-icon-list-icon svg { fill: #fff; }
body.home .elementor-5933 .elementor-element-ae98578 img { filter: brightness(0) invert(1); }
@media (min-width: 1025px) {
	body.home:not(.sh-scrolled) .elementor-5933 .elementor-element.elementor-element-4a6766dd:not(.elementor-motion-effects-element-type-background) { background-color: transparent; }
	body.home:not(.sh-scrolled) .elementor-5933 .elementor-element-4a6766dd > .e-con-inner { background-color: #fff; padding-left: 20px; }
}

/* Post grids: every picture fills its box whatever its own shape (cropped at the
   edges, centred), as Elementor's script did with its fit-height class. */
.elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none; }

/* ---- [shetland_hirek oszlop=".."]: the main page's news grid anywhere -----
   The main page's own rules for its posts widget (.elementor-element-e4c0cb4),
   unscoped; columns from --sh-cols (the shortcode sets it), one below 1025px. */
.sh-hirek { --item-display: flex; --read-more-alignment: 1; --grid-row-gap: 20px; --grid-column-gap: 30px; }
.sh-hirek .elementor-posts-container.elementor-grid { grid-template-columns: repeat(var(--sh-cols, 3), minmax(0, 1fr)); }
.sh-hirek .elementor-posts-container .elementor-post__thumbnail { padding-bottom: calc(.66 * 100%); }
.sh-hirek .elementor-post__thumbnail__link { width: 100%; margin-bottom: 20px; }
.sh-hirek .elementor-post { border-style: solid; border-width: 1px; border-radius: 0; background-color: var(--e-global-color-astglobalcolor5); border-color: var(--e-global-color-a8e3af3); }
.sh-hirek .elementor-post__text { padding: 40px 20px 20px 20px; margin-bottom: 20px; }
.sh-hirek .elementor-post:hover { box-shadow: 0 0 5px 1px rgba(0, 0, 0, .18); }
.sh-hirek .elementor-post__title, .sh-hirek .elementor-post__title a { color: var(--e-global-color-7f74054); font-family: "Roboto", sans-serif; font-size: 16px; font-weight: 700; text-transform: uppercase; line-height: 22px; }
.sh-hirek .elementor-post__title { margin-bottom: 0; }
.sh-hirek .elementor-post__meta-data { color: var(--e-global-color-7527cf6); font-family: "Roboto", sans-serif; font-size: 13px; font-weight: 500; margin-bottom: 30px; }
.sh-hirek .elementor-post__excerpt p { color: var(--e-global-color-7f74054); font-family: "Roboto", sans-serif; font-size: 14px; font-weight: 400; line-height: 24px; }
.sh-hirek .elementor-post__excerpt { margin-bottom: 20px; }
.sh-hirek .elementor-post__read-more { color: var(--e-global-color-4dba571); }
.sh-hirek a.elementor-post__read-more { font-family: "Roboto", sans-serif; font-size: 12px; font-weight: 900; }
.sh-hirek .elementor-pagination { text-align: center; font-family: "Roboto Slab", sans-serif; font-weight: 400; margin-top: 20px; }
.sh-hirek .elementor-pagination .page-numbers:not(:first-child) { margin-left: 5px; }
.sh-hirek .elementor-pagination .page-numbers:not(:last-child) { margin-right: 5px; }
@media (max-width: 1024px) {
	.sh-hirek { --grid-row-gap: 30px; }
	.sh-hirek .elementor-posts-container.elementor-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Footer (template 6281) ----
   Elementor pinned the copyright bar to the bottom of the screen (position: fixed,
   bottom 0, plus a 50px top margin on phones), and the last block of each template
   kept a fixed room free under itself for it. The bar's height changes with the
   screen width (75px desktop, 114px tablet, 144-166px phones) but the room didn't,
   so the end of the page depended on the device: a white strip above the bar on
   tall phones (Galaxy S22, Pixel 6 Pro), the bar crowding the red contact block on
   short ones (iPhone SE, iPad mini). The bar now follows the page like any block
   and that room goes: 39643d7 (pages), bc8c89d (main page), faff589 (posts),
   8d1da6f (404). */
.elementor-6281 .elementor-element.elementor-element-1b1b0be { --position: relative; position: relative; bottom: auto; --margin-top: 0px; margin-top: 0; }
#content .elementor-element.elementor-element-39643d7,
#content .elementor-element.elementor-element-bc8c89d,
#content .elementor-element.elementor-element-faff589,
#content .elementor-element.elementor-element-8d1da6f { --margin-bottom: 0px; }

/* "Olasz év" in the menus is a green block with white text, as on itt.shetland.hu: the menu item
   has the class menu-kiemelt (Megjelenés → Menük → CSS osztályok). Darker on hover, on keyboard
   focus and on its own page; Elementor's hover line is off there. !important beats the
   Elementor header's own (more specific) colour rules. */
.elementor-nav-menu .menu-kiemelt > a { background-color: #2E7D32 !important; color: #fff !important; fill: #fff !important; }
.elementor-nav-menu .menu-kiemelt > a:hover,
.elementor-nav-menu .menu-kiemelt > a:focus,
.elementor-nav-menu .menu-kiemelt > a.elementor-item-active,
.elementor-nav-menu .menu-kiemelt.current-menu-item > a { background-color: #1B5E20 !important; color: #fff !important; fill: #fff !important; }
.elementor-nav-menu .menu-kiemelt > a.elementor-item::before,
.elementor-nav-menu .menu-kiemelt > a.elementor-item::after { display: none !important; }

/* Desktop menu bar: the menu fills the bar's full height, so a coloured item (menu-kiemelt)
   touches the line above and below; centred, it left a half-pixel white line where the bar
   is 91px (the logo row) and the links 90px. */
@media (min-width: 1025px) {
	.elementor-5933 .elementor-element.elementor-element-f9260f2 { align-self: stretch; }
	.elementor-5933 .elementor-element.elementor-element-8b39e99 { align-self: stretch; display: flex; flex-direction: column; }
	.elementor-5933 .elementor-element-8b39e99 > .elementor-widget-container,
	.elementor-5933 .elementor-element-8b39e99 .elementor-nav-menu--main { flex: 1 1 auto; }
}
