@font-face {
    font-family: 'EB Garamond';
    src: url('/includes/fonts/EBGaramond-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'EB Garamond';
    src: url('/includes/fonts/EBGaramond-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'EB Garamond';
    src: url('/includes/fonts/EBGaramond-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'EB Garamond';
    src: url('/includes/fonts/EBGaramond-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

body {
  	margin: 0;
  	padding: 0;
	font-family: 'EB Garamond', serif;
	padding-bottom: 40px; /* arba kiek reikia (pvz., 70-120px, pagal footerio aukštį) */
	box-sizing: border-box;
}

.ico {
  transition: transform 0.18s cubic-bezier(.4,1.5,.4,1);
  cursor: pointer;
  border-radius:12px;
}
.ico:hover {
  transform: scale(1.18);
  box-shadow: 0 3px 18px 0 #66003355;
}

    /* Footer trigger per vidurį */
    .footer-trigger {
      position: fixed;
      left: 50%;
      bottom: 0px;
      transform: translateX(-50%);
      z-index: 1097;
      background: #660033;
      border-radius: 12px;
      padding: 8px;
      box-shadow: 0 6px 24px #66003333;
      cursor: pointer;
      transition: box-shadow .2s;
    }
    .footer-trigger:hover {
      box-shadow: 0 8px 36px #66003355;
    }
    /* Užtemdymo sluoksnis – footer overlay */
    .footer-overlay {
      display: none;
      position: fixed;
      left: 0; top: 0; width: 100vw; height: 100vh;
      background: rgba(50,0,30,0.45);
      z-index: 1098;
    }
    .footer-overlay.active { display: block; }
    /* Footer blokas */
    .footer-block {
      position: fixed;
      left: 50%; bottom: 0; transform: translateX(-50%);
      background: #660033ee;
      color: #fff;
      min-width: 300px;
      min-height: 120px;
      z-index: 1099;
      padding: 32px 16px 24px 16px;
      border-radius: 24px 24px 0 0;
      text-align: center;
      box-shadow: 0 -4px 24px #66003355;
      display: none;
      animation: slideup .22s cubic-bezier(.5,1.8,.3,1);
    }
    .footer-block.active { display: block; }
    @keyframes slideup {
      from { transform: translate(-50%, 120px); opacity: 0; }
      to   { transform: translate(-50%, 0); opacity: 1; }
    }

    /* „Go to Top“ ir "Back" knopkės – užapvalinta, dešinėje */
.top-btn, .back-btn-fixed {
  position: fixed;
  bottom: 30px;
  z-index: 1200;
  width: 60px; height: 48px;
  background: #660033;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s, transform 0.2s, opacity .2s, visibility .2s;
  opacity: 1;
  visibility: visible;
  border: none;
  outline: none;
  padding: 0 16px;
  gap: 8px;
}
.top-btn {
  right: 30px;
}
.back-btn-fixed {
  left: 30px;
}
.top-btn:hover, .back-btn-fixed:hover {
  background: #a90a55;
  transform: scale(1.08);
}
.top-btn .arrow, .back-btn-fixed .arrow {
  font-size: 26px;
}
@media (max-width:500px) {
  .top-btn, .back-btn-fixed {
    right: 16px; left: 16px; bottom: 16px;
    width: 50px; height: 42px; font-size:18px;
  }
  .top-btn { right: 16px; left: auto;}
  .back-btn-fixed { left: 16px; right: auto;}
}

  
    
/* BURGERIO MYGTUKAS */
.burger-btn {
  position: fixed;
  top: 10px; right: 10px; z-index: 1502;
  background: #660033;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 4px 16px #66003344;
  cursor: pointer;
  transition: box-shadow .2s;
}
.burger-btn:hover {
  box-shadow: 0 8px 30px #66003377;
}

/* PERMATOMAS OVERLAY */
.menu-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20,0,10,0.28);
  z-index: 1501;
}
.menu-overlay.active { display: block; }

/* SIDE MENU PANELIS */
.side-menu {
  position: fixed;
  right: 0; top: 0;
  width: 500px; max-width: 96vw; height: 100vh;
  background: #660033ee; color: #fff;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform .23s cubic-bezier(.7,1.6,.3,1);
  box-shadow: -3px 0 32px #66003344;
  padding: 44px 16px 32px 16px;
  border-radius: 16px 0 0 16px;
  overflow-y: auto;
}
.side-menu.active { transform: translateX(0); }
@media (max-width:500px) {
  .side-menu { width: 95vw; max-width: 95vw; border-radius: 0; }
}

/* Slepia bullets, atstatyk! */
.side-menu ul, .side-menu li { list-style: none; margin: 0; padding: 0; }

/* Įtrauka pagal lygį */
.main-nav > li > a { padding-right: 8px;  text-align: right; display: block; }
.sub-nav > li > a { padding-right: 32px; text-align: right; display: block; }
.subsub-nav > li > a { padding-right: 56px; text-align: right; display: block; }

/* Rodyklė tik jei yra submeniu */
.side-menu a.has-children {
  position: relative;
  padding-left: 28px; /* vietos rodyklei iš kairės */
}
.side-menu a.has-children::before {
  content: '◂';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.12em;
  opacity: 0.7;
  transition: transform .2s, content .2s;
}
li.open > a.has-children::before { content: '▾'; }
.side-menu a.has-children:hover::before { color: #fff; opacity: 1; }

/* Bendras link stilius */
.side-menu a {
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 16px 10px 8px;
  font-size: 1.09em;
  font-weight: 400;
  background: none;
  transition: background .17s, color .17s;
}

/* Hover ir aktyvi */
.side-menu a:hover, .side-menu a.active {
  background: #a90a55;
  color: #fff;
}

/* Išskleistas meniu */
li.open > a {
  background: #a90a55;
  color: #fff;
  font-weight: 600;
  border-right: 4px solid #fff;
  border-left: none;
}
li.open > ul {
  background: #74144826;
  border-radius: 10px;
  margin-top: 2px;
  padding-bottom: 2px;
}

/* Submeniu slepimas */
.sub-nav, .subsub-nav { display: none; }
li.open > .sub-nav,
li.open > .subsub-nav { display: block; }

/* HERO */
.hero {
  position: relative;
  height: 50vh;
  min-height: 320px;
  width: 100vw;
  overflow: hidden;
}
.hero-slider {
  height: 100%; width: 100%;
  position: absolute; left:0; top:0;
}
.hero-img {
  object-fit: cover;
  width: 100vw; height: 50vh;
  position: absolute; left:0; top:0;
  opacity: 0; transition: opacity 1.1s;
  z-index: 0;
}
.hero-img.active { opacity: 1; z-index: 1; }
.hero-overlay {
	position: absolute; left:0; top:0; width:100vw; height:100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	z-index: 10;
	color: #fff;
	text-align: center;
	padding-top: 5vh;  /* <-- Padaro, kad visa kortelė (kartu su fonu) prasidėtų žemiau */
}
.hero-text-bg {
  background: rgba(68, 20, 50, 0.72); /* šviesesnis tonas */
  border-radius: 18px;
  padding: 32px 46px 28px 46px;
  box-shadow: 0 4px 18px #66003333;
  display: inline-block;
  max-width: 90vw;
  pointer-events: auto;
  margin: 0 auto;
}
.hero-text-bg h1 { font-size: 2.6rem; font-weight:700; margin-bottom: 10px; }
.hero-text-bg p  { font-size: 1.35rem; margin-bottom: 0; margin-top: 0.4rem; }
.main-btn {
  display:inline-block;
  background:#660033;
  color:#fff;
  border-radius:12px;
  padding:14px 36px;
  text-decoration:none;
  font-size:1.12rem;
  font-weight:600;
  box-shadow:0 2px 8px #66003344;
  transition:.18s;
  margin-top: 0.6rem;
}
.main-btn:hover { background:#a90a55; }

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 60px 10vw 30px 10vw;
  background: #f8f6fa;
}
.landing-actions > h1 {
  height: 80px; /* arba koks tau reikia */
  display: flex;
  align-items: center;    /* vertikaliai centras */
  justify-content: center; /* horizontaliai centras */
  margin-bottom: 24px;    /* tarpas nuo kortelių */
  font-weight: 700;
  font-size: 2rem;
  color: #660033;
  width: 100%;
  text-align: center;
}
.action-card {
  background:#fff;
  border-radius:12px;
  box-shadow:0 2px 16px #66003316;
  flex:1 1 220px;
  max-width: 310px;
  padding: 28px 22px;
  text-align:center;
  display:flex; flex-direction:column; align-items:center;
  transition:.18s;
}
.action-card img.ico { width:48px; height:48px; margin-bottom:18px; }
.action-card h3 { margin-bottom:10px; }
.action-card p { font-size:1.05em; margin-bottom:14px; }
.action-link {
  color:#660033;
  font-weight:600;
  text-decoration:none;
  border-radius:8px;
  padding:7px 16px;
  transition:.12s;
  background:#f3ecf6;
}
.action-link:hover { background:#660033; color:#fff; }

@media (max-width:700px) {
  .hero { height:36vh; min-height:160px;}
  .hero-img { height:36vh;}
  .hero-overlay h1 { font-size:1.45rem;}
  .landing-actions { padding:32px 2vw 20px 2vw; gap:12px; }
  .hero-text-bg { padding: 8px 10px; font-size: 0.98em; }
}

/* KALBŲ PASIRINKIMO MYGTUKAI */
.header-tools {
  position: fixed;
  top: 10px;
  left: 10px; /* buvo right: 18px; */
  z-index: 2100;
  display: flex;
  flex-direction: column; /* <- Šitas! */
  gap: 10px;
}
.lang-btn {
  background: #660033;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 6px 16px;
  font-size: 1em;
  cursor: pointer;
  transition: background .17s;
  box-shadow: 0 2px 8px #66003333;
  text-decoration: none;
}
.lang-btn.active, .lang-btn:hover {
  background: #a90a55;
}

.slug-preview {
    color: #a90a55;
    font-size: 0.92em;
    margin-left: 4px;
    font-style: italic;
}

/* NEWS SCROLLERis - POSTAI Index faile*/
.news-scroller {
  margin: 0;
  padding: 0;
  background: transparent;
  width: 100vw;
  overflow: hidden;   /* jokių horizontalių scrollo šešėlių */
  position: relative;
  box-sizing: border-box;
}

.news-scroller-inner {
  display: flex;
  gap: 0;              /* NEBĖRA tarpų! */
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #660033 #eee;
  scroll-snap-type: x mandatory;
  box-sizing: border-box;
  min-height: 0;
}

/* Pagrindinis kortelių aukštis – paveldi iš hero (pvz., 50vh ar 64vh) */
.news-card {
  flex: 0 0 auto;
  height: 50vh;
  aspect-ratio: 16 / 9;
  width: auto;
  min-width: 220px;
  max-width: 98vw;
  aspect-ratio: 16/9;
  background: #fff;
  border-radius: 0;    /* Nebėra apvalinimo */
  box-shadow: none;    /* Nebėra šešėlių */
  margin: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  scroll-snap-align: start;
  transition: background 0.17s, box-shadow .16s;
}

/* Paveikslėlis užima visą aukštį, tekstas – ant jo (overlay), ARBA žemiau */
.news-card-hero {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #f4e6ed;
}
.news-card-hero img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.news-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(34,0,25,0.9) 70%, rgba(34,0,25,0.2) 0%);
  padding: 50px 20px 20px 20px; /* truputį didesnis padding */
  color: #fff;
  z-index: 2;
}
.news-card-title {
  font-size: 1.5em; font-weight: 700; color: #fff; margin-bottom: 2px; text-shadow: 0 2px 8px #66003377;
}
.news-card-date {
  font-size: 0.98em; color: #e8c6df; margin-bottom: 2px;
}
.news-card-desc {
  color: #fff; font-size: 1em; text-shadow: 0 1px 6px #66003388;
}

/* Hover */
.news-card:hover {
  background: #ffe9f7;
}

/* Scrollbar tik desktop */
.news-scroller-inner::-webkit-scrollbar {
  height: 10px;
  background: #eee;
}
.news-scroller-inner::-webkit-scrollbar-thumb {
  background: #660033;
  border-radius: 10px;
}

/* 6-ta kortelė */
.news-card.see-all-posts {
  background: #660033ee;
  color: #fff;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: background 0.3s ease;
}

.news-card.see-all-posts:hover {
  background: #a90a55;
  transform: translateY(-4px) scale(1.03);
}

.news-card.see-all-posts .news-card-hero {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobilus stilius: kortelės pilnai ekrane, bet lieka 16:9 (ar šiek tiek mažiau aukštos) */
@media (max-width:900px) {
  .news-card {
    width: 92vw;
    min-width: 240px;
    max-width: 96vw;
    height: 28vh;
    aspect-ratio: 16 / 10;
  }
  .news-card-hero,
  .news-card-hero img {
    aspect-ratio: 16 / 10;
    height: 100%;
    width: 100%;
  }
  .news-card-body {
    font-size: 0.99em;
    padding: 12px 10px 9px 10px;
  }
}


/* KORTELĖS */
.landing-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 42px auto 60px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.action-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  transition: transform .18s;
  height: 100%;
}

.action-card-link:hover .action-card {
  box-shadow: 0 8px 32px #ae33c344;
  transform: translateY(-4px) scale(1.024);
}

/* Kortelė */
.action-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px #66003315;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .18s, transform .16s;
  padding: 0; /* PAŠALINTA, kad hero neliktų tarpo */
}

/* Hero paveikslėlis visada liečiasi su viršum ir kraštais */
.action-card-hero {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eee;
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
}
.action-card-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  transition: filter .18s, transform .20s;
  filter: brightness(.85);
  border-radius: 0; /* Pašalina užapvalinimus iš hero */
}

/* Hover efektas paveikslėliui */
.action-card-link:hover .action-card-hero img {
  filter: brightness(.72) blur(.2px);
  transform: scale(1.035);
}

.action-card-body {
  padding: 18px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-card-body h3 {
  margin: 0 0 6px 0; font-size: 1.19em; font-weight: 700; color: #660033;
}
.action-card-body p {
  margin: 0 0 4px 0; font-size: 1em; color: #5a3344; line-height: 1.35;
}

/* Ikonos palaikymui, jei norėsi kartais naudoti */
.action-card .ico {
  width: 48px; height: 48px; margin-bottom: 18px;
  filter: drop-shadow(0 2px 6px #0002);
}

.action-link {
  display: inline-block;
  background: #660033;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 1px 8px #66003322;
  transition: background .18s;
}
.action-link:hover { background: #ae33c3; }

@media (max-width: 600px) {
  .landing-actions {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
  }
  .action-card-link {
    max-width: 100%;
    margin: 0 auto;
  }
  .action-card-body {
    padding: 12px 9px 14px 9px;
  }
}

/* BREADCRUMBS */
.breadcrumbs {
  font-size: 1.06em;
  margin: 14px 0 18px 0;
  color: #555;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.breadcrumb-link {
  color: #ae33c3;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-current {
  color: #660033;
  font-weight: 700;
}
.breadcrumb-sep { color: #ccc; margin: 0 2px; }
