

:root {
  --body-bg-color: #f8fafc;
  --body-text-color: #222222;
  --heading-color: #222222;
  --hero-gradient1: #667eea;
  --hero-gradient2: #764ba2;
  --footer-bg-color: #0d0d0d;
  --link-color: #2563eb;
  --header-bg-color: #ffffff;
  --font-family: 'Courier New', Courier, monospace;
  --nav-link-color: #141414;
  --footer-text-color: #ffffff;
  --header-text-color: #ffffffff;
}

body {
  background-color: var(--body-bg-color) !important;
  color: var(--body-text-color) !important;
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
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;
}


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;
}

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

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

  
  .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;
}
  
.error_page {
  min-height: 70vh;
}


 .navbar {
  background-color: var(--header-bg-color) !important;
  
}

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

.hero-section.gradient-bg {
  background: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
}

.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.548));
  opacity: 0.5;
  z-index: 1;
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 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;
  }
}

@media screen and (min-width: 1199.98px) {
.dropdown-menu {
    top: 100%;
    left: 50% !important;
    transform: translateX(-50%);
  }
}

.navbar .dropdown-toggle::after {
  transition: transform .3s ease
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg)
}

.custom-dropdown {
  border: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
  border-radius: 12px;
  padding: .5rem 0;
  margin-top: .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: .75rem 1.5rem;
  transition: all .3s ease;
  color: var(--nav-link-color, #141414) !important;
  font-weight: 500;
  border-radius: 0;
  text-wrap: wrap
}

.custom-dropdown .dropdown-item:hover {
  color: #fff;
  background: color-mix(in srgb, var(--header-bg-color) 95%, transparent) !important;
}

.custom-dropdown .dropdown-item i {
  width: 16px;
  color: #6c757d;
  transition: color .3s ease
}

.custom-dropdown .dropdown-item:hover i {
  color: #fff
}

.dropdown-menu {
  opacity: 0;
  transition: all .3s ease;
  display: block;
  visibility: hidden
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible
}

@media (min-width:1199.98px) {
  .custom-dropdown {
    max-width: 200px
  }
}

@media (max-width:1199.98px) {
  .custom-dropdown {
    display: none;
    background: #f8f9fa;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    border-top: 1px solid #dee2e6
  }

  .custom-dropdown .dropdown-item:hover {
    margin: 0;
    border-radius: 0;
    transform: none
  }
}

.dropdown-menu:hover,
.dropdown:hover .dropdown-menu {
  display: block !important;
  visibility: visible;
  opacity: 1
}
.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #91919131 !important;
}

.floating-rounded-navbar {
  background-color: var(--header-bg-color) !important;
  position: absolute !important;
  top: 15px !important;
  left: 7px !important;
  right: 7px !important;
  width: calc(100% - 11px) !important;
  z-index: 2000;
  border-radius: 21px;
  transition: all 0.3s ease;
}


@media (max-width: 1199.98px) {
  .floating-rounded-navbar .navbar-collapse {
    top: 85px !important;
  }
}

.navbar-brand {
  margin-right: 0 !important;
}
            




:root{
  --cold-dark: #0D0D0D;
  --cold-mid:  #738C96;
  --cold-light:#F8FAFC;
  --accent:    #5FB1D1; /* subtle icy accent (adjustable) */
}

/* Decorative, animated H2 for .styled-titles sections */
.styled-titles h2{
  --pad: 18px 22px;
  position: relative;
  display: inline-block;
  margin: 0 0 24px 0;
  padding: var(--pad);
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.05;
  color: var(--cold-light);
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(115,140,150,0.03) 100%);
  border-radius: 14px;
  box-shadow:
    0 6px 18px rgba(11,12,14,0.55),
    inset 0 1px 0 rgba(255,255,255,0.02);
  letter-spacing: -0.02em;
  text-transform: none;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.6),
    0 6px 18px rgba(14,18,20,0.35);
  border: 1px solid rgba(115,140,150,0.08);
  overflow: visible;
  isolation: isolate;
}

/* Frosted animated glow behind text */
.styled-titles h2::before{
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -8px;
  bottom: -8px;
  border-radius: 18px;
  pointer-events: none;
  z-index: -2;
  background: radial-gradient(60% 40% at 10% 20%, rgba(95,177,209,0.06), transparent 12%),
              radial-gradient(50% 30% at 90% 80%, rgba(115,140,150,0.03), transparent 15%);
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: pulseFrost 4.6s ease-in-out infinite;
  opacity: 0.95;
}

/* Thin animated underline with sliding sheen */
.styled-titles h2::after{
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 8px;
  height: 6px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(115,140,150,0.12), rgba(95,177,209,0.20), rgba(248,250,252,0.08));
  transform-origin: left center;
  box-shadow: 0 4px 12px rgba(11,12,14,0.45);
  z-index: -1;
  animation: barSweep 3.2s cubic-bezier(.22,.9,.26,1) infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Small decorative icy shards to the left and right */
.styled-titles h2 i.shard{
  display: inline-block;
  width: 10px;
  height: 18px;
  margin-right: 12px;
  vertical-align: middle;
  transform-origin: center;
  background: linear-gradient(180deg, var(--cold-mid), var(--cold-dark));
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.03);
  animation: shardTilt 4.4s ease-in-out infinite;
}

/* Optional right shard (if you add another <i class="shard"> after text) */
.styled-titles h2 i.shard.right{
  margin-left: 12px;
  margin-right: 0;
  transform-origin: center;
}

/* Text sheen animation (subtle moving highlight across the letters) */
.styled-titles h2 .sheen{
  position: relative;
  display: inline-block;
  z-index: 1;
  background-image: linear-gradient(90deg, rgba(248,250,252,0.00) 0%, rgba(248,250,252,0.06) 40%, rgba(248,250,252,0.25) 50%, rgba(248,250,252,0.06) 60%, rgba(248,250,252,0.00) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheenMove 3.8s linear infinite;
  background-size: 250% 100%;
}

/* Keyframes */
@keyframes pulseFrost{
  0%   { transform: scale(1) translateY(0); opacity: 0.95; filter: blur(8px); }
  50%  { transform: scale(1.03) translateY(-2px); opacity: 1;    filter: blur(10px); }
  100% { transform: scale(1) translateY(0); opacity: 0.95; filter: blur(8px); }
}

@keyframes barSweep{
  0%   { transform: translateX(-6%) scaleX(0.92); opacity: 0.75; }
  50%  { transform: translateX(4%)  scaleX(1.02); opacity: 1; }
  100% { transform: translateX(-6%) scaleX(0.92); opacity: 0.75; }
}

@keyframes sheenMove{
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes shardTilt{
  0%   { transform: rotate(-6deg) translateY(0); opacity: 0.92; }
  50%  { transform: rotate(6deg)  translateY(-2px); opacity: 1; }
  100% { transform: rotate(-6deg) translateY(0); opacity: 0.92; }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .styled-titles h2,
  .styled-titles h2::before,
  .styled-titles h2::after,
  .styled-titles h2 .sheen,
  .styled-titles h2 i.shard{
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive tweaks */
@media (max-width: 520px){
  .styled-titles h2{
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1.25rem;
  }
  .styled-titles h2::after{ bottom: 6px; height: 5px; left: 8%; right: 8%; }
}




:root{
  --deep-dark: #0D0D0D;
  --frost-gray: #738C96;
  --ice-light: #F8FAFC;
  --glow-blue: #3AAED8;
  --glow-cyan: #72E1D1;
}

/* Section base */
.custom-section {
  position: relative;
  padding: 70px 20px;
  margin: 60px auto;
  background: linear-gradient(135deg, var(--deep-dark) 0%, #1A1C1D 100%);
  color: var(--ice-light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  isolation: isolate;
}

/* Floating particles in background */
.custom-section::before,
.custom-section::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(114,225,209,0.2), transparent 70%);
  animation: floatOrb 14s ease-in-out infinite;
  z-index: 0;
}
.custom-section::before { top: -50px; left: -60px; animation-delay: 0s; }
.custom-section::after  { bottom: -60px; right: -40px; animation-delay: 5s; }

/* H2 – главно заглавие, силно украсено */
.custom-section h2 {
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 40px;
  padding: 16px 22px;
  color: var(--ice-light) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--glow-blue), var(--glow-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: h2Shine 6s linear infinite;
}

/* Декоративни линии около H2 */
.custom-section h2::before,
.custom-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  width: 120px;
  background: linear-gradient(90deg, transparent, var(--glow-blue), var(--glow-cyan), transparent);
  border-radius: 2px;
  animation: linePulse 3s ease-in-out infinite;
}
.custom-section h2::before { bottom: -12px; }
.custom-section h2::after  { top: -12px; }

/* H3 – подзаглавие, украсено */
.custom-section h3 {
  position: relative;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  margin: 35px 0 20px;
  padding-left: 18px;
  color: var(--glow-cyan) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 0 12px var(--glow-cyan);
  border-left: 5px solid var(--glow-blue);
  letter-spacing: 0.03em;
  animation: fadeSlideGlow 2s ease both;
}

/* Декоративен елемент пред H3 */
.custom-section h3::before {
  content: "✦";
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  color: var(--glow-blue);
  font-size: 1.2rem;
  text-shadow: 0 0 10px var(--glow-blue), 0 0 20px var(--glow-cyan);
  animation: spinStar 6s linear infinite;
}

/* Keyframes за ефектите */
@keyframes h2Shine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes linePulse {
  0%,100% { opacity: 0.6; transform: translateX(-50%) scaleX(0.8); }
  50%     { opacity: 1;   transform: translateX(-50%) scaleX(1); }
}

@keyframes fadeSlideGlow {
  0%   { opacity: 0; transform: translateX(-25px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes spinStar {
  from { transform: translateY(-50%) rotate(0deg) scale(1); }
  to   { transform: translateY(-50%) rotate(360deg) scale(1); }
}
/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .custom-section *,
  .custom-section::before,
  .custom-section::after {
    animation: none !important;
    transition: none !important;
  }
}
