/* Post Template Page Styles */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600&display=swap');


/* Applying Lora font to the whole post, ensuring it's more specific */
.post-container, .post-body, .post-title, .post-meta, .post-footer {
    font-family: 'Lora', serif !important; /* Force Lora font to apply here */
}

.post-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.post-title {
    font-size: 36px;
    font-weight: 600 !important; /* Slightly bold for title */
    font-family: 'Lora', serif !important;
    color: #1e1e1e;
    margin-bottom: 15px;
    text-align: left;
}

.post-meta {
    font-size: 14px;
    font-family: 'Lora', serif !important;
    color: #000000;
    text-align: left;
    margin-bottom: 20px;
}

.post-meta span {
    font-weight: 600;
    color: #000000;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Post Body */
.post-body,
.post-body * {
    font-size: 18px !important;
    line-height: 1.8;
    color: #181818 !important;
    font-weight: 500 !important;
    font-family: 'Lora', serif !important;
    overflow-wrap: anywhere;
}


.post-body p {
    margin-bottom: 20px;
}

.post-body img {
    max-width: 100%;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-body blockquote {
    font-style: italic;
    background: #f8f8f8;
    border-left: 4px solid #00c896;
    padding: 15px 20px;
    margin: 20px 0;
    color: #555;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 20px;
}

.post-body ul li,
.post-body ol li {
    margin-bottom: 10px;
}

.post-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    color: #555;
}

.post-footer a {
    color: #00c896;
    text-decoration: none;
    font-weight: 600;
}

.post-footer a:hover {
    text-decoration: underline;
}

.error-page {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.error-page .post-title {
    margin-bottom: 0;
    text-align: center;
}

.error-page p {
    color: #555;
    font-size: 18px;
}

.error-page-button {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    background: #1e1e1e;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.error-page-button:hover,
.error-page-button:focus-visible {
    background: #00c896;
    color: #1e1e1e;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: black;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
    opacity: 0;
    visibility: hidden;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-container {
        width: calc(100% - 32px);
        margin-top: 145px;
        padding: 24px 18px;
    }

    .post-title {
        font-size: 28px;
    }

    .post-body {
        font-size: 18px;
    }

    .error-page {
        min-height: 300px;
        padding: 32px 18px;
    }

    .error-page p {
        font-size: 16px;
    }

    #back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}


