/* =========================================================
   CityCare Hospital — Core Stylesheet
   ========================================================= */

:root {
  --primary: #0284C7;
  --secondary: #0EA5E9;
  --accent: #10B981;
  --background: #F8FAFC;
  --text: #1E293B;
  --white: #FFFFFF;
  --gray-light: #E2E8F0;
  --gray: #64748B;
  --danger: #EF4444;
  --shadow: 0 10px 30px rgba(2, 132, 199, 0.12);
  --radius: 14px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--text); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section { padding: 90px 0; }
.section-sm { padding: 50px 0; }

.section-header { text-align: center; max-width: 650px; margin: 0 auto 50px; }
.section-header .tag {
  display: inline-block; background: rgba(16,185,129,0.1); color: var(--accent);
  padding: 6px 18px; border-radius: 50px; font-weight: 600; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px;
}
.section-header h2 { font-size: 36px; margin-bottom: 12px; }
.section-header p { color: var(--gray); font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--secondary); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #0c9a6c; transform: translateY(-3px); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--accent); color: var(--white); transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- Top bar & Navbar ---------- */
.top-bar { background: var(--text); color: var(--white); font-size: 13px; padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left span { margin-right: 22px; }
.top-bar-left i, .top-bar-right i { color: var(--accent); margin-right: 5px; }
.top-bar-right a:hover { color: var(--secondary); }

.site-header { position: sticky; top: 0; z-index: 1000; }
.navbar { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: var(--transition); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: 'Poppins'; font-size: 22px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.logo i { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 15px; padding: 8px 0; position: relative; transition: var(--transition); }
.nav-links li > a:not(.btn)::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s ease;
}
.nav-links li > a:not(.btn):hover::after { width: 100%; }
.nav-links li > a:not(.btn):hover { color: var(--primary); }
.nav-cta { padding: 10px 24px !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, rgba(2,132,199,0.94), rgba(14,165,233,0.9));
  color: var(--white); padding: 110px 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,0.07); top: -150px; right: -100px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: 48px; line-height: 1.2; margin-bottom: 18px; }
.hero p { font-size: 18px; opacity: 0.92; margin-bottom: 30px; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 35px; margin-top: 40px; }
.hero-stats div strong { display: block; font-size: 28px; }
.hero-image-wrap { position: relative; }
.hero-image-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); }
.floating-card {
  position: absolute; background: var(--white); color: var(--text); padding: 14px 18px;
  border-radius: 12px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.floating-card i { color: var(--accent); font-size: 22px; }
.floating-card.card-1 { top: 20px; left: -20px; }
.floating-card.card-2 { bottom: 20px; right: -20px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 26px;
  box-shadow: 0 4px 18px rgba(2,132,199,0.07); transition: var(--transition); text-align: center;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-icon {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(2,132,199,0.1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; color: var(--primary);
  transition: var(--transition);
}
.card:hover .card-icon { background: var(--accent); color: var(--white); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 14.5px; }

.dept-card, .doctor-card, .article-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(2,132,199,0.07); transition: var(--transition);
}
.dept-card:hover, .doctor-card:hover, .article-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.dept-card .img-wrap, .doctor-card .img-wrap, .article-card .img-wrap { height: 200px; overflow: hidden; background: var(--gray-light); }
.dept-card img, .doctor-card img, .article-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dept-card:hover img, .doctor-card:hover img, .article-card:hover img { transform: scale(1.08); }
.dept-card .body, .doctor-card .body, .article-card .body { padding: 24px; }
.dept-card .body i { color: var(--accent); font-size: 28px; margin-bottom: 10px; }
.doctor-card .body h3 { margin-bottom: 4px; }
.doctor-card .specialization { color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.article-card .meta { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.article-card h3 { font-size: 18px; margin-bottom: 10px; }
.read-more { color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.read-more i { transition: var(--transition); }
.read-more:hover i { transform: translateX(4px); }

/* ---------- Testimonial Slider ---------- */
.testimonial-section { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); position: relative; }
.testimonial-slider { max-width: 750px; margin: 0 auto; position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-slide { flex: 0 0 100%; text-align: center; padding: 10px 30px 40px; }
.testimonial-slide .stars { color: #FACC15; margin-bottom: 16px; font-size: 18px; }
.testimonial-slide p.quote { font-size: 19px; line-height: 1.7; margin-bottom: 22px; font-style: italic; }
.testimonial-slide .person { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.testimonial-slide .avatar {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
}
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition);
}
.slider-dots button.active { background: var(--white); width: 26px; border-radius: 6px; }
.slider-arrow {
  position: absolute; top: 40%; transform: translateY(-50%); background: rgba(255,255,255,0.15);
  border: none; color: var(--white); width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  font-size: 16px; transition: var(--transition);
}
.slider-arrow:hover { background: var(--white); color: var(--primary); }
.slider-arrow.prev { left: -10px; } .slider-arrow.next { right: -10px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 45px; max-width: 480px; margin: 0 auto; }
.form-card.wide { max-width: 700px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.form-group .input-wrap { position: relative; }
.form-group .input-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.form-control {
  width: 100%; padding: 13px 16px 13px 44px; border: 2px solid var(--gray-light); border-radius: 10px;
  font-size: 15px; font-family: 'Inter'; transition: var(--transition); background: var(--background);
}
textarea.form-control { padding-left: 16px; resize: vertical; min-height: 120px; }
select.form-control { padding-left: 16px; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(2,132,199,0.1); background: var(--white); }
.form-error { color: var(--danger); font-size: 13px; margin-top: 6px; display: none; }
.form-control.invalid { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-foot { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--gray); }
.form-foot a { color: var(--primary); font-weight: 600; }
.toggle-password { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--gray); background:none; border:none; }

/* ---------- Flash & Alerts ---------- */
.flash-message {
  position: fixed; top: 20px; right: 20px; z-index: 3000; background: var(--white); padding: 16px 20px;
  border-radius: 10px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  border-left: 5px solid var(--accent); max-width: 380px;
}
.flash-error { border-left-color: var(--danger); }
.flash-error i { color: var(--danger); }
.flash-success i { color: var(--accent); }
.flash-message button { background: none; border: none; font-size: 18px; cursor: pointer; margin-left: auto; color: var(--gray); }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14.5px; }
.alert-success { background: rgba(16,185,129,0.1); color: #0c7a56; border: 1px solid rgba(16,185,129,0.3); }
.alert-error { background: rgba(239,68,68,0.1); color: #b91c1c; border: 1px solid rgba(239,68,68,0.3); }

/* ---------- Badges / Status ---------- */
.badge { display: inline-block; padding: 5px 14px; border-radius: 50px; font-size: 12.5px; font-weight: 700; text-transform: capitalize; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-approved { background: rgba(2,132,199,0.12); color: var(--primary); }
.badge-completed { background: rgba(16,185,129,0.12); color: #0c7a56; }
.badge-cancelled { background: rgba(239,68,68,0.12); color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #cbd5e1; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { color: var(--white); font-size: 22px; margin-bottom: 14px; display:flex; align-items:center; gap:8px;}
.footer-logo i { color: var(--accent); }
.footer-col h4 { color: var(--white); margin-bottom: 18px; font-size: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--secondary); }
.emergency-list li { font-size: 14px; margin-bottom: 10px; }
.emergency-list i { color: var(--accent); margin-right: 6px; }
.social-icons { display: flex; gap: 12px; margin-top: 18px; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.social-icons a:hover { background: var(--accent); color: var(--white); transform: translateY(-4px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; text-align: center; font-size: 13.5px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); transform: translateY(-4px); }

/* ---------- Misc page sections ---------- */
.bg-light { background: var(--white); }
.bg-primary-soft { background: rgba(2,132,199,0.05); }
.text-center { text-align: center; }
.page-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white);
  padding: 70px 0; text-align: center;
}
.page-banner h1 { font-size: 38px; margin-bottom: 10px; }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-banner .breadcrumb span { margin: 0 6px; }

.dashboard-stat { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 18px rgba(2,132,199,0.07); display: flex; align-items: center; gap: 18px; }
.dashboard-stat .icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--white); }
.dashboard-stat h3 { font-size: 26px; margin-bottom: 2px; }
.dashboard-stat p { color: var(--gray); font-size: 14px; }

table.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
table.data-table th, table.data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--gray-light); font-size: 14.5px; }
table.data-table th { background: var(--background); font-weight: 700; }
table.data-table tr:hover { background: rgba(2,132,199,0.03); }

.tabs { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.tabs a { padding: 9px 20px; border-radius: 50px; background: var(--white); font-weight: 600; font-size: 14px; border: 2px solid var(--gray-light); }
.tabs a.active { background: var(--primary); color: var(--white); border-color: var(--primary); }