/* blog/css/style.css */

body {   
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* Allows main content to grow and push footer down */
}

/* 🚀 PREMIUM BLOG LINKS (Applies globally to post content) */
article a:not(.btn) {
    color: var(--primary) !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(42, 144, 228, 0.3);
    transition: all 0.2s ease;
}

article a:not(.btn):hover {
    color: var(--green) !important;
    text-decoration-color: var(--green);
}

/* Banner styling */
.banner_blog {
    width: 100%;
    padding: 60px 20px;
    background-image: url('/assets/header_bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 37%;
    position: relative;
    /* Optional: Add a subtle overlay to the background if the image is too bright */
    /* box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.2); */
}

.header_text_blog {
    font-size: calc(1.5rem + 1.5vw); 
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 10px 0; 
    padding: 0;
    color: var(--white);
    /* Soft, diffused shadow for modern readability instead of hard green */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.header_subtext {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.banner_img_blog {
    max-height: 160px;
    filter: drop-shadow(0px 15px 25px rgba(0,0,0,0.25)); /* Modern float effect */
}

.header_text_blog_post {
    font-size: calc(1.5rem + 2.25vw);
    line-height: 1.2;
    margin: 0; 
    padding: 0;
    font-weight: 800 !important;
    color: var(--white);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Post card styling */
.card {
    border: 1px solid var(--gray_lighter);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); /* Softer, wider premium shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 220px; 
    object-fit: cover; 
}

.card-title a {
    color: var(--text_dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--green) !important; 
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text_light);
    font-weight: 500;
}

/* Tag badge styling */
.tag-badge {
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    display: inline-block;
    padding: 0.4em 0.8em;
    font-size: 0.8rem;
    background-color: #f1f3f5;
    color: #495057;
    transition: all 0.2s ease; 
}

.tag-badge:hover {
    background-color: var(--green) !important;
    color: #fff !important;
    transform: scale(1.05);
}

.tag-list-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f3f5;
}
.tag-list-item:last-child {
    border-bottom: none;
}

/* Single post page styling */
/* Main post content - removed card styling */
.post-content {
    background-color: #fff; /* Ensure it has a white background */
    border-radius: 0.75rem; /* Keep rounded corners */
    box-shadow: none; /* Explicitly remove box-shadow */
    /* No transition or hover effect as it's not a clickable card */
}

.post-header-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block; /* Ensure it behaves as a block for centering */
    margin-left: auto;
    margin-right: auto;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.post-body pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.social-share-buttons .btn {
    border-radius: 0.75rem;
    margin-right: 0.5rem;
}

/* Hover effect for links in Popular Tags and Other Related Posts cards */
.card .list-unstyled a {
    color: #343a40; /* Default text color */
    transition: color 0.2s ease; /* Smooth transition for color change */
}

.card .list-unstyled a:hover {
    color: var(--green) !important; /* Bootstrap primary blue on hover */
    text-decoration: underline; /* Add underline for better UX */
}


/* Admin panel styling */
.admin-card {
    border-radius: 0.75rem;
}

.table thead th {
    background-color: #e9ecef;
    border-bottom: 2px solid #dee2e6;
}

.admin-action-links .btn {
    border-radius: 0.5rem;
}

.admin-post-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}
.admin-post-list-item:last-child {
    border-bottom: none;
}
.admin-post-list-item .post-title {
    flex-grow: 1;
    margin-right: 1rem;
}
.admin-post-list-item .actions {
    flex-shrink: 0;
}

/* Forms */
textarea.form-control {
    min-height: 150px;
}

.char-counter {
    font-size: 0.8em;
    color: #6c757d;
    text-align: right;
    margin-top: 0.25rem;
}

/* Post preview */
.post-preview-area {
    border: 1px dashed #ced4da;
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 150px;
    background-color: #fff;
    overflow-y: auto;
}
.post-preview-area h1, .post-preview-area h2, .post-preview-area h3,
.post-preview-area h4, .post-preview-area h5, .post-preview-area h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.post-preview-area p {
    margin-bottom: 1rem;
}
.post-preview-area ul, .post-preview-area ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}




/* Responsive adjustments */
@media (max-width: 767.98px) {

    .banner_blog {
    padding: 25px 10px 30px 10px;
    }

.header_text_blog_post {
    font-size: calc(1.325rem + 2.55vw);
}
    .card-img-top {
        height: 180px;
    }
}


