/* Events Page Styles */
.events-section {
  padding: 60px 0;
  background: #f9f5e8;
}

.events-header {
  text-align: center;
  margin-bottom: 50px;
}

.events-header h2 {
  color: #b15b55;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.events-header p {
  color: #666;
  font-size: 1.1rem;
}

/* Filters Section */
.events-filters {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #b15b55;
  box-shadow: 0 0 0 3px rgba(177, 91, 85, 0.1);
}

.filter-group input[type="date"] {
  cursor: pointer;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.btn-filter {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-filter-primary {
  background: linear-gradient(270.7deg, #ae5d01 18.59%, #f9d12b 116.77%);
  color: #fff;
}

.btn-filter-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(174, 93, 1, 0.3);
}

.btn-filter-secondary {
  background: #f5f5f5;
  color: #333;
}

.btn-filter-secondary:hover {
  background: #e0e0e0;
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Event Card */
.event-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.event-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.event-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-card-title {
  color: #b15b55;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.95rem;
}

.event-meta-item i {
  color: #b15b55;
  font-size: 1.1rem;
}

.event-card-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.event-card-description.expanded {
  max-height: none;
}

.event-card-description.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more-btn {
  background: none;
  border: none;
  color: #b15b55;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 0;
  text-align: left;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.read-more-btn:hover {
  color: #ae5d01;
  text-decoration: underline;
}

.read-more-btn i {
  margin-left: 5px;
  font-size: 0.85rem;
}

/* No Events Message */
.no-events {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-events i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 20px;
}

.no-events h3 {
  color: #666;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.no-events p {
  color: #999;
  font-size: 1rem;
}

/* Loading State */
.events-loading {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.1rem;
}

.events-loading i {
  font-size: 2rem;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
  display: block;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .events-filters {
    flex-direction: column;
  }

  .filter-group {
    min-width: 100%;
  }

  .filter-actions {
    width: 100%;
  }

  .btn-filter {
    flex: 1;
  }

  .events-header h2 {
    font-size: 2rem;
  }

  .event-card-image {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .events-section {
    padding: 40px 0;
  }

  .events-header {
    margin-bottom: 30px;
  }

  .events-filters {
    padding: 20px;
  }

  .event-card-content {
    padding: 20px;
  }

  .event-card-title {
    font-size: 1.3rem;
  }
}

