/* ============================================================
   RRSS Section — LinkedIn feed carousel (ICAC 2025)
   ============================================================ */

.rrss-section {
  background: #ffffff;
  padding: 72px 0 80px;
  border-top: 1px solid #e8e8e8;
}

.rrss-section__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.rrss-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.rrss-section__label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #E30613;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.rrss-section__title {
  font-family: 'Inter', 'Arial', sans-serif;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800;
  color: #0a0a0a;
  margin: 0;
  line-height: 1.15;
}

/* ---- Carousel wrapper ---- */
.rrss-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rrss-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  flex: 1;
  scroll-behavior: smooth;
}

/* ---- Navigation arrows ---- */
.rrss-carousel__btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  padding: 0;
  line-height: 1;
}

.rrss-carousel__btn:hover {
  color: #0a0a0a;
}

.rrss-carousel__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ---- Individual card ---- */
.rrss-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e2e5e9;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rrss-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

/* Card header: logo + meta + LinkedIn icon */
.rrss-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.rrss-card__identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rrss-card__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rrss-card__avatar-img,
.rrss-card__avatar img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.rrss-card__meta {
  display: flex;
  flex-direction: column;
}

.rrss-card__org {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.rrss-card__date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

.rrss-card__network-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

.rrss-card__network-icon,
.rrss-card__linkedin-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
  object-fit: contain;
}

.rrss-card__network-link:hover .rrss-card__network-icon,
.rrss-card__network-link:hover .rrss-card__linkedin-icon,
.rrss-card__network-icon:hover,
.rrss-card__linkedin-icon:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* Gray image placeholder & multimedia container */
.rrss-card__image-placeholder {
  background: linear-gradient(150deg, #e8eaed 0%, #d1d5db 100%);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.rrss-card__image-placeholder img,
.rrss-card__image-placeholder video {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.rrss-card__image-placeholder video {
  background-color: #000;
}

.rrss-card__remote-embed {
  width: 100%;
  height: 140px;
  overflow: hidden;
  position: relative;
  background-color: #000;
}

.rrss-card__remote-embed .icac-video-player,
.rrss-card__remote-embed .icac-video-wrapper {
  width: 100% !important;
  height: 100% !important;
  padding-top: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.rrss-card__remote-embed iframe {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
}

/* Card body: text + cta */
.rrss-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rrss-card__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rrss-card__cta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #E30613;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: opacity 0.15s ease;
}

.rrss-card__cta:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .rrss-section__container {
    padding: 0 40px;
  }
  .rrss-card {
    flex: 0 0 calc(33.33% - 14px);
  }
}

@media (max-width: 768px) {
  .rrss-section {
    padding: 48px 0 56px;
  }
  .rrss-section__container {
    padding: 0 20px;
  }
  .rrss-card {
    flex: 0 0 80vw;
    max-width: 320px;
  }
  .rrss-carousel__btn {
    display: none;
  }
  .rrss-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rrss-carousel::-webkit-scrollbar {
    display: none;
  }
}
