@media (max-width: 600px) {
    .site-content {
        flex-direction: column;
        gap: 0;
    }
    .post-card {
        width: 100% !important;
        margin-right: 0 !important;
    }
}
/*
Theme Name: SCDev Theme Sheer
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A mobile-first single sidebar WordPress theme with fixed navigation and customizable layout
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scdev-sheer
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.2;
    color: #333;
    display: flex;
    justify-content: center;
    background: #2c3e50;
    margin: 0;
    padding: 0;
}

#page {
    width: 1130px;
    max-width: 100%;
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    width: 100%;
    height: 50px;
    background: #34495e;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #ecf0f1;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-header a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
}

.top-header .social-icons a {
    font-size: 16px;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-facebook { color: #1877F2; }
.social-facebook:hover { opacity: 0.8; }

.social-instagram { color: #E4405F; }
.social-instagram:hover { opacity: 0.8; }

.social-tiktok { color: #000000; }
.social-tiktok:hover { opacity: 0.8; }

.social-twitter { color: #000000; }
.social-twitter:hover { opacity: 0.8; }

.social-youtube { color: #FF0000; }
.social-youtube:hover { opacity: 0.8; }

.social-linkedin { color: #0A66C2; }
.social-linkedin:hover { opacity: 0.8; }

.social-pinterest { color: #E60023; }
.social-pinterest:hover { opacity: 0.8; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

.sidebar-toggle {
    display: none;
}

/* Main Content Wrapper */
.main-wrapper {
    display: flex;
    flex: 1;
    background: transparent;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #fff;
    color: #333;
    position: sticky;
    top: 0;
    height: 500px;
    overflow-y: auto;
}
.slider-reveal-btn,
.background-slider-btn,
.custom-slider-btn,
.scroll-to-top-btn {
    position: fixed;
    width: 40px;
    height: 40px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slider-reveal-btn:hover,
.background-slider-btn:hover,
.custom-slider-btn:hover,
.scroll-to-top-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.slider-reveal-btn {
    top: 70px;
    right: 20px;
}

.background-slider-btn {
    top: 140px;
    right: 20px;
}

.custom-slider-btn {
    top: 210px;
    right: 20px;
}

.scroll-to-top-btn {
    bottom: 80px;
    right: 20px;
}

.site-branding {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    transition: background 0.3s;
    height: 130px;
    box-sizing: border-box;
}

.site-branding:hover {
    background: #e9ecef;
}

.login-profile-branding {
    justify-content: center;
}

.login-profile-branding:hover {
    background: transparent;
}

/* User Button Styles */
.scdev-user-button {
    width: 100%;
}

.user-button-wrapper {
    position: relative;
}

.user-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.user-toggle-btn:hover {
    background: #ecf0f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.user-avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.user-arrow {
    font-size: 10px;
    color: #7f8c8d;
    transition: transform 0.3s;
}

.user-button-wrapper.active .user-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 100;
}

.user-button-wrapper.active .user-dropdown {
    display: block;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.3s;
    border-bottom: 1px solid #ecf0f1;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: #ecf0f1;
}

.user-icon {
    font-size: 18px;
}

.user-auth-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.user-login-btn,
.user-register-btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.user-login-btn {
    background: #fff;
    color: #3498db;
    border: 2px solid #3498db;
}

.user-login-btn:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.custom-logo {
    max-width: 120px;
    max-height: 90px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 5px;
    object-fit: contain;
}

.site-title {
    font-size: 20px;
    margin: 5px 0;
    color: #2c3e50;
    text-decoration: none;
    line-height: 1.2;
}

.site-branding .site-title {
    color: #2c3e50;
}

.site-description {
    font-size: 11px;
    color: #e7ebee;
    margin: 3px 0 0;
    line-height: 1.2;
}

/* Navigation Menu */
.main-navigation {
    padding: 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    border-bottom: 1px solid #ecf0f1;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background: #ecf0f1;
    color: #3498db;
}

/* Sidebar Custom Content */
.sidebar-custom-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(400px - 160px);
}

.sidebar-custom-content p {
    margin-bottom: 15px;
}

/* Content Area */
.content-wrapper {
    width: 850px !important;
    min-width: 850px !important;
    max-width: 850px !important;
    background: #fff;
    flex: 1;
}

.site-content {
    padding: 0 20px;
}

.site-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Pagination should span full width */
.pagination {
    clear: both !important;
    width: 100% !important;
    display: block !important;
    margin-top: 40px;
    text-align: center;
}

/* Posts */
.post {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ecf0f1;
    width: 100%;
    max-width: 100%;
}

.post:last-child {
    border-bottom: none;
}

/* Remove default post styles for cards */
.post-card.post {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    max-width: 100% !important;
}

/* Post Card Layout for Archives */
.post-card {
    background: #fff !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    border: 1px solid #ecf0f1 !important;
    display: inline-block !important;
    width: 48% !important;
    vertical-align: top !important;
    margin-right: 2% !important;
}

.post-card:nth-child(2n) {
    margin-right: 0 !important;
}

/* Override ALL WordPress default post classes */
article.post-card,
article.post-card.post,
article.post-card.hentry,
article.post-card.type-post,
article.post-card.status-publish {
    display: inline-block !important;
    width: 48% !important;
    float: none !important;
    clear: none !important;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.post-card .post-thumbnail {
    margin: 0;
    height: 260px;
    overflow: hidden;
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.post-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
    padding: 20px;
    color: #fff;
}

.post-card-overlay .entry-title {
    color: #fff !important;
    font-size: 1.3rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.post-card-overlay .entry-content {
    color: #ffe066;
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.post-card .entry-meta {
    padding: 10px;
    background: #f8f9fa;
    margin: 0;
}

/* Single Post Spacing */
.single .entry-header {
    margin-bottom: 15px;
}

.single .entry-content {
    margin-bottom: 15px;
}

.single .entry-footer {
    margin-top: 15px;
    margin-bottom: 15px;
}

.post-card .post-thumbnail a {
    display: block;
    height: 100%;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-thumbnail-fallback {
    background: #f8f9fa;
}

.fallback-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fallback-gradient::before {
    content: '📝';
    font-size: 60px;
    opacity: 0.3;
}

.post-card-content {
    padding: 10px;
    flex: 1;
    line-height: 1.2;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.entry-title a:hover {
    color: #3498db;
}

.entry-meta {
    font-size: 14px;
    color: #c1cbcc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top:10px;
}

.entry-meta .author-avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.entry-meta span {
    margin-right: 15px;
}

.post-thumbnail {
    margin-bottom: 20px;
    margin-top: 15px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    margin-bottom: 20px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-footer {
    margin-top: 20px;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s;
}

.read-more:hover {
    background: #2980b9;
}

.cat-links,
.tags-links {
    display: block;
    margin-bottom: 10px;
    color: #c5d2d3;
    font-size: 14px;
}

/* Footer */
.site-footer {
    width: 100%;
    background: #34495e;
    padding: 20px;
    color: #ecf0f1;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    font-size: 14px;
}

.footer-left {
    order: 1;
}

.footer-left p {
    margin: 0;
}

.footer-right {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.footer-right li {
    display: inline-block;
}

.footer-right a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: #3498db;
}

.night-mode-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    order: 3;
}

.night-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

body.night-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.night-mode .sidebar {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #e0e0e0;
}

body.night-mode .content-wrapper {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #e0e0e0;
}

body.night-mode .top-header {
    background: #1a1a1a;
}

body.night-mode .site-footer {
    background: #1a1a1a;
}

body.night-mode .post {
    border-bottom-color: #333;
}

body.night-mode .entry-title a {
    color: #e0e0e0;
}

body.night-mode .entry-title a:hover {
    color: #3498db;
}

body.night-mode .main-navigation a {
    color: #e0e0e0;
}

body.night-mode .main-navigation a:hover {
    background: #333;
}

body.night-mode .site-title {
    color: #e0e0e0;
}

body.night-mode .site-description {
    color: #e4e3e3;
}

.reveal-icon {
    transition: transform 0.3s;
}

body.slider-revealed .reveal-icon {
    transform: rotate(180deg);
}

body.slider-revealed #page {
    transform: translateX(-100%);
    opacity: 0;
}

#page {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* Background Slider Wrapper - Hidden until button is clicked */
.background-slider-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.background-slider-wrapper img {
    height: 520px !important;
    object-fit: contain;
}

body.background-slider-active .background-slider-wrapper {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Custom Slider Overlay */
.custom-slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.5s;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.custom-slider-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-slider-content {
    width: 90%;
    height: 85%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-slider-content > * {
    width: 100%;
    height: 100%;
}

.slider-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(231, 76, 60, 0.9);
    border: none;
    color: #fff;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.slider-close-btn:hover {
    background: rgba(192, 57, 43, 1);
    transform: rotate(90deg);
}

.custom-header-content,
.custom-footer-content {
    width: 100%;
}

/* Comments Section */
.comments-area {
    margin-top: 20px;
    padding-top: 40px;
    border-top: 2px solid #ecf0f1;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.comment-list::-webkit-scrollbar {
    width: 8px;
}

.comment-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.comment-list::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

.comment-list::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.comment-body {
    display: flex;
    gap: 15px;
}

.comment-author img,
.avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.comment-content-wrapper {
    flex: 1;
}

.comment-meta {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.comment-author-name {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.comment-author-name .fn {
    font-style: normal;
    font-weight: 600;
    color: #2c3e50;
}

.comment-author-name .says {
    font-weight: normal;
    color: #7f8c8d;
}

.comment-metadata {
    font-size: 13px;
    color: #7f8c8d;
}

.comment-metadata a {
    color: #7f8c8d;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #3498db;
}

.comment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.edit-link {
    display: inline-block;
}

.edit-link a,
.comment-reply-link,
.comment-delete-link {
    font-size: 13px;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #3498db;
    transition: all 0.3s;
    display: inline-block;
    color: #3498db;
}

.comment-delete-link {
    color: #e74c3c;
    border-color: #e74c3c;
}

.edit-link a:hover,
.comment-reply-link:hover {
    background: #3498db;
    color: #fff;
}

.comment-delete-link:hover {
    background: #e74c3c;
    color: #fff;
}

.comment-content {
    margin-bottom: 10px;
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 10px;
}

.children {
    list-style: none;
    margin-left: 40px;
    margin-top: 20px;
}

.children .comment-reply-link {
    display: none;
}

/* Delete Confirmation Modal */
.delete-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.delete-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.delete-modal-header {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.delete-modal-body {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.delete-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.delete-modal-cancel,
.delete-modal-confirm {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.delete-modal-cancel {
    background: #ecf0f1;
    color: #2c3e50;
}

.delete-modal-cancel:hover {
    background: #bdc3c7;
}

.delete-modal-confirm {
    background: #e74c3c;
    color: #fff;
}

.delete-modal-confirm:hover {
    background: #c0392b;
}

/* Comment Form */
.comment-respond {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.comment-reply-title small {
    font-size: 14px;
    font-weight: normal;
}

.comment-reply-title small a {
    color: #3498db;
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid #3498db;
    border-radius: 4px;
    transition: all 0.3s;
}

.comment-reply-title small a:hover {
    background: #3498db;
    color: #fff;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: #3498db;
}

.form-submit {
    margin-top: 10px;
}

.submit {
    background: #3498db;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit:hover {
    background: #2980b9;
}

.logged-in-as {
    display: none;
}

.logged-in-as a {
    color: #3498db;
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

/* Inline Comment Edit Form */
.comment-edit-form {
    margin: 10px 0;
}

.comment-edit-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-edit-textarea:focus {
    outline: none;
    border-color: #3498db;
}

.comment-edit-actions {
    display: flex;
    gap: 10px;
}

.comment-save-btn,
.comment-cancel-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-save-btn {
    background: #3498db;
    color: #fff;
}

.comment-save-btn:hover {
    background: #2980b9;
}

.comment-save-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.comment-cancel-btn {
    background: #ecf0f1;
    color: #2c3e50;
}

.comment-cancel-btn:hover {
    background: #bdc3c7;
}

/* Override Composer Plugin Width Constraints */
/* Force Composer to be flexible and fill the content area */
.site-content .fl-builder-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-content .fl-row,
.site-content .fl-row-content-wrap,
.site-content .fl-row-content {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Force fixed-width rows to be full width */
.site-content .fl-row-fixed-width,
.site-content .fl-row-fixed-width .fl-row-content-wrap,
.site-content .fl-row-fixed-width .fl-row-content {
    max-width: none !important;
    width: 100% !important;
}

.site-content .fl-col-group,
.site-content .fl-col {
    max-width: 100% !important;
}

.site-content .fl-module {
    max-width: 100% !important;
}

/* Single Post Padding */
.single .site-content {
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}

/* Responsive */
@media (max-width: 1180px) {
    #page {
        width: 100%;
    }
    
    .top-header {
        position: relative;
        justify-content: center;
    }
    
    .top-header-left {
        display: none;
    }
    
    .top-header-right {
        margin: 0 auto;
    }
    
    .main-wrapper {
        flex-direction: column;
        position: relative;
    }
    
    .sidebar-toggle {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1001;
        background: #3498db;
        color: #fff;
        border: none;
        padding: 15px;
        cursor: pointer;
        font-size: 32px;
        font-weight: normal;
        text-align: center;
        width: 100%;
    }
    
    .sidebar-toggle::before {
        content: '👁️';
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .sidebar.active {
        height: auto;
        max-height: 80vh;
    }
    
    .custom-logo-link,
    .custom-logo,
    .site-logo,
    .site-branding .custom-logo {
        display: none !important;
    }
    
    .site-branding {
        height: auto;
        padding: 20px;
    }
    
    .content-wrapper {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    .site-content {
        padding: 0 15px;
    }
    
    /* Single column on mobile */
    body.archive .site-content,
    body.blog .site-content,
    body.search .site-content,
    body.home .site-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Cards full width on mobile */
    .post-card,
    article.post-card,
    article.post-card.post,
    article.post-card.hentry {
        width: 100% !important;
        margin-right: 0 !important;
        display: block !important;
    }
    
    /* Smaller buttons on mobile, positioned to the right */
    .slider-reveal-btn,
    .background-slider-btn,
    .custom-slider-btn,
    .scroll-to-top-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        right: 10px !important;
    }
    
    .scroll-to-top-btn {
        bottom: 80px !important;
    }
    
    .slider-reveal-btn {
        top: 60px !important;
    }
    
    .background-slider-btn {
        top: 115px !important;
    }
    
    .custom-slider-btn {
        top: 170px !important;
    }
    
    /* Slider full width on mobile */
    .background-slider-wrapper,
    .background-slider-wrapper img {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .background-slider-wrapper img {
        height: auto !important;
        max-height: 300px !important;
    }
    
    /* Mobile footer layout */
    .footer-content {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .footer-left {
        order: 1;
        text-align: center;
    }
    
    .footer-right {
        order: 2;
        position: static;
        transform: none;
    }
    
    .night-mode-toggle {
        order: 3;
        position: static;
        transform: none;
    }
    
    /* Mobile comment optimization */
    .comment {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .comment-body {
        gap: 10px;
    }
    
    .comment-author img,
    .avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .comment-actions {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .edit-link a,
    .comment-reply-link,
    .comment-delete-link {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .comment-content {
        font-size: 14px;
    }
    
    .children {
        margin-left: 20px;
    }
}
