:root {
  --blue: #1565a8;
  --blue-dark: #0d4a7d;
  --blue-pale: #eaf3fb;
  --teal: #12a594;
  --teal-dark: #0c8477;
  --bg-light: #f3f8fb;
  --text-dark: #16263a;
  --text-muted: #5c7184;
  --white: #ffffff;
  --border: #dbe7ef;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(21, 101, 168, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--blue-dark);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: var(--teal-dark); }

ul { list-style: none; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn-nav) {
  position: relative;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
}

.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.2s;
}

.nav-links a:not(.btn-nav):hover,
.nav-links a:not(.btn-nav).active {
  color: var(--blue);
}

.nav-links a:not(.btn-nav):hover::after,
.nav-links a:not(.btn-nav).active::after {
  width: 100%;
}

.btn-nav {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-nav:hover { background: var(--teal-dark); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  display: block;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-pale) 0%, var(--white) 100%);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 165, 148, 0.12) 0%, rgba(18, 165, 148, 0) 70%);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
}

.hero-text { flex: 1.3; }

.eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  background: rgba(18, 165, 148, 0.1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--blue-dark);
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 16px;
}

.hospital-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 28px;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--blue);
  padding-bottom: 2px;
}

.hospital-line:hover { color: var(--teal-dark); border-color: var(--teal-dark); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px 20px;
  border-radius: 12px;
}

.hero-stats .stat strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: var(--teal-dark);
}

.hero-stats .stat span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(18, 165, 148, 0.28);
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--blue-dark);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover { border-color: var(--blue); background: var(--blue-pale); }

.hero-image { flex: 1; display: flex; justify-content: center; }

.avatar-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 6px solid var(--white);
  box-shadow: 0 16px 40px rgba(21, 101, 168, 0.18);
}

/* Sections */
section:not(.hero) { padding: 80px 0; }

.about { background: var(--white); }

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 40px;
  font-size: 1.02rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.timeline-block h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--teal-dark);
}

.timeline-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 2px solid var(--border);
  margin-bottom: 22px;
  position: relative;
}

.timeline-list li::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  left: -5.5px;
  top: 4px;
}

.timeline-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.timeline-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.memberships {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.memberships h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: var(--teal-dark);
}

.membership-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.membership-list li {
  background: var(--blue-pale);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--blue-dark);
  font-weight: 500;
}

/* Services */
.services { background: var(--bg-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(21, 101, 168, 0.14);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: var(--blue-pale);
  border-radius: 14px;
}

.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }

.service-card p { color: var(--text-muted); font-size: 0.92rem; }

/* Publications */
.publications { background: var(--white); }

.congress-figure {
  max-width: 720px;
  margin: 0 0 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}

.congress-figure img { display: block; width: 100%; height: auto; }

.congress-figure figcaption {
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pub-list li {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}

.pub-list li:hover { border-color: var(--blue); }

.pub-title { font-weight: 600; color: var(--text-dark); }

.pub-meta { font-size: 0.88rem; color: var(--text-muted); }

.pub-meta a { color: var(--teal-dark); }

/* Appointment */
.appointment { background: var(--bg-light); }

.appointment-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 720px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--blue-dark);
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

select { cursor: pointer; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 165, 148, 0.15);
}

.form-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--teal-dark);
  min-height: 1.2em;
}

.form-note.error { color: #c0392b; }

/* FAQ */
.faq { background: var(--bg-light); }

.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--teal);
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact { background: var(--white); }

.working-hours {
  margin: 24px 0;
  padding: 20px 22px;
  background: var(--blue-pale);
  border-radius: 12px;
  max-width: 380px;
}

.working-hours h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--blue-dark);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-dark);
  padding: 6px 0;
  border-bottom: 1px solid rgba(21, 101, 168, 0.1);
}

.hours-row:last-child { border-bottom: none; }


/* Checkbox */
.form-checkbox { margin-bottom: 24px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--teal);
}

/* KVKK */
.kvkk { background: var(--bg-light); }
.kvkk .section-intro { margin-bottom: 0; font-size: 0.88rem; }

/* Footer */
.footer {
  background: var(--blue-dark);
  color: #bcd6ea;
  padding: 28px 0;
  text-align: center;
  font-size: 0.88rem;
}

/* Mobile sticky CTA bar */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(21, 101, 168, 0.12);
}

.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-cta-call { color: var(--blue-dark); background: var(--blue-pale); }
.mobile-cta-book { color: var(--white); background: var(--teal); }

/* Responsive */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open { display: flex; }

  .menu-toggle { display: flex; }

  .hero-inner { flex-direction: column-reverse; text-align: center; }

  .hero h1 { font-size: 2.1rem; }

  .hero-actions { justify-content: center; }

  .hero-stats { justify-content: center; }

  .timeline-grid { grid-template-columns: 1fr; gap: 36px; }

  .form-row { grid-template-columns: 1fr; }

  .appointment-form { padding: 24px; }

  .mobile-cta-bar { display: flex; }

  body { padding-bottom: 64px; }
}
