/* =========================================
   GALLERY PAGE STYLES (FINALNA VERZIJA)
   ========================================= */

/* --- PAGE HEADER --- */
.page-header {
  background: url('../assets/images/hero/slide2.jpg') no-repeat center center/cover;
  height: 350px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-bottom: 60px;
}

.page-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 34, 68, 0.75);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.breadcrumb {
  font-size: 16px;
  color: #ccc;
}

.breadcrumb a {
  color: #fff;
  font-weight: 500;
}

/* --- GALLERY GRID --- */
.gallery-section {
  padding-bottom: 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 300px;
  background-color: #000;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.95;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 1;
}

/* --- CTA SECTION (OVO JE FALILO) --- */
.cta-section {
  background-color: #f4f7fa;
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid #e1e5ea;
  margin-top: 40px;
}

.cta-content h2 {
  color: #1a2b4c;
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 700;
}

.cta-content p {
  color: #666;
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-size: 16px;
}

/* Dugme na dnu */
.submit-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  background-color: #004085;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s ease;
  gap: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
  background-color: #333;
  /* Tamno siva na hover */
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- LIGHTBOX FIXES --- */
.lb-dataContainer {
  display: none !important;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
  opacity: 1 !important;
  background-image: none !important;
  width: 50px;
}

.lb-prev:before,
.lb-next:before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 30px;
  color: white;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}

.lb-prev:before {
  content: '\f053';
  left: 20px;
}

.lb-next:before {
  content: '\f054';
  right: 20px;
}

.lb-close {
  opacity: 1;
  top: 20px;
  right: 20px;
  background-image: none !important;
}

.lb-close:after {
  content: '\f00d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 4px;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 32px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 250px;
  }
}