/* ==========================================================================
   MASTER STYLE.CSS - FINAL SEO & LAYOUT EDITION
   Content: Grid System + CLS Fixes + Mobile Optimization
   Date: 2024 - Full Package
   ========================================================================== */

/* 1. FONTLAR VE GENEL AYARLAR */
@import url("https://fonts.googleapis.com/css?family=Anton&display=swap");
@import url("https://fonts.googleapis.com/css?family=Muli:200,300,400,600,700,800,900&display=swap");

* {
    box-sizing: border-box; /* Kutuların taşmasını engeller */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #130947;
    font-size: 16px;
    font-family: 'Titillium Web', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

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

a {
    transition: 0.5s;
    text-decoration: none !important;
    color: #130947;
}

a:hover { color: #fe235b; }

/* =================================================
   2. GRID SİSTEMİ (SÜTUNLARI GERİ GETİREN KOD)
   Bootstrap benzeri yapı - Sütunların yan yana gelmesini sağlar
   ================================================= */

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Container Genişlikleri */
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* Sütun Temelleri */
[class^="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Masaüstü (Desktop) Sütun Yapısı */
@media (min-width: 992px) {
    .col-lg-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { -ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; }
}

/* Tablet Sütun Yapısı */
@media (min-width: 768px) and (max-width: 991px) {
    .col-md-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; }
    .col-md-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; }
}

/* Mobil Sütun Yapısı (Alt alta dizers) */
@media (max-width: 767px) {
    .col-lg-6, .col-lg-4, .col-lg-3, .col-md-6 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =================================================
   3. FORM & INPUT AYARLARI (CLS FIX)
   Formun zıplamasını engeller
   ================================================= */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    height: 50px; /* Yükseklik sabitleme */
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.5;
    background-color: #f4f4f4 !important;
    border: none;
    border-radius: 5px;
    width: 100%;
    color: #130947;
}

/* İkonların yerini rezerve et */
.form-group label i {
    display: inline-block;
    min-width: 20px;
    min-height: 20px;
}

/* =================================================
   4. BUTONLAR
   ================================================= */
.btn {
    display: inline-block;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 15px 30px;
    font-size: 14px;
    border-radius: 30px;
    transition: all 0.5s;
    text-transform: uppercase;
    position: relative;
}

.btn-primary {
    color: #fff;
    background-color: #fe235b;
    border-color: #fe235b;
    box-shadow: 0px 5px 20px rgba(254, 35, 91, 0.3);
}

.btn-primary:hover {
    background-color: #130947;
    border-color: #130947;
}

/* =================================================
   5. HİZMETLER KUTUSU (HAYALET DİV ÇÖZÜMÜ)
   Services / Research Box Fix
   ================================================= */
.single-research-box {
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: .3s;
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

/* Boş div'i gizle */
.single-research-box .research-image { display: none !important; }

/* Görsel alanı */
.single-research-box .research-link {
    display: block;
    width: 100%;
    aspect-ratio: 3/2; /* Görsel oranını koru */
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

.single-research-box .research-img-hover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.single-research-box:hover .research-img-hover {
    transform: scale(1.1);
}

.single-research-box .research-info {
    padding: 25px;
    min-height: 120px; /* İçerik zıplamasını önler */
}

.single-research-box .research-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* =================================================
   6. YARDIMCI SINIFLAR & BANNER
   ================================================= */
.ptb-100 { padding-top: 100px; padding-bottom: 100px; }
.pt-100 { padding-top: 100px; }
.pb-100 { padding-bottom: 100px; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 { font-size: 40px; margin-bottom: 15px; }
.section-title .sub-title { color: #fe235b; font-weight: 700; text-transform: uppercase; }

/* Banner Ayarları */
.main-banner {
    position: relative;
    height: 800px; /* Masaüstü yükseklik */
    background-size: cover;
    background-position: center;
}
.main-banner-content {
    padding-top: 200px;
    max-width: 650px;
}
.main-banner-content h1 {
    font-size: 60px;
    color: #fff;
    line-height: 1.2;
}

/* =================================================
   7. MOBİL UYUMLULUK (RESPONSIVE)
   Mobil hız ve görünüm düzeltmeleri
   ================================================= */
@media only screen and (max-width: 768px) {
    /* Paddingleri düşür */
    .ptb-100 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    /* Fontları küçült */
    .section-title h2 { font-size: 28px !important; }
    .main-banner-content h1 { font-size: 36px !important; }
    
    /* Banner yüksekliği */
    .main-banner { height: auto !important; min-height: 500px; }
    .main-banner-content { padding-top: 100px; }

    /* Form mobilde sıkışmasın */
    .free-consultation-content {
        padding: 20px !important;
    }

    /* Hizmet kutuları mobilde oran korusun */
    .single-research-box .research-link {
        aspect-ratio: 3/2;
    }
}