/* Modern Instagram Section */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.instagram-modern-section {
  background-color: #fafafa;
  padding: 80px 0;
  min-height: auto;
}

.instagram-modern-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.instagram-modern-header {
  text-align: center;
  margin-bottom: 50px;
}

.instagram-modern-title {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1e4b9e;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.instagram-modern-username {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #da83b7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.instagram-modern-username:hover {
  color: #1e4b9e;
  text-decoration: none;
}

.instagram-modern-loading {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #999;
}

/* Grid */
.instagram-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

/* Individual Post */
.instagram-modern-post {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
  background-color: #f0f0f0;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.instagram-modern-post:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

.instagram-modern-post-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Image */
.instagram-modern-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.instagram-modern-post:hover .instagram-modern-image {
  transform: scale(1.05);
}

/* Play Icon for Videos */
.instagram-modern-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: none;
}

.instagram-modern-post:hover .instagram-modern-play-icon {
  background-color: rgba(218, 131, 183, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Instagram Icon Overlay */
.instagram-modern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-modern-post:hover .instagram-modern-overlay {
  opacity: 1;
}

/* CTA Button */
.instagram-modern-cta {
  text-align: center;
  margin-top: 40px;
}

.instagram-modern-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1e4b9e 0%, #6BAED6 100%);
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 35px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 75, 158, 0.3);
}

.instagram-modern-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 75, 158, 0.5);
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 991px) {
  .instagram-modern-section {
    padding: 60px 0;
  }

  .instagram-modern-title {
    font-size: 32px;
  }

  .instagram-modern-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .instagram-modern-section {
    padding: 50px 0;
  }

  .instagram-modern-title {
    font-size: 28px;
  }

  .instagram-modern-username {
    font-size: 16px;
  }

  .instagram-modern-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .instagram-modern-button {
    font-size: 15px;
    padding: 14px 30px;
  }
}

@media (max-width: 480px) {
  .instagram-modern-section {
    padding: 40px 0;
  }

  .instagram-modern-title {
    font-size: 24px;
  }

  .instagram-modern-grid {
    gap: 10px;
  }

  .instagram-modern-button {
    font-size: 14px;
    padding: 12px 25px;
  }

  .instagram-modern-play-icon {
    width: 50px;
    height: 50px;
  }

  .instagram-modern-play-icon svg {
    width: 30px;
    height: 30px;
  }
}

