/*
Theme Name: Almanya'da Doktorluk
Description: almanyadadoktorluk.com tasarımının WordPress teması. Tüm içerik sayfalardan, görseller Ortam Kütüphanesi'nden, iletişim ve hero alanları Özelleştirici'den gelir. Tasarım: BootstrapMade Medilab v4.9.1 (https://bootstrapmade.com/license/).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: adk
*/

/* Ana stiller assets/css/medilab.css içinde (orijinal tasarım). Bu dosya WordPress'e özgü eklemeleri içerir. */

/* ---------- Menü ---------- */
.navbar .dropdown > a .bi-chevron-down { font-size: 12px; line-height: 0; margin-left: 5px; }
.navbar .dropdown ul { max-height: 70vh; overflow-y: auto; }
.navbar .dropdown ul a { white-space: normal; }
.navbar .current-menu-item > a,
.navbar .current-menu-ancestor > a,
.navbar .current_page_item > a,
.navbar .current_page_ancestor > a { color: #dc3545; }

#header .logo img.custom-logo { max-height: 40px; width: auto; }

/* Açılır menü okları için dar masaüstünde yer aç */
@media (min-width: 992px) and (max-width: 1199px) {
	.navbar > ul > li { padding-left: 12px; }
	.navbar a, .navbar a:focus { font-size: 13px; }
	.navbar a i, .navbar a:focus i { margin-left: 3px; }
	#header .appointment-btn { margin-left: 15px; padding: 8px 16px; }
	#header .logo img { max-height: 34px; }
}

/* ---------- İç sayfalar ---------- */
.adk-page { padding-top: 40px; }
.adk-page .entry-content > *:last-child { margin-bottom: 0; }
.adk-page .entry-content img { max-width: 100%; height: auto; }
.adk-page .entry-content h2,
.adk-page .entry-content h3 { color: #59151b; font-weight: 700; margin-bottom: 15px; }
.adk-page .entry-content ul li { margin-bottom: 6px; }
.adk-page .featured { margin-bottom: 25px; }
.adk-page .featured img { width: 100%; height: auto; border-radius: 6px; }
@media (min-width: 768px) {
	.adk-page article .featured { float: right; width: 40%; margin: 0 0 20px 25px; }
	.adk-page article .entry-content { display: flow-root; }
}

.adk-page-title { font-size: 28px; font-weight: 700; color: #59151b; margin-bottom: 20px; }

.adk-sidebar { background: #fcebed; padding: 25px; border-radius: 6px; }
.adk-sidebar h4 { font-size: 18px; font-weight: 700; color: #59151b; margin-bottom: 15px; }
.adk-sidebar h4 a { color: inherit; }
.adk-sidebar ul { list-style: none; padding: 0; margin: 0; }
.adk-sidebar li + li { border-top: 1px solid rgba(220, 53, 69, .15); }
.adk-sidebar li a { display: flex; gap: 8px; padding: 9px 0; color: #444; }
.adk-sidebar li a i { color: #dc3545; }
.adk-sidebar li.current a,
.adk-sidebar li a:hover { color: #dc3545; }

/* Önceki / sonraki alt sayfa */
.adk-sibling-nav { display: flex; justify-content: space-between; gap: 15px; margin-top: 35px; padding-top: 20px; border-top: 1px solid #f1d4d7; clear: both; }
.adk-sibling-nav a { display: flex; align-items: center; gap: 8px; max-width: 48%; color: #59151b; font-weight: 600; }
.adk-sibling-nav a:hover { color: #dc3545; }
.adk-sibling-nav .next { margin-left: auto; text-align: right; }
.adk-sibling-nav i { color: #dc3545; font-size: 18px; flex-shrink: 0; }

/* Logo yerine site adı */
#header h1.logo { font-size: 26px; margin: 0; }

/* Alt sayfa kartları (üst sayfada) */
.services .icon-box h4 a { color: #59151b; }
.adk-children .icon-box { width: 100%; }
.adk-children .icon-box .more { display: inline-block; margin-top: 10px; font-weight: 600; }
.services .icon-box:hover .more { color: #fff; }

/* Hizmet kartları ana sayfada: içerik solda hizalı */
.services .icon-box .text-start p { margin-bottom: 8px; }
.services .icon-box .text-start ul { padding-left: 18px; }
.services .icon-box:hover .text-start ul,
.services .icon-box:hover .text-start a { color: #fff; }

/* Genel Bilgiler sekmeleri: blok listeleri */
.departments .details ul { padding-left: 18px; }
.departments .details .wp-block-list { margin-bottom: 0; }

/* SSS: içerik blokları */
.faq .faq-list .collapse > *:last-child { margin-bottom: 0; }
.faq .faq-list .collapse { padding-top: 10px; }
.faq .faq-list .faq-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.faq .faq-list .more { font-size: 14px; }

/* İletişim: tıklanabilir bağlantılar */
.contact .info p a { color: #4b7dab; }
.contact .info p { overflow-wrap: anywhere; }

/* Blok editörü uyumu */
.wp-block-button__link { background: #dc3545; border-radius: 50px; }
.wp-block-button__link:hover { background: #343a40; color: #fff; }
.alignwide, .alignfull { max-width: 100%; }

/* ---------- Düzenle butonları (yalnız giriş yapmış editörler) ---------- */
.adk-edit-mode section,
.adk-edit-mode .section-title,
.adk-edit-mode .icon-box,
.adk-edit-mode .why-us .content,
.adk-edit-mode .departments .details,
.adk-edit-mode .adk-contact-block,
.adk-edit-mode #footer .footer-top [class*="col-"],
.adk-edit-mode #header .container,
.adk-edit-mode #hero .container { position: relative; }

/* !important: Medilab'ın bölüm içi a / i kuralları (S.S.S, kart ikonları) butonu etkilemesin */
body a.adk-edit {
	display: inline-flex !important; align-items: center; gap: 4px;
	width: auto !important; height: auto !important;
	font: 600 12px/1 "Open Sans", sans-serif !important; letter-spacing: 0 !important; text-transform: none !important;
	color: #fff !important; background: rgba(33, 37, 41, .82);
	padding: 5px 10px !important; border-radius: 30px !important; border: 0 !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
	transition: background .2s, transform .2s;
	white-space: nowrap; text-decoration: none !important;
}
body a.adk-edit:hover, body a.adk-edit:focus { background: #dc3545; transform: translateY(-1px); }
body a.adk-edit i {
	position: static !important; display: inline-block !important;
	font-size: 13px !important; line-height: 1 !important;
	margin: 0 !important; padding: 0 !important;
	color: inherit !important; background: none !important; width: auto !important; height: auto !important;
}

/* Köşede, yazılı */
.adk-edit-pill { position: absolute; top: 10px; right: 10px; z-index: 30; }
.adk-edit-mode .section-title > .adk-edit-pill { top: 0; right: 0; }
.adk-edit-mode .why-us .content > .adk-edit-pill { background: rgba(255, 255, 255, .9); color: #dc3545 !important; }
.adk-edit-mode .why-us .content > .adk-edit-pill:hover { background: #fff; }
#footer .footer-top a.adk-edit-pill { top: -34px; left: 12px; right: auto; }

/* Metin akışında */
.adk-edit-inline { position: static; margin-left: 10px; vertical-align: middle; }
#topbar .adk-edit-inline { padding: 3px 8px; font-size: 11px; }

/* Köşede, yalnız ikon */
body a.adk-edit-icon { position: absolute; top: 8px; right: 8px; z-index: 30; padding: 6px !important; }
.adk-edit-icon span { display: none; }

/* Header: alanı kaydırmadan küçük ikonlar */
#header a.adk-edit-icon { top: -13px; padding: 4px !important; }
#header .adk-edit-logo { left: 12px; right: auto; }
#header .adk-edit-menu { left: 45%; right: auto; }
#header .adk-edit-headerbtn { right: 12px; }

/* Hero: bölüm içeriğinin üstünde */
#hero .adk-edit-group { position: absolute; top: -48px; left: 12px; display: flex; gap: 8px; }
#hero .adk-edit-group .adk-edit-inline { margin-left: 0; }
.adk-edit-alt { background: rgba(89, 21, 27, .82); }

/* ---------- WordPress yönetim çubuğu ile sabit header ---------- */
.admin-bar #topbar { top: 32px; }
.admin-bar #header { top: 72px; }
.admin-bar #header.header-scrolled { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar #topbar { top: 46px; }
	.admin-bar #header { top: 86px; }
	.admin-bar #header.header-scrolled { top: 46px; }
}
@media screen and (max-width: 600px) {
	/* Bu genişlikte yönetim çubuğu sayfayla birlikte kayar */
	.admin-bar #topbar { top: 46px; }
	.admin-bar #header.header-scrolled { top: 0; }
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
