/*
Theme Name: Medium
Theme URI: https://your-site.com/medium
Author: Your Name
Author URI: https://your-site.com
Description: A Medium.com-like WordPress theme with SEO optimization
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medium
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

:root {
    --primary-color: #fff;
    --secondary-color: #1a8917;
    --text-color: rgba(0, 0, 0, 0.8);
    --text-light: rgba(0, 0, 0, 0.54);
    --border-color: rgba(0, 0, 0, 0.15);
    --light-bg: rgba(0, 0, 0, 0.05);
    --highlight-yellow: #1CB55C;
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-content: 'Source Serif 4', Georgia, serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--primary-color);
    overflow-x: hidden;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex {
    display: flex;
}

.flex-between {
    justify-content: space-between;
}

.flex-center {
    align-items: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ui);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: rgba(0, 0, 0, 0.8);
}

h1 {
    font-size: 2.25rem;
    letter-spacing: -0.022em;
}

h2 {
    font-size: 1.75rem;
    letter-spacing: -0.018em;
}

h3 {
    font-size: 1.375rem;
}

p {
    margin-bottom: 1.25rem;
}

/* Header */
.site-header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.header-sticky {
    position: sticky;
    top: 0;
    background: var(--primary-color);
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.7rem;
    font-weight: 900;
    margin-right: 20px;
    margin-bottom: 0;
}

.site-title a {
    color: #000;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    padding: 8px 12px;
    border-radius: 20px;
    margin-left: 20px;
}

.search-form input[type="search"] {
    background: transparent;
    border: none;
    margin-left: 8px;
    font-size: 14px;
    width: 240px;
}

.search-form input[type="search"]:focus {
    outline: none;
}

.header-buttons {
    display: flex;
    align-items: center;
}

.write-button {
    display: flex;
    align-items: center;
    margin-right: 16px;
    color: var(--text-color);
    font-size: 14px;
}

.write-button svg {
    margin-right: 4px;
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-menu .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.blog-link {
    display: inline-block;
    background-color: var(--highlight-yellow);
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.2s;
    text-align: center;
}

.blog-link:hover {
    background-color: #18a251;
    color: white;
    text-decoration: none;
}

/* Navigation */
.site-navigation {
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.main-menu {
    display: flex;
    list-style: none;
}

.main-menu li {
    margin-right: 20px;
}

.main-menu li a {
    color: var(--text-light);
    font-size: 14px;
    padding: 8px 0;
    display: block;
}

.main-menu li a:hover,
.main-menu li.current-menu-item a {
    color: var(--text-color);
}

.main-menu li.current-menu-item {
    border-bottom: 1px solid var(--text-color);
}

.main-menu li.featured a {
    display: flex;
    align-items: center;
}

.main-menu li.featured a .new-badge {
    background-color: #31A951;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Content Layout */
.site-content {
    padding: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
}

.content-area {
    width: 100%;
    max-width: 680px;
    padding-right: 2rem;
}

.content-separator {
    margin: 40px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.sidebar {
    width: 100%;
    max-width: 328px;
}

/* Article Cards */
.article-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.article-details {
    flex: 1;
}

.article-thumbnail {
    flex: 0 0 200px;
    margin-left: 30px;
    min-height: 134px;
    display: block;
}

.article-thumbnail img {
    width: 100%;
    height: 134px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Fix for WordPress images */
.wp-post-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.article-meta {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    margin-right: 5px;
}

.entry-title {
    font-size: 1.375rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.entry-title a {
    color: rgba(0, 0, 0, 0.8);
}

.entry-title a:hover {
    color: var(--secondary-color);
}

.entry-excerpt {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-meta {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.entry-date,
.read-time {
    margin-right: 8px;
}

.topic-tag {
    background-color: var(--light-bg);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 13px;
    margin-left: 8px;
}

.article-actions {
    display: flex;
    align-items: center;
}

.action-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 15px;
    color: #757575;
}

.action-button:hover {
    color: #000;
}

.save-button {
    margin-left: auto;
}

/* Medium-like article styles for single */
.article-content {
    max-width: 768px;
    margin: 0 auto;
}

.single-title {
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 40px;
    margin-bottom: 30px;
    font-weight: 700;
}

.entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-info, .meta-left {
    font-size: 14px;
    color: var(--text-light);
}

.social-share .share-link {
    color: var(--text-light);
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: background-color 0.2s;
}

.social-share .share-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Article Images */
.article-featured-image {
    margin: 30px 0 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.article-featured-image:hover img {
    transform: scale(1.02);
}

/* Article Body Styles */
.article-body {
    font-family: var(--font-content);
    font-size: 18px;
    font-weight: 100;
    line-height: 1.8;
    letter-spacing: -0.003em;
    color: rgba(0, 0, 0, 0.84);
    margin-bottom: 40px;
}

/* Fix for bullet points in article body */
.article-body ul,
.article-body ol {
    margin-bottom: 2rem;
    margin-left: 2rem;
    padding-left: 0;
}

.article-body ul li,
.article-body ol li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    position: relative;
}

.article-body ul {
    list-style-type: disc;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body h2 {
    font-family: var(--font-content);
    font-size: 24px;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.article-body a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* WordPress Content Images */
.article-body img,
.article-body .wp-block-image img,
.article-content img {
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 30px auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.article-body figure,
.article-body .wp-block-image {
    margin: 30px 0;
    max-width: 100%;
    position: relative;
}

.article-body figure img,
.article-body .wp-block-image img {
    margin: 0;
    width: 100%;
    height: auto !important;
    display: block;
}

/* Image size classes */
.size-medium-thumbnail {
    max-width: 300px;
    width: 100%;
}

.size-medium-featured {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.size-medium-large {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive image handling */
@media (max-width: 768px) {
    .article-body img,
    .article-body .wp-block-image img,
    .article-content img {
        max-width: 100% !important;
        width: auto;
        height: auto !important;
    }
    
    .size-medium-featured,
    .size-medium-large {
        width: 100%;
        max-width: 100%;
    }
}

/* Fix for WordPress alignment classes */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.alignleft {
    float: left;
    margin: 0.5em 1em 0.5em 0;
    max-width: 100%;
}

.alignright {
    float: right;
    margin: 0.5em 0 0.5em 1em;
    max-width: 100%;
}

.article-body figure figcaption,
.article-body .wp-block-image figcaption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Article Topics */
.article-topics {
    margin: 40px 0;
}

.topics-heading {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topics-list .topic-button {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.topics-list .topic-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* Article End Actions */
.article-end-actions {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.article-end-actions .article-actions {
    justify-content: center;
}

.article-end-actions .action-button {
    font-size: 18px;
    margin: 0 10px;
}

.article-end-actions svg {
    width: 30px;
    height: 30px;
}

/* Article Footer Styling */
.article-footer {
    display: none !important;
}

.article-tags {
    margin-bottom: 30px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f2f2f2;
    border-radius: 3px;
    color: #757575;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.tags-list a:hover {
    background-color: #e6e6e6;
    color: #424242;
}

.article-engagement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.article-stats {
    display: flex;
    align-items: center;
}

.article-stats span {
    display: flex;
    align-items: center;
    margin-right: 20px;
    color: #757575;
    font-size: 14px;
}

.article-stats svg {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

/* Sidebar */
.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.recommended-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.topic-button {
    background-color: var(--light-bg);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.topic-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.staff-picks {
    margin-bottom: 2rem;
}

.staff-pick-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.staff-pick-meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.staff-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.staff-name {
    font-size: 13px;
    color: var(--text-color);
}

.staff-pick-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.staff-pick-date {
    font-size: 13px;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    display: none;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-site-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    text-align: center;
}

.footer-site-title a {
    color: #000;
    text-decoration: none;
}

.footer-site-title a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.copyright {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
}

/* Responsive footer */
@media (max-width: 640px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Medium-like featured homepage header */
.medium-featured-header {
    background-color: var(--highlight-yellow);
    padding: 50px 0;
    margin-bottom: 2rem;
}

.medium-featured-header h1 {
    font-size: 55px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    font-family: var(--font-ui);
}

.medium-featured-header p {
    font-size: 20px;
    margin-bottom: 1.5rem;
    font-family: var(--font-ui);
}

.medium-featured-header .start-button {
    display: inline-block;
    background-color: #000;
    color: white;
    font-size: 20px;
    padding: 7px 20px 9px;
    border-radius: 25px;
    font-weight: 400;
}

/* Updated Article Meta Footer */
.article-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.meta-left {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 13px;
}

.entry-date,
.read-time {
    margin-right: 12px;
}

/* Responsive Design */
@media (max-width: 1080px) {
    .container {
        max-width: 920px;
    }
    
    .content-area {
        max-width: 65%;
    }
    
    .sidebar {
        max-width: 35%;
    }
}

@media (max-width: 820px) {
    .site-content {
        flex-direction: column;
    }
    
    .content-area {
        max-width: 100%;
        padding-right: 0;
    }
    
    .content-separator {
        width: 100%;
        height: 1px;
        margin: 1.5rem 0;
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    .sidebar {
        max-width: 100%;
        margin-top: 0;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-thumbnail {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .medium-featured-header h1 {
        font-size: 40px;
    }
    
    .medium-featured-header {
        padding: 35px 0;
    }
}

@media (max-width: 640px) {
    .site-header .search-form {
        display: none;
    }
    
    h1, .entry-title {
        font-size: 1.5rem;
    }
    
    .single-title {
        font-size: 32px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .article-body {
        font-size: 18px;
    }
    
    .footer-widgets {
        flex-direction: column;
    }
    
    .footer-widget-area {
        flex: 1 1 100%;
        margin-right: 0;
    }
    
    .medium-featured-header {
        padding: 30px 0;
    }
    
    .medium-featured-header h1 {
        font-size: 28px;
    }
    
    .medium-featured-header p {
        font-size: 16px;
    }
}

/* Floating POST link */
.blog-link-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: inline-block;
    background-color: var(--highlight-yellow);
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease-in-out;
}

.blog-link-corner:hover {
    background-color: #18a251;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 640px) {
    .blog-link-corner {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Social Icons Styles */
.social-icons {
    display: flex;
    gap: 15px;
    margin: 20px auto;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 300px;
}

.social-icons a{
    display: inline-block;
    position: relative;
}

.social-icons a i{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
 
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fffbe6;
    border: 2px solid #4b5b00;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 #4b5b00;
    position: relative;
    top: 0;
    left: 0;
}

.social-icon:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #4b5b00;
}

.social-icon i {
    width: 24px;
    height: 24px;
    color: #4b5b00;
    font-size: 24px;
}

.social-icon i.fa-instagram {
    color: #4b5b00;
}

.social-icon i.fa-twitter,
.social-icon i.fa-x-twitter {
    color: #4b5b00;
}

.social-icon i.fa-linkedin-in {
    color: #4b5b00;
}

.social-icon i.fa-medium-m {
    color: #4b5b00;
}

.social-icon i.fa-reddit-alien {
    color: #4b5b00;
}

/* New Guide Layout Styles */
.guide-header {
    padding: 30px 0 10px;
    border-bottom: none;
    position: relative;
    z-index: 20;
}

.guide-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
}

.guide-navigation {
    margin-bottom: 20px;
}

.guide-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 20;
}

.guide-menu li {
    position: relative;
}

.guide-menu li a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 300;
    padding: 8px 0 10px;
    display: block;
}

.guide-menu li.current-menu-item a {
    color: #000;
    font-weight: 600;
}

.guide-menu li.current-menu-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* Section Headings */
.section-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.left-right-wrapper{
    clear: both;
    display: flex;
}

.left-wrapper{
    width: calc(100% - 400px);
    float: left;
    padding-right: 80px;
    border-right: 1px solid #e6e6e6;
}

@media (max-width: 992px) {
    .left-right-wrapper{
        flex-direction: column;
    }
    .left-wrapper{
        width: 100%;
        padding-right: 0;
        border-right: none;
    }
    .profile-sidebar{
        width: 100%;
        float: none;
    }
    .story-item{
        padding: 0!important;
    }
}

.profile-sidebar{
    width: 400px;
    float: right;
}


/* Stories Section */
.stories-section {
    padding: 20px 0;
    width: 100%;
 
}

.stories-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.story-item {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    align-items: start;
}

.story-item.last-story {
    border-bottom: none;
    padding-bottom: 0;
}

.story-title {
    font-size: 22px;
    font-weight: 610;
    margin: 0 0 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-title a {
    color: #000;
    text-decoration: none;
}

.story-title a:hover {
    text-decoration: underline;
}

.story-excerpt {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 200;
    margin-bottom: 12px;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.story-date {
    color: #757575;
    display: flex;
    align-items: center;
    height: 24px; /* Match the height of the icon buttons */
    margin-top: 10px;
}

.story-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 24px; /* Fixed height for consistent alignment */
}

.story-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #757575;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    height: 24px;
    line-height: 24px;
}

.story-action-btn:hover {
    color: #000;
}

.story-action-btn i {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific styles for category pages */
.category-posts .story-meta {
    gap: 10px; /* Reduced gap for category pages */
}

.category-posts .story-actions {
    margin-left: 0;
}

/* Mobile responsiveness for story meta */
@media (max-width: 576px) {
    .story-meta {
        flex-wrap: wrap;
    }
}

.story-author {
    font-weight: 600;
    color: #333;
}

.story-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 4px;
    overflow: hidden;
}

.story-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.story-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.story-thumbnail:hover img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #f0f0f0;
    border-radius: 4px;
}

/* About Section */
.about-section {
    padding: 5px 0;
}

.about-content {
    max-width: 700px;
    font-size: 18px;
    font-weight: 100;
    line-height: 1.8;
    color: #444;
}

.about-content p {
    margin-bottom: 20px;
}

/* Menu Toggle Button */
.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    color: #555;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .guide-title {
        font-size: 36px;
    }
    
    .guide-menu {
        gap: 20px;
    }
    
    .story-title {
        font-size: 22px;
    }
    
    .about-content {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .guide-title {
        font-size: 28px;
    }
    
    .guide-menu {
        gap: 15px;
    }
    
    .story-title {
        font-size: 20px;
    }
}

/* Remove the banner/featured header */
.medium-featured-header {
    display: none;
}

/* Hide old navigation on post page */
.post-template-default .site-navigation,
.home .site-navigation {
    display: none;
}

/* Right side separator line - ensure full height */
.home .site-main::after,
.archive .site-main::after,
.blog .site-main::after {
    /* content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    right: 30%;
    width: 1px;
    background-color: #e6e6e6;
    z-index: 10;
    height: 100vh; */
}

/* Hide separator on single posts */
.single .site-main::after {
    display: none;
}

/* Profile sidebar - moved to top on single post */
.single .profile-top {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    width: 100%;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

.single .profile-left {
    display: flex;
    align-items: center;
}

.single .profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 15px 0 0;
    border: 2px solid #f0f0f0;
    object-fit: cover;
}

.single .profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.single .profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.single .profile-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.3;
    text-align: left;
}

.single .social-icons {
    display: flex;
    gap: 10px;
    margin: 0 0 0 auto;
    padding: 0;
}

.single .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* Following section */
.following-section {
    margin-top: 30px;
    text-align: left;
}

.following-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: left;
}

.following-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.following-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.following-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.following-name {
    font-size: 14px;
    color: #333;
}

.see-all {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    display: inline-block;
}

/* Featured book section */
.featured-book {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.featured-book-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.book-container {
    display: flex;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.book-cover {
    flex: 0 0 120px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover img {
    width: 100%;
    height: auto;
}

.book-details {
    flex: 1;
    padding: 20px;
}

.book-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #000;
}

.book-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
    color: #444;
}

.book-description {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #555;
}

.book-meta {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Tab content for books */
.books-section {
    padding: 40px 0;
}

/* Verified badge style */
.verified-badge {
    display: inline-flex;
    margin-left: 8px;
    color: #3e6d9c;
    font-size: 20px;
    vertical-align: middle;
}

/* Tab content styling */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* Active tab styling */
.tab-item.active {
    position: relative;
}

.tab-item.active a {
    color: #000;
    font-weight: 600;
}

.tab-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
}

@media (max-width: 992px) {
    .profile-sidebar {
        position: static;
        width: 100%;
        padding: 20px 0;
        margin-top: 40px;
        border-top: 1px solid #e6e6e6;
    }
}

/* Article Actions and Like Button Styling */
.article-actions,
.story-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.story-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 10px;
    transition: all 0.2s ease;
    border-radius: 20px;
}

.story-action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.story-action-btn i {
    font-size: 16px;
}

/* Share button specific styles */
.share-button i {
    color: #666;
}

.share-button:hover i {
    color: #1a8917;
}

/* Heart button improvements */
.like-button i.fa-heart {
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #757575;
    font-size: 1.2em;
    position: relative;
}

.like-button.liked i.fa-heart {
    color: #e74c3c;
}

.like-button i.fa-heart:hover {
    transform: scale(1.2);
    color: #e74c3c;
}

.like-button.liked .like-count {
    color: #e74c3c;
}

/* Container adjustments */
.article-content .container {
    padding-bottom: 0;
}

/* Site main positioning */
.site-main {
    position: relative;
    min-height: 100vh;
}

@media (max-width: 992px) {
    .home .site-main::after,
    .archive .site-main::after,
    .blog .site-main::after {
        display: none;
    }
}

/* Profile sidebar for home/index */
.home .profile-sidebar,
.blog .profile-sidebar,
.archive .profile-sidebar,
.search .profile-sidebar {
    /* position: absolute;
    top: -192px;
    right: 0;
    width: 29%; */
    padding: 40px 20px;
    text-align: left;
}

.home .profile-image,
.blog .profile-image,
.archive .profile-image,
.search .profile-image {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid #f0f0f0;
    object-fit: cover;
}

.home .profile-name,
.blog .profile-name,
.archive .profile-name,
.search .profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.home .profile-bio,
.blog .profile-bio,
.archive .profile-bio,
.search .profile-bio {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Social icons for home page - reduced size */
.home .social-icons,
.blog .social-icons,
.archive .social-icons,
.search .social-icons {
    display: flex;
    gap: 10px;
    margin: 15px auto;
    justify-content: center;
    max-width: 100%;
    flex-wrap: nowrap;
}

.home .social-icon,
.blog .social-icon,
.archive .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 3px 3px 0 #4b5b00;
}

.home .social-icon i,
.blog .social-icon i,
.archive .social-icon i {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.home .social-icon:hover,
.blog .social-icon:hover,
.archive .social-icon:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 #4b5b00;
}

/* Article Title Styles */
.single-title.entry-title {
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Post Separator */
.blog-separator {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

/* Entry Meta Styles */
.entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.meta-left {
    display: flex;
    font-size: 14px;
    color: var(--text-light);
}

.entry-date {
    margin-right: 15px;
}

/* Article Footer Styles */
.article-footer {
    display: none !important;
}

.article-footer .social-icons {
    display: none !important;
}

/* Remove three-dot menu icon */
.search-form button[type="submit"],
.search-icon-wrapper {
    display: none;
}

/* WordPress Image Fixes */
img.wp-post-image,
img.attachment-medium-thumbnail,
img.attachment-medium-featured,
img.attachment-thumbnail,
img.attachment-medium,
img.attachment-large,
img.attachment-full {
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.wp-block-image img {
    max-width: 100%;
    height: auto !important;
}

/* Make sure images are properly sized and displayed */
.article-featured-image img,
.article-body img,
.story-thumbnail img {
    max-width: 100%;
    height: auto !important;
    display: block;
}

/* Fix for inline content images */
.article-body p img {
    margin: 20px auto;
    display: block;
}

/* Fix image alignment */
.aligncenter,
.alignleft,
.alignright {
    display: block;
    margin: 20px auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

/* Hide menu toggle button */
.menu-toggle,
.header-buttons {
    display: none !important;
}

/* Category Archive Styles - Updated */
.category-header {
    padding: 30px 0 0px;
    margin-bottom: 30px;
    width: 100%;
    text-align: center;
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: capitalize;
    text-align: center;
}

.category-separator {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 auto 30px;
    width: 100%;
    max-width: 300px;
}

.category-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.category-posts .story-item {
    display: flex;
    flex-direction: column;
    border-bottom: none;
    padding-bottom: 0;
}

.category-posts .story-content {
    order: 2;
    padding-top: 15px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

.category-posts .story-title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.category-posts .story-excerpt {
    flex-grow: 1;
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.category-posts .story-thumbnail {
    order: 1;
}

/* Remove social separator between category posts */
.category-social-separator {
    display: none !important;
}

/* Story actions alignment */
.category-posts .story-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 15px;
}

/* Hide the right-side separator on category pages */
.category .site-main::after {
    display: none;
}

/* Hide the guide header on category pages */
.category .guide-header {
    display: none;
}

/* Hide the profile sidebar on category pages */
.category .profile-sidebar {
    display: none;
}

/* Responsive styles for category posts */
@media (max-width: 992px) {
    .category-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-posts {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 28px;
    }
}

/* Hide archive title prefix */
.archive-title .page-title span {
    display: none;
}

/* Ensure consistency across different page types */
.single .social-icons,
.home .social-icons,
.blog .social-icons,
.archive .social-icons,
.article-footer .social-icons {
    display: flex;
    justify-content: center !important;
    margin: auto;
    max-width: 310px;
    gap: 15px;
}

.single .social-icon,
.home .social-icon,
.blog .social-icon,
.archive .social-icon,
.article-footer .social-icon {
    width: 40px;
    height: 40px;
    background: #fffbe6;
    border: 2px solid #4b5b00;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #4b5b00;
    position: relative;
    top: 0;
    left: 0;
}

.single .social-icon:hover,
.home .social-icon:hover,
.blog .social-icon:hover,
.archive .social-icon:hover,
.article-footer .social-icon:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #4b5b00;
}

.single .social-icon i,
.home .social-icon i,
.blog .social-icon i,
.archive .social-icon i,
.article-footer .social-icon i {
    width: 24px;
    height: 24px;
    color: #4b5b00;
    font-size: 24px;
}

/* Category Footer Styles */
.category-footer {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.category-footer .social-icons {
    max-width: 100%;
    margin: 0 auto;
    }

.category-footer .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 3px 3px 0 #4b5b00;
}

.category-footer .social-icon i {
    font-size: 18px;
}

.category-footer .social-icon:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 #4b5b00;
}

/* Hide social separator in category */
.category-social-separator {
    display: none;
}

/* Hide the blog button */
.wp-admin-bar-blog {
    display: none !important;
}

/* Like Button Styles */
.like-button {
    display: inline-flex;
    align-items: center;
    cursor: default;
    position: relative;
    transition: all 0.2s ease;
}

.like-button i.fa-heart {
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #757575;
    font-size: 1.2em;
    position: relative;
}

.like-button.liked i.fa-heart {
    color: #28a745;
}

.like-button i.fa-heart:hover {
    transform: scale(1.15);
    color: #28a745;
}

.like-button i.fa-heart.pulse {
    animation: heart-pulse 0.4s ease-in-out;
}

.like-button.liking i.fa-heart {
    animation: heart-beat 0.7s ease-in-out;
}

.like-count {
    margin-left: 5px;
    font-size: 0.85em;
    color: #757575;
    transition: all 0.2s ease;
}

.like-button.liked .like-count {
    color: #28a745;
}

@keyframes heart-pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.8); }
    100% { transform: scale(1); }
}

@keyframes heart-beat {
    0% { transform: scale(1); color: #757575; }
    15% { transform: scale(1.3); color: #28a745; }
    30% { transform: scale(1); color: #28a745; }
    45% { transform: scale(1.2); color: #28a745; }
    60% { transform: scale(1); color: #28a745; }
    75% { transform: scale(1.1); color: #28a745; }
    100% { transform: scale(1); color: #28a745; }
}

/* Hide like buttons by default only on archive/listing pages */
.home:not(.single) .story-action-btn.like-button,
.archive:not(.single) .story-action-btn.like-button,
.blog:not(.single) .story-action-btn.like-button,
.category:not(.single) .story-action-btn.like-button {
    display: none !important;
}

/* Show like button on single posts always */
.single .like-button,
.single .story-action-btn.like-button {
    display: inline-flex !important;
}

/* Only show liked buttons on listing pages */
.home:not(.single) .story-action-btn.like-button.liked,
.archive:not(.single) .story-action-btn.like-button.liked,
.blog:not(.single) .story-action-btn.like-button.liked,
.category:not(.single) .story-action-btn.like-button.liked {
    display: inline-flex !important;
}

/* Make sure the has-likes class doesn't override our display settings */
.home:not(.single) .story-action-btn.like-button.has-likes:not(.liked),
.archive:not(.single) .story-action-btn.like-button.has-likes:not(.liked),
.blog:not(.single) .story-action-btn.like-button.has-likes:not(.liked),
.category:not(.single) .story-action-btn.like-button.has-likes:not(.liked) {
    display: none !important;
}

/* Share Popup Styles */
.share-popup {
    position: absolute;
    display: none;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 220px;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
}

.share-popup.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.share-popup-content {
    padding: 8px 0;
}

.share-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.share-option:hover {
    background-color: #f8f8f8;
}

.share-option i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
    color: #555;
}

.share-option span {
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease;
}

/* Copy success state */
.share-option.copy-link.copied i {
    color: #28a745;
}

.share-option.copy-link.copied span {
    color: #28a745;
}

.share-option.copy-link span::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.share-option.copy-link.copied span::after {
    content: '✓';
    color: #28a745;
}

.share-option.copy-link {
    position: relative;
}

/* Social media colors */
.share-option.share-twitter i {
    color: #1DA1F2;
}

.share-option.share-facebook i {
    color: #4267B2;
}

.share-option.share-linkedin i {
    color: #0077B5;
}

/* Add a small arrow to the popup */
.share-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 2px rgba(0, 0, 0, 0.05);
}

/* Ensure the share popup is properly positioned on mobile */
@media (max-width: 768px) {
    .share-popup {
        position: fixed;
        top: auto !important;
        bottom: 20px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90%;
        max-width: 320px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        padding: 5px;
    }
    
    .share-popup.active {
        transform: translateX(-50%) translateY(0);
    }
    
    .share-popup::before {
        display: none;
    }
    
    .share-popup-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .share-option {
        flex: 0 0 calc(50% - 10px);
        margin: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 12px 5px;
        min-height: 70px;
    }
    
    .share-option i {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .share-option span {
        font-size: 13px;
        text-align: center;
    }
}

/* Fix text overflow in article content on mobile */
@media (max-width: 480px) {
    .story-title,
    .article-title,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content p,
    .article-content li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    
    .article-content {
        overflow-x: hidden;
    }
    
    pre, code {
        max-width: 100%;
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    /* Make sure tables don't break layout */
    table {
        display: block;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 999;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger:before {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger:after {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Mobile menu display */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .mobile-menu {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .main-navigation ul.menu {
        flex-direction: column;
        width: 100%;
    }
    
    .main-navigation ul.menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation ul.menu li a {
        padding: 12px 20px;
        display: block;
        width: 100%;
    }
    
    .main-navigation ul.menu li:last-child {
        border-bottom: none;
    }
    
    .menu-item-has-children > a:after {
        content: '+';
        margin-left: 8px;
    }
    
    .menu-item-has-children.submenu-open > a:after {
        content: '-';
    }
    
    .main-navigation .sub-menu {
        position: static;
        width: 100%;
        background: #f5f5f5;
        display: none;
        box-shadow: none;
    }
    
    .submenu-open > .sub-menu {
        display: block;
    }
    
    .main-navigation .sub-menu li {
        padding-left: 20px;
    }
    
    /* Adjust header layout for mobile */
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .site-branding {
        z-index: 10;
    }
    
    /* Adjust search on mobile */
    .search-form {
        margin-right: 40px;
    }
}

/* Fix responsive images in article content */
.article-content img,
.article-content .wp-caption,
.article-content figure {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.article-content iframe,
.article-content embed,
.article-content object,
.article-content video {
    max-width: 100%;
    display: block;
    margin: 20px auto;
}

@media (max-width: 768px) {
    /* Improve article readability on mobile */
    .article-content {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .article-content p {
        margin-bottom: 15px;
    }
    
    .article-content h2 {
        font-size: 22px;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    
    .article-content h3 {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    .article-content ul,
    .article-content ol {
        margin-left: 20px;
        margin-bottom: 15px;
    }
    
    .article-content blockquote {
        padding: 10px 15px;
        margin: 15px 0;
        font-size: 17px;
    }
    
    /* Adjust featured image on mobile */
    .article-featured-image {
        margin-bottom: 20px;
    }
    
    .article-featured-image img {
        max-height: 250px;
        object-fit: cover;
    }
    
    /* Fix profile sidebar on single article for mobile */
    .single .profile-sidebar {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 5px;
        position: static;
        width: 100%;
    }
    
    .single .profile-image {
        width: 60px;
        height: 60px;
    }
    
    .single .profile-name {
        font-size: 18px;
    }
    
    .single .profile-bio {
        font-size: 14px;
    }
    
    .single .site-main {
        margin-left: 0;
        padding: 0 15px;
    }
    
    .site-footer {
        padding: 30px 0;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-sidebar {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-bottom: 20px;
    }
    
    .site-main::after {
        display: none;
    }
    
    /* Fix navigation on mobile */
    .site-header {
        padding: 10px 0;
    }
    
    .site-branding {
        max-width: 150px;
    }
    
    .search-form {
        width: 100%;
        max-width: 200px;
    }
    
    .search-field {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .guide-title {
        font-size: 24px;
    }
    
    .tab-item a {
        font-size: 14px;
    }
    
    .story-item {
        padding: 12px;
    }
    
    .story-title {
        font-size: 18px;
    }
    
    .story-thumbnail {
        height: 150px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-meta {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .article-content h2 {
        font-size: 20px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    /* Fix small screen layout */
    .container {
        padding: 0 10px;
    }
    
    .site-branding {
        max-width: 120px;
    }
    
    .search-form {
        max-width: 160px;
    }
    
    .profile-image {
        width: 60px;
        height: 60px;
    }
    
    .profile-name {
        font-size: 16px;
    }
    
    .profile-bio {
        font-size: 14px;
    }
    
    .social-icons {
        margin-top: 10px;
    }
    
    .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Ensure proper touch targets on mobile */
@media (max-width: 768px) {
    .tab-item a,
    .social-icons a,
    .search-field,
    .blog-link,
    .blog-link-corner,
    button,
    .like-button,
    .share-button,
    .back-link,
    .comment-reply-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure form elements are easily tappable */
    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    input[type="range"],
    input[type="date"],
    input[type="month"],
    input[type="week"],
    input[type="time"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="color"],
    textarea {
        padding: 10px;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    /* Fix spacing on article pages */
    .single .article-content {
        padding: 0;
    }
    
    /* Fix image overflow */
    img,
    .wp-caption {
        max-width: 100%;
        height: auto;
    }
}

/* Fix viewport issues */
@media screen and (max-width: 600px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Adjust category layout */
    .category .story-grid {
        display: block;
    }
    
    .category .story-item {
        margin-bottom: 20px;
        width: 100%;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 999;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger:before {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger:after {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Mobile menu display */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .mobile-menu {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .main-navigation ul.menu {
        flex-direction: column;
        width: 100%;
    }
    
    .main-navigation ul.menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation ul.menu li a {
        padding: 12px 20px;
        display: block;
        width: 100%;
    }
    
    .main-navigation ul.menu li:last-child {
        border-bottom: none;
    }
    
    .menu-item-has-children > a:after {
        content: '+';
        margin-left: 8px;
    }
    
    .menu-item-has-children.submenu-open > a:after {
        content: '-';
    }
    
    .main-navigation .sub-menu {
        position: static;
        width: 100%;
        background: #f5f5f5;
        display: none;
        box-shadow: none;
    }
    
    .submenu-open > .sub-menu {
        display: block;
    }
    
    .main-navigation .sub-menu li {
        padding-left: 20px;
    }
    
    /* Adjust header layout for mobile */
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .site-branding {
        z-index: 10;
    }
    
    /* Adjust search on mobile */
    .search-form {
        margin-right: 40px;
    }
}

/* Copy Success Message */
.copy-success-message {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    transition: bottom 0.3s ease;
    text-align: center;
    min-width: 180px;
}

.copy-success-message.active {
    bottom: 30px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .site-main {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 25px;
    }
    
    .story-item {
        margin-bottom: 25px;
    }
    
    .profile-sidebar {
        padding: 15px;
    }
    
    .article-content {
        padding: 0 10px;
    }
    
    .single .article-featured-image img {
        max-height: 350px;
    }
    
    .site-main::after {
        right: 0;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .guide-header {
        padding: 20px 0;
    }
    
    .guide-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .guide-menu {
        gap: 15px;
        justify-content: center;
    }
    
    .tab-item a {
        padding: 8px 0;
        font-size: 15px;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    
    .story-item {
        padding: 0;
        display: inline-block!important;
    }
    
    .story-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .story-excerpt {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .story-meta {
        font-size: 13px;
    }
    
    .single .article-header {
        padding: 20px 0;
    }
    
    .article-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .article-meta {
        font-size: 14px;
    }
}

/* Mobile-specific styles for Medium theme - post page fixes */
@media (max-width: 767px) {
    /* Strong rule to hide profile sidebar on mobile - author details */
    .single .profile-sidebar,
    .home .profile-sidebar,
    .blog .profile-sidebar,
    .archive .profile-sidebar, 
    [class*="-template-default"] .profile-sidebar {
        /* display: none !important;  */
    }
    
    /* Fix search icon visibility in header */
    .site-header .search-form svg,
    .mobile-search-form svg {
        display: block !important;
        margin-left: auto;
        margin-right: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-search-form {
        margin-left: auto;
        margin-right: 0;
        display: flex !important;
        align-items: center;
    }
    
    .mobile-search-form input.search-field {
        display: none; /* Hide search input field on mobile */
    }
    
    /* Medium-style mobile search - only icon visible */
    .site-header .search-form {
        width: auto;
        background: transparent;
        border: none;
        padding: 0;
        margin-left: 15px;
        display: flex !important;
    }
    
    /* Left-align Home and content with HAYRAM */
    .guide-header .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .guide-menu {
        justify-content: flex-start;
        padding-left: 0;
    }
    
    .guide-menu li:first-child {
        margin-left: 0;
        padding-left: 0;
    }
    
    /* Ensure article content uses full width and aligns with header */
    .single .site-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        padding: 0;
    }
    
    /* Mobile article content styling - align with HAYRAM */
    .mobile-article-content {
        padding: 0 !important;
        width: 100% !important;
    }
    
    .mobile-article-content .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }
    
    /* Entry header styling - align with site title */
    .entry-header {
        padding: 15px 15px 0;
        margin-left: 0;
    }
    
    .single-title {
        padding-left: 0;
    }
    
    /* Always ensure article featured image is visible and properly sized */
    .article-featured-image,
    .single .article-featured-image {
        display: block !important;
        margin: 0px 0 20px !important;
        width: 100% !important;
        overflow: hidden;
    }
    
    .article-featured-image img,
    .single .article-featured-image img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        aspect-ratio: 320/214;
        object-fit: cover;
        object-position: center;
    }
    
    /* Force specific dimensions for article images */
    .article-content img,
    .article-body img,
    .wp-post-image,
    .story-thumbnail img {
        width: 100% !important;
        height: auto !important;
        max-width: 320px !important;
        aspect-ratio: 320/214;
        object-fit: cover;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Article body styling - align with site title */
    .article-body {
        padding: 0 15px;
        font-size: 18px;
        line-height: 1.6;
        margin-left: 0;
    }
    
    /* Remove any desktop-specific padding */
    .single .container {
        padding: 0 15px;
        margin-left: 0;
    }
    
    /* Mobile article title */
    .article-title,
    .single-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 10px;
        padding-left: 0;
    }
    
    /* Article meta adjustments */
    .article-meta,
    .entry-meta {
        font-size: 14px;
        flex-wrap: wrap;
        padding-left: 0;
    }
    
    /* Adjust spacing for article topics */
    .article-topics {
        padding: 15px;
        padding-left: 15px;
    }
    
    /* Hide the right-side user profile info completely */
    .single main::after,
    .site-main::after,
    .single .profile-top,
    body:not(.home) .profile-sidebar,
    .single .profile-sidebar {
        display: none !important;
        width: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Ensure the site header is properly displayed */
    .site-header .container {
        padding: 10px 15px;
        display: flex !important;
        justify-content: space-between !important;
    }
    
    .site-title {
        font-size: 24px;
        display: block !important;
        margin-left: 0;
    }
    
    /* Style adjustments for guide header and tabs */
    .guide-header {
        padding: 20px 0 10px;
    }
    
    .guide-title {
        padding-left: 0;
        margin-left: 0;
    }
    
    /* Hide navigation elements except search on mobile */
    .site-header .main-navigation {
        display: none !important;
    }
    
    /* Article footer adjustment */
    .article-footer {
        padding: 15px;
        margin-top: 20px;
        margin-left: 0;
    }
}

/* Mobile and Tablet Responsive Styles for Medium Theme */

/* Tablet styles (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Container adjustments */
    .container {
        width: 100%;
        max-width: 95%;
        padding: 0 15px;
    }
    
    /* Header adjustments */
    .site-header {
        padding: 10px 0;
    }
    
    .site-title {
        font-size: 22px;
    }
    
    /* Story grid adjustments */
    .story-grid,
    .stories-grid {
        grid-template-columns: 1fr 1fr;
        grid-gap: 20px;
    }
    
    /* Story item layout */
    .story-item {
        padding: 15px;
        margin-bottom: 20px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    .story-content {
        flex: 1;
        padding-right: 15px;
    }
    
    .story-thumbnail {
        width: 120px;
        height: 120px;
    }
    
    .story-title {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .story-excerpt {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .story-meta {
        font-size: 14px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Guide header adjustments */
    .guide-title {
        font-size: 24px;
    }
    
    .guide-menu {
        gap: 15px;
    }
    
    /* Article content */
    .article-content {
        padding: 0 10px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    /* Profile sidebar */
    .profile-sidebar {
        padding: 15px;
    }
}

/* Mobile styles (up to 767px) */
@media (max-width: 767px) {
    /* Base container */
    .container {
        width: 100%;
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Header styling */
    .site-header {
        padding: 10px 0;
    }
    
    .site-branding {
        display: flex;
        align-items: center;
    }
    
    .site-title {
        font-size: 20px;
        margin: 0;
    }
    
    /* Search form */
    .search-form {
        width: auto;
        margin-left: auto;
    }
    
    .search-form input[type="search"] {
        display: none;
    }
    
    /* Guide header */
    .guide-header {
        padding: 15px 0;
    }
    
    .guide-title {
        font-size: 22px;
        margin-bottom: 10px;
        line-height: 1.3;
        padding-left: 0;
    }
    
    .guide-navigation {
        margin-top: 10px;
    }
    
    .guide-menu {
        gap: 12px;
        justify-content: flex-start;
        padding-left: 0;
    }
    
    .tab-item a {
        font-size: 15px;
        padding: 5px 0;
    }
    
    /* Story grid layout */
    .story-grid,
    .stories-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    
    /* Story item (post card) */
    .story-item {
        padding: 15px 0;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }
    
    .story-content {
        flex: 1;
        padding-right: 10px;
        display: inline-block!important;
        float: left;
        width: calc(100% - 100px);
    }
    
    .story-title {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 6px;
        font-weight: 600;
        margin-top: -17px;
    }
    
    .story-title a {
        color: #000;
        text-decoration: none;
    }
    
    .story-excerpt {
        display: none; /* Hide excerpt on mobile for compact view */
    }
    
    .story-meta {
        font-size: 13px;
        color: #757575;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .story-date, .read-time {
        color: #757575;
        margin-top: 10px;
    }
    
    .story-thumbnail {
        width: 80px;
        height: 80px;
        margin: 0;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .story-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Story actions (like & share) */
    .story-actions {
        display: flex;
        gap: 15px;
    }
    
    .story-action-btn {
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        font-size: 13px;
        color: #757575;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .story-action-btn i {
        font-size: 14px;
    }
    
    .like-button span {
        font-size: 13px;
    }
    
    /* Like button specific */
    .like-button {
        display: flex;
        align-items: center;
    }
    
    /* Article layout (single post) */
    .article-content {
        padding: 0;
    }
    
    .article-content .container {
        padding: 0 15px;
    }
    
    .entry-header {
        padding: 0px 0 10px;
    }
    
    .single-title.entry-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .entry-meta {
        margin-bottom: 0px;
        display: flex;
        justify-content: space-between;
        font-size: 14px;
    }
    
    .article-featured-image {
        margin: 0 -15px 15px;
        width: calc(100% + 30px);
    }
    
    .article-featured-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 320/214;
        object-fit: cover;
    }
    
    .article-body {
        font-size: 18px;
        line-height: 1.6;
    }
    
    .article-body p {
        margin-bottom: 1em;
    }
    
    .article-body h2 {
        font-size: 20px;
        margin-top: 1.5em;
        margin-bottom: 0.5em;
    }
    
    .article-body h3 {
        font-size: 18px;
        margin-top: 1.2em;
        margin-bottom: 0.5em;
    }
    
    /* Topics/tags */
    .article-topics {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .topics-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .topic-button {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    /* Footer adjustments */
    .article-footer {
        padding: 15px 0;
        margin-top: 20px;
    }
    
    /* Profile sidebar - hide on mobile */
    .profile-sidebar {
        /* display: none !important; */
    }
    
    /* Fix separator line */
    .site-main::after {
        display: none !important;
    }
    
    /* Hide any overflow */
    .site-main {
        overflow-x: hidden;
    }
    
    /* Category page adjustments */
    .category-posts {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 22px;
        padding: 15px 0;
    }
    
    /* Prevent content from being too wide */
    img, iframe, video, embed {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix any text overflow */
    p, h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Tablet and Mobile Responsive Enhancements */

/* Tablet specific styles (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Post card layout */
    .story-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        /* padding: 20px !important; */
        margin-bottom: 25px !important;
        position: relative;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .story-content {
        flex: 1;
        padding-right: 180px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .story-thumbnail {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 100px !important;
        height: 100px !important;
        margin: 0 !important;
    }
    
    .story-thumbnail img {
        width: 100px !important;
        height: 100px !important;
        object-fit: cover;
    }
    
    .story-title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .story-excerpt {
        font-size: 16px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
    }
    
    .story-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        line-height: 1.2;
        width: 100%;
        font-size: 14px;
        color: #666;
    }
    
    .story-meta .read-time {
        display: none !important;
    }
    
    .story-date {
        margin-right: 5px;
    }
    
    .story-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .story-action-btn i {
        font-size: 14px;
        color: #666;
    }
    
    .like-button.liked i.fa-heart,
    .like-button i.fa-heart:hover {
        color: #ff0000;
    }
}

/* Updated Mobile Styles (up to 767px) */
@media (max-width: 767px) {
    /* Post card layout */
    .story-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 15px 0 !important;
        margin-bottom: 20px !important;
        position: relative;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .story-content {
        flex: 1;
        /* padding-right: 120px; */
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .story-thumbnail {
        position: absolute;
        top: -4px;
        right: 15px;
        width: 80px !important;
        height: 80px !important;
        margin: 0 !important;
    }
    
    .story-thumbnail img {
        width: 80px !important;
        height: 80px !important;
        object-fit: cover;
    }
    
    .story-title {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .story-excerpt {
        font-size: 14px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 8px;
    }
    
    .story-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        line-height: 1.2;
        width: 100%;
        font-size: 12px;
        color: #666;
    }
    
    .story-meta .read-time {
        display: none !important;
    }
    
    .story-date {
        margin-right: 5px;
    }
    
    .story-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .story-action-btn i {
        font-size: 12px;
        color: #666;
    }
    
    .like-button.liked i.fa-heart,
    .like-button i.fa-heart:hover {
        color: #ff0000;
    }
}

/* Common styles for both mobile and tablet */
@media (max-width: 1023px) {
    /* Ensure story cards have proper spacing */
    .story-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    /* Hide reading time */
    .read-time {
        display: none !important;
    }
    
    /* Format story date to look like relative time */
    .story-meta .story-date {
        color: #757575;
    }
    
    /* Action buttons styling */
    .story-action-btn {
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
    }
    
    /* Ensure icons have proper touch targets */
    .story-action-btn i {
        min-width: 24px;
        min-height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* About Social Media Icons */
.social-media-about {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.social-media-about .social-icon {
    color: #4b5b00;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-media-about .social-icon:hover {
    transform: translateY(-3px);
}

/* 404 Error Page Styles */
.error-404-container {
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
    padding: 40px 20px;
}

.error-404 .page-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.error-404 .page-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
}

.error-404 .error-actions {
    margin: 30px 0;
}

.error-404 .button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4b5b00;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.error-404 .button:hover {
    background-color: #3a4700;
}

.error-404 .widget-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.error-404 .widget-area h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.error-404 .recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-404 .recent-posts-list li {
    margin-bottom: 15px;
}

.error-404 .recent-posts-list a {
    color: #4b5b00;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.error-404 .recent-posts-list a:hover {
    color: #3a4700;
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet (768px to 1023px) */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
    /* Container adjustments */
    .container {
        width: 90%;
        padding: 0 10px;
    }
    
    /* Font adjustments */
    body {
        font-size: 16px;
    }
    
    .single-title {
        font-size: 32px;
        line-height: 1.3;
    }
    
    /* Story grid for listing pages */
    .story-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .story-item {
        margin-bottom: 25px;
    }
    
    .story-title {
        font-size: 20px;
    }
    
    /* Article content spacing */
    .article-content {
        padding: 20px 0;
    }
    
    .article-body {
        font-size: 17px;
        line-height: 1.6;
    }
    
    /* Featured image adjustments */
    .article-featured-image {
        margin-bottom: 20px;
    }
}

/* Mobile (up to 767px) */
@media only screen and (max-width: 767px) {
    /* Container adjustments */
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    /* Header adjustments */
    .site-header {
        padding: 15px 0;
    }
    
    .site-title {
        font-size: 24px;
    }
    
    /* Font size adjustments */
    body {
        font-size: 16px;
    }
    
    h1, .h1 {
        font-size: 28px;
    }
    
    h2, .h2 {
        font-size: 24px;
    }
    
    .single-title {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    /* Story grid for listing pages */
    .story-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .story-item {
        width: 100%;
        position: relative;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .story-title {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .story-excerpt {
        font-size: 14px;
        margin-bottom: 5px;
        -webkit-line-clamp: 2; /* Show only 2 lines on mobile */
    }
    
    .story-meta {
        font-size: 12px;
    }
    
    /* Article content spacing and size */
    .article-content {
        padding: 15px 0;
    }
    
    .article-body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .article-body p,
    .article-body ul,
    .article-body ol {
        margin-bottom: 15px;
    }
    
    /* Entry meta adjustments */
    .entry-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    /* Featured image adjustments */
    .article-featured-image {
        margin: -15px -10px 20px;
        width: calc(100% + 20px);
    }
    
    /* Make sure images don't overflow their containers */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Footer adjustments */
    .site-footer {
        padding: 20px 0;
        text-align: center;
    }
    
    /* Improve touch targets */
    button, 
    .button, 
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 15px;
    }
    
    a {
        padding: 5px 0;
    }
}

/* Small mobile fixes */
@media only screen and (max-width: 480px) {
    .single-title {
        font-size: 24px;
    }
    
    .article-topics .topic-button {
        font-size: 12px;
        padding: 4px 8px;
        margin-right: 5px;
        margin-bottom: 5px;
    }
}

.entry-meta{
    margin-bottom: 0px!important;
}

.entry-meta .author-info{
    width: 100%;
}

.entry-meta .author-info img{
    width: 44px!important;
    height: 44px!important;
    margin-top: 0px;
    margin-bottom: 0px;
    margin: 0!important;
}


.entry-meta .author-info{
    align-items: center!important;
}

.category-footer .social-icons{
    display: flex;
    gap: 15px;
    justify-content: center!important;
    margin: 0;
    max-width: 310px;
    margin: auto;
}

.category-footer .social-icons i{
    font-size: 24px;
}

/* Category page spacing fix */
.category-posts .story-item {
    margin-bottom: 50px;
    padding-bottom: 40px;
    /* border-bottom: 1px solid var(--border-color); */
}

.category-posts .story-item:last-child {
    margin-bottom: 30px;
    border-bottom: none;
}

/* Hide blog button in navigation */
.main-menu li.page-item-blog,
.main-menu li a[href*="/blog"],
.site-navigation a[href*="/blog"] {
    display: none !important;
}

/* Keep proper spacing in responsive views */
@media (max-width: 767px) {
    .category-posts .story-item {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
}

/* Article Meta Author Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-meta {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 2px;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 5px;
}

.action-button,
.story-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #757575;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-button:hover,
.story-action-btn:hover {
    color: #000;
}

.entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-info, .meta-left {
    font-size: 14px;
    color: var(--text-light);
}

/* Mobile responsiveness for author info and actions */
@media (max-width: 576px) {
    .author-info {
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    
    .article-actions {
        margin-left: auto;
    }
}

/* Separator Dots */
.separator-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 60px 0;
}

.separator-dots .dot {
    width: 6px;
    height: 6px;
    background-color: #4b5b00;
    border-radius: 50%;
    opacity: 0.5;
}

/* Footer Styles */
.footer {
    margin-top: 60px;
    text-align: center;
    padding-top: 0;
    max-width: 680px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 40px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-social-icon {
    color: #4b5b00;
    font-size: 24px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.footer-social-icon:hover {
    transform: translateY(-3px);
}

.footer-link {
    font-family: var(--font-ui);
    color: #292929;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #1a8917;
}

.copyright {
    font-family: var(--font-content);
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.copyright p {
    margin: 5px 0;
}

.footer-tagline {
    font-family: var(--font-content);
    color: #666;
    opacity: 0.8;
}

/* Heartbeat Animation */
.heart {
    display: inline-block;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .footer-social-icon {
        font-size: 20px;
    }
}

/* Hide category footer and social separator */
.category-footer {
    display: none !important;
}

.category-social-separator {
    display: none !important;
}