:root {
    --primary-color: #1e1e1e;
    --secondary-color: #404040;

    --white-color: #ffffff;
    --light-color: #e6e6e6;
    --light-grey-color: #acacac;
    --grey-color: #474747;
    --dark-color: #212529;

    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;

    --white-background-color: #ffffff;
    --dark-background-color: #212529;
    --whiteley-background-color: #f1f1f1;
    --green-background-color: #6b7650;
}

/* Main */
body, html {
    min-height: 50vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Raleway', Arial, sans-serif;
    background-color: var(--white-background-color);
    background-image: url('../images/marble_background.png');
    background-repeat: repeat;
    background-size: auto;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Alumni Sans', Arial, sans-serif;
}

h1 {
    font-size: 4rem;
    font-weight: 400;
}

/* Accordion slider */
.as-panels {
  counter-reset: panel-counter;
}

.as-panel {
  position: relative;
  counter-increment: panel-counter;
}

.as-panel::after {
  content: counter(panel-counter, decimal-leading-zero);
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 3rem;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.panel-number {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 3rem;
  font-weight: bold;
  color: rgba(217, 217, 217, 0.387);
  pointer-events: none;
  font-family: Arial, sans-serif;
}

.panel-title {
  position: absolute;
  bottom: 10px;
  left: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color:  rgba(217, 217, 217, 0.387);
  white-space: nowrap;
  pointer-events: none;
  transition: transform 0.6s ease, color 0.3s ease;
  transform-origin: left bottom;
  transform: rotate(-90deg);
}

.as-panel.as-opened .panel-title {
  transform: rotate(0deg) translateX(10px);
  color: #fff;
  left: 30px;
  transition-delay: 0.2s;
}

.col-12.col-lg-3.d-flex {
    /* The same as a slider */
    min-height: 600px;
}

.accordion-slider .panel-title a {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.slider-link {
    color: inherit;
    text-decoration: none;
}

/* Breadcrumbs */
.breadcrumb-item a {
    color: var(--white-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--white-color);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='black' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L12.293 8 6.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='black' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L12.293 8 6.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    margin-right: 0.4rem;
    margin-left: 0rem;
    margin-top: 0.4rem;
}

.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
    background-color: var(--dark-color);
}

.breadcrumb-dark a {
    color: var(--dark-color);
}

.product-item {
    text-decoration: none;
    font-size: 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar Logo */
.navbar-logo {
    width: 220px;
    height: auto;
    transition: width 0.2s ease;
}

/* таблет */
@media (max-width: 992px) {
    .navbar-logo {
        width: 180px;
    }
}

/* мобилна версия */
@media (max-width: 576px) {
    .navbar-logo {
        width: 150px;
    }
}

/* Accordion Navigation Buttons */
#slider-prev, #slider-next {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background images */
.black-background {
    background-color: var(--dark-background-color);
    color: var(--light-color);
    min-height: 450px;
    background-image: url('../images/waves-black-bg.png');
    background-repeat: no-repeat;
    background-size: auto;
}

.green-background {
    background-color: var(--green-background-color);
    color: var(--light-color);
    min-height: 450px;
    background-image: url('../images/waves-green-bg.webp');
    background-repeat: no-repeat;
    background-size: auto;
}

/* Buttons */
.btn-rounded {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-rounded:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-rounded:active {
    background-color: #000000;
}

.btn-rounded:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline-rounded {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-outline-rounded:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--dark-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline-white-rounded {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-outline-white-rounded:hover {
    background-color: rgba(255, 255, 255, 0.213);
    color: #ffffff;
}

.btn-arrow {
  display: inline-block;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.btn-rounded:hover .btn-arrow,
.btn-outline-rounded:hover .btn-arrow,
.btn-outline-white-rounded:hover .btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

/* Buttons Overwrite  */
.btn {
    transition: background-color 0.3s ease-in-out,
        color 0.3s ease-in-out,
        border-color 0.3s ease-in-out;
}

.btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--secondary-color)
}

/* Thumbnails */
.img-thumbnail {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-thumbnail:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* News inner page - Image container */
.image-container {
    position: relative;
    overflow: hidden;
    max-height: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Pagination buttons */
/* Pagination wrapper */
.pagination {
    gap: 8px;
}

/* Page item */
.pagination .page-item {
    margin: 0;
}

/* Page link = button */
.pagination .page-link {
    padding: 6px 14px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;

    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover */
.pagination .page-link:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Active page */
.pagination .page-item.active .page-link {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

/* Disabled */
.pagination .page-item.disabled .page-link {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--primary-color);
}

/* Arrow buttons (prev / next) */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    width: 38px;
    height: 38px;
    padding: 0;

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

    border-radius: 50%;
}

.image-container img {
    max-width: 90%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.contact-content {
    height: 280px;
    overflow: hidden;
}

/* Advance Filter */
.filter-select {
    border: none;
    /* border-bottom: 1px solid #ccc; */
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    cursor: pointer;
    padding-right: 24px;
    /* width: 200px; */
}
.filter-select:focus {
    outline: none;
    box-shadow: none;
    border-color: #666;
}

#products-wrapper {
    min-height: 500px;
    transition: all 0.3s ease;
}


.loading-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--grey-color);
}

/* Project Category Card */
.project-category-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem; /* the same like .rounded */
}

.project-category-card img {
    display: block;
    width: 100%;
    height: auto;
}

.project-category-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* top border*/
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.project-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2; /* text above gradient */
}

/* Load more items */
.fade-in {
    animation: fadeIn .4s ease-in-out;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}


/* Others */
.hero-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.box-text-50 {
    max-width: 50%;
    margin: 0 auto;
    text-align: center;
}

.text-small {
    font-size: 0.9rem;
    color: var(--grey-color);
}

.back-to-top {
    position: fixed;
    bottom: 85px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 16px;
    display: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(5px);
}

.back-to-top:hover {
    border: 1px solid var(--secondary-color);
    background-color: var(--light-color);
    color: var(--secondary-color);
    transform: translateY(0);
}

/* Top search form */
.custom-input-search {
    border: 1px solid var(--light-grey-color);
    background-color: transparent;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
    border-radius: 15px;
}

.custom-input-search:focus {
    border: 1px solid #000;
    outline: none;
    box-shadow: none;
    background-color: transparent;
    border-radius: 15px;
}

/* In page form */
.contact-form .border-bottom-only {
    color: var(--light-color);
    border: none;
    border-bottom: 1px solid var(--light-grey-color);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.contact-form .border-bottom-only:focus {
    color: var(--light-color);
    outline: none;
    box-shadow: none;
    background: transparent;
    border-bottom-color: var(--light-color);
}

.contact-form .border-bottom-only.contact-page {
    color: var(--primary-color) !important;
}

/* Placeholder */
.contact-form .border-bottom-only::placeholder {
    color: #888;
    opacity: 1;
}

/* Firefox */
.contact-form .border-bottom-only::-moz-placeholder {
    color: #888;
    opacity: 1;
}

/* Internet Explorer */
.contact-form .border-bottom-only:-ms-input-placeholder {
    color: #888;
}

/* Edge */
.contact-form .border-bottom-only::-ms-input-placeholder {
    color: #888;
}

/* Check box */
.contact-form .transparent-checkbox {
    background-color: transparent !important;
    border: 1px solid var(--light-grey-color);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.contact-form .transparent-checkbox:checked {
    background-color: var(--primary-color);
}

/* Product data table */
.product-data-table td, .product-data-table th {
    background: transparent;
    border-bottom: var(--grey-color) 1px solid;
    padding: 20px 5px 5px 5px;
}

/* Footer */
.footer {
    min-height: 200px;
    background-color: rgba(102, 102, 102, 0.1);
    background-image: url('../images/marble_background.png');
    background-repeat: repeat;
    background-size: auto;
    margin-left: 15px;
    margin-right: 15px;
    border-radius: 20px;
}

.footer-address {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.footer-address li {
    margin: 20px 0px;
}

.social {
    font-size: 1.5rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
    text-decoration: none;
}

/* Newsletter Subscription Form */
.custom-input {
    border: none;
    border-bottom: 1px solid #acacac;
    background-color: transparent;
    padding: 10px 0px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
    border-radius: 0%;
}

.custom-input:focus {
    border: none;
    border-bottom: 1px solid #000;
    outline: none;
    box-shadow: none;
    background-color: transparent;
    border-radius: 0%;
}

/* Credits */
.author-logo {
    width: 70px;
    height: auto;
    object-fit: contain;
    margin-left: 10px;
    margin-right: 10px;
}

