/* File: style.css (Versi VIBRAN - Footer Terang) */

/* === IMPOR FONT === */
@import url('http://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* === GAYA DASAR === */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}
*, *::before, *::after {
    box-sizing: border-box;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* === HEADER & NAVIGASI (Warna Baru) === */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-bottom: 3px solid #00796B; /* WARNA BARU */
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6em;
    color: #00796B; /* WARNA BARU */
    font-weight: 700;
    text-decoration: none;
}
.header-title img {
    max-height: 40px;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}
.nav-links li a {
    text-decoration: none;
    color: #343a40;
    font-weight: 700;
    font-size: 1em;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.nav-links li a:hover {
    color: #00796B; /* WARNA BARU */
    border-bottom-color: #00796B; /* WARNA BARU */
}

/* === HERO SECTION (Warna Baru) === */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/foto_klinik.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}
.hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.hero p {
    font-size: 1.4em;
    margin-bottom: 35px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
.cta-button {
    padding: 15px 35px;
    background-color: #FB8C00; /* WARNA BARU (Aksen Oranye) */
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid #FB8C00; /* WARNA BARU */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.cta-button:hover {
    background-color: #e67e00;
    border-color: #e67e00;
    transform: translateY(-3px);
}

/* === CSS FORM PENDAFTARAN (Warna Baru) === */
.registration-section {
    padding: 60px 0;
    background-color: #00796B; /* WARNA BARU */
    border-bottom: 1px solid #00695C;
}
.registration-section h2 {
    color: #ffffff; 
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 15px;
}
.registration-section p {
    color: #e9ecef;
    text-align: center; 
    margin-bottom: 30px;
    font-size: 1.1em;
}
#form-pasien {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.form-grup { 
    display: flex; 
    flex-direction: column; 
    margin-bottom: 20px; 
}
.form-grup label { 
    margin-bottom: 8px; 
    font-weight: 700; 
    color: #343a40; 
}
.form-grup input, .form-grup textarea { 
    padding: 12px 15px;
    font-size: 16px; 
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
}
.form-grup input:focus, .form-grup textarea:focus {
    outline: none;
    border-color: #00796B; /* WARNA BARU */
    box-shadow: 0 0 5px rgba(0,121,107,0.3);
}
#btn-tambah { 
    padding: 14px; 
    font-size: 16px; 
    font-weight: 700;
    color: #fff; 
    background-color: #FB8C00; /* WARNA BARU */
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    width: 100%;
    transition: all 0.3s ease;
}
#btn-tambah:hover { 
    background-color: #e67e00; /* WARNA BARU */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(251,140,0,0.3);
}

/* === BAGIAN KONTEN (Warna Baru) === */
.section {
    padding: 60px 0;
    background-color: #fff;
    margin-top: 20px;
    border-radius: 8px;
}
.registration-section + .section {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.section h2 {
    text-align: center;
    font-size: 2.2em;
    color: #00796B; /* WARNA BARU */
    margin-bottom: 40px;
}
.services-grid, .features-grid, .doctor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.service-item, .feature-item, .doctor-profile, .article-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.service-item:hover, .feature-item:hover, .doctor-profile:hover, .article-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.service-item h3, .feature-item h3 {
    color: #00796B; /* WARNA BARU */
    margin-top: 0;
}
.doctor-profile {
    flex-basis: 250px;
}
.doctor-profile img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #00796B; /* WARNA BARU */
    margin-bottom: 15px;
    padding: 5px;
    background-color: #fff;
}
.doctor-profile h3 {
    color: #00796B; /* WARNA BARU */
    margin-bottom: 5px;
}
.doctor-profile p {
    color: #555;
    margin-top: 0;
    font-style: italic;
    font-size: 0.95em;
}

/* === STYLE TABEL JADWAL DOKTER (Warna Baru) === */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border-radius: 8px;
    overflow: hidden;
}
.schedule-table thead tr {
    background-color: #00796B; /* WARNA BARU */
    color: #ffffff;
    text-align: left;
    font-weight: 700;
}
.schedule-table th,
.schedule-table td {
    padding: 14px 18px;
    border: 1px solid #ddd;
}
.schedule-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}
.schedule-table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}
.schedule-table tbody tr:hover {
    background-color: #e9ecef;
}
.schedule-table td:first-child {
    font-weight: 700;
    color: #00796B; /* WARNA BARU */
}

/* === STYLE ARTIKEL (Warna Baru) === */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.article-item {
    text-align: left;
    display: flex;
    flex-direction: column;
}
.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.article-content h3 {
    margin-top: 0;
    color: #00796B; /* WARNA BARU */
}
.article-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}
.article-content p {
    flex-grow: 1;
    line-height: 1.6;
}
.btn-baca {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background-color: #FB8C00; /* WARNA BARU */
    border-radius: 5px;
    text-decoration: none;
    width: 160px;
    text-align: center;
    transition: all 0.3s ease;
}
.btn-baca:hover {
    background-color: #e67e00; /* WARNA BARU */
}
.article-full {
    max-width: 800px;
}
.article-title {
    font-size: 2.8em;
    color: #00796B; /* WARNA BARU */
    margin-bottom: 10px;
    border-bottom: none;
    line-height: 1.3;
}
.article-date-full {
    font-size: 1em;
    color: #777;
    margin-bottom: 25px;
    display: block;
}
.article-image-full {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}
.article-body {
    font-size: 1.15em;
    line-height: 1.8;
    white-space: pre-wrap;
}
.btn-kembali-artikel {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 22px;
    font-weight: 700;
    color: #fff;
    background-color: #00796B; /* WARNA BARU */
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-kembali-artikel:hover {
    background-color: #00695C;
}

/* ========================================
STYLE BARU: KONTAK & FOOTER (TERANG)
========================================
*/
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.contact-item {
    background-color: #ffffff; /* Latar putih */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef; /* Border halus */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Shadow halus */
}
.contact-item h3 {
    color: #00796B; /* WARNA BARU (Teal) */
    margin-top: 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}
.contact-item p {
    line-height: 1.7;
    font-size: 1.05em;
    color: #343a40; /* Teks normal */
}
.contact-item a {
    color: #FB8C00; /* WARNA BARU (Oranye) */
    font-weight: 600;
    text-decoration: none;
}
.contact-item a:hover {
    text-decoration: underline;
}
.hours-table {
    width: 100%;
    margin-top: 10px;
    color: #343a40; /* Teks normal */
}
.hours-table td {
    padding: 8px 0;
    border-bottom: 1px dashed #ced4da;
}
.hours-table td:first-child {
    font-weight: 600;
}
.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #ced4da; /* Border normal */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Shadow halus */
}

/* Bagian section#kontak (Footer) */
.section[id="kontak"] {
    background-color: #f8f9fa; /* Latar abu-abu sangat muda */
    margin-top: 20px;
    border-radius: 8px;
    padding: 60px 0;
    border-top: 1px solid #e9ecef;
}
.section[id="kontak"] h2 {
    color: #00796B; /* WARNA BARU (Teal) */
}
.section[id="kontak"] p {
    color: #555; /* Teks abu-abu */
    text-align: center;
}
/* Kita tidak butuh lagi style 'footer' yang gelap */
footer { 
    display: none; 
}
.footer-login {
    margin-top: 30px;
    font-size: 0.9em;
}
.footer-login a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-login a:hover {
    color: #00796B; /* WARNA BARU */
}
/* ======================================== */


/* === TOMBOL WA MENGAMBANG === */
.floating-wa { 
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    background-color: #25D366; 
    color: white; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
    z-index: 1001; 
    transition: all 0.3s ease; 
}
.floating-wa:hover { 
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.floating-wa svg { 
    width: 32px; 
    height: 32px; 
    fill: white; 
}