/* ======================================
   Workshop Details Page - RTL Design
   Border-Right for Arabic Layout
====================================== */

* {
  box-sizing: border-box;
}

/* ===== Workshop Header ===== */
#workshop-details-header {
  position: relative;
  background: linear-gradient(135deg, #062141 0%, #0a3a5c 50%, #223d3d 100%);
  color: white;
  padding: 140px 25px 80px;
  overflow: hidden;
}

#workshop-details-header .header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

#workshop-details-header .header-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

/* Breadcrumb */
#workshop-details-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  font-size: 14px;
  opacity: 0.9;
}

#workshop-details-header .breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

#workshop-details-header .breadcrumb a:hover {
  opacity: 0.7;
}

#workshop-details-header .breadcrumb i {
  font-size: 10px;
}

#workshop-details-header .breadcrumb span {
  font-weight: 600;
}

/* Workshop Badge Header */
#workshop-details-header .workshop-badge-header {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#workshop-details-header .workshop-badge-header.upcoming {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

#workshop-details-header .workshop-badge-header.available {
  background: linear-gradient(135deg, #10b981, #059669);
}

#workshop-details-header .workshop-badge-header.full {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

#workshop-details-header .workshop-badge-header.ended {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* Main Title */
#workshop-details-header .workshop-main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Partnership Header */
#workshop-details-header .workshop-partnership-header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  margin-bottom: 30px;
  font-size: 16px;
}

#workshop-details-header .workshop-partnership-header i {
  font-size: 20px;
}

#workshop-details-header .workshop-partnership-header strong {
  font-weight: 800;
}

/* Quick Info */
#workshop-details-header .workshop-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

#workshop-details-header .quick-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
}

#workshop-details-header .quick-info-item i {
  font-size: 20px;
  opacity: 0.9;
}

/* ===== Details Section ===== */
#workshop-details-content {
  padding: 80px 20px;
  background: #ffffff;
}

#workshop-details-content .details-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

/* ===== Main Content ===== */
#workshop-details-content .details-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#workshop-details-content .details-card {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #e0e0e0;
}

/* RTL SECTION TITLE - Border on RIGHT */
#workshop-details-content .section-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  color: #062141;
  margin-bottom: 25px;
  padding-bottom: 15px;
  padding-right: 15px;
  border-right: 4px solid #0a4d4d; /* ← RTL: Border on RIGHT */
  width: auto;
}

#workshop-details-content .section-title i {
  color: #0a3a5c;
  font-size: 24px;
}

#workshop-details-content .workshop-description {
  font-size: 16px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 15px;
}

/* Learning List - Border on RIGHT */
#workshop-details-content .learning-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#workshop-details-content .learning-list li {
  display: flex;
  gap: 18px;
  padding: 20px;
  margin-bottom: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  border-right: 4px solid #0a3a5c; /* ← RTL: Border on RIGHT */
  transition: all 0.3s ease;
}

#workshop-details-content .learning-list li:hover {
  background: #e8f4f8;
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#workshop-details-content .learning-list li i {
  font-size: 22px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 3px;
}

#workshop-details-content .learning-list li strong {
  font-size: 17px;
  color: #062141;
  display: block;
  margin-bottom: 5px;
}

#workshop-details-content .learning-list li p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Workshop Outline */
#workshop-details-content .workshop-outline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#workshop-details-content .outline-item {
  background: #f8f9fa;
  border-radius: 14px;
  padding: 25px;
  border: 2px solid #e0e0e0;
  border-right: 4px solid #0a4d4d; /* ← RTL: Border on RIGHT */
  transition: all 0.3s ease;
}

#workshop-details-content .outline-item:hover {
  border-color: #0a3a5c;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#workshop-details-content .outline-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

#workshop-details-content .outline-number {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #062141, #0a3a5c);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

#workshop-details-content .outline-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: #062141;
  flex: 1;
  margin: 0;
}

#workshop-details-content .outline-duration {
  padding: 6px 14px;
  background: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #0a3a5c;
  white-space: nowrap;
}

#workshop-details-content .outline-topics {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  padding-right: 60px; /* RTL: padding-right instead of padding-left */
}

#workshop-details-content .outline-topics li {
  font-size: 15px;
  color: #666;
  padding: 8px 0;
  position: relative;
  padding-right: 20px;
}

#workshop-details-content .outline-topics li::before {
  content: '◄';
  position: absolute;
  right: 0; /* RTL: right instead of left */
  color: #0a3a5c;
  font-size: 12px;
}

/* Requirements List */
#workshop-details-content .requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#workshop-details-content .requirements-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: #f8f9fa;
  border-radius: 12px;
  border-right: 4px solid #0a4d4d; /* ← RTL: Border on RIGHT */
  font-size: 16px;
  color: #555;
  transition: all 0.3s ease;
}

#workshop-details-content .requirements-list li:hover {
  background: #e8f4f8;
  transform: translateX(-5px);
}

#workshop-details-content .requirements-list li i {
  font-size: 22px;
  color: #0a3a5c;
}

/* Resources List */
#workshop-details-content .resources-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#workshop-details-content .resource-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-right: 4px solid #0a4d4d; /* ← RTL: Border on RIGHT */
  text-decoration: none;
  color: #062141;
  font-weight: 600;
  transition: all 0.3s ease;
}

#workshop-details-content .resource-link:hover {
  background: #e8f4f8;
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#workshop-details-content .resource-link i:first-child {
  font-size: 24px;
  color: #0a3a5c;
}

#workshop-details-content .resource-link i:last-child {
  margin-right: auto;
  font-size: 16px;
  opacity: 0.6;
}

/* ===== Sidebar ===== */
#workshop-details-content .details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

#workshop-details-content .sidebar-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #e0e0e0;
  position: static !important;
}

/* Sidebar Title - Border on RIGHT */
#workshop-details-content .sidebar-title {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  color: #062141;
  margin-bottom: 20px;
  padding-bottom: 12px;
  padding-right: 12px;
  border-right: 3px solid #0a4d4d; /* ← RTL: Border on RIGHT */
  width: auto;
}

/* Registration Card */
#workshop-details-content .registration-card {
  background: #ffffff;
  border: 2px solid #e0e0e0;
}

#workshop-details-content .ended-message {
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, #6b7280, #4b5563);
  border-radius: 15px;
  margin-bottom: 25px;
  color: white;
}

#workshop-details-content .ended-message i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.9;
}

#workshop-details-content .ended-message h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

#workshop-details-content .ended-message p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

#workshop-details-content .registration-available {
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 15px;
  margin-bottom: 25px;
  color: white;
}

#workshop-details-content .registration-available h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

#workshop-details-content .registration-available p {
  font-size: 15px;
  margin-bottom: 15px;
}

#workshop-details-content .register-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: white;
  color: #059669;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#workshop-details-content .register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#workshop-details-content .registration-info {
  margin: 0;
}

#workshop-details-content .info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: #555;
  border-bottom: 1px solid #e0e0e0;
}

#workshop-details-content .info-item:last-child {
  border-bottom: none;
}

#workshop-details-content .info-item i {
  color: #0a3a5c;
  font-size: 18px;
}

#workshop-details-content .info-item strong {
  color: #062141;
}

/* Share Section */
#workshop-details-content .share-section {
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

#workshop-details-content .share-label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
}

#workshop-details-content .share-buttons {
  display: flex;
  gap: 10px;
}

#workshop-details-content .share-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  color: white;
}

#workshop-details-content .share-btn.twitter {
  background: #1DA1F2;
}

#workshop-details-content .share-btn.facebook {
  background: #1877F2;
}

#workshop-details-content .share-btn.linkedin {
  background: #0A66C2;
}

#workshop-details-content .share-btn.whatsapp {
  background: #25D366;
}

#workshop-details-content .share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Info Card */
#workshop-details-content .info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#workshop-details-content .info-row {
  display: flex;
  gap: 15px;
  padding-bottom: 18px;
  padding-right: 15px;
  border-bottom: 1px solid #e0e0e0;
  border-right: 3px solid transparent; /* ← RTL: Border on RIGHT */
  transition: all 0.3s ease;
}

#workshop-details-content .info-row:hover {
  border-right-color: #0a4d4d;
  transform: translateX(-5px);
}

#workshop-details-content .info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#workshop-details-content .info-row i {
  font-size: 22px;
  color: #0a3a5c;
  flex-shrink: 0;
  margin-top: 2px;
}

#workshop-details-content .info-row strong {
  display: block;
  font-size: 14px;
  color: #062141;
  margin-bottom: 4px;
  font-weight: 700;
}

#workshop-details-content .info-row span {
  font-size: 15px;
  color: #666;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  #workshop-details-content .details-container {
    grid-template-columns: 1fr;
  }

  #workshop-details-content .details-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  #workshop-details-header {
    padding: 100px 20px 60px;
  }

  #workshop-details-header .workshop-main-title {
    font-size: 32px;
  }

  #workshop-details-header .workshop-quick-info {
    gap: 20px;
  }

  #workshop-details-header .quick-info-item {
    font-size: 14px;
  }

  #workshop-details-content {
    padding: 60px 20px;
  }

  #workshop-details-content .section-title {
    font-size: 22px;
  }

  #workshop-details-content .details-card {
    padding: 25px;
  }

  #workshop-details-content .outline-topics {
    padding-right: 0;
    margin-right: 0;
  }

  #workshop-details-content .sidebar-card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  #workshop-details-header .workshop-main-title {
    font-size: 26px;
  }

  #workshop-details-header .workshop-quick-info {
    flex-direction: column;
    gap: 15px;
  }
}