body {
  background-color: #1f4685;
}

#main_footer {
  background-color: #1f4685 !important;
  padding-top: 30px;
  padding-bottom: 30px;
}

/* Navigation menu */
.nav-wrapper {
  display: flex;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  z-index: 100;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  justify-content: space-between;
  margin: auto;
  align-items: center;
  padding: 20px;
  background-color: #1f4685 !important;
  margin-bottom: 80px;
}

.nav-wrapper ul {
  display: flex;
  list-style: none;
  font-size: 18px;
  justify-content: space-between;
  gap: 20px;
  opacity: 1;
  z-index: 9;
}

.nav-wrapper ul li {
  position: relative;
}

.nav-wrapper ul li a {
  color: #ffffff !important;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  display: block;
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* .nav-wrapper ul li a span {
  color: #ffffff !important;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  display: block;
} */

.nav-wrapper ul li a:hover {
  opacity: 0.7;
}

.nav-wrapper ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-wrapper ul li a:hover::after {
  width: 100%;
}

.nav-wrapper button {
  display: none;
  background-color: #1f4685;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

@media (max-width: 1017px) {
  #nav-mobile {
    width: 40%;
    height: 100vh;
    position: fixed;
    justify-content: flex-start;
    position: absolute;
    align-items: flex-start;
    padding-top: 20px;
    padding-left: 20px;
    top: 60px;
    left: 0;
    opacity: 0.9;
  }

  .nav-wrapper ul {
    display: none;
    flex-direction: column;
    background-color: #1f4685;
    position: absolute;
    width: 100%;
    margin-bottom: 10px;
    padding: 0;
    z-index: 10;
  }

  .nav-wrapper ul li {
    text-align: center;
    padding: 10px 0;
  }

  .nav-wrapper button {
    display: block;
  }
}

#nav_button {
  background-color: #1f4685;
  /* border: 1.5px solid #ffffff; */
  outline: none;
  /* box-shadow: 0 0 3px #ffffff; */
}

#nav_button i {
  font-size: 24px;
}

/* **************************************** */

.slider_wrapper {
  /* height: 500px; */
  /* padding-top: 80px; */
  box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14),
    0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);
  margin: auto;
  /* margin-top: 20px; */
  position: relative;
  margin-bottom: 50px;
}

.slider_wrapper .slider_images {
  height: 100%;
}

.slider_wrapper .slider_images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.slider_wrapper .slider_images img:first-child {
  display: block;
}

#about-us-image {
  border: 2px solid #ddd;
  padding: 0;
  border-radius: 5px;
}

/* Footer Styles */
.custom-footer {
  background-color: #1f4685;
  color: #ffffff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.custom-footer h5 {
  margin-bottom: 50px;
  font-size: 24px;
  font-weight: bold;
}

/* Input Fields */
/* Input and Textarea Fields */
.custom-input,
.custom-textarea {
  background-color: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #cccccc;
  border-radius: 8px !important;
  padding: 12px 15px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-textarea {
  min-height: 120px;
  resize: none;
}

.custom-input:focus,
.custom-textarea:focus {
  outline: none;
  border-color: #1f4685;
  box-shadow: 0 0 5px rgba(31, 70, 133, 0.5);
}

/* Labels */
.custom-label {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 5px;
  display: block;
}

/* Button */
.custom-button {
  background-color: #e53935;
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-button:hover {
  background-color: #b71c1c;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer Text */
.footer-copyright {
  margin-top: 20px;
  font-size: 14px;
  color: #dddddd;
}

#footer-form-button:hover {
  opacity: 0.9;
}

.send-request {
  margin-right: 12px;
}

/* Footer Styles */
.custom-footer {
  background-color: #1f4685;
  color: #ffffff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  text-align: left;
}

/* Footer Form Fields */
.custom-input,
.custom-textarea {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  margin-bottom: 15px;
}

.custom-input:focus,
.custom-textarea:focus {
  outline: none;
  border-color: #ffffff;
}

/* Footer Info Section */
.footer-info p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-info i {
  margin-right: 5px;
  vertical-align: middle;
}

/* Centered Copyright */
.footer-notice {
  margin-top: 20px;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
}

/* Social Media Icons */
.fab {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* Slider */
.slider_wrapper {
  position: relative;
  z-index: 1;
}

.overlapping-elements {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: -90px;
  z-index: 2;
  position: relative;
}

.overlapping-elements .element {
  width: 300px;
  height: 300px;
  background-color: #f5f5f5;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  text-align: start;
  border-radius: 10px;
  overflow: hidden;
}

.overlapping-elements .element i {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 30px;
  color: #1f4685;
}

.overlapping-elements .element h5 {
  margin-top: -30px;
  margin-bottom: 20px;
  margin-left: 15px;
}

.overlapping-elements .element p {
  font-size: 18px;
  color: #333;
  margin-left: 15px;
}

.overlapping-elements .element:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
  .overlapping-elements {
    margin-left: 10%;
    margin-right: 10%;
    flex-direction: column;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .overlapping-elements .element {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .overlapping-elements .element i {
    margin-right: 30px;
  }

  .overlapping-elements .element h5 {
    margin-top: 12px;
    margin-left: 55px;
    overflow-wrap: anywhere;
  }

  .overlapping-elements .element p {
    font-size: 16px;
    margin-left: 15px;
  }
}

/* Description on index.php*/
.description_details {
  width: 100%;
  background: linear-gradient(180deg, #f4f4f4, #e9e9e9);
  padding: 60px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content_wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sub_header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #242424;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  text-align: left;
}

.sub_header h1::after {
  content: "";
  display: block;
  width: 194px;
  height: 5px;
  background-color: #ff4d4d;
  margin: 10px 0 20px;
}

.description p.details_text {
  font-size: 1.3rem;
  color: #3a3a3a;
  line-height: 1.9;
  text-align: justify;
  margin: 0;
  padding: 0 10px;
}

.description_details::before {
  content: "";
  display: block;
}

/* Nase usluge */
.services_section {
  background-color: #1f4685;
  color: #ffffff;
  padding: 60px 0;
}

.services_section h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

.services_section h1::after {
  content: "";
  display: block;
  width: 290px;
  height: 4px;
  background: #ff4d4d;
  margin-top: 10px;
  margin-bottom: 10px;
  /* margin: 10px auto; */
}

.services_section .intro_text {
  font-size: 16px;
  margin-bottom: 40px;
  color: #eeeeee;
}

.service_card {
  background: #ffffff;
  color: #333333;
  height: 350px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service_card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.service_card h4 {
  font-size: 1.5rem;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #1f4685;
}

.service_card p {
  font-size: 1rem;
  line-height: 1.6;
}

.service_icon {
  width: 80px;
  margin-bottom: 15px;
}

.responsive-img {
  border-radius: 20%;
  width: 100px;
  height: 100px;
}

.services_section .btn-large {
  margin-top: 20px;
  font-size: 1.2rem;
  padding: 10px 30px;
  border-radius: 50px;
}

/* Nasa strucnost */
.expertise-section {
  background-color: #f0f0f0;
  padding: 50px 0;
}

.container {
  width: 80%;
  margin: 0 auto;
}

.section-title {
  color: #1f4685;
  text-align: left;
  font-size: 2em;
  margin-bottom: 20px;
}

.expertise-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.expertise-text {
  margin-top: -60px;
  width: 45%;
}

.expertise-bars {
  width: 45%;
}

.expertise-item {
  margin-bottom: 20px;
}

.expertise-label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.progress-bar {
  background-color: #ff4d4d;
  height: 20px;
  border-radius: 5px;
  text-align: center;
  line-height: 20px;
  color: white;
  font-weight: bold;
}

/* Partners part */
.enhanced-section {
  background-color: #1f4685;
  padding: 50px 20px;
  text-align: center;
}

.image-gallery {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.image-item img {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-item img:hover {
  transform: scale(1.1);
}

/* Kontakt deo na index.php */
.contact-section {
  background: linear-gradient(180deg, #f4f4f4, #e9e9e9);
  padding: 50px 20px;
  color: black;
}

.contact-section .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.contact-section .column {
  flex: 1;
}

.contact-section .left-column h2 {
  font-size: 32px;
  color: #1f4685;
  margin-bottom: 15px;
  font-weight: 600;
}

.contact-section .left-column p {
  font-size: 18px;
  line-height: 1.6;
}

.contact-section .right-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-button {
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
}

.contact-button:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .contact-button span {
    overflow-x: auto;
  }

  .home_service_elements {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .service_card {
    height: 250px;
  }

  .service_header {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .service_header img {
    display: inline-block;
  }

  .service_header h4 {
    margin: 0;
  }

  .expertise-text {
    margin-top: -20px;
  }
}

/* Higlighted text on about_us.php page*/
.highlight {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 70vh;
  position: relative;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.highlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-text {
  font-size: 4rem;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 10px #ffffff;
  border: 5px solid #ffffff;
  justify-items: baseline;
  padding: 10px 20px;
}

/* Gallery */
.gallery-grid {
  background-color: #eeeeee;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 20px;
}

@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-item {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #ddd;
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0000008f !important;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  /* background-color: #fff; */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 200px;
  max-width: 60%;
  max-height: 60%;
  overflow: auto;
}

@media (max-width: 1000px) {
  .modal-content {
    margin-top: 100px;
    max-width: 80%;
    max-height: 80%;
  }
}
@media (max-width: 425px) {
  .modal-content {
    margin-top: 0;
    max-width: 80%;
    max-height: 80%;
  }
}

.modal-content img {
  width: 100%;
  height: 100%;
  display: block;
  margin-bottom: 10px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Services */
#services-body {
  background-color: #eeeeee;
}

.service-section {
  margin-bottom: 100px;
}

h1 {
  color: #1f4685;
}

.gallery-item-services img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border: 2px solid #ddd;
  transition: transform 0.3s;
}

.gallery-item-services img:hover {
  transform: scale(1.05);
}

.gallery-item-services {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.service-section .gallery-services img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Kontakt */
.contact-section {
  padding: 40px;
  background-color: #f4f4f4;
  width: 100%;
}

.contact-header {
  text-align: center;
  margin-bottom: 30px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info div {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.2rem;
}

.contact-info div i {
  color: #1f4685;
  font-size: 1.5rem;
}

@media screen and (max-width: 768px) {
  .contact-info {
    display: inline-block;
  }

  .contact-info div {
    justify-content: left;
    margin: 20px;
  }
}

.map-container {
  margin-top: 40px;
  text-align: center;
}

.map-container h2 {
  margin-bottom: 20px;
  color: #1f4685;
}

iframe {
  border: 2px solid #1f4685;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  height: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer Copyright Section */
.custom-footer {
  background-color: #1f4685;
  padding-top: 30px;
  padding-bottom: 20px;
}

.custom-copyright {
  margin-top: 30px;
  padding: 20px 0;
  background-color: #1f4685;
  border-radius: 5px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-copyright p {
  color: white;
  font-weight: 300;
  font-size: 16px;
  margin: 5px 0;
}

p {
  font-size: 16px !important;
}

.footer-copyright i {
  font-style: normal;
  margin-right: 8px;
}

/* Centered Copyright Text */
.custom-copyright-text {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
}

.white-text {
  color: #ffffff;
}

.custom-label {
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
}

.custom-input,
.custom-textarea {
  background-color: #e1e1e1;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 10px;
  width: 100%;
  font-size: 14px;
  margin-bottom: 10px;
}

.custom-input:focus,
.custom-textarea:focus {
  outline: none;
  border: 1px solid #1f4685;
  box-shadow: 0 0 5px rgba(31, 70, 133, 0.6);
}

/* Styling the footer columns */
.footer-copyright .col {
  padding: 0 20px;
}

@media (max-width: 768px) {
  .footer-copyright {
    flex-direction: column;
  }

  .footer-copyright .col {
    width: 100%;
    text-align: left;
    margin-bottom: 15px;
  }

  .nav-mobile {
    display: block !important;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #242424;
    z-index: 999;
  }

  .nav-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .nav-mobile ul li {
    padding: 12px 0;
    border-bottom: 1px solid #ffffff33;
  }

  .nav-mobile ul li a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    display: block;
  }
}
