@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap");


/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --ob-lime: #aec142;              /* the site's own colour, decorative */
  --ob-lime-deep: #5d6a13;         /* lime that reads as text on white */
  --ob-lake: #133b5c;              /* menu bar, headings */
  --ob-lake-2: #1c4c74;
  --ob-paper: #ffffff;
  --ob-mist: #f3f6f2;
  --ob-line: #e3e8e0;

  --ob-ink: #1f2a30;
  --ob-ink-soft: #5d6970;

  --ob-font: "Ubuntu", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --ob-page: 1160px;
  --ob-gutter: clamp(0.9rem, 3vw, 1.5rem);
  --ob-sidebar: 300px;
}


/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ob-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ob-ink);
  background-color: #d9e4ea;       /* behind the site's background photo */
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

iframe {
  max-width: 100%;
}

a {
  text-decoration: none;
}

.boxed-wrap p a:hover,
.nb-footer a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clear {
  clear: both;
}

/* Text links: the theme's lime is too pale on white */
.boxed-wrap p a,
.boxed-wrap .mom-post-meta a,
.nb-footer a,
.widget_recent_entries a {
  color: var(--ob-lime-deep);
}

::selection {
  color: var(--ob-ink);
  background: var(--ob-lime);
}

:focus-visible {
  outline: 2px solid var(--ob-lime-deep);
  outline-offset: 2px;
}


/* ==========================================================================
   3. Parts that need the theme's scripts, or are empty
   ========================================================================== */

.mom-social-icons,                 /* social icons without links */
.momizat-social-icons,
.device-menu-wrap,                 /* phone menu needs its script */
.nav-buttons,                      /* second search box; the top bar has one */
.current_time,
.fs-drection-nav,
.fs-nav,
.post-format-icon,
.scrollToTop,
.mom_retina_logo,
.nav-shaddow,
.category-title:empty,
.responsive-caret,
#footer:not(:has(.one_fourth > *)) {
  display: none !important;
}

/* Google ad slots whose script never ran, or that came back empty */
.mom-e3lan:has(ins.adsbygoogle:not([data-adsbygoogle-status])),
.mom-e3lan:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
}

.tr_e3lan-widget:has(ins.adsbygoogle:not([data-adsbygoogle-status])),
.tr_e3lan-widget:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
}


/* ==========================================================================
   4. Page: white boxed layout over the site's background photo
   ========================================================================== */

.boxed-wrap {
  max-width: var(--ob-page);
  margin: 0 auto;
  background: var(--ob-paper);
  box-shadow: 0 0 40px rgba(19, 59, 92, 0.25);
}

.inner {
  max-width: var(--ob-page);
  margin: 0 auto;
  padding: 0 var(--ob-gutter);
}


/* ==========================================================================
   5. Top bar, header, menu
   ========================================================================== */

.topbar {
  font-size: 0.85rem;
  background: var(--ob-lake);
}

.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.6rem;
}

.topbar .search-form form {
  display: flex;
}

.topbar .search-form input[type="text"] {
  width: 14rem;
  height: 1.9rem;
  padding: 0 0.7rem;
  font: inherit;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 0;
  border-radius: 999px 0 0 999px;
}

.topbar .search-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-form .button {
  position: relative;
  width: 2.4rem;
  height: 1.9rem;
  padding: 0;
  color: var(--ob-lake);
  background: var(--ob-lime);
  border: 0;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
}

.search-form .button i {
  display: none;
}

.search-form .button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ob-lake);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}

/* the page sets a 114 px line height on these; a row layout replaces it */
.header > .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  height: auto !important;
  min-height: 96px;
  padding-block: 0.9rem;
  line-height: 1.2 !important;
}

.header .logo {
  height: auto !important;
  line-height: 0 !important;
}

.header .logo img {
  width: auto;
  max-height: 56px;
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0 !important;
}

.header-right img {
  display: block;
  max-height: 64px;
  width: auto;
}

.header > .inner > .clear {
  display: none;
}

/* Main menu: lake-blue bar with lime marker and dropdowns */
#navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ob-lake);
  border-bottom: 3px solid var(--ob-lime);
}

#navigation .inner {
  padding: 0 calc(var(--ob-gutter) - 0.7rem);
}

#navigation .main-menu {
  display: flex;
  flex-wrap: wrap;
}

#navigation .main-menu li {
  position: relative;
}

#navigation .main-menu > li > a {
  display: block;
  padding: 0.85rem 0.7rem;
  font-family: var(--ob-font);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #ffffff;
}

#navigation .main-menu > li:hover > a,
#navigation .main-menu > li:focus-within > a,
#navigation .main-menu > li.current-menu-item > a {
  color: var(--ob-lime);
  background: var(--ob-lake-2);
}

#navigation .main-menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.34rem;
  height: 0.34rem;
  margin-left: 0.45rem;
  vertical-align: 0.18em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

#navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 110;
  min-width: 13rem;
  padding: 0.35rem 0;
  background: var(--ob-paper);
  border-top: 3px solid var(--ob-lime);
  box-shadow: 0 16px 30px -14px rgba(19, 59, 92, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

/* third level opens to the side */
#navigation .sub-menu .sub-menu {
  top: -0.35rem;
  left: 100%;
  border-top: 0;
  border-left: 3px solid var(--ob-lime);
}

#navigation li:hover > .sub-menu,
#navigation li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

#navigation .main-menu > li:nth-last-child(-n+2) > .sub-menu {
  left: auto;
  right: 0;
}

#navigation .main-menu > li:nth-last-child(-n+2) .sub-menu .sub-menu {
  left: auto;
  right: 100%;
  border-left: 0;
  border-right: 3px solid var(--ob-lime);
}

#navigation .sub-menu a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--ob-ink);
}

#navigation .sub-menu li.menu-item-has-children > a::after {
  content: "›";
  color: var(--ob-ink-soft);
}

#navigation .sub-menu a:hover,
#navigation .sub-menu li:focus-within > a {
  color: var(--ob-lime-deep);
  background: var(--ob-mist);
}

@media (max-width: 1000px) {
  #navigation .inner {
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #navigation .inner::-webkit-scrollbar {
    display: none;
  }

  #navigation .main-menu {
    flex-wrap: nowrap;
    width: max-content;
    padding-inline: calc(var(--ob-gutter) - 0.7rem);
  }

  #navigation .sub-menu,
  #navigation .main-menu > li.menu-item-has-children > a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar .inner {
    justify-content: center;
  }

  .topbar .search-form input[type="text"] {
    width: 11rem;
  }

  .header > .inner {
    justify-content: center;
  }

  .header-right {
    justify-content: center;
  }

  .header-right img {
    max-height: 48px;
  }
}


/* ==========================================================================
   6. "FRISS" ticker: one scrolling line
   ========================================================================== */

.breaking-news {
  margin: var(--ob-gutter) 0;
  overflow: hidden;
  background: var(--ob-mist);
  border-radius: 4px;
}

.breaking-news .the_ticker {
  display: flex;
  align-items: stretch;
}

.breaking-news .bn-title {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: none;
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ob-lake);
  background-color: var(--ob-lime);
}

.breaking-news .bn-title::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
  border-left: 10px solid var(--ob-lime);
}

.news-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.news-ticker ul {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  padding-left: 100%;
  animation: ob-ticker 90s linear infinite;
}

.news-ticker:hover ul,
.news-ticker:focus-within ul {
  animation-play-state: paused;
}

.news-ticker li {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  white-space: nowrap;
  opacity: 1 !important;
}

.news-ticker li i {
  display: none;
}

.news-ticker li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ob-lime);
}

.news-ticker li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ob-ink);
}

.news-ticker li a:hover {
  color: var(--ob-lime-deep);
}

@keyframes ob-ticker {
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .news-ticker {
    overflow-x: auto;
  }

  .news-ticker ul {
    padding-left: 1.5rem;
    animation: none;
  }
}


/* ==========================================================================
   7. Main column and sidebar
   ========================================================================== */

.boxed-content-wrapper > .inner:has(> .main_container) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ob-sidebar);
  gap: 2rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.boxed-content-wrapper > .inner > .clear,
.main_container > .clear {
  display: none;
}

.vc_row {
  margin-bottom: 1.75rem;
}

.vc_row:has(> .vc_col-sm-6) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  justify-items: center;
}

@media (max-width: 1000px) {
  .boxed-content-wrapper > .inner:has(> .main_container) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .vc_row:has(> .vc_col-sm-6) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Featured slider: both slides side by side */
.feature-slider .fslides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.feature-slider .fslide {
  position: relative;
  display: block !important;
  overflow: hidden;
  border-radius: 4px;
}

.feature-slider .fslide img {
  display: block;
  width: 100%;
  aspect-ratio: 610 / 380;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-slider .fslide:hover img {
  transform: scale(1.03);
}

.feature-slider .slide-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 3rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(10, 28, 44, 0.88), rgba(10, 28, 44, 0));
}

.feature-slider .slide-caption h2 {
  margin: 0;
  font-size: clamp(1rem, 0.85rem + 0.5vw, 1.3rem) !important;
  font-weight: 700;
}

.feature-slider .slide-caption h2 a {
  color: #ffffff;
}

@media (max-width: 640px) {
  .feature-slider .fslides {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* News boxes */
.news-box {
  margin: 0;
}

.news-box .nb-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.news-box .nb-header::after {
  content: "";
  flex: 1;
  height: 3px;
  background: var(--ob-line);
}

.news-box .nb-title {
  margin: 0;
  padding: 0.3rem 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ob-lake) !important;
  border-radius: 3px;
}

.news-box .nb-title a {
  color: #ffffff;
}

.news-box h3,
.news-box h4,
.news-box h3 a,
.news-box h4 a {
  font-weight: 700;
  color: var(--ob-ink);
}

.news-box h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

.news-box h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.news-box h3 a:hover,
.news-box h4 a:hover {
  color: var(--ob-lime-deep);
}

.mom-post-meta {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--ob-ink-soft);
}

.mom-post-meta .category {
  margin-left: 0.4rem;
}

.news-summary p {
  font-size: 0.97rem;
  color: var(--ob-ink-soft);
}

/* the theme's inline ".base-box .read-more-link" rule makes these lime */
.news-box .news-summary .read-more-link {
  color: var(--ob-lime-deep);
}

.read-more-link {
  font-weight: 700;
  white-space: nowrap;
}

.read-more-link i {
  display: none;
}

.read-more-link::after {
  content: " »";
}

.news-image img,
.nip-recent img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* style 2: headline on top, image left, summary right */
.nb-style2 .recent-news article {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.5rem 1.25rem;
}

.nb-style2 .rn-title {
  grid-column: 1 / -1;
}

/* style 3: image left, headline and summary right */
.nb-style3 .recent-news article {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
}

/* older articles */
.older-articles {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ob-line);
}

.older-articles ul {
  display: grid;
  gap: 0.9rem 1.5rem;
}

.older-articles ul.two-cols,
.nb-style4 .older-articles ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.older-articles li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.nb-style4 .older-articles li {
  display: block;
  padding-left: 0.8rem;
  border-left: 3px solid var(--ob-lime);
}

.older-articles li > a img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  flex: none;
}

.older-articles li > a {
  flex: none;
}

.nb-footer {
  margin-top: 1rem;
  text-align: right;
}

.nb-footer a {
  font-size: 0.9rem;
  font-weight: 700;
}

.nb-footer a i {
  display: none;
}

.nb-footer a::after {
  content: " →";
}

@media (max-width: 640px) {
  .nb-style2 .recent-news article,
  .nb-style3 .recent-news article,
  .older-articles ul.two-cols,
  .nb-style4 .older-articles ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* "Képes": big picture beside a 3 × 3 grid of thumbnails */
.new-in-pics .nb-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 6px;
}

.new-in-pics .nb-content > .clear {
  display: none;
}

.nip-recent a,
.nip-grid a {
  display: block;
  height: 100%;
}

.nip-recent img {
  height: 100%;
  object-fit: cover;
}

.nip-grid ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.nip-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
}

@media (max-width: 640px) {
  .new-in-pics .nb-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sidebar */
.sidebar .widget,
.sidebar .tr_e3lan-widget {
  margin-bottom: 1.75rem;
}

.widget-head {
  margin-bottom: 0.8rem;
  border-bottom: 3px solid var(--ob-lime);
}

.sidebar .widget-title {
  display: inline-block;
  margin: 0;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ob-lake);
  background: var(--ob-lime) !important;
  border-radius: 3px 3px 0 0;
}

.mpw-post {
  display: flex;
  gap: 0.75rem;
}

.mpw-post .sec-sidebar-element {
  display: none;
}

.mpw-post .post-img img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
}

.mpw-post h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.mpw-post h4 a {
  color: var(--ob-ink);
}

.mpsw-slider .slides li {
  position: relative;
  display: block !important;
}

.mpsw-slider .slides li:not(:first-child) {
  display: none !important;
}

.mpsw-slider img {
  display: block;
  width: 100%;
  border-radius: 4px;
}

.mpsw-slider .slide-caption {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ob-ink);
}

.widget_recent_entries li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ob-line);
}

.widget_recent_entries li a {
  font-weight: 500;
}

.mom-video-widget iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.mom_facebook_likebox {
  max-width: 100%;
  overflow: hidden;
}

.momizat-ads .mom-e3lanat-inner {
  display: grid;
  gap: 6px;
}

.mom-e3lan img {
  display: block;
}


/* ==========================================================================
   8. Footer, cookie notice
   ========================================================================== */

.copyrights-area {
  font-size: 0.875rem;
  color: #c9d6df;
  background: var(--ob-lake);
  border-top: 3px solid var(--ob-lime);
}

.copyrights-area .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}

.copyrights-text {
  margin: 0;
}

.footer_menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
}

.footer_menu a {
  color: #ffffff;
}

.footer_menu a:hover {
  color: var(--ob-lime);
}

/* the cookie notice sits at the end of the page instead of over it */
#cookie-notice {
  position: static !important;
  max-width: var(--ob-page);
  margin: 0 auto;
  padding: 0.8rem var(--ob-gutter);
  font-size: 0.875rem;
  visibility: visible !important;
}

.cookie-notice-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
}

#cn-accept-cookie {
  padding: 0.35rem 1rem;
  font-weight: 700;
  color: var(--ob-lake);
  background: var(--ob-lime);
  border-radius: 999px;
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}