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

:root {
    --primary-color: #1771ca;
    --primary-color-dark: #1771ca;
    --secondary-color: #faf9fe;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --white: #ffffff;
    --max-width: 1200px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

main {
    text-align: center;
    margin: 50px;
    max-height: fit-content;
}

.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;
}

.disabled-link {
    pointer-events: none;
    cursor: default;
    opacity: 0.6;
    text-decoration: none;
    color: gray;
}

.section__header {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-dark);
    font-style: monospace;
}

.section__header::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section__description {
    max-width: 900px;
    color: var(--text-light);
}

.btn {
    padding: 0.75rem 1.5rem;
    outline: none;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 5rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background-color: var(--primary-color-dark);
}

img {
    display: flex;
    width: 100%;
}

a {
    text-decoration: none;
    white-space: nowrap;
}

body {
    font-family: Arial, sans-serif;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    animation: move 10s ease infinite;
    background-color: #ffffff;
}

nav {
    position: relative;
    isolation: isolate;
    width: 100%;
    z-index: 9;
}

.nav__header {
    padding: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--secondary-color);

    z-index: 1001;
}

.nav__logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #004f9e;
}

.nav__logo img {
    max-width: 65px;
}

.nav__links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    padding: 2rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--secondary-color);
    transition: 0.5s;
    z-index: -1;
    transform: translateY(-150%);
}

.nav__links.open {
    transform: translateY(0);
}

.link a {
    color: var(--text-dark);
    transition: 0.3s;
}

.link a:hover {
    color: var(--primary-color);
}

.nav__menu__btn {
    font-size: 1.5rem;
    color: var(--text-dark);
}

/*----header----*/
.header__container {
    display: grid;
    gap: 2rem;
}

.header__image img {
    max-width: 600px;
    margin: auto;
}

.header__content h4 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #1771ca;
}

.header__content .section__header {
    font-size: 3.5rem;
    font-weight: 700;
}

.header__content p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

/*----End header----*/

/* ----------DOkter------- */
h2 {
    text-align: center;
    font-size: 2rem; /* Adjust the size as needed */
    font-weight: bold; /* Optional: to make the text bold */
    color: #333; /* Optional: to set a specific text color */
    margin-top: 5rem;
}

.doctor-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Maksimal 4 kolom */
    gap: 1rem;
    justify-content: center; /* Memusatkan grid secara horizontal */
    align-items: center; /* Memusatkan item secara vertikal */
    margin: 2rem auto; /* Auto margin untuk pusatkan container */
    max-width: 1550px; /* Menyesuaikan agar tidak terlalu lebar */
}

.doctor-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50px; /* Mengurangi radius agar lebih proporsional */
    width: 180px; /* Ukuran card lebih kecil */
    text-align: center;
    padding: 0.8rem; /* Mengurangi padding agar tidak terlalu besar */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: auto; /* Memastikan card tetap di tengah */
}

.doctor-img {
    width: 100%;
    border-radius: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 2rem;
}

.doctor-info h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.doctor-info p {
    font-size: 0.9rem;
    color: #777;
}

.btn {
    background-color: #1771ca; /* Warna latar belakang tosca yang mencolok namun lembut, cocok untuk menarik perhatian pada tombol. */
    color: white; /* Warna teks putih memberikan kontras yang jelas dengan latar belakang untuk keterbacaan yang baik. */
    border: none; /* Menghilangkan border default tombol agar terlihat lebih bersih dan modern. */
    padding: 7px 20px; /* Memberikan ruang di dalam tombol sehingga terlihat lebih proporsional dan nyaman untuk diklik. */
    text-align: center; /* Memastikan teks di dalam tombol terpusat secara horizontal. */
    text-decoration: none; /* Menghapus garis bawah pada teks untuk menjaga tampilan tombol tetap bersih. */
    display: inline-block; /* Memastikan elemen tombol tetap dalam satu baris dengan elemen lainnya jika ada. */
    font-size: 1rem; /* Ukuran teks tombol yang sesuai dengan ukuran teks standar untuk keterbacaan. */
    cursor: pointer; /* Mengubah kursor menjadi pointer untuk menunjukkan bahwa elemen ini bisa diklik. */
    border-radius: 20px; /* Membuat sudut tombol melengkung sehingga terlihat lebih ramah dan modern. */
    margin-top: 0px; /* Memberikan jarak antara tombol dan elemen lain di atasnya untuk tata letak yang lebih rapi. */
    margin-left: 1px;
}

.btn:hover {
    background-color: #4572a0; /* Darker green on hover */
    transform: translateY(-2px); /* Slight movement for effect */
}

.btn:active {
    background-color: #3e778e; /* Even darker green when clicked */
    transform: translateY(0); /* Reset the button position */
}

/* Responsivitas untuk layar lebih kecil */
@media (max-width: 1024px) {
    .doctor-card-container {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom pada tablet besar */
    }
}

@media (max-width: 768px) {
    .doctor-card-container {
        grid-template-columns: repeat(1, 1fr); /* 2 kolom pada tablet */
        flex-direction: column;
        align-items: center;
    }
}

.doctor-card {
    width: 80%;
    margin-bottom: 1rem;
}


.doctor-detail {
    max-width: 1200px;
    margin: auto;
    padding: 3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .doctor-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5rem;
  }
  
  .doctor-info {
    flex: 1;
    max-width: 600px;
  }
  
  .doctor-info h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
  }
  
  .specialization {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
  }
  
  .schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
  }
  
  .schedule-table th, .schedule-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
  }
  
  .schedule-table th {
    background-color: #f0f0ff;
  }
  
  .schedule-note {
    font-size: 0.9rem;
    color: #777;
    margin-top: 1rem;
  }
  
  .doctor-image {
    flex: 1;
    max-width: 300px;
  }
  
  .doctor-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
  }
  
  .btn-back {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 20px;
    background-color: #1771ca;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
  }
  
  .btn-back:hover {
    background-color: #004f9e;
  }

/* ----------End DOkter------- */

/* General styles */
.centered-text {
    text-align: center;
    font-size: 15px;
    font-weight: lighter;
    color: #525252;
    margin: 20px 0;
}

p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/*----Footer----*/

.footer {
    background-color: var(--secondary-color);
}

.footer__container {
    display: grid;
    gap: 2rem;
}

.footer__logo a {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.footer__logo img {
    max-width: 40px;
}

.footer__col p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__socials a {
    padding: 5px 10px;
    font-size: 1.2rem;
    color: var(--text-light);
    border-radius: 100%;
    border: 1px solid var(--text-light);
}

.footer__socials a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer__col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
}

.footer__links a {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer__links a:hover {
    color: var(--primary-color);
}

.footer__bar {
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}
/* Footer responsive di mobile */
@media screen and (max-width: 768px) {
    .footer__container {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer__col iframe {
      width: 100% !important;
    }
  
    .footer__logo a {
      font-size: 1.2rem;
    }
  
    .footer__links p, .footer__links a {
      font-size: 0.95rem;
    }
  
    .footer__socials a {
      font-size: 1.5rem;
      margin: 0 0.5rem;
    }
  }

/*----End Footer----*/

@media (width > 480px) {
    .class__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }

    .trainer__grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .trainer__card:nth-child(3) {
        grid-area: 2/2/3/3;
    }

    .price__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }

    .footer__container {
        grid-template-columns: 2fr 1fr;
    }
}

@media (width > 768px) {
    nav {
        position: static;
        padding: 2rem 1rem;
        max-width: var(--max-width);
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .nav__header {
        padding: 0;
        background-color: transparent;
    }

    .nav__menu__btn {
        display: none;
    }

    .nav__links {
        position: static;
        padding: 0;
        flex-direction: row;
        background-color: transparent;
        transform: none;
    }

    .header__container {
        padding-block: 0;
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
    }

    .header__content {
        padding-block: 5rem;
        grid-area: 1/1/2/2;
    }

    .footer__container {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer__col:first-child {
        grid-column: 1/3;
    }
}

.news-section {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }

  .main-content {
    flex: 3;
    margin-right: 2rem;
  }

  .main-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .main-content img {
    width: 100%;
    margin: 1rem 0;
    border-radius: 8px;
  }

  .main-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .sidebar {
    flex: 1;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
  }

  .sidebar h3 {
    font-size: 18px;
    margin-bottom: 1rem;
    font-weight: 600;
  }

  .news-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .news-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
  }

  .news-item p {
    font-size: 14px;
    color: #333;
    margin: 0;
  }



  .sidebar {
    width: 250px;
    float: right;
    margin-left: 40px;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    overflow: hidden;
}

.news-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}



.news-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.news-item p {
    font-size: 13px;
    margin: 0;
    color: #333;
    line-height: 1.3;
    word-wrap: break-word;
    white-space: normal;        /* Izinkan teks membungkus */
    max-width: 170px;           /* Batasi lebar teks agar tidak melewati gambar */
}




/* Modifikasi button logout dan user*/
.nav__links .user-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-btn,
.logout-btn {
    background-color: #1976d2;
    color: white;
    font-size: 12px; /* slightly increased font size */
    padding: 8px 15px; /* increased padding to make the button wider */
    border-radius: 10px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px; /* increased gap between icon and text */
    transition: all 0.3s ease;
    width: auto; /* ensures it adjusts to the content width */
    min-width: 100px; /* ensures a minimum width for consistency */
}

.logout-btn {
    background-color: #e53935;
}

.user-btn:hover {
    background-color: #1565c0;
}

.logout-btn:hover {
    background-color: #c62828;
}

.hidden {
    display: none !important;
}