/**
 * Check-up (Tekshiruv dasturlari) page styles
 * RSCS - Republican Specialized Center of Surgery
 */

.checkup-page {
  position: relative;
  padding: 40px 0 90px 0;
  background-color: #f8fafc;
}

.checkup-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Row: Text & Vertical (9:16) Video Side-by-Side --- */
.checkup-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 40px;
}

.checkup-text-col {
  flex: 1 1 560px;
  min-width: 300px;
}

.checkup-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  margin: 0 0 20px 0;
}

.checkup-description {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 24px;
}

.checkup-description p {
  margin-bottom: 14px;
}

.checkup-description p:last-child {
  margin-bottom: 0;
}

.checkup-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 0 0;
  padding: 0;
  list-style: none;
}

.checkup-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #1e293b;
  line-height: 1.55;
}

.checkup-features li i {
  color: #10b981;
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* --- Vertical Video Column (9:16 aspect ratio) --- */
.checkup-video-col {
  flex: 0 0 360px;
  max-width: 360px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.checkup-vertical-video-card {
  width: 100%;
  background: #000000;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(4, 36, 117, 0.16);
  border: 2px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.checkup-vertical-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(4, 36, 117, 0.22);
}

.checkup-vertical-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background-color: #0b0f19;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkup-vertical-video-wrapper video,
.checkup-vertical-video-wrapper iframe,
.checkup-vertical-video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.checkup-vertical-video-wrapper video {
  cursor: pointer;
}

/* --- Floating Play/Pause & Mute/Unmute Controls (matching slider & mobile UI) --- */
.checkup-video-overlay-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  pointer-events: auto;
}

.checkup-video-control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.checkup-video-control-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: #ffffff;
  transform: scale(1.08);
}

.checkup-video-control-btn:active {
  transform: scale(0.95);
}

/* --- PDF Section (Bottom: Clearly recognizable PDF Cards, no viewer) --- */
.checkup-pdf-section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid #e2e8f0;
}

.checkup-pdf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.checkup-pdf-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none !important;
  color: #1e293b;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.checkup-pdf-card:hover {
  border-color: #042475;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(4, 36, 117, 0.12);
  color: #042475;
}

.checkup-pdf-card-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.checkup-pdf-card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.15);
  transition: transform 0.25s ease;
}

.checkup-pdf-card:hover .checkup-pdf-card-icon {
  transform: scale(1.08);
}

.checkup-pdf-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.checkup-pdf-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.checkup-pdf-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin: 0;
  transition: color 0.25s ease;
}

.checkup-pdf-card:hover .checkup-pdf-card-title {
  color: #042475;
}

.checkup-pdf-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: #f1f5f9;
  color: #042475;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.checkup-pdf-card:hover .checkup-pdf-card-action {
  background-color: #042475;
  color: #ffffff;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .checkup-main-row {
    flex-direction: column;
    gap: 36px;
  }

  .checkup-video-col {
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }

  .checkup-pdf-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .checkup-page {
    padding: 25px 0 60px 0;
  }

  .checkup-title {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .checkup-description {
    font-size: 15px;
    line-height: 1.65;
  }

  .checkup-video-col {
    max-width: 320px;
  }

  .checkup-pdf-card {
    padding: 16px;
    gap: 12px;
  }

  .checkup-pdf-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 22px;
  }

  .checkup-pdf-card-title {
    font-size: 14px;
  }

  .checkup-pdf-card-action {
    padding: 8px 12px;
    font-size: 12px;
  }
}
