/* =====================================================
   СВВП — Общ CSS за новия дизайн
   Смяна на шрифт: промени само реда с --font-main
   ===================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:wght@400;500;600;700&display=swap');

/* ── CSS Променливи ── */
:root {
  --font-main:    'Lora', sans-serif;
  --font-serif:   'Inter', serif;

  --bg-body:      #fffdfa;
  --card-bg:      #fffdfa;
  --brand-navy:   #1B2A4A;
  --brand-gold:   #C5A059;
  --text-main:    #2D3748;
  --text-muted:   #64748B;
  --border-color: #E2E8F0;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TOP NOTICE ── */
.top-notice {
  background: var(--brand-navy);
  color: #F8FAFC;
  text-align: center;
  padding: 8px 15px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 2px solid var(--brand-gold);
}

/* ── HEADER ── */
header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,.03);
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.logo-container { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.logo-container img { height: 90px; width: auto; object-fit: contain; }
.logo-text h1 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--brand-navy);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* ── NAV ── */
nav {
  background: var(--brand-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(27,42,74,.2);
}
.nav-wrapper { max-width: 1200px; margin: 0 auto; }
ul.menu { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; }
ul.menu li a {
  display: block;
  padding: 16px 20px;
  color: #F1F5F9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  transition: all .25s ease;
}

/* Прави "Как да стана член" златисто на всички страници*/
ul.menu li a[href="membership.php"],
ul.menu li a[href="../membership.php"] {
  color: var(--brand-gold)!important;
}
.footer-nav a[href="membership.php"],
.footer-nav a[href="../membership.php"] {
  color: var(--brand-gold) !important;
}

ul.menu li a:hover,
ul.menu li.selected a {
  background: rgba(255,255,255,.08);
  color: var(--brand-gold);
}
ul.menu li.selected a { box-shadow: inset 0 -3px 0 var(--brand-gold); }

/* ── HAMBURGER ── */
#hamburger {
  display: none;
  position: absolute;
  right: 20px;
  top: 25px;
  background: none;
  border: none;
  color: var(--brand-navy);
  font-size: 26px;
  cursor: pointer;
}

/* ── MAIN LAYOUT ── */
.main-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
}
main.content {
  flex: 1;
  background: var(--card-bg);
  padding: 35px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
}

/* ── SIDEBAR ── */
aside.sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.sidebar-widget {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
}
.widget-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--brand-navy);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--brand-gold);
}
.news-frame-container iframe { width: 100%; border: none; display: block; }

/* ── USEFUL LINKS ── */
.useful-links { list-style: none; }
.useful-links li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--border-color); }
.useful-links li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.useful-links a {
  color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; transition: color .2s;
}
.useful-links a:hover { color: var(--brand-gold); }
.useful-links a::before { content: '›'; color: var(--brand-gold); font-weight: bold; font-size: 16px; }

/* ── HEADINGS ── */
.main-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--brand-navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}
.main-heading::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: var(--brand-gold);
}
.section-heading {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--brand-navy);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
  text-transform: uppercase;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: var(--brand-gold);
}
.section-heading:first-child { margin-top: 0; }

/* ── FOOTER ── */
footer {
  background: var(--brand-navy);
  color: #94A3B8;
  padding: 45px 20px 25px;
  margin-top: 60px;
  border-top: 3px solid var(--brand-gold);
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-nav { margin-bottom: 20px; }
.footer-nav a {
  color: #F1F5F9; text-decoration: none;
  margin: 0 10px; font-size: 13px; font-weight: 500; transition: color .2s;
}
.footer-nav a:hover { color: var(--brand-gold); }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px; margin-top: 20px;
  font-size: 13px; color: #64748B;
}

/* ── FEATURE CARDS (index) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--brand-navy);
  border-radius: 8px;
  padding: 22px 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,.02);
  transition: transform .2s, box-shadow .2s;
}
.feature-card.gold-top { border-top-color: var(--brand-gold); }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,.06); }
.feature-card h3 {
  font-size: 17.5px; color: var(--brand-navy);
  margin-bottom: 12px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase;
}
.feature-card p { font-size: 15.5px; line-height: 1.6; color: #4A5568; letter-spacing: .3px; font-weight: 500; }

/* ── MANAGEMENT ── */
.leadership-top { display: flex; flex-direction: row; align-items: center; gap: 20px; margin-bottom: 10px;flex-wrap: wrap;justify-content: center; }
.leader-card-featured {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-top: 4px solid var(--brand-navy); border-radius: 10px;
  padding: 28px 32px; min-width: 200px; max-width: 240px;
  box-shadow: 0 4px 15px rgba(0,0,0,.06); transition: transform .2s;
}
.leader-card-featured.gold { border-top-color: var(--brand-gold); }
.leader-card-featured:hover { transform: translateY(-4px); }
.leader-card-featured img { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; border: 3px solid var(--brand-gold); margin-bottom: 14px; }
.leader-card-featured .name { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--brand-navy); margin-bottom: 5px; }
.leader-card-featured .role { font-size: 13px; color: var(--brand-gold); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.leader-card-featured .city { font-size: 13px; color: var(--text-muted); }

.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.member-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 18px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: transform .2s, box-shadow .2s;
}
.member-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.member-card img { width: 72px; height: 72px; object-fit: cover;  border-radius: 50%; border: 2px solid var(--border-color); margin-bottom: 10px; }
.member-card .name { font-size: 13.5px; font-weight: 600; color: var(--brand-navy); margin-bottom: 3px; line-height: 1.3; }
.member-card .role-badge { font-size: 11px; color: var(--brand-gold); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.member-card .city { font-size: 12px; color: var(--text-muted); }

.reserve-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.reserve-item {
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 6px;
  padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
}
.reserve-item .name { font-size: 14px; font-weight: 600; color: var(--brand-navy); }
.reserve-item .city { font-size: 12px; color: var(--text-muted); }

/* ── DOCUMENTS ── */
.doc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.doc-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 14px 18px;
  text-decoration: none; color: var(--text-main);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.doc-item:hover { border-color: var(--brand-gold); box-shadow: 0 4px 12px rgba(0,0,0,.07); transform: translateX(4px); color: var(--brand-navy); }
.doc-item .doc-icon { font-size: 22px; flex-shrink: 0; }
.doc-item .doc-name { font-size: 15px; font-weight: 600; }

.year-block { margin-bottom: 10px; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.year-toggle {
  width: 100%; background: var(--card-bg); border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; font-family: var(--font-serif);
  font-size: 18px; color: var(--brand-navy); font-weight: 700; transition: background .2s;
}
.year-toggle:hover { background: #F1F5FB; }
.year-toggle .arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: transform .3s; flex-shrink: 0;
}
.year-toggle.open .arrow { transform: rotate(180deg); }
.year-toggle.open { background: #EEF2F8; }
.year-content { display: none; border-top: 1px solid var(--border-color); padding: 12px 16px; background: #FAFBFD; }
.year-content.open { display: block; }
.report-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.report-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 6px;
  text-decoration: none; color: var(--text-main);
  background: var(--card-bg); border: 1px solid var(--border-color);
  font-size: 16px; font-weight: 600;
  transition: border-color .2s, color .2s, transform .15s;
}
.report-item:hover { border-color: var(--brand-gold); color: var(--brand-navy); transform: translateX(4px); }
.pdf-badge {
  background: #e50914; color: #fff;
  font-size: 11px; font-weight: bold;
  padding: 2px 5px; border-radius: 3px;
  display: inline-block; line-height: 1; vertical-align: middle;
  flex-shrink: 0;
}

/* ── GALLERY ── */
.album { margin-bottom: 50px; }
.album-title {
  font-family: var(--font-serif); font-size: 18px; color: var(--brand-navy);
  margin-bottom: 16px; padding: 12px 18px;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-gold); border-radius: 4px;
  display: flex; align-items: center; gap: 10px;
}
.album-title span.count {
  font-family: var(--font-main); font-size: 12px; font-weight: 600;
  background: var(--brand-navy); color: #fff;
  padding: 2px 8px; border-radius: 20px;
}
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.photo-item {
  position: relative; overflow: hidden; border-radius: 8px;
  border: 1px solid var(--border-color); aspect-ratio: 4/3; background: #e8eaf0;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.photo-item:hover img { transform: scale(1.07); }
.photo-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,42,74,.7) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 10px 12px;
}
.photo-item:hover .overlay { opacity: 1; }
.photo-item .caption { color: #fff; font-size: 12px; font-weight: 500; line-height: 1.3; }
.photo-item a { position: absolute; inset: 0; display: block; }

/* ── NEWS ── */
.news-main { max-width: 1200px; margin: 30px auto; padding: 0 20px 50px; }
.news-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 10px; padding: 20px; margin-bottom: 20px;
  display: flex; gap: 20px; align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,.03); transition: box-shadow .2s;
}
.news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.news-card img { width: 160px; height: 110px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.news-card-body { flex: 1; }
.news-card-date { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.news-card-title { font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--brand-navy); margin-bottom: 8px; line-height: 1.4; }
.news-card-title a { text-decoration: none; color: inherit; transition: color .2s; }
.news-card-title a:hover { color: var(--brand-gold); }
.news-card-excerpt { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

.pagination { margin: 30px 0 10px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; clear: both; }
.pagination a, .pagination span {
  padding: 7px 14px; border: 1px solid var(--border-color); border-radius: 4px;
  text-decoration: none; color: var(--text-muted); font-size: 14px;
}
.pagination a:hover { background: #EEF2F8; color: var(--brand-gold); border-color: var(--brand-gold); }
.pagination span.current { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }

/* ── CONTACT ── */
.building-image-container { width: 100%; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 4px 10px rgba(0,0,0,.05); }
.building-image-container img { width: 100%; max-width: 880px; height: 620px; object-fit: cover; display: block; margin: 0 auto; }

@media (max-width: 900px) {
  .building-image-container img { height: 250px; }
}
.image-caption { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 8px; font-style: italic; }
.central-card { background: #F8FAFC; border: 1px solid var(--border-color); border-top: 4px solid var(--brand-gold); border-radius: 8px; padding: 25px; margin-bottom: 30px; }
.central-card h2 { font-family: var(--font-serif); font-size: 20px; color: var(--brand-navy); margin-bottom: 15px; text-transform: uppercase; }
.central-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 35px; font-size: 16px; }
.email-box { display: inline-flex; align-items: center; gap: 10px; background: #fff; padding: 4px 10px; border: 1px solid var(--border-color); border-radius: 4px; margin-top: 4px; }
.email-box a { color: var(--brand-navy); text-decoration: none; font-weight: 600; transition: color .2s; }
.email-box a:hover { color: var(--brand-gold); text-decoration: underline; }
.copy-btn { background: var(--brand-navy); color: #fff; border: none; padding: 3px 8px; font-size: 11px; font-weight: 600; border-radius: 3px; cursor: pointer; transition: background .2s; }
.copy-btn:hover { background: var(--brand-gold); color: var(--brand-navy); }
.departments-stack { display: flex; flex-direction: column; gap: 20px; margin-bottom: 35px; }
.dep-card { background: #fff; border: 1px solid var(--border-color); border-left: 4px solid var(--brand-navy); border-radius: 6px; padding: 22px; }
.dep-card h3 { font-size: 16px; color: var(--brand-navy); margin-bottom: 12px; font-weight: 700; text-transform: uppercase; border-bottom: 1px dashed var(--border-color); padding-bottom: 8px; }
.dep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; font-size: 15px; }
.dep-grid a { color: var(--brand-navy); text-decoration: none; }
.dep-grid a:hover { color: var(--brand-gold); text-decoration: underline; }
.map-container { border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); }
.map-container iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ── INTRO (само index) ── */
#intro-screen {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: #F5EFE6; z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .8s ease, visibility .8s ease;
}
@keyframes logoIntro {
  0%   { opacity: 0; transform: scale(0.7) translateY(20px); }
  50%  { opacity: 1; transform: scale(1.05) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes textIntro {
  0%   { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}
.intro-logo-box { margin-bottom: 25px; animation: logoIntro 1.2s cubic-bezier(0.16,1,0.3,1) forwards; }
.intro-logo-box img { height: 140px; filter: drop-shadow(0 6px 15px rgba(27,42,74,.15)); }
.intro-title { text-align: center; animation: textIntro 1s ease .4s forwards; opacity: 0; }
.intro-title h2 { font-family: var(--font-serif); font-size: 32px; color: var(--brand-navy); letter-spacing: 1px; margin-bottom: 6px; font-weight: 800; text-transform: uppercase; }
.intro-title p { font-size: 15px; color: #524B42; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.intro-line { width: 70px; height: 3px; background: var(--brand-navy); margin: 15px auto 0; border-radius: 2px; animation: textIntro 1s ease .6s forwards; opacity: 0; }
#intro-screen.fade-out { opacity: 0; visibility: hidden; }

/* ── ИСТОРИЯ (само index) ── */
.history-section {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 15px;
}

.lead-text {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 25px;
  color: var(--text-main, #333);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.timeline-card {
  background: var(--bg-card, #f8f9fa);
  border-left: 4px solid #c9b8b3;
  padding: 12px 15px;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.timeline-year {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.timeline-card h3 {
  margin: 4px 0 6px 0;
  font-size: 1.2rem;
  color: #1a1a1a;
}

.timeline-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #444;
}


/* ── NEWS ARTICLE ── */
.news-article-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}
.news-article-header img {
  width: 300px;
  height: 250px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}
.news-article-header .news-img-wrap {
  width: 180px;
  flex-shrink: 0;
}
.news-article-header .news-img-wrap img {
  width: 180px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: block;
}
.news-article-title {
  flex: 1;
  min-width: 0;
}
.news-article-title h2 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--brand-navy);
  line-height: 1.4;
  margin-bottom: 10px;
  border: none;
  padding: 0;
}
.news-article-body {
  margin-top: 20px;
}
.news-article-body p {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  color: #3A3530;
  margin-bottom: 14px;
  text-align: justify;
}
.news-article-author {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}
.news-article-author strong {
  color: var(--brand-navy);
  font-weight: 600;
}

@media (max-width: 600px) {
  .news-article-header {
    flex-direction: column;
  }
  .news-article-header .news-img-wrap,
  .news-article-header .news-img-wrap img {
    width: 100%;
  }
}


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main-container { flex-direction: column; }
  aside.sidebar { width: 100%; }
  #hamburger { display: block; }
  nav { display: none; }
  nav.open { display: block; }
  ul.menu { flex-direction: column; }
  ul.menu li a { border-bottom: 1px solid rgba(255,255,255,.08); }
  .logo-text h1 { font-size: 18px; }
  main.content { padding: 20px; }
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .intro-logo-box img { height: 110px; }
  .intro-title h2 { font-size: 26px; }
  .news-card { flex-direction: column; }
  .news-card img { width: 100%; height: 180px; }
}
@media (max-width: 700px) {
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .main-container { padding: 0 12px; }
}
