/* Kurzy Courses CSS - Namespaced to prevent Shoptet conflicts */
.kurzy-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-variant-numeric: lining-nums;
}

.kurzy-wrapper {
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.6;
  color: #2a1a2a;
  background-color: white;
  font-size: 1.6rem;
}

.kurzy-wrapper h2 {
  font-size: 3.2rem;
  color: #a62cde;
  font-family: "Georgia", serif;
  margin-bottom: 1.6rem;
  text-align: center;
  line-height: 1.2;
}

.kurzy-wrapper h3 {
  font-size: 2.4rem;
  color: #a62cde;
  font-family: "Georgia", serif;
  margin-bottom: 1.6rem;
  line-height: 1.2;
}

.kurzy-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.kurzy-back-link {
  background: linear-gradient(135deg, #f8faff 0%, #f2e8ff 100%);
  padding: 1.6rem 0;
  box-shadow: 0 2px 10px rgba(166, 44, 222, 0.1);
}

.kurzy-back-link-text {
  text-decoration: none;
  color: #9f2192;
  font-weight: 500;
  font-size: 1.6rem;
  transition: color 0.3s ease;
  display: inline-block;
}

.kurzy-back-link-text:hover {
  color: #a62cde;
}

.kurzy-page-header {
  text-align: center;
  padding: 3.2rem 0 1rem 0;
  background: linear-gradient(135deg, #f8faff 0%, #f5e8ff 100%);
}

.kurzy-page-header h1 {
  font-size: 4.8rem;
  margin-bottom: 1.6rem;
  color: #a62cde;
  font-family: "Georgia", serif;
}

.kurzy-page-header p {
  font-size: 1.92rem;
  color: #2a1a2a;
  max-width: 600px;
  margin: 0 auto;
}

.kurzy-page-header-main-image-wrapper {
  text-align: center; 
  margin: 2.4rem 0;
}

.kurzy-page-header-main-image {
  max-width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(166, 44, 222, 0.2);
}

.kurzy-gallery-section {
  padding: 3.2rem 0;
  background: linear-gradient(135deg, #f8faff 0%, #f2e8ff 100%);
  border-radius: 15px;
  margin: 3.2rem 0;
}

.kurzy-gallery-header {
  text-align: center;
  margin-bottom: 4.8rem;
}

.kurzy-gallery-header p {
  font-size: 1.92rem;
  color: #2a1a2a;
  max-width: 600px;
  margin: 0 auto;
}

.kurzy-carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.kurzy-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1.6rem;
}

.kurzy-carousel-slide {
  min-width: 300px;
  height: 250px;
  flex-shrink: 0;
}

.kurzy-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(166, 44, 222, 0.15);
  transition: transform 0.3s ease;
  border: 2px solid #f0f0ff;
}

.kurzy-carousel-slide img:hover {
  transform: scale(1.05);
}

.kurzy-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 3.2rem;
}

.kurzy-carousel-btn {
  background: #a62cde;
  color: white;
  border: none;
  padding: 1.6rem 3.2rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  font-family: "Georgia", serif;
}

.kurzy-carousel-btn:hover {
  background: #8a1fc7;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(166, 44, 222, 0.4);
}

.kurzy-carousel-btn:disabled {
  background: #a0d4d4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.kurzy-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3.2rem;
}

.kurzy-course-card {
  background: linear-gradient(145deg, #f8f5ff 0%, #f0e8ff 100%);
  border-radius: 20px;
  padding: 3.2rem;
  box-shadow: 0 8px 20px rgba(166, 44, 222, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0ff;
  display: flex;
  flex-direction: column;
}

.kurzy-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(166, 44, 222, 0.2);
}

.kurzy-course-card p {
  color: #2a1a2a;
  margin-bottom: 2.4rem;
}

.kurzy-course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1.6rem;
  box-shadow: 0 6px 18px rgba(166, 44, 222, 0.12);
  border: 2px solid #f0f0ff;
}

.kurzy-course-card .kurzy-btn {
  margin-top: auto;
  align-self: flex-start;
}

.kurzy-section-header {
  text-align: center;
  padding: 4rem 0 3.2rem 0;
}

.kurzy-section-header p {
  font-size: 1.92rem;
  color: #2a1a2a;
  max-width: 600px;
  margin: 0 auto;
}

.kurzy-course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.kurzy-course-header h3 {
  margin: 0;
}

.kurzy-course-date {
  background: #a62cde;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 20px;
  font-weight: 500;
  font-family: "Georgia", serif;
}

.kurzy-course-dates {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.kurzy-course-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3.2rem;
  margin-bottom: 3.2rem;
}

.kurzy-detail-item {
  background: linear-gradient(145deg, #f5f8ff 0%, #eef0ff 100%);
  padding: 1.92rem;
  border-radius: 15px;
  border: 1px solid #f0f0ff;
  box-shadow: 0 4px 10px rgba(166, 44, 222, 0.05);
}

.kurzy-detail-item h4 {
  color: #a62cde;
  margin-bottom: 0.8rem;
  font-family: "Georgia", serif;
}

.kurzy-detail-item p {
  color: #2a1a2a;
}

/* Compact dates layout */
.kurzy-compact-dates {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 1.6rem;
  align-items: center;
}

.kurzy-date-item {
  display: grid;
  grid-column: 1/-1;
  grid-template-columns: subgrid;
  align-items: center;
  background: linear-gradient(135deg, #f8faff 0%, #f2e8ff 100%);
  border-radius: 15px;
  padding: 0 1.6rem 0 0;
  box-shadow: 0 4px 12px rgba(166, 44, 222, 0.08);
  border: 1px solid #f0f0ff;
}

.kurzy-date-time {
  background: #a62cde;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}

.kurzy-date {
  font-weight: 500;
  font-size: 1.8rem;
}

.kurzy-time {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
}

.kurzy-course-name {
  font-size: 1.8rem;
  color: #2a1a2a;
  font-weight: 500;
  justify-self: start;
}

.kurzy-date-link {
  color: #a62cde;
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border: 2px solid #a62cde;
  border-radius: 12px;
  transition: all 0.3s ease;
  white-space: nowrap;
  justify-self: end;
}

.kurzy-date-link:hover {
  background: #a62cde;
  color: white;
}

.kurzy-registration-note {
  background: #f8f8ff;
  border: 1px solid #e8e8f8;
  border-radius: 10px;
  padding: 1.6rem;
  margin: 3.2rem 0;
  color: #2a1a2a;
}

.kurzy-prijedu-section {
  padding: 3.2rem 0;
  background: linear-gradient(135deg, #f8faff 0%, #f2e8ff 100%);
  border-radius: 15px;
  margin: 3.2rem 0;
}

.kurzy-prijedu-content {
  text-align: center;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.kurzy-prijedu-content p {
  font-size: 1.92rem;
  color: #2a1a2a;
  margin-bottom: 3.2rem;
  line-height: 1.8;
}

.kurzy-btn {
  display: inline-block;
  padding: 1.28rem 2.4rem;
  background: linear-gradient(135deg, #a62cde 0%, #8a1fc7 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-family: "Georgia", serif;
}

.kurzy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(166, 44, 222, 0.4);
}

@media (max-width: 768px) {
  .kurzy-page-header h1 {
    font-size: 3.2rem;
  }

  .kurzy-wrapper h2 {
    font-size: 2.8rem;
  }

  .kurzy-course-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .kurzy-course-header h3 {
    font-size: 2.4rem;
  }

  .kurzy-page-header-main-image {
    height: auto !important;
    max-height: 300px !important;
    object-fit: contain !important;
  }
}

/* Styles for other pages */

.kurzy-content-section {
  padding-top: 3.2rem;
}

.kurzy-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3.2rem;
  margin-bottom: 3.2rem;
}

.kurzy-content-item {
  background: linear-gradient(145deg, #f8f5ff 0%, #f0e8ff 100%);
  border-radius: 20px;
  padding: 3.2rem;
  box-shadow: 0 8px 20px rgba(166, 44, 222, 0.08);
  border: 1px solid #f0f0ff;
}

.kurzy-content-item p {
  color: #2a1a2a;
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

.kurzy-content-item ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.6rem;
}

.kurzy-content-item li {
  padding: 0.8rem 0;
  color: #2a1a2a;
  position: relative;
  padding-left: 2.4rem;
}

.kurzy-content-item li:before {
  content: "⁓";
  position: absolute;
  left: 0;
  color: #a62cde;
}

.kurzy-price-section {
  background: linear-gradient(145deg, #f8f5ff 0%, #f0e8ff 100%);
  border-radius: 20px;
  padding: 3.2rem;
  margin: 3.2rem 0;
  box-shadow: 0 8px 20px rgba(166, 44, 222, 0.08);
  border: 1px solid #f0f0ff;
}

.kurzy-price-details {
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
  flex-wrap: nowrap;
}

.kurzy-price-item {
  background: linear-gradient(145deg, #f5f8ff 0%, #eef0ff 100%);
  padding: 1.2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid #f0f0ff;
  box-shadow: 0 4px 10px rgba(166, 44, 222, 0.05);
  flex: 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kurzy-price-item strong {
  color: #a62cde;
  font-size: 2.08rem;
  font-family: "Georgia", serif;
}

.kurzy-price-item br {
  margin: 0.8rem 0;
}

.kurzy-price-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.92rem;
  font-weight: bold;
  color: #a62cde;
  font-family: "Georgia", serif;
  margin: 0;
  padding: 0.32rem 0;
}

.kurzy-experience-section {
  background: linear-gradient(145deg, #f8f5ff 0%, #f0e8ff 100%);
  border-radius: 20px;
  padding: 3.2rem;
  margin: 3.2rem 0;
  box-shadow: 0 8px 20px rgba(166, 44, 222, 0.08);
  border: 1px solid #f0f0ff;
}

.kurzy-experience-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2.4rem;
}

.kurzy-experience-section li {
  padding: 1.28rem 0;
  color: #2a1a2a;
  position: relative;
  padding-left: 3.2rem;
  line-height: 1.6;
}

.kurzy-experience-section li:before {
  content: "⁓";
  position: absolute;
  left: 0;
  color: #a62cde;
  font-size: 1.92rem;
}

.kurzy-experience-section p {
  margin-bottom: 1.6rem;
}

.kurzy-experience-section p:last-child, .kurzy-course-info p:last-child {
  margin-bottom: 0;
}

.kurzy-cta-section {
  text-align: center;
  background: linear-gradient(145deg, #f8f5ff 0%, #f0e8ff 100%);
  border-radius: 20px;
  padding: 3.2rem 3.2rem;
  box-shadow: 0 8px 20px rgba(166, 44, 222, 0.08);
  border: 1px solid #f0f0ff;
}

.kurzy-cta-section p {
  color: #2a1a2a;
  margin-bottom: 3.2rem;
  font-size: 1.76rem;
  line-height: 1.6;
}

/* Additional responsive styles for other pages */
@media (max-width: 768px) {
  .kurzy-page-header h1 {
    font-size: 3.2rem;
  }

  .kurzy-content-grid {
    grid-template-columns: 1fr;
  }

  .kurzy-price-details {
    flex-direction: column;
    gap: 0.48rem;
  }
  
  .kurzy-price-item {
    width: 100%;
    min-height: auto;
  }
}

/* Styles for course detail pages */
.kurzy-page-header + .kurzy-course-details {
  margin-top: 3.2rem;
}

.kurzy-course-info {
  background: linear-gradient(145deg, #f8f5ff 0%, #f0e8ff 100%);
  border-radius: 20px;
  padding: 3.2rem;
  margin-bottom: 3.2rem;
  box-shadow: 0 8px 20px rgba(166, 44, 222, 0.08);
  border: 1px solid #f0f0ff;
}

.kurzy-course-info p {
  color: #2a1a2a;
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

.kurzy-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3.2rem;
}

.kurzy-technique-section {
  background: linear-gradient(145deg, #f8f5ff 0%, #f0e8ff 100%);
  border-radius: 20px;
  padding: 3.2rem;
  margin: 3.2rem 0;
  box-shadow: 0 8px 20px rgba(166, 44, 222, 0.08);
  border: 1px solid #f0f0ff;
}

.kurzy-technique-section p {
  color: #2a1a2a;
  line-height: 1.6;
}

/* Additional responsive styles for course detail pages */
@media (max-width: 768px) {
  .kurzy-details-grid {
    grid-template-columns: 1fr;
  }
}

/* Age note styling */
.kurzy-age-note-text {
  font-size: 1.44rem;
  margin-top: 0.8rem;
}

/* Registration link styling */
.kurzy-registration-link {
  color: #a62cde;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.kurzy-registration-link:hover {
  color: #8a1fc7;
  text-decoration: underline;
}

.kurzy-responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Image Modal Styles */
.kurzy-image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.kurzy-modal-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 60px 20px 20px 20px;
  box-sizing: border-box;
}

.kurzy-modal-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { 
    transform: scale(0.8);
    opacity: 0;
  }
  to { 
    transform: scale(1);
    opacity: 1;
  }
}

.kurzy-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.kurzy-modal-close:hover,
.kurzy-modal-close:focus {
  color: #bbb;
  text-decoration: none;
}

.kurzy-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(166, 44, 222, 0.8);
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.kurzy-modal-nav:hover {
  background: rgba(166, 44, 222, 1);
  transform: translateY(-50%) scale(1.1);
}

.kurzy-modal-prev {
  left: 20px;
}

.kurzy-modal-next {
  right: 20px;
}

/* Make carousel images clickable */
.kurzy-carousel-slide img {
  cursor: pointer;
}

/* Responsive modal styles */
@media (max-width: 768px) {
  .kurzy-modal-content {
    padding: 50px 20px 20px 20px;
  }
  
  .kurzy-modal-image {
    max-width: 95%;
    max-height: 80%;
  }
  
  .kurzy-modal-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
  
  .kurzy-modal-nav {
    width: 50px;
    height: 50px;
    font-size: 20px;
    padding: 10px 15px;
  }
  
  .kurzy-modal-prev {
    left: 10px;
  }
  
  .kurzy-modal-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .kurzy-modal-content {
    padding: 40px 20px 20px 20px;
  }
  
  .kurzy-modal-close {
    top: 5px;
    right: 5px;
    font-size: 24px;
    width: 35px;
    height: 35px;
  }
  
  .kurzy-modal-nav {
    width: 45px;
    height: 45px;
    font-size: 18px;
    padding: 8px 12px;
  }
  
  .kurzy-modal-prev {
    left: 5px;
  }
  
  .kurzy-modal-next {
    right: 5px;
  }
}