/**
 * layout.css
 * Premier Dental Clinic — Header & Navigation
 */

/* =========================================
   PREMIUM HEADER
========================================= */
.premium-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .header-container { padding: 0 24px; }
}

@media (max-width: 768px) {
    .header-container { padding: 0 16px; }
	.header-right{ display:flex;}
}

/* =========================================
   LOGO
========================================= */
.logo-area img {
    max-height: 42px;
}

/* =========================================
   DESKTOP MENU
========================================= */

.premium-menu {
    display: flex;
    gap: 10px;
    list-style: none;
}


@media (max-width: 1400px) {
.premium-menu {
    display: flex;
    gap: 10px;
    list-style: none;
}
}


header .web-lang>li {
    border: 2px solid var(--text-light);
    border-radius: 9px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 6px
}

header .web-lang>li svg {
    width: 20px;
    height: 20px;
    fill: var(--text-light)
}

header .web-lang>li:after {
    content: ' ';
    border: 6px solid;
    transform: translateY(35%);
    border-color: var(--text-light) #fff0 #fff0 #fff0;
    margin-left: 5px
}

header .web-lang {
    margin: 0;
    cursor: pointer;
    z-index: 999;
    list-style: none;
    padding: 0
}

header .web-lang>li {
    position: relative;
    display: inline-flex
}

header .web-lang .menu-item-has-children img {
    width: 23px;
    height: 23px;
    color: #fff;
    cursor: pointer
}

header .web-lang>li .lang-item {
    color: #000;
    background: #fff;
    padding: 4px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    margin-left: 15px;
    border: 2px solid #2B1638
}

header .web-lang>li .lang-item a img,header .web-lang>li .lang-item img {
    width: 25px;
    height: 25px;
    margin-right: 10px
}

header .web-lang>li .lang-item a span,header .web-lang li ul.sub-menu li span {
    color: #fdfdfd;
    font-weight: 600;
    font-size: 16px
}

header .web-lang li ul.sub-menu {
    opacity: 0;
    position: absolute;
    z-index: 9;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c2a5f;
    pointer-events: none;
    transition: all 0.2s;
    border-radius: 13px;
    list-style: none;
    padding: 0;
    overflow: hidden;
    margin-top: 5px!important
}

header .web-lang>li:hover ul.sub-menu {
    z-index: 15;
    opacity: 1;
    top: 100%;
    pointer-events: initial
}

header .web-lang li ul.sub-menu li {
    padding: 0;
    margin: 0;
    transition: all 0.2s
}

header .web-lang li ul.sub-menu li:hover {
    background-color: #e6e6e6
}

header .web-lang li ul.sub-menu li:hover span {
    color: #000
}

header .web-lang li ul.sub-menu li .d-flex {
    text-decoration:none;
    padding: 10px 28px 10px 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #fff
}

header .web-lang li ul.sub-menu li:last-child .d-flex {
    border-bottom: none
}

header .web-lang li ul.sub-menu li img.flag-img {
    margin-right: 10px;
    width: 20px;
    height: 20px
}
.premium-menu li {
    position: relative;
}

.premium-menu a {
    position: relative;
    font-weight: 500;
    font-size: 15px;
    color: #111;
    text-decoration: none;
    padding: 8px 0;
    transition: 0.3s ease;
}

.premium-menu a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.premium-menu a:hover::after { width: 100%; }
.premium-menu a:hover { color: var(--primary-color); }

@media (max-width: 2560px) {
	.premium-menu a {
    font-size: 13px!important;
	}
}

@media (max-width: 1440px) {
	.premium-menu a {
    font-size: 11px!important;
	}
}

/* =========================================
   DROPDOWN
========================================= */
.premium-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 16px;
    margin-top: 12px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
    list-style: none;
    z-index: 999;
}

.premium-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.premium-menu .sub-menu li { margin-bottom: 6px; }

.premium-menu .sub-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.premium-menu .sub-menu a:hover {
    background: rgba(9,75,133,0.06);
}

.premium-menu .menu-item-has-children > a {
    padding-right: 10px;
}

.premium-menu .menu-item-has-children > a::before {
    content: "";
    position: absolute;
    right: 0px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: translateY(-50%) rotate(45deg);
    transition: 0.3s ease;
}

.premium-menu .menu-item-has-children:hover > a::before {
    transform: translateY(-50%) rotate(225deg);
}

/* =========================================
   CTA BUTTON
========================================= */
.cta-button {
    display: none;
}


/* pmenu-arrow masaüstünde gizli */
.pmenu-arrow { display: none; }
.pmenu-footer { display: none; }
.pmenu-head { display: none; }

/* =========================================
   MOBILE TOGGLE & NAV
========================================= */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: #000;
}

.nav-close {
    display: none;
    position: absolute;
    width: 26px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-close span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #111;
    left: 0;
    top: 50%;
    transform-origin: center;
}

.nav-close span:first-child { transform: rotate(45deg); }
.nav-close span:last-child  { transform: rotate(-45deg); }

/* =========================================
   MOBILE — @media (max-width: 1200px)
========================================= */
@media (max-width: 1350px) {

    /* Hamburger göster */
    .nav-toggle {
        display: flex;
        margin-left: 16px;
		justify-content: center;
    }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.12);
        cursor: pointer;
        position: relative;
        transition: background 0.2s ease, transform 0.2s ease;
        flex-shrink: 0;
    }

    .nav-close:hover {
        background: rgba(255,255,255,0.14);
        transform: rotate(90deg);
    }

    .nav-close { position: relative; }
    .nav-close span {
        position: absolute;
        width: 16px;
        height: 1.5px;
        background: #fff !important;
        left: 50%;
        top: 50%;
        transform-origin: center;
    }

    .nav-close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
    .nav-close span:last-child  { transform: translate(-50%,-50%) rotate(-45deg); }



    /* ── Nav Panel ── */
    .premium-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(360px, 88vw);
        height: 100dvh;
        background: linear-gradient(180deg, #629bbc 0%, #5da8d3 50%, #3c92c3 100%);
        transform: translateX(110%);
        transition: transform 0.45s cubic-bezier(0.23,1,0.32,1);
        z-index: 9999;
        display: flex;
        flex-direction: column;
        padding: 0;
        box-shadow: -20px 0 60px rgba(0,0,0,0.4);
        overflow: hidden;
    }

    .premium-nav::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(145,175,201,0.12) 0%, transparent 70%);
        pointer-events: none;
    }

    .premium-nav.active {
        transform: translateX(0);
    }

    /* ── Panel Üst Başlık ── */
    .pmenu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 28px 20px;
        border-bottom: 1px solid rgba(145,175,201,0.15);
        flex-shrink: 0;
    }

    .pmenu-head-logo {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: rgba(255,255,255,0.4);
    }

    /* ── Menü Listesi ── */
    .premium-nav .premium-menu {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 28px 28px 20px;
        overflow-y: auto;
        list-style: none;
        scrollbar-width: none;
    }

    .premium-nav .premium-menu::-webkit-scrollbar { display: none; }

    /* ── Menü Item — stagger giriş animasyonu ── */
    .premium-nav .premium-menu > li {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        border-bottom: 1px solid rgba(145,175,201,0.1);
        margin-bottom: 0;
    }

    .premium-nav.active .premium-menu > li { opacity: 1; transform: translateX(0); }
    .premium-nav.active .premium-menu > li:nth-child(1)  { transition-delay: 0.06s; }
    .premium-nav.active .premium-menu > li:nth-child(2)  { transition-delay: 0.10s; }
    .premium-nav.active .premium-menu > li:nth-child(3)  { transition-delay: 0.14s; }
    .premium-nav.active .premium-menu > li:nth-child(4)  { transition-delay: 0.18s; }
    .premium-nav.active .premium-menu > li:nth-child(5)  { transition-delay: 0.22s; }
    .premium-nav.active .premium-menu > li:nth-child(6)  { transition-delay: 0.26s; }
    .premium-nav.active .premium-menu > li:nth-child(7)  { transition-delay: 0.30s; }
    .premium-nav.active .premium-menu > li:nth-child(8)  { transition-delay: 0.34s; }
    .premium-nav.active .premium-menu > li:nth-child(9)  { transition-delay: 0.38s; }
    .premium-nav.active .premium-menu > li:nth-child(10) { transition-delay: 0.42s; }

    /* ── Link ── */
    .premium-nav .premium-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 4px;
        font-size: 17px;
        font-weight: 700;
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        letter-spacing: 0.3px;
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    .premium-nav .premium-menu > li > a::before,
    .premium-nav .premium-menu > li > a::after { display: none; }

    .premium-nav .premium-menu > li > a:hover {
        color: #fff;
        padding-left: 8px;
    }

    /* ── Dropdown ok ikonu ── */
    .premium-nav .premium-menu .menu-item-has-children > a .pmenu-arrow {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(145,175,201,0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: transform 0.25s ease, background 0.2s ease;
    }

    .premium-nav .premium-menu .menu-item-has-children > a .pmenu-arrow svg {
        width: 13px;
        height: 13px;
        stroke: rgba(255,255,255,0.7);
        fill: none;
    }

    .premium-nav .premium-menu .menu-item-has-children.open > a .pmenu-arrow {
        transform: rotate(180deg);
        background: rgba(145,175,201,0.25);
    }

    /* ── Sub-menu ── */
    .premium-nav .premium-menu .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        border-radius: 10px;
        margin: 0 0 12px;
        padding: 8px 0;
        list-style: none;
        min-width: unset;
    }

    .premium-nav .premium-menu li.open > .sub-menu {
        display: block;
        animation: subMenuIn 0.25s ease forwards;
    }

    @keyframes subMenuIn {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .premium-nav .premium-menu .sub-menu a {
        display: block;
        padding: 11px 20px;
        font-size: 14px;
        font-weight: 500;
        color: rgba(255,255,255,0.65);
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    .premium-nav .premium-menu .sub-menu a::after,
    .premium-nav .premium-menu .sub-menu a::before { display: none; }

    .premium-nav .premium-menu .sub-menu a:hover {
        color: #fff;
        padding-left: 28px;
        background: transparent;
    }

    /* ── Panel Alt CTA ── */
    .pmenu-footer {
        padding: 20px 28px 32px;
        flex-shrink: 0;
        border-top: 1px solid rgba(145,175,201,0.12);
		display:block;
    }

    .pmenu-cta {
        display: block;
        text-align: center;
        padding: 14px 20px;
        background: #25D366;
        border: 1px solid #25D366;
        border-radius: 999px;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        letter-spacing: 0.5px;
        transition: all 0.22s ease;
    }

    .pmenu-cta:hover {
        background: #1da851;
        border-color: #1da851;
    }

    /* Header'daki CTA gizle */
    .cta-button { display: none !important; }

} /* end @media 1200px */

/* =========================================
   LEGACY NAV (.nav sistemi) — @media 1024px
========================================= */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-xl);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .nav.active {
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: var(--space-md);
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list li:last-child { border-bottom: none; }

    .nav-list a {
        display: block;
        padding: var(--space-md);
        width: 100%;
    }

    .nav-list a::after { display: none; }

    .nav-list .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        padding-left: var(--space-md);
        background: var(--bg-secondary);
    }

    .mobile-toggle { display: flex; }
}

/* =========================================
   LANGUAGE SWITCHER
========================================= */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.language-switcher .lang-item {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    text-transform: uppercase;
}

.language-switcher .lang-item.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .language-switcher { margin-right: 12px; }
}


/* =============================================
   BLOG ARCHIVE — CATEGORY PAGE
   ============================================= */

/* ── Hero ── */
.blog-archive__hero {
    padding: 60px 0 40px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 40px;
    text-align: center;
}
.blog-archive__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin: 8px 0 12px;
    color: var(--heading-color, #0a0a0a);
}
.blog-archive__desc {
    font-size: 16px;
    color: var(--text-muted, #666);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Filtre Butonları ── */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.blog-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: var(--text-color, #333);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.blog-filter__btn:hover {
    border-color: var(--primary-color, #091151);
    color: var(--primary-color, #091151);
}
.blog-filter__btn.is-active {
    background: var(--primary-color, #091151);
    border-color: var(--primary-color, #091151);
    color: #fff;
}
.blog-filter__count {
    font-size: 12px;
    opacity: 0.7;
}

/* ── Grid ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

/* ── Kart ── */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

/* Görsel */
.blog-card__img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    text-decoration: none;
}
.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.blog-card:hover .blog-card__img {
    transform: scale(1.04);
}
.blog-card__img--placeholder {
    background: #f0f2f5;
}
.blog-card__cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary-color, #091151);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
}

/* Body */
.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}
.blog-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}
.blog-card__title a {
    color: var(--heading-color, #0a0a0a);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card__title a:hover {
    color: var(--primary-color, #091151);
}
.blog-card__excerpt {
    font-size: 14px;
    color: var(--text-muted, #666);
    line-height: 1.6;
    margin: 0 0 auto;
    padding-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #888);
}
.blog-card__author {
    display: flex;
    align-items: center;
    gap: 6px;
}
.blog-card__author img {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    object-fit: cover;
}
.blog-card__sep {
    opacity: 0.4;
}
.blog-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color, #091151);
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s;
}
.blog-card__btn:hover {
    gap: 8px;
}

/* ── Pagination ── */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}
.blog-pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}
.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: var(--text-color, #333);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.blog-pagination .page-numbers li a:hover {
    border-color: var(--primary-color, #091151);
    color: var(--primary-color, #091151);
}
.blog-pagination .page-numbers li span.current {
    background: var(--primary-color, #091151);
    border-color: var(--primary-color, #091151);
    color: #fff;
}

/* ── Empty State ── */
.blog-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted, #888);
    font-size: 16px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1023px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .blog-archive__hero {
        padding: 40px 0 28px;
    }
    .blog-filter {
        gap: 8px;
    }
    .blog-filter__btn {
        font-size: 13px;
        padding: 7px 14px;
    }
    .blog-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}