button:focus {
  outline: 0;
}

:focus {
  outline: 0;
}

.btn.focus,
.btn:focus {
  outline: 0 !important;
  box-shadow: none !important;
}

body,
html {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400;
  color: #373737;
}
#intro,
#function {
  background: url('./images/bg-medicina-blue.svg') center center;
  background-size: cover;
}
p {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #373737;
}
h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 56px;
}
.text-tf {
  color: #4674b9;
}
.text-yellow {
  color: #fada6a;
}
.text-24 {
  font-size: 24px;
}

.landing-time-box {
  text-align: center;
  padding: 1rem 2rem;
}
.landing-time-box .date {
  font-size: 40px;
  font-weight: 800;
  line-height: 40px;
  text-align: center;
  color: #373737;
}

button {
  background: #4674b9;
  color: #fff;
  box-shadow: 0px 0px 12px 0px #7b7b7b66;
  padding: 12px 16px;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
  border-radius: 16px;
  border: none;
  outline: none;
}

button.secondary {
  background: #fff;
  color: #296d9f;
}

.home_phone {
  margin-bottom: -120px;
}

#info {
  background: linear-gradient(225.39deg, #79a7ec 0%, #385d94 100%);
  clip-path: ellipse(97% 100% at 50% 101%);
  -webkit-clip-path: ellipse(97% 100% at 50% 101%);
  padding: 50px;
}

.custom-tooltip.show {
  opacity: 1;
}
.custom-tooltip .tooltip-inner {
  padding: 16px 20px;
  color: #373737bf;
  background: #fff;
  box-shadow: 0px 0px 12px 0px #7b7b7b66;
}

#function_slider .swiper .swiper-slide {
  border: 4px solid #ececec;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
}

#function_slider .swiper-pagination {
  position: relative;
  margin-top: 24px;
}

#function_slider .swiper-pagination .swiper-pagination-bullet-active {
  background: #296d9f;
}

.logo_container {
  max-width: 170px;
  margin: 8px 16px;
}

footer {
  background: #4674b9;
}

.text-intro {
  color: #ed8103;
  font-weight: 800;
  font-size: 58.13px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  p {
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
  }

  .landing-time-box .date {
    font-size: 24px;
    font-weight: 800;
    line-height: 32px;
  }

  button {
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
  }

  h2 {
    font-size: 24px;
    font-weight: 800;
    line-height: 32px;
  }

  #info {
    clip-path: ellipse(220% 100% at 50% 101%);
    -webkit-clip-path: ellipse(220% 100% at 50% 101%);
  }

  .logo_container {
    max-width: 130px;
  }
  .text-intro {
    font-size: 40px;
  }
  
  /* Override inline font-size for mobile */
  div[style*="font-size: 24px"] {
    font-size: 16px !important;
  }
}

/* Events Modal */
.events-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in-out;
}

.events-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.events-modal-content {
  background-color: white;
  margin: 20px;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  height: 508px;
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.24);
  animation: slideIn 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.events-modal-header {
  padding: 24px 24px 16px 24px;
  position: relative;
}

.events-modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #373737;
  text-align: center;
}

.modal-close-x {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.modal-close-x img {
  width: 32px;
  height: 32px;
}

.events-modal-body {
  padding: 16px 24px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-item {
  padding: 16px;
  border: none;
  border-radius: 16px;
  background-color: white;
  transition: all 0.2s ease;
}

.event-item:hover {
  box-shadow: 0px 4px 12px rgba(70, 116, 185, 0.1);
}

.event-item.completed {
  background-color: #f3f3f3;
}

.event-item.active {
  background-color: #f8fff9;
}

.event-item.upcoming {
  background-color: #f4f8ff;
}

.event-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.event-number {
  width: 26px;
  height: 26px;
  background-color: #4674b9;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.event-item.completed .event-number {
  background-color: #6c757d;
  color: white;
}

.event-item.active .event-number {
  background-color: #28a745;
  color: white;
}

.event-text {
  flex: 1;
}

.event-date {
  font-size: 18px;
  font-weight: 600;
  color: #373737;
  margin-bottom: 4px;
}

.event-status {
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 4px;
}

.event-item.completed .event-status {
  color: #c63838;
}

.event-item.active .event-status {
  color: #28a745;
}

.event-item.upcoming .event-status {
  color: #4674b9;
}

.events-modal-footer {
  padding: 16px 24px 24px 24px;
  text-align: center;
  background-color: white;
  border-radius: 0 0 16px 16px;
  flex-shrink: 0;
}

.modal-close-btn {
  background: #4674b9;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  min-width: 220px;
  box-shadow: none !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile responsiveness for modal */
@media screen and (max-width: 768px) {
  .events-modal-content {
    width: 330px;
    margin: 10px;
    max-height: 90vh;
  }

  .events-modal-header h3 {
    font-size: 20px;
  }

  .modal-close-x {
    top: 12px;
    right: 12px;
  }

  .modal-close-x img {
    width: 32px;
    height: 32px;
  }

  .events-modal-body {
    padding: 12px 16px;
  }

  .events-modal-footer {
    padding: 12px 16px 16px 16px;
  }

  .event-number {
    font-size: 16px;
  }

  .event-date {
    font-size: 18px;
  }

  .event-status {
    font-size: 12px;
  }

  .modal-close-btn {
    font-size: 16px;
    padding: 10px 24px;
    width: 100%;
  }
}
