/* ============================================
   CURE BATUMI - Course Detail Page Styles
   Author: Gocha Shevardnadze
   Company: Fix-Dev.com
   ============================================ */

* {
  box-sizing: border-box;
}

.course-page {
  background-color: #eaf7ff;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Course Detail Page - Header Glassmorphism - Desktop Only */
@media (min-width: 769px) {
  body:has(div[data-page-type="course-detail"]) .header {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    overflow-x: hidden;
  }

  body:has(div[data-page-type="course-detail"]) .header.scrolled {
    background: rgb(0 85 89 / 45%) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* Hero Section */
.course-hero {
  position: relative;
  width: 100%;
  height: 724px;
  overflow: hidden;
}

.course-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.decorative-circle {
  position: absolute;
  top: 276px;
  left: 50%;
  transform: translateX(-50%);
  width: 162px;
  height: 162px;
  z-index: 2;
  opacity: 0.8;
}

/* Content Section */
.course-content-section {
  padding: 32px 81px;
  background-color: #effdf4;
}

.course-content-wrapper {
  display: flex;
  gap: 83px;
  align-items: flex-start;
  max-width: 1600px;
  margin: 0 auto;
}

.course-text-content {
  flex: 1;
  max-width: 1002px;
}

.course-main-title {
  font-size: 36px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 25px;
  line-height: 1.2;
}

.course-main-description {
  font-size: 24px;
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
  margin-bottom: 35px;
}

/* Course Info Cards */
.course-info-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.course-info-card {
  background: #ffffff;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.course-info-label {
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  margin-bottom: 5px;
}

.course-info-value {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
}

.course-info-value.price {
  color: #5dade2;
  font-size: 24px;
}

/* Modules List */
.course-modules-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 727px;
}

.course-module-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.course-module-title {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
}

.module-expand-button {
  width: 48px;
  height: 46px;
  border: 1px solid #7ec8e3;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.module-expand-button:hover {
  background-color: #7ec8e3;
  transform: scale(1.05);
}

.module-expand-button::before,
.module-expand-button::after {
  content: '';
  position: absolute;
  background-color: #7ec8e3;
  transition: all 0.3s ease;
}

.module-expand-button::before {
  width: 20px;
  height: 3px;
}

.module-expand-button::after {
  width: 3px;
  height: 20px;
}

.course-module-item.expanded .module-expand-button::after {
  height: 0;
}

.course-module-item.expanded .module-expand-button {
  background-color: #7ec8e3;
}

.course-module-item.expanded .module-expand-button::before,
.course-module-item.expanded .module-expand-button::after {
  background-color: #ffffff;
}

.module-expand-button:hover::before,
.module-expand-button:hover::after {
  background-color: #ffffff;
}

.course-module-description {
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  line-height: 1.6;
  display: none;
  padding-left: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.course-module-item.expanded .course-module-description {
  display: block;
}

.course-module-divider {
  width: 100%;
  height: 1px;
  background-color: #d0d0d0;
}

/* Image Content */
.course-image-content {
  flex-shrink: 0;
}

.course-content-image {
  width: 493px;
  object-fit: cover;
  border-radius: 12px;
}

/* Info Sections */
.course-info-section {
  padding: 60px 81px;
  background-color: #effdf4;
  text-align: center;
}

.course-section-title {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 25px;
}

.course-section-description {
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
  max-width: 1302px;
  margin: 0 auto;
}

/* CTA Banner */
.course-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 48px;
  background-color: #5dade2;
  box-shadow: 3.48px 6.97px 7.32px rgba(0, 0, 0, 0.05);
  gap: 50px;
}

.course-cta-content {
  flex: 1;
}

.course-cta-title {
  font-size: 34.8px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 9px;
}

.course-cta-description {
  font-size: 20.9px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.3;
}

.course-cta-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  background-color: #ffffff;
  color: #5dade2;
  font-size: 27.9px;
  font-weight: 700;
  border: none;
  border-radius: 36.58px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.course-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-phone-icon {
  width: 20px;
  height: 20px;
}

/* Register Button */
.course-register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  background-color: #5dade2;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 20px;
}

.course-register-button:hover {
  background-color: #4a9dd1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-register-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}

.course-enrolled-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background-color: #4caf50;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 30px;
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .course-content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .course-image-content {
    order: -1;
  }

  .course-content-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 1024px) {
  .course-content-section,
  .course-info-section {
    padding: 40px 30px;
  }

  .course-cta-banner {
    padding: 30px 30px;
  }
}

@media (max-width: 768px) {
  /* Mobile Header - Dark Glassmorphism */
  body:has(div[data-page-type="course-detail"]) .header {
    background: rgb(93 173 226 / 80%) !important;
  }

  body:has(div[data-page-type="course-detail"]) .header.scrolled {
    background: rgba(38, 38, 38, 0.55) !important;
  }

  .course-hero {
    height: 500px;
  }

  .decorative-circle {
    width: 120px;
    height: 120px;
    top: 200px;
  }

  .course-content-section,
  .course-info-section {
    padding: 30px 20px;
  }

  .course-main-title,
  .course-section-title {
    font-size: 28px;
  }

  .course-main-description,
  .course-section-description {
    font-size: 16px;
  }

  .course-module-title {
    font-size: 20px;
  }

  .course-module-description {
    font-size: 18px;
  }

  .course-info-cards {
    flex-direction: column;
  }

  .course-info-card {
    width: 100%;
  }

  .course-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .course-cta-title {
    font-size: 28px;
  }

  .course-cta-description {
    font-size: 18px;
  }

  .course-cta-button {
    font-size: 22px;
    padding: 15px 30px;
  }

  .course-register-button {
    width: 100%;
    font-size: 20px;
  }

  .course-modules-list {
    max-width: 100%;
    width: 100%;
  }

  .course-text-content {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .course-hero {
    height: 400px;
    display: none;
  }

  .course-page {
    padding: 70px 0 0 0;
  }

  .course-main-title {
    font-size: 24px;
  }

  .course-module-title {
    font-size: 18px;
  }
}

.video-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;z-index:10000;padding:20px}
.video-modal-overlay.active{display:flex}
.video-modal{background:#000;border-radius:12px;max-width:960px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.5);position:relative}
.video-close{position:absolute;top:8px;right:8px;background:transparent;border:0;color:#fff;font-size:28px;line-height:1;cursor:pointer;opacity:.85}
.video-close:hover{opacity:1}
.video-wrapper{position:relative;width:100%;padding-bottom:56.25%;background:#000;border-radius:12px;overflow:hidden}
.video-wrapper iframe{position:absolute;inset:0;width:100%;height:100%}