

:root {
  --body-bg-color: #524c4c;
  --body-text-color: #4b4747;
  --heading-color: #474444;
  --hero-gradient1: #168295;
  --hero-gradient2: #0b5e3a;
  --footer-bg-color: #394137;
  --link-color: #ffffff;
  --header-bg-color: #ffffff;
  --font-family: system-ui;
  --nav-link-color: #fafafa;
  --footer-text-color: #ffffff;
  --header-text-color: #ededed;
}
html {
  overflow-x: hidden;
}
body {
  background-color: var(--body-bg-color);
  color: var(--body-text-color) !important;
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
      
  background-image:
  linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    url("/images/body-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

  
h1 {
    font-size: clamp(2rem, 4vw, 2.5rem) !important;
}
h2 {
    font-size: clamp(1.6rem, 3vw, 2rem) !important;
}
h3 {
    font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}
p {
  margin-bottom: 0.5rem !important;
}
  
  section {
  padding: 15px 0;
  scroll-margin-top: 70px;
}

h2, h3 {
  color: var(--heading-color) !important;
}



.content-area a {
  color: var(--link-color) !important;
  text-decoration: none !important;
}

.content-area a:hover {
  color: var(--link-color) !important;
  opacity: 0.8;
}

  .sidebar-page-list {
  padding: 0;
  margin: 0;
  margin-bottom: 17px;
  width: 279px;
}

.sidebar-page-list li {
  list-style-type: disc;
  list-style-position: inside;
  color: var(--heading-color);
}

.sidebar-page-list li::marker {
  color: var(--link-color);
  font-size: 1.2em;
}
.sidebar-page-list li:last-child {
  border-bottom: none;
}

.sidebar-page-list li a {
  padding: 12px 0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  color: var(--link-color);
}

.sidebar-page-list li a:hover {
  padding-left: 11px;
}
  .twitter-tweet {
  width: 279px !important;
}

.x {
  display: flex;
  justify-content: center;
}
.error_page {
  min-height: 70vh;
}


    .footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
}

.footer a {
  text-decoration: none;
  color: var(--link-color) !important;
}.footer img {
        filter: brightness(0) invert(1);
      }

 .navbar {
  background-color: transparent !important;
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;

}
.navbar.scrolled {
  background-color: var(--header-bg-color) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section {
  padding: 115px 0 30px;
  position: relative;
  overflow: hidden;
  color: var(--header-text-color);
}

.hero-section.with-bg {
  background-image: url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section.with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.151));
  opacity: 0.5;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

  
@media (max-width: 768px) {
  .hero-section {
    padding: 77px 0;
  }
  
}
  .navbar-light .navbar-nav .nav-link {
    color: var(--nav-link-color, #141414) !important;
  }

  .navbar-light .navbar-nav .nav-link.active {
  color: var(--link-color) !important;
  font-weight: bold;
}
  /* Mobile nav */
@media (max-width: 1199.98px) {
  .navbar-collapse {
    position: fixed;
    top: 61px;
    left: 15px;
    right: 15px;
    background-color: color-mix(in srgb, var(--header-bg-color) 65%, transparent);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 15px;
    margin: 0;
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-item {
    margin: 7px 0;
  }

  .navbar-nav .nav-item:hover {
    transform: translateY(-1px);
  }

  .navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 0;
  }

  .navbar-toggler {
    z-index: 10000;
    position: relative;
    border: var(--bs-border-width) solid var(--nav-link-color, #141414) !important;
  }
}


.custom-dropdown {
  border: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
  background: color-mix(
    in srgb,
    var(--header-bg-color) 65%,
    transparent
  ) !important;
  backdrop-filter: blur(12px);
}

.custom-dropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  color: var(--nav-link-color, #141414) !important;
  font-weight: 500;
  border-radius: 0;
  text-wrap: wrap;
}
.dropdown-menu {
  display: none;
}

.custom-dropdown .dropdown-item:hover {
  color: #fff;
  background: color-mix(
    in srgb,
    var(--header-bg-color) 95%,
    transparent
  ) !important;
}
.nav-item.dropdown > .nav-link {
  display: flex;
  align-items: center;
}

.nav-item.dropdown > .nav-link .arrow {
  position: relative;
  margin-left: auto;
  border: solid var(--nav-link-color, #141414);
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.25s;
}

.dropdown.open .dropdown-menu {
  display: block;
}

@media (min-width: 1200px) {
  .nav-item.dropdown {
    position: relative;
  }
  .nav-item.dropdown > .nav-link .arrow {
    margin-left: 7px;
  }
  .custom-dropdown.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    z-index: 1000;
  }

  .nav-item.dropdown:hover > .nav-link .arrow {
    transform: rotate(-135deg);
  }
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
  }
}
@media (max-width: 1199px) {
  .nav-item.dropdown > .nav-link .arrow {
    padding: 4px;
  }
}

            



/* Основен фон на секцията */
.styled-section {
    position: relative;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f4faeeb6 0%, #dee4d9a1 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Движещи се вертикални линии */
.styled-section::before,
.styled-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 2px;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    filter: blur(1px);
    animation: moveLines 6s linear infinite;
}

.styled-section::before {
    left: 20%;
    animation-duration: 9s;
}

.styled-section::after {
    left: 70%;
    animation-duration: 12s;
    animation-delay: 1s;
}

/* Меки плаващи петна — много пастелни */
.styled-section .soft-spot {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.12);
    filter: blur(60px);
    border-radius: 50%;
    animation: floatSoft 10s ease-in-out infinite;
}

.styled-section .soft-spot:nth-child(1) {
    top: -40px;
    left: -40px;
}

.styled-section .soft-spot:nth-child(2) {
    bottom: -50px;
    right: -40px;
    animation-delay: 4s;
}

/* KEYFRAMES */
@keyframes moveLines {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes floatSoft {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(30px, -20px); }
}




/* Фон за списъка */
.styled-list {
  background-color: #dbd4c48f; /* пастелно бежово с прозрачност */
  padding: 30px 20px;
  border-radius: 16px;
  list-style: none; /* премахваме стандартните bullets */
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Лист елементи с тикче */
.styled-list li {
  position: relative;
  padding-left: 0px;
  margin-bottom: 15px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #3d3d3d;
  transition: color 0.3s ease;
}

/* Декоративно тикче */
.styled-list li::before {
  content: "✓"; /* тикче вместо точка */
  margin-right: 8px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #556B2F; /* зелено за тикчето */
  font-weight: bold;
  animation: bounceTick 2s infinite ease-in-out;
}

/* Лека „плаваща“ анимация на тикчето */
@keyframes bounceTick {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-55%) scale(1.1); }
}

/* Hover ефект на текста */
.styled-list li:hover {
  color: #6B5E3B; /* по-тъмно зелено при hover */
}



/* Основен контейнер */
.linking-page {
  position: relative;
  background: linear-gradient(135deg, #ece6d88f 0%, #e9e4d7 100%);
  padding: 40px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Заглавие */
.linking-page h2 {
  color: #3D3D3D;
  font-size: 24px;
  margin-bottom: 25px;
  position: relative;
}

/* Анимирана underline за заглавие */
.linking-page h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, #98A08F, #CFE7D4);
  border-radius: 2px;
  animation: slideLine 2s infinite alternate ease-in-out;
}

/* Списък на страниците */
.page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 2;
}

/* Линкове */
.page-list li a {
  text-decoration: none;
  color: #3D3D3D;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 12px;
  display: inline-block;
  background: rgba(255,255,255,0.15);
  transition: all 0.3s ease;
  position: relative;
}

/* Hover ефекти за линковете */
.page-list li a:hover {
  background: rgba(255,255,255,0.35);
  color: #556B2F;
  transform: translateX(5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Анимирани линии/движение на фона */
.linking-page::before,
.linking-page::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  filter: blur(60px);
  z-index: 0;
  animation: floatOrbs 12s ease-in-out infinite;
}

.linking-page::after {
  top: -120px;
  right: -100px;
  animation-duration: 18s;
}

.linking-page::before {
  bottom: -100px;
  left: -120px;
  animation-duration: 15s;
}

/* KEYFRAMES */
@keyframes floatOrbs {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.1); }
  100% { transform: translate(0,0) scale(1); }
}

@keyframes slideLine {
  0% { width: 50px; opacity: 0.6; }
  50% { width: 80px; opacity: 1; }
  100% { width: 50px; opacity: 0.6; }
}



/* Основен фон на секцията */
.custom-section {
  position: relative;
  background: linear-gradient(135deg, #ffffffb6, #e9dab505);
  padding: 80px 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #3d3d3d;
}

/* Плаващи кръгове */
.custom-section::before,
.custom-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  filter: blur(80px);
  z-index: 0;
  animation: floatOrbs 14s ease-in-out infinite;
}

.custom-section::before {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -60px;
  animation-duration: 16s;
}

.custom-section::after {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -80px;
  animation-duration: 20s;
}

/* Леки анимирани линии */
.custom-section .line-1,
.custom-section .line-2 {
  position: absolute;
  width: 2px;
  height: 200%;
  background: rgba(73, 64, 64, 0.637);
  top: -50%;
  animation: moveLines 12s linear infinite;
  z-index: 1;
}

.custom-section .line-1 {
  left: 25%;
  animation-duration: 10s;
}

.custom-section .line-2 {
  left: 65%;
  animation-duration: 14s;
  animation-delay: 2s;
}

/* KEYFRAMES */
@keyframes floatOrbs {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.1); }
  100% { transform: translate(0,0) scale(1); }
}

@keyframes moveLines {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}



  .tw-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .twitter-tweet {
    max-width: 100%;
    margin: 0 auto;
  }
  


  /* コンテナ */
.search {
  margin: 20px 0;
}

/* フォーム */
.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 25px;
  overflow: hidden;
  background-color: #f5f5f5;
}

/* 検索フィールド */
.search-form input[type="text"] {
  flex: 1;
  padding: 10px 15px;
  border: none;
  outline: none;
  font-size: 14px;
  background-color: transparent;
}

/* 検索ボタン */
.search-form button {
  background-color: #d6c9c0b4;
  border: none;
  color: #fff;
  padding: 0 20px;
  cursor: default; /* 非アクティブボタン */
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

/* アイコン */
.search-form button i {
  pointer-events: none; /* アイコンはクリック不可 */
}

/* ホバー時の軽い変化 */
.search-form button:hover {
  background-color: #aca39e;
}
