/* Rich Text Content Styling for Post Content */
.post-content-rich-text {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #333;
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

/* Subscription Form Styling */
.subscribe-message {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.subscribe-message.success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 8px 12px;
    border-radius: 4px;
}

.subscribe-message.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 8px 12px;
    border-radius: 4px;
}

.subscribe-message.info {
    color: #17a2b8;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Tag Cloud Styles */
.tags-cloud {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tag-cloud-link {
    display: inline-block;
    margin: 5px 5px 5px 0;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tag-cloud-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tag-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
}

.subscribe-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Header Tags Styles */
.header-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.header-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-tag:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-tag:active {
    transform: translateY(0);
}

/* Responsive adjustments for header tags */
@media (max-width: 768px) {
    .header-tags {
        display: none; /* Hide on mobile to save space */
    }
}

@media (max-width: 1024px) {
    .header-tags {
        gap: 5px;
        margin-left: 15px;
    }

    .header-tag {
        padding: 3px 8px;
        font-size: 11px;
    }
}

.subscribe-button:disabled:hover {
    transform: none;
}

/* Error Pages Styles */
.error-section {
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.error-num {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #007bff, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.error-num.server-error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-num span {
    display: inline-block;
    animation: bounceIn 0.6s ease-out forwards;
    opacity: 0;
}

.error-num span:nth-child(1) { animation-delay: 0.1s; }
.error-num span:nth-child(2) { animation-delay: 0.2s; }
.error-num span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.error-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.error-content h4 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #666;
}

.error-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #777;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.error-actions .btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.error-actions .btn.color-bg {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.error-actions .btn.color-bg:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.error-actions .btn.btn-outline {
    background: transparent;
    border-color: #007bff;
    color: #007bff;
}

.error-actions .btn.btn-outline:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.error-search {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.error-search h5 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-form .search-btn {
    padding: 12px 20px;
    background: #007bff;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form .search-btn:hover {
    background: #0056b3;
}

.popular-links {
    margin-top: 30px;
}

.popular-links h5 {
    margin-bottom: 20px;
    color: #333;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.link-grid a {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.link-grid a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.error-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.info-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
}

.info-box h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    color: #666;
}

.error-contact {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.error-contact h5 {
    color: #856404;
    margin-bottom: 10px;
}

.error-contact p {
    color: #856404;
    margin: 0;
}

.error-contact a {
    color: #533f00;
    font-weight: 600;
}

.error-status {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.small-text {
    font-size: 14px;
    color: #999;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-num {
        font-size: 80px;
    }

    .error-content h2 {
        font-size: 32px;
    }

    .error-content h4 {
        font-size: 20px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn {
        width: 200px;
        justify-content: center;
    }

    .error-info {
        grid-template-columns: 1fr;
    }

    .link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .link-grid a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .error-section {
        padding: 40px 0;
    }

    .error-content {
        padding: 20px 15px;
    }

    .error-num {
        font-size: 60px;
        gap: 5px;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }
}

/* Error Test Page Styles */
.error-test-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.error-test-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.error-test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.error-test-card .error-test-icon {
    margin-bottom: 20px;
}

.error-test-card .error-num {
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0;
    background: linear-gradient(135deg, #007bff, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.error-test-card .error-num.server-error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-test-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.error-test-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.error-test-card .btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.error-test-card .btn.color-bg {
    background: #007bff;
    border: 2px solid #007bff;
    color: white;
}

.error-test-card .btn.color-bg:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.error-info-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.error-info-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-item h5 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 18px;
}

.info-item p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.error-note {
    margin-top: 40px;
}

.note-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.note-box h5 {
    color: #856404;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.note-box p {
    color: #856404;
    margin-bottom: 10px;
    line-height: 1.5;
}

.note-box code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #533f00;
    font-weight: 600;
}

/* Responsive adjustments for test page */
@media (max-width: 768px) {
    .error-test-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .error-test-card {
        padding: 20px;
    }

    .error-test-card .error-num {
        font-size: 50px;
    }

    .error-test-card h3 {
        font-size: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .error-info-section {
        padding: 20px;
    }
}

/* Simplified Error Pages Styling */
.error-page-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 100%;
}

.error-content {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-number {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.error-number span {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    display: inline-block;
    color: #007bff;
    text-shadow: 3px 3px 6px rgba(0,123,255,0.4);
    margin: 0 5px;
}

.error-number.server-error span {
    color: #dc3545;
    text-shadow: 3px 3px 6px rgba(220,53,69,0.4);
}

.error-title {
    font-size: 48px;
    font-weight: 900;
    color: #333;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.error-message {
    font-size: 24px;
    font-weight: 600;
    color: #555;
    line-height: 1.7;
    margin-bottom: 35px;
    text-align: center;
    max-width: 700px;
    align-self: center;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.error-actions .btn {
    padding: 16px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 3px solid;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-actions .btn-primary {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.error-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.error-actions .btn-outline-secondary {
    background: transparent;
    border-color: #6c757d;
    color: #6c757d;
}

.error-actions .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108,117,125,0.3);
}

.error-search,
.error-contact,
.popular-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-search h5,
.error-contact h6,
.popular-links h6 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: center;
}

.search-form .input-group {
    max-width: 400px;
    margin: 0 auto;
}

.search-form .form-control {
    border-radius: 30px 0 0 30px;
    border: 3px solid #007bff;
    border-right: none;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
}

.search-form .form-control:focus {
    box-shadow: 0 0 15px rgba(0,123,255,0.3);
    border-color: #0056b3;
}

.search-form .btn {
    border-radius: 0 30px 30px 0;
    border: 3px solid #007bff;
    background: #007bff;
    color: white;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-form .btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: scale(1.05);
}

.popular-links h6 {
    color: #555;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
    border-color: #007bff;
}

.error-info {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.error-info .alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    max-width: 600px;
    align-self: center;
}

.error-info .alert i {
    color: #856404;
    margin-right: 10px;
}

.error-contact {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    align-self: center;
}

.error-contact p {
    color: #666;
    margin-bottom: 15px;
}

.error-contact .btn {
    padding: 8px 16px;
    border-radius: 20px;
}

.error-reference {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    width: 100%;
    display: flex;
    justify-content: center;
    align-self: center;
}

.error-reference small {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-page-wrapper {
        padding: 40px 0;
        min-height: 60vh;
    }

    .error-content {
        padding: 30px 20px;
        margin: 10px;
    }

    .error-number span {
        font-size: 90px;
    }

    .error-title {
        font-size: 36px;
        letter-spacing: 1px;
    }

    .error-message {
        font-size: 20px;
        font-weight: 700;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn {
        width: 250px;
        justify-content: center;
        font-size: 16px;
        padding: 14px 30px;
    }

    .link-buttons {
        flex-direction: column;
        align-items: center;
    }

    .link-btn {
        width: 220px;
        justify-content: center;
        font-size: 15px;
        padding: 12px 20px;
    }

    .search-form .input-group {
        max-width: 320px;
    }

    .search-form .form-control {
        font-size: 16px;
        padding: 14px 20px;
    }

    .search-form .btn {
        font-size: 14px;
        padding: 14px 20px;
    }

    .error-search h5,
    .error-contact h6 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .error-number span {
        font-size: 70px;
        margin: 0 3px;
    }

    .error-title {
        font-size: 28px;
        letter-spacing: 0.5px;
    }

    .error-message {
        font-size: 18px;
        font-weight: 600;
    }

    .error-content {
        padding: 25px 15px;
    }

    .error-actions .btn {
        width: 200px;
        font-size: 14px;
        padding: 12px 25px;
    }

    .link-btn {
        width: 180px;
        font-size: 14px;
        padding: 10px 16px;
    }

    .search-form .input-group {
        max-width: 280px;
    }

    .search-form .form-control {
        font-size: 14px;
        padding: 12px 16px;
    }

    .search-form .btn {
        font-size: 12px;
        padding: 12px 16px;
    }

    .error-search h5,
    .error-contact h6 {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
}

/* Tag Filter Styling */
.tag-filter-info {
    margin-top: 15px;
    text-align: center;
}

.tag-filter-info .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-filter-info .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.no-posts-message {
    padding: 40px 20px;
    text-align: center;
}

.no-posts-message h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.no-posts-message p {
    color: #888;
    font-size: 1.1em;
    line-height: 1.6;
}

.no-posts-message a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.no-posts-message a:hover {
    text-decoration: underline;
}

/* Form Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: block;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Comment Form Styling */
.comment-reply-form input,
.comment-reply-form textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    transition: border-color 0.3s ease;
}

.comment-reply-form input:focus,
.comment-reply-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.comment-reply-form input.error,
.comment-reply-form textarea.error {
    border-color: #dc3545;
}

/* Headings */
.post-content-rich-text h1,
.post-content-rich-text h2,
.post-content-rich-text h3,
.post-content-rich-text h4,
.post-content-rich-text h5,
.post-content-rich-text h6 {
    font-weight: 600;
    margin: 1.5em 0 0.8em 0;
    color: #2c3e50;
    line-height: 1.3;
    text-align: left;
}

.post-content-rich-text h1 {
    font-size: 2.2em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.3em;
}

.post-content-rich-text h2 {
    font-size: 1.8em;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 0.2em;
}

.post-content-rich-text h3 {
    font-size: 1.5em;
}

.post-content-rich-text h4 {
    font-size: 1.3em;
}

.post-content-rich-text h5 {
    font-size: 1.1em;
}

.post-content-rich-text h6 {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Paragraphs */
.post-content-rich-text p {
    margin: 0 0 1.2em 0;
    text-align: left;
}

/* Links */
.post-content-rich-text a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.post-content-rich-text a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* Lists */
.post-content-rich-text ul,
.post-content-rich-text ol {
    margin: 1em 0;
    padding-left: 2em;
    text-align: left;
}

.post-content-rich-text li {
    margin: 0.5em 0;
    line-height: 1.6;
    text-align: left;
}

.post-content-rich-text ul li {
    list-style-type: disc;
}

.post-content-rich-text ol li {
    list-style-type: decimal;
}

.post-content-rich-text ul ul,
.post-content-rich-text ol ol {
    margin: 0.5em 0;
}

.post-content-rich-text ul ul li {
    list-style-type: circle;
}

.post-content-rich-text ol ol li {
    list-style-type: lower-alpha;
}

/* Blockquotes */
.post-content-rich-text blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
    border-radius: 0 4px 4px 0;
    position: relative;
    text-align: left;
}

.post-content-rich-text blockquote::before {
    content: '"';
    font-size: 3em;
    color: #3498db;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

.post-content-rich-text blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
    text-align: left;
}

.post-content-rich-text blockquote cite {
    display: block;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #777;
    font-style: normal;
    text-align: left;
}

/* Code blocks */
.post-content-rich-text pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    text-align: left;
}

.post-content-rich-text pre::before {
    content: 'Code';
    position: absolute;
    top: 0;
    right: 0;
    background: #34495e;
    color: #ecf0f1;
    padding: 0.2em 0.5em;
    font-size: 0.8em;
    border-radius: 0 4px 0 4px;
    font-family: sans-serif;
}

.post-content-rich-text code {
    background-color: #f8f9fa;
    color: #e74c3c;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    border: 1px solid #e9ecef;
}

.post-content-rich-text pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border: none;
}

/* Tables */
.post-content-rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-content-rich-text th,
.post-content-rich-text td {
    padding: 0.75em;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.post-content-rich-text th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.post-content-rich-text tr:nth-child(even) {
    background-color: #f8f9fa;
}

.post-content-rich-text tr:hover {
    background-color: #ecf0f1;
}

/* Images */
.post-content-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-content-rich-text img:hover {
    transform: scale(1.02);
}

.post-content-rich-text figure {
    margin: 1.5em 0;
    text-align: center;
}

.post-content-rich-text figcaption {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #777;
    font-style: italic;
    text-align: center;
}

/* Horizontal rule */
.post-content-rich-text hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #3498db, transparent);
    margin: 2em 0;
}

/* Emphasis */
.post-content-rich-text strong,
.post-content-rich-text b {
    font-weight: 600;
    color: #2c3e50;
}

.post-content-rich-text em,
.post-content-rich-text i {
    font-style: italic;
    color: #555;
}

/* Strikethrough */
.post-content-rich-text s,
.post-content-rich-text del {
    text-decoration: line-through;
    color: #777;
}

/* Subscript and Superscript */
.post-content-rich-text sub,
.post-content-rich-text sup {
    font-size: 0.75em;
    line-height: 0;
}

.post-content-rich-text sup {
    vertical-align: super;
}

.post-content-rich-text sub {
    vertical-align: sub;
}

/* Definition lists */
.post-content-rich-text dl {
    margin: 1.5em 0;
    text-align: left;
}

.post-content-rich-text dt {
    font-weight: 600;
    color: #2c3e50;
    margin-top: 1em;
}

.post-content-rich-text dd {
    margin: 0.5em 0 1em 1em;
    color: #555;
}

/* Special formatting for Filament RichEditor specific elements */
.post-content-rich-text .ql-align-center {
    text-align: center !important;
}

.post-content-rich-text .ql-align-right {
    text-align: right !important;
}

.post-content-rich-text .ql-align-justify {
    text-align: justify !important;
}

.post-content-rich-text .ql-size-small {
    font-size: 0.875em;
}

.post-content-rich-text .ql-size-large {
    font-size: 1.125em;
}

.post-content-rich-text .ql-size-huge {
    font-size: 1.25em;
}

/* Override any conflicting styles */
.post-content-rich-text * {
    text-align: inherit;
}

.post-content-rich-text h1,
.post-content-rich-text h2,
.post-content-rich-text h3,
.post-content-rich-text h4,
.post-content-rich-text h5,
.post-content-rich-text h6,
.post-content-rich-text p,
.post-content-rich-text li,
.post-content-rich-text blockquote,
.post-content-rich-text pre,
.post-content-rich-text code,
.post-content-rich-text table,
.post-content-rich-text th,
.post-content-rich-text td {
    text-align: left !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .post-content-rich-text {
        font-size: 15px;
    }
    
    .post-content-rich-text h1 {
        font-size: 1.8em;
    }
    
    .post-content-rich-text h2 {
        font-size: 1.5em;
    }
    
    .post-content-rich-text h3 {
        font-size: 1.3em;
    }
    
    .post-content-rich-text table {
        font-size: 14px;
    }
    
    .post-content-rich-text th,
    .post-content-rich-text td {
        padding: 0.5em;
    }
    
    .post-content-rich-text blockquote {
        padding: 0.8em 1.2em;
    }
    
    .post-content-rich-text pre {
        padding: 0.8em;
        font-size: 13px;
    }
}

/* Print styles */
@media print {
    .post-content-rich-text {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .post-content-rich-text h1,
    .post-content-rich-text h2,
    .post-content-rich-text h3,
    .post-content-rich-text h4,
    .post-content-rich-text h5,
    .post-content-rich-text h6 {
        page-break-after: avoid;
    }
    
    .post-content-rich-text blockquote,
    .post-content-rich-text pre,
    .post-content-rich-text table {
        page-break-inside: avoid;
    }
    
    .post-content-rich-text img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}
