/* LinkedIn Cards Grid & Socials Section */
.linkedin-cards-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .linkedin-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .linkedin-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* LinkedIn Card */
.linkedin-card {
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Card Header - Hidden by default, slides from top on hover */
.card-header {
  background: #1a2332;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transform: translateY(-100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  border-radius: 1.5rem 1.5rem 0 0;
}

/* Show header on card hover */
.linkedin-card:hover .card-header {
  transform: translateY(0);
  opacity: 1;
}

.card-header-content {
  flex: 1;
}

.card-campaign {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.card-campaign span {
  font-weight: 400;
  color: #94a3b8;
}

.card-company {
  color: #94a3b8;
  font-size: 0.75rem;
  margin: 0.25rem 0 0 0;
}

.linkedin-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.linkedin-icon:hover {
  transform: scale(1.1);
}

.linkedin-icon svg {
  width: 24px;
  height: 24px;
}

/* Card Slider */
.card-slider {
  position: relative;
  background: #f8fafc;
  min-height: 380px;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.slider-image.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.pdf-page-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  display: block;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-image:hover .pdf-page-image {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  color: #ffffff;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
  left: 0.75rem;
}

.slider-arrow-right {
  right: 0.75rem;
}

/* Slider Counter */
.slider-counter {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 10;
}

/* Fullscreen Button */
.fullscreen-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
  color: #ffffff;
}

.fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 640px) {
  .linkedin-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .card-slider {
    min-height: 340px;
  }
  .slider-image {
    padding: 1.5rem 1rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .linkedin-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-slider {
    min-height: 420px;
  }
}

@media (min-width: 1024px) {
  .card-slider {
    min-height: 360px;
  }
}
