/* Network Page Specific Styles */

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-in-out;
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-in-out;
}

.slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Network Images Section */
.network-images-section {
  margin-top: 40px;
}

.network-image-card {
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.network-image-card:hover {
  transform: translateY(-5px);
}

.network-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.network-image-wrapper:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.network-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.network-image-wrapper:hover .network-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 138, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.network-image-wrapper:hover .image-overlay {
  opacity: 1;
}

.image-actions {
  display: flex;
  gap: 15px;
}

.action-btn {
  width: 50px;
  height: 50px;
  border: 2px solid white;
  background: transparent;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.action-btn:hover {
  background: white;
  color: #1e3a8a;
  transform: scale(1.1);
}

/* Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 25px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.close-modal:hover {
  color: #ccc;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-btn {
  padding: 12px 24px;
  border: 2px solid white;
  background: transparent;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-btn:hover {
  background: white;
  color: #1e3a8a;
}

/* Share Modal */
.share-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.share-modal-content {
  position: relative;
  margin: auto;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: 15px;
  text-align: center;
}

.close-share-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-share-modal:hover {
  color: #666;
}

.share-modal-content h3 {
  margin-bottom: 20px;
  color: #1e3a8a;
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-option {
  padding: 12px 20px;
  border: 2px solid #1e3a8a;
  background: transparent;
  color: #1e3a8a;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
}

.share-option:hover {
  background: #1e3a8a;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .image-actions {
    gap: 10px;
  }

  .action-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .modal-actions {
    flex-direction: column;
    align-items: center;
  }

  .network-image {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .network-image {
    height: 200px;
  }

  .modal-content {
    width: 95%;
    padding: 10px;
  }

  .share-modal-content {
    width: 95%;
    padding: 20px;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Enhanced hover effects for network strengths */
.why-choose-one__content-list ul li {
  transition: all 0.3s ease;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.why-choose-one__content-list ul li:hover {
  background: rgba(30, 58, 138, 0.05);
  transform: translateX(10px);
}

.why-choose-one__content-list ul li span.icon-plane2 {
  color: #1e3a8a;
  margin-right: 15px;
  font-size: 18px;
}
