/* ======================================
   Workshops Page Styles - v7 MOBILE FIXED
====================================== */

* {
  box-sizing: border-box;
}

/* ===== Hero Section ===== */
#workshops-page-hero {
  position: relative;
  background: linear-gradient(135deg, #062141, #0a4d4d);
  color: white;
  padding: 140px 25px 80px;
  text-align: center;
  overflow: hidden;
  width: 100%;
}

#workshops-page-hero .hero-shapes {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}

#workshops-page-hero .shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: workshopsFloat 20s infinite ease-in-out;
}

#workshops-page-hero .shape-1 { width: 400px; height: 400px; top: -150px; right: -100px; animation-delay: 0s; }
#workshops-page-hero .shape-2 { width: 250px; height: 250px; bottom: -80px; left: 15%; animation-delay: 7s; }
#workshops-page-hero .shape-3 { width: 180px; height: 180px; top: 40%; left: -50px; animation-delay: 14s; }

@keyframes workshopsFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50%       { transform: translateY(-40px) rotate(180deg); opacity: 0.6; }
}

#workshops-page-hero .hero-content {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 1;
}

#workshops-page-hero .hero-icon {
  font-size: 70px;
  margin-bottom: 25px;
  opacity: 0;
  transform: scale(0.5);
  animation: scaleIn 0.6s ease-out 0s forwards, workshopsBounce 2s infinite 1s;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes workshopsBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}

#workshops-page-hero .hero-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease-out 0.2s forwards;
}

#workshops-page-hero .hero-subtitle {
  font-size: 19px;
  margin-bottom: 50px;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease-out 0.4s forwards;
}

#workshops-page-hero .hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 50px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease-out 0.6s forwards;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

#workshops-page-hero .stat-item  { text-align: center; }
#workshops-page-hero .stat-number { font-size: 42px; font-weight: 800; color: white; margin-bottom: 8px; }
#workshops-page-hero .stat-label  { font-size: 15px; opacity: 0.85; font-weight: 500; }

/* ===== Workshops Section ===== */
#workshops-page-content {
  padding: 80px 20px;
  background: #ffffff;
  width: 100%;
}

#workshops-page-content .workshops-container-a {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* ===== Workshops Grid - DESKTOP ===== */
#workshops-page-content .workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin-top: 40px;
  width: 100%;
}

/* ===== Workshop Card ===== */
#workshops-page-content .workshop-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  border: 2px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

#workshops-page-content .workshop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: #0a4d4d;
}

#workshops-page-content .workshop-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#workshops-page-content .workshop-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
  width: fit-content;
}

#workshops-page-content .workshop-badge.upcoming  { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
#workshops-page-content .workshop-badge.available { background: linear-gradient(135deg, #10b981, #059669); color: white; }
#workshops-page-content .workshop-badge.full      { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
#workshops-page-content .workshop-badge.ended     { background: linear-gradient(135deg, #6b7280, #4b5563); color: white; }

#workshops-page-content .workshop-title {
  font-size: 22px;
  font-weight: 800;
  color: #062141;
  margin-bottom: 12px;
  line-height: 1.4;
}

#workshops-page-content .workshop-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 15px;
  flex: 1;
}

#workshops-page-content .workshop-partnership {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 20px;
  border-right: 4px solid #0a4d4d;
  font-size: 14px;
  color: #555;
}

#workshops-page-content .workshop-partnership i        { color: #0a4d4d; font-size: 18px; }
#workshops-page-content .workshop-partnership strong   { color: #062141; font-weight: 700; }

#workshops-page-content .workshop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 18px 0;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 20px;
}

#workshops-page-content .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

#workshops-page-content .meta-item i { color: #0a3a5c; font-size: 15px; }

#workshops-page-content .workshop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
}

#workshops-page-content .workshop-instructor {
  display: flex;
  align-items: center;
  gap: 12px;
}

#workshops-page-content .instructor-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #062141, #0a4d4d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  flex-shrink: 0;
}

#workshops-page-content .instructor-name  { font-size: 15px; font-weight: 700; color: #062141; margin-bottom: 3px; }
#workshops-page-content .instructor-title { font-size: 13px; color: #888; }

#workshops-page-content .workshop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #062141, #0a3a5c);
  color: white;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(6, 33, 65, 0.2);
  white-space: nowrap;
}

#workshops-page-content .workshop-btn:hover {
  gap: 12px;
  box-shadow: 0 6px 20px rgba(6, 33, 65, 0.35);
  transform: translateX(-3px);
}

/* ===== No Results ===== */
#workshops-page-content .no-results {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  grid-column: 1 / -1;
}

#workshops-page-content .no-results i  { font-size: 70px; color: #ddd; margin-bottom: 25px; }
#workshops-page-content .no-results h3 { font-size: 26px; font-weight: 800; color: #062141; margin-bottom: 12px; }
#workshops-page-content .no-results p  { font-size: 17px; color: #999; }

/* ===================================================
   RESPONSIVE — MOBILE CARDS FIX
=================================================== */

/* Tablet */
@media (max-width: 1024px) {
  #workshops-page-content .workshops-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
  }
}

/* Mobile Large - FIXED */
@media (max-width: 768px) {
  /* Hero */
  #workshops-page-hero {
    padding: 110px 20px 65px;
  }

  #workshops-page-hero .hero-title    { font-size: 38px; }
  #workshops-page-hero .hero-subtitle { font-size: 17px; }
  #workshops-page-hero .hero-icon     { font-size: 55px; }
  #workshops-page-hero .hero-stats    { gap: 40px; }
  #workshops-page-hero .stat-number   { font-size: 34px; }

  /* Section */
  #workshops-page-content { 
    padding: 60px 20px; 
  }

  /* MOBILE FIX: Force single column, full width cards */
  #workshops-page-content .workshops-grid {
    display: block !important; /* Override grid */
    width: 100%;
    max-width: 100%;
  }

  #workshops-page-content .workshop-card { 
    width: 100%; 
    margin-bottom: 20px;
    display: block !important;
  }

  #workshops-page-content .workshop-title { font-size: 20px; }

  /* Stack footer items vertically on mobile */
  #workshops-page-content .workshop-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #workshops-page-content .workshop-instructor { width: 100%; }

  #workshops-page-content .workshop-btn {
    width: 100%;
    justify-content: center;
  }

  #workshops-page-content .workshop-content { padding: 20px; }
  #workshops-page-content .workshop-meta    { gap: 12px; }
}

/* Mobile Small - FIXED */
@media (max-width: 480px) {
  #workshops-page-hero {
    padding: 110px 16px 50px;
  }

  #workshops-page-hero .hero-title    { font-size: 28px; }
  #workshops-page-hero .hero-subtitle { font-size: 15px; }
  #workshops-page-hero .hero-icon     { font-size: 50px; }
  #workshops-page-hero .hero-stats    { gap: 25px; }
  #workshops-page-hero .stat-number   { font-size: 28px; }
  #workshops-page-hero .stat-label    { font-size: 13px; }

  #workshops-page-content { 
    padding: 50px 16px; 
  }

  #workshops-page-content .workshops-grid {
    display: block !important;
    width: 100%;
  }

  #workshops-page-content .workshop-card {
    width: 100%;
    margin-bottom: 18px;
  }

  #workshops-page-content .workshop-content    { padding: 18px; }
  #workshops-page-content .workshop-title      { font-size: 18px; }
  #workshops-page-content .workshop-desc       { font-size: 14px; }
  #workshops-page-content .meta-item           { font-size: 13px; }
  #workshops-page-content .workshop-partnership { font-size: 13px; padding: 10px 14px; }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
  #workshops-page-hero .hero-title { font-size: 24px; }
  #workshops-page-hero .stat-number { font-size: 24px; }

  #workshops-page-content { padding: 40px 12px; }
  
  #workshops-page-content .workshop-title { font-size: 17px; }
  #workshops-page-content .workshop-desc  { font-size: 13px; }
  #workshops-page-content .workshop-content { padding: 16px; }
}