/* ===================================================
   VOLUNTEERING PAGE STYLES — COMMUNITY IMPACT
   MD Saib Hossain Portfolio
   =================================================== */

.volunteering-page {
  padding-top: 2rem;
}

.volunteering-hero {
  text-align: center;
  padding: 4.5rem 1.5rem 2.5rem;
  margin-bottom: 2rem;
}

/* Hero Badge */
.volunteering-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-xl);
  background: var(--gradient-main);
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.volunteering-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.volunteering-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Sections */
.padding-block {
  padding: 4.5rem 0;
}

.bg-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.volunteering-page .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  margin-bottom: 2.5rem;
  color: var(--text);
  position: relative;
  padding-bottom: 0.6rem;
  font-weight: 800;
}

.volunteering-page .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3.5px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
}

/* --- Featured Split Layout --- */
.featured-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.featured-item-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}

.featured-item-wrapper.featured-container-alternate {
  grid-template-columns: 0.8fr 1.2fr;
}

.featured-item-wrapper.featured-container-alternate .featured-info {
  grid-column: 2;
}

.featured-item-wrapper.featured-container-alternate .featured-images {
  grid-column: 1;
  grid-row: 1;
}

.featured-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-active);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-weight: 500;
}

.meta-icon {
  font-size: 1rem;
  color: var(--accent);
}

.collaborators-box {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.collaborators-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

[data-theme="light"] .collaborators-title {
  color: var(--primary);
}

.collaborators-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.collaborator-tag {
  background: var(--surface);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-weight: 500;
}

.initiatives-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin-top: 0.5rem;
}

.initiative-item {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.65;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.initiative-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
}

/* --- Featured Image Display --- */
.featured-images {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.6) 60%, transparent 100%);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* --- Contributions Cards Grid --- */
.contributions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
}

.volunteering-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.volunteering-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 0 20px var(--primary-glow);
  border-color: var(--primary);
}

.volunteering-card .volunteering-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.volunteering-card h3 {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.volunteering-card h4 {
  font-size: 0.95rem;
  color: var(--primary-light);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

[data-theme="light"] .volunteering-card h4 {
  color: var(--primary);
}

.volunteering-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-initiatives {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.card-initiative-item {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.card-initiative-item::before {
  content: '•';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-size: 1.2rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .featured-item-wrapper {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }
  .featured-item-wrapper.featured-container-alternate .featured-info {
    grid-column: 1;
  }
  .featured-item-wrapper.featured-container-alternate .featured-images {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .volunteering-hero {
    padding: 3.5rem 1rem 1.5rem;
  }
  .padding-block {
    padding: 3rem 0;
  }
  .volunteering-card {
    padding: 1.75rem 1.25rem;
  }
}
