/* Estcham – prototipas */
:root {
  --navy: #06275A;
  --navy-dark: #031942;
  --blue: #1863DC;
  --green: #27D795;
  --ink: #212121;
  --white: #fff;
  --container: 1140px;
  --font: "Montserrat", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: #333; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--white); font-weight: 800; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; margin: 0 0 .5em; line-height: 1.1; }
ul { margin: 0 0 1em; padding-left: 40px; }
sup { font-size: .6em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 10px; }
.container.narrow { max-width: 900px; }
.center { text-align: center; }
.text-justify { text-align: justify; }
.pt-18 { padding-top: 18px; } .pt-30 { padding-top: 30px; } .pt-50 { padding-top: 50px; } .pt-100 { padding-top: 100px; }
.pb-50 { padding-bottom: 50px; } .pb-100 { padding-bottom: 100px; }
.py-50 { padding-top: 50px; padding-bottom: 50px; }
.p-50 { padding: 50px; } .px-50 { padding-left: 50px; padding-right: 50px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 139px; gap: 20px; }
.logo { flex: 0 0 auto; width: 41%; max-width: 470px; display: flex; justify-content: center; }
.logo img { width: 66%; max-width: 310px; }
.home .logo, .logo { width: auto; }
.logo img { width: 135px; }
.nav { display: flex; flex-direction: column; align-items: center; flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.menu-main { margin-top: 8px !important; }
.menu-main a { display: block; padding: 13px 20px; font-size: 16px; font-weight: 600; text-transform: uppercase; color: #000; }
.menu-main a:hover, .menu-main .current-menu-item > a { color: var(--navy); }
.menu-events a { display: block; padding: 13px 20px; font-size: 13px; font-weight: 800; text-transform: uppercase; color: var(--navy); }
.social { display: flex; align-items: center; gap: 8px; width: 135px; justify-content: flex-end; }
.social img { width: 16px; height: 16px; object-fit: contain; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--white); color: var(--navy); font-weight: 400; font-size: 15px; line-height: 1; padding: 12px 24px; border-radius: 3px; transition: opacity .2s; }
.btn b, .btn strong { font-weight: 800; }
.btn:hover { opacity: .85; }
.btn-block { display: block; text-align: center; font-weight: 800; }

/* ---------- Backgrounds ---------- */
.bg-overlay { position: relative; background-size: cover; background-repeat: no-repeat; background-position: center; }
.bg-overlay::before { content: ""; position: absolute; inset: 0; background: var(--navy); opacity: .7; pointer-events: none; }
.bg-overlay > * { position: relative; }
@media (min-width: 1025px) { .bg-swirl, .event-page { background-attachment: fixed; } }
/* Telefone/planšetėje background-attachment: fixed neveikia, todėl fonas
   ištempiamas per visą sekciją ir pikseliuojasi. Vietoj to – ekrano dydžio
   fiksuotas sluoksnis, apkarpytas sekcijos ribomis. */
@media (max-width: 1024px) {
  .bg-swirl, .event-page { isolation: isolate; clip-path: inset(0); }
  .bg-swirl::after, .event-page::after { content: ""; position: fixed; inset: 0; z-index: -2; background-image: inherit; background-size: cover; background-position: center; pointer-events: none; }
  .bg-swirl::before, .event-page::before { z-index: -1; }
}
.bg-swirl::before { opacity: .7; }
.bg-darker::before { opacity: .7; }

:is(.section-title, .is-style-section-title) { color: var(--white); font-size: 32px; text-transform: uppercase; line-height: 1; }
.full-image img { width: 100%; }

/* ---------- Home hero ---------- */
.hero { padding-top: 50px; background-position: bottom center; }
.hero::before { opacity: .45; }
.hero-inner { display: flex; gap: 20px; align-items: flex-start; }
:is(.hero-intro, .is-style-hero-intro) { flex: 1; background: rgba(6, 39, 90, .82); backdrop-filter: blur(2px); padding: 50px; color: var(--white); }
:is(.hero-intro, .is-style-hero-intro)::before { content: none; }
.hero-title { font-size: 32px; line-height: 1; color: var(--white); }
.hero-text { text-align: justify; }
.hero-text p:first-child { margin-bottom: 1em; }
.hero-events { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 0 50px 50px; }
.event-card { position: relative; padding: 50px; background-size: cover; background-position: center; color: var(--white); overflow: hidden; }
.event-card::before { content: ""; position: absolute; inset: 0; background: var(--navy); opacity: .3; }
.event-card > * { position: relative; }
.event-logo { width: 47%; margin: 0 0 -23px -11px; }
.event-title { font-size: 32px; line-height: 1; color: var(--white); }
.event-subtitle { font-weight: 800; }
.event-text { text-align: justify; }
.event-partners { margin-bottom: 20px; }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 30px; margin-bottom: 30px; }
.post-card { background: var(--white); display: flex; flex-direction: column; border-radius: 3px; overflow: hidden; box-shadow: 0 0 10px rgba(0,0,0,.15); }
.post-thumb { display: block; position: relative; padding-bottom: 115%; overflow: hidden; }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.post-text { padding: 20px 30px 0; flex: 1; }
.post-title { font-size: 21px; line-height: 1.2; margin-bottom: 13px; }
.post-title a { color: var(--navy); }
.post-excerpt { color: #000; font-size: 14px; line-height: 1.5; margin-bottom: 13px; }
.post-more { color: var(--navy); font-size: 12px; font-weight: 700; text-transform: uppercase; display: inline-block; margin-bottom: 20px; }
.post-meta { border-top: 1px solid #eaeaea; padding: 15px 30px; font-size: 12px; color: #adadad; }

/* ---------- Members ---------- */
.board-intro { width: 51%; color: var(--white); }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 30px; padding-top: 20px; }
.member-card { color: var(--white); }
.member-photo { background: var(--white); aspect-ratio: 1; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-block; margin-top: 20px; background: var(--navy); color: var(--white); font-size: 12px; padding: 8px 20px; }
.member-icons { display: flex; gap: 10px; margin-top: 12px; min-height: 12px; }
.member-icons img { width: 12px; height: 12px; }
.member-name { font-size: 18px; font-weight: 400; margin: 8px 0 6px; line-height: 1.2; }
.member-text { font-size: 11px; font-weight: 700; line-height: 1.5; }
.member-filters { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 30px 0 20px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter-btn { font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--white); background: var(--navy); border: 0; padding: 15px 25px; cursor: pointer; transition: background .2s; }
.filter-btn:hover, .filter-btn.active { background: var(--blue); }
.member-card.is-hidden { display: none; }
.member-empty { color: var(--white); text-align: center; }

/* ---------- Generic content ---------- */
.intro-center { max-width: 60%; margin: 0 auto; text-align: center; color: var(--white); padding-top: 20px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gap-lg { column-gap: 40px; }
.v-center { align-self: center; }
.cols-2, .cols-3, .p-50, .stack { color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 20px; }
:is(.box-dotted, .is-style-box-dotted) { border: 1px dotted var(--white); padding: 30px; color: var(--white); }
:is(.box-title, .is-style-box-title) { font-size: 32px; color: var(--white); text-transform: uppercase; padding-left: 20px; }
:is(.box-dashed, .is-style-box-dashed) { border: 2px dashed var(--green); padding: 18px; font-weight: 500; font-size: 16px; color: var(--white); margin: 0; line-height: 1.3; }
:is(.box-dashed, .is-style-box-dashed) strong, :is(.box-dashed, .is-style-box-dashed) b { font-weight: 800; }
.contact-person { display: flex; flex-direction: column; justify-content: center; }
.contact-person img { width: 120px; margin-bottom: 15px; }
.text-page a { color: var(--white); }

/* ---------- Post single ---------- */
.post-hero img { width: 100%; max-height: 640px; object-fit: cover; }
.post-head { max-width: 60%; padding-top: 50px; color: var(--white); }
.post-nav { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 20px; border-top: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3); padding: 10px 0; margin: 20px 0 40px; }
.post-nav .sep { background: rgba(255,255,255,.3); }
.post-nav a { display: flex; flex-direction: column; color: var(--white); font-weight: 400; }
.post-nav .next { text-align: right; }
.post-nav .lbl { font-size: 12px; text-transform: uppercase; }
.post-nav .ttl { font-size: 13px; }
.post-content { color: var(--white); }
.post-content img { margin: 20px 0; }
.post-content a { text-decoration: underline; }

/* ---------- Events ---------- */
.event-page :is(.section-title, .is-style-section-title) { margin-bottom: 0; }
:is(.acc-wrap, .is-style-acc-wrap) { padding: 20px 50px 50px; }
.accordion { background: var(--white); }
.acc-item { border-bottom: 1px solid #d5d8dc; }
.acc-item summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 15px; cursor: pointer; color: #000; font-size: 1rem; font-weight: 800; text-transform: uppercase; line-height: 1.4; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-title { order: 2; }
.acc-icon { order: 1; width: 10px; flex: 0 0 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-item[open] .acc-icon { transform: rotate(180deg); }
.acc-body { background: var(--navy); background: linear-gradient(rgba(0,0,0,.26), rgba(0,0,0,.26)), var(--navy); color: var(--white); padding: 50px; }
.acc-body p:last-child { margin-bottom: 0; }
.prices .price { display: flex; flex-direction: column; justify-content: space-around; text-align: center; min-height: 190px; }
.price h3 { font-size: 20px; text-transform: uppercase; color: var(--white); }
:is(.price-value, .is-style-price-value) { font-size: 32px; font-weight: 800; color: var(--green); text-transform: uppercase; margin: 0; }
:is(.small-note, .is-style-small-note) { font-size: 11px; padding-top: 20px; }
.side-label-box { display: flex; align-items: center; gap: 10px; }
:is(.side-label, .is-style-side-label) { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 32px; color: var(--white); text-transform: uppercase; margin: 0; white-space: nowrap; }
:is(.logo-box, .is-style-logo-box) { background: var(--white); padding: 50px; flex: 1; }
:is(.logo-box, .is-style-logo-box) p { margin: 0; overflow: hidden; }
:is(.logo-box, .is-style-logo-box) img { display: inline-block; vertical-align: middle; margin: 5px 10px 5px 0; }
:is(.logo-box, .is-style-logo-box) .alignleft { float: left; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 50px; align-items: center; }
.footer-logo { display: flex; justify-content: center; }
.footer-logo img { width: 66%; max-width: 190px; }
.footer-info { font-size: 14px; color: #000; }
.footer-info p { margin: 0; }
.footer-info a { color: #000; }
.footer-menu { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-menu > li { position: relative; }
.footer-menu a { display: block; padding: 10px 20px; color: #000; font-weight: 400; }
.footer-menu a:hover, .footer-menu .current-menu-item > a { background: var(--navy-dark); color: var(--white); }
.footer-menu .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 10px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.footer-menu .sub-menu { list-style: none; padding: 0; margin: 0; display: none; }
.footer-menu .menu-item-has-children.open .sub-menu { display: block; }
.footer-menu .sub-menu a { padding-left: 40px; }
.footer-bottom { display: flex; justify-content: flex-end; padding: 0 0 14px; }
.made-by { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; line-height: 1; color: #000; opacity: .72; transition: opacity .2s; }
.made-by:hover { opacity: 1; }
.made-by img { height: 13px; width: auto; }

/* ---------- Cookie consent ---------- */
.ck-banner { position: fixed; left: 40px; bottom: 40px; z-index: 1000; width: 440px; max-width: calc(100% - 32px); background: #fff; border: 1px solid #f4f4f4; border-radius: 6px; padding: 20px 26px; box-shadow: 0 -1px 10px rgba(172,171,171,.3); color: #212121; animation: ck-in .4s ease-out; }
@keyframes ck-in { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.ck-banner[hidden], .ck-modal[hidden], .ck-revisit[hidden] { display: none; }
.ck-title { font-size: 18px; font-weight: 700; line-height: 24px; margin: 0 0 12px; color: #212121; }
.ck-text { font-size: 14px; line-height: 24px; margin: 0; }
.ck-btns { display: flex; gap: 8px; margin-top: 16px; }
.ck-btn { flex: 1; font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 24px; padding: 8px 10px; border-radius: 2px; border: 2px solid #1863DC; cursor: pointer; transition: opacity .2s; }
.ck-btn:hover { opacity: .8; }
.ck-outline { background: transparent; color: #1863DC; }
.ck-primary { background: #1863DC; color: #fff; }
.ck-modal { position: fixed; inset: 0; z-index: 1001; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 8px; }
.ck-panel { background: #fff; color: #212121; width: 845px; max-width: 100%; max-height: 79vh; display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; }
.ck-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid #f4f4f4; }
.ck-head .ck-title { margin: 0; }
.ck-close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #212121; }
.ck-body { padding: 12px 24px; overflow: auto; font-size: 14px; line-height: 24px; }
.ck-cat { border-top: 1px solid #f4f4f4; padding: 12px 0; }
.ck-cat-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.ck-cat p { margin: 8px 0 0; }
.ck-always { color: #008000; font-weight: 600; font-size: 14px; }
.ck-switch input { position: absolute; opacity: 0; }
.ck-switch span { display: block; width: 44px; height: 24px; border-radius: 50px; background: #d0d5d2; position: relative; cursor: pointer; transition: background .3s; }
.ck-switch span::before { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s; }
.ck-switch input:checked + span { background: #1863DC; }
.ck-switch input:checked + span::before { transform: translateX(20px); }
.ck-switch input:focus-visible + span { outline: 2px solid #1863DC; outline-offset: 2px; }
.ck-foot { display: flex; gap: 8px; padding: 22px 24px; border-top: 1px solid #f4f4f4; }

.ck-revisit { position: fixed; left: 16px; bottom: 16px; z-index: 999; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--white); background: var(--navy); color: var(--white); padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(3, 25, 66, .35); transition: transform .2s, background .2s; }
.ck-revisit:hover { transform: scale(1.08); background: var(--blue); }
.ck-revisit[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; }
  :is(.hero-intro, .is-style-hero-intro), .hero-events { width: 100%; }
  .hero-events { padding: 0 0 50px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .board-intro, .intro-center, .post-head { width: auto; max-width: 100%; }
}
@media (max-width: 767px) {
  .header-inner { min-height: 80px; padding: 10px 16px; }
  .logo img { width: 110px; }
  .social { display: none; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 10px 0 20px; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; align-items: center; }
  .container { padding: 0 16px; }
  .p-50, :is(.hero-intro, .is-style-hero-intro), .event-card { padding: 30px 20px; }
  .px-50, :is(.acc-wrap, .is-style-acc-wrap) { padding-left: 0; padding-right: 0; }
  .acc-body { padding: 25px 20px; }
  .cols-2, .cols-3, .post-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  :is(.section-title, .is-style-section-title), .hero-title, .event-title, :is(.box-title, .is-style-box-title) { font-size: 24px; }
  .side-label-box { flex-direction: column; align-items: stretch; }
  :is(.side-label, .is-style-side-label) { writing-mode: horizontal-tb; transform: none; font-size: 24px; }
  :is(.logo-box, .is-style-logo-box) { padding: 25px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 40px 16px; text-align: center; }
  .footer-inner { gap: 22px; padding: 32px 16px 20px; }
  .footer-logo img { max-width: 150px; }
  .footer-info { font-size: 13px; }
  .footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; font-size: 13px; }
  .footer-menu > li { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; }
  .footer-menu a { padding: 4px 8px; }
  .footer-menu a:hover, .footer-menu .current-menu-item > a { background: none; color: var(--navy); font-weight: 700; }
  .footer-menu .menu-item-has-children .sub-menu { flex-basis: 100%; order: 3; }
  .footer-menu .menu-item-has-children.open { flex-basis: 100%; }
  .footer-menu .menu-item-has-children.open .sub-menu { display: flex; flex-wrap: wrap; justify-content: center; background: #f4f6f9; border-radius: 4px; margin: 4px 0; padding: 4px; }
  .footer-menu .sub-menu a { padding: 4px 8px; }
  .footer-bottom { padding-bottom: 70px; }
  .ck-banner { left: 16px; right: 16px; bottom: 16px; width: auto; max-width: none; padding: 18px 20px; }
  .ck-btns, .ck-foot { flex-direction: column; }
  .ck-btns .ck-primary, .ck-foot .ck-primary { order: -1; }
  .ck-modal { padding: 0; }
  .ck-panel { max-height: 100vh; height: 100%; border-radius: 0; }
  .footer-bottom { justify-content: center; }
  .filter-btn { padding: 10px 14px; }
  .pt-100 { padding-top: 60px; } .pb-100 { padding-bottom: 60px; }
  .hero-text, .event-text, .text-justify { text-align: left; }
  .hero-text ul, .p-50 ul, :is(.box-dotted, .is-style-box-dotted) ul { padding-left: 20px; }
}
