/* ==========================================================================
   medical.css
   Styles for templates/medical/*.html
   ========================================================================== */

/* ── doctors.html ─────────────────────────────────────────────────────── */

/* Department list section */
.dept-list-sec { padding: 0 0 120px; background: #fff; }

/* Search box */
.dept-search-box {
    max-width: 800px;
    margin: 50px auto 50px;
    display: flex;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 60px;
    padding: 12px 15px 12px 45px;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.dept-search-box:focus-within { border-color: var(--main-brand); box-shadow: 0 15px 35px rgba(234, 84, 0, 0.12); }
.dept-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.3rem;
    padding: 10px 0;
    min-width: 0;
}
.dept-search-box button {
    background: var(--main-brand);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0 45px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dept-search-box button:hover { background: #333; }

/* Department grid (doctors.html, centers.html, clinics.html) */
.dept-list-sec .dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.dept-list-sec .dept-card {
    position: relative;
    min-height: 190px;
    height: auto;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.35s all ease;
    overflow: hidden;
    text-decoration: none !important;
    padding: 24px 16px;
    min-height: 215px;
    border-radius: 18px;
}

.dept-icon {
    width: 112px;
    height: 112px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
}
.dept-icon i { font-size: 3.5rem; color: #ccc; }
.dept-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.dept-list-sec .dept-card span {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
    margin-top: 6px;
    text-align: center;
    word-break: keep-all;
}

.dept-list-sec .dept-card:hover {
    border-color: var(--main-brand);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.dept-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(234, 84, 0, 0.96);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; opacity: 0; transform: scale(1.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.dept-list-sec .dept-card:hover .dept-overlay { opacity: 1; transform: scale(1); }

.overlay-btn {
    width: 130px; padding: 10px 0; border: 1.5px solid #fff; border-radius: 25px;
    color: #fff; font-size: 1rem; font-weight: 700; text-align: center; transition: 0.3s;
}
.overlay-btn:hover { background: #fff; color: var(--main-brand); }

@media (max-width: 768px) {
    .dept-list-sec { padding: 0 0 60px; }
    .dept-search-box { margin: 30px 0 40px; padding: 5px 5px 5px 20px; border-radius: 40px; }
    .dept-search-box input { font-size: 0.95rem; padding: 10px 0; padding-right: 15px; }
    .dept-search-box input::placeholder { font-size: 0.78rem; letter-spacing: -0.8px; color: #aaa; }
    .dept-search-box button { padding: 0 15px; height: 45px; border-radius: 35px; flex-shrink: 0; }
    .dept-search-box button span { display: none; }
    .dept-search-box button i { margin: 0; font-size: 1.1rem; }
    .dept-list-sec .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dept-list-sec .dept-card { min-height: 168px; height: auto; padding: 18px 10px; border-radius: 16px; }
    .dept-icon { width: 84px; height: 84px; margin-bottom: 10px; }
    .dept-icon i { font-size: 2.4rem; }
    .dept-list-sec .dept-card span { font-size: 1.02rem; margin-top: 4px; }
    .overlay-btn { width: 85px; font-size: 0.85rem; padding: 6px 0; }
}






/* ── dept_staff.html ──────────────────────────────────────────────────── */

.staff-section { background: #fcfcfc; }

.staff-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 90px;
    padding-left: 100px;
    padding-right: 100px;
}

.staff-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.staff-card-horizontal {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    min-height: 310px;
    height: auto;
}

.staff-card-horizontal:hover {
    border-color: var(--main-brand);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.card-left-img {
    flex: 0 0 200px;
    background: #f9f9f9;
    border-right: 1px solid #f0f0f0;
    align-self: stretch;
}
.card-left-img img { width: 100%; height: 100%; object-fit: cover; }

.card-right-info {
    flex: 1;
    padding: 24px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 290px;
}

.info-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 5px; }
.info-header h4 { font-family: 'GmarketSansBold'; font-size: 1.6rem; color: #111; margin: 0; }
.info-header .pos { font-size: 0.95rem; color: var(--main-brand); font-weight: 700; }

.info-body .field-label { font-weight: 800; color: #333; display: block; margin-bottom: 5px; font-size: 0.85rem; }
.info-body .field-text { color: #666; line-height: 1.5; font-size: 0.95rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Compact schedule table */
.mini-schedule { width: 100%; border-collapse: collapse; border-radius: 8px; overflow: hidden; border: 1px solid #f0f0f0; margin: 10px 0 6px; }
.mini-schedule th, .mini-schedule td { padding: 6px 3px; font-size: 0.78rem; text-align: center; border: 1px solid #f0f0f0; }
.mini-schedule th { background: #fcfcfc; color: #888; font-weight: 600; }
.mini-schedule th.row-label { background: #f9f9f9; color: #444; width: 60px; }
.status-on { color: var(--main-brand); font-weight: 700; }
.status-alt { color: #555; font-size: 0.75rem; }
.status-off { color: #ddd; }

.card-footer-btns { display: flex; gap: 10px; margin-top: 14px; }
.btn-action { padding: 10px 28px; border-radius: 25px; font-weight: 700; font-size: 0.9rem; text-decoration: none !important; transition: 0.3s; white-space: nowrap; }
.btn-detail { background: #444; color: #fff; }
.btn-reserve { border: 1.5px solid var(--main-brand); color: var(--main-brand); background: #fff; }

.btn-detail:hover { background: #000; }
.btn-reserve:hover { background: var(--main-brand); color: #fff; }

@media (max-width: 1024px) {
    .staff-container { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 768px) {
    .staff-container { padding: 30px 20px 60px; }
    .staff-card-horizontal { flex-direction: column; height: auto; border-radius: 20px; }
    .card-left-img { flex: none; width: 100%; height: 350px; }
    .card-right-info { padding: 25px 20px; }
    .card-footer-btns { flex-direction: column; }
    .btn-action { width: 100%; text-align: center; }
}


/* ── doctor_detail.html ───────────────────────────────────────────────── */

.doctor-profile-sec { padding: 80px 0; background: #fff; }
.profile-top-wrap { display: flex; gap: 60px; align-items: flex-start; margin-bottom: 60px; }

.profile-img-box { flex: 0 0 380px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); background: #f9f9f9; }
.profile-img-box img { width: 100%; display: block; }

.profile-info-box { flex: 1; }
.profile-info-header { border-bottom: 2px solid #111; padding-bottom: 25px; margin-bottom: 35px; }
.profile-info-header .dept-name { color: var(--main-brand); font-weight: 700; font-size: 1.1rem; display: block; margin-bottom: 10px; }
.profile-info-header h3 { font-family: 'GmarketSansBold'; font-size: 2.8rem; color: #111; }
.profile-info-header h3 span { font-size: 1.4rem; font-weight: 500; color: #666; margin-left: 15px; }

.info-item { margin-bottom: 35px; }
.info-item h5 { font-size: 1.2rem; font-weight: 800; color: #111; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.info-item h5::before { content: ''; width: 4px; height: 18px; background: var(--main-brand); border-radius: 2px; }
.info-item p { font-size: 1.1rem; color: #444; line-height: 1.7; word-break: keep-all; }

/* Detail page schedule table */
.schedule-table { width: 100%; border-collapse: collapse; border-top: 1px solid #ddd; margin-top: 15px; text-align: center; }
.schedule-table th, .schedule-table td { padding: 15px 10px; border-bottom: 1px solid #eee; font-size: 1rem; }
.schedule-table th { background: #fdfdfd; font-weight: 700; color: #333; }

.bio-accordion { margin-top: 40px; border: 1px solid #eee; border-radius: 15px; overflow: hidden; }
.bio-header { background: #fcfcfc; padding: 20px 30px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.bio-header:hover { background: #f5f5f5; }
.bio-header h4 { font-size: 1.15rem; font-weight: 700; color: #333; }
.bio-content { padding: 30px; display: none; background: #fff; border-top: 1px solid #eee; }
.bio-content.open { display: block; }
.bio-list { margin-bottom: 25px; }
.bio-list dt { font-weight: 700; color: var(--main-brand); margin-bottom: 10px; font-size: 1.05rem; }
.bio-list dd { color: #555; line-height: 1.8; margin-left: 0; white-space: pre-line; }

.special-notes-sec { margin-top: 60px; padding: 40px; background: #fff9f5; border-radius: 20px; border: 1px solid #f0e0d5; }
.special-notes-sec h4 { font-family: 'GmarketSansBold'; font-size: 1.5rem; color: #111; margin-bottom: 20px; }

@media (max-width: 992px) {
    .profile-top-wrap { flex-direction: column; gap: 40px; }
    .profile-img-box { flex: none; width: 100%; max-width: 400px; margin: 0 auto; }
}


/* ── emergency.html ───────────────────────────────────────────────────── */

.emg-alert-bar {
    background: var(--main-brand); color: #fff; padding: 20px 40px;
    border-radius: 15px; display: flex; align-items: center; gap: 20px;
    margin-bottom: 60px; box-shadow: 0 10px 30px rgba(234,84,0,0.3);
}
.emg-alert-bar i { font-size: 2rem; }
.emg-alert-bar .alert-text { flex: 1; }
.emg-alert-bar .alert-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.emg-alert-bar .alert-desc { font-size: 1rem; opacity: 0.9; }
.emg-phone { font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; white-space: nowrap; }

.emg-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 80px; }
.emg-info-card {
    background: #fff; border: 1px solid #eee; border-radius: 20px;
    padding: 40px 30px; text-align: center; transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}
.emg-info-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--main-brand); }
.emg-card-icon { font-size: 2.5rem; color: var(--main-brand); margin-bottom: 20px; }
.emg-card-title { font-size: 1.2rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 12px; }
.emg-card-desc { font-size: 0.95rem; color: #666; line-height: 1.7; word-break: keep-all; }

.emg-section { margin-bottom: 80px; }
.emg-section-title {
    font-size: 1.8rem; font-family: 'GmarketSansBold'; color: #111;
    margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; position: relative;
}
.emg-section-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 50px; height: 2px; background: var(--main-brand); }

.emg-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.emg-detail-box { background: #f8f9fa; border-radius: 15px; padding: 35px; }
.emg-detail-box h4 { font-size: 1.1rem; font-family: 'GmarketSansBold'; color: var(--main-brand); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.emg-detail-box ul { list-style: none; }
.emg-detail-box ul li { font-size: 0.98rem; color: #555; padding: 8px 0; border-bottom: 1px solid #eee; display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.emg-detail-box ul li:last-child { border-bottom: none; }
.emg-detail-box ul li::before { content: '\00B7'; color: var(--main-brand); flex-shrink: 0; font-weight: 900; }

@media (max-width: 1024px) {
    .emg-info-grid { grid-template-columns: 1fr 1fr; }
    .emg-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .emg-info-grid { grid-template-columns: 1fr; }
    .emg-hero h2 { font-size: 2rem; }
    .emg-alert-bar { flex-direction: column; text-align: center; }
}


/* ── admission_guide.html / discharge_guide.html shared ───────────────── */


/* ── Shared: section-title, info-grid, info-box (medical pages) ───────── */

.section-title { font-size: 1.8rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 35px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 50px; height: 2px; background: var(--main-brand); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 60px; }
.info-box { background: #f8f9fa; border-radius: 15px; padding: 35px; }
.info-box h4 { font-size: 1.1rem; font-family: 'GmarketSansBold'; color: var(--main-brand); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.info-box ul { list-style: none; }
.info-box ul li { font-size: 0.95rem; color: #555; padding: 9px 0 9px 16px; border-bottom: 1px solid #eee; line-height: 1.7; position: relative; word-break: keep-all; }
.info-box ul li:last-child { border-bottom: none; }
.info-box ul li::before { content: ''; position: absolute; left: 3px; top: calc(9px + 0.85em); width: 4px; height: 4px; border-radius: 50%; background: var(--main-brand); }

@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
}


/* ── disease_info.html ────────────────────────────────────────────────── */
.di-section { margin-bottom: 80px; }
.di-cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.di-cat-btn { padding: 10px 22px; border: 2px solid #eee; border-radius: 50px; font-size: 0.9rem; font-weight: 700; color: #555; background: #fff; cursor: pointer; transition: 0.3s; }
.di-cat-btn.active, .di-cat-btn:hover { border-color: var(--main-brand); color: var(--main-brand); background: #fff5f0; }
.disease-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.disease-card { background: #fff; border: 1px solid #eee; border-radius: 15px; padding: 30px 25px; cursor: pointer; transition: 0.3s; }
.disease-card:hover { border-color: var(--main-brand); box-shadow: 0 8px 25px rgba(234,84,0,0.08); transform: translateY(-3px); }
.disease-card-icon { font-size: 1.8rem; color: var(--main-brand); margin-bottom: 12px; }
.disease-card-title { font-size: 1rem; font-weight: 700; color: #111; margin-bottom: 8px; }
.disease-card-dept { font-size: 0.82rem; color: #888; }
.disease-card-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.disease-tag { background: #f0f0f0; color: #555; padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; }

@media (max-width: 1024px) { .disease-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .disease-grid { grid-template-columns: 1fr; } }


/* ── social_work.html ─────────────────────────────────────────────────── */
.sw-section { margin-bottom: 80px; }
.sw-service-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 25px; margin-bottom: 60px; }
.sw-service-card { background: #fff; border: 1px solid #eee; border-radius: 20px; padding: 35px; display: flex; gap: 20px; align-items: flex-start; transition: 0.3s; }
.sw-service-card:hover { border-color: var(--main-brand); box-shadow: 0 10px 30px rgba(234,84,0,0.08); }
.sw-card-icon { width: 55px; height: 55px; background: linear-gradient(135deg,var(--main-brand),#ff7b33); border-radius: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sw-card-icon i { font-size: 1.4rem; color: #fff; }
.sw-card-body h4 { font-size: 1.1rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 10px; }
.sw-card-body p { font-size: 0.9rem; color: #666; line-height: 1.7; word-break: keep-all; }
.contact-box { background: linear-gradient(135deg,#fff5f0,#fff); border: 1px solid rgba(234,84,0,0.2); border-radius: 20px; padding: 40px; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.contact-info h4 { font-size: 1.15rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 15px; }
.contact-info .phone { font-size: 2rem; font-weight: 900; color: var(--main-brand); margin-bottom: 8px; }
.contact-info p { font-size: 0.93rem; color: #555; line-height: 1.7; }
.contact-img { flex-shrink: 0; text-align: center; }
.contact-img i { font-size: 5rem; color: var(--main-brand); opacity: 0.3; }

@media (max-width: 768px) { .sw-service-grid { grid-template-columns: 1fr; } }


/* ── specialty.html ───────────────────────────────────────────────────── */
.spec-section { margin-bottom: 80px; }
.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.spec-card { background: #fff; border: 1px solid #eee; border-radius: 20px; overflow: hidden; transition: 0.3s; }
.spec-card:hover { border-color: var(--main-brand); box-shadow: 0 15px 35px rgba(234,84,0,0.1); transform: translateY(-6px); }
.spec-card-top { padding: 35px 30px 25px; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; gap: 18px; }
.spec-card-icon { width: 60px; height: 60px; background: linear-gradient(135deg,var(--main-brand),#ff7b33); border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.spec-card-icon i { font-size: 1.6rem; color: #fff; }
.spec-card-title { font-size: 1.2rem; font-family: 'GmarketSansBold'; color: #111; }
.spec-card-sub { font-size: 0.85rem; color: #888; margin-top: 4px; }
.spec-card-body { padding: 25px 30px; }
.spec-card-body ul { list-style: none; }
.spec-card-body ul li { font-size: 0.9rem; color: #555; padding: 6px 0; border-bottom: 1px solid #f5f5f5; display: flex; gap: 8px; align-items: flex-start; }
.spec-card-body ul li:last-child { border-bottom: none; }
.spec-card-body ul li::before { content: '\00B7'; color: var(--main-brand); font-weight: 900; flex-shrink: 0; margin-top: 1px; }

@media (max-width: 1024px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .spec-grid { grid-template-columns: 1fr; } }


/* ── faq.html (medical) ───────────────────────────────────────────────── */
.faq-cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 50px; }
.faq-cat-btn { padding: 10px 22px; border: 2px solid #eee; border-radius: 50px; font-size: 0.95rem; font-weight: 700; color: #555; background: #fff; cursor: pointer; transition: 0.3s; }
.faq-cat-btn.active, .faq-cat-btn:hover { border-color: var(--main-brand); color: var(--main-brand); background: #fff5f0; }
.faq-list { margin-bottom: 80px; }
.faq-item { border: 1px solid #eee; border-radius: 15px; margin-bottom: 12px; overflow: hidden; transition: 0.3s; }
.faq-item:hover { border-color: #ddd; }
.faq-item.open .faq-q-icon { transform: rotate(180deg); color: var(--main-brand); }
.faq-item.open { border-color: var(--main-brand); box-shadow: 0 5px 20px rgba(234,84,0,0.06); }
.faq-q { padding: 22px 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-q-text { display: flex; gap: 15px; align-items: center; }
.faq-q-badge { background: var(--main-brand); color: #fff; font-weight: 800; font-size: 0.9rem; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-q-title { font-size: 1rem; font-weight: 700; color: #111; }
.faq-q-icon { font-size: 0.85rem; color: #aaa; transition: 0.3s; flex-shrink: 0; }
.faq-a { display: none; padding: 0 25px 22px 68px; font-size: 0.95rem; color: #555; line-height: 1.8; word-break: keep-all; border-top: 1px solid #f5f5f5; padding-top: 18px; background: #fafafa; }
.faq-item.open .faq-a { display: block; }


/* ── international.html ───────────────────────────────────────────────── */
.lang-bar { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 60px; justify-content: center; }
.lang-btn { padding: 12px 25px; border: 2px solid #eee; border-radius: 50px; font-size: 0.95rem; font-weight: 700; color: #555; cursor: pointer; transition: 0.3s; background: #fff; }
.lang-btn.active, .lang-btn:hover { border-color: var(--main-brand); color: var(--main-brand); background: #fff5f0; }
.intl-section { margin-bottom: 80px; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; margin-bottom: 60px; }
.service-card { background: #fff; border: 1px solid #eee; border-radius: 20px; padding: 35px 25px; text-align: center; transition: 0.3s; }
.service-card:hover { border-color: var(--main-brand); box-shadow: 0 10px 30px rgba(234,84,0,0.08); transform: translateY(-5px); }
.service-icon { font-size: 2.2rem; color: var(--main-brand); margin-bottom: 15px; }
.service-title { font-size: 1.05rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 10px; }
.service-desc { font-size: 0.88rem; color: #666; line-height: 1.6; }

@media (max-width: 1024px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }


/* ── nursing_care.html ────────────────────────────────────────────────── */
.nc-section { margin-bottom: 80px; }
.nc-hero-cta { background: linear-gradient(135deg,#ea5400,#cc4900); border-radius: 20px; padding: 50px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 80px; }
.nc-hero-cta h3 { font-size: 1.8rem; font-family: 'GmarketSansBold'; margin-bottom: 12px; }
.nc-hero-cta p { font-size: 1rem; opacity: 0.9; line-height: 1.7; }
.nc-cta-badge { text-align: center; flex-shrink: 0; }
.nc-cta-badge i { font-size: 3.5rem; display: block; margin-bottom: 10px; }
.nc-cta-badge span { font-size: 0.9rem; opacity: 0.85; }
.benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; margin-bottom: 60px; }
.benefit-card { background: #fff; border: 1px solid #eee; border-radius: 20px; padding: 35px 25px; text-align: center; transition: 0.3s; }
.benefit-card:hover { border-color: var(--main-brand); box-shadow: 0 10px 30px rgba(234,84,0,0.08); transform: translateY(-5px); }
.benefit-icon { font-size: 2.2rem; color: var(--main-brand); margin-bottom: 15px; }
.benefit-title { font-size: 1.05rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 10px; }
.benefit-desc { font-size: 0.88rem; color: #666; line-height: 1.6; }
.compare-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--main-brand); margin-bottom: 60px; }
.compare-table th, .compare-table td { padding: 15px 20px; border-bottom: 1px solid #eee; font-size: 0.95rem; text-align: center; }
.compare-table th { background: #fafafa; font-weight: 700; color: #333; }
.compare-table .col-head { text-align: left; font-weight: 700; color: #111; }
.compare-table .highlight { color: var(--main-brand); font-weight: 700; }

@media (max-width: 1024px) { .benefit-grid { grid-template-columns: 1fr 1fr; } .nc-hero-cta { flex-direction: column; text-align: center; } }
@media (max-width: 600px) { .benefit-grid { grid-template-columns: 1fr; } }


/* ── patient_participation.html ───────────────────────────────────────── */
.pp-section { margin-bottom: 80px; }
.pp-card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; margin-bottom: 60px; }
.pp-card { background: #fff; border: 1px solid #eee; border-radius: 20px; padding: 40px; transition: 0.3s; display: flex; gap: 25px; align-items: flex-start; }
.pp-card:hover { border-color: var(--main-brand); box-shadow: 0 10px 30px rgba(234,84,0,0.08); }
.pp-card-icon { font-size: 2rem; color: var(--main-brand); flex-shrink: 0; margin-top: 5px; }
.pp-card h4 { font-size: 1.1rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 12px; }
.pp-card p { font-size: 0.93rem; color: #666; line-height: 1.7; word-break: keep-all; }
.highlight-box { background: linear-gradient(135deg,#fff5f0,#fff); border: 1px solid rgba(234,84,0,0.2); border-radius: 15px; padding: 35px; display: flex; gap: 20px; }
.highlight-box i { font-size: 2rem; color: var(--main-brand); flex-shrink: 0; }
.highlight-box div h4 { font-size: 1.15rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 12px; }
.highlight-box div p { font-size: 0.95rem; color: #555; line-height: 1.8; }

@media (max-width: 768px) { .pp-card-grid { grid-template-columns: 1fr; } }


/* ── life_guide.html ──────────────────────────────────────────────────── */
.life-section { margin-bottom: 70px; }
.rule-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; margin-bottom: 50px; }
.rule-card { background: #fff; border: 1px solid #eee; border-radius: 20px; padding: 35px 25px; text-align: center; transition: 0.3s; }
.rule-card:hover { border-color: var(--main-brand); box-shadow: 0 10px 30px rgba(234,84,0,0.08); transform: translateY(-5px); }
.rule-icon { font-size: 2.2rem; color: var(--main-brand); margin-bottom: 18px; }
.rule-title { font-size: 1.05rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 12px; }
.rule-desc { font-size: 0.88rem; color: #666; line-height: 1.6; }
.time-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--main-brand); }
.time-table th, .time-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.95rem; }
.time-table th { background: #fafafa; font-weight: 700; color: #333; width: 160px; }
.time-table td { color: #555; }

@media (max-width: 1024px) { .rule-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .rule-grid { grid-template-columns: 1fr; } }

/* ── 모바일 표/박스 잘림 보정 ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .schedule-table th, .schedule-table td { padding: 10px 4px; font-size: 0.82rem; }
    .compare-table th, .compare-table td { padding: 10px 8px; font-size: 0.82rem; }
    .time-table th, .time-table td { padding: 11px 10px; font-size: 0.86rem; }
    .time-table th { width: 92px; }
    .special-notes-sec { padding: 26px 18px; margin-top: 40px; }
}
@media (max-width: 480px) {
    .mini-schedule th, .mini-schedule td { padding: 5px 2px; font-size: 0.68rem; }
    .mini-schedule th.row-label { width: 44px; }
    .schedule-table th, .schedule-table td { padding: 8px 3px; font-size: 0.74rem; }
    .compare-table th, .compare-table td { padding: 8px 5px; font-size: 0.75rem; }
}

/* ── 외국인진료 — 언어 탭 패널 + 이용방법 스텝 ───────────────────────────── */
.lang-btn { font-family: inherit; }
.lang-panel { display: none; }
.lang-panel.active { display: block; }
.intl-steps {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 40px;
}
.intl-steps ol { list-style: none; margin: 0; padding: 0; }
.intl-steps li {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}
.intl-steps li:last-child { border-bottom: none; }
.intl-steps li strong { color: #111; }
.intl-steps li p { color: #666; font-size: 0.93rem; margin-top: 5px; line-height: 1.6; }
.intl-step-num {
    background: var(--main-brand);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .intl-steps { padding: 22px 16px; }
}

/* ── 진료과/센터/클리닉 소개글 ──────────────────────────────────────────── */
.dept-intro {
    background: radial-gradient(ellipse at 60% 40%, #fff8f4 0%, #f0f4fa 100%);
    border-bottom: 1px solid #eee;
}
.dept-intro__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 44px 0 48px;
}
.dept-intro__label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--main-brand);
    background: #fff;
    border: 1px solid #f0d8c8;
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 16px;
}
.dept-intro__body {
    font-size: 1.02rem;
    line-height: 1.9;
    color: #444;
    word-break: keep-all;
}
.dept-intro__body p { margin-bottom: 12px; }
.dept-intro__body p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
    .dept-intro__inner { padding: 30px 0 32px; }
    .dept-intro__body { font-size: 0.95rem; line-height: 1.8; }
}

/* ── 의료진 상세 — 소속(진료과·센터·클리닉) 칩 ──────────────────────────── */
.doctor-depts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.doctor-dept-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff5ef;
    border: 1px solid #f3d8c6;
    color: var(--main-brand);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 6px 14px 6px 7px;
    border-radius: 22px;
}
.doctor-dept-tag em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--main-brand);
    padding: 3px 9px;
    border-radius: 12px;
    letter-spacing: -0.3px;
}
@media (max-width: 768px) {
    .doctor-dept-tag { font-size: 0.88rem; }
}


/* ════════════════════════════════════════════════════════════
   입·퇴원 절차도 (Step Flow) & 안내 공통 스타일
   ════════════════════════════════════════════════════════════ */

.step-section { margin-bottom: 70px; }

.step-flow {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    margin: 45px 0 40px;
    width: 100%;
}

.step-flow .step-item {
    flex: 1 1 0;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    padding: 38px 18px 32px !important;
    min-height: 250px;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.step-flow .step-item:hover {
    transform: translateY(-6px);
    border-color: var(--main-brand);
    box-shadow: 0 14px 30px rgba(234, 84, 0, 0.12);
}

.step-flow .step-num-pill {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #fff5f0;
    color: var(--main-brand);
    border: 1.5px solid rgba(234, 84, 0, 0.2);
    font-size: 0.88rem;
    font-weight: 800;
    font-family: 'GmarketSansBold', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px !important;
    transition: all 0.25s ease;
}
.step-flow .step-item:hover .step-num-pill {
    background: var(--main-brand);
    color: #ffffff;
    border-color: var(--main-brand);
    box-shadow: 0 3px 8px rgba(234, 84, 0, 0.3);
}

.step-flow .step-icon {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8da 100%) !important;
    color: var(--main-brand) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem !important;
    margin: 0 auto 18px !important;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.step-flow .step-item:hover .step-icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, var(--main-brand) 0%, #d94800 100%) !important;
    color: #fff !important;
}

.step-flow .step-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-flow .step-label {
    font-family: 'GmarketSansBold', 'Pretendard', sans-serif;
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.4px;
    white-space: nowrap;
}

.step-flow .step-desc {
    font-size: 0.86rem !important;
    color: #555 !important;
    line-height: 1.6 !important;
    word-break: keep-all;
    margin: 0;
    text-align: center;
}

.step-flow .step-arrow {
    flex: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d0d7de;
    font-size: 1rem;
    padding: 0;
    transition: color 0.25s ease;
}
.step-flow .step-item:hover + .step-arrow {
    color: var(--main-brand);
}

.notice-box {
    background: linear-gradient(135deg, #fff8f4 0%, #fff1e8 100%);
    border: 1px solid rgba(234, 84, 0, 0.16);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 25px 0 50px;
}
.notice-box i {
    font-size: 1.35rem;
    color: var(--main-brand);
    flex-shrink: 0;
}
.notice-box p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
    word-break: keep-all;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .step-flow { gap: 6px; }
    .step-item { padding: 26px 8px 22px; min-height: 230px; }
    .step-num-pill { width: 28px; height: 28px; min-width: 28px; min-height: 28px; font-size: 0.8rem; margin-bottom: 12px; }
    .step-icon { width: 48px; height: 48px; min-width: 48px; min-height: 48px; font-size: 1.25rem; margin-bottom: 12px; border-radius: 14px; }
    .step-label { font-size: 0.96rem; margin-bottom: 6px; }
    .step-desc { font-size: 0.8rem; }
    .step-arrow { flex: 0 0 12px; font-size: 0.9rem; }
}

@media (max-width: 768px) {
    .step-flow {
        flex-direction: column !important;
        gap: 14px !important;
        margin: 24px 0 35px !important;
    }
    .step-flow .step-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 22px 20px 20px !important;
        min-height: unset !important;
        border-radius: 18px !important;
        border: 1.5px solid rgba(234, 84, 0, 0.25) !important;
        box-shadow: 0 4px 16px rgba(234, 84, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
        position: relative !important;
        background: #ffffff !important;
    }
    .step-flow .step-num-pill {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 26px !important;
        min-width: 32px !important;
        min-height: 26px !important;
        border-radius: 8px !important;
        background: #fff5f0 !important;
        color: var(--main-brand) !important;
        border: 1px solid rgba(234, 84, 0, 0.2) !important;
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        font-family: 'GmarketSansBold', sans-serif !important;
        margin-bottom: 10px !important;
    }
    .step-flow .step-icon {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, #fff5f0 0%, #ffe8da 100%) !important;
        color: var(--main-brand) !important;
        font-size: 1.15rem !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .step-flow .step-body {
        width: 100% !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding-right: 50px !important;
    }
    .step-flow .step-label {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: #111 !important;
        margin-bottom: 6px !important;
        text-align: left !important;
        white-space: normal !important;
        line-height: 1.35 !important;
    }
    .step-flow .step-desc {
        font-size: 0.88rem !important;
        color: #555 !important;
        line-height: 1.6 !important;
        text-align: left !important;
        word-break: keep-all !important;
        margin: 0 !important;
    }
    .step-flow .step-arrow {
        display: none !important;
    }
    .notice-box {
        padding: 16px 18px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    .notice-box i { font-size: 1.15rem; }
    .notice-box p { font-size: 0.88rem; }
}

