/* Deniz Danışmanlık - Özel Stiller */

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Slider sabit yükseklik ───────────────────────────────────────────────── */
.slider-wrapper,
.nivoSlider {
    height: 680px !important;
    overflow: hidden;
}

/* Görseller alanı tamamen kaplasın, orantı bozulmasın */
.nivoSlider img,
.nivo-main-image {
    width: 100% !important;
    height: 680px !important;
    object-fit: cover !important;
    object-position: center center;
}

/* Nivo'nun oluşturduğu iç sarmalayıcılar da sabit kalsın */
.nivoSlider .nivo-slice,
.nivoSlider .nivo-box {
    height: 680px !important;
}

/* Tablet */
@media (max-width: 991px) {
    .slider-wrapper,
    .nivoSlider,
    .nivoSlider img,
    .nivo-main-image,
    .nivoSlider .nivo-slice,
    .nivoSlider .nivo-box {
        height: 480px !important;
    }
}

/* Mobil */
@media (max-width: 575px) {
    .slider-wrapper,
    .nivoSlider,
    .nivoSlider img,
    .nivo-main-image,
    .nivoSlider .nivo-slice,
    .nivoSlider .nivo-box {
        height: 320px !important;
    }
}

/* ── Logo: ikon (sol) + metin (sağ) ─────────────────────────────────────── */
.nav-logo-wrap {
    display: flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 50px;
    height: 50px;
}

.nav-logo-icon img {
    height: 100% !important;
    width: auto !important;
    object-fit: contain;
    position: static !important;
    top: auto !important;
    left: auto !important;
}

.nav-logo-text-wrap {
    height: 38px;
}

.nav-logo-text-wrap img {
    height: 100% !important;
    width: auto !important;
    object-fit: contain;
}

/* Sayfa başındaki şeffaf header'da beyaz logo (text ve ikon) */
.logo-light {
    filter: brightness(0) invert(1);
}

.navbar-fixed-top .logo-light {
    display: none;
}

.navbar-fixed-top .logo-dark {
    display: block;
}

/* ── Sub-page (İç Sayfa) Navbar Fix ───────────────────────────────────────── */
.sub-page .header-section {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid #f0f0f0;
}

.sub-page .header-section .logo-light {
    display: none !important;
}

.sub-page .header-section .logo-dark {
    display: block !important;
}

.sub-page ul.nav > li > a {
    color: #444 !important;
}

.sub-page ul.nav > li > a:hover {
    color: #000 !important;
}

/* ── Navbar Kayma Fix ──────────────────────────────────────────────────── */
/* İç sayfalarda header her zaman beyaz ve sticky */
.sub-page .header-section {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
}

/* Ana sayfa link renkleri: Şeffaf headerda BEYAZ, Scrolled halde KOYU */
.home-page .header-section:not(.navbar-fixed-top) ul.nav > li > a {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.home-page .header-section.navbar-fixed-top ul.nav > li > a,
.sub-page ul.nav > li > a {
    color: #333 !important;
}

.header-section .navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

ul.nav > li > a {
    padding: 0 10px !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
}

.mainmenu {
    flex-shrink: 0;
}

/* ── Sertifikalı İşletmeler — kart düzeni ───────────────────────────────── */
.certified-section {
    background: #f8f9fa;
}

/* Kart */
.certified-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}

.certified-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.certified-img {
    position: relative;
    overflow: hidden;
}

.certified-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.certified-card:hover .certified-img img {
    transform: scale(1.04);
}

.certified-body {
    padding: 16px 18px 18px;
}

.certified-body h5 {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: #1a1a1a;
}

.certified-location {
    font-size: .78rem;
    color: #888;
    margin: 0 0 8px;
}

.certified-location i {
    margin-right: 4px;
}

.certified-desc {
    font-size: .8rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ── Portfolio / İşletme görselleri sabit yükseklik ─────────────────────── */
.portfolio-item img {
    height: 260px;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 767px) {
    .portfolio-item img {
        height: 220px;
    }
}

/* ── Pricing paket görselleri sabit yükseklik ───────────────────────────── */
.pricing-head img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

@media (max-width: 767px) {
    .pricing-head img {
        height: 160px;
    }
}

/* ── Bölüm logosu (iletişim widget) boyutu ───────────────────────────────── */
.widget-content img {
    height: 80px;
    width: auto;
}

/* ── Mobil navbar logo küçültme ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .nav-logo-icon {
        width: 46px;
        height: 46px;
    }

    .nav-logo-icon img {
        height: 38px !important;
        width: auto !important;
        position: static !important;
    }

    .nav-logo-text-wrap {
        height: 30px !important;
    }
}

/* ── Footer kredi yazısı ─────────────────────────────────────────────────── */
.footer-credit {
    font-size: .75rem;
    opacity: .6;
    margin-top: 4px;
}

.footer-credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-credit a:hover {
    opacity: 1;
    color: inherit;
}

/* ── Pricing fiyat yazısı ────────────────────────────────────────────────── */
.price h2 {
    font-size: 36px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px;
    padding: 10px 0;
}

/* ── Sayfa Banner alanı (Tema Uyumlu) ────────────────────────────────────── */
.page-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 120px 0 50px;
    text-align: center;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 3rem;
    color: #111;
    font-weight: 400;
    margin-bottom: 15px;
    font-family: 'Unna', sans-serif;
}

.breadcrumb-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: .8rem;
    opacity: .6;
}

.breadcrumb-wrap a { color: #000; text-decoration: none; }
.breadcrumb-wrap span { color: #888; }

/* ── Sayfa Sidebar (Temiz Versiyon) ─────────────────────────────────────────── */
.sidebar-list {
    background: transparent;
    padding: 0;
}

.sidebar-title {
    font-family: 'Unna', sans-serif;
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #000;
}

.sidebar-list ul { list-style: none; padding: 0; }

.sidebar-list ul li a {
    display: block;
    padding: 12px 0;
    color: #666;
    font-weight: 500;
    font-size: .9rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all .3s;
}

.sidebar-list ul li a:hover, 
.sidebar-list ul li a.active {
    color: #111;
    padding-left: 8px;
    border-bottom-color: #ccc;
}

/* ── Kutu Düzeni (Foxden Kart Stili) ──────────────────────────────────────── */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.theme-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
    transition: all .3s ease;
}

.theme-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transform: translateY(-5px);
}

.theme-card h4 {
    font-family: 'Unna', sans-serif;
    font-size: 1.3rem;
    color: #111;
    margin-bottom: 12px;
}

.theme-card p {
    font-size: .9rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.content-section-title {
    font-family: 'Unna', sans-serif;
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 25px;
}

.main-content-area p {
    line-height: 1.8;
    color: #444;
}


@media (max-width: 991px) {
    .page-header h1 { font-size: 2.2rem; }
}

/* ── Mobil Ekstra Fixler ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Genel Taşma Engelleme */
    .container, .row {
        max-width: 100vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
        /* overflow-x: hidden; -- Menü açılmasını engelleyebilir, kaldırdık */
    }

    /* Carousel / Slider Taşma Fix */
    .owl-carousel, .owl-stage-outer {
        max-width: 100vw !important;
        overflow: hidden !important;
    }
    
    /* Navbar'ın zoom yapıldığında görüşten çıkmaması için */
    .header-section {
        position: fixed !important;
        z-index: 9999 !important; /* Çok yüksek tutalım */
        background: #fff !important;
    }

    .header-section .logo-light {
        display: none !important;
    }

    .header-section .logo-dark {
        display: block !important;
    }
    
    #header {
        height: auto !important;
        min-height: 70px;
    }

    .mainmenu {
        display: none !important; /* Standart menü mobilde gizlenir, slicknav kullanılır */
    }

    /* Slicknav Buton Görünürlüğü */
    .slicknav_menu {
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        position: absolute;
        right: 15px;
        top: 50% !important;
        transform: translateY(-50%);
        z-index: 10001 !important;
    }

    .slicknav_btn {
        background-color: #002850 !important;
        margin: 0 !important;
        padding: 8px 10px !important;
    }
}

/* Menü Paneli Ayarı */
.slicknav_nav {
    position: absolute !important;
    top: 100% !important;
    left: 0;
    width: 100vw !important;
    background: #fff !important;
    z-index: 999999 !important; /* En üstte kalsın */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    padding: 20px !important;
    border-radius: 0 0 10px 10px;
}

.slicknav_nav a {
    display: block !important;
    padding: 12px 0 !important;
    color: #444 !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #f0f0f0;
}

.slicknav_nav a:hover {
    color: #002850 !important;
}

/* Slider metinlerinin mobilde çok büyük olup taşmaması için */
@media (max-width: 767px) {
    #hero-slider h1, 
    .slider-content h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    #hero-slider p,
    .slider-content p {
        font-size: 1rem !important;
    }
}
