    /* ================= HEADER ================= */
    .header {
        background: #ffffff;
        border-bottom: 1px solid #e0e0e0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        
    }

    .logo {
        font-size: 20px;
        font-weight: 700;
        color: #1e88e5;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo img {
        height: 60px;
        width: auto;
        display: block;
        margin-top: -23px;
    }

    .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1e88e5;
    line-height: 1.2;  /* PENTING: biar sejajar optik */
    }

    body {
        background-color: #ffffff;
        padding: 40px;
        font-family: "Segoe UI", Roboto, Arial, sans-serif;
        color: #333;
        background-color: #ffffff;
        line-height: 1.6;
    }

    h1 {
        color: #0066cc;
    }


    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .table td {
    vertical-align: middle;
    }

    /* khusus kolom status */
    .table td:last-child {
    width: 160px;               /* KUNCI lebar kolom */
    }

    th {
        background-color: #0066cc;
        color: white;
    }

    td, th {
        padding: 10px;
        text-align: left;
    }

    .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    }

    /* cegah teks pecah aneh */
    .table th,
    .table td {
        white-space: nowrap;
    }

    

/* ====== DOKTER CARD ====== */
.dokter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.dokter-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  /* overflow: hidden; */
}

.dokter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.dokter-photo {
  height: 260px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dokter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto-placeholder {
  font-size: 64px;
  color: #aaa;
}

.dokter-info {
  padding: 15px;
  /* text-align: center; */
}

.dokter-info h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.dokter-info .spesialis {
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

.dokter-info .poli {
  font-size: 13px;
  color: #666;
}

/* DOKTER DETAIL */
.dokter-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.dokter-header .foto img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.foto-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.dokter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 15px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  border-color: #1e88e5;
  color: #1e88e5;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}



    /* ===============================
    HALAMAN LAYANAN
    ================================ */

    .layanan-section {
    padding: 40px 20px;
    }

    .layanan-section h1 {
    text-align: center;
    margin-bottom: 10px;
    }

    .layanan-section .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    }

    .layanan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    }

    .layanan-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .layanan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    }

    .layanan-card h3 {
    margin-bottom: 8px;
    color: #0d6efd;
    }

    .layanan-card p {
    color: #444;
    font-size: 14px;
    }

    

    /* ================= PAGE HEADER ================= */
    .page-header {
        background: #f5f7fa;
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .page-header p {
        color: #666;
        font-size: 15px;
    }


    /* ================= RESET ================= */
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

    /* ================= GLOBAL ================= */
    

    a {
        text-decoration: none;
        color: #1e88e5;
    }

    a:hover {
        text-decoration: underline;
    }

    .container {
        max-width: 1100px;
        margin: auto;
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }

    h1, h2, h3 {
        margin-bottom: 12px;
        color: #222;
    }

    html {
        scroll-behavior:smooth;
    }
    
    /* ================= BUTTON ================= */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-primary {
    background: #1e88e5;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1565c0;
    text-decoration: none;
}

.btn-outline {
    border: 1px solid #ffffff;
    color: #ffffff;
    margin-left: 10px;
}

.btn-outline:hover {
    background: #ffffff;
    color: #1e88e5;
    text-decoration: none;
}

.btn-secondary {
    background: #f1f1f1;
    color: #333;
}

/* ================= NEWS ================= */
.news {
    background: #f9fafb;
}

.news-list {
    list-style: none;
    margin: 20px 0;
}

.news-list li {
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list .date {
    color: #888;
    margin-right: 8px;
}

/* ================= SMALL DETAILS ================= */
img {
    max-width: 100%;
    height: auto;
}

button, a {
    transition: all 0.2s ease-in-out;
}

/* ================= TYPO & SPACING ================= */
h1 {
    line-height: 1.3;
}

h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

h3 {
    font-size: 18px;
}

p {
    margin-bottom: 14px;
    color: #444;
}

/* ================= NEWS ================= */
.news {
    background: #f9fafb;
}

.news-list {
    list-style: none;
    margin: 20px 0;
}

.news-list li {
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list .date {
    color: #888;
    margin-right: 8px;
}

/* ================= BERITA (BERANDA) ================= */
.news {
    background: #f9fafb;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.news-item:last-child {
    border-bottom: none;
}

.news-thumb img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.news-content {
    flex: 1;
}

.news-date {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e88e5;
}

.news-title:hover {
    text-decoration: underline;
}

.berita-detail {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.berita-detail p {
    margin-bottom: 14px;
}

.berita-image {
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
}

.berita-gallery {
  background: #f9fafb;
  padding: 16px;
  border-radius: 12px;
}





.gallery-mini {
  margin-bottom: 16px;
}

.gallery-mini img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-title {
  font-size: 14px;
  margin-top: 6px;
}

.gallery-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery-mini img {
  width: 100%;
  height: 120px;     /* 🔥 batasi tinggi */
  object-fit: cover; /* biar tidak gepeng */
  border-radius: 8px;
}



.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}







/* ================= PAGINATION ================= */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #1e88e5;
}

.pagination span.active {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}

.pagination a:hover {
    background: #e3f2fd;
    text-decoration: none;
}

/* ============ GALLERY =============*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .2s;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.thumb {
  position: relative;
}

.badge-foto { background: #2ecc71; }
.badge-video { background: #e74c3c; }
.badge-artikel { background: #3498db; }

.card-body {
  padding: 12px;
}

.card-body h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.date {
  font-size: 12px;
  color: #777;
}

.gallery-detail h1 {
  margin: 10px 0 4px;
}

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  text-decoration: none;
  color: #3498db;
}

.gallery-media {
  margin: 20px 0;
}

.gallery-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.gallery-content {
  margin-top: 20px;
  line-height: 1.6;
}

    /* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .nav {
        margin-top: 10px;
    }

    .nav a {
        margin: 0 10px;
    }

    .hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .qa-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Page header */
    .page-header {
        padding: 30px 0;
        text-align: center;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header p {
        font-size: 14px;
    }

    /* Content spacing */
    section.container {
        padding-top: 20px;
    }

    /* Layanan */
    .services-grid {
        grid-template-columns: 1fr;
    }

/* ====== DOKTER CARD ====== */
.dokter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.dokter-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  /* overflow: hidden; */
}

.dokter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.dokter-photo {
  height: 260px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dokter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto-placeholder {
  font-size: 64px;
  color: #aaa;
}

.dokter-info {
  padding: 15px;
  /* text-align: center; */
}

.dokter-info h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.dokter-info .spesialis {
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

.dokter-info .poli {
  font-size: 13px;
  color: #666;
}



    /* LIST & TEKS */
    h2 {
        font-size: 20px;
    }

    p, li {
        font-size: 14px;
        line-height: 1.6;
    }

    ol, ul {
        padding-left: 18px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    .news-item {
        flex-direction: column;
    }

    .news-thumb img {
        width: 100%;
        height: auto;
    }
    /* kecilkan font tabel */
    .table {
        font-size: 14px;
    }

    /* kolom spesialis sering panjang */
    .table td:nth-child(3),
    .table th:nth-child(3) {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* kolom jam lebih ringkas */
    .table td:nth-child(4),
    .table th:nth-child(4) {
        min-width: 90px;
        text-align: center;
    }

    /* status tetap jelas */
    .table th:last-child,
    .table td:last-child {
        position: sticky;
        right: 0;
        background: #fff;
        z-index: 2;
        box-shadow: -4px 0 6px rgba(0,0,0,0.05);
    }

    .table td:nth-child(2)::after {
        content: attr(data-spesialis);
        display: block;
        font-size: 12px;
        color: #6b7280;
        margin-top: 4px;
    }

    .col-spesialis {
        display: none;
    }
}
  

    @media (max-width: 576px) {

    section {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
   
    .btn-outline {
        margin-left: 0;
    }

    .services-grid,
    .qa-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        text-align: center;
    }

    .logo span {
        font-size: 16px;
    }

    .logo img {
        height: 32px;
    }

    .logo-text {
        font-size: 16px;
    }
    /* Page header */
    .page-header {
        padding: 30px 0;
        text-align: center;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header p {
        font-size: 14px;
    }

    /* Content spacing */
    section.container {
        padding-top: 20px;
    }

    /* Layanan */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Dokter */
    .doctor-list {
        grid-template-columns: 1fr;
    }

    .doctor-card {
        text-align: left;
    }

    /* LIST & TEKS */
    h2 {
        font-size: 20px;
    }

    p, li {
        font-size: 14px;
        line-height: 1.6;
    }

    ol, ul {
        padding-left: 18px;
    }
    
    .news-item {
        flex-direction: column;
    }

    .news-thumb img {
        width: 100%;
        height: auto;
    }

    

}


