/* ==========================================================================
   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) */
.dept-list-sec .dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.dept-list-sec .dept-card {
    position: relative;
    height: 200px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s all ease;
    overflow: hidden;
    text-decoration: none !important;
    padding: 20px;
}

.dept-icon {
    width: 70px; height: 70px; margin-bottom: 15px;
    display: flex; align-items: center; justify-content: center;
    background: #fdfdfd; border-radius: 50%;
}
.dept-icon i { font-size: 2.5rem; color: #ccc; }
.dept-icon img { width: 100%; height: 100%; object-fit: contain; }
.dept-list-sec .dept-card span { font-size: 1.25rem; font-weight: 700; color: #222; }

.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 { height: 150px; padding: 10px; }
    .dept-icon { width: 45px; height: 45px; margin-bottom: 8px; }
    .dept-icon i { font-size: 1.6rem; }
    .dept-list-sec .dept-card span { font-size: 0.95rem; }
    .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);
    height: 300px;
}

.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;
}
.card-left-img img { width: 100%; height: 100%; object-fit: cover; }

.card-right-info {
    flex: 1;
    padding: 25px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.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: 10px; 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: 16px 0 8px; }
.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: 12px; }
.btn-action { padding: 10px 30px; border-radius: 25px; font-weight: 700; font-size: 0.9rem; text-decoration: none !important; transition: 0.3s; }
.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-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0000 100%);
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}
.emg-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 60% 60%, rgba(234,84,0,0.12) 0%, transparent 50%);
}
.emg-hero h2 { font-size: 3rem; font-family: 'GmarketSansBold'; color: #fff; margin-bottom: 20px; position: relative; z-index: 1; }
.emg-hero .accent-line { width: 40px; height: 3px; background: var(--main-brand); margin: 0 auto 25px; position: relative; z-index:1; }
.emg-hero p { font-size: 1.15rem; color: rgba(255,255,255,0.75); position: relative; z-index:1; line-height:1.6; }

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

.adm-hero, .disch-hero {
    padding: 120px 0 80px;
    background: radial-gradient(circle at center, #fdfdfd 0%, #f1f4f9 100%);
    text-align: center; border-bottom: 1px solid #eee; margin-bottom: 80px;
}
.adm-hero h2, .disch-hero h2 { font-size: 3rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 20px; letter-spacing: -1px; }
.adm-hero .accent-line, .disch-hero .accent-line { width: 40px; height: 3px; background: var(--main-brand); margin: 0 auto 25px; }
.adm-hero p, .disch-hero p { font-size: 1.15rem; color: #666; line-height: 1.6; }

.step-section { margin-bottom: 80px; }
.step-flow { display: flex; align-items: stretch; gap: 0; margin-bottom: 60px; flex-wrap: wrap; }
.step-item { flex: 1; min-width: 130px; background: #fff; border: 1px solid #eee; border-radius: 15px; padding: 30px 15px; text-align: center; position: relative; transition: 0.3s; }
.step-item:hover { border-color: var(--main-brand); box-shadow: 0 10px 30px rgba(234,84,0,0.08); }
.step-num { width: 40px; height: 40px; background: var(--main-brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; margin: 0 auto 15px; }
.step-icon { font-size: 1.8rem; color: var(--main-brand); margin-bottom: 12px; }
.step-label { font-size: 0.95rem; font-weight: 700; color: #111; margin-bottom: 8px; }
.step-desc { font-size: 0.82rem; color: #777; line-height: 1.5; }
.step-arrow { display: flex; align-items: center; padding: 0 5px; color: #ccc; font-size: 1.2rem; flex-shrink: 0; }

.notice-box {
    background: linear-gradient(135deg, #fff5f0, #fff); border: 1px solid rgba(234,84,0,0.2);
    border-radius: 15px; padding: 30px 35px; display: flex; gap: 20px; align-items: flex-start;
    margin-bottom: 30px;
}
.notice-box i { font-size: 1.8rem; color: var(--main-brand); flex-shrink: 0; margin-top: 3px; }
.notice-box p { font-size: 0.97rem; color: #555; line-height: 1.8; }

@media (max-width: 768px) {
    .step-flow { flex-direction: column; }
    .step-arrow { display: none; }
    .adm-hero h2, .disch-hero h2 { font-size: 2rem; }
}


/* ── 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-hero { padding: 120px 0 80px; background: radial-gradient(circle at center,#fdfdfd 0%,#f1f4f9 100%); text-align: center; border-bottom: 1px solid #eee; margin-bottom: 80px; }
.di-hero h2 { font-size: 3rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 20px; }
.di-hero .accent-line { width: 40px; height: 3px; background: var(--main-brand); margin: 0 auto 25px; }
.di-hero p { font-size: 1.15rem; color: #666; line-height: 1.6; }
.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; } .di-hero h2 { font-size: 2rem; } }


/* ── social_work.html ─────────────────────────────────────────────────── */

.sw-hero { padding: 120px 0 80px; background: radial-gradient(circle at center,#fdfdfd 0%,#f1f4f9 100%); text-align: center; border-bottom: 1px solid #eee; margin-bottom: 80px; }
.sw-hero h2 { font-size: 3rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 20px; }
.sw-hero .accent-line { width: 40px; height: 3px; background: var(--main-brand); margin: 0 auto 25px; }
.sw-hero p { font-size: 1.15rem; color: #666; line-height: 1.8; }
.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; } .sw-hero h2 { font-size: 2rem; } }


/* ── specialty.html ───────────────────────────────────────────────────── */

.spec-hero { padding: 120px 0 80px; background: radial-gradient(circle at center,#fdfdfd 0%,#f1f4f9 100%); text-align: center; border-bottom: 1px solid #eee; margin-bottom: 80px; }
.spec-hero h2 { font-size: 3rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 20px; }
.spec-hero .accent-line { width: 40px; height: 3px; background: var(--main-brand); margin: 0 auto 25px; }
.spec-hero p { font-size: 1.15rem; color: #666; line-height: 1.6; }
.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; } .spec-hero h2 { font-size: 2rem; } }


/* ── faq.html (medical) ───────────────────────────────────────────────── */

.faq-hero { padding: 120px 0 80px; background: radial-gradient(circle at center,#fdfdfd 0%,#f1f4f9 100%); text-align: center; border-bottom: 1px solid #eee; margin-bottom: 80px; }
.faq-hero h2 { font-size: 3rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 20px; }
.faq-hero .accent-line { width: 40px; height: 3px; background: var(--main-brand); margin: 0 auto 25px; }
.faq-hero p { font-size: 1.15rem; color: #666; line-height: 1.6; }
.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 { 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-item.open .faq-q-icon { transform: rotate(180deg); color: var(--main-brand); }
.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 ───────────────────────────────────────────────── */

.intl-hero { padding: 120px 0 80px; background: linear-gradient(135deg,#1a2a4a,#0d3b6e); text-align: center; margin-bottom: 80px; position: relative; overflow: hidden; }
.intl-hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 40% 60%,rgba(234,84,0,0.08) 0%,transparent 50%); }
.intl-hero h2 { font-size: 3rem; font-family: 'GmarketSansBold'; color: #fff; margin-bottom: 20px; position: relative; z-index: 1; }
.intl-hero .accent-line { width: 40px; height: 3px; background: var(--main-brand); margin: 0 auto 25px; position: relative; z-index: 1; }
.intl-hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); line-height: 1.6; position: relative; z-index: 1; }
.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; } .intl-hero h2 { font-size: 2rem; } }


/* ── nursing_care.html ────────────────────────────────────────────────── */

.nc-hero { padding: 120px 0 80px; background: radial-gradient(circle at center,#fdfdfd 0%,#f1f4f9 100%); text-align: center; border-bottom: 1px solid #eee; margin-bottom: 80px; }
.nc-hero h2 { font-size: 3rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 20px; }
.nc-hero .accent-line { width: 40px; height: 3px; background: var(--main-brand); margin: 0 auto 25px; }
.nc-hero p { font-size: 1.15rem; color: #666; line-height: 1.8; }
.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; } .nc-hero h2 { font-size: 2rem; } }


/* ── patient_participation.html ───────────────────────────────────────── */

.pp-hero { padding: 120px 0 80px; background: radial-gradient(circle at center,#fdfdfd 0%,#f1f4f9 100%); text-align: center; border-bottom: 1px solid #eee; margin-bottom: 80px; }
.pp-hero h2 { font-size: 3rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 20px; }
.pp-hero .accent-line { width: 40px; height: 3px; background: var(--main-brand); margin: 0 auto 25px; }
.pp-hero p { font-size: 1.15rem; color: #666; line-height: 1.8; }
.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; } .pp-hero h2 { font-size: 2rem; } }


/* ── life_guide.html ──────────────────────────────────────────────────── */

.life-hero { padding: 120px 0 80px; background: radial-gradient(circle at center,#fdfdfd 0%,#f1f4f9 100%); text-align: center; border-bottom: 1px solid #eee; margin-bottom: 80px; }
.life-hero h2 { font-size: 3rem; font-family: 'GmarketSansBold'; color: #111; margin-bottom: 20px; }
.life-hero .accent-line { width: 40px; height: 3px; background: var(--main-brand); margin: 0 auto 25px; }
.life-hero p { font-size: 1.15rem; color: #666; line-height: 1.6; }
.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; } .life-hero h2 { font-size: 2rem; } }

/* ── 모바일 표/박스 잘림 보정 ─────────────────────────────────────────────── */
@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; }
}
