/* Alex Theme - Mobile First Responsive CSS */

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

article {
    margin: 0;
    padding: 0;
}

div, h1, h2, h3, h4, h5, h6, time, a {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'PT Sans', sans-serif;
    color: #fff;
    background-color: var(--background-color);
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Site Wrapper */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background-color: var(--background-color);
    padding: 2rem 0 1rem 0;
}

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

.site-logo .logo-link {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-image {
    height: 40px;
    width: auto;
}

/* Navigation */
.site-navigation {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Desktop Navigation */
.nav-list {
    display: none;
    list-style: none !important;
    flex-direction: row !important;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-bottom: 0;
    list-style: none !important;
    display: inline-block;
}

.nav-list li::before {
    display: none !important;
}

.nav-list a {
    color: #ffbd37;
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #5200ff;
}

/* Newsletter Button */
.newsletter-button {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #5200ff;
    color: #ffbd37;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Chivo', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-left: 1rem;
    align-self: center;
}

.newsletter-button:hover {
    background: #ffbd37;
    color: #5200ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: right 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    right: 0;
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

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

.mobile-logo-image {
    height: 30px;
    width: auto;
}

.mobile-logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

.mobile-menu-close {
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: #fff !important;
    padding: 0 !important;
    width: 30px;
    height: 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    position: relative;
    z-index: 10;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.mobile-nav-list li {
    margin: 0;
    border-bottom: 1px solid #333;
}

.mobile-nav-list li:last-child {
    border-bottom: none !important;
}

.mobile-nav-list a {
    display: block;
    padding: 1.5rem 2rem;
    color: #ffbd37;
    text-decoration: underline;
    text-decoration-color: #5200ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3rem;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.mobile-nav-list a:hover {
    background-color: #333;
}

/* Mobile Social Icons */
.mobile-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
    margin-top: 1rem;
}

.mobile-social a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-social a:hover {
    color: #ffbd37;
}

/* Mobile Newsletter Button */
.mobile-newsletter-button {
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.newsletter-button.mobile {
    display: inline-block;
    text-align: center;
    margin: 0;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background: #5200ff;
    color: #ffbd37;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Chivo', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    max-width: 250px;
}

.newsletter-button.mobile:hover {
    background: #ffbd37;
    color: #5200ff;
}

/* Mobile Login Link */
.mobile-login-link {
    color: #ffbd37;
    text-decoration: none;
    font-family: 'Chivo', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: underline;
    text-decoration-color: #5200ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3rem;
    transition: all 0.3s ease;
}

.mobile-login-link:hover {
    color: #5200ff;
    text-decoration-color: #ffbd37;
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 2rem 0;
}

/* Home Page */
.latest-post {
    max-width: 800px;
    margin: 0 auto;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.latest-post .post-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.latest-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.latest-post:hover .post-image img {
    transform: scale(1.05);
}

.latest-post .post-content {
    padding: 2rem;
}

.latest-post .post-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.latest-post .post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.latest-post .post-title a:hover {
    color: #007acc;
}

.latest-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.latest-post .post-excerpt {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.latest-post .read-more {
    color: #007acc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.latest-post .read-more:hover {
    color: #005999;
}

/* Biography Section */
.biography-section {
    margin-bottom: 3rem;
}

.biography-content {
    background-color: #5200ff;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}

.biography-avatar {
    flex-shrink: 0;
}

.biography-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.biography-text {
    flex: 1;
    text-align: left;
}

.biography-text h1,
.biography-text h2,
.biography-text h3,
.biography-text h4,
.biography-text h5,
.biography-text h6 {
    color: white;
    margin: 0 0 0.5rem 0;
}

.biography-text p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.biography-text p:last-child {
    margin-bottom: 0;
}

.biography-text a {
    color: #ffbd37;
    text-decoration: underline;
}

.biography-text a:hover {
    color: #ffd700;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
}


.post-item {
    display: table;
    width: 100%;
    table-layout: fixed;
    height: 100px;
    padding: 1.5rem 0;
}

.post-image {
    display: table-cell;
    width: 100px;
    vertical-align: middle;
    text-align: center;
}

.post-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 3px;
}

.post-content {
    display: table-cell;
    vertical-align: middle;
    padding-left: 2rem;
}

.post-category {
    font-size: 0.8rem;
    color: #ffbd37;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-decoration: underline;
    text-decoration-color: #5200ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.post-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.8rem !important;
    font-weight: 600;
    line-height: 1 !important;
}

.post-title a {
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.post-title a:hover,
.post-title a:focus,
.post-title a:active {
    text-decoration: underline;
    text-decoration-color: #ffbd37;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3rem;
}

.post-date {
    font-size: 0.85rem;
    color: #999;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Post Page */
.post-page {
    max-width: 800px;
    margin: 0 auto;
}

.post-page .post-header {
    margin-bottom: 2rem;
}

.post-page .post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-page .post-category {
    font-size: 0.8rem;
    color: #ffbd37;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: underline;
    text-decoration-color: #5200ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.post-page .post-separator {
    color: #999;
    font-size: 0.9rem;
}

.post-page .post-date {
    color: #999;
    font-size: 0.9rem;
}

.post-page .post-title {
    font-size: 3.5rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem !important;
    line-height: 1.2;
    color: #fff;
}

.post-page .post-excerpt {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.post-featured-image {
    margin-bottom: 2rem;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-page .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    padding: 0;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.post-page .post-content h2,
.post-page .post-content h3 {
    font-size: 1.9rem !important;
    margin: 2rem 0 0.5rem 0 !important;
    margin-top: 2rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-content blockquote {
    border-left: 4px solid #007acc;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.post-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.post-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Author Card */
.author-card {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 2rem;
}

.author-card .author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-bio {
    color: #666;
    margin-bottom: 0.5rem;
}

.author-website {
    color: #007acc;
    text-decoration: none;
}

/* Page Content */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-family: 'Chivo', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffbd37;
    text-shadow: 2px 2px 0px #5200ff;
    text-align: left;
    margin-bottom: 1rem;
}

.page-featured-image {
    margin-bottom: 2rem;
    text-align: center;
}

.page-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    padding: 0 1rem;
    width: 100%;
}

.page-body p {
    margin-bottom: 1.5rem;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Chivo', sans-serif;
    font-weight: 600;
}

.page-body h1 {
    font-size: 2rem;
    color: #ffbd37;
    text-shadow: 1px 1px 0px #5200ff;
}

.page-body h2 {
    font-size: 1.7rem;
    color: #ffbd37;
    text-shadow: 1px 1px 0px #5200ff;
}

.page-body h3 {
    font-size: 1.4rem;
    color: #ffbd37;
    text-shadow: 1px 1px 0px #5200ff;
}

.page-body h4,
.page-body h5,
.page-body h6 {
    color: #e0e0e0;
    font-size: 1.2rem;
}

.page-body ul,
.page-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body blockquote {
    border-left: 4px solid #ffbd37;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #c0c0c0;
}

.page-body code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.page-body pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.page-body pre code {
    background: none;
    padding: 0;
}

/* Footer */
.site-footer {
    background-color: var(--background-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Footer Navigation */
.footer-navigation {
    display: flex;
    align-items: center;
}

.footer-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-navigation li {
    margin: 0;
}

.footer-navigation a {
    color: #ffbd37;
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    font-family: 'Chivo', sans-serif;
    font-size: 0.9rem;
    text-decoration: underline;
    text-decoration-color: #5200ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3rem;
}

.footer-navigation a:hover,
.footer-navigation a:focus {
    color: #ffbd37;
}

.footer-text {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
}

.footer-text a {
    color: #007acc;
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.footer-social a:hover {
    color: #ffbd37;
}





/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #007acc;
    color: #fff;
    border-color: #007acc;
}

.pagination .current {
    background-color: #007acc;
    color: #fff;
    border-color: #007acc;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem 0;
    color: #ccc;
}

/* Responsive Design - Mobile */
@media (max-width: 767px) {
    .biography-content {
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .biography-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .biography-text {
        text-align: left;
    }
    
    .posts-list {
        max-width: 100%;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .post-item {
        height: 100px;
        padding: 0.4rem 0;
    }
    
    .post-image {
        width: 100px;
    }
    
    .post-image img {
        width: 100px;
        height: 100px;
        border-radius: 2px;
    }
    
    .post-content {
        padding-left: 1.5rem;
    }
    
    .post-title {
        font-size: 1.3rem !important;
    }
    
    .post-page .post-title {
        font-size: 2.5rem !important;
    }
    
    .post-page .post-content h2,
    .post-page .post-content h3 {
        font-size: 1.6rem !important;
        margin: 1.5rem 0 0.5rem 0 !important;
    }
    
    .footer-navigation ul {
        flex-direction: row;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-navigation a {
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Hide desktop newsletter button on mobile */
    .newsletter-button:not(.mobile) {
        display: none;
    }
    
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    /* Show desktop navigation */
    .nav-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 3rem !important;
        list-style: none !important;
        align-items: center;
    }
    
    .nav-list li {
        list-style: none !important;
        display: inline-block !important;
        margin-bottom: 0 !important;
        margin-right: 1.5rem;
    }
    
    .nav-list li:last-child {
        margin-right: 0;
    }
    
    .nav-list li::before {
        display: none !important;
    }
    
    /* Hide mobile menu toggle */
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Show desktop newsletter button */
    .newsletter-button:not(.mobile) {
        display: inline-block;
    }
    
    .post-meta {
        justify-content: flex-start;
    }
    
    .author-card {
        flex-direction: row;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    
    .biography-text {
        max-width: 500px;
    }
    
    .post-title {
        font-size: 3rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-body {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (min-width: 768px) {
    .page-body {
        padding: 0 2rem;
    }
    
    .page-body h1 {
        font-size: 1.7rem;
    }
    
    .page-body h2 {
        font-size: 1.5rem;
    }
    
    .page-body h3 {
        font-size: 1.3rem;
    }
}

/* Koenig Editor Styles */
.kg-width-wide {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Responsive YouTube embeds */
iframe[src*="youtube.com"],
iframe[src*="youtu.be"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Fallback for older browsers without aspect-ratio support */
@supports not (aspect-ratio: 16/9) {
    iframe[src*="youtube.com"],
    iframe[src*="youtu.be"] {
        height: 315px;
    }
    
    @media (max-width: 768px) {
        iframe[src*="youtube.com"],
        iframe[src*="youtu.be"] {
            height: 200px;
        }
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Force H2 and H3 styling for blog posts */
article.post-page .post-content h2,
article.post-page .post-content h3 {
    font-size: 1.9rem !important;
    margin-top: 2rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

/* Link styling for blog posts and pages */
.post-page .post-content a,
.page-content a {
    text-decoration: none;
    color: #e0e0e0;
    position: relative;
    font-weight: bold;
}

.post-page .post-content a::before,
.page-content a::before {
    content: '';
    background-color: hsl(259, 100%, 50%);
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 8px;
    z-index: -1;
    transition: all .3s ease-in-out;
}

.post-page .post-content a:hover::before,
.page-content a:hover::before {
    bottom: 0;
    height: 100%;
}

/* Blog post content text color */
.post-page .post-content {
    color: #e0e0e0;
}

/* Keep title white */
.post-page .post-title {
    color: #fff;
}

/* Microblog post page styling */
.microblog-page-meta {
    margin-bottom: 1.5rem;
}

.microblog-page-content {
    background-color: #5200ff;
    border-radius: 12px;
    color: white;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.microblog-page-avatar {
    flex-shrink: 0;
}

.microblog-page-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.microblog-page-text {
    flex: 1;
    font-family: 'Space Mono', monospace !important;
    line-height: 1.6;
}

.microblog-page-text p {
    margin: 0 0 1rem 0;
    font-family: 'Space Mono', monospace !important;
}

.microblog-page-text img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}

.microblog-page-text figcaption,
.microblog-page-text .kg-image-caption {
    color: #ccc;
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-family: 'Space Mono', monospace !important;
}


/* Mobile microblog page adjustments */
@media (max-width: 767px) {
    .microblog-page-content {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .microblog-page-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .microblog-page-text {
        font-size: 0.9rem;
    }
}

/* Excerpt color */
.post-page .post-excerpt {
    color: #e0e0e0;
}

/* Chivo Font - Weight 700 */
/* Post titles on homepage */
.post-title {
    font-family: 'Chivo', sans-serif;
    font-weight: 700;
}

/* Menu items */
.nav-list a,
.mobile-nav-list a {
    font-family: 'Chivo', sans-serif;
}

/* Headings (h2, h3) */
h2, h3 {
    font-family: 'Chivo', sans-serif;
    font-weight: 700;
}

/* Titles on blog page and pages */
.post-page .post-title,
.page-title {
    font-family: 'Chivo', sans-serif;
    font-weight: 700;
}

/* Homepage post-list title spacing */
.home-page .posts-list .post-title {
    margin: 0.5rem 0 0 0 !important;
}

/* Microblog post styling */
.microblog-post {
    display: table !important;
    width: 100%;
    table-layout: fixed;
    padding: 1.5rem 0;
}

.microblog-avatar {
    display: table-cell;
    width: 40px;
    vertical-align: top;
    text-align: center;
}

.microblog-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.microblog-content-wrapper {
    display: table-cell;
    vertical-align: top;
    padding-left: 1rem;
}

.microblog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.microblog-category {
    font-size: 0.8rem;
    color: #ffbd37;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-decoration: underline;
    text-decoration-color: #5200ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.microblog-link {
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'PT Sans', sans-serif;
    transition: color 0.2s ease;
}

.microblog-link:hover {
    color: #ffbd37;
}

.microblog-link i {
    margin-left: 0.25rem;
    font-size: 0.7rem;
}

.microblog-separator {
    color: #999;
    font-size: 0.8rem;
}

.microblog-date {
    color: #999;
    font-size: 0.8rem;
}

.microblog-content {
    font-family: 'Space Mono', monospace !important;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1rem;
    width: 100%;
}

.microblog-content p {
    margin: 0 0 1rem 0;
    font-family: 'Space Mono', monospace !important;
}

.microblog-content img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 0.5rem 0;
    display: block;
}

.microblog-content figcaption,
.microblog-content .kg-image-caption {
    color: #666;
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.25rem;
    margin-bottom: 0;
    font-family: 'Space Mono', monospace !important;
}

/* Link styling for microblog posts - same as blog post pages */
.microblog-content a {
    text-decoration: none;
    color: #e0e0e0;
    position: relative;
    font-weight: bold;
}

.microblog-content a::before {
    content: '';
    background-color: hsl(259, 100%, 50%);
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 8px;
    z-index: -1;
    transition: all .3s ease-in-out;
}

.microblog-content a:hover::before {
    bottom: 0;
    height: 100%;
}


.microblog-content p:last-child {
    margin-bottom: 0;
}

/* Hide titles in microblog posts */
.microblog-post .post-title {
    display: none !important;
}

/* Mobile microblog adjustments */
@media (max-width: 767px) {
    .microblog-post {
        padding: 1rem 0;
    }
    
    .microblog-avatar {
        width: 32px;
    }
    
    .microblog-avatar img {
        width: 32px;
        height: 32px;
    }
    
    .microblog-content-wrapper {
        padding-left: 0.75rem;
    }
    
    .microblog-content {
        font-size: 0.9rem;
    }
}

/* Review post styling */
.review-post {
    margin: 2rem 0;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.review-meta .review-category {
    font-size: 0.8rem;
    color: #ffbd37;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-decoration: underline;
    text-decoration-color: #5200ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.review-meta .review-date {
    color: #999;
    font-size: 0.9rem;
}

.review-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.review-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(19, 19, 19, 0.8) 0%, rgba(19, 19, 19, 0.6) 100%);
    z-index: 1;
}

.review-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.review-poster {
    flex-shrink: 0;
}

.review-poster img,
.review-poster-img {
    width: 140px;
    height: auto;
    max-height: 210px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.review-poster-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    padding: 1rem;
}

.review-poster-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.review-poster-placeholder span {
    font-size: 0.8rem;
    line-height: 1.2;
}

.review-info {
    flex: 1;
    color: #fff;
}


.review-title {
    font-family: 'Chivo', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    color: #fff;
}

.review-rating {
    display: flex;
    gap: 0.25rem;
}

.review-rating i {
    color: #ffbd37;
    font-size: 1.2rem;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.review-rating i.filled {
    opacity: 1;
}

.review-rating i.half,
.review-rating i.fa-star-half {
    opacity: 1;
    color: #ffbd37;
}

/* New Review Layout - Microblog Style */
.review-post {
    display: table !important;
    width: 100%;
    table-layout: fixed;
    padding: 1.5rem 0;
    margin: 0;
}

.review-post-link {
    display: table;
    width: 100%;
    table-layout: fixed;
    text-decoration: none;
    color: inherit;
}

.review-avatar {
    display: table-cell;
    width: 40px;
    vertical-align: top;
    text-align: center;
}

.review-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-content-wrapper {
    display: table-cell;
    vertical-align: top;
    padding-left: 1rem;
}

.review-action {
    color: #999;
    font-size: 0.8rem;
    font-family: 'PT Sans', sans-serif;
}

.review-poster-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Mobile review adjustments */
@media (max-width: 767px) {
    .review-meta {
        margin-bottom: 0.75rem;
    }
    
    .review-meta .review-date {
        font-size: 0.8rem;
    }
    
    .review-background {
        min-height: 90px;
        padding: 0.25rem;
    }
    
    .review-content {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        align-items: flex-start;
        width: 100%;
    }
    
    .review-poster {
        flex-shrink: 0;
    }
    
    .review-poster img,
    .review-poster-img {
        width: 80px;
        height: auto;
        max-height: 120px;
        object-fit: contain;
    }
    
    .review-poster-placeholder i {
        font-size: 1.5rem;
    }
    
    .review-poster-placeholder span {
        font-size: 0.7rem;
    }
    
    .review-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .review-rating i {
        font-size: 1rem;
    }
    
    /* New mobile review layout */
    .review-avatar {
        width: 32px;
    }
    
    .review-avatar img {
        width: 32px;
        height: 32px;
    }
    
    .review-content-wrapper {
        padding-left: 0.75rem;
    }
    
    .review-poster-content {
        gap: 1rem;
    }
    
    .review-poster img,
    .review-poster-img {
        width: 80px;
        height: auto;
        max-height: 120px;
        object-fit: contain;
    }
    
    .review-poster-placeholder i {
        font-size: 1.2rem;
    }
    
    .review-poster-placeholder span {
        font-size: 0.6rem;
    }
    
    .review-title {
        font-size: 1.4rem;
    }
    
    .review-rating i {
        font-size: 0.9rem;
    }
}

/* FORCE MICROBLOG PAGE LINK STYLES - HIGHEST PRIORITY */
.microblog-page .microblog-page-text a {
    text-decoration: none !important;
    color: #fff !important;
    position: relative !important;
    font-weight: bold !important;
}

.microblog-page .microblog-page-text a::before {
    content: '' !important;
    background-color: #ff0000 !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 3px !important;
    width: 100% !important;
    height: 8px !important;
    z-index: -1 !important;
    transition: all .3s ease-in-out !important;
}

.microblog-page .microblog-page-text a:hover::before {
    bottom: 0 !important;
    height: 100% !important;
    background-color: #ff0000 !important;
}

/* Override any conflicting styles */
.microblog-page .microblog-page-text a::before {
    background-color: #ff0000 !important;
}

.microblog-page .microblog-page-text a:hover::before {
    background-color: #ff0000 !important;
}

/* JavaScript-added class for maximum specificity */
.microblog-link-custom {
    text-decoration: none !important;
    color: #fff !important;
    position: relative !important;
}

.microblog-link-custom::before {
    content: '' !important;
    background-color: #ff0000 !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 3px !important;
    width: 100% !important;
    height: 8px !important;
    z-index: -1 !important;
    transition: all .3s ease-in-out !important;
}

.microblog-link-custom:hover::before {
    bottom: 0 !important;
    height: 100% !important;
    background-color: #ff0000 !important;
}

/* Microblog page link styling - stripe effect using background-size */
.microblog-page a {
    text-decoration: none !important;
    color: #fff !important;
    font-weight: bold !important;
    background: linear-gradient(to top, hsl(40, 100%, 61%) 0%, hsl(40, 100%, 61%) 30%, transparent 30%) !important;
    background-size: 100% 8px !important;
    background-position: 0 100% !important;
    background-repeat: no-repeat !important;
    transition: background-size 0.3s ease !important;
    padding: 0 !important;
}

.microblog-page a:hover {
    background-size: 100% 100% !important;
}

/* Review post page styling */
.review-page-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.review-page-poster {
    flex-shrink: 0;
}

.review-page-poster img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.review-page-poster-placeholder {
    width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    padding: 1rem;
}

.review-page-poster-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.review-page-poster-placeholder span {
    font-size: 0.9rem;
}

.review-page-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-page-info .post-category {
    font-size: 0.8rem;
    color: #ffbd37;
    text-decoration: underline;
    text-decoration-color: #5200ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0 !important;
}

.review-page-info .post-title {
    margin: 0 0 0.75rem 0 !important;
}

.review-page-rating {
    display: flex;
    gap: 0.25rem;
    margin: 0 0 0.75rem 0 !important;
}

.review-page-info .post-date {
    color: #999;
    font-size: 0.9rem;
    font-family: 'PT Sans', sans-serif;
    margin: 0 !important;
}

.review-page-rating i {
    color: #ffbd37;
    font-size: 1.5rem;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.review-page-rating i.filled {
    opacity: 1;
}

.review-page-rating i.fa-star-half {
    opacity: 1;
}


/* Mobile review page adjustments */
@media (max-width: 767px) {
    .review-page-header {
        gap: 1rem;
    }
    
    .review-page-poster img {
        width: 100px;
        height: 150px;
        border-radius: 6px;
    }
    
    .review-page-poster-placeholder {
        width: 100px;
        height: 150px;
    }
    
    .review-page-info .post-title {
        font-size: 2rem !important;
        margin: 0 0 0.75rem 0 !important;
        line-height: 1.2;
    }
    
    .review-page-rating {
        margin: 0 0 0.75rem 0 !important;
    }
    
    .review-page-rating i {
        font-size: 1.2rem;
    }
}

