.page-hero { padding: 8rem 0 4rem; background-color: var(--primary-color); color: white; text-align: center; }
.page-title { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.page-subtitle { font-size: 1.2rem; opacity: 0.9; letter-spacing: 0.2em; }
.content-wrapper { max-width: 1200px; margin: 0 auto; }

.news-list { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 4rem; }
.news-article { background: white; padding: 2.5rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: var(--transition); }
.news-article:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.news-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.news-date { color: var(--secondary-color); font-weight: 500; }
.news-category { padding: 0.3rem 1rem; background: var(--accent-color); color: white; border-radius: 15px; font-size: 0.85rem; font-weight: 600; }
.news-title { font-size: 1.5rem; font-weight: 600; color: var(--primary-color); margin-bottom: 1rem; }
.news-excerpt { color: var(--secondary-color); line-height: 1.8; }
.instagram-section { text-align: center; margin-bottom: 2rem; }
.instagram-note { color: var(--secondary-color); margin-bottom: 2rem; }

/* Instagram Gallery Styles */
.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
  padding: 0.5rem;
}

.news-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05);
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.1);
}

.news-item-image, .news-item-video {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  background-color: #fafafa;
}

.news-item-video {
  background: #000;
}

.video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  border: 2px solid rgba(255,255,255,0.9);
}

.news-item:hover .video-indicator {
  background: rgba(0,0,0,0.8);
  transform: translate(-50%, -50%) scale(1.15);
  border-color: white;
}

.news-item-content {
  padding: 1.5rem;
}

.news-item-caption {
  font-size: 0.95rem;
  color: #262626;
  line-height: 1.5;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-height: 1.5em;
}

.news-item-date {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.news-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.instagram-btn {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instagram-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(188,24,136,0.3);
  color: white;
  text-decoration: none;
}

.multiple-images-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Loading animation */
.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4a5568;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal styles for image popup */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
}

.image-modal.active {
  display: flex;
}

.modal-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.modal-info {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  max-width: 500px;
  text-align: center;
}

.modal-caption {
  margin-bottom: 1rem;
  color: #262626;
  font-size: 0.95rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.modal-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.modal-instagram-btn {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-instagram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(188,24,136,0.3);
  color: white;
  text-decoration: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  background: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.1);
}

/* Carousel styles for multiple images */
.modal-carousel {
  position: relative;
  display: none;
}

.modal-carousel.active {
  display: block;
}

.carousel-container {
  position: relative;
  max-width: 100%;
  max-height: 80vh;
}

.carousel-image, .carousel-video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.carousel-video {
  background: #000;
}

.modal-video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  background: #000;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.carousel-nav:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-hero { padding: 6rem 0 3rem; }
  .page-title { font-size: 2.2rem; }

  .news-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
    padding: 0.25rem;
  }

  .news-item-image, .news-item-video {
    height: 280px;
  }

  .news-item-content {
    padding: 1.25rem;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .carousel-prev {
    left: 5px;
  }

  .carousel-next {
    right: 5px;
  }

  .modal-info {
    margin: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .news-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  .news-item-image, .news-item-video {
    height: 100vw;
    max-height: 500px;
  }
}
