﻿/* =========================================================
   MAYS İÇERİK SAYFASI
   Görsel, video ve Apostil bölümü mobil düzeltmeleri
   ========================================================= */

/* =========================================================
   GENEL
   ========================================================= */

.content-page {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #f4f6f8;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.75;
    overflow-x: hidden;
}

    .content-page *,
    .content-page *::before,
    .content-page *::after {
        box-sizing: border-box;
    }

    .content-page img,
    .content-page video,
    .content-page iframe,
    .content-page svg {
        max-width: 100%;
    }

.content-container {
    width: 92%;
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   ÜST BAŞLIK ALANI
   ========================================================= */

.content-hero {
    width: 100%;
    padding: 52px 0 42px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.content-breadcrumb {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 6px;
    background: #eef3f8;
    color: #315579;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

    .content-breadcrumb a {
        color: #315579;
        font-weight: 700;
        text-decoration: none;
    }

        .content-breadcrumb a:hover {
            text-decoration: underline;
        }

.content-hero h1 {
    max-width: 880px;
    margin: 0;
    color: #102a43;
    font-size: 38px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.4px;
    overflow-wrap: break-word;
}

.content-hero-text {
    max-width: 820px;
    margin: 18px 0 0;
    color: #52616f;
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   ANA İÇERİK
   ========================================================= */

.content-wrapper {
    width: 100%;
    padding: 42px 0 58px;
}

.blog-card {
    width: 100%;
    min-width: 0;
    padding: 44px 50px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 47, 87, 0.06);
    overflow: hidden;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

    .blog-meta span {
        display: inline-block;
        max-width: 100%;
        padding: 6px 12px;
        border-radius: 5px;
        background: #f0f5fa;
        color: #174a86;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

.blog-card p {
    margin: 0 0 22px;
    color: #333f4c;
    font-size: 17px;
    line-height: 1.85;
    text-align: justify;
    text-align-last: left;
    overflow-wrap: break-word;
}

.blog-card a {
    color: #0b5cab;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

    .blog-card a:hover {
        text-decoration: underline;
    }

.blog-card strong {
    color: #0b365f;
    font-weight: 700;
}

.blog-card h2 {
    margin: 40px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e4edf7;
    color: #102a43;
    font-size: 27px;
    line-height: 1.32;
    font-weight: 700;
    overflow-wrap: break-word;
}

.blog-card h3 {
    margin: 30px 0 14px;
    color: #102a43;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: break-word;
}

.blog-card ul,
.blog-card ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.blog-card li {
    margin-bottom: 10px;
    color: #333f4c;
    font-size: 16.5px;
    line-height: 1.75;
}


/* =========================================================
   TÜM İÇERİK GÖRSELLERİ
   KIRPILMA, KAYMA VE YAMULMA YOK
   ========================================================= */

.content-image,
.content-media,
.blog-image,
.content-figure,
.blog-card figure,
.blog-card .image-wrapper,
.blog-card .photo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 30px auto;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    text-align: center;
    background: transparent;
    border-radius: 12px;
}

.content-page .content-image img,
.content-page .content-media img,
.content-page .blog-image img,
.content-page .content-figure img,
.content-page .blog-card figure img,
.content-page .blog-card .image-wrapper img,
.content-page .blog-card .photo-wrapper img,
.content-page .blog-card > img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-height: none;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    object-fit: contain;
    object-position: center center;
    aspect-ratio: auto;
    vertical-align: middle;
    transform: none;
    translate: none;
    scale: none;
    clip: auto;
    clip-path: none;
}

.content-page .blog-card > img {
    margin-top: 28px;
    margin-bottom: 28px;
    box-shadow: 0 10px 28px rgba(15, 47, 87, 0.10);
}

/* HTML içinde width ve height yazılsa bile görüntü oranı korunur */
.content-page img[width],
.content-page img[height] {
    max-width: 100%;
    height: auto;
}

/* Dikey veya küçük görsel gereksiz yere büyütülmez */
.content-page .image-natural img,
.content-page img.image-natural {
    width: auto;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   RESPONSIVE VİDEO
   ========================================================= */

.content-video,
.video-wrapper,
.responsive-video,
.blog-video,
.blog-card .video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    padding: 0;
    overflow: hidden;
    background: #000000;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 47, 87, 0.12);
    aspect-ratio: 16 / 9;
}

    .content-video video,
    .video-wrapper video,
    .responsive-video video,
    .blog-video video,
    .blog-card .video-container video,
    .content-video iframe,
    .video-wrapper iframe,
    .responsive-video iframe,
    .blog-video iframe,
    .blog-card .video-container iframe {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        background: #000000;
        object-fit: contain;
        object-position: center center;
        transform: none;
    }

/* Wrapper olmadan doğrudan blog-card içine eklenen video */
.content-page .blog-card > video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    background: #000000;
    border-radius: 12px;
    object-fit: contain;
    object-position: center;
}

/* Mobil Safari için videonun katmanını düzgün oluşturur */
.content-page video {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}


/* =========================================================
   BEYLİKDÜZÜ APOSTİL ONAYI BÖLÜMÜ
   EŞİT KOLON, EŞİT KART VE ORTALI GÖRSEL
   Dış bölüme class="apostil-section" eklenebilir.
   ========================================================= */

.apostil-section {
    width: 100%;
    margin: 40px auto;
    padding: 32px;
    background: #f7fafd;
    border: 1px solid #dfe8f1;
    border-radius: 12px;
    overflow: hidden;
}

    .apostil-section h2,
    .apostil-section h3 {
        width: 100%;
        margin-top: 0;
        text-align: left;
    }

.apostil-grid,
.apostil-row,
.apostil-content,
.apostil-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 26px;
    width: 100%;
}

    .apostil-grid > *,
    .apostil-row > *,
    .apostil-content > *,
    .apostil-cards > * {
        min-width: 0;
        height: 100%;
    }

.apostil-card,
.apostil-box,
.apostil-text,
.apostil-media {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e3eaf1;
    border-radius: 10px;
}

.apostil-text {
    justify-content: center;
}

.apostil-media {
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

    .apostil-media img,
    .apostil-card img,
    .apostil-box img,
    .apostil-section > img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        margin: auto;
        border-radius: 10px;
        object-fit: contain;
        object-position: center;
        aspect-ratio: auto;
        transform: none;
    }

.apostil-card p:last-child,
.apostil-box p:last-child,
.apostil-text p:last-child {
    margin-bottom: 0;
}

/* Apostil bölümünde iki kartın iç yüksekliği eşit kalır */
.apostil-card .content-cta,
.apostil-box .content-cta {
    margin-top: auto;
}


/* =========================================================
   AÇIK URL KUTULARI
   ========================================================= */

.url-box {
    width: 100%;
    margin: 32px 0;
    padding: 18px 20px;
    border-left: 4px solid #174a86;
    border-radius: 8px;
    background: #f7fafd;
    overflow: hidden;
}

    .url-box span {
        display: block;
        margin-bottom: 7px;
        color: #102a43;
        font-size: 14px;
        font-weight: 700;
    }

    .url-box a {
        display: inline-block;
        max-width: 100%;
        color: #0b5cab;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: anywhere;
    }


/* =========================================================
   CTA
   ========================================================= */

.content-cta {
    width: 100%;
    margin-top: 42px;
    padding: 30px;
    border-radius: 12px;
    background: #102a43;
    color: #ffffff;
    overflow: hidden;
}

    .content-cta h3 {
        margin: 0 0 12px;
        color: #ffffff;
        font-size: 24px;
        line-height: 1.3;
    }

    .content-cta p {
        margin: 0 0 22px;
        color: #e8eef5;
        text-align: left;
    }

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 6px;
    background: #ffffff;
    color: #102a43 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .cta-button:hover {
        background: #f0f4f8;
        text-decoration: none !important;
        transform: translateY(-2px);
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

    .content-container {
        max-width: 860px;
    }

    .content-hero {
        padding: 44px 0 36px;
    }

        .content-hero h1 {
            font-size: 34px;
        }

    .content-hero-text {
        font-size: 17px;
    }

    .blog-card {
        padding: 38px 34px;
    }

    .apostil-section {
        padding: 26px;
    }

    .apostil-grid,
    .apostil-row,
    .apostil-content,
    .apostil-cards {
        gap: 20px;
    }
}


/* =========================================================
   MOBİL VE KÜÇÜK TABLET
   ========================================================= */

@media (max-width: 768px) {

    /* Ana sayfa hero video mobil görünüm */
    .hero-video {
        width: 100% !important;
        max-width: 100% !important;
        height: 62svh !important;
        min-height: 380px !important;
        max-height: 620px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        overflow: hidden !important;
        background: #000000 !important;
    }

        .hero-video .video-slide,
        .hero-video .video-slide.active {
            width: 100% !important;
            height: 100% !important;
        }

            .hero-video .video-slide video {
                width: 100% !important;
                height: 100% !important;
                min-width: 0 !important;
                min-height: 0 !important;
                max-width: 100% !important;
                max-height: none !important;
                object-fit: cover !important;
                object-position: center center !important;
            }

        .hero-video .video-overlay {
            padding: 24px 18px !important;
        }

            .hero-video .video-overlay h1 {
                font-size: clamp(28px, 8vw, 36px) !important;
                line-height: 1.2 !important;
            }

            .hero-video .video-overlay h2 {
                font-size: clamp(25px, 7vw, 32px) !important;
                line-height: 1.22 !important;
            }

            .hero-video .video-overlay p {
                max-width: 94% !important;
                font-size: 15px !important;
                line-height: 1.6 !important;
            }

    /* Apostil bölümü tek kolon ve tam eşit genişlik */
    .apostil-grid,
    .apostil-row,
    .apostil-content,
    .apostil-cards {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .apostil-card,
    .apostil-box,
    .apostil-text,
    .apostil-media {
        width: 100%;
        height: auto;
    }

    .apostil-media {
        order: -1;
    }

        .apostil-media img,
        .apostil-card img,
        .apostil-box img,
        .apostil-section > img {
            width: auto;
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }
}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 576px) {

    .content-container {
        width: 91%;
        max-width: 100%;
    }

    .content-hero {
        padding: 34px 0 30px;
    }

    .content-breadcrumb {
        max-width: 100%;
        margin-bottom: 15px;
        font-size: 12px;
        line-height: 1.5;
        white-space: normal;
    }

    .content-hero h1 {
        font-size: 27px;
        line-height: 1.28;
        letter-spacing: 0;
    }

    .content-hero-text {
        font-size: 16px;
        line-height: 1.65;
    }

    .content-wrapper {
        padding: 28px 0 42px;
    }

    .blog-card {
        width: 100%;
        padding: 26px 18px;
        border-radius: 10px;
    }

    .blog-meta {
        gap: 7px;
        margin-bottom: 24px;
    }

        .blog-meta span {
            padding: 6px 10px;
            font-size: 12px;
        }

    .blog-card p {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.75;
        text-align: left;
        text-align-last: auto;
    }

    .blog-card h2 {
        margin: 34px 0 16px;
        padding-bottom: 9px;
        font-size: 22px;
        line-height: 1.35;
    }

    .blog-card h3 {
        margin: 27px 0 13px;
        font-size: 20px;
    }

    .blog-card ul,
    .blog-card ol {
        padding-left: 21px;
    }

    .blog-card li {
        font-size: 15.7px;
        line-height: 1.7;
    }

    /* Mobil görseller */
    .content-image,
    .content-media,
    .blog-image,
    .content-figure,
    .blog-card figure,
    .blog-card .image-wrapper,
    .blog-card .photo-wrapper {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 24px auto;
        border-radius: 9px;
    }

    .content-page .content-image img,
    .content-page .content-media img,
    .content-page .blog-image img,
    .content-page .content-figure img,
    .content-page .blog-card figure img,
    .content-page .blog-card .image-wrapper img,
    .content-page .blog-card .photo-wrapper img,
    .content-page .blog-card > img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        margin-right: auto;
        margin-left: auto;
        border-radius: 9px;
        object-fit: contain;
        object-position: center;
        aspect-ratio: auto;
        transform: none;
    }

    /* Mobil içerik videosu */
    .content-video,
    .video-wrapper,
    .responsive-video,
    .blog-video,
    .blog-card .video-container {
        width: 100%;
        max-width: 100%;
        margin: 24px auto;
        border-radius: 9px;
        aspect-ratio: 16 / 9;
    }

        .content-video video,
        .video-wrapper video,
        .responsive-video video,
        .blog-video video,
        .blog-card .video-container video,
        .content-video iframe,
        .video-wrapper iframe,
        .responsive-video iframe,
        .blog-video iframe,
        .blog-card .video-container iframe {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    .content-page .blog-card > video {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 24px auto;
        border-radius: 9px;
        object-fit: contain;
    }

    /* Mobil Apostil bölümü */
    .apostil-section {
        width: 100%;
        margin: 30px auto;
        padding: 20px 16px;
        border-radius: 10px;
    }

    .apostil-card,
    .apostil-box,
    .apostil-text {
        padding: 20px 16px;
        border-radius: 9px;
    }

    .apostil-media {
        padding: 0;
        border-radius: 9px;
    }

    .apostil-section h2 {
        font-size: 22px;
        line-height: 1.35;
    }

    .apostil-section h3 {
        font-size: 19px;
        line-height: 1.4;
    }

    .url-box {
        margin: 26px 0;
        padding: 16px;
        border-radius: 7px;
    }

        .url-box span {
            font-size: 13px;
        }

        .url-box a {
            font-size: 14px;
            line-height: 1.6;
        }

    .content-cta {
        margin-top: 34px;
        padding: 24px 20px;
        border-radius: 10px;
    }

        .content-cta h3 {
            font-size: 21px;
        }

        .content-cta p {
            font-size: 16px;
            line-height: 1.65;
        }

    .cta-button {
        width: 100%;
        min-height: 48px;
        padding: 13px 16px;
        text-align: center;
    }
}


/* =========================================================
   ÇOK KÜÇÜK TELEFONLAR
   ========================================================= */

@media (max-width: 380px) {

    .content-container {
        width: 90%;
    }

    .content-hero h1 {
        font-size: 24px;
    }

    .content-hero-text {
        font-size: 15.5px;
    }

    .blog-card {
        padding: 23px 15px;
    }

        .blog-card p {
            font-size: 15.5px;
        }

        .blog-card h2 {
            font-size: 21px;
        }

    .apostil-section {
        padding: 18px 13px;
    }

    .hero-video {
        min-height: 350px !important;
    }
}


/* =========================================================
   HAREKET AZALTMA TERCİHİ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .content-page *,
    .content-page *::before,
    .content-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
