/********** Template CSS **********/
:root {
  --primary-bg: #F8F1E6;
  --accent-primary: #D4AF37;
  --accent-dark: #8C7531;
  --accent-light: #E6D3A3;
  --text-primary: #2B2B2B;
  --text-secondary: #6C5E47;
  --primary: var(--accent-primary);
  --light: #ffdca6; /* This seems like an old color, will be replaced or removed if unused */
  --dark: #111a24; /* This seems like an old color, will be replaced or removed if unused */
}

body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-semi-bold {
  font-weight: 600 !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  text-transform: uppercase;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 2px;
}

/*** Navbar ***/
.navbar-dark {
  background-color: rgba(43, 43, 43, 0.85) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.bg-dark {
  background-color: rgba(43, 43, 43, 0.85) !important;
}

.navbar-dark .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: #ffffff;
  font-size: 15px;
  text-transform: uppercase;
  outline: none;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 20px;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--accent-primary);
}

.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand .logo-text {
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 5px 10px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.navbar-brand:hover .logo-text {
  border-color: var(--accent-primary);
}

.navbar-brand div {
  position: relative;
  padding: 5px 10px;
}

.navbar-brand div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--primary);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-brand:hover div::before {
  opacity: 1;
}

.logo-text {
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 5px 10px;
}

.logo-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--primary);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-brand:hover .logo-text::after {
  opacity: 1;
}

@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }
  
  .navbar-dark .navbar-nav .nav-link::after {
    bottom: 5px;
  }
}

/*** Hero Section ***/
.hero-section {
    height: 100vh;
    background-image: url('../img/hero-section-bg.webp');
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
}

@media (max-width: 991.98px) {
  .hero-text h1 {
    font-size: 2.6rem;
}
}
.hero-text p.lead {
    font-size: 1.5rem;
    color: var(--accent-light) !important;
}
.hero-text p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f1f1f1 !important;
}

.container-fluid.py-5 h2 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.container-fluid.py-5 p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.container-fluid.py-5 .img-fluid {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.container-fluid.py-5 .btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.container-fluid.py-5 .btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

.container-fluid.py-5 .list-unstyled i {
    vertical-align: middle;
    color: var(--accent-primary);
}

/*** Page Header ***/
.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url('../img/hero-section-bg-2.webp') center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Team ***/
.team-item {
    text-align: center;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all .3s;
}

.team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.team-item .team-text {
    padding: 25px;
}

.team-item .team-text h5 {
    font-weight: 600;
    color: var(--text-primary);
}

.team-item .team-text span {
    color: var(--text-secondary);
    font-size: 14px;
}

/*** Why Us ***/
.why-us-item {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all .3s;
}

.why-us-item:hover {
    background-color: var(--accent-light);
    transform: translateY(-10px);
}

.why-us-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.why-us-icon i {
    color: #fff;
    font-size: 40px;
}

.why-us-item:hover .why-us-icon {
    background-color: var(--accent-dark);
}

.why-us-item h5 {
    color: var(--text-primary);
    font-weight: 600;
}

.why-us-item p {
    color: var(--text-secondary);
}

/*** For Government Bodies ***/
.gov-feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    height: 100%;
    border: 1px solid var(--accent-light);
    transition: all .3s;
}

.gov-feature-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.gov-feature-item h5 {
    color: var(--text-primary);
    font-weight: 600;
}

.gov-feature-item ul li {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.gov-feature-item ul li i {
    color: var(--accent-primary);
    margin-right: 10px;
}

/*** Blog ***/
.blog-item {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all .3s;
    height: 100%;
}

.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.blog-item img {
  width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-item .blog-text {
    padding: 25px;
}

.blog-item .blog-text h5 {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-item .blog-text small {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
}

.blog-item .blog-text .btn {
    background-color: var(--accent-light);
    color: var(--text-primary);
    border: none;
    font-weight: 600;
}

.blog-item .blog-text .btn:hover {
    background-color: var(--accent-primary);
    color: #fff;
}

/*** Contact Page ***/
.contact-item-box {
    background: #FFFFFF;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all .3s;
}

.contact-item-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.contact-item-box i {
    transition: all .3s;
}

.contact-item-box:hover i {
    transform: scale(1.2);
    color: var(--accent-dark) !important;
}

.contact-form {
    background-color: var(--primary-bg);
}

/* Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

@media (max-width: 700px) {
  .cookie-wrapper {
    width: 100%;
  }
}

.cookie-wrapper {
  position: fixed;
  bottom: 0px;
  right: 0;
  width: 40%;
  background: var(--primary-bg);
  padding: 15px 25px 22px;
  transition: right 0.3s ease;
  box-shadow: 0 5px 10px rgb(0, 0, 0);
  z-index: 999;
  @media (max-width: 600px) {
    width: 100%;
  }
}
.cookie-wrapper .show {
  right: 20px;
}

.hidden {
  display: none;
}
header i {
  color: var(--accent-primary);
  font-size: 32px;
  text-align: center;
}
header h2 {
  color: var(--accent-primary);
  font-weight: 500;
  text-align: center;
}
.data {
  text-align: center;
}
.data p {
  color: var(--text-primary);
}
.data p a {
  color: var(--accent-dark);
  text-decoration: none;
  text-align: center !important;
}
.data p a:hover {
  text-decoration: underline;
}
.buttons {
  padding: 20px 0px;
  text-align: center;
}
.buttons .cookie-button {
  border: 2px solid var(--accent-primary);
  color: #fff;
  padding: 8px 0;
  background: var(--accent-primary);
  cursor: pointer;
  width: calc(100% / 2 - 10px);
  transition: all 0.5s ease;
  max-width: 150px;
  border-radius: 0;
}
.buttons #acceptBtn:hover {
  background-color: transparent;
  color: var(--accent-primary);
}
.buttons #declineBtn {
  border: 2px solid #ccc;
  background: #ccc;
  color: #333;
}
.buttons #declineBtn:hover {
  background-color: #b3b3b3;
  border-color: #b3b3b3;
  color: #fff;
}


/* footer  */


/* Стилі для футера */
.footer-section {
  background-color: var(--text-primary);
  color: var(--primary-bg);
  padding: 80px 0 30px;
  position: relative;
}



.footer-logo {
  color: var(--primary-bg);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo:hover {
  color: var(--accent-primary);
}

.footer-title {
  color: var(--accent-primary);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-light);
}

.footer-contact-item {
  color: var(--primary-bg);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact-item:hover {
  color: var(--accent-light);
}

.footer-contact-icon {
  margin-right: 10px;
  color: var(--accent-primary);
}

.footer-link {
  color: var(--primary-bg);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.footer-link::before {
  content: '\e5cc'; /* material icon for chevron_right */
  font-family: 'Material Icons';
  margin-right: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-light);
  padding-left: 15px;
}

.footer-link:hover::before {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--text-secondary);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  color: var(--text-secondary);
}

/* Адаптивні стилі */
@media (max-width: 991.98px) {
  .footer-section {
    padding: 60px 0 20px;
  }
  .footer-logo {
    font-size: 28px;
  }
  .footer-title {
    font-size: 16px;
  }
}
@media (max-width: 767.98px) {
  .footer-section {
    padding: 40px 0 20px;
  }
  .footer-logo {
    font-size: 24px;
  }
  .footer-title {
    margin-top: 30px;
  }
  .footer-contact-item,
  .footer-link {
    font-size: 14px;
  }
}

/* new styles  */
/* Загальні стилі */
/* The tool will handle merging this with the existing file. */

/* Assuming contact form styles from line 413 onwards might need color updates */
/* I will not touch them now to avoid breaking the form, but they should be updated eventually */
/* with the new color palette for consistency. */
/* For now, the requested changes for header, hero, and general colors are done. */
.contact-info {
  background-color: var(--accent-light);
  padding: 30px;
  border-radius: 5px;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.contact-details {
  flex: 1;
  min-width: 280px;
}
.contact-text {
  margin-bottom: 30px;
  color: var(--text-primary);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.contact-icon {
  background-color: var(--accent-primary);
  color: white;
  padding: 10px;
  border-radius: 50%;
  margin-right: 15px;
}
.contact-info-text {
  color: var(--text-secondary);
}
.contact-info-text strong {
  color: var(--text-primary);
  display: block;
}

.contact-map {
  flex: 1;
  min-width: 280px;
  background-color: var(--accent-light);
  padding: 10px;
  border-radius: 5px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 250px;
}

.contact-form {
  background-color: var(--primary-bg);
  padding: 40px;
  border-radius: 5px;
}
.form-container {
  max-width: 1100px;
  margin: auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}
.form-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}
.form-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 10px auto 0;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  height: 50px;
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 3px;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 0.2rem var(--accent-light);
}
.form-control.is-invalid {
  border-color: #dc3545;
}
.invalid-feedback {
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 0.25rem;
}
.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}
.form-select {
  height: 50px;
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 3px;
  background-position: right 15px center;
}

.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 0.2rem var(--accent-light);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.submit-btn {
  background-color: var(--accent-primary);
  color: white;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}
.submit-btn:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}
.submit-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}


@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }
  .contact-map {
    height: 300px;
  }
  .form-container {
    padding: 20px;
  }
  .form-title {
    font-size: 1.8rem;
  }
}
@media (max-width: 768px) {
  .contact-info,
  .contact-form {
    padding: 20px;
  }
  .contact-text {
    font-size: 0.9rem;
  }
  .contact-info-text {
    font-size: 0.9rem;
  }
  .form-container {
    width: 100%;
  }
  .form-subtitle {
    font-size: 0.9rem;
  }
}
@media (max-width: 576px) {
  .form-container {
    padding: 15px;
  }
  .form-title {
    font-size: 1.5rem;
  }
  .submit-btn {
    width: 100%;
  }
}