.events-overview-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

.events-container {
  max-width: 1400px;
  margin: 0 auto;
}

.events-header {
  text-align: center;
  margin-bottom: 40px;
}

.events-title {
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
}

.events-subtitle {
  font-size: 1.2em;
  color: #7f8c8d;
  line-height: 1.6;
}

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

.event-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border-color: rgba(59, 130, 246, 0.5);
}

.event-image {
  height: 210px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.event-content {
  padding: 20px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-title {
  font-size: 1.25em;
  margin: 0 0 8px 0;
  color: #1f2933;
}

.event-subtitle {
  font-size: 0.95em;
  color: #6b7280;
  margin-bottom: 10px;
}

.event-description {
  font-size: 0.95em;
  color: #4b5563;
  margin-bottom: 12px;
  line-height: 1.5;
}

.event-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.event-meta li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.event-meta li:last-child {
  border-bottom: none;
}

.event-meta-label {
  color: #6b7280;
  font-weight: 500;
}

.event-meta-value {
  color: #111827;
  font-weight: 600;
}

.event-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: #e5edff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.btn-secondary:hover {
  background: #d4e3ff;
  border-color: rgba(37, 99, 235, 0.55);
}

.event-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background-color: rgba(0, 0, 0, 0.85) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.event-modal-content {
  background: #ffffff !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}

.event-modal-close {
  position: fixed !important;
  right: 30px !important;
  top: 30px !important;
  color: #111827 !important;
  font-size: 36px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  z-index: 100000 !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.event-modal-close:hover {
  background: transparent !important;
  color: #ef4444 !important;
  box-shadow: none !important;
  transform: scale(1.1) !important;
}

.event-modal-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  height: 100vh !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-y: auto !important;
}

.event-modal-left {
  padding: 40px !important;
  width: 100% !important;
  max-width: 900px !important;
}

.event-modal-right {
  background: #f8fafc !important;
  border-top: 1px solid #e5e7eb !important;
  width: 100% !important;
  max-width: 900px !important;
  margin-bottom: 40px !important;
}

.event-form-sticky {
  padding: 30px;
}

.event-gallery {
  margin-bottom: 30px;
}

.event-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f3f4f6;
  max-height: 350px;
}

.event-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.event-gallery-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  background: #f3f4f6;
}

.event-gallery-thumb:hover {
  border-color: #3b82f6;
  transform: scale(1.05);
}

.event-gallery-thumb.active {
  border-color: #2563eb;
}

.event-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-modal-header h2 {
  font-size: 2em;
  color: #111827;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.event-modal-subtitle {
  font-size: 1.1em;
  color: #6b7280;
  margin: 0 0 25px 0;
}

.event-modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.event-info-item {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.event-info-item > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.event-info-label {
  font-size: 0.85em;
  color: #6b7280;
  font-weight: 500;
}

.event-info-value {
  font-size: 0.95em;
  color: #111827;
  font-weight: 600;
}

.event-modal-description {
  font-size: 1em;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 25px;
  white-space: pre-line;
}

.event-modal-payment {
  background: #fef3c7;
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.event-modal-payment h3 {
  margin: 0 0 12px 0;
  font-size: 1.1em;
  color: #92400e;
}

.event-modal-payment p {
  margin: 0;
  color: #78350f;
  font-size: 0.95em;
  line-height: 1.6;
}

.event-form-title {
  font-size: 1.5em;
  color: #111827;
  margin: 0 0 25px 0;
  font-weight: 700;
}

.partners-container {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  transition: all 0.3s ease;
}

.partners-container.has-multiple {
  grid-template-columns: repeat(2, 1fr);
}

.partner-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #e5e7eb;
}

.partner-title {
  font-size: 1.1em;
  color: #111827;
  margin: 0 0 18px 0;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.event-form-group {
  margin-bottom: 15px;
}

.event-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
  font-size: 0.9em;
}

.event-form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  font-size: 0.95em;
  transition: all 0.2s ease;
  background: #ffffff;
}

.event-form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.event-add-partner-btn {
  width: 100%;
  padding: 12px 20px;
  background: #ffffff;
  color: #2563eb;
  border: 2px dashed #3b82f6;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.event-add-partner-btn:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.event-add-partner-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.event-add-partner-btn span {
  font-size: 1.3em;
  line-height: 1;
}

.event-submit-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 1em;
  border-radius: 10px;
}

@media (max-width: 968px) {
  .event-modal-left,
  .event-form-sticky {
    padding: 25px;
  }

  .event-modal-info-grid {
    grid-template-columns: 1fr;
  }

  .event-gallery-main {
    aspect-ratio: 4/3;
  }
  
  .partners-container {
    grid-template-columns: 1fr;
  }
  
  .event-modal-close {
    right: 20px;
    top: 20px;
    width: 45px;
    height: 45px;
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .events-overview-section {
    padding: 40px 16px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-modal-header h2 {
    font-size: 1.5em;
  }

  .event-modal-left,
  .event-form-sticky {
    padding: 20px;
  }

  .events-title {
    font-size: 2em;
  }

  .event-gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
  }
  
  .partners-container {
    grid-template-columns: 1fr;
  }
  
  .event-modal-close {
    right: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}