/* Speaker Details Styles */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --primary-color: #667eea;
  --secondary-color: #f5576c;
  --text-dark: #333;
  --text-light: #666;
  --text-white: #fff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --border-radius: 15px;
  --transition: all 0.3s ease;
}

/* Hero Section */
.speaker-hero {
  padding: 80px 0;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.speaker-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  z-index: 1;
}

.speaker-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.speaker-image-container {
  flex-shrink: 0;
}

.speaker-hero-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.speaker-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.speaker-placeholder i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
}

.speaker-hero-info {
  flex: 1;
}

.speaker-hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.speaker-nationality,
.speaker-age {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.speaker-nationality i,
.speaker-age i {
  font-size: 1.1rem;
}

/* Details Grid */
.speaker-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .speaker-details-grid {
    grid-template-columns: 1fr;
  }
}

/* Info Cards */
.info-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--primary-color);
}

/* Speaker Info Grid */
.speaker-info-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: var(--transition);
}

.info-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.info-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.info-content h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.info-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* CKEditor Content Styling */
.skills-content {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.skills-content h1,
.skills-content h2,
.skills-content h3,
.skills-content h4,
.skills-content h5,
.skills-content h6 {
  color: var(--text-dark);
  margin-bottom: 10px;
  margin-top: 15px;
}

.skills-content h1:first-child,
.skills-content h2:first-child,
.skills-content h3:first-child,
.skills-content h4:first-child,
.skills-content h5:first-child,
.skills-content h6:first-child {
  margin-top: 0;
}

.skills-content p {
  margin-bottom: 10px;
}

.skills-content ul,
.skills-content ol {
  margin-bottom: 10px;
  padding-left: 20px;
}

.skills-content li {
  margin-bottom: 5px;
}

.skills-content strong,
.skills-content b {
  font-weight: bold;
  color: var(--text-dark);
}

.skills-content em,
.skills-content i {
  font-style: italic;
}

.skills-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.skills-content a:hover {
  text-decoration: underline;
}

.skills-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
  margin: 15px 0;
  font-style: italic;
  color: var(--text-light);
}

.skills-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.skills-content table th,
.skills-content table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.skills-content table th {
  background-color: #f8f9fa;
  font-weight: bold;
}

/* Conferences List */
.conferences-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.conference-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.conference-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.conference-info {
  flex: 1;
}

.conference-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.conference-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.conference-date,
.conference-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 3px;
}

.conference-date i,
.conference-location i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.conference-actions {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-white);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  color: var(--text-white);
  text-decoration: none;
}

.btn-secondary {
  background: var(--secondary-gradient);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-white);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
  color: var(--text-white);
  text-decoration: none;
}

/* Back Section */
.back-section {
  text-align: center;
  padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .speaker-hero-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .speaker-hero-title {
    font-size: 2rem;
  }

  .speaker-hero-image,
  .speaker-placeholder {
    width: 150px;
    height: 150px;
  }

  .conference-item {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .conference-actions {
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .speaker-hero {
    padding: 60px 0;
  }

  .speaker-hero-title {
    font-size: 1.8rem;
  }

  .info-card {
    padding: 20px;
  }

  .info-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-card {
  animation: fadeInUp 0.6s ease-out;
}

.info-card:nth-child(1) {
  animation-delay: 0.1s;
}
.info-card:nth-child(2) {
  animation-delay: 0.2s;
}
