/* Experience item container */
.experience-item {
  margin-bottom: 18px;
  padding: var(--spacing-md);
  background: #fafafa;
  border-radius: var(--border-radius-sm);
  transition: background 0.2s;
}

.experience-item:hover {
  background: #f5f5f5;
}

/* Experience role/title */
.experience-role {
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--color-text);
}

/* Experience details/description */
.experience-details {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Experience section title */
.experience-title {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-border);
}

/* First experience title doesn't need top margin */
.experience-title:first-of-type {
  margin-top: var(--spacing-lg);
}

/* Experience entry container */
.experience-entry {
  margin-bottom: var(--spacing-xl);
}

/* Experience title inside experience-entry */
.experience-entry .experience-title {
  margin-top: var(--spacing-lg);
}

#certificateContainer {
  display: none;
}

/* Certificate button - Matches theme button style */
.certificate-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-lg);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  background: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.certificate-button:hover {
  background: var(--color-hover);
  border-color: #ddd;
}

.certificate-button:active {
  transform: scale(0.98);
}

/* Certificate button text */
.certificate-button-text {
  line-height: 1;
}

/* Certificate icon */
.certificate-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* Certificate container - holds the iframe */
.certificate-container {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  width: 100%;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  animation: fadeIn 0.3s ease;
}

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

/* Certificate iframe */
.certificate-iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Responsive iframe height */
@media (max-width: 768px) {
  .certificate-iframe {
    height: 500px;
  }
}

/* Image collage for experience photos - Improved grid layout */
.image-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

.image-collage img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-collage img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Second image collage variant - 2 column layout */
.image-collage-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

.image-collage-2 img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-collage-2 img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Responsive design for tablets */
@media (max-width: 968px) {
  .image-collage {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .image-collage img {
    height: 220px;
  }
  
  .image-collage-2 img {
    height: 280px;
  }
}

/* Responsive design for mobile screens */
@media (max-width: 768px) {
  .image-collage {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .image-collage img {
    height: 200px;
    max-width: 100%;
  }
  
  .image-collage-2 {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .image-collage-2 img {
    height: 250px;
    max-width: 100%;
  }
}

