/*--------------------------------------------------------------

# General

--------------------------------------------------------------*/

.custom-red {
  background-color: #ef232d !important; /* Your custom red color */
}


body {

  font-family: "Open Sans", sans-serif;

  color: #444444;

}








h1,

h2,

h3,

h4,

h5,

h6 {

  font-family: "Roboto", sans-serif;

}



/*--------------------------------------------------------------

# Preloader

--------------------------------------------------------------*/

#preloader {

  position: fixed;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  z-index: 9999;

  overflow: hidden;

  background: #5e5b5d;

}



#preloader:before {

  content: "";

  position: fixed;

  top: calc(50% - 30px);

  left: calc(50% - 30px);

  border: 6px solid #950518;

  border-top-color: #251e21;

  border-radius: 50%;

  width: 60px;

  height: 60px;

  animation: animate-preloader 1s linear infinite;

}



@keyframes animate-preloader {

  0% {

    transform: rotate(0deg);

  }



  100% {

    transform: rotate(360deg);

  }

}



/*--------------------------------------------------------------

# Back to top button

--------------------------------------------------------------*/

.back-to-top {

  position: fixed;

  visibility: hidden;

  opacity: 0;

  right: 15px;

  bottom: 15px;

  z-index: 996;

  background: #950419;

  width: 40px;

  height: 40px;

  border-radius: 4px;

  transition: all 0.4s;

}



.back-to-top i {

  font-size: 28px;

  color: #fff;

  line-height: 0;

}



.back-to-top:hover {

  background: #950019;

  color: #fff;

}



.back-to-top.active {

  visibility: visible;

  opacity: 1;

}



/*--------------------------------------------------------------

# Disable aos animation delay on mobile devices

--------------------------------------------------------------*/

@media screen and (max-width: 768px) {

  [data-aos-delay] {

    transition-delay: 0 !important;

  }

}





/*--------------------------------------------------------------

# Sections General

--------------------------------------------------------------*/

section {
  padding: 60px 0;
  overflow: hidden;
}


.section-bg {
  background-color: #f6f9fe;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  color: #ef232d; 
}

.section-title-icon{
  width: auto;   
  height: 32px; 
}

.section-title h2 {
  font-size: 23px;
  font-weight: 700;
  padding: 0;
  margin: 0;
  color: #dc3545;
  display: inline-flex; /* Keep this to align image and text */
  align-items: center; /* Vertically align image and text */
  text-transform: capitalize;
}


.section-title p {
  margin: 15px auto 0 auto;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .section-title p {
    width: 50%;
  }
}





/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/
#topbar {
  background: #202c45; /* Dark background color from the image */
  height: 40px; /* Adjust height as needed */
  font-size: 14px;
  transition: all 0.5s;
  color: #fff; /* White text color */
  padding: 0px;
}

#topbar .contact-info i {
  font-style: normal; /* To remove italic from icon text */
  color: #fff; /* White icons */
}

#topbar .contact-info i a {
  color: #fff; /* White link text */
  padding-left: 5px; /* Spacing between icon and text */
}

#topbar .social-links a {
  color: #fff; /* White social icons */
  font-size: 16px;
  display: inline-block;
  line-height: 1;
  margin-left: 20px;
  transition: 0.3s;
}

#topbar .social-links a:hover {
  color: rgba(255, 255, 255, 0.7); /* Lighter on hover */
}

/* Hide social links by default on larger screens, display contact info */
@media (min-width: 768px) { /* Adjust breakpoint as needed, common for tablets/desktops */
  #topbar .social-links {
    display: flex !important; /* Ensure social links are visible on desktop */
  }
  #topbar .contact-info {
    display: flex !important; /* Ensure contact info is visible on desktop */
  }
}


/* Mobile view adjustments (max-width: 767px or less) */
@media (max-width: 767px) { /* Adjust breakpoint as needed, common for phones */
  #topbar .contact-info {
    display: none !important; /* Hide contact info on mobile */
  }
  #topbar .social-links {
    width: 100%; /* Make social links take full width */
    justify-content: center; /* Center social icons on mobile */
    display: flex !important; /* Ensure social links are displayed on mobile */
  }
   #topbar .container {
    justify-content: center !important; /* Center content in the container on mobile */
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  /* No position: fixed here unless you want it to scroll with the page,
     but the image implies a static header below the top bar */
  background-color: #fff; /* White background */
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  padding: 15px 0; /* Adjust vertical padding as needed for height */
  display: flex; /* Ensure it's a flex container for alignment */
  align-items: center; /* Vertically align content */
  height: auto; /* Allow height to adjust based on content */
  position: relative; /* If you add fixed-top later, this might change */
  z-index: 997; /* Ensure it's above other content */
}

/* If you want a fixed header that becomes sticky when scrolling down: */
#header.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 0; /* Smaller padding when fixed/scrolled */
  transition: padding 0.3s, background-color 0.3s, box-shadow 0.3s;
}

#header.scrolled {
  background: #fff; /* Still white when scrolled */
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

#header .logo {
  font-size: 30px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.8px;
  font-family: "Poppins", sans-serif;
}

#header .logo a {
  color: #222222; /* Keep logo text color dark */
}

#header .logo a span {
  color: #0726a8; /* Keep span color as is if it applies to your logo */
}

#header .logo img {
  width: 140px; /* Adjust as needed */
  max-height: 140px; /* Adjust as needed */
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  
}

.logo-wrapper .main-logo {
  max-height: 60px;
  width: 140px; /* Adjust as needed */
}

.logo-wrapper .powered-by img {
  max-height: 30px;
  opacity: 0.8;
  margin-top: 5px;
}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
/* Navbar Styling */
.navbar {
  padding: 0;
  background: transparent; /* Transparent background */
  display: flex;
  justify-content: flex-end; /* Align items to the right */
  align-items: center;
  flex-grow: 1; /* Allow navbar to take available space */
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar > ul > li {
  white-space: nowrap;
  padding: 0 10px; /* Adjust padding between links as needed */
}

.navbar a {
  color: #1f3061; /* Dark text color for links */
  font-size: 16px;
  font-weight: 600;
  padding: 8px 15px; /* Padding inside links */
  text-decoration: none;
  border-radius: 0; /* No rounded corners for the general links */
  transition: color 0.3s; /* Only transition color on hover */
  position: relative; /* For the active/hover bottom border effect */
}

/* Active Link Style (red underline) */
.navbar .active {
  color: #dc3545; /* Red color for active link */
}

.navbar .active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px; /* Adjust position relative to the text */
  width: 100%;
  height: 2px; /* Thickness of the underline */
  background-color: #dc3545; /* Red underline color */
}

/* Hover Effect */
.navbar a:hover {
  color: #dc3545; /* Red color on hover */
  background: transparent; /* No background change on hover */
}

.navbar a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px; /* Adjust position relative to the text */
  width: 100%;
  height: 2px; /* Thickness of the underline */
  background-color: #dc3545; /* Red underline color */
}


/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #1f3061; /* Dark color for mobile toggle on white background */
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.scrolled {
  color: #1f3061;
}

.mobile-nav-toggle.bi-x {
  color: #1f3061;
}


@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }

  /* **UPDATED RULE FOR MOBILE NAV UNDERLINE** */
  .navbar-mobile .active::after,
  .navbar-mobile a:hover::after {
    display: none !important; /* Force hide the underline for active and hover states */
  }

  /* Ensure text-decoration: none is also applied to the links themselves in mobile */
  .navbar-mobile a {
    text-decoration: none;
  }
}


.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9); /* Lighter background for mobile menu */
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #222222;
}

.navbar-mobile > ul > li {
  padding: 0;
}

.navbar-mobile a:hover:before,
.navbar-mobile li:hover > a:before,
.navbar-mobile .active:before {
  visibility: hidden;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: #dc3545; /* Red color for active/hover in mobile */
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover > a {
  color: #dc3545;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}






/* Custom CSS to fix horizontal dropdown */
.navbar .dropdown-menu {
  display: none; /* Hide the dropdown by default */
  position: absolute; /* Position it relative to the parent dropdown li */
  background-color: #fff; /* White background */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Add a subtle shadow */
  border: none; /* Remove default border */
  border-radius: 8px; /* Add some rounded corners */
  padding: 10px 0;
  min-width: 200px;
  top: 100%; /* Position it directly below the "Proizvodi" link */
  left: 0;
  z-index: 1000;
}

.navbar .dropdown:hover .dropdown-menu {
  display: block; /* Show the dropdown menu on hover */
}

/* Ensure dropdown items stack vertically */
.navbar .dropdown-menu li {
  display: block;
}

.navbar .dropdown-menu .dropdown-item {
  font-weight: 400; /* Adjust font weight */
  color: #555;
  padding: 8px 20px;
  transition: background-color 0.2s ease;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #dc3545;
}



.navbar .dropdown-toggle::after {
  display: none !important;
}


.navbar .dropdown-item:hover::after {
  content: "";
  position: absolute;
  left: -25%;
  bottom: 0;      /* Position at the bottom of the item */
  width: 75%;     /* Decrease underline width to 50% */
  height: 2px;    /* Thickness */
  background-color: #dc3545;
  transform: translateX(50%); /* Center the shorter underline */
}






/*--------------------------------------------------------------
# Projekti
--------------------------------------------------------------*/


/* --- Projekti Section Styling --- */
.projekti {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
    background-color: #f8f8f8;
}

.projekti .section-header {
    text-align: center;
    padding-bottom: 30px;
}

.projekti .section-header .koje-usluge {
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    margin: 0 0 5px 0;
    color: #888;
    text-transform: uppercase;
}

.projekti .section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

/* --- Swiper Carousel Specific Styling --- */
.projects-slider {
    width: 100%;
    height: auto;
    min-height: 350px;
    margin: 0 auto;
    padding-bottom: 50px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
}

.projects-slider .swiper-wrapper {
    align-items: center;
}

.projects-slider .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease; /* Added for smooth scaling */
}

/* New CSS rule for the active (centered) slide */
.projects-slider .swiper-slide-active {
    transform: scale(1.1); /* Makes the active slide 10% bigger */
}

/* --- Project Item Styling (the clickable box) --- */
.projects-slider .project-item {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.projects-slider .project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projects-slider .project-item:hover img {
    transform: scale(1.05);
}

/* --- Project Details Overlay Styling --- */
.projects-slider .project-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.9em;
}

.projects-slider .project-item:hover .project-details {
    transform: translateY(0%);
}

.projects-slider .project-details h4 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #fff;
}

.projects-slider .project-details span {
    font-size: 0.9em;
    font-style: italic;
    color: #bbb;
    margin-bottom: 5px;
}

.projects-slider .project-details p {
    font-size: 0.8em;
    margin-bottom: 0;
    color: #ddd;
}

/* --- Swiper Pagination (dots) --- */
.projects-slider .swiper-pagination-bullet {
    background-color: #999;
    opacity: 1;
}

.projects-slider .swiper-pagination-bullet-active {
    background-color: #your_primary_color;
}

/* --- Responsive adjustments --- */
@media (max-width: 991px) {
    .projects-slider .project-item img {
        height: 200px;
    }
    .projects-slider {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .projects-slider .project-item img {
        height: 180px;
    }
    .projects-slider {
        min-height: 250px;
    }
    .projects-slider .project-details {
        padding: 10px;
        font-size: 0.8em;
    }
    .projects-slider .project-details h4 {
        font-size: 1em;
    }
}








/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.footer {
  background-color: #1a1a1a; /* Overall dark background for the footer */
  color: #ccc;
  font-size: 15px;
}

/* Footer Top Bar Styles (Contact Info & Social Links) */
.footer .footer-top-bar {
  background-color: #111111; /* Slightly darker background for the very top bar */
  color: #eee;
  font-size: 14px;
}

.footer .footer-top-bar .footer-contact-info-top i {
  color: #d9232d; /* Red icon color for contact info */
  margin-right: 5px;
}

.footer .footer-social-links-top a {
  display: inline-block;
  background: #333; /* Darker background for social icons */
  color: #eee;
  line-height: 1;
  padding: 8px 0;
  margin-left: 4px; /* Space between social icons */
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  font-size: 18px; /* Bootstrap Icons might need slight adjustment here if default size is different */
  text-decoration: none; /* Remove default underline */
}

.footer .footer-social-links-top a:hover {
  background: #d9232d; /* Red on hover */
  color: #fff;
}

/* Main Footer Content Area (Logo, Links, Newsletter) */
.footer .footer-info h3 { /* Style for the "NorrLux" title */
  font-size: 28px;
  margin: 0 0 10px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.footer .footer-info .description {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.footer .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  color: #ccc;
}

.footer h4 { /* Common style for all section headings like "Korisni linkovi" */
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* Underline for H4 titles */
.footer h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #d9232d; /* Red line */
}

.footer .footer-links ul {
  padding: 0;
  list-style: none;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex; /* Use flex for icon alignment */
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul li a {
  color: #ccc;
  text-decoration: none; /* No default underline */
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul li a:hover {
  color: #d9232d;
  padding-left: 8px; /* Slight movement on hover */
}

.footer .footer-links ul i {
  font-size: 12px; /* Bootstrap Icons might need slight adjustment here if default size is different */
  line-height: 0;
  margin-right: 10px;
  color: #d9232d; /* Red icon color */
}
.footer .footer-newsletter p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 20px;
  }

  .footer .footer-newsletter form.newsletter-form {
    margin-top: 30px;
    background: #fff;
    padding: 6px 10px;
    position: relative;
    border-radius: 50px;
    display: flex; /* Use flexbox for input and button alignment */
    transition: all 0.5s ease-in-out; /* Added transition for hiding effect */
  }

  /* Class to hide the form with animation */
  .footer .footer-newsletter form.newsletter-form.hidden {
    opacity: 0;
    transform: translateY(-20px); /* Move it up slightly as it fades */
    height: 0; /* Collapse height */
    padding: 0;
    margin-top: 0;
    overflow: hidden; /* Hide content during collapse */
    visibility: hidden; /* Ensure it's not interactive */
  }

  .footer .footer-newsletter form.newsletter-form input[type="email"] {
    border: 0;
    padding: 4px 8px;
    flex-grow: 1; /* Allow email input to grow */
    background: #fff;
    color: #333;
    outline: none; /* Remove outline on focus */
  }

  .footer .footer-newsletter form.newsletter-form .submit-btn {
    border: 0;
    background: none;
    font-size: 16px;
    padding: 8px 20px; /* Adjust padding for button */
    background: #d9232d; /* Red button */
    color: #fff;
    transition: 0.3s;
    border-radius: 50px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin-left: 10px; /* Space between input and button */
    /* Added flexbox for internal span centering */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px; /* Ensure button doesn't shrink too much */
  }

  .footer .footer-newsletter form.newsletter-form .submit-btn:hover {
    background: #ac1b24; /* Darker red on hover */
  }

  /* Style for the temporary loading state */
  .footer .footer-newsletter form.newsletter-form .submit-btn.loading {
    background: #ac1b24; /* Keep it dark while loading */
    cursor: default;
  }

  /* Success message styles */
  .footer .footer-newsletter .newsletter-success {
    opacity: 0;
    transform: translateY(20px); /* Start slightly below its final position */
    transition: all 0.5s ease-in-out; /* Animation for showing */
    visibility: hidden; /* Hide the element completely initially */
    color: #fff;
    text-align: center;
    margin-top: 20px; /* Space above the message */
  }

  .footer .footer-newsletter .newsletter-success.visible {
    opacity: 1;
    transform: translateY(0); /* Move to final position */
    visibility: visible;
  }

/* Bottom Copyright Section */
.footer .footer-bottom {
  border-top: 1px solid #333; /* Lighter border than main background */
  font-size: 14px;
}

.footer .footer-bottom a {
    color: #ef232d; /* Red link color */
    text-decoration: none;
}
.footer .footer-bottom a:hover {
    text-decoration: underline;
}
