/* =========================================================
   İŞİTME CİHAZI BLOG SAYFASI CSS
   ========================================================= */

/* GENEL CONTAINER & DÜZEN */
.phm-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

.phm-section {
    padding: 60px 0 80px 0;
}

.phm-blog-main-section {
    background-color: #F8FAFC;
}

/* ---------------------------------------------------------
   1. HERO BANNER & BREADCRUMB
   --------------------------------------------------------- */
.phm-page-banner {
    position: relative;
    padding: 85px 0 65px 0;
    background-color: #0A2B5E;
    color: #FFFFFF;
    overflow: hidden;
    text-align: center;
}

.phm-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.65;
}

.phm-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 43, 94, 0.50) 0%, rgba(6, 26, 58, 0.85) 100%);
    z-index: 2;
}

.phm-banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 850px;
    margin: 0 auto;
}

.phm-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 43, 94, 0.60);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.phm-breadcrumb a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.25s ease;
}

.phm-breadcrumb a:hover {
    color: #FF6B00;
}

.phm-breadcrumb-sep {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
}

.phm-breadcrumb-current {
    color: #FF6B00;
    font-weight: 700;
}

.phm-banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.phm-banner-subtitle {
    font-size: 1.05rem;
    color: #E2E8F0;
    margin: 0;
    font-weight: 500;
}

/* ---------------------------------------------------------
   2. FİLTRELEME & ARAMA BARI
   --------------------------------------------------------- */
.phm-blog-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    background: #FFFFFF;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 15px rgba(10, 43, 94, 0.03);
}

.phm-blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.phm-cat-btn {
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #475569;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.phm-cat-btn:hover,
.phm-cat-btn.active {
    background: #FF6B00;
    color: #FFFFFF;
    border-color: #FF6B00;
}

.phm-blog-search form {
    position: relative;
    display: flex;
    align-items: center;
}

.phm-blog-search input {
    padding: 10px 45px 10px 18px;
    border-radius: 50px;
    border: 1px solid #CBD5E1;
    font-size: 0.88rem;
    width: 280px;
    outline: none;
    transition: border-color 0.25s ease;
}

.phm-blog-search input:focus {
    border-color: #0A2B5E;
}

.phm-blog-search button {
    position: absolute;
    right: 5px;
    background: #0A2B5E;
    color: #FFFFFF;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s ease;
}

.phm-blog-search button:hover {
    background: #FF6B00;
}

/* ---------------------------------------------------------
   3. ÖNE ÇIKAN YAZI (FEATURED POST)
   --------------------------------------------------------- */
.phm-featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 43, 94, 0.06);
    margin-bottom: 50px;
}

.phm-featured-img {
    position: relative;
    min-height: 340px;
}

.phm-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phm-badge-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FF6B00;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.phm-featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.phm-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.82rem;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 15px;
}

.phm-card-meta i {
    color: #FF6B00;
}

.phm-meta-cat {
    color: #0A2B5E;
    font-weight: 800;
}

.phm-featured-content h2 {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

.phm-featured-content h2 a {
    color: #0A2B5E;
    text-decoration: none;
    transition: color 0.25s ease;
}

.phm-featured-content h2 a:hover {
    color: #FF6B00;
}

.phm-featured-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 25px;
}

.phm-btn-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0A2B5E;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.25s ease;
}

.phm-btn-read:hover {
    background: #FF6B00;
}

/* ---------------------------------------------------------
   4. BLOG IZGARA LİSTESİ (CARDS)
   --------------------------------------------------------- */
.phm-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.phm-blog-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phm-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(10, 43, 94, 0.08);
}

.phm-card-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.phm-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.phm-blog-card:hover .phm-card-thumb img {
    transform: scale(1.06);
}

.phm-card-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(10, 43, 94, 0.85);
    backdrop-filter: blur(5px);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
}

.phm-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.phm-card-body .phm-card-meta {
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.phm-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}

.phm-card-title a {
    color: #0A2B5E;
    text-decoration: none;
    transition: color 0.25s ease;
}

.phm-card-title a:hover {
    color: #FF6B00;
}

.phm-card-excerpt {
    font-size: 0.88rem;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.phm-card-footer {
    border-top: 1px solid #F1F5F9;
    padding-top: 15px;
}

.phm-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #FF6B00;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.25s ease;
}

.phm-card-link:hover {
    color: #0A2B5E;
}

/* ---------------------------------------------------------
   5. SEO DESTEK ALANI
   --------------------------------------------------------- */
.phm-seo-box {
    background: #FFFFFF;
    border-left: 5px solid #FF6B00;
    padding: 35px;
    border-radius: 16px;
    border-top: 1px solid #E2E8F0;
    border-right: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.phm-seo-box h2 {
    font-size: 1.3rem;
    color: #0A2B5E;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phm-seo-box h2 i {
    color: #FF6B00;
}

.phm-seo-box p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

.phm-seo-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.phm-seo-cta span {
    font-weight: 700;
    color: #0A2B5E;
    font-size: 0.92rem;
}

.phm-seo-btn {
    background: #FF6B00;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    transition: background 0.25s ease;
    white-space: nowrap;
}

.phm-seo-btn:hover {
    background: #E05D00;
}

/* ---------------------------------------------------------
   RESPONSIVE UYUMLULUK
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .phm-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .phm-featured-card {
        grid-template-columns: 1fr;
    }

    .phm-featured-img {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .phm-blog-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .phm-blog-search input {
        width: 100%;
    }

    .phm-blog-grid {
        grid-template-columns: 1fr;
    }

    .phm-seo-cta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .phm-banner-title {
        font-size: 2rem;
    }
}

/* =========================================================
   SEO / ERİŞİLEBİLİRLİK / DİNAMİK YAPI EKLERİ
   ========================================================= */

/* Erişilebilir gizli metin (ekran okuyucu + SEO başlık hiyerarşisi) */
.phm-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* WCAG kontrast: metin içeren turuncu yüzeyler biraz koyulaştırıldı */
.phm-cat-btn:hover, .phm-cat-btn.active,
.phm-badge-featured, .phm-seo-btn { background: #C2410C; border-color: #C2410C; }
.phm-seo-btn:hover { background: #9A3412; }
.phm-card-link { color: #C2410C; }
.phm-breadcrumb-current { color: #FDBA74; }
.phm-card-meta { color: #475569; }

/* Klavye odağı */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid #0A2B5E; outline-offset: 2px; border-radius: 6px;
}

/* Breadcrumb (ol/li yapısı) */
.phm-breadcrumb ol {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.phm-breadcrumb li { display: inline-flex; align-items: center; }

/* Kategori butonları artık <a> */
.phm-cat-btn { display: inline-block; text-decoration: none; line-height: 1.2; }
.phm-blog-search input[type="search"]::-webkit-search-cancel-button { display: none; }

/* Görseller: CLS (kayma) önleme */
.phm-card-thumb { height: auto; aspect-ratio: 2 / 1; }
.phm-card-thumb a:not(.phm-card-tag), .phm-featured-img a { display: block; height: 100%; }
.phm-card-thumb img, .phm-featured-img img { display: block; }
.phm-featured-img img { position: absolute; inset: 0; }

/* Etiket/kategori linkleri */
.phm-card-tag { text-decoration: none; display: inline-block; height: auto; line-height: 1.4; }
.phm-card-tag:hover { background: #C2410C; }
.phm-meta-cat { text-decoration: none; }
.phm-meta-cat:hover { color: #C2410C; }
.phm-card-meta { flex-wrap: wrap; row-gap: 6px; }

/* Uzun metin kırpma (kart yüksekliklerini eşitler) */
.phm-card-title, .phm-card-excerpt {
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.phm-card-title { -webkit-line-clamp: 3; }
.phm-card-excerpt { -webkit-line-clamp: 4; }

/* Arama sonucu bilgisi */
.phm-result-info {
    margin: -15px 0 30px; padding: 14px 20px; background: #FFFFFF;
    border: 1px solid #E2E8F0; border-radius: 12px; color: #475569; font-size: 0.95rem;
}
.phm-result-info a { color: #C2410C; font-weight: 700; margin-left: 10px; }

/* Boş durum / 404 */
.phm-empty {
    text-align: center; background: #FFFFFF; border: 1px dashed #CBD5E1;
    border-radius: 18px; padding: 55px 25px; margin-bottom: 50px;
}
.phm-empty i { font-size: 2.6rem; color: #94A3B8; margin-bottom: 15px; display: block; }
.phm-empty h2 { color: #0A2B5E; font-size: 1.4rem; margin: 0 0 8px; }
.phm-empty p { color: #64748B; margin: 0 0 22px; }

/* Sayfalama */
.phm-pagination {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 8px; margin: -20px 0 60px;
}
.phm-page-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 42px; height: 42px; padding: 0 14px; border-radius: 10px;
    background: #FFFFFF; border: 1px solid #E2E8F0; color: #0A2B5E;
    font-weight: 700; font-size: 0.92rem; text-decoration: none; transition: all 0.25s ease;
}
a.phm-page-link:hover { background: #0A2B5E; color: #FFFFFF; border-color: #0A2B5E; }
.phm-page-link.active { background: #C2410C; border-color: #C2410C; color: #FFFFFF; }
.phm-page-dots { color: #94A3B8; font-weight: 700; padding: 0 4px; }

/* SEO kutusu içi kategori linkleri (iç linkleme) */
.phm-seo-links {
    list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px;
}
.phm-seo-links a {
    display: inline-block; padding: 7px 16px; border-radius: 50px; background: #F1F5F9;
    border: 1px solid #E2E8F0; color: #0A2B5E; font-size: 0.86rem; font-weight: 700; text-decoration: none;
    transition: all 0.25s ease;
}
.phm-seo-links a span { color: #64748B; font-weight: 600; }
.phm-seo-links a:hover { background: #0A2B5E; color: #FFFFFF; }
.phm-seo-links a:hover span { color: #CBD5E1; }

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .phm-blog-card:hover { transform: none; }
}

@media (max-width: 768px) {
    .phm-featured-content { padding: 26px 22px; }
    .phm-featured-content h2 { font-size: 1.4rem; }
    .phm-pagination { margin-top: -10px; }
    .phm-page-nav { flex: 1 1 100%; }
}