@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: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px; /* ✅ Jarak antar card longgar, sesuai gambar */
    margin-top: 40px;
}

.doctor-card {
    width: 300px; /* ✅ Lebar tetap (sesuai gambar) */
    min-height: 300px; /* ✅ Tinggi card biar space antar komponen cukup */
    background-color: #ffffff;
    border-radius: 80px; /* ✅ Lebih bulat */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* ✅ Soft shadow */
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.doctor-card img {
    width: 150px; /* ✅ Ukuran gambar kecil di tengah */
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0; /* ✅ Border lingkaran tipis abu muda */
    margin-bottom: 15px;
}

.doctor-info h3 {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.doctor-info p {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

.btn {
    background-color: #1771ca;
    color: white;
    border: none;
    padding: 6px 20px; /* ✅ Lebar tombol */
    text-align: center;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background-color: #145fa8;
    transform: translateY(-2px);
}

.btn:active {
    background-color: #124f8a;
    transform: translateY(0);
}

/* ✅ Responsive Tablet */
@media (max-width: 1024px) {
    .doctor-card-container {
        gap: 20px;
    }

    .doctor-card {
        width: 200px;
    }
}

/* ✅ Responsive Mobile */
@media (max-width: 768px) {
    .doctor-card-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .doctor-card {
        width: 80%;
    }
}

  

/* ----------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;
    }
}

.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;
}


.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .loader-content {
    text-align: center;
  }
  
  .loader-logo {
    width: 300px;
    height: auto;
    margin-bottom: 5px;
  }
  
  .spinner {
    border: 6px solid #ddd;
    border-top: 6px solid #1771ca;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    margin: 0 auto 10px auto;
    animation: spin 1s linear infinite;
  }
  
  .loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    font-family: sans-serif;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  #loader {
    transition: opacity 0.5s ease;
  }
  
  #loader.hide {
    opacity: 0;
    pointer-events: none;
  }

