/* =========================================================
   1. RESET & FONT
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* =========================================================
   2. GENEL CONTAINER
========================================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   3. LINK & TYPOGRAPHY
========================================================= */
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e40af;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.25;
    color: #111827;
}

/* =========================================================
   4. HEADER / NAVBAR (SORUN GİDERİLDİ)
========================================================= */
.header-bg {
    background-color: #42a5f5;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

header {
    width: 100%;
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 32px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: #f0f0f0;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Mobil navbar */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links li {
        margin-left: 0;
    }
}

/* =========================================================
   5. HERO / WELCOME SECTION
========================================================= */
.welcome-section {
    background-color: #20252b;
    padding: 80px 0;
}

.welcome-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.welcome-text {
    flex: 2;
    color: #e5e7eb;
}

.welcome-image {
    flex: 1;
    text-align: right;
}

.welcome-image img {
    width: 100%;
    max-width: 280px;
    border-radius: 10px;
}

/* Mobil */
@media (max-width: 768px) {
    .welcome-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .welcome-image {
        text-align: center;
    }
}

/* =========================================================
   6. BLOG / POST LIST
========================================================= */
.latest-posts {
    padding: 40px 0 80px;
}

.latest-posts h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 10px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.post-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.post-card h3,
.post-card h4 {
    margin-bottom: 8px;
}

.post-card p {
    color: #4b5563;
}

.post-card .date {
    font-size: 0.9rem;
    color: #6b7280;
}

.post-card .read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}

/* =========================================================
   7. CATEGORY BUTTONS
========================================================= */
.category-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    color: #374151;
    transition: all .2s ease;
}

.category-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.category-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* =========================================================
   8. FOOTER
========================================================= */
footer {
    border-top: 1px solid #e5e7eb;
    padding: 30px 0;
    text-align: center;
    background-color: #f9fafb;
}

footer p {
    font-size: 0.9rem;
    color: #6b7280;
}
