/* =========================================
   Genel Tipografi (Baloo 2 Entegrasyonu)
   ========================================= */
body {
    /* Genel metinler için Baloo 2'nin okunaklı versiyonu */
    font-family: 'Baloo 2', sans-serif;
}

/* =========================================
   Category Hero (ORİJİNAL RENKLER + APPLE YUMUŞAKLIĞI)
   ========================================= */
.category-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    min-height: clamp(420px, 45vh, 600px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

/* 2K ve üzeri monitörler (genelde 2560px genişlik ve üstü) */
@media (min-width: 2000px) {
    .category-hero {
        padding: 250px 0;
    }
}

@media (max-width: 768px) {
    .category-hero {
        min-height: auto;
        padding: 60px 0;
    }
}

.category-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.category-hero-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.category-hero-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 3.5rem;
    /* Baloo 2 biraz daha kompakt olduğu için boyutu hafif artırdık */
    font-weight: 800;
    /* En tombul ve enerjik kalınlık */
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.category-hero-description {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    /* Okunabilirlik için orta kalınlık */
    opacity: 0.95;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
    line-height: 1.6;
}

.category-hero.has-bg-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.category-hero.has-bg-image::before {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Arkaplanı daha az karartır (0.6'dan 0.3'e düşürüldü) */
    z-index: 1;
}

/* =========================================
   Subcategories (ALT KATEGORİ KARTLARI)
   ========================================= */
.subcategories-section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-purple);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-family: 'Baloo 2', sans-serif;
    color: var(--dark-purple);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4rem;
}

.subcategory-card {
    background: white;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 30px;
    border: 1px solid rgba(139, 92, 246, 0.05);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.subcategory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.2);
}

.subcategory-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-blue) 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.subcategory-card:hover .subcategory-icon {
    transform: scale(1.1);
}

.subcategory-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 12px;
}

.subcategory-description {
    font-family: 'Baloo 2', sans-serif;
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    flex-grow: 1;
}

.subcategory-badge {
    font-family: 'Baloo 2', sans-serif;
    display: inline-block;
    background: linear-gradient(135deg, var(--light-purple) 0%, #fae8ff 100%);
    color: var(--dark-purple);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.subcategory-card:hover .subcategory-badge {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    color: white;
}

.subcategories-section a.subcategory-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* =========================================
   Content Section (KATEGORİ İÇİ KÜÇÜK İÇERİK KUTULARI)
   ========================================= */
.content-section {
    background: white;
    padding: 80px 0;
}

.content-card {
    background: #ffffff;
    border-radius: 28px; 
    padding: 60px 80px; 
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.05); 
    word-wrap: break-word; /* Taşmaları engeller */
}

.content-card p {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.15rem;
    line-height: 1.9; 
    font-weight: 500;
    color: #444; 
    margin-bottom: 1.5rem;
}

.content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.1); 
    display: block;
}

.content-card figure.image {
    margin: 1.5rem auto;
    text-align: center;
    display: block; 
}

.content-card figure.image img {
    margin: 0 auto;
}

.content-card figure.image figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.8rem;
    text-align: center;
    display: block;
}

.content-card figure.image.image-style-align-left {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    max-width: 50%; 
    clear: none;
}

.content-card figure.image.image-style-align-right {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    max-width: 50%;
    clear: none;
}

.content-card figure.image.image-style-align-center {
    margin: 2rem auto;
    clear: both; 
    display: table;
}

.content-card::after {
    content: "";
    display: table;
    clear: both;
}

.content-card h2,
.content-card h3,
.content-card h4,
.content-card h5 {
    font-family: 'Baloo 2', sans-serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-purple);
    font-weight: 800; 
    clear: both;
}

.content-card ul,
.content-card ol {
    font-family: 'Baloo 2', sans-serif;
    padding-left: 2rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: #444;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.content-card li {
    margin: 0.5rem 0;
}

.content-card strong,
.content-card b {
    font-weight: 800;
    color: #222;
}

.content-card blockquote {
    border-left: 5px solid var(--primary-purple);
    padding: 1rem 1.5rem;
    background: #f5f3ff;
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.content-card table th,
.content-card table td {
    border: 1px solid #ddd;
    padding: 12px 16px;
    text-align: left;
}

.content-card table th {
    background-color: #f5f3ff;
    font-weight: bold;
    color: var(--dark-purple);
}

/* =========================================
   Related Categories (İLGİLİ KATEGORİLER)
   ========================================= */
.related-section {
    background: linear-gradient(135deg, var(--light-purple) 0%, #fae8ff 100%);
    padding: 60px 0;
}

.related-section a.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.15);
}

.related-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.related-icon.nature {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.related-icon.science {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
}

.related-icon.animals {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
}

.related-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 10px;
}

/* =========================================
   Featured Content Grid (ÖNE ÇIKANLAR GRID)
   ========================================= */
.featured-section {
    padding: 60px 0 100px;
    background: white;
}

.featured-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.featured-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.06);
    flex: 0 0 calc(25% - 18px);
    max-width: calc(25% - 18px);
    min-width: 220px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(139, 92, 246, 0.04);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.1);
}

.featured-card .meta {
    font-family: 'Baloo 2', sans-serif;
    font-size: 0.95rem;
    color: #8b5cf6;
    margin-bottom: 12px;
    font-weight: 700;
}

.featured-card h5 {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.3rem;
    color: var(--dark-purple);
    margin: 0 0 10px 0;
    font-weight: 800;
}

.featured-card p {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1rem;
    color: #4b5563;
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-weight: 500;
    flex-grow: 1;
}

.featured-card .read-more {
    font-family: 'Baloo 2', sans-serif;
    margin-top: 12px;
    font-weight: 800;
    color: var(--dark-purple);
    text-decoration: none;
    font-size: 1.05rem;
}

@media (max-width: 992px) {
    .featured-card {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 576px) {
    .featured-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}