/* Root */
section {
    padding-top: 8rem; padding-bottom: 8rem;
    background-size: cover;
    align-items: center;
    position: relative;
    color: black;
}

:root {
    --pride: #c40000;
    --olive: #14281d;
    --white: #ffffff;
    --black: #000000;
}

h1 {
    font-size: 3.75rem;
    margin-left: 8%; margin-bottom: 2rem;
}

a {
  color: var(--black);
}

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

/* Navbar*/
header{
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
    height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 7%;
    top: 3rem;
    left: 0;
    right: 0;
    z-index: 9999;
    position: fixed;
    background-color: var(--white);
}

.navbar .navbar-logo img {
  width: 8rem;
}

.navbar .navbar-nav a.active {
  font-weight: 600;
}

.navbar .navbar-nav a {
  color: var(--black);
  display: inline-block;
  font-size: 1rem;
  margin: 0 0.5rem;
}

.navbar .navbar-nav a:hover {
  font-weight: 600;
  color: var(--pride);
  transition: 0.2s;
}

.navbar .navbar-extra a {
  color: var(--white);
  margin: 0 0.2rem;
}

.navbar .navbar-extra .wa-btn {
  padding:12px 20px;
}

#hamburger-menu {
  display: none;
  columns: var(--black);
}

ul {
  margin-left: 5.5rem;
  text-align: left;    
  list-style: none;
}

ul li {
  display: inline-block;
  position: relative;
}

ul li a {
  display: block;
  color: var(--hunter);
  text-decoration: none;
  text-align: center;
}

ul.dropdown li {
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: block;
}

ul.dropdown {
  margin-top: 0.2rem;
  margin-left: 0;
  width: 180%;
  position: absolute;
  z-index: 999;
  display: none;
}

ul li:hover ul.dropdown {
  display: block;
}

.topbar{
  background: var(--pride);
  color: white;
  font-size: 1rem;
  height: 3rem;
}

.topbar-container{
  max-width: 1200px;
  margin: auto;
  padding: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a{
  color: white;
  text-decoration: none;
  font-size: 1rem
}

/* Home */
.home {
    color: var(--hunter);
}

.home .hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5.5rem;
    margin-top: 7.5rem;
}

.home .hero img {
    width: 28%;
}

.home p {
    font-family: 'Eb Garamond', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--white);
    font-size: 2rem;
    padding: 0.8rem;
    background-color: var(--pride);
    
}

/* Tentang Kami */
.slider{
  border: 1px solid #b0b0b0;
  width:45rem;
  overflow:hidden;
  border-radius:3%;
  position:relative;
  margin-bottom: 3rem;
}

.slides{
  display:flex;
  transition: 0.5s ease;
}

.slides img{
  width:100%;
  object-fit:cover;
}

.about p {
  text-align: justify;
  margin: auto;
  padding-bottom: 4rem;
  width: fit-content;
  max-width: 70%;
  font-size: 1.6rem;
  opacity:0;
  transform:translateY(30px);
  transition:all 0.8s ease;
}

.about p.show{
opacity:1;
transform:translateY(0);
}

.about p span {
  opacity:0;
display:inline-block;
transform:translateY(20px);
transition:0.5s ease;
}

.about p.show span {
  opacity:1;
transform:translateY(0);
}

/* Paket Persalinan */
.price-container    {
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}

.price-card {
background:white;
border-radius:25px;
overflow:hidden;
transition:0.3s;
}

.price-card:hover   {
transform:translateY(-8px);
cursor: pointer;
}

.price-img  {
width:100%;
height:14rem;
object-fit:cover;
}

.price-content  {
padding:25px;
background:var(--white);
border: 1px solid #b0b0b0;
border-radius:30px 30px 25px 25px;
margin-top:-40px;
position:relative;
}

.kelas  {
font-size:18px;
color:#8b8b8b;
margin-bottom:5px;
}

.kelas span {
color:orange;
}

.price-content h2   {
font-size:32px;
margin-bottom: 20px;
}

.wa-btn{
display: flex;
align-items:center;
background:#25D366;
color:white;
padding:12px 45px;
border-radius:30px;
text-decoration:none;
font-weight:600;
width: fit-content;
margin-bottom: 20px;
gap: 5px;
transition: 0.3s;
}

.wa-btn:hover{
background:#0ea14f;
cursor: pointer;
}

.price-features{
list-style:none;
padding:0;
margin:20px 0 0 0;
}

.price-features li{
display:flex;
align-items:center;
gap:10px;
font-size:14px;
margin-bottom:8px;
color:#8b8b8b;
}

.price-features i{
color:var(--pride);
}

.timeline{
position:relative;
width:90%;
max-width:1100px;
margin:120px auto;
display:flex;
justify-content:space-between;
}

/* Jadwal */
.jadwal-container {  
  display: flex;
  margin: auto;
  flex-wrap: wrap;
  gap: 30px;
  width: fit-content;
  justify-content: center;
  margin-bottom: 30px;
}

.jadwal-card {
  background-color: var(--white);
  border: 1px solid #b0b0b0;
  border-radius: 30px;
  align-items: center;
  padding: 1.2rem 4rem;
  transition:0.3s;
}

.jadwal-card:hover, .dokter-card:hover {
  transform:translateY(-8px);
  cursor: pointer;
}

.jadwal-card p, .dokter-card p {
  text-align: left;
  font-weight: 700;
  font-size:28px;
  margin-bottom: 0.5rem;
}

.jadwal-card h2, .dokter-card h2 {
  color: var(--pride);
  text-align: center;
  font-size:32px;
  line-height: 2.2rem;
}

.dokter-card {
  padding: 1.2rem 2rem;
  border: 1px solid #b0b0b0;
  width: 30rem;
  border-radius: 30px;
  justify-content: center;
  transition:0.3s;
}

.dokter-card img {
  width: 55%;
  border-radius: 50%;
  display: block;
  margin: auto;
}

.dokter-card p {
  color: #8b8b8b;
  font-size: 18px;
  font-weight: normal;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
}

.dokter-card h2 {
  color: var(--black);
  margin-bottom: 1.5rem;
}

.dokter-card button {
  padding: 1rem 5rem;
  font-size: 1.2rem;
  margin: auto;
  background-color: var(--pride);
  width: 100%;
  font-weight: 700;
  color: white;
  border-radius: 30px;
  border: none;
  transition: 0.3s;
}

.obgyn, .dokter {
  display: none;
}

button:hover {
  cursor: pointer;
  background-color: #9c0000;
}

/* Layanan */
.layanan-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: fit-content;
  justify-content: center;
}

.layanan-card {
  background-color: var(--white);
  border: 1px solid #b0b0b0;
  border-radius: 8rem;
  align-items: center;
  display: flex;
  padding: 0.8rem 1.8rem;
  font-size: 1.3rem;
  transition:0.3s;
}

.layanan-card:hover {
  transform:translateY(-8px);
  cursor: pointer;
}

.layanan-card span {
  font-weight: 700;
}

.layanan-card i {
  color: var(--pride);
  margin-right: 0.6rem;
  font-size: 1.5rem;
}

/* Manajemen */
.manajemen-container {
  max-width: 60%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
}

.manajemen-card {
  align-items: center;
  margin-bottom: 2rem;
  background: white;
  border: 1px solid #b0b0b0;
  border-radius: 2.5rem;
  display: flex;
  padding: 0.8rem 1.8rem;
  font-size: 1.5rem;
  transition:0.3s;
  align-items: center;
  color: #8b8b8b;
  line-height: 1.9rem;
}

.manajemen-card:hover {
  transform:translateY(-8px);
  cursor: pointer;
}

.manajemen-card span {
  font-weight: 700;
  font-size: 2rem;
  color: var(--black)
}

.manajemen-card img {
  width: 35%;
  border: 1px solid #b0b0b0;
  border-radius: 50%;
  margin-right: 2rem;
}

/* Kontak */
.contact {
  max-width: 1000px;
  gap: 3rem;
  margin: 0 auto;
  display: flex;
  
  align-items: center;
}

.contact-container {
  display: flex;
  flex-direction: column;
}

.contact-list {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-list i {
  color: var(--pride);
  margin-right: 0.6rem;
}

.contact-list .text span {
  font-weight: 700;
  font-size: 1.8rem;
}

/* Float */
.wa-float-pro{
position:fixed;
bottom:25px;
right:25px;

width:65px;
height:65px;

background:var(--pride);
color:white;
border-radius:50%;

display:flex;
justify-content:center;
align-items:center;

font-size:30px;
text-decoration:none;

box-shadow:0 8px 25px rgba(0,0,0,0.3);
z-index:9999;

animation:pulse 2s infinite;
}

/* HOVER */
.wa-float-pro:hover{
animation:none;
transform:scale(1.1);
}

/* TOOLTIP */
.wa-tooltip{
position:absolute;
right:75px;
background:white;
color:#333;
padding:8px 12px;
border-radius:10px;
font-size:13px;
white-space:nowrap;

box-shadow:0 5px 15px rgba(0,0,0,0.15);

opacity:0;
transform:translateX(10px);
transition:0.3s;
}

.wa-float-pro:hover .wa-tooltip{
opacity:1;
transform:translateX(0);
}

/* PULSE ANIMATION */
@keyframes pulse{
0%{
box-shadow:0 0 0 0 var(--pride);
}
70%{
box-shadow:0 0 0 20px rgba(37,211,102,0);
}
100%{
box-shadow:0 0 0 0 rgba(37,211,102,0);
}
}

/* Footer */
  .footer {
    padding-top: 5rem; padding-bottom: 5rem;
    padding-left: 3.5rem;
    background-color: var(--black);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    gap: 3.5rem;
  }

  .footer-content h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 25px;
  }

.footer-content h4:after {
    content: '';
    height: 0.2rem;
    width: 5rem;
    background-color: var(--pride);
    display: block;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

  .footer-content a {
    text-decoration: none;
    list-style: none;
    color: #8b8b8b;
    font-size: 15px;
    transition: 0.3s;
    line-height: 1.8rem;
  }

  .footer-content a:hover {
    color: var(--white);
  }

  .footer-content p {
    font-size: 15px;
    color: var(--white);
    margin-bottom: 1.5rem;
  }

  .footer-content lol {
    color: var(--pride);
    transition: 0.3s;
  }

  .footer-content span {
    color: var(--pride);
    transition: 0.3s;
  }

  .footer-content span:hover {
    text-decoration: underline;
  }

  .footer-content a.logo {
    font-size: 25px;
    color: var(--white)    
  }

  .icons a {
    font-size: 22px;
    color: var(--pride);
    display: inline-block;
    margin-right: 17px;
    transition: 0.3s;
  }

  .icons a:hover {
    transform: translateY(-5px);
  }

/* garis utama */

.timeline-line{
position:absolute;
top:50%;
left:0;
width:0%;
height:3px;
background:red;
transition: 1.2s ease;
margin-top: 2rem; margin-bottom: 5rem;
}

/* item */

.timeline-item{
position:relative;
width:160px;
text-align:center;
opacity:0;
transform:translateY(40px);
transition:all .6s ease;
}

/* node */

.timeline-item::before{
content:"";
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:14px;
height:14px;
background:red;
border-radius:50%;
}
.timeline-item:nth-child(even){
transform:translateY(80px);
}

/* content */

.content h2{
margin:0;
font-size:28px;
}

.content p{
margin:5px 0 0;
font-size:15px;
}

/* show animation */

.timeline-item.show{
opacity:1;
transform:translateY(0);
}

/* Small */
 @media (max-width: 820px) {
    html {
      font-size: 62.5%;
    }

    h1 {
      margin-left: 11%; margin-bottom: 3rem;
    }

    .wa-btn {
      font-size: 1.5rem;
    }

    #hamburger-menu {
      display: inline-flex;
      font-size: 2.2rem;
      color: var(--black);
      margin-left: 2rem;
    }

    #hamburger-menu {
      display: inline-block;
      font-size: 2.2rem;
      color: var(--black)
    }

    .navbar {
        height: 7.7rem;
        top: 4.5rem;
    }

    .navbar .navbar-nav {
      position: absolute;
      top: 100%;
      right: -100%;
      background-color: var(--white);
      width: 22rem;
      height: 100vh;
      transition: 0.2s ease-in; 
      padding-left: 2%;
    }
  
    .navbar .navbar-nav.active {
      right: 0;
    }

    .navbar .navbar-logo img {
      width: 9.5rem;
      padding-top: 1rem;
    }

    .navbar .navbar-nav a.button, i.button {
      padding: 15px 30px;
      width: 20rem;
      border-radius: 40px;
      background-color: var(--primary);
      color: var(--white);
      font-weight: 600;
      font-size: 1.4rem;
    }
  
    .navbar .navbar-nav a {
      display: block;
      margin: 0.8rem;
      margin-left: 0.5rem;
      font-size: 1.5rem;
      border-radius: 8px;
    }

    ul {
      margin-left: 0;
      padding-right: 5rem;
    }
    
    .navbar-extra {
      display: flex;
      align-items: center;
    }

    .topbar {
      height: 4.5rem;
    }

    .topbar-container {
      padding: 1.2rem;
      margin: auto;    
      text-align: center;
      width: fit-content;
    }

    .topbar-left a{
      font-size: 1.4rem;
    }

    .topbar-right {
      display: none;
    }

    /* Home */
    .home .hero {      
      gap: 0.5rem;
      margin-top: 11rem;
    }

    .home .hero img {
      width: 48%;
    }

    .home p  {
      font-size: 2.6rem;
      padding: 1.4rem;
    }

    .logo {
      display: none;
    }

    .about p {
      font-size: 2rem;
      max-width: 80%;
    }

    .slider {
      width: 40rem;
    }

  /* Paket Persalinan */
.price-container    {
max-width:80%;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}

.price-card {
margin-bottom: 1.5rem;
}

.price-img  {
width:100%;
height:24rem;
object-fit:cover;
}

.price-content  {
padding:25px;
background:var(--white);
border: 1px solid #b0b0b0;
border-radius:30px 30px 25px 25px;
margin-top:-40px;
position:relative;
}

/* Jadwal */
.jadwal-container {  
  width: 80%;
  margin-bottom: 3.5rem
}

.jadwal-card {
  background-color: var(--white);
  border: 1px solid #b0b0b0;
  border-radius: 30px;
  align-items: center;
  padding: 2rem 4rem;
  transition:0.3s;
}

.jadwal-card p, .dokter-card p {
  text-align: center;
  font-weight: 700;
  font-size:25px;
  margin-bottom: 1rem;
  line-height: 2.5rem;
}

.jadwal-card h2, .dokter-card h2 {
  color: var(--pride);
  text-align: center;
  font-size:30px;
  line-height: 3rem;
}

.dokter-card {
  padding: 1.2rem 5rem;
}

.dokter-card img {
  width: 80%;
  border-radius: 50%;
}

.dokter-card p {
  color: #8b8b8b;
  font-size: 20px;
  font-weight: normal;
  margin-top: 1.2rem; margin-bottom: 1rem;
}

.dokter-card h2 {
  color: var(--black);
  margin-bottom: 4rem;
  line-height: 3.4rem;
}

.dokter-card button {
  padding: 1.2rem 5rem;
  font-size: 2rem;
  margin-bottom: 1.6rem;
}

.timeline{
flex-direction:column;
align-items:center;
gap:80px;
}

/* Layanan */
.layanan-container {
  max-width: 90%;
}

.layanan-card {
  padding: 1.8rem 2.8rem;
  font-size: 2rem;
  line-height: 2.5rem;
}

.layanan-card i {
  color: var(--pride);
  margin-right: 1rem;
  font-size: 2.3rem;
}

/* Manajemen */
.manajemen-container {
  max-width: 80%;
}

.manajemen-card {
  margin-bottom: 2rem;
  padding: 1.8rem 2.8rem;
  font-size: 1.35rem;
  line-height: 1.7rem;
}

.manajemen-card:hover {
  transform:translateY(-8px);
  cursor: pointer;
}

.manajemen-card span {
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 2.5rem;
  color: var(--black)
}

.manajemen-card img {
  width: 40%;
  margin-right: 2rem;
}

/* Kontak */
.contact {
  max-width: 80%;
  display: block;
  align-items: center;
}

.contact iframe {
  width: 100%;
}

.contact-container {
  margin-top: 2.5rem;
}

.contact-list {
  max-width: fit-content;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.contact-list i {
  color: var(--pride);
  margin-right: 0.6rem;
  font-size: 2rem;
}

.contact-list .text span {
  font-weight: 700;
  font-size: 2.5rem;
}

/* Float */
.wa-float-pro{
position:fixed;
bottom:25px;
right:25px;

width:65px;
height:65px;

background:var(--pride);
color:white;
border-radius:50%;

display:flex;
justify-content:center;
align-items:center;

font-size:30px;
text-decoration:none;

box-shadow:0 8px 25px rgba(0,0,0,0.3);
z-index:9999;

animation:pulse 2s infinite;
}

/* HOVER */
.wa-float-pro:hover{
animation:none;
transform:scale(1.1);
}

/* TOOLTIP */
.wa-tooltip{
position:absolute;
right:75px;
background:white;
color:#333;
padding:8px 12px;
border-radius:10px;
font-size:13px;
white-space:nowrap;

box-shadow:0 5px 15px rgba(0,0,0,0.15);

opacity:0;
transform:translateX(10px);
transition:0.3s;
}

.wa-float-pro:hover .wa-tooltip{
opacity:1;
transform:translateX(0);
}

/* PULSE ANIMATION */
@keyframes pulse{
0%{
box-shadow:0 0 0 0 var(--pride);
}
70%{
box-shadow:0 0 0 20px rgba(37,211,102,0);
}
100%{
box-shadow:0 0 0 0 rgba(37,211,102,0);
}
}

/* garis utama */

.timeline-line{
top:0;
left:50%;
width:3px;
height:100%;
transform:translateX(-50%);
}

/* item */

.timeline-item{
position:relative;
width:100%;
}

/* titik node tepat sejajar */

.timeline-item::before{
content:"";
position:absolute;
top:32px; /* ini sejajar dengan tahun */
left:50%;
transform:translate(-50%,0);
width:12px;
height:12px;
background:red;
border-radius:50%;
}

/* konten */

.timeline-item .content{
position:relative;
width:45%;
}

/* kiri */

.timeline-item:nth-child(odd) .content{
margin-right:auto;
text-align:right;
padding-right:20px;
padding-top:20px;
}

/* kanan */

.timeline-item:nth-child(even) .content{
margin-left:auto;
text-align:left;
padding-left:20px;

}

    .footer {
      grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    }

      .footer-content h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 30px;
  }

.footer-content h4:after {
    content: '';
    height: 0.2rem;
    width: 5rem;
    background-color: var(--pride);
    display: block;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

  .footer-content a {
    text-decoration: none;
    list-style: none;
    color: #8b8b8b;
    font-size: 15px;
    transition: 0.3s;
    line-height: 2.8rem;
  }

  .footer-content a:hover {
    color: var(--white);
  }

  .footer-content p {
    font-size: 15px;
    color: var(--white);
    margin-bottom: 1.5rem;
  }

  .footer-content lol {
    color: var(--pride);
    transition: 0.3s;
  }

  .footer-content span {
    color: var(--pride);
    transition: 0.3s;
  }

  .footer-content span:hover {
    text-decoration: underline;
  }

  .footer-content a.logo {
    font-size: 25px;
    color: var(--white)    
  }

  .icons a {
    font-size: 22px;
    color: var(--pride);
    display: inline-block;
    margin-right: 17px;
    transition: 0.3s;
  }

  .icons a:hover {
    transform: translateY(-5px);
  }
    
}