/*
Theme Name: Медичний Ліцей
Theme URI: https://medliceum.te.ua
Author: Тернопільський академічний медичний ліцей
Author URI: https://medliceum.te.ua
Description: Офіційна тема для сайту Тернопільського академічного медичного ліцею (раніше ТНВК ШМЛ №15). Світлі тони, блакитно-біло-сіра палітра.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medliceum
Tags: education, light, blue, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ============================================
   CSS VARIABLES / PALETTE
   ============================================ */
:root {
  --primary: #4A9FD9;
  --primary-dark: #3B7CB8;
  --primary-light: #8DC8F0;
  --primary-lighter: #C2E2F7;
  --primary-lightest: #E8F4FC;
  --sky: #A7D4F2;
  --white: #FFFFFF;
  --off-white: #F7F9FB;
  --grey-1: #E8ECF0;
  --grey-2: #CDD4DB;
  --grey-3: #A3B1BF;
  --grey-4: #7B8D9E;
  --dark: #2C4A63;
  --dark-deep: #1E3548;
  --accent: #5BB89A;
  --accent-light: #E6F5F0;
  --danger: #E85D5D;
  --shadow-sm: 0 1px 3px rgba(44, 74, 99, 0.06);
  --shadow-md: 0 4px 16px rgba(44, 74, 99, 0.08);
  --shadow-lg: 0 8px 32px rgba(44, 74, 99, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--off-white);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Nunito', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74, 159, 217, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 159, 217, 0.45);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-lightest);
  color: var(--primary-dark);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-more:hover {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}

.top-bar a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.top-bar .alert-link {
  background: var(--danger);
  color: #fff;
  animation: pulse-subtle 2.5s infinite;
}

@keyframes pulse-subtle {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  flex-wrap: nowrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: auto;
  min-width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(74, 159, 217, 0.3);
  overflow: hidden;
}

.logo-icon.has-logo {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.logo-icon img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.logo-text {
  line-height: 1.2;
}

.logo-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-text .sub {
  font-size: 0.68rem;
  color: var(--grey-3);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav>li {
  position: relative;
}

.main-nav>li>a {
  display: block;
  padding: 24px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s;
}

.main-nav>li>a:hover,
.main-nav>li:hover>a,
.main-nav>li.current-menu-item>a,
.main-nav>li.current-menu-parent>a {
  color: var(--primary);
}

/* Dropdown */
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  padding: 8px 0;
  border: 1px solid var(--grey-1);
  border-top: 2px solid var(--primary);
  z-index: 200;
}

.main-nav>li:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.84rem;
  color: var(--dark);
  font-weight: 500;
}

.main-nav .sub-menu li a:hover {
  background: var(--primary-lightest);
  color: var(--primary-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
  position: relative;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile menu */
.mobile-nav-open .main-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 0;
  border-top: 1px solid var(--grey-1);
  z-index: 150;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-open .main-nav>li {
  width: 100%;
  border-bottom: 1px solid var(--grey-1);
}

.mobile-nav-open .main-nav>li>a {
  padding: 16px 24px;
  display: block;
  width: 100%;
  text-align: left;
}

.mobile-nav-open .main-nav .sub-menu {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  border-top: 1px solid var(--grey-1);
  border-radius: 0;
  padding: 0;
  background: var(--off-white);
  display: block;
}

.mobile-nav-open .main-nav .sub-menu li a {
  padding: 12px 40px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  color: #fff;
}

/* Background video/image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-bg-item.active {
  opacity: 1;
  z-index: 2;
}

.hero-bg-item video,
.hero-bg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 53, 72, 0.25);
}

/* Left panel — flush to left viewport edge, gradient fade on right */
.hero-panel {
  position: relative;
  z-index: 2;
  width: 55%;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* No extra left padding — the .container already provides alignment */
  padding: 48px 60px 48px 0;
  /* NO background here — handled by ::before pseudo-element */
}

/* Gradient background — breaks out leftward to cover the full viewport left edge */
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  /* Break out of the container to cover from viewport left edge:
     margin-left on container = max(0, (100vw - 1200px) / 2)
     container padding-left = 24px
     Total offset to left edge = margin + padding = max(24px, (100vw - 1200px)/2 + 24px) */
  left: calc(-1 * (max(24px, calc((100vw - 1200px) / 2)) + 24px));
  z-index: -1;
  background: linear-gradient(to right,
      rgba(30, 53, 72, 0.80) 0%,
      rgba(30, 53, 72, 0.75) 35%,
      rgba(30, 53, 72, 0.45) 70%,
      rgba(30, 53, 72, 0.0) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Mask fades the right edge only — left is fully opaque */
  -webkit-mask-image: linear-gradient(to right, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 55%, transparent 100%);
}

/* Slide container */
.hero-slides {
  position: relative;
  overflow: hidden;
  height: 320px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-slide.exiting {
  opacity: 0;
  transform: translateY(-30px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  color: var(--primary-light);
}

.hero-badge .profile-icon {
  font-size: 1.1rem;
}

.hero h2 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  font-family: 'Playfair Display', serif;
  color: var(--white);
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Controls row */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.hero-dot.active {
  background: var(--primary);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 8px rgba(74, 159, 217, 0.5);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-arrow,
.hero-playpause {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}

.hero-arrow:hover,
.hero-playpause:hover {
  color: #fff;
}

/* Progress bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 5;
}

.hero-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 5s linear;
}

.hero-progress-fill.running {
  width: 100%;
}

.hero-progress-fill.reset {
  transition: none;
  width: 0%;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-panel {
    width: 100%;
    min-height: auto;
    padding: 32px 24px;
  }

  .hero-panel::before {
    left: -24px;
    /* just the container's own padding */
    background: linear-gradient(to right,
        rgba(30, 53, 72, 0.85) 0%,
        rgba(30, 53, 72, 0.75) 80%,
        rgba(30, 53, 72, 0.5) 100%);
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Hide slider controls when there is only one slide */
.hero-single-slide .hero-controls {
  display: none;
}

.hero-single-slide .hero-progress {
  display: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .hero-progress-fill {
    transition: none;
  }
}

/* ============================================
   MOTTO STRIP
   ============================================ */
.motto-strip {
  background: var(--white);
  border-bottom: 1px solid var(--grey-1);
}

.motto-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.motto-item {
  padding: 28px 20px;
  border-right: 1px solid var(--grey-1);
  transition: background 0.2s;
}

.motto-item:last-child {
  border-right: none;
}

.motto-item:hover {
  background: var(--primary-lightest);
}

.motto-item .icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.motto-item h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.motto-item p {
  font-size: 0.78rem;
  color: var(--grey-3);
  font-weight: 500;
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
.main-content {
  padding: 48px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.5rem;
  color: var(--dark);
}

.section-header a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-header a:hover {
  color: var(--primary-dark);
}

/* ============================================
   NEWS CARDS
   ============================================ */
.news-featured {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--dark);
}

.news-featured-img {
  height: 240px;
  background: linear-gradient(135deg, var(--primary-lighter), var(--primary-lightest));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured-img .date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.news-featured-body {
  padding: 24px;
}

.news-featured-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.news-featured-body p {
  font-size: 0.88rem;
  color: var(--grey-4);
  line-height: 1.6;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.news-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--dark);
}

.news-card-img {
  height: 130px;
  background: linear-gradient(135deg, var(--primary-lightest), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 16px;
}

.news-card-body h4 {
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--dark);
  line-height: 1.4;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.news-card-body .meta {
  font-size: 0.72rem;
  color: var(--grey-3);
  font-weight: 500;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-1);
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card h3 .icon {
  font-size: 1.1rem;
}

.sidebar-nav li {
  border-bottom: 1px solid var(--grey-1);
}

.sidebar-nav li:last-child {
  border-bottom: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  font-size: 0.84rem;
  color: var(--dark);
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-nav a::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sidebar-nav a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.sidebar-nav a:hover::before {
  background: var(--primary);
}

/* Poll card */
.poll-card {
  background: linear-gradient(145deg, var(--primary-lightest), var(--white));
  border: 1px solid var(--primary-lighter);
}

.poll-card h3 {
  color: var(--primary-dark);
}

.poll-question {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--dark);
}

.poll-options li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 6px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-1);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}

.poll-options li:hover {
  border-color: var(--primary);
  background: var(--primary-lightest);
}

.poll-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--grey-2);
  flex-shrink: 0;
}

.poll-options li:hover .poll-radio {
  border-color: var(--primary);
}

.poll-btn {
  width: 100%;
  padding: 11px;
  margin-top: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.poll-btn:hover {
  background: var(--primary-dark);
}

/* Quote card */
.quote-card {
  background: linear-gradient(145deg, var(--dark), var(--dark-deep));
  color: #fff;
  border: none;
}

.quote-card h3 {
  color: var(--primary-light);
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  padding-left: 18px;
  border-left: 3px solid var(--primary);
}

.quote-author {
  font-size: 0.78rem;
  color: var(--primary-light);
  font-weight: 600;
}

/* ============================================
   QUICK LINKS
   ============================================ */
.quick-links {
  padding: 40px 0;
  background: var(--white);
  border-top: 1px solid var(--grey-1);
  border-bottom: 1px solid var(--grey-1);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-card {
  display: block;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.25s;
  border: 1px solid var(--grey-1);
}

.quick-card:hover {
  background: var(--primary-lightest);
  border-color: var(--primary-lighter);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quick-card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.quick-card h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.quick-card p {
  font-size: 0.75rem;
  color: var(--grey-3);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section {
  padding: 48px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-1);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(44, 74, 99, 0.3));
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item.wide {
  grid-column: span 2;
}

/* ============================================
   UKRAINE SECTION
   ============================================ */
.ukraine-section {
  background: linear-gradient(145deg, var(--dark-deep), var(--dark));
  padding: 60px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ukraine-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 159, 217, 0.06));
}

.ukraine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ukraine-content h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #fff;
}

.ukraine-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 24px;
}

.ukraine-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ukraine-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform 0.25s;
}

.ukraine-card:hover {
  transform: translateY(-3px);
}

.ukraine-card .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.ukraine-card h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.ukraine-card p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
  border-top: 3px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-logo {
  display: block;
  margin-bottom: 20px;
}

.footer-custom-logo {
  max-height: 80px;
  width: auto;
  display: block;
}

.footer-brand .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.footer-contact .icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   SINGLE POST / PAGE
   ============================================ */
.single-content {
  padding: 48px 0;
}

.single-content .container {
  max-width: 800px;
}

.single-content article {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.single-content .entry-thumbnail img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.single-content .entry-body {
  padding: 40px;
}

.single-content .entry-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.single-content .entry-meta {
  font-size: 0.82rem;
  color: var(--grey-3);
  margin-bottom: 24px;
  font-weight: 500;
}

.single-content .entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark);
}

.single-content .entry-content p {
  margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.entry-content ul {
  list-style-type: disc;
}

.entry-content ol {
  list-style-type: decimal;
}

.entry-content li {
  margin-bottom: 8px;
  padding-left: 8px;
}

.entry-content li::marker {
  color: var(--primary);
  font-weight: 700;
}

.single-content .entry-content img {
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.single-content .entry-content h2 {
  font-size: 1.4rem;
  margin: 28px 0 12px;
}

.single-content .entry-content h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

/* Archive / Category */
.archive-header {
  padding: 40px 0 20px;
}

.archive-header h1 {
  font-size: 1.8rem;
  color: var(--dark);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 48px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.pagination a {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--grey-1);
}

.pagination a:hover {
  background: var(--primary-lightest);
  border-color: var(--primary-lighter);
  color: var(--primary-dark);
}

.pagination .current {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

/* ============================================
   WIDGET AREAS
   ============================================ */
.widget {
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero .container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .ukraine-grid {
    grid-template-columns: 1fr;
  }

  .motto-items {
    grid-template-columns: 1fr;
  }

  .motto-item {
    border-right: none;
    border-bottom: 1px solid var(--grey-1);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}