/* === RENK PALETİ - CSS DEĞİŞKENLERİ === */

:root {
    --primary-color: #0056b3;
    /* Ana Mavi */
    --dark-text: #343a40;
    /* Koyu Metin/Başlık */
    --light-text: #f8f9fa;
    /* Açık Renk Metin (Koyu arka planlar için) */
    --footer-bg: #343a40;
    /* Footer Arka Plan */
    --light-gray-bg: #f8f9fa;
    /* Açık Gri Arka Plan */
    --border-color: #dee2e6;
    /* Kenarlık Rengi */
    --white: #ffffff;
    /* Beyaz */
    --secondary-button-bg: #6c757d;
    /* Gri Buton */
    --secondary-button-hover: #5a6268;
    /* Gri Buton Hover */
    --primary-button-hover: #00418a;
    /* Ana Mavi Buton Hover (Biraz koyusu) */
    --success-bg: #d4edda;
    /* Başarı Mesajı Arka Plan */
    --success-border: #c3e6cb;
    /* Başarı Mesajı Kenarlık */
    --success-text: #155724;
    /* Başarı Mesajı Metin */
    --error-bg: #f8d7da;
    /* Hata Mesajı Arka Plan */
    --error-border: #f5c6cb;
    /* Hata Mesajı Kenarlık */
    --error-text: #721c24;
    /* Hata Mesajı Metin */
    --info-bg: #d1ecf1;
    /* Bilgi Mesajı Arka Plan */
    --info-border: #bee5eb;
    /* Bilgi Mesajı Kenarlık */
    --info-text: #0c5460;
    /* Bilgi Mesajı Metin */
    --warning-bg: #fff3cd;
    /* Uyarı Mesajı Arka Plan */
    --warning-border: #ffeeba;
    /* Uyarı Mesajı Kenarlık */
    --warning-text: #856404;
    /* Uyarı Mesajı Metin */
    --code-bg: #f5f5f5;
    /* Kod bloğu arka planı */
    --nav-link-hover-color: #003d80; /* Navigasyon link hover rengi, primary-button-hover'dan biraz daha farklı olabilir */
    --nav-link-line-color: var(--primary-color); /* Navigasyon alt çizgi rengi */
}


/* === TEMEL SAYFA VE FONT AYARLARI === */

body {
    font-family: 'Open Sans', sans-serif;
    /* Google Font + Fallback */
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    margin: 0;
    padding: 0;
    background-color: var(--white);
    /* Sayfa arka planı */
}


/* === İÇERİK ALANINI SINIRLANDIRAN VE ORTALAYAN KONTEYNER === */

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


/* === HEADER (ÜST BİLGİ) ALANI === */

header {
    background-color: var(--light-gray-bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* === LOGO === */

header .logo a {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    font-size: 1.2em;
    font-weight: 700;
    /* Montserrat Kalın (Bold) */
    text-decoration: none;
}

header .logo img {
    max-height: 50px;
    /* Logo yüksekliği (gerekirse ayarlayın) */
    width: auto;
    vertical-align: middle;
}


/* === NAV (MENÜ) ALANI === */

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    font-family: 'Montserrat', sans-serif;
    /* Menü fontu */
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    /* Menüyü biraz kalın yapalım */
    font-size: 0.95em;
    padding: 8px 0; /* Dikey padding biraz artırıldı */
    position: relative; /* Alt çizgi için */
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--nav-link-hover-color); 
    text-decoration: none;
}

/* Navigasyon linkleri için alt çizgi efekti */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px; /* Çizgi kalınlığı */
    display: block;
    margin-top: 2px; /* Yazı ile çizgi arası boşluk */
    right: 0; /* Animasyonun sağdan başlaması için (isteğe bağlı, soldan için left:0) */
    background: var(--nav-link-line-color);
    transition: width 0.3s ease; /* Genişlik animasyonu */
    -webkit-transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0; /* Hover olduğunda soldan sağa dolması için */
    right: auto;
}

/* Aktif sayfa linki için kalıcı alt çizgi */
nav ul li a.active {
    color: var(--nav-link-hover-color); /* Aktif link rengi hover ile aynı olabilir */
    font-weight: 700; /* Aktif linki biraz daha kalın yapabiliriz */
}

nav ul li a.active::after {
    width: 100%;
    left: 0;
    right: auto;
    background: var(--nav-link-line-color); /* Aktif çizgi rengi */
}


/* Sosyal medya bağlantısı için stil */

nav ul li.social-link {
    margin-left: 30px;
    /* Menüden biraz daha ayrık durması için */
}

nav ul li.social-link a {
    font-size: 1.2em;
    /* İkon boyutu */
    color: var(--primary-color);
    padding: 5px;
}

nav ul li.social-link a::after { /* Sosyal medya linklerinde alt çizgi olmasın */
    display: none;
}

nav ul li.social-link a:hover {
    color: var(--primary-button-hover);
    text-decoration: none;
}


/* === MAIN (ANA İÇERİK) VE SECTION (BÖLÜM) AYARLARI === */

main {
    /* Ana içerik alanı için özel bir stil yok */
}

.content-section {
    padding: 60px 0;
    /* ZDK isteğiyle Düzenlendi */
    /* Bölümlerin üstüne ve altına boşluk artırıldı */
}

.hero-section {
    padding: 60px 0;
    background-image: url('../images/image.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */
    /* İsteğe bağlı */
    background-color: #0a192f;
    /* Fallback rengi */
    color: #ffffff;
    /* var(--light-text); <<< YENİ EKLENEN SATIR (varsayılan metin rengi beyaz) */
    text-align: center;
}


/* Hero bölümündeki başlıkların rengini açık yap */

.hero-section h1,
.hero-section h2 {
    color: #FFFFFF;
    /* veya var(--light-text) */
}

.hero-section p {
    color: #f0f0f0;
    /* Biraz daha kırık beyaz gibi */
}

.gray-background {
    background-color: var(--light-gray-bg);
}


/* === BAŞLIKLAR (H1, H2, H3) === */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    margin-top: 0;
    margin-bottom: 20px;
    /* Genel alt boşluk (h2, h3 için aşağıda ezilecek) */
    line-height: 1.3;
    font-weight: 700;
    /* Başlıklar kalın olsun */
}

h1 {
    font-size: 2.8em;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 35px;
    /* ZDK isteğiyle Düzenlendi */
    /* h2 alt boşluğu artırıldı */
}

h3 {
    font-size: 1.6em;
    margin-bottom: 25px;
    /* ZDK isteğiyle Düzenlendi */
    /* h3 alt boşluğu artırıldı */
}

h4 {
    font-size: 1.3em;
}

h5 {
    font-size: 1.1em;
}

h6 {
    font-size: 1em;
}


/* === PARAGRAFLAR (P) === */

p {
    margin-top: 0;
    margin-bottom: 15px;
}


/* === LİNKLER (A) === */

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    /* Renk geçişi için */
}

a:hover {
    color: var(--primary-button-hover);
    text-decoration: underline; /* Genel linkler için alt çizgi kalsın, navigasyon için yukarıda ezildi */
}


/* === BUTONLAR === */

.button {
    font-family: 'Open Sans', sans-serif;
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: 600;
    /* Buton yazıları biraz kalın */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    /* Geçiş efekti */
}

.button.primary-button {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.button.primary-button:hover {
    background-color: var(--primary-button-hover);
    border-color: var(--primary-button-hover);
    color: var(--white);
    text-decoration: none;
}

.button.secondary-button {
    background-color: var(--secondary-button-bg);
    color: var(--white);
    border-color: var(--secondary-button-bg);
}

.button.secondary-button:hover {
    background-color: var(--secondary-button-hover);
    border-color: var(--secondary-button-hover);
    color: var(--white);
    text-decoration: none;
}


/* KÜÇÜK BUTON */

.button.btn-sm {
    padding: 5px 10px;
    font-size: 0.85em;
}


/* === TEHLİKE / SİLME BUTONU === */

.button.btn-danger {
    background-color: #dc3545;
    /* Kırmızı */
    border-color: #dc3545;
    color: var(--white) !important;
    /* Yazı rengi beyaz olsun */
}

.button.btn-danger:hover {
    background-color: #c82333;
    /* Koyu Kırmızı */
    border-color: #bd2130;
    color: var(--white) !important;
    text-decoration: none;
}


/* İkon rengini de ayarlayalım */

.button.btn-danger i {
    color: var(--white);
}


/* === HİZMETLER SAYFASI ve ANA SAYFA HİZMETLER BÖLÜMÜ (`index.html`, `hizmetler.html`) === */

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-item {
    flex-basis: calc(33.33% - 20px);
    min-width: 280px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.service-item p {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.service-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.service-item ul li {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-item ul li:before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.service-item .button {
    margin-top: auto;
}


/* === MODAL STİLLERİ (hizmetler.html için) === */

.modal {
    display: none;
    /* Başlangıçta gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    /* Diğer her şeyin üzerinde */
    overflow: auto;
    /* İçerik taşarsa kaydır */
    align-items: center;
    justify-content: center;
}


/* Modal açıldığında JavaScript ile bu sınıf eklenebilir */

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    /* Kapatma butonu için */
    z-index: 1001;
    /* Modal arka planından da yüksek */
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8em;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-content h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-content p {
    color: #555;
    font-size: 1em;
    margin-bottom: 15px;
    line-height: 1.7;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.modal-content ul li {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.modal-content ul li:before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-weight: bold;
}


/* === FLASH MESAJ STİLLERİ === */

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    font-size: 0.95em;
}

.alert-success {
    color: var(--success-text);
    background-color: var(--success-bg);
    border-color: var(--success-border);
}

.alert-error {
    color: var(--error-text);
    background-color: var(--error-bg);
    border-color: var(--error-border);
}

.alert-info {
    color: var(--info-text);
    background-color: var(--info-bg);
    border-color: var(--info-border);
}

.alert-warning {
    color: var(--warning-text);
    background-color: var(--warning-bg);
    border-color: var(--warning-border);
}


/* === İLETİŞİM FORMU STİLLERİ (`iletisim.html`) === */

.contact-form {
    margin-top: 30px;
}

.contact-details h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 0.9em;
    color: var(--dark-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-control {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: var(--dark-text);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    box-sizing: border-box;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 86, 179, 0.25);
}

.form-group textarea,
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-group button[type="submit"] {
    margin-top: 10px;
    cursor: pointer;
}


/* === BLOG LİSTESİ STİLLERİ (`blog.html`) === */

.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.blog-post-summary {
    flex: 1 1 calc(50% - 15px);
    min-width: 300px;
    box-sizing: border-box;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
    justify-content: space-between;
}

.blog-post-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #bbb;
}

.blog-post-summary h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.3em;
}

.blog-post-summary .post-meta {
    margin-bottom: 10px;
    padding-top: 10px;
    margin-top: 15px;
}

.blog-post-summary h3 a {
    text-decoration: none;
}

.blog-post-summary h3 a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 15px;
}


/* === BLOG KARTI - ÖZET METİN VE DEVAMINI OKU LİNKİ === */

.blog-post-summary p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-post-summary .read-more-link {
    display: inline-block;
    font-weight: bold;
    font-size: 0.9em;
    text-decoration: none;
    color: var(--primary-color);
    margin-top: auto;
}

.blog-post-summary .read-more-link:hover {
    color: var(--primary-button-hover);
    text-decoration: underline;
}


/* === TEKİL BLOG GÖNDERİSİ STİLLERİ (`post_detail.html`) === */

.full-blog-post h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
}

.post-body {
    margin-top: 30px;
    line-height: 1.7;
    font-size: 1.05em;
}

.post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Markdown tarafından oluşturulan etiketler için temel stiller */

.post-body p {
    margin-bottom: 1.2em;
}

.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    line-height: 1.3;
    color: var(--dark-text);
    font-weight: 600;
}

.post-body h2 {
    font-size: 1.6em;
}

.post-body h3 {
    font-size: 1.4em;
}

.post-body h4 {
    font-size: 1.2em;
}

.post-body ul,
.post-body ol {
    margin-left: 30px;
    margin-bottom: 1.2em;
    padding-left: 20px;
}

.post-body ul li,
.post-body ol li {
    margin-bottom: 0.5em;
    padding-left: 0;
}

.post-body ul li::before,
.post-body ol li::before {
    content: "";
}

.post-body strong {
    font-weight: bold;
}

.post-body em {
    font-style: italic;
}

.post-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--primary-button-hover);
    text-decoration: none;
}

.post-body pre {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 1.2em;
}

.post-body code {
    background-color: var(--code-bg);
    padding: 0.2em 0.5em;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #333;
}

.post-body table {
    width: auto;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    border: 1px solid var(--border-color);
}

.post-body th,
.post-body td {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    text-align: left;
}

.post-body th {
    background-color: var(--light-gray-bg);
    font-weight: bold;
}


/* === FOOTER (ALT BİLGİ) ALANI === */

footer {
    background-color: var(--footer-bg);
    color: var(--light-text);
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 5px;
}

footer a {
    color: #adb5bd;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}


/* === ANA SAYFA - YENİ BÖLÜMLER === */


/* Uzmanlık Alanları */

.expertise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.expertise-item {
    flex: 1 1 calc(25% - 23px);
    min-width: 260px;
    text-align: center;
    padding: 35px 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.expertise-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.expertise-item i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.expertise-item h4 {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 1.25em;
}

.expertise-item p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0;
}


/* Neden Beni Tercih Etmelisiniz? */

.reasons-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
}

.reason-item i {
    color: var(--primary-color);
    margin-right: 18px;
    margin-top: 3px;
    font-size: 1.4em;
    min-width: 1.4em;
}

.reason-item div {
    font-size: 1em;
    line-height: 1.6;
}

.reason-item strong {
    font-weight: 600;
    color: var(--dark-text);
    display: block;
    margin-bottom: 5px;
}


/* Çalışma Süreci */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    text-align: center;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.step {
    padding: 25px 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease-in-out;
}

.step:hover {
    transform: translateY(-5px);
}

.step i {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 2.2em;
}

.step h4 {
    margin-bottom: 12px;
    font-size: 1.25em;
    color: var(--dark-text);
}

.step p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}


/* === YÖNETİM PANELİ TABLO STİLLERİ (`admin.html`) === */

.admin-post-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.admin-post-table thead tr {
    background-color: var(--light-gray-bg);
    color: var(--dark-text);
}

.admin-post-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.admin-post-table tbody tr {
    border-bottom: 1px solid #eee;
}

.admin-post-table tbody tr:hover {
    background-color: #f9f9f9;
}

.admin-post-table tbody tr:last-child {
    border-bottom: none;
}

.admin-post-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.admin-post-table td:nth-child(2) {
    font-size: 0.9em;
    color: #555;
}

.admin-post-table td:nth-child(3) {
    text-align: center;
    white-space: nowrap;
}

.admin-post-table td form {
    margin-bottom: 0;
}


/* === BLOG SAYFALANDIRMA STİLLERİ === */

.blog-pagination {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
    clear: both;
}

.blog-pagination ul {
    display: inline-block;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.blog-pagination li {
    display: inline;
    margin: 0 3px;
}

.blog-pagination span.disabled {
    opacity: 0.6;
    cursor: default;
}

.blog-pagination span.primary-button {
    cursor: default;
    background-color: var(--primary-button-hover);
    border-color: var(--primary-button-hover);
}

.blog-pagination li span {
    /* Özel bir stile gerek yok şimdilik */
}


/* === HAKKIMDA SAYFASI ÖZEL STİLLERİ (hakkimda.css'den taşındı) === */

.hakkimda-content {
    overflow: auto;
    /* Float sonrası taşmaları temizler */
}

.hakkimda-image {
    float: right;
    max-width: 350px;
    /* Biraz küçültüldü */
    margin-left: 30px;
    /* Boşluk artırıldı */
    margin-bottom: 25px;
    /* Boşluk artırıldı */
}

.profil-resmi {
    width: 100%;
    height: auto;
    max-height: 450px;
    /* Yükseklik biraz artırıldı */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    /* Gölge belirginleştirildi */
    border: 3px solid var(--white);
    /* Beyaz çerçeve eklendi */
}

.hakkimda-text {
    overflow: hidden;
    /* Float ile metnin düzgün akmasını sağlar (auto yerine hidden) */
}

.hakkimda-text p {
    color: #444;
    /* Metin rengi biraz koyulaştırıldı */
    font-size: 1.05em;
    /* Metin boyutu biraz büyütüldü */
    margin-bottom: 18px;
    /* Paragraf alt boşluğu artırıldı */
    line-height: 1.7;
    /* Satır aralığı artırıldı */
}

.yetkinlik-listesi {
    display: grid;
    /* Flex yerine grid kullanıldı */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Responsive sütunlar */
    gap: 30px;
    /* flex-wrap: wrap; (grid ile gereksiz) */
}

.yetkinlik-ogesi {
    /* flex: 1; (grid ile gereksiz) */
    /* min-width: 280px; (grid minmax ile hallediyor) */
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    /* İç boşluk artırıldı */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.yetkinlik-ogesi:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    /* Hover gölgesi */
}

.yetkinlik-ogesi h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    /* Alt boşluk artırıldı */
    border-bottom: 1px solid var(--border-color);
    /* Başlık altına çizgi */
    padding-bottom: 10px;
    /* Çizgi ile metin arasına boşluk */
}

.yetkinlik-ogesi ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Üst ve alt boşluk kaldırıldı, li'ler yönetecek */
}

.yetkinlik-ogesi ul li {
    font-size: 0.95em;
    /* Biraz büyütüldü */
    color: #555;
    margin-bottom: 10px;
    /* Boşluk artırıldı */
    position: relative;
    padding-left: 25px;
    /* İkon için yer artırıldı */
}

.yetkinlik-ogesi ul li:before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 1px;
    /* Dikey hizalama */
    color: var(--primary-color);
    font-weight: bold;
    /* İkon belirginleştirildi */
}

/* === ARAÇLAR SAYFASI STİLLERİ (araclar.html'den taşındı) === */
.tool-category h3 {
    font-size: 1.8em; /* Kategori başlıkları biraz daha büyük */
    color: var(--primary-color);
    margin-bottom: 25px; /* Başlık altı boşluk */
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive kart düzeni */
    gap: 25px; /* Kartlar arası boşluk */
    margin-bottom: 40px; /* Kategori altı boşluk */
}

.tool-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column; /* İçeriği dikeyde hizala */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tool-card h4 {
    font-size: 1.3em;
    color: var(--dark-text);
    margin-top: 0;
    margin-bottom: 10px;
}

.tool-card-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1; /* Açıklama alanının büyümesini sağla, butonlar altta kalsın */
}

.tool-card-form .form-group {
    margin-bottom: 15px;
}

.tool-form-label {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 5px;
    display: block;
}

.tool-form-input { /* form-control sınıfı zaten genel stillerde var, bu daha spesifik olabilir */
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95em;
    box-sizing: border-box; /* Padding ve border'ın genişliği etkilememesi için */
}
.tool-form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
    outline: none;
}

.tool-input-description {
    font-size: 0.8em;
    color: #777;
    display: block;
    margin-top: 5px;
}

.tool-submit-button {
    width: 100%; /* Buton tam genişlik */
    padding: 10px 15px;
    font-size: 1em;
    margin-top: 10px; /* Form elemanları ile buton arası boşluk */
}

.icon-mr-8 { margin-right: 8px; }
.icon-mr-10 { margin-right: 10px; }
.icon-color-pdf { color: #e43e3e; } /* PDF ikonu için kırmızımsı bir renk */
.icon-color-image { color: #3c8dbc; } /* Resim ikonu için mavi */
.icon-color-engineering { color: #f39c12; } /* Mühendislik için turuncu */
.icon-color-calculator { color: #00a65a; } /* Hesap makinesi için yeşil */

.hr-mb-30 {
    margin-top: 30px;
    margin-bottom: 40px; /* Yatay çizgilerin alt boşluğu artırıldı */
    border: 0;
    border-top: 1px solid var(--border-color);
}

/* Placeholder kart stilleri */
.tool-card-placeholder {
    text-align: center;
    background-color: var(--light-gray-bg); /* Biraz farklı arka plan */
    justify-content: center; /* İçeriği dikeyde ortala */
    align-items: center; /* İçeriği yatayda ortala */
    padding: 40px 25px;
}
.placeholder-icon-style {
    font-size: 2.5em; /* İkon boyutu */
    color: var(--secondary-button-bg); /* İkon rengi */
    margin-bottom: 20px;
}
.placeholder-text-style {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}
.placeholder-button-style {
    cursor: not-allowed;
    opacity: 0.7;
}
.form-group-mt-10 {
    margin-top: 10px;
}

/* ==================================================== */


/* === MOBİL UYUMLULUK (RESPONSIVE DESIGN) AYARLARI === */


/* ==================================================== */


/* Genellikle Tablet ve Telefonlar İçin (768px ve altı) */

@media (max-width: 768px) {
    /* --- HEADER --- */
    header .container {
        flex-direction: column;
        align-items: center;
        /* Ortala */
    }
    header .logo {
        margin-bottom: 15px;
        text-align: center;
        /* Logoyu ve metni ortala */
    }
    header .logo img {
        display: block;
        /* Resmi blok yapıp ortalamak için */
        margin: 0 auto 10px;
        /* Resim altı boşluk ve ortalama */
    }
    header nav ul {
        width: 100%;
        text-align: center;
        /* Menüyü ortala */
    }
    header nav ul li {
        display: block;
        margin-left: 0;
        margin-bottom: 12px;
    }
    header nav ul li:last-child {
        margin-bottom: 0;
    }
    /* --- ANA BAŞLIKLAR --- */
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
        /* Mobil için h2 alt boşluğu */
    }
    h3 {
        font-size: 1.4em;
        margin-bottom: 20px;
        /* Mobil için h3 alt boşluğu */
    }
    /* --- HİZMETLER BÖLÜMÜ --- */
    .service-list {
        gap: 20px;
    }
    .service-item {
        flex-basis: calc(50% - 10px);
        /* 2 sütun (gap'e göre ayarlandı) */
    }
    /* --- MODAL RESPONSIVE --- */
    .modal-content {
        max-width: 90%;
        max-height: 80vh;
        /* Mobil cihazlarda yükseklik ayarı */
        padding: 20px;
        /* Mobil için iç boşluk */
    }
    .modal-content h2 {
        font-size: 1.5em;
        /* Modal başlığı mobil için */
    }
    /* --- GENEL KONTEYNER --- */
    .container {
        width: 95%;
    }
    /* --- BUTONLAR --- */
    .button {
        padding: 10px 18px;
        /* Mobil için buton padding */
        font-size: 0.95em;
    }
    .hero-section .button {
        margin-bottom: 15px;
        margin-right: 5px;
        /* Yan yana sığarsa */
    }
    /* Tekil blog post başlığı */
    .full-blog-post h1 {
        font-size: 2em;
    }
    /* GENEL BÖLÜM BOŞLUKLARI */
    .content-section {
        padding: 45px 0;
        /* Mobil için bölüm boşluğunu masaüstünden (60px) biraz daha az yapalım */
    }
    /* HAKKIMDA SAYFASI MOBİL */
    .hakkimda-image {
        float: none;
        max-width: 250px;
        /* Mobil için resim boyutu */
        margin: 0 auto 25px;
        /* Ortalama ve alt boşluk */
        display: block;
    }
    .hakkimda-text {
        text-align: left;
        /* Metin sola yaslı kalsın */
        width: 100%;
        /* <<< EKLENDİ: Metnin tam genişliği kaplaması için */
        overflow: visible;
        /* <<< EKLENDİ: Masaüstündeki hidden'ı geçersiz kılmak için */
        float: none;
        /* <<< EKLENDİ: Herhangi bir float olmadığından emin olmak için */
    }
    .yetkinlik-ogesi {
        /* flex-basis: 100%; Yetkinlik ögeleri tam genişlik (grid ile zaten ayarlanıyor) */
    }
    .expertise-item {
        /* Ana sayfa uzmanlık alanları mobil */
        flex-basis: calc(50% - 15px);
        /* 2 sütun */
    }
    .reason-item {
        /* Neden ben mobil (grid ile zaten ayarlanıyor) */
    }
    .step {
        /* Çalışma süreci mobil (grid ile zaten ayarlanıyor) */
    }
    .admin-post-table th,
    .admin-post-table td {
        /* Admin tablosu mobil */
        padding: 8px 10px;
        /* Daha az padding */
    }
    .admin-post-table td:nth-child(3) {
        /* İşlemler sütunu butonları */
        white-space: normal;
        /* Butonlar alt alta gelebilir */
    }
    .admin-post-table td form {
        display: block;
        /* Silme formu alt satıra geçsin */
        margin-top: 5px;
        margin-left: 0;
    }
    nav ul li.social-link {
        margin-left: 0;
        margin-bottom: 10px;
    }
    /* Araçlar Sayfası Mobil */
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Mobil için min genişlik ayarı */
        gap: 20px;
    }
    .tool-card {
        padding: 20px;
    }
    .tool-category h3 {
        font-size: 1.6em; /* Mobil için kategori başlığı */
    }
}


/* Sadece Çok Küçük Ekranlar İçin Ek Ayarlar (Örneğin 500px altı) */

@media (max-width: 500px) {
    h1 {
        font-size: 1.9em;
    }
    h2 {
        font-size: 1.6em;
    }
    h3 {
        font-size: 1.2em;
    }
    /* Yazı içi başlıklar */
    .post-body h2 {
        font-size: 1.4em;
    }
    .post-body h3 {
        font-size: 1.2em;
    }
    .post-body h4 {
        font-size: 1.1em;
    }
    .content-section {
        padding: 35px 0;
        /* Daha küçük ekranlar için bölüm boşluğu biraz daha azaltıldı */
    }
    header .logo a {
        font-size: 1.1em;
    }
    nav ul li {
        margin-bottom: 10px;
    }
    footer {
        padding: 25px 0;
    }
    /* Hizmet kutusu padding azalt */
    .service-item {
        padding: 20px 15px;
        /* Mobil için daha az padding */
        flex-basis: 100%;
        /* Tek sütun */
    }
    /* Form padding azalt */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 10px 12px;
    }
    /* Form elemanı genişliğini %100 yap */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea,
    .form-control {
        width: 100%;
        /* ZDK isteğiyle Düzenlendi */
        /* Mobil ekranda form alanları tam genişlik kaplasın */
    }
    .expertise-item {
        /* Ana sayfa uzmanlık alanları çok küçük ekran */
        flex-basis: 100%;
        /* Tek sütun */
    }
    .blog-post-summary {
        /* Blog kartları çok küçük ekran */
        flex-basis: 100%;
        /* Tek sütun */
    }
    /* Araçlar Sayfası Çok Küçük Ekranlar */
    .tools-grid {
        grid-template-columns: 1fr; /* Tek sütun */
    }
    .tool-card {
        padding: 15px;
    }
    .tool-category h3 {
        font-size: 1.4em;
    }
    .tool-form-input {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    .tool-submit-button {
        padding: 8px 12px;
        font-size: 0.95em;
    }
}
