/* Caria Digital — tema (main.css) üzerine küçük eklemeler. Tema dosyalarına dokunulmaz. */

/* Hero başlığı h1 olarak işaretlendiği için tarayıcı varsayılan boşluklarını sıfırla */
h1.tp-hero-title,
h1.breadcrumb__title {
    margin-top: 0;
}

/* Detay sayfası içerikleri: panelden gelen HTML için okunabilir aralıklar */
.tp-service-details-wrapper img,
.tp-about-3-wrapper img,
.tp-blog-details img {
    max-width: 100%;
    height: auto;
}

.tp-service-details-wrapper ul,
.tp-service-details-wrapper ol,
.tp-about-3-wrapper ul,
.tp-about-3-wrapper ol,
.tp-blog-details ul,
.tp-blog-details ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.tp-service-details-wrapper ul li,
.tp-about-3-wrapper ul li,
.tp-blog-details ul li {
    list-style: disc;
}

.tp-service-details-wrapper ol li,
.tp-about-3-wrapper ol li,
.tp-blog-details ol li {
    list-style: decimal;
}

.tp-service-details-wrapper h3,
.tp-service-details-wrapper h4,
.tp-blog-details h2,
.tp-blog-details h3 {
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Hizmet / yazılım listeleme sayfası kartları */
.tp-offer-wrapper .offer-summary {
    font-size: 15px;
    margin: 0 15px 15px;
}

/* Makale kartları */
.tp-blog-wrapper {
    box-shadow: 0 10px 30px rgba(2, 6, 38, .06);
    height: calc(100% - 30px);
    background: #fff;
}

.tp-blog-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.tp-blog-content p {
    margin-bottom: 15px;
}

.tp-blog-btn .read-more a i {
    margin-left: 6px;
}

.tp-blog-details-thumb img {
    width: 100%;
    margin-bottom: 30px;
}

.tp-blog-details-meta {
    margin-bottom: 20px;
    color: var(--tp-text-body);
}

.tp-blog-details-meta i {
    color: var(--tp-theme-secondary);
    margin-right: 6px;
}

/* Sayfalama */
.tp-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0;
    margin: 20px 0 0;
}

.tp-pagination ul li {
    list-style: none;
}

.tp-pagination ul li a,
.tp-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 12px;
    border: 1px solid #E8F2F9;
    color: var(--tp-theme-primary);
    font-weight: 600;
    transition: .3s;
}

.tp-pagination ul li a:hover,
.tp-pagination ul li span.current {
    background: var(--tp-theme-secondary);
    border-color: var(--tp-theme-secondary);
    color: #fff;
}

/* İletişim formu bildirimleri */
.tp-contact-alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 15px;
}

.tp-contact-alert.success {
    background: #e6fbf8;
    color: #036b60;
    border: 1px solid #05DAC3;
}

.tp-contact-alert.error {
    background: #fdecec;
    color: #8a1c1c;
    border: 1px solid #f5b5b5;
}

.tp-contact-input .field-error {
    display: block;
    color: #c0392b;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* Bot tuzağı alanı (görünmez) */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 404 sayfası */
.tp-error-area .tp-error-code {
    font-size: 120px;
    line-height: 1;
    font-weight: 800;
    color: var(--tp-theme-secondary);
    font-family: var(--tp-ff-heading);
}

/* Sağ alttaki sabit sosyal bar mobilde içeriği kapatmasın */
@media only screen and (max-width: 767px) {
    body {
        padding-bottom: 48px;
    }
}

/* =====================================================================
   GÖRSEL KIRPMA — her alan sabit orana sahip, yüklenen görsel ne boyutta
   olursa olsun alanı doldurur (object-fit: cover). Tasarım bozulmaz.
   ===================================================================== */

/* Yönetim yazılımları kaydırıcısı: 3:2, ekran görüntüleri için üstten hizalı */
.tp-feature-thumb-2 > a {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eef3f7;
}

.tp-feature-thumb-2 > a img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .6s ease;
}

.tp-feature-thumb-2:hover > a img {
    transform: scale(1.04);
}

/* Kart bilgi kutusu dar ekranlarda taşmasın */
.tp-feature-2-info {
    max-width: calc(100% - 30px);
}

/* Referanslar: kare alan, üstten kırpma (site ekran görüntüleri üstten anlamlı) */
.ref-card .tp-team-wrapper-thumb {
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(2, 6, 38, .08);
}

.ref-popup {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef3f7;
    cursor: zoom-in;
}

.ref-popup img {
    width: 100%;
    height: 100%;
    min-width: 0 !important;
    object-fit: cover;
    object-position: top center;
    transition: transform .6s ease;
}

.ref-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(2, 6, 38, .25) 0%, rgba(2, 6, 38, .82) 100%);
    color: #fff;
    opacity: 0;
    transition: opacity .35s ease;
}

.ref-zoom {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tp-theme-secondary);
    color: var(--tp-theme-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transform: scale(.7);
    transition: transform .35s ease;
}

.ref-title {
    font-family: var(--tp-ff-heading);
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    line-height: 1.3;
    transform: translateY(8px);
    transition: transform .35s ease;
}

.ref-popup:hover img,
.ref-popup:focus-visible img {
    transform: scale(1.06);
}

.ref-popup:hover .ref-overlay,
.ref-popup:focus-visible .ref-overlay {
    opacity: 1;
}

.ref-popup:hover .ref-zoom,
.ref-popup:focus-visible .ref-zoom {
    transform: scale(1);
}

.ref-popup:hover .ref-title,
.ref-popup:focus-visible .ref-title {
    transform: translateY(0);
}

/* Dokunmatik cihazlarda hover yok: büyüteç ikonunu köşede hep göster */
@media (hover: none) {
    .ref-overlay {
        opacity: 1;
        background: none;
        align-items: flex-end;
        justify-content: flex-end;
        padding: 12px;
    }

    .ref-overlay .ref-title {
        display: none;
    }

    .ref-zoom {
        width: 42px;
        height: 42px;
        font-size: 16px;
        transform: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    }
}

/* Tanıtım bölümü: daire içinde kare kırpma */
.tp-business-thumb img.img-crop-circle {
    width: 100%;
    max-width: 336px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Hizmet kartı ikonları: kırpılmaz, alana sığdırılır (büyük görsel yüklense de taşmaz) */
.tp-offer-wrapper-thumb img {
    height: 66px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* "Nasıl Çalışıyoruz" ikonları */
.tp-feature-3-content-thumb img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}

/* Makale / sayfa kapak görselleri: 16:9 */
.tp-blog-details-thumb img,
.tp-about-3-wrapper img.page-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.tp-blog-thumb {
    border-radius: 12px 12px 0 0;
}

.tp-service-details-wrapper img,
.tp-about-3-wrapper img:not(.page-cover) {
    border-radius: 10px;
}

/* Yönetim yazılımı ekran görüntüsü galerisi: 16:10, üstten kırpma */
.product-gallery-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid #E8F2F9;
}

.product-gallery-title {
    font-size: 26px;
    margin: 0;
    position: relative;
}

.product-gallery-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 60px;
    height: 3px;
    background: var(--tp-theme-secondary);
}

.product-gallery-count {
    font-size: 14px;
    color: var(--tp-text-body);
    white-space: nowrap;
}

.product-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: #eef3f7;
    box-shadow: 0 8px 22px rgba(2, 6, 38, .07);
    cursor: zoom-in;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0 !important;
    transition: transform .6s ease;
}

.product-gallery-item .ref-title {
    font-size: 15px;
}

.product-gallery-item:hover img,
.product-gallery-item:focus-visible img {
    transform: scale(1.06);
}

.product-gallery-item:hover .ref-overlay,
.product-gallery-item:focus-visible .ref-overlay {
    opacity: 1;
}

.product-gallery-item:hover .ref-zoom,
.product-gallery-item:focus-visible .ref-zoom {
    transform: scale(1);
}

.product-gallery-item:hover .ref-title,
.product-gallery-item:focus-visible .ref-title {
    transform: translateY(0);
}

@media (max-width: 575px) {
    .product-gallery-title {
        font-size: 22px;
    }

    .product-gallery-item .ref-zoom {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* =====================================================================
   POPUP (Magnific Popup) — marka renkleriyle
   ===================================================================== */
.mfp-bg {
    z-index: 10040;
}

.mfp-wrap {
    z-index: 10050;
}

.mfp-caria.mfp-bg {
    background: var(--tp-theme-primary);
    opacity: 0;
    transition: opacity .25s ease;
}

.mfp-caria.mfp-bg.mfp-ready {
    opacity: .94;
}

.mfp-caria.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-caria .mfp-content {
    opacity: 0;
    transform: scale(.96);
    transition: opacity .25s ease, transform .25s ease;
}

.mfp-caria.mfp-ready .mfp-content {
    opacity: 1;
    transform: none;
}

.mfp-caria.mfp-removing .mfp-content {
    opacity: 0;
    transform: scale(.96);
}

.mfp-caria img.mfp-img {
    padding: 50px 0 50px;
    border-radius: 10px;
}

.mfp-caria .mfp-figure::after {
    top: 50px;
    bottom: 50px;
    border-radius: 10px;
}

.mfp-caria .mfp-title {
    font-family: var(--tp-ff-heading);
    font-size: 16px;
    padding-right: 70px;
    color: #fff;
}

.mfp-caria .mfp-ref-title {
    font-weight: 700;
}

.mfp-caria .mfp-ref-link {
    margin-left: 12px;
    color: var(--tp-theme-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.mfp-caria .mfp-ref-link:hover {
    color: #fff;
}

.mfp-caria .mfp-counter {
    color: rgba(255, 255, 255, .7);
}

.mfp-caria .mfp-arrow {
    opacity: .75;
}

.mfp-caria .mfp-arrow:hover {
    opacity: 1;
}

.mfp-caria .mfp-close {
    color: #fff;
    opacity: .85;
}

/* =====================================================================
   GENEL GÖRSEL İYİLEŞTİRMELER (tema yapısı korunarak)
   ===================================================================== */

/* Menü 1200–1600px arası alt satıra kaymasın */
.tp-main-menu > nav > ul {
    white-space: nowrap;
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .tp-main-menu ul li:not(:last-of-type) {
        margin-right: 30px;
    }
}

/* Uzun alt menü başlıkları ("Güvenlik Personeli ve Proje Yönetim Sistemi") sığsın */
.tp-main-menu ul li .submenu {
    width: 290px;
    border-radius: 0 0 10px 10px;
}

.tp-main-menu ul li .submenu li a {
    white-space: normal;
    line-height: 1.45;
}

/* Hizmet kartları: eşit yükseklik, yumuşak köşeler, hover'da hafif yükselme */
.tp-offer-area .row > [class*="col-"]:has(> .tp-offer-wrapper) {
    display: flex;
}

.tp-offer-wrapper {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.tp-offer-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(2, 6, 38, .10);
}

/* Yönetim yazılımı kartı köşeleri */
.tp-feature-thumb-2 {
    border-radius: 14px;
    overflow: hidden;
}

.tp-feature-2-info {
    border-radius: 10px;
}

/* Makale kartları hover */
.tp-blog-wrapper {
    border-radius: 12px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.tp-blog-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(2, 6, 38, .10);
}

/* Detay sayfaları: okunabilirlik + masaüstünde yapışkan yan menü */
.tp-service-details-wrapper,
.tp-about-3-wrapper {
    line-height: 1.85;
}

.tp-service-details-wrapper p,
.tp-about-3-wrapper p {
    margin-bottom: 18px;
}

@media (min-width: 992px) {
    .tp-service-details-area .tp-service-widget {
        position: sticky;
        top: 120px;
    }
}

.tp-service-widget-tab ul li.active a {
    color: var(--tp-theme-secondary);
}

/* Klavye ile gezinmede görünür odak */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--tp-theme-secondary);
    outline-offset: 3px;
}

/* Hareket hassasiyeti olan kullanıcılar için animasyonları azalt */
@media (prefers-reduced-motion: reduce) {
    .ref-popup img,
    .tp-feature-thumb-2 > a img,
    .product-gallery-item img,
    .tp-offer-wrapper,
    .tp-blog-wrapper {
        transition: none !important;
        transform: none !important;
    }
}
