body {
    font-family: "Open Sans", sans-serif;
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 300;
}

body h1, h2, h3, h4, h5, h6 {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    line-height: 1.5;
    color: rgb(44, 68, 112) !important;
}

p {
    margin-block-start: 0;
    margin-block-end: 0;
    margin-top: 0rem;
    margin-bottom: 1rem;
}

strong {
    font-weight: 800;
}

div .divider1 {
    height: 18px;
    width: 100%;
    margin: 0;
    padding: 0;
    background-image: url('/images/devider_01.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

div .divider2 {
    height: 18px;
    width: 100%;
    margin: 0;
    padding: 0;
    background-image: url('/images/devider_02.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

div .divider3 {
    height: 18px;
    width: 100%;
    margin: 0;
    padding: 0;
    background-image: url('/images/devider_03.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.bg-secondary {
    background-color: rgb(44, 68, 112) !important;
}

.text-shadow-lg {
    text-shadow: 0 0px 30px rgba(0, 0, 0, 0.8);
}


.site-main {
    position: relative;
    min-height: 100vh; /* fill the viewport */
    overflow: hidden; /* so background doesn't spill */
}

.bg-blur {
    background: url('/images/main.png') no-repeat center center fixed;
    background-size: cover;
    filter: blur(20px);
    transform: scale(1.1); /* avoid blur cut-off edges */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1; /* content stays above background */
    padding: 1rem;
    min-height: 100vh;
}

/* Hero background container styles */
.hero-bg-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
}

.hero-bg-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

/* Overlay for better text readability */
.hero-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 3rem 0;
}

.hero-content h1 {
    color: white !important;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-content .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg-image {
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-bg-image {
        min-height: 40vh;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* Custom divider with icon */
.hr-line {
    position: relative;
    text-align: center;
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
    height: 24px;
    border: none;
    background: url('/images/icon_64.png') no-repeat center;
    background-size: 24px;
    color: transparent; /* Hide the text */
    font-size: 0; /* Ensure no space is taken by the text */
    text-indent: -9999px; /* Move text out of view */
    overflow: hidden; /* Hide any overflow */
}

/* Lines */
.hr-line::before,
.hr-line::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 1px;
    background-color: rgb(44, 68, 112);
    width: calc(50% - 20px);
}

.hr-line::before {
    left: 0;
}

.hr-line::after {
    right: 0;
}

/*
      * Custom Turquoise Button (Bootstrap Style)
      * With "frosted glass" backdrop filter effect
      * Usage: <button class="btn btn-custom-turquoise">Text</button>
     */
     
     .btn-custom-turquoise {
       /* --- Base Styles --- */
       /* Colors */
      color: #fff; /* White text */
      background-color: rgba(0, 213, 255, 0.775); /* Lightly transparent turquoise background (LightSeaGreen) */
      border-color: #00ccff; /* Bright turquoise border (MediumTurquoise) */
    
      /* Backdrop filter effect */
      

      /*
      * --- Sizing and Spacing ---
      * Overrides Bootstrap's default padding to create more space.
      * The first value is for top/bottom, the second is for left/right.
      */
      padding: 1rem 1.4rem;
    
      /* Border and Shape */
      border-width: 3px;
      border-style: solid;
      border-radius: 0.375rem;
    
      /* Shadow */
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    
      /* Smooth transition for animations */
      transition: all 0.2s ease-in-out;
    }
    
    /* --- Button States --- */
    
    /* On hover or focus */
    .btn-custom-turquoise:hover,
    .btn-custom-turquoise:focus {
      color: #fff;
      background-color: rgb(0, 221, 255); /* Background becomes more saturated (DarkTurquoise) */
      border-color: #00e1ff; /* Border becomes darker and brighter (LightSeaGreen) */
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
      transform: translateY(-2px);
    }
    
    /* On active (click) */
    .btn-custom-turquoise:active {
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transform: translateY(0);
    }

    /*
      * Custom Turquoise Button (Bootstrap Style)
      * With "frosted glass" backdrop filter effect
      * Usage: <button class="btn btn-custom-turquoise">Text</button>
     */
     
     .btn-custom-turquoise {
       /* --- Base Styles --- */
       /* Colors */
      color: #fff; /* White text */
      background-color: rgba(0, 213, 255, 0.775); /* Lightly transparent turquoise background (LightSeaGreen) */
      border-color: #00ccff; /* Bright turquoise border (MediumTurquoise) */
    
      /* Backdrop filter effect */
      

      /*
      * --- Sizing and Spacing ---
      * Overrides Bootstrap's default padding to create more space.
      * The first value is for top/bottom, the second is for left/right.
      */
      padding: 1rem 1.4rem;
    
      /* Border and Shape */
      border-width: 3px;
      border-style: solid;
      border-radius: 0.375rem;
    
      /* Shadow */
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    
      /* Smooth transition for animations */
      transition: all 0.2s ease-in-out;
    }
    
    /* --- Button States --- */
    
    /* On hover or focus */
    .btn-custom-turquoise:hover,
    .btn-custom-turquoise:focus {
      color: #fff;
      background-color: rgb(0, 221, 255); /* Background becomes more saturated (DarkTurquoise) */
      border-color: #00e1ff; /* Border becomes darker and brighter (LightSeaGreen) */
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
      transform: translateY(-2px);
    }
    
    /* On active (click) */
    .btn-custom-turquoise:active {
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transform: translateY(0);
    }


/*
      * Custom Turquoise Button (Bootstrap Style)
      * With "frosted glass" backdrop filter effect
      * Usage: <button class="btn btn-custom-turquoise">Text</button>
     */
     
     .btn-custom-turquoise {
        /* --- Base Styles --- */
        /* Colors */
       color: #fff; /* White text */
       background-color: rgba(0, 213, 255, 0.775); /* Lightly transparent turquoise background (LightSeaGreen) */
       border-color: #00ccff; /* Bright turquoise border (MediumTurquoise) */
     
       /* Backdrop filter effect */
       
 
       /*
       * --- Sizing and Spacing ---
       * Overrides Bootstrap's default padding to create more space.
       * The first value is for top/bottom, the second is for left/right.
       */
       padding: 1rem 1.4rem;
     
       /* Border and Shape */
       border-width: 3px;
       border-style: solid;
       border-radius: 0.375rem;
     
       /* Shadow */
       box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
     
       /* Smooth transition for animations */
       transition: all 0.2s ease-in-out;
     }
     
     /* --- Button States --- */
     
     /* On hover or focus */
     .btn-custom-turquoise:hover,
     .btn-custom-turquoise:focus {
       color: #fff;
       background-color: rgb(0, 221, 255); /* Background becomes more saturated (DarkTurquoise) */
       border-color: #00e1ff; /* Border becomes darker and brighter (LightSeaGreen) */
       box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
       transform: translateY(-2px);
     }
     
     /* On active (click) */
     .btn-custom-turquoise:active {
       box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
       transform: translateY(0);
     }
 
     /*
       * Custom orange Button (Bootstrap Style)
       * With "frosted glass" backdrop filter effect
       * Usage: <button class="btn btn-custom-turquoise">Text</button>
      */
      
      .btn-custom-orange {
        /* --- Base Styles --- */
        /* Colors */
       color: #fff; /* White text */
       background-color: rgba(255, 111, 0, 0.775); /* Lightly transparent turquoise background (LightSeaGreen) */
       border-color: #ff5e00; /* Bright turquoise border (MediumTurquoise) */
     
       /* Backdrop filter effect */
       
 
       /*
       * --- Sizing and Spacing ---
       * Overrides Bootstrap's default padding to create more space.
       * The first value is for top/bottom, the second is for left/right.
       */
       padding: 1rem 1.4rem;
     
       /* Border and Shape */
       border-width: 3px;
       border-style: solid;
       border-radius: 0.375rem;
     
       /* Shadow */
       box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
     
       /* Smooth transition for animations */
       transition: all 0.2s ease-in-out;
     }
     
     /* --- Button States --- */
     
     /* On hover or focus */
     .btn-custom-orange:hover,
     .btn-custom-orange:focus {
       color: #fff;
       background-color: rgb(255, 111, 0); /* Background becomes more saturated (DarkTurquoise) */
       border-color: #ff5100; /* Border becomes darker and brighter (LightSeaGreen) */
       box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
       transform: translateY(-2px);
     }
     
     /* On active (click) */
     .btn-custom-orange:active {
       box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
       transform: translateY(0);
     }

/* Background image block */
.bg-image-block {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    /*margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);*/
    padding: 2rem 0;
    min-height: fit-content;
}

.bg-image-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    /*background-color: inherit;*/
}

.bg-image-block::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background-color: rgba(0,0,0,0.3); /* darken */
    backdrop-filter: saturate(70%); /* desaturate */
}

.bg-image-block > * {
    position: relative;
    z-index: 2;
}

/* Solid color background block */
.bg-color-block {
    position: relative;
    width: 100vw;
    /*margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);*/
    padding: 2rem 0;
    min-height: fit-content;
}

.bg-color-block > * {
    position: relative;
    z-index: 2;
}

/* Gradient background block */
.bg-gradient-block {
    position: relative;
    width: 100vw;
    /*margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);*/
    padding: 2rem 0;
    min-height: fit-content;
}

.bg-gradient-block > * {
    position: relative;
    z-index: 2;
}

/* Responsive column order - when columns stack vertically */
@media (max-width: 991.98px) {
    /* Reverse order when columns stack: text first, then video */
    .row-2 .col-lg-6:first-child {
        order: 2;
    }
    
    .row-2 .col-lg-6:last-child {
        order: 1;
    }
    
    /* Ensure flexbox is used for ordering to work */
    .row-2 {
        display: flex;
        flex-wrap: wrap;
    }
    
    .row-2 .col-lg-6 {
        display: flex;
        flex-direction: column;
    }
}

/* Video frame styles */
.video-frame-container {
    position: relative;
    display: inline-block;
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    object-fit: cover;
}

.video-frame-container video {
    position: relative;
    z-index: 1;
}

.play-button {
   /* Позиционирование по центру */
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 10; /* Убедимся, что кнопка поверх видео */
 
   /* Стилизация кнопки */
      width: 80px;
      height: 80px;
      background-color: rgba(0, 0, 0, 0.5);
      border: 2px solid white;
      border-radius: 50%; /* Делает кнопку круглой */
      color: white;
      font-size: 36px;
      cursor: pointer;
    
      /* Для центрирования символа '▶' внутри кнопки */
      display: flex;
      justify-content: center;
      align-items: center;
      padding-left: 5px;
    }
    
    .play-button:hover {
      background-color: rgba(0, 0, 0, 0.7);
    }

/* Image frame styles */
.image-frame-container {
    position: relative;
    display: inline-block;
}

.image-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    object-fit: cover;
}

.image-frame-container img:not(.image-frame) {
    position: relative;
    z-index: 1;
}

.navbar {
    background: linear-gradient(to right, #372e28, #8a5c3a, #372e28);/* Triple brown-orange gradient */
    padding: 1rem;
}

.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand img {
    height: 50px; /* Increased logo size */
}

.navbar-toggler {
    border: none;
    background-color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
}

#navbarNav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    flex-direction: row;
}

.nav-link {
    color: #fff;
    font-weight: 400; /* Normal weight */
    text-transform: uppercase;
    margin: 0 1rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
    border-bottom: none; /* Ensure no underline */
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    font-weight: 700; /* Bold for active */
    color: #fff !important; /* Ensure text stays white */
    background-color: rgba(255, 255, 255, 0.15); /* Subtle background for active link */
    border-radius: 5px; /* Rounded corners */
    border-bottom: none; /* No underline for active link */
}

.navbar-spacer {
    width: 50px; /* Compensator for logo, adjust to match logo width */
    flex-shrink: 0;
}


@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        margin: 0.5rem 0;
    }

    #navbarNav {
        justify-content: flex-start;
    }

    .navbar-spacer {
        display: none;
    }
}

.banner-200 {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    object-position: center;
}

/*footer*/
.footer-bg-container {
    /* 
      ЗАМЕНИТЕ 'path/to/your/image.jpg' на путь к вашему фоновому изображению.
      Я использовал временное изображение для примера.
    */
    background-image: url('/images/footer.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Оверлей для затемнения фона и улучшения читаемости текста */
.footer-bg-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.7); /* Темно-синий оттенок, похожий на Hearthstone */
    z-index: 1;
}

/* Позиционирование контента над оверлеем */
.footer-bg-container .container {
    position: relative;
    z-index: 2;
}

.social-icons .social-icon {
    color: #fff;
    font-size: 2rem; /* Размер иконок */
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icons .social-icon:hover {
    color: #00c6ff; /* Яркий голубой цвет при наведении, как в Hearthstone */
    transform: translateY(-5px); /* Небольшой сдвиг вверх при наведении */
}

/* Стили для разделительной линии */
.footer-separator {
    width: 40%;
    margin: 1.5rem auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Стили для текста с копирайтом */
.copyright-text {
    font-size: 0.875rem; /* Мелкий шрифт */
    color: rgba(255, 255, 255, 0.6); /* Полупрозрачный белый */
    letter-spacing: 0.5px;
}
