/* Estcham dizainas WordPress blokams (kraunama po main.css). */

/* Tekstas blokuose: tarpus tarp blokų nustato theme.json blockGap */
.entry-content > :is(h1, h2, h3, h4, h5, h6, p, ul, ol, figure),
:is(.is-layout-flow, .is-layout-constrained) > :is(h1, h2, h3, h4, h5, h6, p, ul, ol, figure) { margin-bottom: 0; }
.entry-content ul, .entry-content ol { padding-left: 40px; }
.entry-content p:empty { display: none; }

/* ---------- Sekcijos (Cover blokas) ---------- */
.wp-block-cover__inner-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 10px; color: var(--white); }
.wp-block-cover.is-light .wp-block-cover__inner-container { color: var(--white); }
.wp-block-cover.hero .wp-block-cover__image-background { object-position: 50% 100%; }
.wp-block-cover.hero { padding-top: 50px; }
.wp-block-cover .wp-block-cover__background { pointer-events: none; }
.entry-content > .wp-block-image.alignfull img { width: 100%; }

/* Telefone fiksuotas fonas neveikia – ekrano dydžio sluoksnis, apkarpytas sekcijos */
@media (max-width: 1024px) {
  .wp-block-cover.has-parallax { clip-path: inset(0); }
  .wp-block-cover.has-parallax .wp-block-cover__image-background { position: fixed; inset: 0; width: 100%; height: 100vh; background-attachment: scroll !important; background-size: cover; }
}

/* ---------- Mygtukai ---------- */
.wp-block-button__link { background: var(--white); color: var(--navy); font-family: var(--font); font-weight: 400; font-size: 15px; line-height: 1; padding: 12px 24px; border-radius: 3px; transition: opacity .2s; }
.wp-block-button__link b, .wp-block-button__link strong { font-weight: 800; }
.wp-block-button__link:hover { opacity: .85; color: var(--navy); }
.wp-block-buttons.is-block .wp-block-button { width: 100%; }
.wp-block-buttons.is-block .wp-block-button__link { display: block; width: 100%; text-align: center; font-weight: 800; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }

/* ---------- Stulpeliai ---------- */
.wp-block-columns.gap-lg { gap: 20px 40px; }
.wp-block-columns.v-center { align-items: center; }
.wp-block-columns.hero-cols { gap: 20px; align-items: flex-start; }
.hero-cols > .wp-block-column { min-width: 0; }
.hero-cols .hero-events { padding: 0 50px 50px; }
.wp-block-columns.prices { gap: 20px; }
.prices .wp-block-column > .price { height: 100%; }
.board-intro { max-width: var(--container) !important; width: auto; }
.board-intro > * { max-width: 51%; }

/* ---------- Programa (Details blokas) ---------- */
:is(.acc-wrap, .is-style-acc-wrap) { padding: 20px 50px 50px; }
:is(.acc-wrap, .is-style-acc-wrap) > * + * { margin-top: 0 !important; }
.acc-wrap .wp-block-details, .is-style-acc-wrap .wp-block-details { background: var(--white); border-bottom: 1px solid #d5d8dc; }
.acc-wrap .wp-block-details[open], .is-style-acc-wrap .wp-block-details[open] { background: linear-gradient(rgba(0,0,0,.26), rgba(0,0,0,.26)), var(--navy); padding-bottom: 50px; }
.acc-wrap .wp-block-details summary, .is-style-acc-wrap .wp-block-details summary { list-style: none; display: block; position: relative; padding: 10px 15px 10px 35px; cursor: pointer; background: var(--white); color: #000; font-size: 1rem; font-weight: 800; text-transform: uppercase; line-height: 1.4; }
.acc-wrap .wp-block-details summary::-webkit-details-marker { display: none; }
.acc-wrap .wp-block-details summary::before, .is-style-acc-wrap .wp-block-details summary::before { content: ""; position: absolute; left: 15px; top: 50%; margin-top: -8px; width: 10px; height: 16px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z'/%3E%3C/svg%3E"); }
.acc-wrap .wp-block-details[open] summary::before { transform: rotate(180deg); }
.acc-wrap .wp-block-details > :not(summary), .is-style-acc-wrap .wp-block-details > :not(summary) { color: var(--white); margin: 1em 50px 0; }
.acc-wrap .wp-block-details > summary + *, .is-style-acc-wrap .wp-block-details > summary + * { margin-top: 50px; }

/* ---------- Kita ---------- */
.contact-person .wp-block-image img { width: 120px; }
.side-label-box { display: flex; align-items: center; gap: 10px; }
.side-label-box > * { margin-top: 0 !important; }
.logo-box p img { display: inline-block; }
.post-content > * + * { margin-top: 1em; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.pagination .page-numbers { color: var(--white); padding: 6px 12px; border: 1px solid rgba(255,255,255,.4); }
.pagination .current { background: var(--white); color: var(--navy); }
.logo-text { color: var(--navy); font-weight: 800; font-size: 20px; }
.footer-logo img { width: 66%; max-width: 190px; height: auto; }
.logo img { height: auto; }

@media (max-width: 1024px) {
  .wp-block-columns.hero-cols { flex-wrap: wrap !important; }
  .hero-cols > .wp-block-column { flex-basis: 100% !important; }
  .hero-cols .hero-events { padding: 0 0 50px; }
  .board-intro > * { max-width: 100%; }
}
@media (max-width: 767px) {
  .acc-wrap, .is-style-acc-wrap { padding-left: 0; padding-right: 0; }
  .acc-wrap .wp-block-details > :not(summary) { margin-left: 20px; margin-right: 20px; }
  .acc-wrap .wp-block-details > summary + * { margin-top: 25px; }
  .acc-wrap .wp-block-details[open] { padding-bottom: 25px; }
  .wp-block-cover__inner-container { padding: 0 16px; }
  .entry-content ul, .entry-content ol { padding-left: 20px; }
}
.text-justify :is(h1, h2, h3, h4) { text-align: left; }
