/* volunteer.css */
@import url('./base.css');
* {
  font-family: 'Poppins', sans-serif !important;
}

body {
    /* font-family: 'Playfair Display', serif; */
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    display: flex;
  flex-direction: column;
  min-height: 100vh;  /* full viewport height */
  margin: 0; 
}
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem;
    padding-bottom: 4rem;
    flex: 1;
  display: flex;
  flex-direction: column;
}

.tagline {
    margin-top: 10px;
    font-size: 1.2rem;
    opacity: 0.9;
}
.volunteer-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.volunteer-title {
    margin: 1rem 0 2rem 0;
    color: #2c3e50;
    text-align: center;
    flex: 1; /* Takes up all available space */
    left: 0;
    right: 0;
}

.filter-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: auto; /* Pushes filters to the right */
    z-index: 1; /* Keeps filters above the title */
}
select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
   
}

.event-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 25px;
    max-width: 100%; /* Responsive on small screens */
}

.event-header {
    height: 160px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.event-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.event-title {
    margin: 0;
    color: #3498db;
    font-size: 1.5rem;
}
.event-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
.status-pending {
    background-color: #f39c12;
    color: white;
}
.status-approved {
    background-color: #2ecc71;
    color: white;
}
.status-denied {
    background-color: #e74c3c;
    color: white;
}
.event-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.event-details h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #7f8c8d;
    font-size: 1rem;
}
.event-details p {
    margin: 0 0 15px;
}
.teams-section {
    margin-top: 20px;
}
.team-item {
    background-color: #f5f7fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
}
.team-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.team-header h4 {
    margin: 0;
    color: #34495e;
}
.team-size {
    background-color: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}
.btn {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}
.btn-approve {
    background-color: #2ecc71;
    color: white;
}
.btn-approve:hover {
    background-color: #27ae60;
}
.btn-deny {
    background-color: #e74c3c;
    color: white;
}
.btn-deny:hover {
    background-color: #c0392b;
}
.btn-view {
    background-color: #3498db;
    color: white;
}
.btn-view:hover {
    background-color: #2980b9;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.page-btn {
    background-color: white;
    border: 1px solid #ddd;
    padding: 8px 14px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
}
.page-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.empty-state, .practice-state {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px;
}
.empty-state, .practice-state p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.signup-btn {
    background-color: #405735;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.signup-btn:hover {
    background-color: #2d3d25;
}
.details-btn {
    background-color: #405735;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.details-btn:hover {
    background-color: #2d3d25;
}
.button-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.button-container a {
    text-decoration: none;
}

.gallery-thumb {
    width: 120px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 4px 8px 0;
    display: inline-block;
}

.gallery-thumbs.scrollable {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.gallery-thumbs.vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-bottom: 0.5rem;
}


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

#eventsContainer {
    padding: 0;
}
.org-description {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 8px;
}
.org-mission {
  max-height: 100px;
  overflow-y: auto;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 8px;
}