/* Custom CSS for Technopark Cimahi */

/* ===== Instagram Feed Section ===== */
.instagram-feed .ig-header {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 0 32px;
  flex-wrap: wrap;
}

.instagram-feed .ig-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 30px;
  flex-shrink: 0;
}

.instagram-feed .ig-info {
  text-align: left;
}

.instagram-feed .ig-username {
  font-weight: 700;
  color: var(--heading-color);
  font-size: 18px;
  margin: 0 0 2px;
}

.instagram-feed .ig-subtitle {
  color: #777;
  font-size: 13px;
  display: block;
}

.instagram-feed .ig-follow-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.instagram-feed .ig-follow-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  color: #fff !important;
}

/* Square photo grid menggunakan padding-bottom trick */
.instagram-feed .ig-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.instagram-feed .ig-item a {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: block;
}

.instagram-feed .ig-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.instagram-feed .ig-item:hover img {
  transform: scale(1.08);
}

.instagram-feed .ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 158, 187, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
  padding: 10px;
}

.instagram-feed .ig-item:hover .ig-overlay {
  opacity: 1;
}

.instagram-feed .ig-overlay i {
  color: #fff;
  font-size: 28px;
}

.instagram-feed .ig-caption {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 4px;
}

/* Service item improvements */
.service-item .service-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Department item improvements */
.department-item .department-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Read more link styling */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more:hover {
  gap: 10px;
}

/* Pagination Bootstrap 5 fix */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #1977cc;
  background-color: #fff;
  border: 1px solid #dee2e6;
}

.page-link:hover {
  z-index: 2;
  color: #145a9c;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #1977cc;
  border-color: #1977cc;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  cursor: auto;
  background-color: #fff;
  border-color: #dee2e6;
}

/* Social share button styling */
.social-share .btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Service details content */
.service-details .content {
  line-height: 1.8;
  white-space: pre-wrap;
}

/* Related items sidebar */
.services-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #e3e4e6;
  border-radius: 5px;
  text-decoration: none;
  color: #444444;
  transition: all 0.3s ease;
}

.services-list a:hover,
.services-list a.active {
  background-color: #1977cc;
  color: #fff;
  border-color: #1977cc;
}

.services-list a i {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

.services-list a div {
  flex-grow: 1;
}

/* Badge styling improvements */
.badge {
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
}

/* Service box improvements */
.service-box {
  padding: 30px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  background-color: #fff;
}

.service-box h4 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #2c4964;
}
