/* Global Styles */
:root {
  --primary-color: #3e4095;
  --primary-rgb: 62, 64, 149; /* RGB values of the primary color for transparency */
  --primary-color-hover: #333383;
  --accent-color: #e63946;
  --accent-color-hover: #c53240;
  --secondary-color: #778da9;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
}

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  color: #333;
  background-color: #fff;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--primary-color-hover);
  color: white;
}

.btn-accent-custom {
  background-color: var(--accent-color);
  color: white;
  border: none;
}

.btn-accent-custom:hover,
.btn-accent-custom:focus {
  background-color: var(--accent-color-hover);
  color: white;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Text Colors */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
  background-color: var(--secondary-color) !important;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--dark-color);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary-color);
}

/* Hero Section */
.wave-divider {
  height: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,224L48,218.7C96,213,192,203,288,197.3C384,192,480,192,576,213.3C672,235,768,277,864,272C960,267,1056,213,1152,181.3C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  margin-top: -1px;
}

/* Light Hero Background with Pattern */
.hero-light {
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}

.hero-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233e4095' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
}

/* Last Joined Speakers Style */
.last-joined-speakers {
  margin-top: 2rem;
}

.last-joined-heading {
  display: flex;
  justify-content: center;
  align-items: center;
}

.speaker-avatars {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.speaker-avatar-wrapper {
  position: relative;
}

.speaker-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.speaker-avatar:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.speaker-name-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 10;
}

.speaker-avatar-wrapper:hover .speaker-name-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -25px;
}

.more-circle {
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

/* Speaker Circles Below Description */
.speaker-circles-container {
  position: relative;
  z-index: 1;
}

.speaker-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 3px solid white;
  transition: all 0.3s ease;
  position: relative;
}

.speaker-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.more-speaker-circle {
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.more-speaker-circle:hover {
  background-color: var(--primary-color-hover);
}

/* Featured Speaker Slider - Clean Professional Design */
.featured-speaker-slider {
  position: relative;
  z-index: 1;
}

.featured-speaker-minimal {
  position: relative;
  overflow: hidden;
}

.featured-speaker-slider {
  position: relative;
}

.featured-speaker-portrait {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  height: 340px;
}

.featured-speaker-portrait::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.7) 0%, 
    rgba(0,0,0,0.3) 10%, 
    rgba(0,0,0,0) 20%, 
    rgba(0,0,0,0) 80%, 
    rgba(0,0,0,0.3) 90%, 
    rgba(0,0,0,0.7) 100%
  );
  opacity: 1;
  z-index: 2;
  pointer-events: none;
}

.featured-speaker-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}

/* Add these edge blurs to create a professional magazine-like effect */
.featured-speaker-slider::before,
.featured-speaker-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 20%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.featured-speaker-slider::before {
  left: 0;
  background: linear-gradient(90deg, rgba(248, 249, 250, 0.9) 0%, rgba(248, 249, 250, 0) 100%);
}

.featured-speaker-slider::after {
  right: 0;
  background: linear-gradient(270deg, rgba(248, 249, 250, 0.9) 0%, rgba(248, 249, 250, 0) 100%);
}

.featured-speaker-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0));
  padding: 50px 20px 20px;
  text-align: center;
  z-index: 5;
}

.featured-speaker-name h4 {
  color: white;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.featured-speaker-name p {
  color: rgba(255, 255, 255, 0.9);
  margin: 5px 0 0;
  font-size: 0.9rem;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-item:hover .featured-speaker-portrait img {
  transform: scale(1.05);
}


.featured-speaker-control {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0.8;
}

.featured-speaker-control:hover {
  opacity: 1;
  background-color: white;
}

.featured-speaker-control .carousel-control-prev-icon,
.featured-speaker-control .carousel-control-next-icon {
  filter: invert(40%) sepia(88%) saturate(765%) hue-rotate(213deg) brightness(92%) contrast(95%);
}

.featured-speaker-indicators {
  bottom: -30px;
}

.featured-speaker-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(62, 64, 149, 0.3);
  border: none;
}

.featured-speaker-indicators button.active {
  background-color: var(--primary-color);
  width: 12px;
  height: 12px;
}

/* Speaker Booking Form */
.booking-form .form-floating > label {
  right: 0;
  left: auto;
  padding-right: 1rem;
}

.booking-form .form-floating > .form-control {
  padding-right: 1rem;
}

.booking-form .form-floating > .form-select {
  padding-right: 1rem;
}

.booking-form .form-control:focus,
.booking-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(62, 64, 149, 0.25);
}

/* Hero content animations */
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-title {
  animation: fade-up 1s ease-out forwards;
}

.hero-subtitle {
  animation: fade-up 1s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-buttons {
  animation: fade-up 1s ease-out 0.6s forwards;
  opacity: 0;
}

/* New Speakers Section */
.new-speakers-section {
  background: linear-gradient(135deg, rgba(62, 64, 149, 0.05) 0%, rgba(62, 64, 149, 0.1) 100%);
  border-radius: 16px;
  overflow: hidden;
}

.speaker-profile-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(62, 64, 149, 0.1);
}

.speaker-profile-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(62, 64, 149, 0.1);
}

.speaker-profile-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

/* Top Speakers Section */
.top-speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.top-speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  background-color: #fff;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.top-speaker-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.top-speaker-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary-color);
}

/* Speaker Card */
.speaker-card {
  transition: transform 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

.speaker-card:hover {
  transform: translateY(-5px);
}

.speaker-img {
  height: 280px;
  width: 100%;
  object-fit: cover;
}

.topic-badge {
  display: inline-block;
  background-color: rgba(62, 64, 149, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Event Card */
.event-card {
  transition: transform 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-date {
  background-color: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.event-date small {
  display: block;
  font-size: 0.7rem;
}

.event-date strong {
  display: block;
  font-size: 1.2rem;
}

.event-card {
  transition: all 0.35s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transform: translateY(0);
}

.event-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
}

.event-card .card-img-top {
  transition: transform 0.5s ease;
}

.event-card:hover .card-img-top {
  transform: scale(1.05);
}

.event-card .event-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.event-card:hover .event-overlay {
  height: 100%;
  opacity: 1;
  padding: 1.5rem;
}

.event-card .event-overlay-content {
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease 0.1s;
  width: 100%;
}

.event-card:hover .event-overlay-content {
  opacity: 1;
  transform: translateY(0);
}

.event-type-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Topic Cards */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Speakers Hero Section */
.speakers-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #252a8b 100%);
  overflow: hidden;
  color: white;
}

.speakers-pattern-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero-shape-left {
  position: absolute;
  bottom: 20px;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero-shape-right {
  position: absolute;
  top: 30px;
  right: 10%;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.opacity-85 {
  opacity: 0.85;
}

/* Hero icon with microphone */
.hero-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  margin-bottom: 1rem;
}

.hero-icon-circle i {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero stats */
.hero-stats-wrapper {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  margin-top: 1.5rem;
}

.hero-stat {
  text-align: center;
  padding: 0.5rem 0;
}

.hero-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Testimonials */
.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  width: auto;
  padding: 0 15px;
}

.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Pagination */
.custom-pagination .page-link {
  color: var(--primary-color);
}

.custom-pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Speaker Content Management */
.content-tabs .nav-link {
  font-weight: 500;
  color: var(--dark-color);
  border-color: transparent;
  border-radius: 0;
}

.content-tabs .nav-link.active {
  color: var(--primary-color);
  border-color: transparent;
  border-bottom: 2px solid var(--primary-color);
  background-color: transparent;
}

.drop-zone {
  border: 2px dashed #ccc;
  border-radius: 8px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.drop-zone__prompt {
  color: #999;
  transition: all 0.2s ease;
}

.drop-zone__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-zone__thumb {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: #888;
}

.status-badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.status-draft {
  background-color: #fef3c7;
  color: #92400e;
}

.status-published {
  background-color: #dcfce7;
  color: #166534;
}

/* Sliding Panels */
.side-panel {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease-in-out;
  z-index: 1050;
  overflow-y: auto;
  padding-bottom: 80px; /* Space for fixed footer */
}

.side-panel-right {
  right: 0;
  transform: translateX(100%);
}

.side-panel-left {
  left: 0;
  transform: translateX(-100%);
}

.side-panel.show {
  transform: translateX(0);
}

.side-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.side-panel-body {
  padding: 1.5rem;
}

.side-panel-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  padding: 1rem;
  background-color: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .speaker-img {
    height: 220px;
  }
  
  .speaker-img-container {
    height: 220px;
  }

  h1.display-4 {
    font-size: 2.5rem;
  }
  
  .event-date {
    padding: 0.3rem 0.6rem;
  }
  
  .event-date strong {
    font-size: 1rem;
  }
  
  /* Hero responsive adjustments */
  .hero-stats-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem;
  }
  
  .hero-stat {
    padding: 0.5rem;
    min-width: 100px;
  }
  
  .hero-stat-number {
    font-size: 1.2rem;
  }
  
  .hero-shape-left, 
  .hero-shape-right {
    display: none;
  }
  
  .hero-icon-circle {
    width: 60px;
    height: 60px;
  }
  
  .hero-icon-circle i {
    font-size: 1.3rem !important;
  }
  
  /* Side panel responsive */
  .side-panel {
    max-width: 100%;
  }
  
  .side-panel-footer {
    max-width: 100%;
  }
}

/* Filter styles */
.filter-dropdown {
  border-color: #dee2e6;
  font-size: 0.9rem;
}

.search-input {
  border-left: none;
}

.input-group-text {
  border-right: none;
}

/* Detail page styles */
.custom-tabs .nav-link {
  color: var(--gray-color);
  border: none;
  padding: 1rem;
  border-radius: 0;
  border-bottom: 3px solid transparent;
}

.custom-tabs .nav-link.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

/* Schedule styles */
.schedule-time {
  background-color: rgba(62, 64, 149, 0.1);
  padding: 0.5rem;
  border-radius: 5px;
  font-weight: 500;
}

/* Language Switcher Styles */
.language-switcher .dropdown-item.active {
  background-color: rgba(62, 64, 149, 0.1);
  color: var(--primary-color);
  font-weight: 500;
}

.language-switcher .dropdown-item:hover {
  background-color: rgba(62, 64, 149, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
/* SVG Container */
.svg-container {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.svg-container object {
  width: 100%;
  height: auto;
  display: block;
}

.svg-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(57, 73, 171, 0.1) !important;
}

/* Searchable Multi-Select Dropdown */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  min-height: 38px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(62, 64, 149, 0.25);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 2px 10px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: white;
  margin-right: 5px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--primary-color);
}

.select2-dropdown {
  border-color: #ced4da;
}

.select2-container--open .select2-dropdown {
  border-color: var(--primary-color);
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  padding: 0.375rem 0.75rem;
}

/* Favorite Button */
.favorite-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  z-index: 10;
}

.favorite-btn:hover {
  background-color: white;
}

.favorite-btn .fa-heart {
  color: #ccc;
  transition: all 0.2s ease;
}

.favorite-btn:hover .fa-heart {
  color: #ff6b6b;
}

.favorite-btn.active .fa-heart {
  color: #ff6b6b;
}

/* Speaker Card */
.speaker-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.speaker-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.speaker-card-link:hover {
  color: inherit;
}

.speaker-card .country-flag {
  font-size: 1.2rem;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.speaker-location {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.5rem;
}

/* Speaker Bio Overlay */
.speaker-img-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 280px; /* Same height as the speaker-img */
}

.speaker-bio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--primary-rgb), 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  z-index: 2;
}

.speaker-card:hover .speaker-bio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.speaker-bio-content {
  text-align: center;
  max-height: 100%;
  overflow-y: auto;
  padding: 0.5rem;
}

.speaker-bio-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Prevent the favorite button from triggering the link */
.favorite-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  z-index: 10;
}

.favorite-btn:hover {
  background-color: white;
  transform: scale(1.1);
}

/* Toast Notification */
.toast {
  z-index: 1050;
  max-width: 300px;
}

.toast-header {
  background-color: var(--primary-color);
  color: white;
  border-bottom: none;
}

.toast-header .btn-close {
  margin-left: auto;
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Speaker Header Image Section */
.speaker-header-image {
  width: 100%;
  height: 250px; /* Reduced height for better overlap */
  overflow: hidden;
  margin-bottom: 0;
}

.speaker-header-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.speaker-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

/* Speaker profile card with overlap */
#speaker-detail {
  margin-top: 0;  /* Removed negative margin to eliminate overlap */
}

#speaker-detail .container {
  position: relative;
  z-index: 10;
}

/* Profile card special styling for overlap effect */
#speaker-detail .col-lg-4 .card:first-child {
  margin-top: 1.5rem;  /* Adds space at the top of the card */
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

#speaker-detail .col-lg-4 .card:first-child:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Bio column styling */
#speaker-detail .col-lg-8 .card:first-child {
  margin-top: 1.5rem;  /* Match the profile card margin */
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

#speaker-detail .col-lg-8 .card:first-child:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.speaker-header-image:hover .speaker-header-bg {
  transform: scale(1.05);
}

/* Header change button styling */
.change-header-btn {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  z-index: 100;
}

.change-header-btn:hover {
  background-color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Platform Process Section */
.platform-process-section {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.platform-step-card {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.platform-step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.platform-step-icon-container {
  position: relative;
  display: inline-block;
}

.platform-step-icon {
  background-color: var(--primary-color);
  color: white;
  width: 80px;
  height: 80px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--accent-color);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  border: 2px solid white;
}

.cursor-pointer {
  cursor: pointer;
}

.suggested-header-image {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.suggested-header-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

/* Video Card Styles */
.video-card {
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: white;
  margin-bottom: 1.5rem;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-card-media {
  position: relative;
}

.video-card .ratio {
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
  width: 100%;
}

.video-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-description-preview {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: auto;
}

.view-video-btn {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.view-video-btn:hover {
  color: var(--primary-color-hover);
  text-decoration: underline;
}

.play-btn {
  z-index: 5;
  transition: all 0.3s ease;
}

.play-btn:hover {
  background-color: var(--primary-color) !important;
  transform: scale(1.1);
}

.play-btn:hover i {
  color: white !important;
}

.toast-body {
  background-color: #fff;
  color: #333;
  padding: 12px 16px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Video duration badge */
.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 5;
}

/* Book card styling */
.book-cover {
  height: 200px;
  overflow: hidden;
}

.book-cover img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

/* Follower avatar */
.follower-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.follower-item {
  transition: background-color 0.2s ease;
  margin-bottom: 8px;
}

.follower-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Blog card styles */
.blog-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

/* Favorite and Follow buttons */
.favorite-toggle.active {
  background-color: #fff0f0;
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.favorite-toggle.active i {
  color: #ff6b6b;
}

.follow-toggle i.fa-user-check {
  color: #fff;
}

/* Social Share Buttons */
.social-share-buttons {
  margin-top: 10px;
}

.social-share-buttons h6 {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark-color);
}

.social-share-btn {
  transition: all 0.3s ease;
  border: 1px solid #ccc;
  margin-bottom: 5px;
  color: #444;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.social-share-btn i {
  font-size: 1rem;
  margin-right: 5px;
}

.share-twitter {
  color: #1DA1F2;
  border-color: #1DA1F2;
}

.share-twitter:hover {
  background-color: #1DA1F2;
  color: white;
}

.share-facebook {
  color: #4267B2;
  border-color: #4267B2;
}

.share-facebook:hover {
  background-color: #4267B2;
  color: white;
}

.share-linkedin {
  color: #0077B5;
  border-color: #0077B5;
}

.share-linkedin:hover {
  background-color: #0077B5;
  color: white;
}

.share-whatsapp {
  color: #25D366;
  border-color: #25D366;
}

.share-whatsapp:hover {
  background-color: #25D366;
  color: white;
}

.share-telegram {
  color: #0088cc;
  border-color: #0088cc;
}

.share-telegram:hover {
  background-color: #0088cc;
  color: white;
}

.share-copy {
  color: #6c757d;
  border-color: #6c757d;
}

.share-copy:hover {
  background-color: #6c757d;
  color: white;
}

/* RTL specific adjustments for share buttons */
html[dir="rtl"] .social-share-btn i {
  margin-right: 0;
  margin-left: 5px;
}

/* Blog Specific Styles */
.blog-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.blog-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .card-img-top {
  transform: scale(1.05);
}

.featured-blog {
  transition: all 0.3s ease;
}

.featured-blog:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.blog-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.blog-content ul {
  padding-right: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-content ul li {
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  font-style: italic;
  position: relative;
}

.blog-featured-image {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.blog-featured-image:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-featured-image:hover:after {
  opacity: 1;
}

/* Country multi-select dropdown styles */
.country-select-container {
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  cursor: text;
}

.country-search {
  flex: 1;
  min-width: 60px;
  height: 32px;
  padding: 0 10px;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.country-search:focus {
  box-shadow: none;
}

.country-dropdown {
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  padding: 0;
  z-index: 1050;
}

.country-dropdown.show {
  opacity: 1;
  visibility: visible;
}

.country-dropdown .dropdown-item {
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.country-dropdown .dropdown-item:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
}

.country-dropdown .dropdown-item.active {
  background-color: rgba(var(--primary-rgb), 0.15);
  color: var(--primary-color);
}

.country-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  border-radius: 16px;
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  font-size: 0.85rem;
}

.country-badge .remove-badge {
  margin-right: 5px;
  margin-left: -2px;
  cursor: pointer;
  color: var(--gray-color);
  transition: all 0.2s ease;
}

.country-badge .remove-badge:hover {
  color: var(--primary-color);
}

/* RTL specific dropdown styles */
html[dir="rtl"] .country-badge .remove-badge {
  margin-right: -2px;
  margin-left: 5px;
}

html[dir="rtl"] .country-badge {
  margin: 2px 0 2px 4px;
}

/* Content Management Styles */
.content-tabs .nav-link {
  color: #333;
  font-weight: 500;
  border: none;
  padding: 12px 20px;
  border-radius: 0;
}

.content-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: #fff;
  border-top: 3px solid var(--primary-color);
  border-right: 1px solid #dee2e6;
  border-left: 1px solid #dee2e6;
  margin-bottom: -1px;
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
}

.drop-zone {
  max-width: 100%;
  height: 200px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  font-size: 1.2rem;
  cursor: pointer;
  color: #cccccc;
  border: 2px dashed #ddd;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.drop-zone--over {
  border-style: solid;
  border-color: var(--primary-color);
}

.drop-zone__input {
  display: none;
}

.drop-zone__thumb {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-color: #cccccc;
  background-size: cover;
  background-position: center;
  position: relative;
}

.drop-zone__thumb::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  font-size: 14px;
  text-align: center;
}
