body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: #111;
}

/* HEADER */
.site-header {
  position: sticky;  
  top: 0;
  z-index: 1000;

  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  text-decoration: none;
  color: #222;
  font-size: 1.2rem;
  /* color: #6699cc; */
  opacity: 0.8;
}

.logo:hover{
  color: #6699cc;
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
}

.header-actions a,
.header-actions button {
  margin-left: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #444;
}

/* ======================
   MENU BUTTON + OVERLAY
====================== */

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.menu-toggle img {
  height: 20px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .menu-toggle img {
    height: 18px;
    margin-right: 1.5rem;
  }
}

/* ======================
   SHARE BUTTON
====================== */

.share-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
  color: #666;
}

.share-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.share-toggle:hover {
  color: #6699cc;
}

@media (max-width: 768px) {
  .share-toggle svg {
    width: 20px;
    height: 20px;
  }
}

/* ======================
   LANGUAGE LABEL
====================== */

.lang-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #888;
  margin-right: 1rem;
  letter-spacing: 0.02em;
  user-select: none;
}

/* ======================
   LANGUAGE TOGGLE
====================== */

.lang-toggle {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
}

.lang-toggle button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  margin: 0;
}

.lang-toggle button:hover {
  opacity: 1;
  color: #f2b705;
}

.lang-toggle .lang-sep {
  margin: 0 0.3rem;
  opacity: 0.4;
}

/* ACTIVE LANGUAGE */
body.lang-bg .lang-toggle button[data-lang="bg"],
body.lang-en .lang-toggle button[data-lang="en"] {
  opacity: 1;
  color: #222;
  cursor: default;
}

/* ======================
   LANGUAGE SWITCH
====================== */

.lang {
  display: none;
}

body.lang-bg .lang-bg {
  display: block;
}

body.lang-en .lang-en {
  display: block;
}

body.lang-en .project-content {
  line-height: 1.8;
}


body.lang-bg .log-meta.lang-bg,
body.lang-en .log-meta.lang-en {
  display: block;
}


/* SCIENTIFIC BACKGROUND */
.journal-background {
  background-image: url("media/bgr.jpg");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
  padding: 4rem 1rem;
}


/* ======================
   CENTRAL PANEL
====================== */

.journal-panel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  padding: 0 2.5rem 2.5rem;
  /* padding: 2.5rem; */
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-radius: 16px;
  z-index: 2;
  /* margin-top: -150px; */
}

.journal-hero-media {
  margin: 0 -2.5rem 2rem;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.journal-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

/* DIVIDER */
.panel-divider {
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.3);
  margin: 2rem 0;
}
.meta-divider {
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.3);
  margin: 0.3rem 0 1.6rem;
  /* width: 100%; */
}

.journal-headline {
  margin-bottom: 2rem;
}

.journal-headline-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  color: #666;
}

.journal-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: #6699cc;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
  text-align: center;
}

.journal-subtitle {
  margin: 0 auto;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  color: #444;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.journal-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
}

.journal-content p {
  margin: 0 0 1.4rem;
  text-align: left;
  text-indent: 1.2rem;
}

.journal-content p:last-child {
  margin-bottom: 0;
}


/* ====================
 GALLERY 
===================== */
.journal-gallery-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 600;
  color: #fff; 
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.journal-gallery-section {
  background: #5b3a8c;
  padding: 3rem 1rem;
}

.journal-gallery {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.journal-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.journal-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.journal-gallery a:hover img {
  transform: scale(1.05);
}

/* ======================
   PRIVACY BAND
====================== */

.site-privacy {
  width: 100%;
  background: linear-gradient(
    to bottom,
    #f9f1d3,
    #f6e29a
  );
  padding: 2rem 1.5rem;
}

.privacy-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-privacy p {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.7;
  text-indent: 0;
  opacity: 0.9;
}

/* --------------------
    FOOTER 
-------------------- */

.site-footer {
  background: linear-gradient(
    to bottom,
    #ebd37a,
    #f2b705
  );
  color: #111;
  font-size: 0.85rem;
}

.footer-main {
  padding: 2.2rem 1.5rem 1.6rem;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0rem 1.5rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  padding-top: 2rem;

  align-items: end;  
  /* позиционира елементите долу на дъното */
}

.footer-col-left p {
  margin: 0 0 0.9rem;
  line-height: 1.5;
}
.footer-legal {
  font-size: 0.78rem;
  opacity: 1;
  text-indent: 1em;
}

/* .footer-col-right {
  display: flex;
  justify-content: flex-end;   хоризонтално вдясно
} */
.footer-col-right p {
  /* padding-left: 1.5rem; */
  margin: 0 0 0.9rem;
}
/* .footer-privacy {
  margin: 0;
  line-height: 1.6;
  font-size: 0.78rem;
  opacity: 0.85;
  text-indent: 1em;
  max-width: 480px;
} */

.footer-bottom-inner {
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  max-width: 1150px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 0.75rem;
}


/* ---- Social ICONS --- */

.social-icons {
  display: flex;
  gap: 0.6rem;
}

.social-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* color: #fff; контролира fill-а */
  /* color: #fff; */
  color: #111;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  object-fit: contain;
}

.social-icon:hover {
  transform: scale(1.15);
}

.social-icon.instagram:hover {
  transform: scale(1.35);
}

.social-icon.instagram {
  transform: scale(1.2);
}

.social-icon.youtube:hover {
  transform: scale(1.4);
}

.social-icon.youtube {
  transform: scale(1.25);
}



/* ============================
    MOBILE 
============================ */

/* CENTRAL PANEL */
/* @media (max-width: 900px) {
  .journal-panel {
    margin-top: -50px;
  }
} */
@media (max-width: 768px) {
  .journal-background {
    padding-left: 0;
    padding-right: 0;
  }

  .journal-panel {
    max-width: 100%;
    /* width: 100%; */
    width: auto;
    margin-top: -60px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    padding: 1.6rem 1.2rem;
    /* overflow: hidden; */
  }

  .journal-hero-media {
    margin: 0 -1.2rem 1.4rem;
    border-radius: 0;
  }

  .journal-hero-media img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
  }
  .site-privacy {
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .journal-title {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
    line-height: 1.15;
  }

  .journal-subtitle {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .journal-content {
    font-size: 1rem;
    line-height: 1.72;
    max-width: 100%;
  }

  .journal-content p {
    text-indent: 0.45rem;
  }
}

/* FOOTER COLUMNS CONTROL*/
@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }


  .footer-col-left,
  .footer-col-right {
    width: 100%;
  }

  .footer-col-right {
    display: block;
    /* border-top: 1px solid rgba(0,0,0,0.25); */
    padding-left: 0;
    padding-top: 1.2rem;
  }

  /* .footer-privacy {
    max-width: none;
    text-align: left; 
  } */
}


