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

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

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

.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-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    animation: move 10s ease infinite;
    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: #f0f0ff;
    border-radius: 1000%;
    padding: 20px;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 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: 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 */
}

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

.about,
.visi-misi {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: auto;
}

.about__content,
.visi-misi__content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about__image img,
.visi-misi__image img {
    max-width: 200px;
    height: auto;
}

.about__text,
.visi-misi__text {
    max-width: 600px;
}

.about__text h2,
.visi-misi__text h2 {
    font-size: 1.8rem;
    color: #1771ca;
    margin-bottom: 1rem;
}

.about__text p,
.visi-misi__text p {
    font-size: 1rem;
    color: #666;
}
.struktur-organisasi {
    text-align: center;
    padding: 3rem 1rem;
}

.struktur-organisasi h2 {
    font-size: 2rem;
    color: #1771ca;
    margin-bottom: 2rem;
}

.struktur-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.struktur-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Card Struktur Organisasi */
.struktur-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px; /* Ukuran lebar seragam */
    min-height: 210px; /* Tinggi seragam */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.struktur-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1%;
}

.struktur-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.struktur-item p {
    font-size: 1rem;
    color: #777;
    margin-bottom: 1rem;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .struktur-row {
        flex-direction: column;
        align-items: center;
    }

    .struktur-item {
        width: 100%;
        max-width: 250px;
    }
}

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


/* 👇 Media query untuk mobile - posisi gambar di bawah teks */
@media screen and (max-width: 768px) {
    .about__content {
      flex-direction: column-reverse; /* 🔄 gambar di bawah teks */
      text-align: center;
    }
  
    .about__image img {
      width: 90%;
      max-width: 100%;
      margin-top: 1.5rem;
    }
  
    .about__text {
      padding: 0 1rem;
    }
  }




  
  .service-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: separate;
    border-spacing: 20px;
  }

  .service-table th {
    text-align: center;
    font-size: 20px;
    padding: 12px;
    background-color: #1771ca;
    color: white;
    border-radius: 8px;
  }

  .service-table td {
    vertical-align: top;
    background-color: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .service-title {
    font-weight: bold;
    margin-top: 16px;
    color: #1771ca;
  }

  .service-list {
    margin-top: 6px;
    margin-bottom: 10px;
    padding-left: 20px;
    list-style-type: disc;
    color: #333;
  }

  .service-list li {
    margin-bottom: 4px;
  }

  @media screen and (max-width: 768px) {
    .service-table thead {
      display: none;
    }

    .service-table tr {
      display: block;
      margin-bottom: 20px;
    }

    .service-table td {
      display: block;
      width: 100%;
    }
  }



  
  .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: 20px;
  }
  
  .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); }
  }




  .modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
  }
  
  .modal-content {
    margin: auto;
    display: block;
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
  }
  
  
  @keyframes zoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  .close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }
  



  .jenis-pelayanan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Selalu 3 kolom di desktop */
    gap: 24px;
    margin-top: 30px;
}

/* Responsive untuk tablet */
@media (max-width: 992px) {
    .jenis-pelayanan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive untuk mobile */
@media (max-width: 600px) {
    .jenis-pelayanan-grid {
        grid-template-columns: 1fr;
    }
}

.pelayanan-box {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.pelayanan-box:hover {
    transform: translateY(-5px);
}

.pelayanan-box h4 {
    margin-bottom: 10px;
    color: #1771ca;
    font-size: 1.1rem;
}

.pelayanan-box ul {
    padding-left: 18px;
    margin: 0;
}

.pelayanan-box ul li {
    margin-bottom: 6px;
    color: #333;
    font-size: 15px;
}


.tabel-pelayanan {
    margin-top: 20px;
    overflow-x: auto;
}

.tabel-pelayanan table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 15px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tabel-pelayanan th,
.tabel-pelayanan td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.tabel-pelayanan th {
    background-color: #1771ca;
    color: white;
    font-weight: 600;
}

.tabel-pelayanan td {
    color: #333;
}

.pelayanan-box h4 i {
    color: #1771ca;
    margin-right: 8px;
  }
  .pelayanan-box p {
    margin: 5px 0;
    font-size: 15px;
    color: #333;
  }


  
  
  .tabel-pelayanan-wrapper {
    display: flex;
    justify-content: center;
}

.tabel-pelayanan {
    width: 100%;
    max-width: 850px; /* Ubah angka sesuai kebutuhan */
}

