/* ============================================
   НЧ „Методий Драгинов" – Main Stylesheet
   Folk-inspired warm design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Cormorant+SC:wght@500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────── */
:root {
  --primary:       #fe955e;
  --primary-dark:  #d46f3a;
  --primary-light: #ffd4b5;
  --grey:          #c1c1c9;
  --grey-dark:     #7a7a86;
  --dark:          #1c1109;
  --dark2:         #2e1f0d;
  --cream:         #fdf7f1;
  --cream2:        #f5ede2;
  --text:          #2e1f0d;
  --text-mid:      #6b5240;
  --text-light:    #9c8472;
  --border:        #e8d5c0;
  --folk-red:      #8b1818;
  --shadow:        rgba(30,15,0,0.12);
  --shadow-lg:     rgba(30,15,0,0.22);

  --nav-h:         72px;
  --radius:        6px;
  --radius-lg:     14px;

  --font-display: 'Cormorant SC', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body:    'Nunito', sans-serif;
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

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

/* ── Folk Divider ──────────────────────────── */
.folk-divider {
  height: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--primary)        0, var(--primary)       14px,
      var(--dark)           14px, var(--dark)        15px,
      var(--primary-light)  15px, var(--primary-light)29px,
      var(--dark)           29px, var(--dark)        30px
    );
  opacity: .85;
}
.folk-divider.thin { height: 4px; }

/* ── Top Bar ───────────────────────────────── */
.top-bar {
  background: var(--dark2);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .8rem;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.top-bar a {
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.top-bar a:hover { color: var(--primary); }
.top-bar .tb-right { display: flex; gap: 20px; align-items: center; }

/* ── Navigation ────────────────────────────── */
.main-nav {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 16px var(--shadow);
  border-bottom: 3px solid var(--primary);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-emblem {
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(254,149,94,.4);
}
.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--dark);
  letter-spacing: .04em;
  line-height: 1.2;
}
.logo-text small {
  font-family: var(--font-body);
  font-size: .72rem;
  color: var(--text-mid);
  letter-spacing: .05em;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 13px;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.nav-links > li > a .caret { font-size: .65rem; opacity: .7; }

/* Dropdown */
.dropdown-parent { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--shadow-lg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  list-style: none;
  z-index: 1000;
  overflow: hidden;
  animation: fadeDown .15s ease;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-parent:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 11px 18px;
  font-size: .85rem;
  color: var(--text);
  font-weight: 500;
  transition: background .15s, padding-left .15s;
  border-bottom: 1px solid var(--border);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
  background: var(--cream2);
  color: var(--primary-dark);
  padding-left: 24px;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
  transition: border-color .2s;
}
.hamburger:hover { border-color: var(--primary); }

/* Mobile nav */
@media (max-width: 900px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 8px 32px var(--shadow-lg);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    z-index: 899;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 12px 16px; font-size: .95rem; }
  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary);
    border-radius: 0;
    margin-left: 12px;
    animation: none;
  }
  .dropdown-parent.open .dropdown { display: block; }
  .dropdown-parent > a { justify-content: space-between; }
}

/* ── Hero / Slideshow ──────────────────────── */
.hero {
  position: relative;
  height: min(640px, 72vh);
  overflow: hidden;
  background: var(--dark);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28,17,9,.15) 0%,
    rgba(28,17,9,.15) 40%,
    rgba(28,17,9,.65) 100%
  );
}

.hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 48px;
  z-index: 10;
  color: white;
}
.hero-caption h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.hero-caption p {
  font-size: clamp(.9rem, 1.8vw, 1.1rem);
  opacity: .9;
  max-width: 520px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* Slideshow dots */
.slide-dots {
  position: absolute;
  bottom: 18px;
  right: 24px;
  z-index: 20;
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .2s, transform .2s;
  border: none;
}
.dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ── Sections ──────────────────────────────── */
section { padding: 72px 0; }
section.alt-bg { background: var(--cream2); }
section.dark-bg {
  background: var(--dark2);
  color: var(--cream);
}

.section-label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-label.light { color: var(--primary-light); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 20px;
}
.section-title.light { color: white; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 620px;
  line-height: 1.75;
}
.section-subtitle.light { color: rgba(255,255,255,.78); }

.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* Ornament line under titles */
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--primary);
  margin-top: 12px;
  border-radius: 2px;
}
.section-header.centered .section-title::after { margin: 12px auto 0; }

/* ── Home: Quick Info Cards ────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 2px 20px var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform .25s, box-shadow .25s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-lg);
}
.info-card-icon {
  margin-bottom: 14px;
  line-height: 1;
}
.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.info-card p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── About Section (homepage snippet) ─────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-text p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-text .stat-row {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat span {
  font-size: .8rem;
  color: var(--text-light);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid img { aspect-ratio: 16/9; }
}

/* ── Groups Grid ───────────────────────────── */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.group-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.group-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--shadow-lg);
  color: inherit;
}
.group-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dark2);
  position: relative;
}
.group-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.group-card:hover .group-card-img img { transform: scale(1.06); }
.group-card-body {
  padding: 22px 20px;
  flex: 1;
}
.group-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.group-card-body p {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.55;
}
.group-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.card-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── Photo Gallery Grid ────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 2px 8px var(--shadow);
}
.photo-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px var(--shadow-lg);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 16px 64px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

/* ── Page Hero (inner pages) ───────────────── */
.page-hero {
  background: var(--dark2);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/building1.png') center/cover no-repeat;
  opacity: .1;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .folk-divider { margin-bottom: 28px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: white;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.page-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  max-width: 560px;
}
.breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { margin: 0 6px; }

/* ── Text Content ──────────────────────────── */
.prose {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text);
  max-width: 780px;
}
.prose p { margin-bottom: 18px; }
.prose strong { color: var(--dark); font-weight: 700; }
.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--dark);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.prose h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 28px 0 10px;
  font-weight: 600;
}

/* ── Sidebar Layout ────────────────────────── */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
.content-sidebar > aside {
  padding-top: 2.5rem;
}
@media (max-width: 960px) {
  .content-sidebar { grid-template-columns: 1fr; }
}
.sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 2px 16px var(--shadow);
  border-top: 4px solid var(--primary);
}
.sidebar-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
}
.sidebar-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-card ul li a {
  font-size: .9rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--cream);
  transition: background .2s, color .2s;
  border-left: 3px solid transparent;
}
.sidebar-card ul li a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-left-color: var(--primary);
}

/* ── Highlights/Awards Banner ──────────────── */
.awards-strip {
  background: var(--primary);
  padding: 28px 0;
  overflow: hidden;
}
.awards-marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.awards-set {
  display: flex;
  flex-shrink: 0;
}
.awards-set span {
  padding: 0 24px;
}
.awards-marquee span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .02em;
}
.awards-marquee span::before {
  content: '🏆';
  font-size: .9em;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .awards-marquee { animation-duration: 15s; }
}

/* ── Contact Info ──────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}
.contact-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 2px 16px var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-left: 4px solid var(--primary);
}
.contact-item-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.contact-item p, .contact-item a {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.contact-item a:hover { color: var(--primary-dark); }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 32px var(--shadow-lg);
  border: 3px solid var(--border);
}
.map-container iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: none;
}
.map-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 16px;
  transition: background .2s, transform .2s;
}
.map-link-btn:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
}

/* ── Documents ─────────────────────────────── */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 1px 8px var(--shadow);
  border-left: 4px solid var(--grey);
  transition: border-color .2s, box-shadow .2s;
}
.doc-item:hover {
  border-left-color: var(--primary);
  box-shadow: 0 4px 20px var(--shadow);
}
.doc-icon { font-size: 1.8rem; flex-shrink: 0; }
.doc-info { flex: 1; }
.doc-info strong { display: block; font-size: .95rem; color: var(--dark); margin-bottom: 2px; }
.doc-info span { font-size: .8rem; color: var(--text-light); }
.doc-download {
  background: var(--primary);
  color: white;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background .2s;
}
.doc-download:hover { background: var(--primary-dark); color: white; }

/* Admin panel */
.admin-toggle-btn {
  background: var(--dark2);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: .85rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background .2s;
}
.admin-toggle-btn:hover { background: var(--primary-dark); }

.admin-panel {
  display: none;
  background: #fff8f4;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
}
.admin-panel.open { display: block; }
.admin-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.admin-panel .note {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 28px;
}
.admin-form label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-mid); margin-bottom: 4px; }
.admin-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: white;
  transition: border-color .2s;
}
.admin-form input:focus { outline: none; border-color: var(--primary); }
.admin-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s;
  white-space: nowrap;
}
.admin-form button:hover { background: var(--primary-dark); }
@media (max-width: 640px) { .admin-form { grid-template-columns: 1fr; } }

.password-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.password-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
}
.password-box input:focus { outline: none; border-color: var(--primary); }
.password-box button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  transition: background .2s;
}
.password-box button:hover { background: var(--primary-dark); }
.password-error { color: var(--folk-red); font-size: .85rem; margin-top: 6px; display: none; }

/* ── News Page ─────────────────────────────── */
.news-placeholder {
  background: white;
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  box-shadow: 0 2px 16px var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.news-placeholder .icon { font-size: 3.5rem; margin-bottom: 16px; }
.news-placeholder h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 12px;
}
.news-placeholder p { color: var(--text-mid); font-size: .95rem; line-height: 1.7; }
.fb-link-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1877f2;
  color: white;
  padding: 13px 28px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: .95rem;
  margin-top: 24px;
  transition: background .2s, transform .2s;
}
.fb-link-big:hover {
  background: #1558b0;
  color: white;
  transform: translateY(-2px);
}

/* ── Library ───────────────────────────────── */
.library-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px var(--shadow-lg);
  margin-bottom: 48px;
}
.library-hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.library-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.lib-stat {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}
.lib-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.lib-stat span { font-size: .82rem; opacity: .9; font-weight: 600; letter-spacing: .05em; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(254,149,94,.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(254,149,94,.5);
}
.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ── Footer ────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.72);
  padding: 56px 0 0;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand .logo-text strong { color: white; font-size: 1.1rem; }
.footer-brand .logo-text small { color: rgba(255,255,255,.5); }
.footer-brand p {
  margin-top: 14px;
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.58);
}
.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--primary); font-size: 1.1em; }
.footer-links a:hover { color: var(--primary-light); }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  align-items: flex-start;
}
.footer-contact li span.icon { color: var(--primary); flex-shrink: 0; }
.footer-contact li a { color: rgba(255,255,255,.65); transition: color .2s; }
.footer-contact li a:hover { color: var(--primary-light); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }

/* ── Scroll to top ─────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 28px; right: 24px;
  background: var(--primary);
  color: white;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px var(--shadow-lg);
  z-index: 800;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  transform: translateY(12px);
}
#scrollTop.visible { opacity: 1; transform: translateY(0); }
#scrollTop:hover { background: var(--primary-dark); }

/* ── Responsive tweaks ─────────────────────── */
@media (max-width: 600px) {
  section { padding: 48px 0; }
  .hero { height: 72vw; min-height: 280px; }
  .hero-caption { padding: 24px 20px; }
  .stat-row { gap: 16px; }
  .admin-form { grid-template-columns: 1fr; }
}
