/* Alpine.js: ilk boyamada şablon gizli */
[x-cloak] {
    display: none !important;
}

/* ===== Footer Sosyal Medya İkonları ===== */
.footer-social-btn {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488; /* teal/medical yeşil */
    transition: background 0.2s ease, color 0.2s ease;
}
.footer-social-btn:hover {
    background: #0d9488;
    color: #ffffff;
}

.footer-partner-logo {
    display: inline-flex;
    align-items: center;
}

/* ===== Mobile Drawer (sağdan slide-in) ===== */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.35s ease;
}
.mobile-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: 82%;
    max-width: 360px;
    background: linear-gradient(180deg, #132c4a 0%, #0f2439 100%);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0);
}
#mobileDrawer[data-open="true"] .mobile-drawer-overlay {
    background: rgba(0, 0, 0, 0.55);
    pointer-events: auto;
}
#mobileDrawer[data-open="true"] .mobile-drawer-panel {
    transform: translateX(0);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

/* Header: uzmanlık menüsü — link ile alt menü arası görünmez hover köprüsü (fare kaybını önler) */
.nav-expertise-hover-bridge {
    position: relative;
    z-index: 10;
}
.nav-expertise-hover-bridge::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.75rem;
    z-index: 55;
}

/* Header menü: Outfit (font-heading Tailwind’de yoksa yedek) */
#site-header .font-heading,
#site-header nav a,
#site-header nav button,
#mobile-menu a,
#mobile-menu button[aria-label] {
    font-family: "Outfit", system-ui, sans-serif;
}

/* Uzmanlık alt menü — saf CSS (:hover); Tailwind group-hover derlenmeyebiliyor */
#site-header,
#site-header .max-w-7xl,
#site-header nav {
    overflow: visible;
}

.nav-expertise-dropdown {
    position: relative;
    display: inline-block;
    text-align: left;
}

.nav-expertise-dropdown-panel {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 70;
    /* Dar panel: ~240px üst sınır, mobilde yan boşluklu */
    width: min(calc(100vw - 2.5rem), 15rem);
    padding-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.18s ease-out,
        visibility 0.18s ease-out;
}

.nav-expertise-dropdown:hover .nav-expertise-dropdown-panel,
.nav-expertise-dropdown:focus-within .nav-expertise-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-expertise-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-expertise-dropdown:hover .nav-expertise-chevron,
.nav-expertise-dropdown:focus-within .nav-expertise-chevron {
    transform: rotate(180deg);
}

.nav-expertise-dropdown-inner {
    overflow: hidden;
    border-radius: 0.875rem;
    border: 1px solid rgba(241, 245, 249, 0.95);
    background: #fff;
    /* Üst-alt + sol-sağ iç boşluk */
    padding: 0.5rem 0.75rem;
    box-shadow:
        0 10px 40px -10px rgba(30, 58, 95, 0.12),
        0 0 0 1px rgba(15, 23, 42, 0.04);
}

.nav-expertise-dropdown-link {
    display: block;
    padding: 0.45rem 0.35rem;
    text-align: left;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #334155;
    text-decoration: none;
    border-radius: 0.5rem;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.nav-expertise-dropdown-link:hover {
    background-color: rgba(240, 253, 250, 0.9);
    color: #1d4ed8;
}

/* Orta boy metin — pagination vb. (resources/css/app.css @theme ile de tanımlı; build öncesi yedek) */
.text-md {
    font-size: 0.9375rem;
    line-height: 1.375rem;
}

/* Sticky header: aşağı scroll’da gizlenir, yukarı scroll’da gelir (JS: .header-scroll-hidden)
   Tailwind utility’leri yalnızca JS ile eklendiğinde derlenmeyebileceği için burada tanımlı */
#site-header.header-scroll-hidden {
    transform: translate3d(0, -100%, 0);
    pointer-events: none;
}

/* Custom Homepage Utilities */
.stats-overlap {
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .stats-overlap {
        margin-top: -50px !important;
    }
}

.slider-desc-margin {
    margin-bottom: 20px !important;
}

/* Blog pagination: ok kutuları ~30–35px (calc ile) */
.blog-pagination-arrow {
    box-sizing: border-box;
    width: calc(30px + 0.125rem);
    height: calc(30px + 0.125rem);
    min-width: calc(30px + 0.125rem);
    min-height: calc(30px + 0.125rem);
}
.blog-pagination-arrow svg {
    width: calc(11px + 0.3125rem);
    height: calc(11px + 0.3125rem);
    flex-shrink: 0;
}

/* Blog: kartlar alanı alt boşluk */
.blog-posts-grid-wrap {
    padding-bottom: 2rem;
}

/* ===== Çalıştığı Kurumlar — Horizontal Timeline ===== */
.htimeline-desktop { display: none; }
.htimeline-mobile-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 580px) {
    .htimeline-mobile-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .htimeline-desktop { display: block; }
    .htimeline-mobile-grid { display: none; }
    .htimeline-top-row,
    .htimeline-bottom-row {
        display: flex;
        gap: 2rem;
    }
    .htimeline-top-row { align-items: flex-end; }
    .htimeline-bottom-row { align-items: flex-start; }
    .htimeline-slot { flex: 1; }
    .htimeline-center-row {
        position: relative;
        display: flex;
        align-items: center;
        height: 28px;
    }
    .htimeline-center-line {
        position: absolute;
        left: 0; right: 0; top: 50%;
        height: 2px;
        transform: translateY(-50%);
        background: linear-gradient(to right,
            rgba(29,78,216,0.7) 0%,
            rgba(13,148,136,0.7) 33%,
            rgba(13,148,136,0.7) 66%,
            rgba(29,78,216,0.7) 100%
        );
    }
    .htimeline-dot-wrap {
        flex: 1;
        display: flex;
        justify-content: center;
        position: relative;
        z-index: 1;
    }
    .htimeline-dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .htimeline-connector {
        width: 2px;
        height: 1.75rem;
        margin: 0 auto;
    }
    .htimeline-card-wrap {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .htimeline-card-wrap:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 48px rgba(0,0,0,0.1) !important;
    }
}

/* ===== Hakkımda — Mesleki Deneyimler Timeline ===== */
.timeline-wrap {
    position: relative;
}
.timeline-line {
    display: none;
}
.timeline-row {
    position: relative;
    display: flex;
    flex-direction: column;
}
.timeline-dot {
    display: none;
}
.timeline-left {
    width: 100%;
    padding-bottom: 1.25rem;
}
.timeline-right {
    width: 100%;
    padding-bottom: 1.25rem;
}
.timeline-spacer {
    display: none;
}

@media (min-width: 768px) {
    .timeline-line {
        display: block;
        position: absolute;
        top: 2rem;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        border-radius: 9999px;
        background: linear-gradient(to bottom, rgba(37,99,235,0.5) 0%, rgba(20,184,166,0.6) 50%, rgba(15,118,110,0.5) 100%);
    }
    .timeline-row {
        flex-direction: row;
        align-items: center;
    }
    .timeline-dot {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        width: 1rem;
        height: 1rem;
        border-radius: 9999px;
        border: 4px solid white;
    }
    .timeline-left {
        width: 50%;
        padding-right: 3.5rem;
        padding-bottom: 2rem;
    }
    .timeline-right {
        width: 50%;
        padding-left: 3.5rem;
        padding-bottom: 2rem;
    }
    .timeline-spacer {
        display: block;
        width: 50%;
    }
    .timeline-spacer-left {
        padding-right: 3.5rem;
    }
    .timeline-spacer-right {
        padding-left: 3.5rem;
    }
}

/* İçerik alanları: editörden gelen boş paragrafları gizle */
.prose p:empty,
.prose p:has(> br:only-child) {
    display: none;
}

/* İçerik alanları: paragraf boşlukları */
.prose p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

.prose p:last-child {
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .blog-posts-grid-wrap {
        padding-bottom: 2.5rem;
    }
}

/* ========== HAKKIMDA SAYFASI — Tailwind JIT'te derlenmemiş renkler ========== */
/* Palet: Lacivert (brand-dark/brand-main) + Cam göbeği (medical-*) */

/* Gradient — brand */
.from-brand-main.to-brand-accent { --tw-gradient-from: #1d4ed8; --tw-gradient-to: #3b82f6; }
.from-medical-500.to-medical-700 { --tw-gradient-from: #14b8a6; --tw-gradient-to: #0f766e; }

.bg-gradient-to-r.from-medical-500.to-medical-700,
.bg-gradient-to-br.from-medical-500.to-medical-700 {
    background-image: linear-gradient(to right, #14b8a6, #0f766e);
}
.bg-gradient-to-br.from-medical-500.to-medical-700 {
    background-image: linear-gradient(to bottom right, #14b8a6, #0f766e);
}

.bg-gradient-to-r.from-medical-400.to-medical-600,
.bg-gradient-to-br.from-medical-400.to-medical-600 {
    background-image: linear-gradient(to right, #2dd4bf, #0d9488);
}
.bg-gradient-to-br.from-medical-400.to-medical-600 {
    background-image: linear-gradient(to bottom right, #2dd4bf, #0d9488);
}

.bg-gradient-to-r.from-brand-main.to-brand-accent,
.bg-gradient-to-br.from-brand-main.to-brand-accent {
    background-image: linear-gradient(to right, #1d4ed8, #3b82f6);
}
.bg-gradient-to-br.from-brand-main.to-brand-accent {
    background-image: linear-gradient(to bottom right, #1d4ed8, #3b82f6);
}

.bg-gradient-to-r.from-brand-main.to-brand-dark,
.bg-gradient-to-br.from-brand-main.to-brand-dark {
    background-image: linear-gradient(to right, #1d4ed8, #1e3a5f);
}
.bg-gradient-to-br.from-brand-main.to-brand-dark {
    background-image: linear-gradient(to bottom right, #1d4ed8, #1e3a5f);
}

.bg-gradient-to-r.from-medical-600.to-medical-800 {
    background-image: linear-gradient(to right, #0d9488, #115e59);
}
.bg-gradient-to-br.from-medical-600.to-medical-800 {
    background-image: linear-gradient(to bottom right, #0d9488, #115e59);
}

/* Çalıştığı Kurumlar — koyu bölüm renkleri */
.bg-medical-600 { background-color: #0d9488; }
.ring-brand-dark { --tw-ring-color: #1e3a5f; }

/* Kurum kartları — alt çizgi renkleri */
.bg-brand-main\/40 { background-color: rgba(29, 78, 216, 0.4); }
.bg-brand-main\/60 { background-color: rgba(29, 78, 216, 0.6); }
.bg-medical-600\/40 { background-color: rgba(13, 148, 136, 0.4); }
.bg-medical-600\/60 { background-color: rgba(13, 148, 136, 0.6); }

/* Kurum kartları — ikon arka planları */
.bg-brand-main\/20 { background-color: rgba(29, 78, 216, 0.2); }
.bg-medical-600\/20 { background-color: rgba(13, 148, 136, 0.2); }

/* Hover: genişleyen alt çizgi */
.group:hover .group-hover\:bg-brand-main\/60 { background-color: rgba(29, 78, 216, 0.6); }
.group:hover .group-hover\:bg-medical-600\/60 { background-color: rgba(13, 148, 136, 0.6); }

/* Uzmanlık kartları — arka plan opacity varyantları */
.bg-brand-main\/5 { background-color: rgba(29, 78, 216, 0.05); }
.bg-medical-400\/5 { background-color: rgba(45, 212, 191, 0.05); }

/* Kurum section dark gradient bg */
.bg-gradient-to-br.from-brand-dark.via-brand-dark.to-medical-900 {
    background: linear-gradient(to bottom right, #1e3a5f, #1e3a5f, #134e4a);
}

/* Hero: doktor görseli — mobilde gizli, masaüstünde sağda */
.hero-doctor-col {
    display: none;
}

@media (min-width: 1024px) {
    .hero-doctor-col {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        overflow: visible;
    }
    .hero-doctor-col img {
        transform: none;
    }
}

/* Hero arka plan: stok hastane görseli + gradient overlay */
#heroSlider {
    background:
        linear-gradient(135deg, rgba(15,32,56,0.82) 0%, rgba(13,74,68,0.72) 55%, rgba(17,94,89,0.78) 100%),
        url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?w=1920&q=80&auto=format&fit=crop') center / cover no-repeat;
}

/* ===== Özel İlgi Alanları Cards ===== */
.interest-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 767px) {
    .interest-grid .interest-card:last-child {
        grid-column: 1 / -1;
    }
}
@media (min-width: 768px) {
    .interest-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}
.interest-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 2rem 1.25rem 1.75rem;
    text-align: center;
    cursor: default;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}
.interest-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
}
.interest-card.blue::before { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #1e40af 100%); }
.interest-card.teal::before { background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #0f766e 100%); }
.interest-card:hover::before { opacity: 1; }
.interest-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 28px 56px rgba(0,0,0,0.15);
}
.interest-card-num {
    display: none;
}
.interest-card.blue .interest-card-num  { color: rgba(29,78,216,0.07); }
.interest-card.teal .interest-card-num  { color: rgba(13,148,136,0.07); }
.interest-card:hover .interest-card-num { color: rgba(255,255,255,0.08); }
.interest-icon-wrap {
    position: relative;
    z-index: 1;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease;
}
.interest-card.blue .interest-icon-wrap  { background: rgba(29,78,216,0.1); }
.interest-card.teal .interest-icon-wrap  { background: rgba(13,148,136,0.1); }
.interest-card.blue:hover .interest-icon-wrap,
.interest-card.teal:hover .interest-icon-wrap { background: rgba(255,255,255,0.2); }
.interest-card:hover .interest-icon-wrap { transform: scale(1.1) rotate(5deg); }
.interest-icon-wrap svg { transition: color 0.4s ease; }
.interest-card.blue .interest-icon-wrap svg  { color: #1d4ed8; }
.interest-card.teal .interest-icon-wrap svg  { color: #0d9488; }
.interest-card.blue:hover .interest-icon-wrap svg,
.interest-card.teal:hover .interest-icon-wrap svg { color: #ffffff; }
.interest-card-title {
    position: relative;
    z-index: 1;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.4s ease;
}
.interest-card.blue .interest-card-title  { color: #1e3a5f; }
.interest-card.teal .interest-card-title  { color: #134e4a; }
.interest-card:hover .interest-card-title { color: #ffffff; }
.interest-card-sub {
    position: relative;
    z-index: 1;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-top: 0.4rem;
    line-height: 1.4;
    transition: color 0.4s ease;
}
.interest-card.blue .interest-card-sub  { color: #3b82f6; }
.interest-card.teal .interest-card-sub  { color: #0d9488; }
.interest-card:hover .interest-card-sub { color: rgba(255,255,255,0.7); }

/* ===== Global: mobilde hero-sonrası ve footer-öncesi boşluk ===== */
@media (max-width: 767px) {
    /* page-hero'dan sonraki ilk section'a üst boşluk */
    .bg-hero-gradient + section {
        padding-top: 2.5rem;
    }
    /* main'in son child'ına alt boşluk — footer'la arasına nefes */
    main > :last-child {
        margin-bottom: 1.5rem;
    }
}

/* Footer Font Size Adjustments */
footer p, 
footer a.text-slate-300, 
footer span.text-slate-300,
footer li a {
    font-size: 15px !important;
}
