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

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

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

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

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

nav {
    position: fixed;
    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);
}

.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: absolute;
    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(-100%);
}

.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----*/

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

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
}

.services-section {
    text-align: center;
    margin: 50px;
}

.services-section h2 {
    font-size: 2rem;
    color: #333;
    font-weight: bold;
}

.services-section p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

.services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service {
    background-color: #fafaff;
    border-radius: 950%;
    padding: 20px;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 96, 252, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service img {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
}

.service h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.service p {
    font-size: 0.9rem;
    color: #666;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/*----End Service Section----*/

/* ----------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;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.doctor-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50px;
    width: 300px;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.doctor-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 100%;
    margin-bottom: 1rem;
  
    /* Tambahan agar gambar center */
    margin-left: auto;
    margin-right: auto;
  
    border: 4px solid #e2e8f0;
    transition: transform 0.3s ease;
  }
  

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

@media (max-width: 768px) {
    .doctor-card-container {
        flex-direction: column;
        align-items: center;
    }
    .doctor-card {
        width: 80%;
        margin-bottom: 1rem;
    }
}
/* ----------End DOkter------- */

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

.berita-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

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

/* Berita Container */
.berita-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #f1f1f1;
}

.news-info {
    padding: 20px;
    text-align: left;
}

.news-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.news-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-info .date {
    font-size: 12px;
    color: #aaa;
}

.read-more {
    text-decoration: none;
    font-weight: bold;
    color: #007bff;
    margin-top: 10px;
    border: #64748b;
    border-bottom: #004f9e;
    border-radius: 20%;
}

.read-more:hover {
    text-decoration: underline;
}

/*--End berita */

/*----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(2, 1fr);
        align-items: center;
    }

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

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

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

.floating {
    animation: float 2s ease-in-out infinite;
    display: inline-block;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-20px); /* lebih tinggi */
    }
    100% {
      transform: translateY(0px);
    }
  }
  

  .floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

  


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



.video-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
    border-radius: 50px;
  }
  
  .video-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  
  .video-item {
    width: 320px;
    max-width: 100%;
  }
  
  .video-caption {
    margin-top: 10px;
    font-weight: 500;
  }
  
  



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