@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --color1: #145da0;
  --color2: #3674b5;
  --color3: #97ce89;
  --color4: #171186;
  --hover-bg: #3674b5;
  --hover-color: #ffffff;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* HEADER STYLE */

.navbar {
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
  padding-top: 70px;
}

.navbar-brand {
  margin-left: 1rem;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 800;
  color: var(--color2);
  background-color: white;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
}

.navbar-nav .nav-link {
  color: var(--color2);
  font-size: clamp(1.3rem, 1.8vw, 1.5rem);
  font-weight: 450;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link:focus-visible {
  color: var(--color4) !important;
  background-color: transparent !important;
  text-decoration: underline;
  outline: none;
  box-shadow: none;
}

.nav-link.active {
  text-decoration: underline;
  color: var(--color4) !important;
}

.navbar-nav .nav-link:active {
  color: var(--color4) !important;
  background-color: transparent !important;
  text-decoration: underline !important;
  outline: none;
}

#customNavbar .navbar-collapse.show {
  width: auto;
  max-width: 250px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  position: absolute;
  top: 100%;
  right: 1rem; 
  left: auto;
  z-index: 999;
  flex-direction: column;
}

#customNavbar .navbar-collapse.show .navbar-nav {
  flex-direction: column;
  gap: 0.5rem;
  align-items: center; 
}

#customNavbar .navbar-collapse.show .nav-link {
  width: 100%;
  text-align: center;
  padding: 0.25rem 0;
  font-size: 1rem; 
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-right: 0;
  }

  .navbar-nav .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
  }

  .navbar-collapse {
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }
}

@media (max-width: 992px) {
  #customNavbar .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: auto;
    width: auto;
    min-width: 180px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #customNavbar .navbar-collapse.show {
    opacity: 1;
    transform: translateY(0);
  }

  #customNavbar .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  #customNavbar .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.25rem 0;
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 1024px) {
  .navbar-nav {
    gap: 2rem;
    padding-right: 5rem;
  }

  .navbar-brand {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
  }

  .navbar-nav .nav-link {
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  }
}

@media (max-width: 1622px) {
  .navbar-expand-lg .navbar-toggler {
    display: block;
  }

  .navbar-expand-lg .navbar-collapse {
    display: none !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar-expand-lg .collapse.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
  }

  .navbar-collapse {
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    border-top: 1px solid #ddd;
    padding-bottom: 1rem;
  }

  .navbar-nav {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0;
    padding: 1rem;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
  }
}

/* HOME STYLE */
body {
  margin: 0;
  overflow-x: hidden;
}

.first-pagination .context1 {
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding-left: 2.5rem;
}

.first-pagination .context1 > p:nth-child(1) {
  font-size: clamp(1rem, 7vw, 9rem);
  letter-spacing: 0.3rem;
  color: var(--color1);
  color: black;
  font-weight: 900;
  letter-spacing: -0.4rem;
  margin-bottom: 0;
}

.first-pagination .context1 > p:nth-child(2) {
  text-indent: 0;
  font-size: clamp(1rem, 1.5vw, 3rem);
  color: var(--color2);
  margin-bottom: 0;
}

.first-pagination .context1 > p:nth-child(3) {
  text-indent: 0;
  font-size: clamp(1rem, 1.5vw, 3rem);
  color: var(--color2);
}

.first-pagination .context2 {
  height: 83vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.first-pagination .context2 {
  height: 83vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.first-pagination .context2 > .background-object {
  position: relative;
  margin-right: 2.5rem;
  width: 100%;
  height: 100%;
}

.first-pagination .context2 > .background-object > img {
  width: 100%;
  max-width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  object-fit: contain;
  z-index: 0;
}

.first-pagination .context2 > .background-object .absolute-picture {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.first-pagination .context2 > .background-object .absolute-picture > img {
  max-width: 40vw;
  height: auto;
}

.virus {
  color: var(--color2);
  font-size: 0.7em;
  vertical-align: middle;
  margin-left: 5px;
}

@media (max-width: 768px) {
  .navbar-nav {
    padding-right: 1rem;
  }

  .first-pagination {
    margin-top: 100px;
  }

  .first-pagination .context1 > p:nth-child(1) {
    font-size: clamp(4rem, 5vw, 7rem);
  }

  .first-pagination .context1 {
    height: 40vh;
  }
  .first-pagination .context2 {
    height: 60vh;

    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .first-pagination .context2 > .background-object > img {
    height: 70vw;
    width: auto;
  }

  .first-pagination .context2 > .background-object .absolute-picture > img {
    max-width: 70vw;
  }
  .second-pagination .context2 {
    flex-direction: column;
  }
}

@media (max-width: 992px) {
  .navbar-nav {
    gap: 0;
    flex-direction: column;
    justify-content: center;
    padding-right: 0;
    padding-bottom: 1rem;
    z-index: 1;
  }
}

/* SERVICES STYLE */
#services {
  position: relative;
  z-index: 2;
}

.grid {
  background-color: #145da0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 3rem 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.grid .box {
  background-color: #f2f2f4;
  border-radius: 15px;
  padding: 1rem 1rem;
  width: 100%;
  max-width: 20rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.grid .box i {
  font-size: 3.5rem;
  text-align: center;
  color: #286181;
  height: 80px;
}

.grid .box h3 {
  text-align: center;
  margin: 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #3674b5;
}

.grid .box p {
  text-align: center;
  font-size: 1rem;
  color: black;
  line-height: 1.8rem;
}

@media (max-width: 768px) {
  .grid {
    padding: 2rem;
    justify-content: center;
  }

  .grid .box {
    max-width: 100%;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .grid {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
  }

  .grid .box {
    width: 100%;
    padding: 1.5rem;
    max-width: 100%;
  }

  .grid .box i {
    font-size: 2.8rem;
    height: auto;
  }

  .grid .box h3 {
    font-size: 1.1rem;
  }

  .grid .box p {
    font-size: 0.95rem;
  }
}

/* SCHEDULE STYLE */
#schedule {
  padding: 2rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.weekdays {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  margin: 0.4rem 0;
}

.with-doctor {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.time-and-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.doctor-badge {
  background-color: red;
  padding: 2px 8px;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  white-space: nowrap;
}

.sched-body {
  background-image: url("../img/schedBGC.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  height: 100%;
  width: 100%;
  position: relative;
}

.content-body {
  padding: 20px;
  border-radius: 10px;
}

.content-body .row > div:nth-child(1) {
  padding-left: 3rem;
}

.content-body .row > div:nth-child(1) > p:nth-child(1) {
  color: var(--color1);
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  font-weight: 300;
  padding-top: 2rem;
}

.content-body .row > div:nth-child(1) > p:nth-child(2) {
  color: var(--color2);
  font-size: clamp(0.5rem, 2vw, 1.3rem);
  font-weight: 300;

  text-align: justify;
  text-indent: 1em;

  padding: 1rem 0rem 1rem 0rem;
}

.content-body .row > div:nth-child(1) > p:nth-child(3) {
  color: var(--color2);
  font-size: clamp(0.5rem, 2vw, 1.3rem);
  font-weight: 300;

  text-align: justify;
  text-indent: 1em;
}

.content-body .row > div:nth-child(1) > p:nth-child(4) {
  color: var(--color2);
  font-size: clamp(0.5rem, 2vw, 1.3rem);
  font-weight: 300;

  text-align: justify;
  text-indent: 1em;
}

.content-body .row > div:nth-child(1) > p:nth-child(5) {
  color: var(--color2);
  font-size: clamp(0.5rem, 2vw, 1.3rem);
  font-weight: 300;

  text-align: justify;
  text-indent: 1em;
}

.content-body .row > div:nth-child(2) {
  height: 100%;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  margin: auto;
}

.box-container {
  height: auto;
  width: 100%;
  max-width: 1200px;
  min-height: 600px;
  border-radius: 30px;
  border: 5px solid #3674b5;
  padding: 1.5rem 2rem;
  background-color: white;
  overflow: hidden;
  margin: auto;
}

.box-container > p:first-child {
  text-align: center;
  color: var(--color1);
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.content-body .row > div:nth-child(2) .box-container {
  height: 80vh;
  width: 80%;
  border-radius: 50px 50px 50px 50px;
  -webkit-border-radius: 50px 50px 50px 50px;
  -moz-border-radius: 50px 50px 50px 50px;
  border: 6px solid #3674b5;
  padding: 1rem 2rem;
  padding-bottom: 2rem;
  flex-direction: column;
  justify-content: space-evenly;
}

.content-body .row > div:nth-child(2) .box-container hr {
  border: 0;
  height: 1.5px;
  background-color: rgb(0, 0, 0);
  color: black;
  margin: 0.4rem 0;
}

.content-body .row > div:nth-child(2) .box-container .doctor-label {
  text-align: end;
  padding: 0.4rem 3rem 0 0;
}

.content-body .row > div:nth-child(2) .box-container .doctor-label > span {
  background-color: red;
  padding: 5px 10px;

  border-radius: 11px;
  color: white;
  font-weight: 700;
}

.content-body .row > div:nth-child(2) .box-container > p:nth-child(1) {
  text-align: center;
  color: var(--color1);

  font-size: clamp(1rem, 3vw, 3.5rem);
  font-weight: 500;
}

.content-body .row > div:nth-child(2) .box-container .weekdays {
  display: flex;
  justify-content: space-between;
  font-size: clamp(1rem, 1vw, 1.5rem);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .box-container {
    width: 90%;
    max-width: 600px;
    min-height: 500px;
    padding: 1.2rem 1.5rem;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .content-body .row {
    flex-direction: column;
    align-items: center;
  }

  .content-body .row > div:nth-child(1) {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .content-body .row > div:nth-child(1) > p:nth-child(1) {
    font-size: clamp(1.2rem, 3vw, 2rem);
  }

  .box-container {
    width: 100%;
    max-width: 95%;
    min-height: 450px;
    padding: 1rem;
    margin: 1rem 0;
  }

  .weekdays,
  .time-and-label,
  .doctor-badge {
    font-size: 70%;
  }
}

/* APPOINTMENT STYLE */
.appointment .appointment-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 20px;
  border: 6px solid #3674b5;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  
  width: 60%;
  border-radius: 50px 50px 50px 50px;
  -webkit-border-radius: 50px 50px 50px 50px;
  -moz-border-radius: 50px 50px 50px 50px;
  border: 6px solid #3674b5;
  padding: 1rem 2rem;
}

.appointment-box p {
  text-align: center;
  color: var(--color1);
  font-size: clamp(1rem, 3vw, 2.5rem);
  font-weight: 500;
}

.appointment h1 {
  margin-top: 3rem;
  text-align: center;
  color: var(--color1);
  font-size: clamp(1rem, 3vw, 3.5rem);
  font-weight: 500;
}

.appointment .form-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 850px;
}

.appointment .full-width {
  grid-column: span 2;
}

.appointment input,
select {
  font-size: 1.3rem;
  padding: 0.5rem;
  border: 2px solid #3674b5;
  border-radius: 15px;
  width: 100%;
  height: 74px;
}

select {
  background-color: white;
}

.appointment button {
  background-color: #145da0;
  padding: 12px 18px;
  font-size: 1.5rem;
}

/* @media (max-width: 600px) {
  .modal-dialog {
    max-width: 95%;
    margin: 1.75rem auto;
    height: auto;
    max-height: 80vh;
  }

  .modal-content {
    border-radius: 15px;
  }
} */

@media (max-width: 600px) {
  .modal-content {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }
}

@media (max-width: 1024px) {
  .content-body .row {
    flex-direction: column;
    align-items: center;
  }

  .content-body .row > div:nth-child(1),
  .content-body .row > div:nth-child(2) {
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .content-body .row > div:nth-child(2) .box-container {
    width: 90%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .content-body .row > div:nth-child(1) > p:nth-child(1),
  .appointment h1 {
    font-size: 2rem !important;
  }

  .content-body .row > div:nth-child(1) > p:nth-child(2),
  .content-body .row > div:nth-child(1) > p:nth-child(3),
  .content-body .row > div:nth-child(1) > p:nth-child(4),
  .content-body .row > div:nth-child(1) > p:nth-child(5),
  .appointment-box p {
    font-size: 1rem !important;
  }

  .content-body .row > div:nth-child(2) {
    height: auto;
  }

  .content-body .row > div:nth-child(2) .box-container {
    width: 95%;
    height: auto;
    padding: 1rem;
  }

  .appointment input,
  .appointment select {
    height: 60px;
    font-size: 1.1rem;
  }

  .appointment button {
    width: 100%;
    font-size: 1.3rem;
  }

  .weekdays {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
  }

  .appointment .form-group {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .appointment .full-width {
    grid-column: span 1;
  }

  .appointment .appointment-box {
    width: 90%;
    height: auto;
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .appointment .content-body {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

@media (max-width: 1024px) {
  .appointment .content-body {
    padding-left: 0rem !important;
    padding-right: 0rem !important;
  }
}

/* LOCATION STYLE */
.location {
  text-align: center;
  padding: 2rem 0;
  background-image: url("../images/schedBGC.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.location h1 {
  text-align: center;
  color: var(--color1);
  font-size: clamp(1rem, 3vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 5rem;
}

.location h2 {
  margin-top: 2rem;
  color: var(--color1);
  font-weight: 700;
  text-align: start;
}

.location h3 {
  color: var(--color1);
  font-weight: 500;
  text-align: start;
  font-size: 1.3rem;
}

.location p {
  text-align: start;
}

.map-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.map-box {
  width: 100%;
  max-width: 600px;
  text-align: center;
  padding: 1rem;
}

.map {
  width: 100%;
  height: 400px;
  border: 2px solid var(--color1);
  border-radius: 8px;
}

.map-container .btn-primary {
  background-color: #0056b3;
  color: white;
  padding: 12px 20px;
  font-size: 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  width: 200px;
}

.map-container .btn-primary:hover {
  background-color: #007bff;
}

@media (max-width: 1024px) {
  .location h1 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 3rem;
  }

  .map-container {
    gap: 1.5rem;
  }

  .map-box {
    width: 100%;
    max-width: 500px;
  }

  .map {
    height: 350px;
  }

  .map-container .btn-primary {
    width: 180px;
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .location h1 {
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
  }

  .map-container {
    gap: 1rem;
  }

  .map-box {
    width: 100%;
    max-width: 90%;
  }

  .map {
    height: 300px;
  }

  .map-container .btn-primary {
    width: 160px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .location h1 {
    font-size: 1.8rem;
  }

  .map {
    height: 250px;
  }

  .map-container .btn-primary {
    width: 150px;
    font-size: 1.1rem;
  }
}

/* FOOTER */
.footer {
  background-color: var(--color1);
  padding: 2rem 3rem;
  color: white;
  font-family: "Segoe UI", sans-serif;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-box {
  flex: 1;
  min-width: 250px;
}

.footer-box h4 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--color3);
  border-bottom: 1px solid white;
  padding-bottom: 0.5rem;
}

.footer-box a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.3rem 0;
  font-size: 1.4rem;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-box a:hover {
  color: var(--color3);
}

.footer-box i {
  font-size: 1.4rem;
}

.footer-credit {
  text-align: center;
  font-size: 1.4rem;
  margin-top: 2rem;
  color: #ddd;
}

.footer-credit span {
  color: var(--color3);
  font-weight: bold;
}

@media (max-width: 900px) {
  .footer-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
  }

  .footer-box {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin-bottom: 0;
  }

  .footer-box a {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 2rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-box {
    flex: none;
    width: 100%;
    max-width: 350px;
    margin-bottom: 1rem;
  }

  .footer-box a {
    font-size: 1.2rem;
    padding: 0.2rem 0;
    gap: 0.6rem;
    word-wrap: break-word;
  }

  .footer-box i {
    font-size: 1.2rem;
  }

  .footer-credit {
    font-size: 1.2rem;
    margin-top: 1.5rem;
  }
}
