/* ====================================
   GENEL & YAPISAL
   ==================================== */
@codePage = 65001

@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 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');


body {
    color: #333;
    line-height: 1.6;
    font-family: 'Roboto', 'Poppins', 'Inter', 'Segoe UI', Arial, sans-serif, 'Segoe UI Symbol', 'Noto Sans', 'Apple Color Emoji';
    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: 1280px;
    margin: 0 auto;
}

/* ====================================
   Ü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: #0E4194;
    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: #0E4194;
    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: 'Poppins', 'Inter', 'Segoe UI', Arial, sans-serif; /* 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%;
}

/* ====================================
   MOBİL BÖLÜMLER
   ==================================== */
.mobile-header {
    background-color: #0E4194;
    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: #0E4194;  /* mavi zemin */
    color: white;          /* beyaz ikon */
}

body.inner-page .nav-link {
    color: #25569B;		/* yazı rengi */
}

body.inner-page .nav-link::after {
    background-color: #25569B;		/* yazı rengi */

}


.buton-alti {
    background-color: #0E4194; /* 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;
}

/* Mobil görünüm */
@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;
    }
}