/* page-specific styles for events.blade.php */

/* ---------- Two-column layout: main content + news sidebar ---------- */
.events-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.events-main > div + div { margin-top: 90px; }

/* ---------- Featured event ---------- */
.featured-event .event-tagline {
  max-width: 640px;
  margin: 0 auto 10px;
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.05rem;
}

.featured-event-media {
  max-width: 820px;
  margin: 0 auto 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-event-media img { width: 100%; height: auto; display: block; }

.featured-event-info {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.featured-event-info .meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-bottom: 10px;
}

.featured-event-info > p { color: var(--grey-text); margin-bottom: 18px; }

.donate-address {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
}

.donate-address strong { display: block; margin-bottom: 4px; color: var(--primary-dark); }
.donate-address span { color: var(--grey-text); }

/* ---------- Event photo gallery ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-grid-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.photo-grid-item:hover img { transform: scale(1.05); }

/* ---------- News sidebar ---------- */
.events-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 4px;
}

.sidebar-head { margin-bottom: 20px; }
.sidebar-head h3 { font-size: 1.3rem; }

.news-feed { display: flex; flex-direction: column; gap: 26px; }

.news-feed-item .media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  background: #000;
}

.news-feed-item .media img,
.news-feed-item .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-feed-item h4 {
  font-size: 0.95rem;
  margin-top: 10px;
  margin-bottom: 4px;
}

.news-feed-item .desc {
  font-size: 0.85rem;
  color: var(--grey-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .events-layout { grid-template-columns: 1fr; }
  .events-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .events-main > div + div { margin-top: 60px; }
}

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