/* TECA Events */
:root {
  --teca-header-height: 70px;
}

/* Hero Section */
.teca-events-hero {
  position: relative;
  min-height: 60vh;
  background: linear-gradient(135deg, var(--teca-sky-mid), var(--teca-ring-blue));
  color: #fff;
  overflow: hidden;
  padding: 100px 0 80px;
}

.teca-events-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/pattern-dots.svg');
  opacity: 0.1;
}

.teca-events-hero-content {
  position: relative;
  z-index: 2;
}

.teca-events-hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.teca-events-hero-title span {
  color: var(--teca-text-yellow);
}

.teca-events-hero-description {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.teca-category-filters {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-top: -50px;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.teca-category-title {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--teca-ring-blue);
}

/* Category Pills */
.teca-category-pills {
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
}

.teca-category-pills::-webkit-scrollbar {
  height: 4px;
}

.teca-category-pills::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-pill:hover {
  background: #e5e7eb;
  color: #374151;
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--teca-ring-blue);
  color: white;
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.2);
}

.category-pill .badge {
  background: rgba(255,255,255,0.3);
  color: inherit;
}

.category-pill.active .badge {
  background: rgba(255,255,255,0.3);
  color: white;
}

/* Filter Bar */
.teca-filter-bar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

/* Advanced Category Dropdown */
.dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 0.5rem;
  max-height: 350px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 0.7rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
}

.dropdown-item.active {
  background-color: var(--teca-ring-blue);
  color: white;
}

.dropdown-item.active i {
  color: white !important;
}

/* Events Header */
.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.events-title h4 {
  font-weight: 600;
  color: var(--teca-ring-blue);
}

/* Make old grid items work with new design */
.teca-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 2rem;
}

.teca-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--teca-ring-blue);
  background: white;
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
}

.teca-category-item:hover,
.teca-category-item.active {
  background: var(--teca-ring-blue);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.teca-category-item:hover .teca-category-icon,
.teca-category-item.active .teca-category-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.teca-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.1);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.teca-category-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.teca-category-count {
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .teca-filter-bar {
    padding: 1rem;
  }
  
  .events-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.teca-view-controls {
  display: flex;
  gap: 10px;
}

.teca-view-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.teca-view-btn:hover,
.teca-view-btn.active {
  background: var(--teca-ring-blue);
  color: #fff;
  border-color: var(--teca-ring-blue);
}

.teca-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

/* Event Card Design */
.teca-event-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.teca-event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.teca-event-card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.teca-event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.teca-event-card:hover .teca-event-card-img {
  transform: scale(1.05);
}

.teca-event-card-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--teca-ring-blue);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.teca-event-card-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  color: var(--teca-ring-blue);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 2;
}

.teca-event-card-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.teca-event-card-date .month {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.teca-event-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.teca-event-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--teca-ring-blue);
}

.teca-event-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.teca-event-card-title a:hover {
  color: var(--teca-grass-green);
}

.teca-event-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.teca-event-card-info-item {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.teca-event-card-info-item i {
  color: var(--teca-sky-mid);
  margin-right: 8px;
}

.teca-event-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.teca-event-card-organizer {
  color: var(--teca-stem-green);
  font-size: 0.9rem;
  font-weight: 500;
}

.teca-event-card-btn {
  display: inline-block;
  background: var(--teca-ring-blue);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.teca-event-card-btn:hover {
  background: var(--teca-grass-green);
}

/* List View */
.teca-event-list-item {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  margin-bottom: 25px;
}

.teca-event-list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.teca-event-list-img {
  width: 250px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.teca-event-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.teca-event-list-item:hover .teca-event-list-img img {
  transform: scale(1.05);
}

.teca-event-list-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.teca-event-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.teca-event-list-category {
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--teca-ring-blue);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.teca-event-list-date {
  color: var(--teca-ring-blue);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.teca-event-list-date i {
  margin-right: 8px;
}

.teca-event-list-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teca-ring-blue);
  margin-bottom: 15px;
}

.teca-event-list-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.teca-event-list-title a:hover {
  color: var(--teca-grass-green);
}

.teca-event-list-desc {
  color: #6b7280;
  margin-bottom: 20px;
}

.teca-event-list-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.teca-event-list-meta-item {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.teca-event-list-meta-item i {
  color: var(--teca-sky-mid);
  margin-right: 8px;
}

.teca-event-list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.teca-event-list-organizer {
  color: var(--teca-stem-green);
  font-weight: 500;
}

.teca-pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.teca-pagination ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.teca-pagination .page-item .page-link {
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  color: var(--teca-ring-blue);
  font-weight: 500;
  transition: all 0.2s;
}

.teca-pagination .page-item.active .page-link,
.teca-pagination .page-item .page-link:hover {
  background-color: var(--teca-ring-blue);
  border-color: var(--teca-ring-blue);
  color: #fff;
}

.teca-featured-events-section {
  background-color: #f9fafb;
  position: relative;
  padding: 5rem 0;
}

.featured-floating-badge {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.badge-inner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

.badge-inner i {
  color: white;
  font-size: 1.25rem;
}

.featured-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--teca-ring-blue);
  text-transform: uppercase;
}

.featured-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0;
}

.featured-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.featured-events-slider {
  margin: 0 -15px;
  padding: 15px 0;
  position: relative;
}

/* Slider Navigation */
.featured-slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  left: 0;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 -10px;
}

.slider-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  color: #4b5563;
  margin: 0 10px;
}

.slider-nav-btn:hover {
  background: var(--teca-ring-blue);
  color: white;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.slider-nav-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.prev-btn {
  margin-left: -24px;
}

.next-btn {
  margin-right: -24px;
}

@media (max-width: 767px) {
  .slider-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .prev-btn {
    margin-left: -5px;
  }
  
  .next-btn {
    margin-right: -5px;
  }
}

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

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

.featured-event-image {
  position: relative;
  overflow: hidden;
}

.image-wrapper {
  position: relative;
  padding-top: 60%;
}

.featured-event-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fcd34d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #92400e;
  z-index: 2;
}

.featured-date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: white;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 2;
}

.featured-date-badge .month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  line-height: 1;
}

.featured-date-badge .day {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.2;
}

.featured-category-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 8px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-event-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.featured-event-card:hover .featured-event-title {
  color: var(--teca-ring-blue);
}

.featured-event-meta {
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.featured-event-description {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.featured-event-footer {
  margin-top: auto;
}

/* Host Your Own Event Styles */
.teca-host-event-section {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.host-event-wrapper {
  position: relative;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  margin: 30px 0;
  overflow: hidden;
}

.host-event-content {
  position: relative;
  z-index: 5;
}

.event-tag span {
  display: inline-block;
  background-color: rgba(var(--teca-ring-blue-rgb), 0.1);
  color: var(--teca-ring-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 100px;
}

.host-event-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.host-event-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #475569;
}

.host-event-benefits {
  list-style-type: none;
  padding: 0;
}

.host-event-benefits li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  color: #334155;
}

.host-event-benefits li i {
  color: var(--teca-ring-blue);
  margin-right: 12px;
  font-size: 1.1rem;
}

.host-event-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.visual-element {
  position: relative;
}

.visual-main {
  position: relative;
  z-index: 2;
  transform: rotate(2deg);
  transition: all 0.5s ease;
}

.visual-main:hover {
  transform: rotate(0deg) scale(1.02);
}

.visual-element img {
  border: 5px solid white;
}

.visual-accent-1, .visual-accent-2, .visual-accent-3 {
  position: absolute;
  z-index: 1;
}

.visual-accent-1 {
  top: -15px;
  left: -30px;
}

.visual-accent-2 {
  bottom: -15px;
  right: -20px;
}

.visual-accent-3 {
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
}

.accent-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--teca-ring-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  animation: float 3s infinite ease-in-out;
}

.visual-accent-2 .accent-icon {
  background: #f59e0b;
  animation-delay: 1.5s;
}

.floating-badge {
  position: absolute;
  background: #ef4444;
  color: white;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
  animation: float 3s infinite ease-in-out;
  animation-delay: 0.7s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 991px) {
  .host-event-title {
    font-size: 2rem;
  }
  
  .host-event-content {
    padding: 2rem !important;
  }
}

.featured-event-footer .btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.featured-event-footer .btn-block {
  display: block;
  width: 100%;
}

@media (max-width: 767px) {
  .featured-title {
    font-size: 2rem;
  }
  
  .featured-event-card {
    margin-bottom: 30px;
  }
}

.teca-pagination {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.pagination-modern {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-info {
  font-size: 0.9rem;
  color: #6b7280;
}

.pagination-modern .page-item .page-link {
  border: none;
  margin: 0 3px;
  padding: 10px 18px;
  color: #4b5563;
  border-radius: 50px;
  font-weight: 600;
  background-color: #f3f4f6;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  min-width: 45px;
  text-align: center;
}

.pagination-modern .page-item .page-link:hover {
  background-color: #e5e7eb;
  color: var(--teca-ring-blue);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.pagination-modern .page-item.active .page-link {
  background: linear-gradient(135deg, var(--teca-ring-blue), #3b82f6);
  color: white;
  box-shadow: 0 5px 12px rgba(30, 58, 138, 0.25);
}

.pagination-modern .page-item.disabled .page-link {
  background-color: #f3f4f6;
  color: #d1d5db;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 576px) {
  .pagination-modern .page-item .page-link {
    padding: 8px 14px;
    font-size: 0.85rem;
    min-width: 36px;
  }
  
  .pagination-info {
    text-align: center;
    width: 100%;
  }
}
