/*
================================================
|   Global CSS Variables                       |
================================================
*/
@import url("https://fonts.googleapis.com/css2?family=Moderustic&family=SUSE:wght@600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');
:root {
    --primary-color: #D90429;
    --primary-hover-color: #2B2D42;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --success-hover-color: #218838;
    --danger-color: #dc3545;
    --danger-hover-color: #c82333;
    --warning-color: #ffc107;
    --warning-hover-color: #e0a800;

    --text-color: #333333;
    --heading-color: var(--text-color);
    --light-text-color: #6c757d;
    --link-color: var(--primary-color);

    --background-color: #f8f9fa;
    --white-color: #fff;
    --border-color: #DEE2E6;
    --light-border-color: #e9ecef;

    --blog-card-background-color: #F5F5F5;
    --blog-card-border-radius: 25px;

    --font-family-sans-serif: Livvic;
    --font-family-serif: Poppins;

    --border-radius: 8px;
    --box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;

    --h1-font-size: 43px;
    --h2-font-size: 32px;
    --h3-font-size: 24px;
    --h4-font-size: 18px;
    --h5-font-size: 16px;
    --h6-font-size: 14px;
    --p-blog-text-size: 24px;

    --blog-border-wdth: 1px;
    --button-text-color: #FFFFFF;

    --blog-ad-section-display: grid;
}

/*
================================================
|   General & Body Styles                      |
================================================
*/
body { font-family: var(--font-family-sans-serif); line-height: 1.3; color: var(--text-color); font-size: var(--p-blog-text-size);}
.site-wrapper { max-width: 100%; margin: 0 auto; }
a { color: var(--link-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-hover-color); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: var(--heading-color); margin-top: 0; margin-bottom: 0.5em; font-family: var(--font-family-serif); }
img { max-width: 100%; height: auto; border-radius: var(--border-radius); }
hr.admin-hr { margin: 25px 0; border: 0; border-top: 1px solid var(--light-border-color); }
/*
================================================
|   Main Layout (Content & Sidebar)            |
================================================
*/
.main-content-area { display: flex; gap: 30px; } .content-column { flex: 3; min-width: 0; }
.sidebar-column { flex: 1; align-self: flex-start; position: sticky; top: 20px; }
/*
================================================
|   Post Styles (Excerpt Grid & Full Post)     |
================================================
*/
.widget ul a, span.b-cat, h3.linker a.linkers, p a.fullpostcat { 
    color: var(--link-color); 
    line-height: 1.4;
	font-weight: 500;
	text-decoration: none;
	background: linear-gradient(180deg, var(--primary-hover-color) 0, var(--primary-hover-color) 90%);
	background-position: left 100%;
	background-repeat: no-repeat;
	background-size: 0 2px;
	transition: all 1s ease-in-out;
    font-family: var(--font-family-sans-serif);
}
.widget ul a:hover, span.b-cat:hover, h3.linker a.linkers:hover, p a.fullpostcat:hover { 
    background-size: 100% 2px; 
    color: var(--primary-hover-color); 
    text-decoration: none; 
}
h3.linker a.linkers, p a.fullpostcat { font-size: var(--h3-font-size); }
h3.linker a.linkers { font-size: var(--h3-font-size);  font-family: var(--font-family-sans-serif); font-weight: 600;}
.widget ul a, span.b-cat { font-size: var(--h4-font-size); }
h2.sub-title,
p.error {
    font-family: var(--font-family-sans-serif);
    font-size: var(--h2-font-size);
    color: #333;
}
.posts-grid-container {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(2, 1fr);
}
/*
================================================
|   Blog Card (Blog Except and inverted border) |
================================================
*/
.post-excerpt {
    background: var(--blog-card-background-color);
    border: 0px solid var(--border-color);
    border-radius: var(--blog-card-border-radius);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.post-excerpt:hover {
    box-shadow: var(--box-shadow);
}
.bg-blue-500 { background-color: var(--blog-card-background-color); }
.bg-purple-300 { background-color: var(--primary-hover-color); }
.bg-purple-300:hover { background-color: var(--primary-color);}
.p-10 { padding: 0.8rem; }
.w-fit { width: fit-content; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.bottom-0 { bottom: 0; }
.right-0 { right: 0; }
.w-64 { width: 8rem; }
.w-65 { width: 16rem; }
.pr-4 { padding-right: 0.6rem; }
.pb-4 { padding-bottom: 0.6rem; }
.pl-4 { padding-left: 0.6rem; }
.pt-4 { padding-top: 0.6rem; }
.p-4 { padding: 0.4rem; text-align: center; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-xl { border-radius: 2rem; }
.rounded-br-2xl { border-bottom-right-radius: 1.2rem; }
.rounded-tl-2xl { border-top-left-radius: 1rem; }

/* Custom corner styles */
.rounded-corners-lt::before {
    content: "";
    position: absolute;
    right: -16px;
    top: 0;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: radial-gradient(
        circle at 100% 100%,
        transparent 16px,
        var(--blog-card-background-color) calc(16px + 1px)
    );
}
.rounded-corners-lt::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 0;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: radial-gradient(
        circle at 100% 100%,
        transparent 16px,
        var(--blog-card-background-color) calc(16px + 1px)
    );
}
.rounded-corners-br::before {
    content: "";
    position: absolute;
    left: -16px;
    bottom: 0;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: radial-gradient(
        circle at 100% 100%,
        transparent 16px,
        var(--blog-card-background-color) calc(16px + 1px)
    );
    rotate: 180deg;
}
.rounded-corners-br::after {
    content: "";
    position: absolute;
    top: -16px;
    right: 0;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: radial-gradient(
        circle at 100% 100%,
        transparent 16px,
        var(--blog-card-background-color) calc(16px + 1px)
    );
    rotate: 180deg;
}
.post-category { font-weight: bold; color: var(--button-text-color); text-decoration: none; font-family: var(--font-family-sans-serif); font-size: var(--h5-font-size); margin: 0; }
.post-category:hover { text-decoration: none; font-weight: bold;}
.post-image-excerpt { width: 100%; height: 280px; object-fit: cover; } 
.post-excerpt-content { padding: 10px 10px 5px 10px; display: flex; flex-direction: column; flex-grow: 1; }
.post-excerpt h3 a { font-size: var(--h2-font-size); color: var(--heading-color); font-weight: bold; }
.excerpt-content { flex-grow: 1; margin: 0px 0 15px 0; color: var(--text-color); line-height: 1.5; font-size: 1rem; }
.full-post { background: transparent; padding: 20px; margin-bottom: 25px; border: var(--blog-border-wdth) solid var(--border-color); border-radius: var(--border-radius); }
.full-post h1 { font-size: var(--h1-font-size); font-weight: 700; font-family: var(--font-family-serif); color: var(--text-color); line-height: 1.1; }
.full-post h2 { font-size: var(--h2-font-size); font-weight: 500; font-family: var(--font-family-sans-serif); color: var(--text-color); line-height: 1; }
.post-meta { font-size: 0.9rem; color: var(--light-text-color); margin-bottom: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.post-meta-head { font-size: 1rem; color: var(--light-text-color); margin-bottom: 1px; display: flex; align-items: center; gap: 9px; font-weight: 500; flex-wrap: wrap; }
.post-meta-head span.meta-author { font-weight: bold; color: var(--primary-hover-color); }
.post-meta .comment-count { display: flex; align-items: center; gap: 5px; font-weight: 600;}
.post-meta .comment-count svg { width: 16px; height: 16px; fill: var(--light-text-color); }
.post-meta a { font-weight: bold; }
.post-meta .meta-separator { color: var(--border-color); }
.post-meta .read-time { font-weight: bold; }
.post-image-full { width: 100%; height: auto; max-height: 410px; object-fit: cover; margin-bottom: 20px; }
.post-content { font-family: var(--font-family-sans-serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; color: var(--text-color); }
.post-content p { margin-bottom: 1.2rem; font-family: var(--font-family-sans-serif); font-size: var(--h3-font-size); font-weight: 500; line-height: 1.2; color: var(--text-color); }
.read-more {
    display: inline-block;
    margin-top: auto; /* Pushes to the bottom of the card */
    background: var(--primary-color);
    color: var(--white-color);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    width: 100px;
    font-size: 15px;
    text-align: center;
    transition: background-color 0.3s ease;
}
.read-more:hover {
    background: var(--primary-hover-color);
    color: var(--white-color);
}

/* --- NEW: Share Button Styles --- */
.share-buttons-container { margin-top: 35px; padding-top: 25px; border-top: 1px solid #e9ecef; }
.share-buttons-container strong { display: block; margin-bottom: 15px; font-size: 1.1rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; text-decoration: none; border-radius: 10px; color: #fff; font-weight: 500; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.share-btn svg { width: 20px; height: 20px; fill: oldlace; }
.share-btn span { font-size: 0.9rem; }

/* Social media brand colors */
.share-btn.facebook  { background-color: #1877F2; border-radius: 6px; color: black;}
.share-btn.x-twitter { background-color: #14171A; border-radius: 6px; color: #f5f5f5;}
.share-btn.linkedin  { background-color: #0A66C2; border-radius: 6px; color: #ffffff;}
.share-btn.whatsapp  { background-color: #25D366; border-radius: 6px; color: black;}
.share-btn.pinterest { background-color: #E60023; border-radius: 6px; color: black;}
.share-btn.email     { background-color: #777; border-radius: 6px; color: black;}


/* --- NEW: Next/Previous Post Navigation Styles --- */
.post-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 30px; border-top: 1px solid #e9ecef; }
.nav-post { flex-basis: 48%; }
.nav-post a { display: block; padding: 15px; border: 1px solid #dee2e6; border-radius: 5px; text-decoration: none; color: #333; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.nav-post a:hover { border-color: var(--primary-color); box-shadow: var(--box-shadow) }
.nav-label { display: block; font-size: 0.9rem; font-weight: bold; color: #6c757d; margin-bottom: 10px; }
.nav-content { display: flex; align-items: center; gap: 15px; }
.nav-post img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.nav-title { margin: 0; font-size: 1.1rem; line-height: 1.3; font-family: var(--font-family-sans-serif); }
.next-post { text-align: right; }
.next-post .nav-content { flex-direction: row-reverse; }

/*
================================================
|   Sidebar & Widgets                          |
================================================
*/
.widget { background: rgba(255,255,255,0.00); border: var(--blog-border-wdth) solid var(--border-color); border-radius: var(--border-radius); padding: 15px; margin-bottom: 25px; }
.widget h3 { margin-top: 0; border-bottom: 1px solid var(--light-border-color); padding-bottom: 10px; font-size: var(--h3-font-size); font-family: var(--font-family-sans-serif); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dotted var(--light-border-color); }
.widget ul li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.widget-post-date { display: block; font-size: 0.8rem; color: var(--light-text-color); margin-bottom: 4px; }
.widget ul li.widget-count-item { position: relative; padding-right: 70px; }
.widget-post-views { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 0.8rem; font-weight: 600; color: #495057; background-color: #e9ecef; padding: 4px 8px; border-radius: 6px; }
.sidebar-ad-placeholder { width: 100%; height: 250px; background-color: var(--light-border-color); border-radius: var(--border-radius); display: flex; align-items: center; justify-content: center; color: var(--light-text-color); font-style: italic; overflow: hidden; }
.ad-widget { display: var(--blog-ad-section-display); }
/* Search Widget */
.php-search-form { display: flex; width: 100%; padding: 2px; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }
.php-search-form input[type="search"] { flex-grow: 1; border: none; padding: 10px; font-size: 1rem; font-family: var(--font-family-sans-serif); outline: none; }
.php-search-form button { background-color: var(--primary-color); border: none; border-radius: 5px; color: var(--white-color); padding: 0 15px; cursor: pointer; transition: background-color 0.3s ease; }
.php-search-form button:hover { background-color: var(--primary-hover-color); }
.php-search-form button svg { width: 18px; height: 18px; fill: currentColor; }
/*
================================================
|   Pagination                                 |
================================================
*/
.pagination { margin: 30px 0; text-align: left; padding: 8px; border-top: 1px solid rgba(0, 0, 0, 0.031); border-bottom: 1px solid rgba(0, 0, 0, 0.031); }
.pagination a, .pagination span { display: inline-block; padding: 8px 15px; margin: 0 3px; border: 1px solid var(--border-color); color: var(--primary-color); border-radius: 4px; font-family: var(--font-family-sans-serif); font-size: 1.2rem; }
.pagination a:hover { background-color: var(--light-border-color); }
.pagination .current-page { background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); }
/*
================================================
|   Comments Section                           |
================================================
*/
#comments-section { margin-top: 20px; padding-top: 25px; border-top: 1px solid var(--light-border-color); }
#comments-section h3 { margin-bottom: 1px; font-size: 1.5rem; color: #343a40; font-family: var(--font-family-sans-serif); }
.comment { border-bottom: 1px dotted var(--light-border-color); padding: 15px 0; } .comment:last-child { border-bottom: none; }
.comment strong { color: var(--primary-color); } .comment-date { font-size: 0.8rem; color: #868e96; margin-left: 5px; }
.comment p { margin: 5px 0; font-family: var(--font-family-sans-serif); font-size: 0.8rem; }
.comment p.comment-body { font-family: var(--font-family-sans-serif); font-size: 1.2rem; }
p.commentnotapp { font-family: var(--font-family-sans-serif); font-size: 1rem; color: var(--light-text-color); font-style: italic; }
#comment-form { margin-top: 25px; padding: 20px; background-color: var(--background-color); border-radius: var(--border-radius); border: 1px solid var(--light-border-color); }
#comment-form div { margin-bottom: 15px; } #comment-form label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9rem; }
#comment-form input[type="text"], #comment-form input[type="email"], #comment-form textarea { width: calc(100% - 22px); /* Account for padding & border */ padding: 10px; border: 1px solid #ced4da; border-radius: 4px; font-size: 1rem; }
#comment-form textarea { resize: vertical; min-height: 100px; }
#comment-form button { 
    background: var(--success-color); 
    color: var(--white-color);
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
#comment-form button:hover { background: var(--success-hover-color); }
.captcha-container { margin: 15px 0; padding: 15px; background-color: #f8f9fa; border-radius: 5px; border: 1px solid #e9ecef; }
.captcha-container label { display: block; font-family: var(--font-family-sans-serif); font-size: 1.2rem; margin-bottom: 8px; font-weight: bold; color: var(--text-color); }
.captcha-container input[type="text"] { padding: 10px; border: 1px solid #ced4da; border-radius: 4px; font-size: 1rem; width: 100%; box-sizing: border-box; }
.captcha-refresh { background: none; border: none; color: #007bff; cursor: pointer; margin-left: 10px; }
.captcha-refresh:hover { color: #0056b3; text-decoration: underline; }

/*
===========================
|   Author Modal Box      | 
===========================
*/
.modal { display: none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
.modal.show { display: flex; align-items: center; justify-content: center; opacity: 1; }
.modal-content { background-color: #fefefe; margin: auto; padding: 0; border-radius: 16px; width: 90%; max-width: 500px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); position: relative; transform: scale(0.9) translateY(-20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); overflow: hidden; }
.modal.show .modal-content { transform: scale(1) translateY(0); }
.close-modal { position: absolute; top: 15px; right: 20px; color: #fff; background: rgba(0, 0, 0, 0.3); width: 45px; height: 45px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: bold; cursor: pointer; z-index: 10; transition: all 0.3s ease; padding: 0 2px 5px 2px; }
.close-modal:hover { background: rgba(0, 0, 0, 0.5); }
.author-header { background: var(--primary-color); padding: 40px 20px 25px; text-align: center; color: var(--text-color); position: relative; }
.author-image { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; border: 0.1px solid rgba(255, 255, 255, 0.2); transition: all 0.3s ease; }
.author-image:hover { transform: scale(1.05); border-color: rgba(255, 255, 255, 0.5); }
.author-image img { width: 100%; height: 100%; object-fit: cover; }
.author-header h2 { margin: 0 0 10px; font-size: 1.8rem; font-weight: 500; color: var(--text-color); font-family: var(--font-family-serif); }
.author-contact { margin-bottom: 20px; }
.author-contact a { display: inline-flex; align-items: center; color: rgba(255, 255, 255, 0.9); text-decoration: none; font-size: 0.95rem; padding: 8px 15px; background: rgba(255, 255, 255, 0.15); border-radius: 20px; transition: all 0.3s ease; font-family: var(--font-family-sans-serif); }
.author-contact a:hover { background: rgba(255, 255, 255, 0.25); color: #fff; transform: translateY(-2px); }
.author-contact i { margin-right: 8px; font-size: 1rem; }
.author-social { display: flex; justify-content: center; gap: 12px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 360px; background-color: rgba(255, 255, 255, 0.2); color: white; text-decoration: none; transition: all 0.3s ease; position: relative; overflow: hidden; }
.social-link::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent); transform: translateY(100%); transition: transform 0.3s ease; }
.social-link:hover { transform: translateY(-3px); }
.social-link:hover::before { transform: translateY(0); }
.social-link.twitter:hover { background-color: #EDF2F4; box-shadow: 0 5px 15px rgba(1, 34, 54, 0.212); }
.social-link.facebook:hover { background-color: #1877f2; box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4); }
.social-link.instagram:hover { background-color: #e4405f; box-shadow: 0 5px 15px rgba(228, 64, 95, 0.4); }
.social-link.whatsapp:hover { background-color: #07cc21; box-shadow: 0 5px 15px rgba(21, 181, 0, 0.4); }
.author-bio { padding: 30px; background: #fff; }
.author-bio h3 { color: var(--text-color); margin-top: 0; padding-bottom: 15px; margin-bottom: 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.144); font-family: var(--font-family-sans-serif); font-size: 1.4rem; font-weight: 600; }
.author-bio p { line-height: 1.4; color: var(--text-color); font-family: var(--font-family-sans-serif); font-size: 1rem; margin-bottom: 0; }
.author-name-link { color: var(--primary-color); cursor: pointer; transition: all 0.3s ease; position: relative; display: inline-block; font-weight: 600; }
.author-name-link::after { content: ''; position: absolute; bottom: 1px; left: 0; width: 0; height: 1px; background-color: var(--primary-hover-color); transition: width 0.3s ease; }
.author-name-link:hover { color: var(--primary-hover-color); }
.author-name-link:hover::after { width: 100%; }

/*
================================================
|   Admin Panel Styles                         |
================================================
*/
body.admin-body {
    background-color: var(--background-color);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Admin Sidebar Navigation */
.admin-sidebar { position: fixed; left: 0; top: 0; background-color: var(--heading-color); color: #fff; padding: 20px; display: flex; flex-direction: column; transition: transform 0.3s ease; z-index: 1000; height: 100vh; overflow-y: auto; }

.admin-sidebar-header { text-align: center; margin-bottom: 30px; }
.admin-sidebar-header h2 { color: #fff; margin: 0; font-family: var(--font-family-sans-serif); font-size: 1.5rem; }
.admin-sidebar-header a { color: var(--warning-color); font-size: 1.2rem; }

.admin-nav ul { list-style: none; padding: 0; margin: 0; }
.admin-nav ul li a { display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: #ccc; border-radius: 6px; margin-bottom: 5px; transition: background-color 0.2s ease, color 0.2s ease; font-size: 1.1rem; font-weight: 600; font-family: var(--font-family-sans-serif); }
.admin-nav ul li a:hover, .admin-nav ul li a.active { background-color: rgba(255, 255, 255, 0.1); color: #fff; }
.admin-nav ul li a svg { width: 20px; height: 20px; fill: currentColor; }
.admin-nav .logout-link { margin-top: auto; }

/* Admin Main Content */
.admin-main-content { flex: 1; padding: 30px; overflow-y: auto; margin-left: 180px; /* Same as sidebar width */ width: calc(100% - 180px); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; font-size: 1.4rem; }
.admin-header h1 { margin: 0; font-size: 1.8rem; }
.admin-header .user-info { font-weight: bold; }
.hamburger-menu { display: none; background: none; border: none; color: var(--heading-color); font-size: 28px; cursor: pointer; }
.admin-section h3 { font-size: 1.5rem; font-family: var(--font-family-sans-serif); color: var(--text-color); }

/* Admin Dashboard Stat Cards */
.stat-card .icon { font-size: 2rem; padding: 15px; }
.stat-cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background-color: var(--white-color); padding: 25px; border-radius: var(--border-radius); border: 1px solid var(--border-color); display: flex; align-items: center; gap: 20px; }
.stat-card .icon { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 360px; color: #fff; }
.stat-card .icon svg { width: 40px; height: 40px;}
.stat-card .icon.posts { background-color: var(--primary-color); }
.stat-card .icon.categories { background-color: var(--success-color); }
.stat-card .icon.comments { background-color: var(--warning-color); }
.stat-card .info .number { font-size: 2.2rem; font-weight: bold; line-height: 1; }
.stat-card .info .label { color: var(--light-text-color); font-size: 1.2rem; font-family: var(--font-family-sans-serif);}

/* Custom File Upload Button */
.custom-file-upload { border: 2px dashed var(--border-color); border-radius: var(--border-radius); padding: 20px; text-align: center; cursor: pointer; transition: all 0.3s ease; }
.custom-file-upload:hover { border-color: var(--primary-color); background-color: rgba(0, 123, 255, 0.05); }
.custom-file-upload input[type="file"] { display: none; }
.custom-file-upload .upload-icon { font-size: 2rem; color: var(--primary-color); }
.custom-file-upload .upload-text { margin-top: 10px; color: var(--light-text-color); }
.current-image-preview { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; background-color: var(--background-color); padding: 10px; border-radius: 6px; background-color: rgba(0, 0, 0, 0.02); }
.current-image-preview img { width: 100px; height: auto; border-radius: 4px; }
.current-image-preview span { font-size: 0.9rem; color: var(--light-text-color); }
.custom-file-upload.dragover { border-color: var(--success-color); background-color: rgba(40, 167, 69, 0.1); }
.upload-icon { margin-bottom: 10px; } .upload-text { font-size: 1rem; font-family: var(--font-family-sans-serif); }
.current-image-preview { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; background-color: var(--background-color); padding: 15px; border-radius: var(--border-radius); }
.current-image-preview img { width: 100px; height: auto; border-radius: 4px; border: 1px solid var(--border-color); }
.current-image-preview span { font-size: 0.9rem; color: var(--light-text-color); }
.upload-status { margin-top: 10px; padding: 10px; border-radius: 4px; font-weight: 500; font-family: var(--font-family-sans-serif); font-size: 1rem;}
.upload-status.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.upload-status.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Admin Forms & Sections */
.admin-section {
    background-color: var(--white-color);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.admin-form div {
    margin-bottom: 18px;
}
.admin-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}
.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form input[type="email"],
.admin-form input[type="number"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}
.admin-form button[type="submit"] {
    background-color: var(--success-color);
    color: var(--white-color);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}
.admin-form button[type="submit"]:hover {
    background-color: var(--success-hover-color);
}

/* Admin Tables */
.posts-table-container { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 1.2rem; font-family: var(--font-family-sans-serif);}
.admin-table th, .admin-table td { border: 1px solid var(--border-color); padding: 12px 15px; text-align: left; vertical-align: middle; }
.admin-table th { background-color: var(--background-color); }
.admin-table .table-thumb { width: 80px; height: 50px; object-fit: cover; border-radius: 4px; }
.status-published { color: var(--success-color); font-weight: bold; }
.status-draft { color: var(--warning-color); font-weight: bold; }
.actions-cell { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-edit, .btn-delete, .btn-approve { margin: 2px; padding: 6px 12px; border-radius: 4px; color: #fff; border: none; cursor: pointer; font-size: 0.9rem; text-decoration: none; display: inline-block; }
.btn-edit { background-color: var(--warning-color); color: var(--heading-color); }
.btn-delete { background-color: var(--danger-color); }
.btn-approve { background-color: var(--success-color); }
.admin-table td a[target="_blank"]::after { content: " ↗"; font-size: 0.8rem; opacity: 0.7; }

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
}
#login-section { width: 100%; max-width: 400px; }
.login-container h2 { font-size: 2rem; font-family: var(--font-family-serif); color: var(--text-color); margin-bottom: 5px; }
.admin-form { font-size: 1.2rem; }
/*
================================================
|   Message & Notification Styles              |
================================================
*/
.error-message { background-color: #f8d7da; padding: 5px; color: #721c24; border-color: #f5c6cb; }
.message, .error, .admin-message, .setup-messages, .comment-status-message { padding: 15px; margin-bottom: 20px; border-radius: 7px; text-align: left; border: 1px solid #c3e6cb; font-family: var(--font-family-sans-serif); font-size: 1rem; color: #14171A; background-color: #d4edda;}
.success-message, .message.success-message { background-color: #d4edda; color: #155724; border-color: #c3e6cb; font-family: var(--font-family-sans-serif); font-size: 1rem; padding: 8px;}
.error-message, .error.error-message { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; font-family: var(--font-family-sans-serif); font-size: 1rem;}
.setup-messages { background-color: #d1ecf1; color: #0c5460; border-color: #bee5eb; font-family: var(--font-family-sans-serif); font-size: 1rem; padding: 8px;}
.comment-status-submitting { border: 1px solid #ddd; color: #555; }
.comment-status-message:empty { display: none; } /* Hide if empty */

/*
================================================
|   Responsive Design                          |
================================================
*/
@media (max-width: 992px) { 
    .posts-grid-container { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .admin-main-content { margin-left: 0; width: 100%; }
}
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 999; }
@media (max-width: 992px) {
    .sidebar-overlay.active { display: block; }
}
@media (max-width: 768px) { 
    .main-content-area { flex-direction: column; }
    .sidebar-column { position: static; width: 100%;}
    .full-post h1 { font-size: 1.8rem; }
}
@media (max-width: 992px) {
    .admin-sidebar { position: fixed; left: 0; top: 0; height: 100%; transform: translateX(-100%); z-index: 1000; box-shadow: 0 0 20px rgba(0,0,0,0.2); }
    .admin-sidebar.active { transform: translateX(0); }
    .admin-main-content { padding: 20px; }
    .admin-header h1 { font-size: 1.5rem; }
    .hamburger-menu { display: block; }
    .form-row { flex-direction: column; gap: 0; }
}
@media (max-width: 768px) {
    .admin-table, .admin-table thead, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr { display: block; }
    .admin-table thead tr { position: absolute; top: -9999px; left: -9999px; }
    .admin-table tr { border: 1px solid var(--border-color); margin-bottom: 15px; }
    .admin-table td { border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; text-align: right; }
    .admin-table td:before { position: absolute; left: 10px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; content: attr(data-label); }
    .actions-cell { justify-content: flex-end; }
}
@media (max-width: 768px) {
    .post-navigation { flex-direction: column; }
    .post-content p { margin-bottom: 1.2rem; font-family: var(--font-family-sans-serif); font-size: var(--h4-font-size); }
}
@media (max-width: 768px) {
    .modal-content { margin: 20px; width: calc(100% - 40px); }
    .author-image { width: 100px; height: 100px; }
    .author-header h2 { font-size: 1.5rem; }
    .author-bio { padding: 20px; }
    h2.sub-title, p.error { font-family: var(--font-family-sans-serif); font-size: var(--h3-font-size); color: #333; }
}

/*
================================================
|  Miscellenous Styling                         |
================================================
*/
code { font-family: var(--font-family-sans-serif); font-size: 80%; background-color: darkslategrey; color: white; padding: 6px; border-radius: 7px; white-space: wrap; line-height: 1.3; }
p { line-height: 1.4; font-family: var(--font-family-sans-serif); font-size: var(--h3-font-size); color: var(--text-color); }