/* Conference Views Styles */
:root {
  --primary-gradient: linear-gradient(135deg, #002d57 0%, #3cb4e8 100%);
  --secondary-gradient: linear-gradient(135deg, #002d57 0%, #3cb4e8 100%);
  --primary-color: #3cb4e8;
  --secondary-color: #002d57;
  --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;
}

/* Banner Section */
.banner-section {
  position: relative;
  overflow: hidden;
}

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

.banner-section .container {
  position: relative;
  z-index: 2;
}

/* Conference Cards - Box Style */
.conference-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  background: white;
  height: 450px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
}

/* Custom Grid for 5 cards per row */
.conference-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
  padding-top: 20px;
}

/* Center cards when fewer than 5 */
.conference-grid:has(.conference-card:nth-child(5):last-child) {
  grid-template-columns: repeat(5, 1fr);
}

.conference-grid:has(.conference-card:nth-child(4):last-child) {
  grid-template-columns: repeat(4, 1fr);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.conference-grid:has(.conference-card:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.conference-grid:has(.conference-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
  max-width: 40%;
  margin-left: auto;
  margin-right: auto;
}

.conference-grid:has(.conference-card:nth-child(1):last-child) {
  grid-template-columns: repeat(1, 1fr);
  max-width: 20%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1200px) {
  .conference-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .conference-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .conference-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .conference-card {
    height: 280px;
  }

  .conference-image {
    height: 140px;
  }
}

@media (max-width: 576px) {
  .conference-grid {
    grid-template-columns: 1fr;
  }

  .conference-card {
    height: 280px;
  }

  .conference-image {
    height: 120px;
  }
}

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

.conference-image {
  position: relative;
  height: 180px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conference-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.placeholder-image {
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image i {
  font-size: 2rem;
  color: white;
}

.placeholder-image.old-conference {
  background: var(--secondary-gradient);
}

.conference-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: var(--transition);
}

.conference-card:hover .conference-overlay {
  opacity: 1;
}

.completed-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--secondary-color);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  transition: var(--transition);
  z-index: 2;
}

.conference-card:hover .completed-badge {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.conference-content {
  padding: 0px 10px -1px 0px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.conference-title {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.3;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conference-subtitle {
  color: var(--text-light);
  margin-bottom: 10px;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.2;
}

.conference-details {
  margin-bottom: 15px;
  flex: 1;
  padding-right: 11px;
}

.detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.detail-item i {
  margin-left: 6px;
  width: 12px;
  color: var(--primary-color);
  font-size: 0.7rem;
}

.detail-item span {
  color: var(--text-light);
  font-size: 0.75rem;
}

.conference-actions {
  text-align: center;
  margin-top: auto;
  padding-bottom: 5px;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  /* border-radius: 20px; */
  padding: 13px 0px;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-white);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  width: 100%;
  /* text-align: center; */
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
}

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

/* Old Conferences Specific Styles */
.old-conferences .btn-primary {
  background: var(--secondary-gradient);
}

.old-conferences .btn-primary:hover {
  box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.old-conferences .detail-item i {
  color: var(--secondary-color);
}

.old-conferences .conference-image img {
  filter: grayscale(30%);
}

.old-conferences .conference-card:hover .conference-image img {
  filter: grayscale(0%);
}

/* Empty State */
.alert-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: none;
  border-radius: var(--border-radius);
  color: var(--text-dark);
  font-size: 1.2rem;
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .banner-section h1 {
    font-size: 2rem;
  }

  .banner-section p {
    font-size: 1rem;
  }

  .conference-content {
    padding: 12px;
  }

  .conference-title {
    font-size: 0.9rem;
    min-height: 35px;
  }

  .conference-image {
    height: 100px;
  }
}

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

  .banner-section h1 {
    font-size: 1.8rem;
  }

  .conference-image {
    height: 150px;
  }

  .conference-content {
    padding: 15px;
  }
}

/* RTL Support */
html[dir="rtl"] .detail-item i {
  margin-left: 0;
  margin-right: 10px;
}

html[dir="rtl"] .completed-badge {
  right: auto;
  left: 10px;
}

html[dir="rtl"] .btn-primary {
  flex-direction: row-reverse;
}

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

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

.conference-card:nth-child(1) {
  animation-delay: 0.1s;
}
.conference-card:nth-child(2) {
  animation-delay: 0.2s;
}
.conference-card:nth-child(3) {
  animation-delay: 0.3s;
}
.conference-card:nth-child(4) {
  animation-delay: 0.4s;
}
.conference-card:nth-child(5) {
  animation-delay: 0.5s;
}
.conference-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Hover Effects */
.conference-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.conference-card:hover .conference-overlay {
  opacity: 1;
}

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

/* Old Conferences Specific Hover Effects */
.old-conferences .conference-card:hover .conference-image img {
  filter: grayscale(0%);
}

.old-conferences .btn-primary:hover {
  box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.completed-badge {
  transition: all 0.3s ease;
}

.conference-card:hover .completed-badge {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

/* Goals Section Styles */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.goal-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow-light);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid #e0e0e0;
}

.goal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.goal-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.goal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.goal-info {
  padding: 1.5rem;
}

.goal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.goal-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.goal-meta i {
  color: #ffc107;
}

.goal-description {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.goal-description p {
  margin-bottom: 0.5rem;
}

.goal-description p:last-child {
  margin-bottom: 0;
}

/* Responsive Goals Grid */
@media (max-width: 768px) {
  .goals-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .goal-info {
    padding: 1rem;
  }

  .goal-title {
    font-size: 1.1rem;
  }
}
