/* Main CSS File for Kitaptan.com */

:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --text-color: #333;
    --bg-color: #f4f7f6;
}

body {
    transition: background-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Blog Content Styling */
.blog-content blockquote {
    border-left: 5px solid var(--accent-color);
    background: #fdfaf5;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    display: block;
    border-radius: 0 8px 8px 0;
}

/* CKEditor Global Styles */
.ck-editor__editable {
    min-height: 250px;
    color: #333;
}

.ck.ck-editor__main>.ck-editor__editable:focus {
    border-color: var(--accent-color) !important;
    box-shadow: none !important;
}

.blog-content h2,
.blog-content h3 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-content ul,
.blog-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

/* Modern White Box for Static Content Pages */
.modern-white-box {
    background-color: #ffffff !important;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    max-width: 900px;
    margin: 3rem auto;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    /* Ensures content doesn't spill out */
}

@media (max-width: 768px) {
    .modern-white-box {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
        border-radius: 16px;
    }
}

header {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Blog Detail Page Styles */
.blog-detail {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.blog-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.blog-header h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.blog-image-container {
    margin: 3rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.blog-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin: 3rem 0;
}

/* Mobile Responsiveness for Blog Detail */
@media (max-width: 768px) {
    .blog-detail {
        padding: 1.5rem;
        border-radius: 0;
        box-shadow: none;
    }

    .blog-header {
        margin-bottom: 2rem !important;
    }

    .blog-header h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .blog-image-container {
        margin: 1.5rem -1.5rem;
        /* Full width on mobile */
        border-radius: 0;
    }

    .blog-content {
        font-size: 1.05rem;
        line-height: 1.6;
        margin: 1.5rem 0;
    }

    .author-info-wrapper {
        padding: 1.5rem !important;
        flex-direction: column;
        text-align: center;
    }

    .author-info-wrapper .publish-info {
        text-align: center !important;
    }
}