/* ==========================================================================
   0. Temel Ayarlar
   ========================================================================== */
* {
    box-sizing: border-box;
}

/* ==========================================================================
   1. Genel Stiller (General Styles)
   ========================================================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 40px 0;
    background-color: #12181b;
    color: #cdd5e0;
}

.container {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
    padding: 50px 55px;
    background-color: #1a2228;
    border: 1px solid #333c44;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30);
}

hr {
    border: 0;
    height: 1px;
    background-color: #333c44;
    margin: 60px 0;
}

/* ==========================================================================
   2. Tipografi (Typography)
   ========================================================================== */
h1, h2, h3, h4 {
    color: #ffffff;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    border-bottom: none;
    margin-top: 0;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
    border-bottom: 2px solid #00aaff;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.6em;
    border-bottom: 1px solid #44525f;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 25px;
}

h4 {
    font-size: 1.3em;
    border-bottom: 1px solid #44525f;
    padding-bottom: 8px;
    margin-top: 35px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 1.2em;
    font-size: 1.05em;
    text-align: justify;
    text-justify: inter-word;
}

a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4dc3ff;
    text-decoration: underline;
}

ul {
    padding-left: 20px;
}

/* ==========================================================================
   3. Bölüm ve Proje Yapıları (Layout & Project Structure)
   ========================================================================== */
.project {
    margin-bottom: 50px;
}

.project > h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 8px;
    background-color: #00aaff;
    border-radius: 4px;
}

.media-block {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-top: 45px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.media-text {
    flex: 3;
}

/* ==========================================================================
   4. Görsel Stilleri (Image & Gallery Styles)
   ========================================================================== */
.media-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-image img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #333c44;
    transition: transform 0.3s ease;
}

.media-image:hover img {
    transform: scale(1.05);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.project-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #333c44;
    transition: transform 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.03);
}

/* Genel showcase görseli */
.showcase-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.showcase-image:hover {
    transform: scale(1.03);
}

/* ==========================================================================
   5. Flight Test Bölümü - Solda Resim / Sağda Yazı
   ========================================================================== */
.field-test-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: center;
    margin: 35px 0;
}

.field-test-item .showcase-image,
.field-test-item img {
    width: 240px;
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 8px;
}

.field-test-item p {
    margin: 0;
    max-width: none;
    color: #aeb9c5;
    font-size: 1em;
    line-height: 1.7;
    text-align: left;
}

/* ==========================================================================
   6. Özel Sınıflar (Utility Classes)
   ========================================================================== */
.media-block-wide-image .media-text {
    flex: 2;
}

.media-block-wider-text .media-text {
    flex: 4;
}

.media-block-narrower-text .media-text {
    flex: 1.5;
}

.space-above-lg {
    margin-top: 100px !important;
}

.contact-list {
    list-style-type: none;
    padding: 0;
    font-size: 1.1em;
}

.contact-list li {
    margin-bottom: 10px;
}

hr.subsection-divider {
    margin: 50px auto;
    width: 60%;
    background-color: #44525f;
}

/* ==========================================================================
   7. Küçük Ekranlar
   ========================================================================== */
@media (max-width: 900px) {
    .container {
        width: min(100%, calc(100% - 40px));
        padding: 35px 25px;
    }

    .field-test-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .field-test-item .showcase-image,
    .field-test-item img {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .field-test-item p {
        text-align: center;
    }

    .media-block {
        flex-direction: column;
        align-items: stretch;
    }
}
.blue-underline {
    border-bottom: 1px solid #00aaff !important;
}

.accent-title {
    position: relative;
    padding-left: 25px;
}

.accent-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 8px;
    background-color: #00aaff;
    border-radius: 4px;
}
