/* ===== ACHIEVEMENTS PAGE - PREMIUM GALLERY STYLE ===== */

/* Premium Gallery Grid */
.gallery-grid-premium {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columns for large view */
  gap: 2.5rem;
  padding: 2rem 0;
}

.gallery-item-premium {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* Softer, more premium shadow */
  transition: all 0.4s ease;
  aspect-ratio: 16/10;
  /* Wider, cinematic aspect ratio */
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.gallery-item-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

.gallery-image-premium {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover to fill the frame nicely */
  transition: transform 0.6s ease;
}

.gallery-item-premium:hover .gallery-image-premium {
  transform: scale(1.08);
}

/* Overlay for premium feel */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item-premium:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: #fff;
  font-size: 2rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.gallery-item-premium:hover .gallery-overlay i {
  transform: scale(1);
}


/* Highlights Section */
.highlight-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-base);
  border: 2px solid var(--border-color);
}

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

.highlight-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 2rem;
}

.highlight-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.highlight-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Expertise Section */
.expertise-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition-base);
  border-left: 4px solid var(--primary-color);
}

.expertise-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(10px);
}

.expertise-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.expertise-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-list li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
  border-bottom: 1px dashed var(--border-color);
}

.expertise-list li:last-child {
  border-bottom: none;
}

.expertise-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* Training Section */
.training-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
}

.training-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stat-value i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.stat-value span {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.training-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition-base);
}

.feature-item:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transform: translateX(10px);
}

.feature-icon {
  flex-shrink: 0;
  color: var(--success-color);
  font-size: 1.5rem;
}

.feature-content h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* Standards Cards */
.standard-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  height: 100%;
  transition: var(--transition-base);
  border-top: 4px solid var(--primary-color);
}

.standard-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.standard-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2rem;
}

.standard-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.standard-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .gallery-grid-premium {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .gallery-grid-premium {
    grid-template-columns: 1fr;
    /* Stack on mobile */
    gap: 1.5rem;
  }

  .training-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
  }
}

@media (max-width: 576px) {
  .highlight-number {
    font-size: 2rem;
  }
}

/* Loading Animation for Images */
.gallery-item-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      var(--bg-light) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      var(--bg-light) 100%);
  animation: shimmer 2s infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item-premium.loading::before {
  opacity: 1;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.visible {
  opacity: 1;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.visible .lightbox-content {
  transform: scale(1);
}

#lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 20px 0;
  height: auto;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px) {
  .lightbox-content {
    width: 95%;
  }
}