/**
 * Blog Sayfası Stilleri
 * Prof. Dr. Mustafa Gerek
 */

/* ================================================
   1. BLOG MAIN LAYOUT
================================================ */
.blog-main {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #fdfbf7 0%, #fff 100%);
}

/* ================================================
   1.5. BLOG INTRO
================================================ */
.blog-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.blog-intro-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    font-style: italic;
}

/* ================================================
   2. FILTER MENU
================================================ */
.blog-filter-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e0d6c8;
    background: #fff;
    color: #555;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn i {
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: #800000;
    color: #800000;
    background: #fff5f5;
}

.filter-btn.active {
    background: linear-gradient(135deg, #800000 0%, #5c0000 100%);
    border-color: #800000;
    color: #fff;
}

/* ================================================
   3. BLOG GRID
================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ================================================
   4. BLOG CARD
================================================ */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-card.hidden {
    display: none;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card Image */
.blog-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e0d0 0%, #d4c9b5 100%);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

/* Badge */
.blog-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #800000 0%, #5c0000 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Content */
.blog-card-content {
    padding: 24px;
}

.blog-card-content h3 {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: #800000;
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    color: #800000;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-card:hover .read-more-btn {
    color: #5c0000;
    letter-spacing: 1px;
}

/* ================================================
   5. BLOG DETAIL PAGE
================================================ */
.blog-detail-main {
    padding: 50px 0 80px;
    background: linear-gradient(180deg, #fdfbf7 0%, #ffffff 100%);
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

/* Article Content */
.article-content {
    max-width: 100%;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.article-header {
    margin-bottom: 35px;
}

.article-header h1 {
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 24px;
    font-weight: 700;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f4e9 0%, #fdfbf7 100%);
    border-radius: 10px;
    border-left: 4px solid #c9a227;
}

.article-meta-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-bar i {
    color: #800000;
    font-size: 0.85rem;
}

/* Trust Box */
.trust-box {
    background: #FFF5F5;
    border-left: 4px solid #800000;
    padding: 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 40px;
}

.trust-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.trust-box-header i {
    font-size: 1.5rem;
    color: #800000;
}

.trust-box-header h4 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #800000;
    margin: 0;
}

.trust-box p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    color: #800000;
    margin: 40px 0 20px;
}

.article-body h3 {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: #800000;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    border-left: 4px solid #c9a227;
    padding: 20px 24px;
    margin: 30px 0;
    background: #fdfbf7;
    font-style: italic;
    color: #555;
}

/* Inline Links - Visible with underline */
.article-body a {
    color: #800000;
    text-decoration: underline;
    text-decoration-color: #c9a227;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.article-body a:hover {
    color: #5c0000;
    text-decoration-color: #800000;
}

/* Key Takeaways */
.key-takeaways {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #dee2e6;
}

.key-takeaways-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.key-takeaways-header i {
    font-size: 1.8rem;
    color: #800000;
}

.key-takeaways-header h4 {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin: 0;
}

.key-takeaways ul {
    margin: 0;
    padding-left: 24px;
}

.key-takeaways li {
    margin-bottom: 12px;
    color: #333;
    line-height: 1.6;
}

/* Related Links */
.related-links {
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f4e9 100%);
    border-radius: 12px;
    padding: 24px 30px;
    margin: 40px 0;
    border-left: 4px solid #c9a227;
}

.related-links h3 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-links li {
    margin-bottom: 10px;
}

.related-links a {
    color: #800000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-links a:hover {
    color: #c9a227;
    padding-left: 8px;
}

/* ================================================
   FAQ ACCORDION - Matching uzmanliklar theme
================================================ */
.faq-section {
    margin: 50px 0;
}

.faq-section>h2 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    cursor: pointer;
    background: #fff;
    border: none;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #fdfbf7;
}

.faq-question h3,
.faq-question span:first-child {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    padding-right: 16px;
}

.faq-item.active .faq-question h3,
.faq-item.active .faq-question span:first-child {
    color: #800000;
}

.faq-icon,
.faq-question>i {
    color: #800000;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon,
.faq-item.active .faq-question>i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content,
.faq-answer>p {
    padding: 0 28px 22px;
    color: #1c2833;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer-content ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.faq-answer-content li {
    margin-bottom: 6px;
}

/* Author Card */
.author-card {
    display: flex;
    gap: 24px;
    padding: 30px;
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f4e9 100%);
    border-radius: 16px;
    margin-top: 50px;
    border: 1px solid #e8e0d0;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: #800000;
    margin-bottom: 8px;
}

.author-info .author-title {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
}

.author-info p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* ================================================
   6. BLOG SIDEBAR
================================================ */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e0d0;
}

.sidebar-widget h3 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c9a227;
}

/* Mini Profile */
.mini-profile {
    text-align: center;
}

.mini-profile-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid #800000;
}

.mini-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-profile h4 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #800000;
    margin-bottom: 8px;
}

.mini-profile p {
    font-size: 0.9rem;
    color: #666;
}

/* Search Widget */
.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0d6c8;
    border-radius: 8px;
    font-size: 0.95rem;
}

.search-input:focus {
    outline: none;
    border-color: #800000;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #555;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #f0e6d3;
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: #800000;
}

.category-list .count {
    color: #888;
    font-size: 0.85rem;
}

/* Academic Articles */
.academic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.academic-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0e6d3;
}

.academic-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.academic-list a {
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    display: block;
    transition: color 0.3s ease;
}

.academic-list a:hover {
    color: #800000;
}

.academic-list .year {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #800000 0%, #5c0000 100%);
    color: #fff;
    text-align: center;
}

.cta-widget h3 {
    color: #fff;
    border-bottom-color: #c9a227;
}

.cta-widget p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cta-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.cta-btn.whatsapp:hover {
    background: #1fb855;
}

.cta-btn.phone {
    background: #fff;
    color: #800000;
}

.cta-btn.phone:hover {
    background: #f5f5f5;
}

/* ================================================
   7. RESPONSIVE
================================================ */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-filter-menu {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .author-image {
        margin: 0 auto;
    }

    /* Hide mini profile on mobile to avoid duplication */
    .mini-profile {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .blog-main {
        padding: 40px 0 60px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-content h3 {
        font-size: 1.05rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .trust-box {
        padding: 20px;
    }
}