/* Final Conferences Page Styles - Fixed */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #2c1810 0%, #8b4513 50%, #d2691e 100%);
  padding: 8rem 0 4rem;
  margin-top: 80px;
  color: white;
  position: relative;
  overflow: hidden;
}


.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.page-header-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb span {
  opacity: 0.6;
}

/* Quick Stats Section - Responsive */
.quick-stats {
  padding: 4rem 0;
  background: #f8f9fa;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width:100% !important;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c1810, #8b4513);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
}

.stat-content h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.stat-content p {
  color: #7f8c8d;
  font-weight: 500;
}

/* Featured Conferences Slider - Fixed */
.featured-conferences {
  padding: 1rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  height: 500px; /* ارتفاع ثابت برای اسلایدر */
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  height: 450px;
}

.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
  position: relative;
  height: 220px; /* ارتفاع ثابت برای تصاویر */
  overflow: hidden;
  flex-shrink: 0;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 2rem;
  color: white;
}

.conference-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.featured-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.featured-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #5a6c7d;
  font-size: 0.95rem;
}

.meta-item i {
  color: #3498db;
  width: 20px;
}

.featured-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn-primary, .btn-outline {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  flex: 1;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #8b4513, #d2691e);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid #d2691e;
  color: #d2691e;
}

.btn-outline:hover {
  background: #d2691e;
  color: white;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
  background: white;
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 2rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bdc3c7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #8b4513;
  transform: scale(1.2);
}  

/* Upcoming Conferences Grid - Fixed */
.upcoming-conferences {
  padding: 6rem 0;
  background: white;
}

.conferences-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 ستون ثابت */
  gap: 2rem;
  margin-bottom: 3rem;
}

.conference-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.conference-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.conference-image {
  position: relative;
  height: 470px;
  overflow: hidden;
  flex-shrink: 0;
}

.conference-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.conference-card:hover .conference-image img {
  transform: scale(1.05);
}

.conference-status {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.conference-status.active {
  background: #27ae60;
  color: white;
}

.conference-status.finished {
  background: #95a5a6;
  color: white;
}

.conference-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.conference-category {
  display: inline-block;
  background: #ecf0f1;
  color: #2c3e50;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.section-header{
    margin-bottom: 1rem !important;
}
.conference-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.4;
  min-height: 3.5em;
}

.conference-meta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex: 1;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #5a6c7d;
  font-size: 0.9rem;
}

.meta-item i {
  color: #d2691e;
  width: 16px;
  flex-shrink: 0;
}

.conference-deadline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff3cd;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #856404;
  font-size: 0.9rem;
}

.conference-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.load-more-container {
  text-align: center;
}

.load-more-btn {
  background: linear-gradient(135deg, #8b4513, #d2691e);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Conference Services */
.conference-services {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b4513, #d2691e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.service-description {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: #d2691e;
}

/* Responsive Design */
@media (max-width: 1200px) {

  .conferences-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .featured-card {
    margin: 0 1rem;
    height: auto;
  }
  
  .featured-image {
    height: 200px;
  }
  
  .conferences-grid {
    grid-template-columns: 1fr;
  }
  
  .conference-meta {
    grid-template-columns: 1fr;
  }
  
  .conference-actions {
    flex-direction: column;
  }
  
  .slider-controls {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .slider-container {
    height: auto;
  }
}

@media (max-width: 480px) {
  .featured-meta {
    grid-template-columns: 1fr;
  }
  
  .featured-actions {
    flex-direction: column;
  }
  
  .featured-content {
    padding: 1.5rem;
  }
  
  .featured-title {
    font-size: 1.3rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure images display properly */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

















