/* ====================================
   GENEL & YAPISAL
   ==================================== */
@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Değişkenler */
:root {
    --blue: #0b4a63;   /* kurum mavi tonu */
    --red: #d63449;    /* kurum kırmızı tonu */
    --muted: #e9f5fb;
    --text: #12343f;
    --container: 1100px;
    --primary-blue: #0E4194;
    --light-blue: #25569B;
    --font-primary: 'Poppins', 'Roboto', 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Google Fonts (Türkçe destekli, daha ince ağırlıklarla) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap&subset=latin-ext');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap&subset=latin-ext');

body {
    color: #333;
    line-height: 1.6;
    font-family: var(--font-primary);
    background-color: #fff;
    margin: 0;
}

/* All links without underline */
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.container {
    padding: 10px 0;
    width: 70%;
    max-width: var(--container);
    margin: 0 auto;
}
/* */
        .bak11icin {
            max-width: 800px;
            margin: auto;
            background: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
    .bak11baslik {font-size:20px;margin:0;color:var(--blue)}

        .note {
            background-color: #fff3cd;
            border-left: 5px solid #ffc107;
            padding: 10px;
            margin-top: 20px;
            border-radius: 4px;
        }


        .step {
            margin-bottom: 25px;
            padding: 25px;
            background-color: #e9f7ff;
            border-left: 5px solid #007bff;
            border-radius: 4px;
        }
        .step h3 {
            margin-top: 0;
            color: #007bff;
        }
        .step img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 15px auto;
            border: 1px solid #ddd;
            border-radius: 5px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .step img:hover {
            transform: scale(1.02);
        }

        /* Lightbox/Galeri Stilleri */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .lightbox-content {
            max-width: 90%;
            max-height: 90%;
        }
        .lightbox-img {
            max-width: 100%;
            max-height: 80vh;
            border: 2px solid #fff;
            border-radius: 5px;
        }
        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: 0.3s;
        }
        .lightbox-close:hover {
            color: #bbb;
        }
        .lightbox-nav {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            box-sizing: border-box;
            transform: translateY(-50%);
        }
        .lightbox-prev, .lightbox-next {
            color: #fff;
            font-size: 50px;
            font-weight: bold;
            cursor: pointer;
            user-select: none;
            transition: 0.3s;
            background-color: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            line-height: 1;
        }
        .lightbox-prev:hover, .lightbox-next:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }
        .lightbox-caption {
            color: #fff;
            text-align: center;
            padding: 10px;
            font-size: 16px;
            position: absolute;
            bottom: 40px;
            width: 100%;
        }


/* */
.wrap {
    max-width: var(--container);
    margin: 28px auto;
    padding: 20px;
}

/* ====================================
   ÜST BİLGİ ÇUBUĞU (TELEFON + SOSYAL)
   ==================================== */
/* Üst bilgi çubuğu (telefon + sosyal) sabit dursun */
.contact-bar {
    position: relative;
    z-index: 1280;   /* Menüden önde olsun */
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Telefon butonu */
.contact-phone-btn {
    background-color: var(--primary-blue);
    color: white;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

/* Sosyal ikonlar (üst çubuk için) */
.social-icons {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 30px;
    gap: 10px;
    display: inline-flex;
    width: 172px;
    height: 33px;
    align-items: center;
    justify-content: center;
}

/* İkonların arka planı olmasın */
.social-icons a {
    color: white;
    background: none !important;  /* Arka plan kaldırıldı */
    padding: 0;                   /* Yuvarlak görünümü engellemek için sıfırla */
    margin-left: 8px;
    font-size: 18px;
    border-radius: 0 !important;  /* Yuvarlaklığı iptal et */
}

/* Hover efekti sadece renk değiştirsin */
.social-icons a:hover {
    transform: translateY(-2px);
    background: none !important;
    color: #ddd;  /* üzerine gelince hafif gri olsun */
}

/* ====================================
   MASAÜSTÜ NAVİGASYON
   ==================================== */

/* Menü sabit kaydırma */
.nav {
    padding: 0;
    position: relative;
    z-index: 1000;   /* Contact bar'ın arkasına geçmesin */
    margin-top: -40px;   /* 40px yukarı */
    margin-left: -135px;  /* 52px sola */
}

/* Menü grubunu telefon butonu ile hizala */
.navbar-nav {
    margin-left: auto;
    margin-right: 172px;  /* telefon butonu kutusunun genişliği kadar */
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: flex-end;
}

.nav-item {
    position: relative;
}

/* Logo konumu */
.nav-item.logo-item {
    margin-top: -30px;
    margin-left: 95px;
    margin-right: 59px;
}

.nav-item.logo-item img {
    width: 99px;
    height: 106px;
    display: block;
}

/* Menü linkleri */
.nav-link {
    color: white;
    text-decoration: none;
    padding: 40px 10px 18px 10px;
    font-size: 16px;
    display: block;
    transition: all 0.3s;
    font-weight: 300;   /* daha ince yazı */
    position: relative;
    font-family: var(--font-primary); /* Türkçe karakter sorunsuz */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 18px;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* ====================================
   HEADER & HERO BÖLÜMLERİ
   ==================================== */
header.site-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 64px;
    width: auto;
    border-radius: 8px;
}

.brand h1 {
    font-size: 20px;
    margin: 0;
    color: var(--blue);
}

.hero {
    background: linear-gradient(180deg, rgba(11,74,99,0.06), rgba(214,52,73,0.02));
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.hero .left {
    flex: 1 1 360px;
    min-width: 240px;
}

.hero .right {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: var(--blue);
}

.hero p.lead {
    margin: 0 0 12px;
    font-size: 15px;
    color: #184c5a;
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn.primary {
    background: var(--blue);
    color: #fff;
}

.btn.ghost {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
}

.logo-preview {
    max-width: 260px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

section {
    margin-top: 18px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(19,52,63,0.04);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

ul.clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location {
    padding: 12px;
    border-radius: 8px;
    background: var(--muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.location strong {
    display: block;
}

.howto ol {
    padding-left: 18px;
}

footer {
    margin-top: 24px;
    text-align: center;
    color: #5b6f75;
    font-size: 14px;
    padding: 18px;
}

.share {
    display: flex;
    gap: 8px;
    align-items: center;
}

.map-embed {
    width: 100%;
    height: 260px;
    border-radius: 8px;
    border: 0;
}

/* ====================================
   MOBİL BÖLÜMLER
   ==================================== */
.mobile-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 140px;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-logo img {
    height: 120px;
    width: 113px;
    object-fit: contain;
    padding-bottom: 32px;
}

.mobile-logo {
    text-align: center;
    flex-grow: 1;
}

/* Mobil sağ üstte küçük sosyal ikonlar */
.mobile-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mobile-social a {
    color: white;
    font-size: 18px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
}

/* Yan menü (mobil) */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: right 0.3s ease;
    padding-top: 70px;
    overflow-y: auto;
}

.side-menu-active {
    right: 0;
}

.nav-list-mobile {
    list-style: none;
}

.nav-list-mobile .nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.nav-list-mobile .nav-link {
    display: block;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-list-mobile .nav-link:hover {
    background-color: #f5f5f5;
    padding-left: 25px;
}

/* Menü arkaplan (overlay) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Responsive görünürlük */
.desktop-only, .mobile-only {
    display: none;
}

/* ================================
   ALT SAYFALAR (inner-page)
   ================================ */
body.inner-page .nav {
    background-color: white;
}

body.inner-page .nav-item.logo-item img {
    content: url("pic/lacivert_logo.png"); /* alt sayfa logosu */
}

body.inner-page .social-icons a {
    background: var(--primary-blue);  /* mavi zemin */
    color: white;          /* beyaz ikon */
}

body.inner-page .nav-link {
    color: var(--light-blue);		/* yazı rengi */
}

body.inner-page .nav-link::after {
    background-color: var(--light-blue);		/* yazı rengi */
}

.buton-alti {
    background-color: var(--primary-blue); /* mavi zemin */
    height: 110px;            /* sabit yükseklik */
    width: 100%;              /* sayfanın tamamını kaplasın */
    color: white;              /* yazılar beyaz */
    display: flex;             /* ortalama için */
    align-items: center;
    justify-content: left;
    margin-top: 20px;          /* butonlardan boşluk bırak */
    padding-left: 235px;    /* soldan 200px boşluk */
    font-weight: 200;   /* daha ince yazı */
    font-size: 14px;
}

.buton-alti a {
    color: white;              /* link rengi beyaz */
    text-decoration: none;  /* alt çizgi yok */
    font-weight: 200;   /* daha ince yazı */
    font-size: 14px;
}

.buton-alti a:hover {
    text-decoration: none; /* üzerine gelince alt çizgi olmasın */
}

/* ALT SAYFALAR İÇİN MENÜ STİLİ */
@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }
    body {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    body {
        padding-top: 140px; /* Mobil header için boşluk */
    }
}

/* ====================================
   ARAMA VE LİSTE YAPISI
   ==================================== */
/* Arama Formu */
.search-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto 30px;
    box-sizing: border-box;
}

.search-container h2 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row label {
    width: 120px;
    font-weight: bold;
    color: #555;
}

.form-row input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

.button-container {
    text-align: center;
    margin-top: 10px;
}

.search-button {
    padding: 10px 25px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #0056b3;
}

/* Vefat Listesi */
.vefat-list-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0 auto;
    max-width: 1000px;
    background-color: #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Masaüstü görünüm (4 sütün) */
.vefat-header, .vefat-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr; /* Ad Soyad | Vefat | Defin | Yer | Zaman */
    gap: 1px;
    background-color: #fff;
    padding: 15px;
    align-items: center;
    word-break: break-word; /* Uzun isimler taşmasın */
}

.vefat-header {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.vefat-item {
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.vefat-item:nth-child(even) {
    background-color: #f9f9f9;
}

.vefat-item div {
    padding: 5px;
}

.vefat-item:hover {
    background-color: #e9e9e9;
}

/* Detay Kutusu */
.vefat-detail-container {
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.vefat-detail-container.open {
    max-height: 200px;
    padding: 15px;
}

/* Sayfalama */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-pages {
    display: flex;
    gap: 5px;
}

.pagination-pages a, .pagination-controls select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-decoration: none;
    color: #007bff;
    background-color: #fff;
    transition: background-color 0.3s;
}

.pagination-pages a:hover {
    background-color: #e9e9e9;
}

.pagination-pages a.active {
    background-color: #007bff;
    color: #fff;
}

/* ====================================
   RESPONSIVE DÜZENLEMELER
   ==================================== */
@media (max-width: 800px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding: 14px;
    }
    
    .hero .right {
        order: -1;
    }
}

@media (max-width: 768px) {
    .vefat-header {
        display: none; /* Başlık gizlensin */
    }

    .vefat-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        background: #fff;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .vefat-item div {
        width: 100%;
        padding: 6px 0;
        border-bottom: 1px solid #eee;
    }

    .vefat-item div:last-child {
        border-bottom: none;
    }

    .vefat-item::before {
        content: "Vefat Kaydı";
        font-weight: bold;
        margin-bottom: 8px;
        color: #007bff;
    }
}