
/* Read More Modal Styles */
.read-more-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.read-more-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.read-more-modal.active .modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  z-index: 10001;
}

.modal-close:hover {
  background: #2f5577;
  color: white;
  border-color: #2f5577;
}

.modal-header {
  background: linear-gradient(135deg, #2f5577 0%, #254969 100%);
  color: white;
  padding: 2rem 2rem 1.5rem;
  position: relative;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  padding-right: 3rem;
}

.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body h4 {
  color: #2f5577;
  margin: 1.5rem 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-body p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-body ul, .modal-body ol {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-body strong {
  color: #2f5577;
  font-weight: 600;
}

.modal-footer {
  background: #f8fafc;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.modal-cta {
  padding: 0.875rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

body.modal-open {
  overflow: hidden;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #2f5577;
}

/* Responsive design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .modal-header h3 {
    font-size: 1.3rem;
    padding-right: 2.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
    max-height: 65vh;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }
  
  .modal-cta {
    width: 100%;
    text-align: center;
  }
  
  .modal-close {
    width: 35px;
    height: 35px;
    top: 0.75rem;
    right: 0.75rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
  }
  
  .modal-body {
    max-height: 60vh;
  }
}
