/* ============================================================
   KMM HOSPITAL – Inner Pages Additional Styles
   Append to kmm-style.css or include as separate file
   ============================================================ */

/* ── INNER PAGE LAYOUT ── */
.inner-content { padding: 60px 0 80px; }

/* Two-column inner layout */
.inner-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.inner-main { min-width: 0; }
.inner-sidebar { display: flex; flex-direction: column; gap: 24px; }

/* Sidebar card */
.sidebar-card {
    background: var(--off-white); border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100); padding: 24px;
}
.sidebar-card h4 {
    font-family: var(--font-head); font-size: 17px; color: var(--navy);
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--teal-light);
}
.sidebar-quick-links { display: flex; flex-direction: column; gap: 4px; }
.sidebar-quick-links a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px; font-size: 14px;
    color: var(--gray-600); transition: var(--transition);
}
.sidebar-quick-links a:hover,
.sidebar-quick-links a.active {
    background: var(--teal-light); color: var(--teal); font-weight: 500;
}
.sidebar-quick-links a::before {
    content: '→'; color: var(--teal); font-size: 12px; flex-shrink: 0;
}
.sidebar-contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.sidebar-contact-icon {
    width: 36px; height: 36px; border-radius: 9px; background: var(--teal-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.sidebar-contact-item strong { display: block; font-size: 12px; color: var(--gray-300); text-transform: uppercase; letter-spacing: .04em; }
.sidebar-contact-item span { font-size: 14px; color: var(--navy); font-weight: 500; }

/* ── PROSE / RICH TEXT CONTENT ── */
.prose { color: var(--gray-900); font-size: 16px; line-height: 1.8; }
.prose h2 {
    font-family: var(--font-head); font-size: 24px; color: var(--navy);
    margin: 36px 0 12px; padding-bottom: 10px;
    border-bottom: 2px solid var(--teal-light);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--navy-mid); margin: 24px 0 10px; }
.prose h4 { font-size: 15px; font-weight: 600; color: var(--gray-900); margin: 20px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 12px 0 16px 0; padding-left: 0; }
.prose ul li, .prose ol li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 6px 0; font-size: 15px; color: var(--gray-600); line-height: 1.6;
}
.prose ul li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--teal); flex-shrink: 0; margin-top: 8px;
}
.prose ol { counter-reset: prose-counter; }
.prose ol li { counter-increment: prose-counter; }
.prose ol li::before {
    content: counter(prose-counter); width: 22px; height: 22px;
    border-radius: 50%; background: var(--teal); color: white;
    font-size: 11px; font-weight: 700; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { color: var(--teal); font-weight: 500; }
.prose blockquote {
    border-left: 3px solid var(--teal); padding: 12px 20px;
    background: var(--teal-light); border-radius: 0 8px 8px 0;
    margin: 20px 0; font-style: italic; color: var(--gray-600);
}

/* ── TWO-COLUMN LIST INSIDE PROSE ── */
.two-col-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    margin: 16px 0;
}

/* ── ADMINISTRATION TABLE ── */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.admin-table thead tr { background: var(--navy); }
.admin-table thead th {
    padding: 14px 18px; text-align: left; font-size: 13px;
    font-weight: 600; color: white; letter-spacing: .03em;
}
.admin-table thead th:first-child { border-radius: 10px 0 0 0; }
.admin-table thead th:last-child { border-radius: 0 10px 0 0; }
.admin-table tbody tr { border-bottom: 1px solid var(--gray-100); transition: var(--transition); }
.admin-table tbody tr:hover { background: var(--teal-light); }
.admin-table tbody td { padding: 13px 18px; font-size: 14px; color: var(--gray-600); }
.admin-table tbody td:first-child { color: var(--navy); font-weight: 500; }
.pagination-bar { display: flex; gap: 8px; align-items: center; margin-top: 24px; }
.pagination-bar a, .pagination-bar span {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
    border: 1px solid var(--gray-100); transition: var(--transition);
}
.pagination-bar a { color: var(--navy); background: white; }
.pagination-bar a:hover { background: var(--teal); color: white; border-color: var(--teal); }
.pagination-bar span { color: var(--gray-300); background: var(--off-white); }

/* ── DOCTORS GRID (full page) ── */
.doctors-full-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px;
}

/* ── GALLERY PAGE ── */
.gallery-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
    padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 500;
    border: 1.5px solid var(--gray-100); background: white; color: var(--gray-600);
    cursor: pointer; transition: var(--transition); font-family: var(--font-body);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--teal); color: white; border-color: var(--teal);
}
.gallery-masonry {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); display: block; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
    position: absolute; inset: 0; background: rgba(10,35,66,.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span { color: white; font-size: 22px; }

/* ── CAREERS PAGE ── */
.job-listing { display: flex; flex-direction: column; gap: 20px; }
.job-card {
    background: white; border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100); padding: 28px;
    transition: var(--transition);
}
.job-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal-light); }
.job-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.job-title { font-family: var(--font-head); font-size: 20px; color: var(--navy); }
.job-badge {
    background: var(--teal-light); color: var(--teal); padding: 4px 12px;
    border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.job-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.job-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-600); }
.job-meta-item strong { color: var(--navy); }
.job-desc { font-size: 14px; color: var(--gray-600); line-height: 1.65; margin-bottom: 18px; }
.job-actions { display: flex; gap: 12px; }
.btn-job-detail {
    padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
    border: 1.5px solid var(--navy); color: var(--navy); transition: var(--transition);
    text-decoration: none; font-family: var(--font-body);
}
.btn-job-detail:hover { background: var(--navy); color: white; }
.btn-job-apply {
    padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
    background: var(--teal); color: white; border: none; cursor: pointer;
    transition: var(--transition); text-decoration: none; font-family: var(--font-body);
}
.btn-job-apply:hover { background: var(--teal-mid); color: white; }
.no-jobs {
    text-align: center; padding: 60px 24px;
    background: var(--off-white); border-radius: var(--radius-lg);
    color: var(--gray-600);
}
.no-jobs h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }

/* ── CONTACT PAGE ── */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon {
    width: 46px; height: 46px; border-radius: 12px; background: var(--teal-light);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px;
}
.contact-info-item h4 { font-size: 13px; font-weight: 700; color: var(--gray-300); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.contact-info-item p { font-size: 15px; color: var(--navy); line-height: 1.55; font-weight: 500; }
.contact-info-item a { color: var(--teal); }
.contact-form-card {
    background: var(--off-white); border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100); padding: 36px;
}
.contact-form-card h3 {
    font-family: var(--font-head); font-size: 22px; color: var(--navy); margin-bottom: 6px;
}
.contact-form-card > p { font-size: 14px; color: var(--gray-600); margin-bottom: 24px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { margin-bottom: 16px; }
.cf-field label {
    display: block; font-size: 11px; color: var(--gray-600);
    font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.cf-field input, .cf-field textarea, .cf-field select {
    width: 100%; background: white; border: 1px solid var(--gray-100);
    border-radius: 9px; font-family: var(--font-body); font-size: 14px;
    color: var(--gray-900); padding: 11px 14px; outline: none; transition: var(--transition);
}
.cf-field input:focus, .cf-field textarea:focus, .cf-field select:focus {
    border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,138,122,.08);
}
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-submit {
    width: 100%; background: var(--navy); color: white; border: none;
    border-radius: 10px; padding: 14px; font-family: var(--font-body);
    font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.cf-submit:hover { background: var(--teal); }
.form-alert {
    padding: 14px 18px; border-radius: 9px; margin-bottom: 20px; font-size: 14px; font-weight: 500;
}
.form-alert.success { background: #e8f8f0; border: 1px solid #a3d9be; color: #1a6b3c; }
.form-alert.error { background: #fdecea; border: 1px solid #f5b8b3; color: #8b1a1a; }

/* ── DEPARTMENT PAGE ── */
.dept-tab-bar {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 36px; padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-100);
}
.dept-tab {
    padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 500;
    border: 1.5px solid var(--gray-100); background: white; color: var(--gray-600);
    text-decoration: none; transition: var(--transition);
}
.dept-tab.active { background: var(--teal); color: white; border-color: var(--teal); }
.dept-tab:hover:not(.active) { border-color: var(--teal); color: var(--teal); }
.dept-content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.dept-content-body { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-100); padding: 32px; }
.dept-content-body h3 {
    font-family: var(--font-head); font-size: 26px; color: var(--navy); margin-bottom: 20px;
}
.dept-content-img { border-radius: var(--radius-lg); overflow: hidden; }
.dept-content-img img { width: 100%; height: auto; display: block; }
.dept-book-card {
    background: var(--navy); border-radius: var(--radius-lg); padding: 28px; color: white;
}
.dept-book-card h4 { font-family: var(--font-head); font-size: 18px; margin-bottom: 8px; }
.dept-book-card p { color: #8aafc8; font-size: 14px; margin-bottom: 20px; }

/* ── MAKE-ENQUIRY / OPD BOOKING ── */
.opd-booking-grid { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
.opd-info-card {
    background: var(--navy); border-radius: var(--radius-lg); padding: 32px; color: white;
}
.opd-info-card h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 20px; }
.opd-schedule-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.opd-schedule-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; background: rgba(255,255,255,.07);
    border-radius: 9px; border: 1px solid rgba(255,255,255,.1);
}
.opd-schedule-item .doc-name { font-size: 14px; font-weight: 500; color: white; }
.opd-schedule-item .doc-time { font-size: 12px; color: #8aafc8; }
.opd-schedule-item .doc-day { font-size: 11px; color: #5cd4c4; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* ── INSURANCE PAGE specific ── */
.tpa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 8px 0 20px; }
.tpa-grid li {
    padding: 8px 12px; border-bottom: 1px solid var(--gray-100); font-size: 14px; color: var(--gray-600);
    display: flex; align-items: center; gap: 8px;
}
.tpa-grid li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); flex-shrink: 0;
}

/* ── RESPONSIVE inner pages ── */
@media (max-width: 960px) {
    .inner-grid, .contact-page-grid, .dept-content-grid,
    .opd-booking-grid { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
    .two-col-list, .tpa-grid { grid-template-columns: 1fr; }
    .inner-sidebar { order: -1; }
    .dept-content-img { display: none; }
}
@media (max-width: 640px) {
    .doctors-full-grid { grid-template-columns: 1fr 1fr; }
    .gallery-masonry { grid-template-columns: 1fr 1fr; }
    .job-card-header { flex-direction: column; gap: 10px; }
    .dept-tab-bar { gap: 6px; }
    .dept-tab { font-size: 13px; padding: 8px 12px; }
}
