/* Specific page styles */
.page-header {
  background-color: var(--color-surface);
  padding: 120px 0 60px; /* Account for fixed navbar */
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.achievement-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.achievement-img {
  height: 200px;
  width: 100%;
  background-color: #333; /* Placeholder color */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  overflow: hidden;
}

.achievement-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.achievement-content {
  padding: 1.5rem;
}

.achievement-date {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.watch-video-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--color-primary), #e74c3c);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.watch-video-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
  background: linear-gradient(135deg, #e74c3c, var(--color-primary));
}

.watch-video-btn:active {
  transform: translateY(0);
}

/* Video Modal Styles */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.video-modal-content {
  position: relative;
  margin: 5% auto;
  width: 90%;
  max-width: 900px;
  animation: slideDown 0.3s ease;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10000;
}

.video-modal-close:hover,
.video-modal-close:focus {
  color: var(--color-primary);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius-md);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .video-modal-close {
    top: -35px;
    font-size: 30px;
  }
}
