/*
Theme Name: Alumni Style
Theme URI: https://alumni.oa.edu.ua/
Description: Lightweight standalone WordPress theme: header with nav, hero with video/photo background, feature grid, FAQ accordion, news query loop, footer widget columns. No parent theme, no plugins required.
Author: Custom
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.2
Text Domain: alumni
*/

/* ==========================================================================
   1. RESET + DESIGN TOKENS
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

:root {
  --zlc-navy: #16294d;
  --zlc-navy-light: #1f3a6e;
  --zlc-gold: #c9a227;
  --zlc-gold-dark: #a9871e;
  --zlc-bg: #ffffff;
  --zlc-bg-soft: #f6f7fa;
  --zlc-text: #2b2f36;
  --zlc-text-muted: #6b7280;
  --zlc-border: #e5e7eb;
  --zlc-radius: 10px;
  --zlc-max-width: 1200px;
  --zlc-font: "Inter", "Helvetica Neue", Arial, sans-serif;
  /* Alumni redesign palette */
  --zlc-cream: #faf6ea;
  --zlc-card-blue: #dbe3ee;
  --zlc-accent-blue: #2f5fa8;
}

body {
  font-family: var(--zlc-font);
  color: var(--zlc-text);
  background: var(--zlc-bg);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  color: var(--zlc-navy);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; }

a { color: var(--zlc-navy-light); }

.zlc-container {
  max-width: var(--zlc-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.zlc-section { padding: 72px 24px; }
.zlc-section--soft { background: var(--zlc-bg-soft); }

.zlc-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--zlc-gold-dark);
  margin-bottom: 12px;
}

.wp-block-button__link,
.zlc-btn {
  display: inline-block;
  border-radius: 999px !important;
  padding: 14px 30px !important;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-button.is-style-fill .wp-block-button__link,
.zlc-btn--primary {
  background: var(--zlc-gold) !important;
  color: var(--zlc-navy) !important;
  border: none;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.zlc-btn--outline {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

.wp-block-button__link:hover,
.zlc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ==========================================================================
   2. SITE HEADER + NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--zlc-border);
  max-height: 120px;
}

.site-header img {
  max-height: 60px;
  height: 60px;
  width: auto;
}

.site-header__bar {
  max-width: var(--zlc-max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--zlc-navy);
}

.site-header__brand img {
  max-height: 44px;
  width: auto;
}

.main-nav { display: flex; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

.main-nav li { position: relative; }

.main-nav a {
  color: var(--zlc-navy);
  font-weight: 600;
  font-size: 15px;
}

.main-nav a:hover { color: var(--zlc-gold-dark); }

/* Dropdown submenus */
.main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--zlc-border);
  border-radius: 8px;
  min-width: 220px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  flex-direction: column;
  gap: 0;
}

.main-nav li:hover > ul { display: flex; }

.main-nav ul ul li a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.main-nav ul ul li a:hover { background: var(--zlc-bg-soft); }

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__cta .zlc-btn {
  padding: 10px 22px !important;
  font-size: 14px;
}

.site-header__cta .zlc-btn--primary {
  background: var(--zlc-navy) !important;
  color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--zlc-navy);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0;
  }

  .main-nav ul ul {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 16px;
    display: none;
  }

  .main-nav li.is-open > ul { display: flex; }

  .site-header__bar { flex-wrap: wrap; }
}

/* ==========================================================================
   3. HERO  (video background via [zlc_hero] shortcode, Customizer-driven)
   ========================================================================== */
.zlc-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--zlc-navy);
}

.zlc-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.zlc-hero__poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.zlc-hero__poster--mobile-only { display: none; }

.zlc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(22,41,77,0.92) 0%, rgba(22,41,77,0.55) 60%, rgba(22,41,77,0.25) 100%);
  z-index: 1;
}

.zlc-hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 32px 24px;
  color: #fff;
}

.zlc-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.zlc-hero__content .zlc-eyebrow { color: var(--zlc-gold); }
.zlc-hero__content h1,
.zlc-hero__content h1 em { color: #fff; font-style: normal; margin: 0 0 16px; }
.zlc-hero__content h1 em { color: var(--zlc-gold); }
.zlc-hero__content p { font-size: 18px; color: #e7e9ef; margin: 0 0 28px; }

@media (max-width: 782px) {
  .zlc-hero__video { display: none; }
  .zlc-hero__poster--mobile-only { display: block; }
}

/* Alternate photo-slider hero variant */
.zlc-hero__slides { position: absolute; inset: 0; z-index: 0; }
.zlc-hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.zlc-hero__slide.is-active { opacity: 1; }

/* ==========================================================================
   4. FEATURE ICON GRID
   ========================================================================== */
.zlc-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.zlc-feature {
  background: #fff;
  border: 1px solid var(--zlc-border);
  border-radius: var(--zlc-radius);
  padding: 28px 22px;
}

.zlc-feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--zlc-bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.zlc-feature h3 { font-size: 18px; margin: 0 0 8px; }
.zlc-feature p { color: var(--zlc-text-muted); font-size: 15px; margin: 0; }

/* ==========================================================================
   5. ABOUT / SPLIT SECTION
   ========================================================================== */
.zlc-about-split img { border-radius: var(--zlc-radius); }

/* ==========================================================================
   6. FAQ ACCORDION — pure HTML <details>, no JS needed
   ========================================================================== */
.zlc-faq { max-width: 820px; margin: 0 auto; }

.zlc-faq details { border-bottom: 1px solid var(--zlc-border); padding: 18px 0; }

.zlc-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--zlc-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zlc-faq summary::-webkit-details-marker { display: none; }

.zlc-faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--zlc-gold-dark);
  transition: transform 0.2s ease;
}

.zlc-faq details[open] summary::after { transform: rotate(45deg); }

.zlc-faq p { margin: 12px 0 0; color: var(--zlc-text-muted); }

/* ==========================================================================
   7. NEWS / QUERY LOOP CARDS
   ========================================================================== */
.zlc-news .wp-block-post {
  background: #fff;
  border: 1px solid var(--zlc-border);
  border-radius: var(--zlc-radius);
  overflow: hidden;
}

.zlc-news .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; }
.zlc-news .wp-block-post-title { font-size: 18px; padding: 0 18px; }
.zlc-news .wp-block-post-date,
.zlc-news .wp-block-post-excerpt { padding: 0 18px; color: var(--zlc-text-muted); }
.zlc-news .wp-block-post > *:last-child { padding-bottom: 18px; }

/* ==========================================================================
   8. PARTNERS LOGO STRIP
   ========================================================================== */
.zlc-partners {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px;
}
.zlc-partners img {
  max-height: 60px; width: auto;
  filter: grayscale(100%); opacity: 0.7;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.zlc-partners img:hover { filter: none; opacity: 1; }

/* ==========================================================================
   9. CTA / SUPPORT BANNER
   ========================================================================== */
.zlc-cta {
  background: var(--zlc-navy);
  color: #fff;
  border-radius: var(--zlc-radius);
  padding: 56px 40px;
  text-align: center;
}
.zlc-cta h2 { color: #fff; }
.zlc-cta p { color: #cfd6e4; max-width: 560px; margin: 12px auto 28px; }

/* ==========================================================================
   10. SITE FOOTER
   ========================================================================== */
.site-footer { background: var(--zlc-navy); color: #fff; padding: 64px 32px 32px; }

.zlc-footer-grid {
  max-width: var(--zlc-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* --- Left: photo, socials, contact -------------------------------- */
.zlc-footer-photo {
  border-radius: 24px;
  overflow: hidden;
  max-width: 520px;
}

.zlc-footer-photo img { display: block; width: 100%; height: auto; }

.zlc-footer-social { display: flex; gap: 14px; margin-top: 24px; }

.zlc-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.zlc-footer-social a:hover { background: rgba(255,255,255,0.12); }

.zlc-footer-social svg { width: 18px; height: 18px; fill: #fff; }

.zlc-footer-contact { margin-top: 22px; line-height: 1.8; }
.zlc-footer-contact p { margin: 0; }
.zlc-footer-contact a { color: #fff; text-decoration: underline; }

/* --- Right: heading + two nav columns + crest ---------------------- */
.zlc-footer-nav-heading {
  font-size: 26px;
  text-transform: uppercase;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.zlc-footer-nav-heading::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  background: #fff;
  margin-top: 12px;
}

.zlc-footer-nav-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.zlc-footer-nav-columns ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zlc-footer-nav-columns li { list-style: none; }

.zlc-footer-nav-columns a {
  display: block;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  transition: background 0.15s ease;
}

.zlc-footer-nav-columns a:hover { background: rgba(255,255,255,0.08); }

/* Last item in each column is auto-highlighted (filled cream button) —
   matches "Профіль випускника" / "Ґрант випускників" in the design.
   No manual setup needed: just make it the last item in that menu. */
.zlc-footer-nav-columns li:last-child a {
  background: var(--zlc-cream);
  color: var(--zlc-navy);
  border-color: var(--zlc-cream);
}

.zlc-footer-nav-columns li:last-child a:hover { opacity: 0.9; }

.zlc-footer-crest {
  width: 84px;
  height: auto;
  margin: 28px 0 0 auto;
  display: block;
  opacity: 0.95;
}

/* --- Bottom copyright bar ------------------------------------------- */
.zlc-footer-bottom {
  max-width: var(--zlc-max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: #9aa4b8;
}

@media (max-width: 900px) {
  .zlc-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .zlc-footer-crest { margin: 28px auto 0; }
}

@media (max-width: 560px) {
  .zlc-footer-nav-columns { grid-template-columns: 1fr; }
}

/* ==========================================================================
   11. BASIC PAGE / SINGLE POST CONTENT
   ========================================================================== */
.zlc-page-header {
  background: var(--zlc-bg-soft);
  padding: 48px 24px;
  text-align: center;
}

.zlc-entry-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px;
}

.zlc-entry-content img { border-radius: var(--zlc-radius); }

.zlc-post-list {
  max-width: var(--zlc-max-width);
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.zlc-post-card {
  background: #fff;
  border: 1px solid var(--zlc-border);
  border-radius: var(--zlc-radius);
  overflow: hidden;
}

.zlc-post-card img { aspect-ratio: 16/10; object-fit: cover; }
.zlc-post-card__body { padding: 18px; }
.zlc-post-card__meta { color: var(--zlc-text-muted); font-size: 13px; margin-bottom: 8px; }

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */
@media (max-width: 782px) {
  .zlc-section { padding: 48px 20px; }
  .zlc-hero { min-height: 460px; }
  .zlc-hero__content h1 { font-size: 28px; }
  .zlc-cta { padding: 40px 24px; }
}

/* ==========================================================================
   13. ALUMNI HOMEPAGE — Hero v2 (badge + corner button + play + big heading)
   ========================================================================== */
.zlc-hero2 {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--zlc-navy);
}

.zlc-hero2__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.zlc-hero2__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,40,0.15) 0%, rgba(10,20,40,0.7) 100%);
  z-index: 1;
}

.zlc-hero2__badge.kb-button {
  position: absolute;
  bottom: calc(50vh - 10rem - 32px);
  left: 0px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  background: rgba(255,255,255,0.06);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(2px);
}

.zlc-hero2__button.kb-button {
  position: absolute;
  bottom: calc(50vh - 10rem - 32px);
  right: 32px;
  z-index: 3;
}

.zlc-hero2__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  backdrop-filter: blur(2px);
  transition: transform 0.15s ease, background 0.15s ease;
}

.zlc-hero2__play:hover {
  background: rgba(255,255,255,0.28);
  transform: translate(-50%, -50%) scale(1.06);
}

.zlc-hero2__content {
  position: relative;
  z-index: 3;
  padding: 40px 40px 56px;
  max-width: 900px;
}

.zlc-hero2__content-h1 {
  color: #fff;
  font-size: 44px;
  line-height: 1.15;
  margin: 0;
  top: 100%;
  position: relative;
}

@media (max-width: 782px) {
  .zlc-hero2 { min-height: 480px; }
  .zlc-hero2__content { padding: 24px 20px 36px; }
  .zlc-hero2__content h1 { font-size: 28px; }
  .zlc-hero2__badge { font-size: 12px; padding: 8px 14px; top: 16px; left: 16px; }
  .zlc-hero2__button { top: 16px; right: 16px; }
  .zlc-hero2__button.zlc-btn { padding: 8px 16px !important; font-size: 13px; }
}

/* ==========================================================================
   14. ALUMNI HOMEPAGE — "Наші пріоритети" cards
   ========================================================================== */
.zlc-priorities {
  position: relative;
  background: var(--zlc-cream);
  padding: 72px 24px;
  overflow: hidden;
}

.zlc-priorities-grid > .kt-row-column-wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.zlc-priorities__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 60%;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.zlc-priorities h2 {
  text-align: center;
  color: var(--zlc-navy);
  text-transform: uppercase;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.zlc-priorities__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: var(--zlc-max-width);
  margin: 0 auto;
}

.zlc-priority-card {
  background: var(--zlc-card-blue);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
}

.zlc-priority-card h3 { color: var(--zlc-navy); margin-bottom: 14px; }
.zlc-priority-card p { color: var(--zlc-navy-light); margin: 0; }

/* ==========================================================================
   15. ALUMNI HOMEPAGE — Survey / questionnaire CTA banner
   ========================================================================== */
.zlc-survey {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.zlc-survey .wp-block-image {
	margin: 0;
}

.zlc-survey:after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(22,41,77,0.55);
  z-index: 1;
}

.zlc-survey .kt-inside-inner-col {
	width: 100%;
	left: 0;
	right: 0;
}

.zlc-survey .kt-inside-inner-col img {
	width: 100%;
	left: 0;
	right: 0;
}

.zlc-survey__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.zlc-survey__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22,41,77,0.55);
  z-index: 1;
}

.zlc-survey h3,
.zlc-survey .zlc-survey__btn { position: relative; z-index: 2; padding: 24px; }

.zlc-survey h3 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  font-size: 26px;
	position: absolute;
    bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.zlc-survey .zlc-survey__btn.kb-button {
  display: inline-block;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 14px 34px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: background 0.15s ease;
	background: none;
    position: absolute;
    bottom: 30px;
}

.zlc-survey .kb-button.zlc-survey__btn:hover { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   16. ALUMNI HOMEPAGE — "Про нас" navy section with illustration
   ========================================================================== */
.zlc-about2 {
  position: relative;
  background: var(--zlc-navy);
  padding: 64px 24px;
  border-top: 4px solid var(--zlc-gold);
}

.zlc-about2__inner {
  max-width: var(--zlc-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.zlc-about2 h2 {
  color: #fff;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 3px solid #fff;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.zlc-about2__card {
  background: rgb(31 58 110 / 70%);
  border-radius: 18px;
  padding: 32px;
}

.zlc-about2__card.wp-block-kadence-column {
	min-width: 55vw;
}

.zlc-about2__card p { color: #fff; margin-bottom: 16px; }
.zlc-about2__card p:last-child { margin-bottom: 0; }

.zlc-about2__illustration { width: 100%; height: auto; }

.zlc-about2__illustration img {
	z-index: 0;
    transform: scaleX(-1);
/*     position: absolute; */
/*     bottom: -7rem; */
    width: 150%;
    min-width: 120%;
}

.zlc-about2__illustration .kt-inside-inner-col {
	height: 100%;
}

.zlc-about2__illustration .wp-block-image {
	overflow: hidden;
    bottom: -7rem;
    position: absolute;
	margin: 0;
	right: 0;
}

@media (max-width: 900px) {
  .zlc-about2__inner { grid-template-columns: 1fr; }
  .zlc-about2__illustration { max-width: 240px; margin: 0 auto; }
}
