/* ==========================================================================
   FERTICO Website Styles
   Version: v1.0
   Last Updated: December 21, 2025
   Author: Original
   ========================================================================== */

/* ==========================================================================
   Table of Contents:
   1. CSS Variables & Reset
   2. Global Styles
   3. Typography
   4. Layout & Grid
   5. Navigation & Header
   6. Video Section
   7. About Section
   8. Timeline Section
   9. Brands Section
   10. Distribution Section
   11. Gallery Section
   12. Contact Section
   13. Footer
   14. Additional Components & Utilities
   15. Responsive Media Queries
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables & Reset
   ========================================================================== */

:root {
  /* Primary Colors */
  --fertico-green: #72BC23;
  --fertico-green-hover: #8DC63F;
  --fertico-dark-green: #4F9108;

  /* Gradients */
  --gradient-start: #6bc63d;
  --gradient-end: #a9d732;

  /* Common Colors */
  --white: #ffffff;
  --black: #000000;
  --gray: #6c757d;
  --light-gray: #ddd;

  /* Typography - Font Sizes (DEPRECATED) */
  /* --font-size-xs: 0.7rem;     11px */
  /* --font-size-sm: 0.875rem;   14px */
  /* --font-size-base: 0.9375rem; 15px */
  /* --font-size-md: 1rem;       16px */
  /* --font-size-lg: 1.25rem;    20px */
  /* --font-size-xl: 1.5rem;     24px */
  /* --font-size-2xl: 2rem;      32px */
  /* --font-size-title: 2rem;     32px */
  /* --font-size-search: 2.5rem; 40px */

  /* Typography - Responsive Body Font Sizes (DEPRECATED) */
  /* --body-font-size-320: 0.875rem;   14px */
  /* --body-font-size-480: 0.9375rem;  15px */
  /* --body-font-size-576: 1rem;       16px */
  /* --body-font-size-768: 1.0625rem;  17px */
  /* --body-font-size-992: 1.125rem;   18px */
  /* --body-font-size-1200: 1.25rem;   20px */
  /* --body-font-size-1400: 1.375rem;  22px */
  /* --body-font-size-1536: 1.5rem;    24px */
  /* --body-font-size-1600: 1.625rem;  26px */
  /* --body-font-size-1900: 1.75rem;   28px */
  /* --body-font-size-2200: 1.875rem;  30px */

  /* Shadows */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-quick: 0.2s ease;
  --transition-normal: 0.3s ease;
  /* rem-based typographic scale (merged) */
  --fs-xxs: 0.5rem;   /* 12px */
  --fs-xs: 0.75rem;   /* 12px */
  --fs-sm: 0.875rem;  /* 14px */
  --fs-base: 1rem;    /* 16px */
  --fs-md: 1.125rem;  /* 18px */
  --fs-lg: 1.25rem;   /* 20px */
  --fs-xl: 1.5rem;    /* 24px */
  --fs-2xl: 2rem;     /* 32px */
  --fs-search: 2.25rem; /* 36px */
}

/* Reset */
html {
  scroll-padding-top: 3.5rem;
  font-size: 100%; /* 1rem = 16px */

}

/* Fluid, clamped headings to avoid explosion on large screens */
/* h1 { font-size: clamp(2rem, 1.6rem + 3vw, 3rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 1.4rem + 2.2vw, 2.25rem); line-height: 1.1; }
h3 { font-size: clamp(1.375rem, 1.2rem + 1.6vw, 1.75rem); line-height: 1.2; }
h4 { font-size: clamp(1.125rem, 1rem + 1vw, 1.25rem); line-height: 1.3; }
h5 { font-size: var(--fs-sm); line-height: 1.3; }
h6 { font-size: var(--fs-xs); line-height: 1.3; } */

/* Adjustments for existing classes */
/* .section-title { font-size: clamp(1.5rem, 1rem + 2.5vw, 2.25rem); }
#search-overlay input { font-size: var(--fs-search); } */

html,
body {
  overflow-x: hidden;
}

/* ==========================================================================
   2. Global Styles
   ========================================================================== */

body {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;  /* 16px base font size */
  line-height: 1.8;
  /* color: var(--gray); */
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Elements */
p {
  margin: 0;
}

/* ==========================================================================
   Legal Pages (Privacy & Terms)
   ========================================================================== */

body.legal-page {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f6f7fb;
  color: #222;
}

.legal-page .policy-container {
  max-width: 900px;
  margin: 48px auto;
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.legal-page h1 {
  color: #A9D732;
  text-align: center;
}

.legal-page h2 {
  margin-top: 20px;
  color: #333;
}

.legal-page p,
.legal-page li {
  color: #444;
  line-height: 1.6;
}

/* ==========================================================================
   END Legal Pages (Privacy & Terms)
   ========================================================================== */

/* Add spacing between consecutive paragraphs: one blank line */
p + p {
  margin-top: 1rem; /* adjust to taste (1rem ≈ 16px) */
}

.d-inline-block > div + div {
  margin-top: 1rem; /* one blank line between sibling blocks */
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  transition: color var(--transition-quick);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

.section-title {
  /* font-size: var(--fs-2xl); */
  font-weight: 700;
  text-align: center;
  margin: 3rem 0;
  color: var(--fertico-green);
}

/* ==========================================================================
   4. Layout & Grid
   ======================================================================== */

/* Basic Layout Components */
.img-rounded {
  border-radius: 1rem;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   5. Navigation & Header
   ========================================================================== */

/* Navigation Base */
.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Header Background */
.gradijent {
  background: linear-gradient(to right, var(--gradient-start) 22rem, var(--gradient-end) 100%);
  min-height: auto;
}

/* Logo Styles */
.fertico-logo-box {
  display: flex;
  width: 11rem;
  background: var(--white);
  border-radius: 0;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

.fertico-logo img {
  height: 50px;
}

.navbar-brand.fertico-logo img {
  margin-top: -5px;
}

/* Navigation Links */
.navbar-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  padding-left: 1rem;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  transition: color var(--transition-quick), border var(--transition-quick);
  white-space: nowrap;
}

.navbar-nav .nav-link.active {
  border: 2px solid var(--white);
  border-radius: 20px;
  padding: 0.3rem 0.5rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #c3f7c5 !important;
  box-shadow: none;
}

/* Dropdown Menus */
.navbar-nav .dropdown-menu {
  background: linear-gradient(to right, var(--gradient-start) 0, var(--gradient-end) 100%);
}

.dropdown-item {
  color: var(--white);
}

/* Dropdown Toggle Animation */
.dropdown-toggle::after {
  transition: transform var(--transition-normal);
}

.dropdown.show>.dropdown-toggle::after,
.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* ==========================================================================
   6. Video Section
   ========================================================================== */

.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

.video-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.video-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-section video {
  width: 100%;
  /* height: auto; */
  object-fit: cover;
}

/* Overlay tekst */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
}

/* Responsive font */
.hero-text h1 {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

/* ==========================================================================
   7. About Section
   ========================================================================== */

.bg-fertico {
  background-color: var(--fertico-green) !important;
  color: var(--white);
}

.goals-text {
  padding: 0 2rem;
}

/* About Section Images */
.img-rounded {
  border-radius: 1rem;
  max-width: 100%;
  height: auto;
}

.map-iframe {
  width: 100%;
  max-width: 100%;
  height: 535px;
  border: 0;
  display: block;
}

/* ==========================================================================
   11. Gallery Section
   ========================================================================== */

/* Full Gallery View */
.gallery-full {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-full img {
  max-height: 80vh;
  width: auto;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-quick);
}

.gallery-full img:hover {
  transform: scale(1.02);
}

/* Offcanvas Menu */
.offcanvas-start,
.side-menu {
  width: 280px;
  z-index: 1050;
  background: linear-gradient(to right, var(--gradient-start) 22rem, var(--gradient-end) 100%);
}

.offcanvas .navbar-nav {
  flex-direction: column;
}

/* Offcanvas Dropdown */
.offcanvas .dropdown-menu,
.side-menu .dropdown-menu {
  position: static;
  float: none;
  background-color: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.side-menu .dropdown-menu .dropdown-item {
  padding-left: 0.5rem;
  color: var(--white);
  /* font-size: var(--fs-xl); */
}

.side-menu .dropdown-menu .dropdown-item:hover {
  color: var(--black);
}

/* Side Menu Navigation */
.side-menu .side-nav {
  flex-direction: column;
  gap: 1rem;
  /* font-size: var(--fs-xl) !important; */
}

.side-menu .nav-item.dropdown>.nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Side Menu Icons */
.side-menu .fertico-icons-box.side {
  justify-content: flex-start;
}

.side-menu-icons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-left: 1rem;
}

.side-menu-icons .dropdown-toggle::after {
  display: inline-block;
}

.quadal-image {
  width: 50% !important;
}

/* ==========================================================================
   6. Search Overlay
   ========================================================================== */

#search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

#search-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Close Button */
#search-overlay .btn-close {
  position: absolute;
  top: 40px;
  right: 40px;
  /* font-size: var(--fs-xl); */
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Search Form */
#search-overlay form {
  width: 70%;
  max-width: 700px;
  position: relative;
}

#search-overlay input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  /* font-size: var(--fs-search); */
  text-align: center;
  padding: 1rem;
  transition: border-color var(--transition-quick);
}

#search-overlay input:focus {
  outline: none;
  border-bottom-color: var(--white);
}

/* Search Results */
#searchResults {
  margin-top: 2rem;
  width: 70%;
  max-width: 700px;
  color: #ccc;
  max-height: 50vh;
  overflow-y: auto;
}

#searchResults ul {
  list-style-type: none;
  padding: 0;
}

#searchResults li a {
  color: #ccc;
  display: block;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #444;
  transition: background-color var(--transition-quick);
}

#searchResults li a:hover {
  background-color: #333;
  color: var(--white);
}

/* Stilovi za ikonice u side meniju */
.side-menu-icons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-left: 1rem;
}

.side-menu-icons .dropdown-toggle::after {
  display: inline-block;
}

/* Rotacija na otvorenom (koristiš već ovu logiku globalno, dodajem specifično i ovde da svakako radi) */
.side-menu .dropdown .dropdown-toggle[aria-expanded="true"]::after,
.side-menu-icons .dropdown .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Stil za liniju u futeru */
.footer-hr {
  height: 1px;
  background: #6bc63d;
}

/* ==========================================================================
   8. Timeline Section
   ========================================================================== */

/* Timeline Container */
.timeline {
  position: relative;
  padding: 0 1rem;
}

#more-timeline {
  display: none;
}

/* Timeline Items */
.timeline-item {
  position: relative;
  width: 50%;
  background-color: var(--fertico-green);
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 2rem;
}

/* Timeline Content */
.timeline-content {
  display: flex;
  min-height: 100px;
  color: var(--white);
  flex: 1;
  padding: 1rem;
  position: relative;
  align-items: center;
}

/* Timeline Year */
.timeline-year {
  flex-shrink: 0;
  padding: 1rem;
  min-width: 100px;
  flex: 0 0 120px;
  color: var(--white);
  background-color: var(--fertico-dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.btn {
  color: #ffffff !important
}

.btn-rounded {
  border-radius: 36px;
  background-color: var(--fertico-green);
  border: none;
}

.btn-rounded:hover {
  background-color: var(--fertico-green-hover);
}

/* ==========================================================================
   10. Brand Section
   ========================================================================== */

/* Organization Chart Container */
.org-chart-container {
  position: relative;
  padding-bottom: 5rem;
  z-index: 1;
}

/* Logo Box Container */
.logo-box {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 3rem;
}

/* Logo Box Inner Style */
.logo-box-inner {
  border: 2px solid var(--fertico-green);
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  width: 100%;
}

/* Logo Box Hover Effect */
.logo-box:hover .logo-box-inner {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* Logo Image */
.logo-box img {
  max-width: 100%;
  height: auto;
}

/* Brand Logo - Not Used */


/* ==========================================================================
   11. Carousel Component
   ========================================================================== */

/* Custom Carousel Base */
#customCarousel .carousel-inner {
  overflow: visible;
}

/* Carousel Item Transition */
#customCarousel .carousel-item {
  transition: transform var(--transition-normal);
}

/* Carousel Controls Positioning */
.carousel-control-prev,
.carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0.8;
  transition: opacity var(--transition-quick);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Carousel Control Icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--fertico-green);
  background-size: 60% 60%;
  border-radius: 50%;
  transition: background-color var(--transition-quick);
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: var(--fertico-green-hover);
}

.fertico-menu-box {
  display: flex;
  flex: 1;
  background: linear-gradient(to right, #6bc63d 22rem, #a9d732 100%);
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
}

.fertico-icons-box {
  justify-content: center;
}

/* Icon Link */
.fertico-icon-link {
  /* font-size: var(--fs-xl); */
  color: var(--white);
}

.fertico-icon-link:hover {
  color: #d9ffd9;
}

.side {
  justify-content: start;
}

/* Chart (osnovno ponašanje za mobilne) */
.chart-row {
  margin-top: 0;
  position: relative;
}

.chart-row .col-lg-4 {
  margin: 0.3rem 0;
}

/* ==========================================================================
   12. Awards & Certifications Section
   ========================================================================== */

/* Certification Section Base */
.certification-section {
  padding: 1.5rem 0;
}

.certification-section:last-child {
  border-bottom: none;
}

/* Certification Images */
.certification-img {
  width: 80%;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

/* Certification Content */
.certification-text {
  padding: 0.625rem;
}

.certification-title {
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   13. Research & Development Section
   ========================================================================== */

/* Background Images */
.rd-background-image,
.rdd-background-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.rd-background-image {
  background-image: url('assets/backgrounds/laboratory.webp');
}

.rdd-background-image {
  background-image: url('assets/backgrounds/travnjak.webp');
}

/* Content Wrapper */
.rd-content-wrapper {
  position: relative;
  width: 100%;
  padding: 3rem 1rem;
}

/* Text Area */
.rd-text-area {
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer Card */
.rd-footer-card {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  background-color: var(--fertico-green);
}

/* Card Header */
.rd-header-row {
  background-color: var(--fertico-green);
  color: var(--white);
}

/* Card Content */
.rd-split-row {
  flex-direction: column;
  background-color: var(--white);
}

/* Divider */
.rd-vertical-divider {
  width: 100%;
  height: 1px;
  background-color: var(--light-gray);
}

/* Segment Text */
.rd-segment-text {
  white-space: normal;
  text-align: center;
}

/* Section Spacing */
/* #quality,
#gallery {
  margin: 0 auto 5rem;
} */

/* ---------------------------------- SCROLL TO TOP BUTTON ----------------------------------*/

#scrollToTopBtn {
  position: fixed;
  cursor: pointer;
  right: 1rem;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  /* font-size: var(--fs-md); */
  border-radius: 50%;
  border: none;
  background: #A9D732;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  color: #fff;
  z-index: 999;
  transition: all 0.1s ease;
}

#scrollToTopBtn:hover {
  background-color: var(--fertico-green-hover);
  transform: scale(1.1);
  filter: brightness(0.95);
}

/* ------------------------------------- GDPR -----------------------------------------*/

#cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #222;
  color: #fff;
  /* text-align: center; */
  padding: 15px;
  z-index: 1000;
}

#cookie-banner a {
  color: var(--fertico-green);
}

#cookie-banner button {
  cursor: pointer;
  /* margin-left: 10px; */
  padding: 8px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: transparent;
}

#cookie-banner button:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--fertico-green-hover);
}

#cookie-banner .cb-btn.primary {
  background: #A9D732;
  color: #111;
  border: none;
}

/* ------------------------------------- GDPR - NOVO -----------------------------------------*/

#cookie-settings-modal {
  position: fixed;
  display: none;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

#cookie-settings {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  width: 100%;
  max-width: 720px;
  padding: 18px;
  background: #fff;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.settings-actions {
  display: flex;
  margin-top: 14px;
  justify-content: flex-end;
  gap: 10px;
}

.settings-actions button {
  cursor: pointer;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
}

.settings-actions #cs-save {
  background: #A9D732;
  color: #111;
}

/* ---------------------------------- Footer Styles ----------------------------------*/

/* Generalni stilovi za Footer */
.fertico-footer {
  background-color: #ffffff;
  color: #6c757d;
}

.fertico-footer .text-success {
  color: var(--fertico-green) !important;
}

.fertico-footer .footer-link {
  color: #6c757d;
  transition: color 0.2s;
}

.fertico-footer .footer-link:hover {
  color: var(--fertico-green-hover);
}

/* Stil za ikone društvenih mreža */
.social-icon {
  color: var(--fertico-green);
  font-size: var(--fs-lg);
  transition: color 0.2s;
}

.social-icon:hover {
  color: var(--fertico-green-hover);
}

/* --- Sertifikati (Gornji Desni Deo) --- */

/* Osnovni wrapper za celu grupu (služi samo za flex raspored) */
.certificate-wrapper1 {
  position: relative;
  z-index: 1;
}

/* Stil za pojedinačni omotač sertifikata (zastavica) */
.certificate-flag-item1 {
  background-color: #A9D732;
  padding: 1rem 1.5rem 3rem 1.5rem;

  /* DEFINICIJA POLIGONA ZA OBLIK ZASTAVICE (ŠPICA) */
  clip-path: polygon(0% 0%,
      100% 0%,
      100% 75%,
      50% 100%,
      0% 75%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 180px;
  width: 150px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

/* Slika unutar omotača */
.footer-certificate {
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}

/* Stil za logotipe u gornjem redu */
.footer-logo {
  max-height: 100px;
}

/* ==========================================================================
   12. Contact Section
   ========================================================================== */

/* Map Container */
.map-container {
  overflow: hidden;
  border: 2px solid var(--fertico-green);
  text-align: center;
}

/* Contact Form */
#contactForm {
  border: 2px solid var(--fertico-green);
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

/* Form Controls */
#contactForm .form-control {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

#contactForm .form-control:focus {
  border-color: var(--fertico-green);
  box-shadow: 0 0 5px rgba(114, 188, 35, 0.3);
  outline: none;
}

/* Form Button */
#contactForm button {
  background-color: var(--fertico-green);
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 2rem;
  font-weight: 600;
}

#contactForm button:hover {
  background-color: var(--fertico-green-hover);
}

/* ==========================================================================
   14. Additional Components & Utilities
   ========================================================================== */

.custom-btn-xl {
  padding: 1rem 2rem;
  /* font-size: var(--fs-lg); */
}

.icons-dropdown {
  background: linear-gradient(to right, #6bc63d 0, #a9d732 100%);
}

.search-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  pointer-events: all;
}

.search-overlay input[type="text"],
.search-overlay input[type="search"] {
  z-index: 1001;
  position: relative;
  pointer-events: auto;
}

#imageGalleryModal .text-light {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* CSS za tooltip na mapi */
.pin-tooltip {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* OVO PRAVILO SE MENJA: :hover se menja u .hover-active */
.pin-group.hover-active .pin-tooltip {
  visibility: visible;
  opacity: 1;
}

.tooltip-bg {
  fill: rgba(0, 0, 0, 0.75);
  stroke: white;
  stroke-width: 1px;
}

/* Tooltip Text */
.tooltip-text {
  font-family: sans-serif;
  font-size: var(--fs-xxs);
  fill: white;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Rotacija postojeće Bootstrap strelice na otvorenim dropdownima */
.dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.dropdown.show>.dropdown-toggle::after,
.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* ===============================================
   Stilovi za partner-logo bez inline stilova i galerijske slike
   =============================================== */
.partner-logo {
  background-color: #fff;
  height: 122px;
  border: 2px solid var(--fertico-green);
  border-radius: var(--bs-border-radius-xl) !important;
  margin: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: inline-block;
}

.partner-logo:hover,
#gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--fertico-green-hover);
  /* border-color: #5ea81b; */
}

#gallery img {
  border: 2px solid var(--fertico-green);
  border-radius: var(--bs-border-radius-xl) !important;
  /* margin: 1rem; */
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: inline-block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* -------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* --------------------------------------------- RESPONSIVE SYSTEM — modern breakpoints (mobile-first pristup) -------------------------------------------- */
/* -------------------------------------------------------------------------------------------------------------------------------------------------------- */

/* ==========================================================================
   15. Responsive Media Queries
   ========================================================================== */

/* ---------------------------------------------------
   ≥320px ( Mali telefoni )
--------------------------------------------------- */
@media (min-width: 320px) {

  .py-5 {
    padding: 0 !important;
  }

  .certificate-wrapper1 {
    max-width: 100%;
    gap: 0.5rem !important;
  }

  .px-4 {
    padding: 0 !important;
  }

  .timeline::after {
    display: none;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    width: 100%;
    margin-bottom: 1rem;
  }

  /* Godina se prikazuje kao običan tekst iznad sadržaja */
  .timeline-year {
    position: static;
    transform: none;
    text-align: left !important;
  }

  .timeline-item.left .timeline-year,
  .timeline-item.right .timeline-year,
  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    order: initial;
    border-radius: 0.5rem 0 0 0.5rem;
  }

  /* Uklanja strelice (trouglove) sa balončića */
  .timeline-content::before {
    display: none;
  }

  /* Centriranje svih elemenata na manjim ekranima */
  .fertico-footer .row>div {
    text-align: center !important;
  }

  /* DODATO: Lista zemalja u jednoj koloni na manjim ekranima */
  #countries .col-6 {
    width: 100%;
    flex: 0 0 100%;
  }

  .rd-segment {
    padding: 1rem;
  }

  .partner-logo {
    height: 5rem;
    width: auto;
  }

  .certificate-flag-item1 {
    width: 110px;
    height: 150px;
    padding: 0rem 0.5rem 2.5rem 0.5rem;
  }
}

/* ---------------------------------------------------
   ≥480px ( Mali telefoni )
--------------------------------------------------- */
@media (min-width: 480px) {

  /* body { font-size: var(--body-font-size-480); }  <-- disabled: use root rem scale */

  .fertico-logo-box {
    width: 12rem;
  }

  .partner-logo {
    height: 5rem;
    width: auto;
  }

  .certificate-wrapper1 {
    gap: 1rem !important;
  }

  .certification-img {
    width: 50%;
  }

  .chart-row .col-lg-4 {
    margin: 1rem 0;
  }

  .quadal-image {
    width: 40% !important;
  }

}

/* ---------------------------------------------------
   ≥576px ( Mali telefoni )
--------------------------------------------------- */
@media (min-width: 576px) {


}

/* ---------------------------------------------------
   ≥768px ( Tableti )
--------------------------------------------------- */
@media (min-width: 768px) {

  /* body { font-size: var(--body-font-size-768); }  <-- disabled: use root rem scale */

  .rd-segment {
    padding: 1rem;
  }

  .map-container iframe {
    height: 300px;
    text-align: center;
  }

  .certification-img {
    width: 80%;
  }

  .quadal-image {
    width: 60% !important;
  }
}

/* ---------------------------------------------------
   ≥992px (TABLET / SMALL LAPTOP)
--------------------------------------------------- */
@media (min-width: 992px) {

  html {
    scroll-padding-top: 5.5rem;
  }

  /* body { font-size: var(--body-font-size-992); }  <-- disabled: use root rem scale */

  .gradijent {
    min-height: 70px;
  }

  .fertico-logo-box {
    width: 15rem;
  }

  /* Horizontalne i vertikalne linije za chart */
  .chart-row-middle::before,
  .chart-row-bottom::before {
    content: '';
    position: absolute;
    background-color: var(--fertico-green);
    height: 2px;
    left: calc(100% / 12 * 2);
    width: calc(100% / 12 * 8);
    top: 80px;
    z-index: 0;
  }

  .has-connector-down::after {
    content: '';
    position: absolute;
    background-color: var(--fertico-green);
    width: 2px;
    height: 20px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
  }

  .has-connector-up::before {
    content: '';
    position: absolute;
    background-color: var(--fertico-green);
    width: 2px;
    height: 20px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Stil za liniju u futeru */
  .footer-hr {
    margin: -10px 0;
  }

  .footer-logo {
    max-height: 75px;
  }

  .timeline {
    padding: 0 5rem;
  }

  .timeline::after {
    display: block;
    content: '';
    position: absolute;
    width: 4px;
    background-color: #4F9108;
    top: 0;
    bottom: -5rem;
    left: 50%;
    margin-left: -2px;
  }

  .timeline-item {
    width: 50%;
    margin-bottom: 2rem;
  }

  /* Dodaj "tačku" na kraj linije */
  .timeline::before {
    display: block;
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    left: 50%;
    bottom: -6rem;
    transform: translateX(-50%);
    background: radial-gradient(circle,
        #4F9108 0%,
        #72BC2380 50%,
        #72BC23 100%);
    box-shadow: 0 0 10px rgba(79, 145, 8, 1.5);
    background-color: var(--fertico-green);
    z-index: 1;
  }

  #keepReadingBtn {
    margin-top: 4rem;
  }

  .timeline-item.right {
    left: 50%;
  }

  .timeline-item.left::after {
    left: auto;
    right: -10px;
  }

  .timeline-item.right::after {
    left: -10px;
  }

  .timeline-item.left .timeline-year {
    order: 2;
    border-radius: 0.5rem 0 0 0.5rem;
  }

  .timeline-item.left .timeline-content {
    order: 1;
  }

  .timeline-item.right .timeline-year {
    order: 1;
    border-radius: 0 0.5rem 0.5rem 0;
  }

  .timeline-item.right .timeline-content {
    order: 2;
  }

  .rd-segment {
    padding: 0.5rem !important;
  }

  .fertico-footer .row>div {
    text-align: left !important;
  }

  #countries .col-6 {
    width: 50%;
    flex: 0 0 50%;
  }

}

/* ---------------------------------------------------
   ≥1200px (DESKTOP)
--------------------------------------------------- */
@media (min-width: 1200px) {

  .fertico-logo-box {
    width: 12rem;
  }

  .navbar-nav {
    gap: 0.4rem;
  }

  /* Hover dropdown aktivan samo za desktop */
  .navbar-nav .nav-item.dropdown:hover>.dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .navbar-nav .nav-item.dropdown>.dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .fertico-icons-box {
    width: 8rem;
  }

  /* Horizontalne i vertikalne linije za chart */
  .chart-row-middle::before,
  .chart-row-bottom::before {
    top: 92px;
  }

  .has-connector-down::after {
    content: '';
    position: absolute;
    background-color: var(--fertico-green);
    width: 2px;
    height: 20px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
  }

  .has-connector-up::before {
    content: '';
    position: absolute;
    background-color: var(--fertico-green);
    width: 2px;
    height: 20px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
  }

  .certification-img {
    width: 40%;
  }

  .footer-logo {
    max-height: 90px;
  }

  .quadal-image {
    width: 35% !important;
  }

  .rd-split-row {
    flex-direction: row;
    align-items: center;
  }

  .rd-split-row .rd-segment {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
    padding: 1rem;
  }

  .rd-vertical-divider {
    flex-shrink: 0;
    width: 1px;
    height: auto;
    align-self: stretch;
    margin: 0 1rem;
  }

}

/* ---------------------------------------------------
   ≥1400px (LARGE DESKTOP)
--------------------------------------------------- */
@media (min-width: 1400px) {

  .navbar-nav {
    gap: 1rem;
  }

  .fertico-logo-box {
    width: 15rem;
  }

  .fertico-icons-box {
    width: 9rem;
  }

  /* Horizontalne i vertikalne linije za chart */
  .chart-row-middle::before,
  .chart-row-bottom::before {
    top: 110px;
  }

}

/* ---------------------------------------------------
   ≥1536px (Extra Large Desktop)
--------------------------------------------------- */
@media (min-width: 1536px) {

  .navbar-nav {
    gap: 2rem;
  }

  .fertico-icons-box {
    width: 10rem;
  }

  /* Horizontalne i vertikalne linije za chart */
  .chart-row-middle::before,
  .chart-row-bottom::before {
    top: 120px;
  }

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1440px;
  }
}

/* ---------------------------------------------------
   ≥1600px (WIDE SCREEN / UHD)
--------------------------------------------------- */
@media (min-width: 1600px) {

  .fertico-icons-box {
    width: 11rem;
  }

  .footer-logo {
    max-height: 100px;
  }

  .certificate-wrapper1 {
    max-width: 100%;
    gap: 0.5rem !important;
    flex-wrap: wrap;
    gap: 1rem !important;
  }

  .certificate-flag-item1 {
    height: 180px;
    width: 150px;
    padding: 1rem 1.5rem 3rem 1.5rem;
  }

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1500px;
  }

}

/* ---------------------------------------------------
   ≥1920px (Ultra široki monitori (21:9, 4K ultrawide))
--------------------------------------------------- */
@media (min-width: 1900px) {

  .fertico-icons-box {
    width: 12rem;
  }
  /* Horizontalne i vertikalne linije za chart */
  .chart-row-middle::before,
  .chart-row-bottom::before {
    top: 130px;
  }

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1680px;
  }
}

/* ---------------------------------------------------
   ≥1920px (Standardni 4K monitori)
--------------------------------------------------- */
@media (min-width: 1920px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1800px;
  }

  .fertico-icons-box {
    width: 13rem;
  }
}

/* ---------------------------------------------------
   ≥2200px (Veoma veliki monitori ili TV prikaz)
--------------------------------------------------- */
@media (min-width: 2200px) {

  .fertico-icons-box {
    width: 14rem;
  }
  
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1980px;
  }

}

/* ---------------------------------------------------
   STYLE.CSS - THE END
--------------------------------------------------- */
.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  /* ceo ekran po visini */
  overflow: hidden;
  /* odseci višak */
}

.video-section iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* nateraj iframe da pokrije ceo blok */
  min-width: 100%;
  min-height: 100%;
  width: 177.78vh;
  /* 16:9 => 100 * (16/9) */
  height: 100vh;
  transform: translate(-50%, -50%);
  border: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Div koji sedi iznad iframa i “jede” klikove */
.video-click-blocker {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  /* default, ali eksplicitno naglašeno */
}
.video-click-blocker .hero-cta {
  pointer-events: auto;
}