/* --- Header & Navigation (Secondary/Hover) --- */
.search-button {
    transition: background-color 0.15s ease-in-out;
}
.search-button:hover {
    background-color: #4338ca; 
}

/* --- Main Content (Secondary/Full Styles) --- */
.pull-quote {
    border-left: 4px solid #6366f1; 
    padding-left: 16px;
    font-style: italic;
    color: #4b5563; 
    margin: 24px 0;
}
.article-rating {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
.rating-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 20px;
    font-weight: 700;
    background-color: #047857; 
    color: white;
    border-radius: 8px;
}

/* --- Sidebar (Secondary Components) --- */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}
.category-tag {
    background-color: #e0e7ff; 
    color: #3730a3; 
    padding: 4px 12px;
    border-radius: 9999px; 
    transition: background-color 0.15s;
}
.category-tag:hover {
    background-color: #c7d2fe; 
}

/* --- Advertising Area (Full Styling) --- */
.ad-area-wrapper {
    width: 100%;
    padding: 32px 16px; 
    background-color: #eef2ff; 
    border-top: 1px solid #c7d2fe; 
    border-bottom: 1px solid #c7d2fe;
    margin-top: 32px; 
}
.ad-area-content {
    max-width: 896px; 
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.ad-area-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #3730a3; 
    margin-bottom: 8px;
}
.ad-placeholder {
    background-color: #ffffff;
    padding: 16px;
    border: 1px dashed #818cf8; 
    color: #6b7280;
}
.right-sidebar .ad-area-wrapper {
    padding-left: 10px !important;
    padding-right: 10px !important;
}
.right-sidebar .ad-placeholder {
    max-width: 100% !important;
}

/* --- Footer (Full Styling) --- */
.main-footer {
    background-color: #1f2937; 
    color: white;
    padding: 24px; 
}
.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width: 1152px; 
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}
.footer-nav {
    display: flex;
    gap: 16px; 
    margin-bottom: 16px; 
    font-size: 14px;
    color: #ffffff !important;
}
@media (min-width: 768px) {
    .footer-nav {
        margin-bottom: 0;
    }
}
.footer-nav a {
    color: #ffffff !important; 
    text-decoration: none;      
}
.footer-nav a:hover {
    color: #a5b4fc !important; 
    text-decoration: underline; 
}
.copyright {
    font-size: 14px;
    color: #ffffff; 
}


/* --- Similar Posts (Full Styling) --- */
.similar-posts-section {
    padding: 20px 0;
    border-top: 1px solid #eee; 
    margin-top: 30px;
}
.similar-posts-section h3 { 
    font-size: 1.5em;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff; 
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 0; 
}
.similar-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}
.similar-post-item {
    display: flex !important; 
    align-items: flex-start !important; 
    gap: 15px; 
    padding: 10px 0;
    border-bottom: 1px dashed #ddd; 
}
.similar-post-item .post-image-link {
    flex-shrink: 0 !important; 
    width: 150px; 
    height: 100px; 
    overflow: hidden;
    border-radius: 4px; 
}
.similar-post-item .post-image-link .post-thumb {
    width: 100% !important;  
    height: 100% !important; 
    object-fit: cover; 
}
.similar-post-item .post-details {
    flex-grow: 1; 
}
.similar-post-item h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
    font-weight: 600;
}
.similar-post-item h4 a {
    color: #333; 
    text-decoration: none;
    transition: color 0.2s;
}
.similar-post-item h4 a:hover {
    color: #007bff; 
    text-decoration: underline;
}
.similar-post-item .post-meta {
    font-size: 0.85em;
    color: #555; 
    margin: 0;
}


/* --- Author Profile (Full Styling) --- */
.author-profile {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 25px;
    border: 1px solid #cccccc; 
    background-color: #ffffff; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}
.author-box {
    display: flex; 
    align-items: center; 
    gap: 30px; 
}
.author-box-photo {
    flex-shrink: 0; 
    width: 100px;
    height: 100px;
    border-radius: 50%; 
    overflow: hidden;
    border: 3px solid #333333; 
}
.author-box-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.author-info { flex-grow: 1; }
.author-info h4 {
    margin-top: 0; margin-bottom: 5px; font-size: 1.2em; color: #111111; font-weight: 700;
}
.author-info p {
    margin-top: 0; font-size: 1em; line-height: 1.6; color: #333333; 
}
.author-social {
    margin-top: 15px; display: flex; gap: 10px; flex-wrap: wrap;
}
.author-social a {
    display: inline-flex; align-items: center; padding: 8px 15px; background-color: #f0f0f0; 
    border-radius: 4px; color: #333333; text-decoration: none; font-weight: 600; font-size: 0.9em;
    border: 1px solid #cccccc; transition: all 0.2s ease-in-out;
}
.author-social a .social-icon { width: 27px; height: 27px; margin-right: 8px; vertical-align: middle; }
.author-social a:hover {
    background-color: #ffffff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transform: translateY(-1px);
}
.author-social a.x:hover { color: #111111; border-color: #111111; }
.author-social a.linkedin:hover { color: #0077B5; border-color: #0077B5; }
.author-social a.youtube:hover { color: #FF0000; border-color: #FF0000; }
.author-social a.facebook:hover { color: #1877F2; border-color: #1877F2; }
.author-social a.pinterest:hover { color: #BD081C; border-color: #BD081C; }
@media (max-width: 600px) {
    .author-box { flex-direction: column; align-items: center; text-align: center; }
}


/* --- Comments & Form (Full Styling) --- */
#comment-list-section {
    margin-top: 40px; border-top: 1px solid #eee; padding-top: 20px;
}
.user-comment-box {
    border: 1px solid #ddd; padding: 15px; margin-bottom: 20px; border-radius: 6px;
}
.user-comment-box .comment-author { font-weight: bold; color: #333; margin-bottom: 5px; }
.user-comment-box .comment-time { font-weight: normal; font-size: 0.85em; color: #555; }
.user-comment-text {
    margin: 5px 0 15px 0; padding-left: 10px; border-left: 3px solid #007bff; background-color: #f9f9f9;
    padding: 10px; border-radius: 4px;
}
.admin-reply-box {
    border: 1px dashed #1e7e34; padding: 10px; margin-top: 15px; background-color: #e6ffed; border-radius: 4px;
}
.admin-reply-box .admin-name { font-weight: bold; color: #1e7e34; margin-bottom: 5px; }
.admin-reply-box .admin-time { font-weight: normal; font-size: 0.85em; color: #1e7e34; }
#comment-form-section {
    margin-top: 40px; border-top: 1px solid #eee; padding-top: 20px;
}
.comment-form { max-width: 600px; }
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-weight: bold; margin-bottom: 5px; }
.form-input {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;
}
.submit-comment-button {
    padding: 10px 20px; background-color: #0056b3; color: white; border: 1px solid #0056b3; 
    border-radius: 4px; cursor: pointer; font-weight: bold; -webkit-appearance: none;
    -moz-appearance: none; appearance: none;
}
.comment-status-message {
    padding: 15px; border: 1px solid transparent; border-radius: 5px; margin-bottom: 20px;
}
.comment-status-message.status-error {
    background-color: #f8d7da; color: #721c24; border-color: #f5c6cb;
}
.comment-status-message.status-success {
    background-color: #d4edda; color: #155724; border-color: #c3e6cb;
}
.comment-status-message.status-warning {
    background-color: #fff3cd; color: #856404; border-color: #ffeeba;
}


/* --- Popular Posts Section Styles (Full Styling - Kept for consistency) --- */
.popular-posts-section { margin-bottom: 20px; }
.popular-posts-section h3 {
    font-size: 1.1em; font-weight: bold; color: #333; margin-bottom: 12px;
    border-bottom: 2px solid #ddd; padding-bottom: 5px;
}
.popular-posts-list { list-style: none; padding: 0; margin: 0; }
.popular-posts-list .post-item { padding: 8px 0; border-bottom: 1px dashed #f0f0f0; }
.popular-posts-list .post-item:last-child { border-bottom: none; }
.popular-posts-list .post-link {
    display: flex; align-items: flex-start; gap: 10px; text-decoration: none; color: inherit;
}
.popular-posts-list .post-image-wrapper {
    flex-shrink: 0; max-width: 65px; overflow: hidden; border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.popular-posts-list .post-thumb {
    width: 100%; height: auto; display: block;
}
.popular-posts-list .post-details { flex-grow: 1; }
.popular-posts-list .post-title {
    display: block; font-size: 0.95em; font-weight: 600; line-height: 1.3;
    color: #1a1a1a; margin-bottom: 3px;
}
.popular-posts-list .post-link:hover .post-title {
    text-decoration: underline; color: #4CAF50;
}
.popular-posts-list .post-meta { font-size: 0.75em; color: #666; }
