/* Blog Page Styles */
.blog-container {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 80px);
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
}

/* Individual Blog Post Styles */
.blog-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(200, 200, 200, 0.2);
}

.back-to-blog {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.2s ease;
}

.back-to-blog:hover {
    color: var(--primary-color);
}

.blog-post-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.blog-post-header {
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.blog-post-title {
    font-size: var(--font-size-3xl);
    font-weight: 100;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
}

.blog-post-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
}

.blog-post-date {
    font-weight: 500;
}

.blog-post-updated {
    font-style: italic;
    opacity: 0.8;
}

.blog-post-content {
    max-width: none;
    margin: 0;
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-primary);
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
    text-align: left;
}

.blog-post-content p {
    margin-bottom: var(--spacing-lg);
}

.blog-post-author {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(200, 200, 200, 0.3);
    font-style: italic;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.blog-post-author p {
    margin: var(--spacing-xs) 0;
}

.blog-post-author p:first-child {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-style: normal;
}

.author-link {
    color: var(--text-secondary) !important;
    text-decoration: underline;
    font-size: var(--font-size-sm);
    font-style: italic;
    transition: color 0.2s ease;
}

.author-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Mobile adjustments for blog post */
@media (max-width: 767px) {
    .blog-post-nav {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
    
    .blog-post-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .blog-post-content {
        font-size: clamp(0.9rem, 3vw, 1rem);
        line-height: 1.7;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* Extra small mobile adjustments */
@media (max-width: 479px) {
    .blog-post-title {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }
    
    .blog-post-content {
        font-size: clamp(0.875rem, 3.5vw, 0.95rem);
    }
}

.blog-header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: calc(-1 * var(--spacing-md));
    display: flex;
    flex-direction: column;
    /* background-color: var(--bg-tertiary); */
    justify-content: center;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
    min-height: clamp(250px, 40vh, 350px);
    gap: clamp(0.75rem, 2vw, 1rem);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.345);
}

.blog-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    width: 100%;
}

.blog-header h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
    letter-spacing: -0.02em;
}

.blog-header #add-post-btn {
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
}

/* Newsletter Stats */
.newsletter-stats {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.newsletter-stats:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
}

.subscriber-count {
    font-weight: 500;
    white-space: nowrap;
}

.author-headshot-link {
    display: inline-block;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.author-headshot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: block;
}

.author-headshot-link:hover .author-headshot {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.author-headshot-link:hover {
    text-decoration: none;
}

/* Blog Cards - Horizontal Design */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-link:hover {
    text-decoration: none;
}

.blog-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--spacing-lg) 0;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0;
    min-height: 80px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
}

/* Thin top border starting from center */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-color) 20%,
        var(--primary-color) 50%,
        var(--border-color) 80%,
        transparent 100%
    );
}

/* First card should not have top border */
.blog-card:first-child::before {
    display: none;
}

.blog-card-hidden {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.02);
}

.blog-card-hidden .blog-card-title {
    color: var(--text-secondary);
}

.visibility-badge {
    display: inline-block;
    background: rgba(255, 165, 0, 0.2);
    color: #d97706;
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: var(--spacing-xs);
    font-weight: 500;
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: none;
}

/* Date on the left */
.blog-card-date {
    flex: 0 0 140px;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: var(--text-primary);
    font-weight: 500;
    text-align: left;
    padding-left: var(--spacing-md);
}

/* Title left-aligned */
.blog-card-title {
    flex: 1;
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    padding: 0 var(--spacing-md);
    line-height: 1.4;
}

/* Actions on the right (for editors) */
.blog-card-actions {
    flex: 0 0 140px;
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    padding-right: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.blog-card:hover .blog-card-actions {
    opacity: 1;
}

/* Button Styles */
.btn {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    white-space: nowrap;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--error-color);
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    min-height: 28px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.6;
}

.empty-state h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    font-size: var(--font-size-base);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Modal Styles */
.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.blog-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.blog-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    margin: 5vh auto;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.blog-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.blog-modal-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.blog-modal-header .btn {
    min-width: 36px;
    font-size: var(--font-size-lg);
    font-weight: 400;
}

/* Form Styles */
.blog-modal form {
    padding: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 200px;
    line-height: 1.6;
}

.blog-modal-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-lg);
}

/* Formatting Toolbar */
.formatting-toolbar {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.format-btn {
    min-width: 32px;
    min-height: 32px;
    padding: var(--spacing-xs);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.format-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 767px) {
    .blog-header {
        flex-direction: column;
        gap: clamp(0.75rem, 2.5vw, 1rem);
        align-items: stretch;
        padding: clamp(1rem, 4vw, 1.5rem);
        min-height: clamp(180px, 30vh, 220px);
    }
    
    .blog-header h1 {
        text-align: left;
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .blog-header p {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
        line-height: 1.5;
        margin: 0;
    }
    
    .author-headshot {
        width: clamp(50px, 12vw, 70px);
        height: clamp(50px, 12vw, 70px);
    }
    
    .header-actions {
        gap: clamp(0.5rem, 2vw, 0.75rem);
    }
    
    .newsletter-stats {
        padding: 6px 10px;
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }
    
    .blog-card {
        flex-direction: column;
        align-items: flex-start;
        padding: clamp(0.75rem, 3vw, 1rem);
        text-align: left;
    }
    
    .blog-card-date {
        flex: none;
        padding-left: 0;
        margin-bottom: var(--spacing-xs);
        font-size: clamp(0.7rem, 2vw, 0.75rem);
    }
    
    .blog-card-title {
        flex: none;
        text-align: left;
        padding: 0;
        font-size: clamp(0.875rem, 3vw, 1rem);
        font-weight: 600;
        margin-bottom: var(--spacing-sm);
    }
    
    .blog-card-actions {
        flex: none;
        width: 100%;
        justify-content: flex-start;
        padding-right: 0;
        opacity: 1;
    }
    
    .btn {
        font-size: clamp(0.75rem, 2vw, 0.875rem);
        padding: clamp(0.4rem, 2vw, 0.5rem) clamp(0.6rem, 3vw, 1rem);
    }
    
    .blog-modal-content {
        width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
    }
    
    .blog-modal form {
        padding: clamp(0.75rem, 3vw, 1rem);
    }
    
    .blog-modal-actions {
        flex-direction: column;
    }
    
    .blog-modal-header h3 {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
}

/* Small mobile adjustments */
@media (max-width: 479px) {
    .blog-card::before {
        left: 10%;
        right: 10%;
    }
    
    .form-group input,
    .form-group textarea {
        padding: clamp(0.5rem, 2.5vw, 0.75rem);
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }
    
    .blog-header {
        padding: clamp(0.75rem, 5vw, 1rem);
        min-height: clamp(150px, 25vh, 180px);
        gap: 0.75rem;
    }
    
    .blog-header h1 {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
    }
    
    .blog-header p {
        font-size: clamp(0.8rem, 3vw, 0.85rem);
        line-height: 1.4;
    }
    
    .author-headshot {
        width: 45px;
        height: 45px;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .btn-sm {
        font-size: clamp(0.7rem, 2.5vw, 0.75rem);
        padding: clamp(0.3rem, 1.5vw, 0.4rem) clamp(0.5rem, 2.5vw, 0.6rem);
    }
}

/* Blog Layout - Two Column Structure */
.blog-layout {
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.blog-main-content {
    flex: 1;
    max-width: 800px;
    order: 1;
    width: 100%;
}

.blog-sidebar {
    flex: 0 0 20px;
    position: sticky;
    top: 150px;
    order: 2;
}

/* Newsletter Subscription Widget - Now in layout */
.newsletter-widget {
    position: static;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.newsletter-widget.hidden {
    display: none;
}

.newsletter-content {
    padding: var(--spacing-lg);
    position: relative;
}

.newsletter-widget h4 {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm) 0;
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
}

.newsletter-widget p {
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.4;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
    transition: all 0.2s ease;
    min-height: 40px;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.15);
}

.newsletter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-xs);
    white-space: nowrap;
    min-height: 40px;
    flex-shrink: 0;
    min-width: 70px;
}


/* Mobile adjustments for newsletter widget */
@media (max-width: 767px) {
    .blog-layout {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .blog-main-content {
        order: 1; /* Blog cards first */
        max-width: 100%; /* Allow full width on mobile */
        width: 100%;
    }
    
    .blog-sidebar {
        position: static;
        flex: none;
        order: 2; /* Newsletter below blog cards */
        width: 100%;
    }
    
    .newsletter-widget {
        width: 100%;
    }
    
    .newsletter-widget h4 {
        font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    }
    
    .newsletter-widget p {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    }
    
    .newsletter-content {
        padding: clamp(0.75rem, 3vw, 1rem);
    }
    
    .newsletter-form {
        flex-direction: row; /* Keep on same line */
        gap: var(--spacing-xs);
    }
    
    .newsletter-form input[type="email"] {
        margin-bottom: 0;
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
        padding: clamp(0.5rem, 2vw, 0.6rem) clamp(0.6rem, 2.5vw, 0.75rem);
        min-height: 36px;
    }
    
    .newsletter-btn {
        font-size: clamp(0.65rem, 2vw, 0.75rem);
        padding: clamp(0.5rem, 2vw, 0.6rem) clamp(0.6rem, 2.5vw, 0.75rem);
        min-width: 60px;
        min-height: 36px;
    }
}

/* Extra small mobile for newsletter */
@media (max-width: 479px) {
    .blog-main-content {
        max-width: 100%;
    }
    
    .newsletter-content {
        padding: 0.75rem;
    }
    
    .newsletter-widget h4 {
        font-size: 0.9rem;
    }
    
    .newsletter-widget p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .newsletter-form {
        flex-direction: row; /* Keep on same line even on small screens */
        gap: 0.5rem;
    }
    
    .newsletter-form input[type="email"] {
        font-size: 0.75rem;
        padding: 0.5rem 0.6rem;
        min-height: 36px;
    }
    
    .newsletter-btn {
        font-size: 0.65rem;
        padding: 0.5rem 0.6rem;
        min-width: 55px;
        min-height: 36px;
    }
}

/* Blog Feedback Section Styles */
.blog-feedback-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(200, 200, 200, 0.3);
    order: 3; /* Appears after newsletter on mobile */
}

.blog-feedback-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
}

.blog-feedback-section > p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Feedback Form Styles */
.feedback-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-xl);
}

.feedback-form-group {
    margin-bottom: var(--spacing-md);
}

.feedback-form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.feedback-form-group input,
.feedback-form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
    transition: all 0.2s ease;
    resize: vertical;
}

.feedback-form-group input:focus,
.feedback-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.feedback-form-group textarea {
    min-height: 100px;
    line-height: 1.6;
}

.feedback-submit-btn {
    margin-top: var(--spacing-sm);
}

/* Admin Feedback Section */
.admin-feedback-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.admin-feedback-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.feedback-count-badge {
    background: var(--primary-color);
    color: white;
    font-size: var(--font-size-xs);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    display: none;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feedback-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.feedback-item.unread {
    border-left: 4px solid var(--primary-color);
    background: rgba(212, 165, 116, 0.05);
}

.feedback-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.feedback-header strong {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.feedback-email {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-style: italic;
}

.feedback-date {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    margin-left: auto;
}

.unread-badge {
    background: var(--primary-color);
    color: white;
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.feedback-message {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-base);
    white-space: pre-wrap;
}

.mark-read-btn {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    min-height: 28px;
}

.no-feedback {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: var(--spacing-lg);
}

/* Mobile adjustments for feedback section */
@media (max-width: 767px) {
    .blog-feedback-section {
        order: 3; /* Ensure feedback appears after newsletter */
    }
    
    .blog-feedback-section h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }
    
    .feedback-form {
        padding: clamp(0.75rem, 3vw, 1rem);
    }
    
    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .feedback-date {
        margin-left: 0;
    }
    
    .feedback-form-group label {
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    }
    
    .feedback-form-group input,
    .feedback-form-group textarea {
        padding: clamp(0.5rem, 2.5vw, 0.75rem);
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }
    
    .feedback-message {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }
    
    .admin-feedback-section h4 {
        font-size: clamp(1rem, 3.5vw, 1.125rem);
    }
}

/* Extra small mobile for feedback */
@media (max-width: 479px) {
    .feedback-form {
        padding: 0.75rem;
    }
    
    .feedback-form-group input,
    .feedback-form-group textarea {
        padding: 0.6rem;
        font-size: 0.875rem;
    }
    
    .blog-feedback-section h3 {
        font-size: 1.25rem;
    }
}

/* New Here Widget Styles */
.new-here-widget {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-lg);
}

.new-here-content {
    padding: var(--spacing-lg);
    position: relative;
}

.new-here-widget h4 {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm) 0;
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
}

.new-here-widget p {
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.first-post-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.first-post-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Text Size Toggle Styles (Mobile Only) */
.text-size-toggle {
    display: none; /* Hidden by default on desktop */
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    margin-top: var(--spacing-md);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px;
    width: fit-content;
}

.text-size-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.text-size-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--border-color);
}

.text-size-btn .size-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-family: 'Georgia', 'Times New Roman', 'Times', serif;
    transition: color 0.2s ease;
}

/* Different sizes for the A labels */
.text-size-btn[data-size="small"] .size-label {
    font-size: 0.75rem;
}

.text-size-btn[data-size="medium"] .size-label {
    font-size: 0.95rem;
}

.text-size-btn[data-size="large"] .size-label {
    font-size: 1.125rem;
}

/* Active state */
.text-size-btn.active {
    background: var(--primary-color);
    border-radius: 4px;
}

.text-size-btn.active .size-label {
    color: white;
}

.text-size-btn:hover:not(.active) {
    background: rgba(212, 165, 116, 0.1);
    border-radius: 4px;
}

.text-size-btn:hover:not(.active) .size-label {
    color: var(--text-primary);
}

/* Text size classes for content */
.blog-post-content.text-size-small {
    font-size: clamp(0.875rem, 3vw, 0.95rem);
    line-height: 1.7;
}

.blog-post-content.text-size-medium {
    font-size: clamp(1rem, 3.5vw, 1.125rem);
    line-height: 1.75;
}

.blog-post-content.text-size-large {
    font-size: clamp(1.125rem, 4vw, 1.25rem);
    line-height: 1.8;
}

/* Show text size toggle only on mobile devices */
@media (max-width: 767px) {
    .text-size-toggle {
        display: flex;
    }
    
    .new-here-widget h4 {
        font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    }
    
    .new-here-widget p {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    }
    
    .new-here-content {
        padding: clamp(0.75rem, 3vw, 1rem);
    }
}

@media (max-width: 479px) {
    .text-size-toggle {
        margin-top: var(--spacing-sm);
        border-radius: 5px;
        padding: 2px;
    }
    
    .text-size-btn {
        padding: 5px 8px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .text-size-btn[data-size="small"] .size-label {
        font-size: 0.7rem;
    }

    .text-size-btn[data-size="medium"] .size-label {
        font-size: 0.875rem;
    }

    .text-size-btn[data-size="large"] .size-label {
        font-size: 1rem;
    }
    
    .new-here-content {
        padding: 0.75rem;
    }
    
    .new-here-widget h4 {
        font-size: 0.9rem;
    }
    
    .new-here-widget p {
        font-size: 0.75rem;
    }
}

/* Sources Section Styling */
.blog-post-sources {
    margin: 2.5rem 0;
    padding: 0;
    background-color: transparent;
    border: none;
}

.blog-post-sources h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    font-family: 'Georgia', serif;
}

.blog-post-sources ol {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.blog-post-sources ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-post-sources ol li::marker {
    font-weight: 600;
    color: #666;
}

.blog-post-sources ol li:last-child {
    margin-bottom: 0;
}

.blog-post-sources ol li a {
    color: #0066cc;
    text-decoration: underline;
    word-break: break-all;
}

.blog-post-sources ol li a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Mobile responsive styling for sources */
@media (max-width: 768px) {
    .blog-post-sources {
        margin: 2rem 0;
    }
    
    .blog-post-sources h3 {
        font-size: 1.2rem;
    }
    
    .blog-post-sources ol {
        padding-left: 1.2rem;
    }
    
    .blog-post-sources ol li {
        font-size: 0.95rem;
        margin-bottom: 0.65rem;
    }
}
