/* ===================== */
/* IG POSTS GRID        */
/* ===================== */

/* Filter Tabs */
.ig-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ig-filter-btn {
  padding: 10px 28px;
  border: 2px solid #1e8042;
  background: transparent;
  color: #1e8042;
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ig-filter-btn:hover,
.ig-filter-btn.active {
  background: #1e8042;
  color: #fff;
}

/* Post Grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Post Card */
.ig-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ig-card {
  cursor: pointer;
}

.ig-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* Media Container */
.ig-media {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  background: #000;
}

.ig-media img,
.ig-media video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ig-card:hover .ig-media img,
.ig-card:hover .ig-media video {
  transform: scale(1.05);
}

/* Video Play Overlay */
.ig-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}

.ig-play-overlay:hover {
  background: rgba(0, 0, 0, 0.25);
}

.ig-play-overlay.is-playing {
  background: transparent;
}

.ig-play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #1e8042;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ig-play-icon i {
  margin-left: 3px;
}

.ig-play-overlay:hover .ig-play-icon {
  transform: scale(1.1);
  background: #fff;
}

.ig-play-overlay.is-playing .ig-play-icon {
  width: 40px;
  height: 40px;
  font-size: 14px;
  position: absolute;
  bottom: 12px;
  right: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-play-overlay.is-playing .ig-play-icon i {
  margin-left: 0;
}

.ig-card:hover .ig-play-overlay.is-playing .ig-play-icon {
  opacity: 1;
}

/* Type Badge */
.ig-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Card Content */
.ig-content {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ig-caption {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ig-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.ig-date {
  font-size: 13px;
  color: #888;
}

.ig-date i {
  margin-right: 5px;
  color: #1e8042;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e8042;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ig-link:hover {
  color: #145c2e;
}

.ig-link i {
  font-size: 16px;
}

/* Post Count */
.ig-post-count {
  text-align: center;
  margin-bottom: 30px;
  font-size: 15px;
  color: #777;
}

.ig-post-count span {
  font-weight: 700;
  color: #1e8042;
}

/* ===================== */
/* LIGHTBOX / MODAL      */
/* ===================== */
.ig-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ig-modal-overlay.active {
  display: flex;
}

.ig-modal-box {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  display: flex;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ig-modal-media {
  flex: 0 0 55%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.ig-modal-media img,
.ig-modal-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 90vh;
}

.ig-modal-info {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.ig-modal-caption {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 20px;
}

.ig-modal-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.ig-modal-date i {
  color: #1e8042;
  margin-right: 5px;
}

.ig-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1e8042;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s ease;
  width: fit-content;
}

.ig-modal-link:hover {
  background: #145c2e;
  color: #fff;
}

.ig-modal-close {
  position: fixed;
  top: 20px;
  right: 25px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.ig-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */

/* Tablet */
@media (max-width: 991px) {
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .ig-modal-box {
    flex-direction: column;
    max-height: 85vh;
  }

  .ig-modal-media {
    flex: none;
    min-height: 300px;
    max-height: 50vh;
  }

  .ig-modal-info {
    padding: 20px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .ig-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ig-filters {
    gap: 8px;
    margin-bottom: 30px;
  }

  .ig-filter-btn {
    padding: 8px 20px;
    font-size: 13px;
  }

  .ig-play-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .ig-content {
    padding: 14px 16px;
  }

  .ig-modal-media {
    min-height: 250px;
  }
}

/* Subheader responsive */
@media (max-width: 500px) {
  #subheader h1 {
    font-size: 34px;
  }
}

/* Section padding */
section {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 992px) {
  section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

@media (max-width: 576px) {
  section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}


/* ════════════════════════════════════════
   IGV — VIDEO ZIGZAG SECTIONS
════════════════════════════════════════ */
.igv-section {
  padding: 80px 0;
  background: #fff;
  overflow: hidden;
}

.igv-section.igv-alt-bg {
  background: #f8fdf9;
}

.igv-wrap {
  display: flex;
  align-items: center;
  gap: 50px;
}

.igv-wrap.reverse {
  flex-direction: row-reverse;
}

/* Video Side */
.igv-video {
  flex: 0 0 40%;
  max-width: 40%;
  min-width: 0;
}

.igv-video-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(46, 158, 79, 0.15);
  background: #000;
}

.igv-video-box video {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: contain;
}

/* Instagram Link — top-left arrow circle */
.igv-ig-link {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2e9e4f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.igv-ig-link img {
  width: 46px;
  padding: 14px;
  filter: brightness(0) invert(1);
}

.igv-ig-link:hover {
  background: #1a7a35;
  transform: scale(1.1);
}

/* Play Button */
.igv-play-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #2e9e4f;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.igv-play-btn:hover {
  background: #2e9e4f;
  color: #fff;
  transform: scale(1.1);
}

.igv-play-btn.is-playing {
  background: rgba(46, 158, 79, 0.9);
  color: #fff;
}

/* Content Side */
.igv-content {
  flex: 0 0 55%;
  max-width: 55%;
  min-width: 0;
}

.igv-content h2 {
  font-size: 32px;
  line-height: 1.3;
  color: #1a1a2e;
  margin-bottom: 18px;
}

.igv-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 16px;
}

/* ── IGV Responsive ── */
@media (max-width: 991px) {
  .igv-wrap,
  .igv-wrap.reverse {
    flex-direction: column;
    gap: 36px;
  }

  .igv-video,
  .igv-content {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .igv-video-box video {
    height: 420px;
  }

  .igv-content h2 {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .igv-section {
    padding: 50px 0;
  }

  .igv-video-box video {
    height: 320px;
  }

  .igv-content h2 {
    font-size: 24px;
  }

  .igv-content p {
    font-size: 15px;
  }

  .igv-play-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}
