/*
Theme Name: Tolga Theme
Theme URI: https://example.com/
Author: Tolga
Description: Section bazli ozel WordPress temasi.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: tolga-theme
*/

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

html {
    margin-top: 0 !important;
}

body.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#page,
.site,
.site-main,
#smooth-wrapper,
#smooth-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Elementor header container gap reset */
.elementor-location-header,
.elementor-location-header .e-con,
.elementor-location-header .elementor-element,
.elementor-location-header .elementor-widget-wrap,
.elementor-location-header .elementor-widget-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.elementor-location-header .e-con {
    --margin-top: 0px !important;
    --padding-top: 0px !important;
    row-gap: 0 !important;
}

/* Reset top parent container that Elementor creates for header */
.elementor-location-header > .elementor-element.e-con,
.elementor-location-header > .elementor-element.e-con-full,
.elementor-location-header > .e-con.e-parent {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* Hero widget full-bleed reset (only when Full Width is enabled) */
.elementor-widget-akkus-hero .akkus-hero--fullwidth,
.elementor-widget-akkus-hero .akkus-hero--fullwidth > .container,
.elementor-widget-akkus-hero .akkus-hero--fullwidth > .container-fluid {
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor-widget-akkus-hero .akkus-hero--fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Force full-bleed even inside constrained Elementor containers */
.elementor-widget-akkus-hero {
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-widget-akkus-hero .akkus-hero--fullwidth {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.elementor-widget-akkus-hero .akkus-hero--fullwidth > .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
}

/* Global Elementor full-width baseline to avoid side gaps on all sections */
.elementor-editor-active .elementor-section.elementor-section-boxed > .elementor-container,
.elementor .elementor-section.elementor-section-boxed > .elementor-container,
.elementor .elementor-container,
.elementor .e-con,
.elementor .e-con.e-parent {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor .elementor-top-section,
.elementor .elementor-section,
.elementor .elementor-widget-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Keep About internal spacing, only remove section-to-section outer gap */
.elementor-widget-akkus-about {
    margin-top: 0 !important;
}

/* Specific empty container seen in inspector */
.elementor-location-header .elementor-element.elementor-element-da2a4a4 {
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Remove vertical dead space on Elementor parent containers
   that host Akkus widgets (hero/about/next sections) */
.elementor .e-con:has(.elementor-widget-akkus-hero),
.elementor .e-con:has(.elementor-widget-akkus-about),
.elementor .e-con:has([class*="elementor-widget-akkus-"]) {
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    row-gap: 0 !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
}

.elementor [class*="elementor-widget-akkus-"] {
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Team: image-gsl WebGL efekti Elementor içinde ölçü kayması yüzünden fotoğrafı böldüğü için statik thumb kullanılıyor */
.dg-team-area .dg-team-thumb--static {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 5;
}

.dg-team-area .dg-team-thumb--static img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Testimonial: Elementor full-width reset ile birlikte kayan alanin ekran disina tasmasini engelle */
.elementor-widget-akkus-testimonial .dg-testimonial-wrapper {
    overflow: hidden;
}

.elementor-widget-akkus-testimonial .dg-testimonial-active {
    margin-right: 0 !important;
}

/* Template-parts kullaniminda da ayni fix calissin */
.dg-testimonial-area .dg-testimonial-wrapper {
    overflow: hidden;
}

.dg-testimonial-area .dg-testimonial-active {
    margin-right: 0 !important;
}

/* Header style "light" secili kalsa da koyu gorunum istenen durum */
.oit-header-area.oit-header-bdr {
    background-color: #0d0d0d !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.35) !important;
}

.oit-header-area.oit-header-bdr .oit-header-menu nav > ul > li > a {
    color: #fff !important;
}

.oit-header-area.oit-header-bdr .oit-header-bar span {
    background-color: #fff !important;
}

@media (max-width: 767px) {
    .oit-header-area.oit-header-bdr {
        background-color: #ffffff !important;
        border-bottom: 1px dashed rgba(13, 13, 13, 0.25) !important;
    }

    .oit-header-area.oit-header-bdr .oit-header-menu nav > ul > li > a {
        color: #0d0d0d !important;
    }

    .oit-header-area.oit-header-bdr .oit-header-bar span {
        background-color: #0d0d0d !important;
    }
}

/* Theme Builder header/footer template'leri boxed gelirse full-width zorla */
.tolga-elementor-header-template .elementor-section.elementor-section-boxed > .elementor-container,
.tolga-elementor-footer-template .elementor-section.elementor-section-boxed > .elementor-container,
.tolga-elementor-header-template .elementor-container,
.tolga-elementor-footer-template .elementor-container,
.tolga-elementor-header-template .e-con,
.tolga-elementor-footer-template .e-con,
.tolga-elementor-header-template .e-con.e-parent,
.tolga-elementor-footer-template .e-con.e-parent {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Header logo: Elementor kontrolunden gelen desktop/mobile boyutlari */
.oit-header-logo .tolga-header-logo-img {
    width: var(--tolga-logo-w-desktop, 100px);
    height: var(--tolga-logo-h-desktop, auto);
    object-fit: contain;
}

@media (max-width: 767px) {
    .oit-header-logo .tolga-header-logo-img {
        width: var(--tolga-logo-w-mobile, 90px);
        height: var(--tolga-logo-h-mobile, auto);
    }
}

/* Mobilde header aksiyonunu (hamburger) kesin sagda tut */
@media (max-width: 1199px) {
    .oit-header-area {
        position: relative;
    }

    .oit-header-area .oit-header-logo {
        position: relative;
        z-index: 101;
    }

    .oitoffcanvas {
        padding-top: 86px !important;
    }

    .oitoffcanvas__close-btn button {
        top: 18px !important;
        right: 18px !important;
        z-index: 3;
    }

    .oitoffcanvas .oit-menu-mobile {
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 767px) {
    .elementor-widget-akkus-header,
    .elementor-widget-akkus-header > .elementor-widget-container,
    .elementor-widget-akkus-header .oit-header-area,
    .elementor-widget-akkus-header .oit-header-area > .container,
    .elementor-widget-akkus-header .oit-header-area > .container > .row.align-items-center {
        width: 100% !important;
        max-width: 100% !important;
    }

    .elementor-widget-akkus-header .oit-header-area > .container > .row.align-items-center {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .oit-header-area .col-lg-3.col-md-4.col-4,
    .oit-header-area .col-lg-9.col-md-8.col-8 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .oit-header-area .col-xl-3.col-6,
    .oit-header-area .col-xl-3.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .oit-header-area .col-lg-9.col-md-8.col-8,
    .oit-header-area .col-xl-3.col-6:last-child {
        display: flex !important;
        justify-content: flex-end !important;
    }

    .oit-header-area .col-lg-9.col-md-8.col-8 .oit-header-action {
        width: 100% !important;
        margin-left: auto !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    .oit-header-area .col-lg-9.col-md-8.col-8 .oit-menu-bar {
        position: static !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        float: none !important;
        transform: none !important;
        z-index: 102 !important;
    }

    .oit-header-area .oit-header-action {
        margin-left: auto !important;
    }

    /* Hero mobile: "Yaptıklarım" kutusu yatayda ortalansın */
    .oit-hero-5-bottom .col-md-6:first-child,
    .oit-hero-5-bottom .col-md-6:last-child {
        padding-left: 16px;
        padding-right: 16px;
    }

    .oit-hero-5-bottom .col-md-6:first-child {
        text-align: center;
    }

    .oit-hero-5-bottom .oit-hero-category-wrap {
        display: block;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .oit-hero-5-bottom .oit-hero-category {
        min-width: 0;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .oit-hero-5-bottom .oit-hero-5-more-content {
        justify-content: center !important;
    }

    .oit-hero-5-bottom .oit-hero-content {
        width: 100%;
        text-align: center;
    }
}

/* Hakkımızda: image-gsl efektini kapat (refresh'te oto-zoom olmasin) */
.ba-about-area .oit-about-thumb.image-gsl .image-gsl-canvas {
    display: none !important;
}

.ba-about-area .oit-about-thumb.image-gsl img {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

/* Footer sosyal ikonlari: Elementor icon seciminde mevcut dairesel stil bozulmasin */
.oit-footer-2-widget-social a i,
.oit-footer-2-widget-social a svg {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Footer: mobilde dekoratif shape tasma yapmasin */
@media (max-width: 767px) {
    .oit-footer-2-area {
        overflow: hidden;
    }

    .oit-footer-2-shape {
        display: none;
    }

    html,
    body,
    #smooth-wrapper,
    #smooth-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

