/* Reset i osnova */
* {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: 'Poppins', sans-serif;
}
body { background: var(--bg-900);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

/* HERO sekcija */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(196, 126, 140, 0.8) 0%, rgba(231, 167, 178, 0.8) 100%),
    url('../uploads/photos/photo11.jpg') no-repeat center center/cover;
  color: #4a2a38;
  height: 100vh;
  width: 100%;
  min-height: 320px;
  box-sizing: border-box;
  user-select: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  padding: 0 1.5rem;
  text-align: center;
}
.hero h1 { text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 8px rgba(111, 66, 79, 0.3);
}
.hero button {
  background: var(--accent-gradient); color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #8e5061;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(142, 80, 97, 0.3);
  transition: all 0.3s ease;
  user-select: none;
}
.hero button:hover {
  background-color: #a75e6b;
  color: white;
  box-shadow: 0 12px 20px rgba(167, 94, 107, 0.5);
  transform: translateY(-3px);
}

/* MAIN content */

main h2 { text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #6a4150;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Grid za video kartice */
.videos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.video-card { border-radius: 24px; border: 1px solid var(--border); background: var(--card);
  background: var(--card);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 30px var(--shadow); border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.video-card:hover {
  box-shadow: 0 10px 25px rgba(144, 89, 103, 0.2);
  transform: translateY(-5px);
}
.video-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: #7a4355;
}
.video-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #a87b89;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}
.video-card a {
  align-self: flex-start;
  padding: 0.5rem 1.2rem;
  background-color: #c47e8c;
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 5px 12px rgba(196, 126, 140, 0.35);
  transition: background-color 0.3s ease;
}
.video-card a:hover {
  background-color: #a75e6b;
  box-shadow: 0 8px 15px rgba(167, 94, 107, 0.5);
}

/* THUMBNAIL i PLAY ikonica */
.video-box {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(144, 89, 103, 0.1);
  padding: 20px;
  margin-bottom: 30px;
  max-width: 600px;
  transition: transform 0.3s ease;
}
.video-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(144, 89, 103, 0.15);
}

.thumbnail-wrapper {
  position: relative;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(144, 89, 103, 0.1);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.thumbnail-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.thumbnail-wrapper:hover img {
  transform: scale(1.05);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: rgba(255, 192, 203, 0.85);
  text-shadow: 0 0 15px rgba(144, 89, 103, 0.6);
  pointer-events: none;
  transition: color 0.3s ease;
}

.thumbnail-wrapper:hover .play-icon {
  color: #d94a64;
}

.btn-link {
  text-decoration: none;
}

/* ===== SEKCIJE - ВАЖНО: padding preko !important ===== */
.featured-courses {
  padding: 6rem 2rem !important;
  min-height: auto !important;
}

.featured-courses .courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.featured-services {
  padding: 4rem 2rem !important;
  min-height: auto !important;
}

.featured-services .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.stats {
  padding: 6rem 2rem !important;
  min-height: auto !important;
}

.stats .stats-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.map-section {
  padding: 6rem 2rem !important;
  min-height: auto !important;
}

.map-section .map-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  justify-content: center;
}

.map-section .map-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 800px;
  height: 400px;
}

.map-section .contact-info {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.testimonials {
  padding: 6rem 2rem !important;
  min-height: auto !important;
}

.testimonials .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cta-register {
  padding: 6rem 2rem !important;
  min-height: auto !important;
}

.faq {
  padding: 6rem 2rem !important;
  min-height: auto !important;
}

/* ===== TABLET (max-width: 768px) ===== */
@media (max-width: 768px) {
  .featured-courses,
  .stats,
  .map-section,
  .testimonials,
  .cta-register,
  .faq {
    padding: 4rem 1.5rem !important;
  }

  .featured-services {
    padding: 3rem 1.5rem !important;
  }

  .section-header {
    margin-bottom: 2.5rem !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .section-subtitle {
    font-size: 1rem !important;
  }

  .featured-courses .courses-grid {
    gap: 2rem;
  }

  .featured-services .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .stats .stats-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .map-section .map-container {
    flex-direction: column;
    gap: 2rem;
  }

  .map-section .map-wrapper {
    width: 100%;
    max-width: 100%;
    height: 350px;
  }

  .map-section .contact-info {
    width: 100%;
    max-width: 100%;
  }

  .testimonials .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== MOBILE (max-width: 600px) ===== */
@media (max-width: 600px) {
  .hero {
    height: 80vh;
    min-height: 500px;
    padding: 2rem 1rem;
  }

  .hero h1 { text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-size: 2rem !important;
  }

  .hero p {
    font-size: 1rem !important;
  }

  .hero button {
    padding: 0.8rem 1.6rem !important;
    font-size: 1rem !important;
  }

  main {
    margin: 0;
    padding: 0 0.1rem;
  }

  .videos-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .video-card { border-radius: 24px; border: 1px solid var(--border); background: var(--card);
    padding: 1rem 1.2rem;
  }

  .video-card h3 {
    font-size: 1.1rem;
  }

  .video-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .video-card a {
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
  }

  .thumbnail-wrapper {
    max-height: 220px;
  }

  .video-box {
    padding: 1.2rem 1.5rem;
    max-width: 100%;
  }

  .btn-back {
    padding: 0.7rem 2rem;
    font-size: 1rem;
  }

  .featured-courses,
  .stats,
  .map-section,
  .testimonials,
  .cta-register,
  .faq {
    padding: 3rem 1rem !important;
  }

  .featured-services {
    padding: 2.5rem 1rem !important;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }

  .section-title {
    font-size: 1.6rem !important;
  }

  .section-subtitle {
    font-size: 0.95rem !important;
    padding: 0 0.5rem !important;
  }

  .featured-courses .courses-grid,
  .featured-services .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .course-card,
  .service-card { border-radius: 24px; border: 1px solid var(--border); background: var(--card);
    max-width: 100%;
  }

  .thumbnail-container,
  .img-wrapper {
    height: 200px !important;
  }

  .stats .stats-wrapper {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .stat-box {
    padding: 2rem 1rem !important;
  }

  .counter {
    font-size: 2.5rem !important;
  }

  .map-section .map-wrapper {
    height: 280px !important;
  }

  .map-section .contact-info {
    padding: 1.5rem !important;
  }

  .testimonial-card {
    padding: 1.5rem !important;
  }

  .testimonial-card p {
    font-size: 0.95rem !important;
  }

  .cta-register .section-title {
    font-size: 1.8rem !important;
  }

  .cta-register .cta-subtext {
    font-size: 1rem !important;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
  }

  .faq-question {
    padding: 1rem !important;
    font-size: 1rem !important;
  }

  .faq-answer {
    padding: 0 1rem 1rem !important;
    font-size: 0.95rem !important;
  }
}

/* ===== EXTRA SMALL (max-width: 400px) ===== */
@media (max-width: 400px) {
  .hero {
    min-height: 450px;
  }

  .hero h1 { text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-size: 1.6rem !important;
  }

  .featured-courses,
  .stats,
  .map-section,
  .testimonials,
  .cta-register,
  .faq {
    padding: 2.5rem 1rem !important;
  }

  .featured-services {
    padding: 2rem 1rem !important;
  }

  .section-title {
    font-size: 1.4rem !important;
  }

  .course-card,
  .service-card,
  .stat-box,
  .testimonial-card {
    padding: 1rem !important;
  }

  .thumbnail-container,
  .img-wrapper {
    height: 160px !important;
  }

  .counter {
    font-size: 2rem !important;
  }
}