/**
 * Enhanced News System CSS
 * Designed for three-column layout (navigation left, content center, sidebar right)
 * Supports RTL for Arabic and responsive design
 */

/* ===== News List Page ===== */
.news-page-container {
    width: 100%;
    padding: 25px;
    margin: 0;
    background: rgba(20, 10, 5, 0.65);
    border-radius: 12px;
    box-sizing: border-box;
    border: 2px solid rgba(201,168,76,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.news-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(201,168,76,0.4);
}

.news-header h1 {
    font-family: 'Eason DisplayCaps', Georgia, serif;
    font-size: 28px;
    color: #ffd700 !important;
    margin: 0 0 5px 0;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* Search Bar - Compact for center column */
.news-search-bar {
    margin-bottom: 20px;
}

.news-search-bar form {
    display: flex;
    gap: 8px;
}

.news-search-bar input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
    color: #d0b88c;
    font-size: 13px;
    font-family: Georgia, serif;
}

.news-search-bar input[type="text"]:focus {
    outline: none;
    border-color: #c9a84c;
    background: rgba(0,0,0,0.6);
}

.news-search-bar button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b6914 0%, #d4af37 50%, #8b6914 100%);
    border: 2px solid #ffd700;
    border-radius: 6px;
    color: #1a0800;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.news-search-bar button:hover {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #d4af37 100%);
    transform: translateY(-2px);
}

/* Add News Button - Compact */
.news-actions {
    text-align: center;
    margin-bottom: 20px;
}

.btn-add-news {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #27ae60 100%);
    border: 2px solid #2ecc71;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
}

.btn-add-news:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #2ecc71 100%);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* News Cards - Vertical layout for narrow center column */
.news-card {
    background: linear-gradient(145deg, rgba(40,20,10,0.95), rgba(60,30,15,0.9));
    border: 3px solid rgba(201,168,76,0.5);
    border-radius: 15px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card:hover {
    border-color: #ffd700;
    box-shadow: 0 8px 30px rgba(255,215,0,0.4), 0 0 40px rgba(201,168,76,0.3);
    transform: translateY(-5px);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(20,10,5,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 2px solid rgba(201,168,76,0.3);
}

.news-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(40,20,10,0.9), transparent);
    pointer-events: none;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    background: rgba(0,0,0,0.3);
}

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-placeholder {
    font-size: 64px;
    color: rgba(201,168,76,0.4);
    text-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.news-card-content {
    padding: 20px;
    position: relative;
}

.news-card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    font-family: Georgia, serif;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.news-card-title a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.news-card-title a:hover {
    color: #ffed4e;
    text-shadow: 0 0 15px rgba(255,215,0,0.6);
    transform: translateX(3px);
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #c9a84c;
    padding: 10px 0;
    border-top: 1px solid rgba(201,168,76,0.2);
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.news-card-meta span:hover {
    color: #ffd700;
}

.news-card-meta i {
    font-size: 13px;
}

.news-card-excerpt {
    color: #d0b88c;
    line-height: 2;
    margin-bottom: 18px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 5.6em;
    word-wrap: break-word;
    padding: 8px 0;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-read-more {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #8b6914 0%, #d4af37 50%, #8b6914 100%);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #1a0800;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 13px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.btn-read-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-read-more:hover::before {
    width: 300px;
    height: 300px;
}

.btn-read-more:hover {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #d4af37 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.5);
    color: #1a0800;
    text-decoration: none;
    border-color: #ffed4e;
}

.btn-read-more {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #8b6914 0%, #d4af37 50%, #8b6914 100%);
    border: 2px solid #ffd700;
    border-radius: 6px;
    color: #1a0800;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.btn-read-more:hover {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #d4af37 100%);
    transform: translateY(-2px);
    color: #1a0800;
    text-decoration: none;
}

/* No News Message */
.no-news-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(145deg, rgba(30,15,5,0.95), rgba(50,25,10,0.9));
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 10px;
}

.no-news-message i {
    font-size: 48px;
    color: rgba(201,168,76,0.3);
    margin-bottom: 15px;
}

.no-news-message h3 {
    color: #c9a84c;
    font-size: 20px;
    margin-bottom: 8px;
}

.no-news-message p {
    color: #d0b88c;
    font-size: 14px;
}

/* Pagination - Compact and properly positioned */
.wp-pagenavi {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0 20px 0;
    padding: 15px 0;
    flex-wrap: wrap;
    clear: both;
}

.wp-pagenavi a,
.wp-pagenavi span {
    padding: 10px 14px;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(201,168,76,0.4);
    border-radius: 6px;
    color: #e8d4b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.wp-pagenavi a:hover {
    background: linear-gradient(135deg, #8b6914 0%, #d4af37 50%, #8b6914 100%);
    border-color: #ffd700;
    color: #1a0800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}

.wp-pagenavi .current {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #d4af37 100%);
    border-color: #ffd700;
    color: #1a0800;
    box-shadow: 0 0 15px rgba(255,215,0,0.5);
}

/* ===== Article Reading Page ===== */
.news-article-container {
    width: 100%;
    padding: 25px;
    margin: 0;
    background: rgba(20, 10, 5, 0.65);
    border-radius: 12px;
    box-sizing: border-box;
    border: 2px solid rgba(201,168,76,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.article-page-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

.article-back-link {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 15px;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 6px;
    color: #d0b88c;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: Georgia, serif;
    font-size: 13px;
}

.article-back-link:hover {
    background: linear-gradient(135deg, #8b6914 0%, #d4af37 50%, #8b6914 100%);
    border-color: #ffd700;
    color: #1a0800;
    transform: translateY(-2px);
    text-decoration: none;
}

.news-article {
    background: linear-gradient(145deg, rgba(30,15,5,0.95), rgba(50,25,10,0.9));
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.news-article-thumbnail {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-article-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.news-article-header {
    border-bottom: 2px solid rgba(201,168,76,0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.news-article-title {
    font-family: 'Eason DisplayCaps', Georgia, serif;
    font-size: 26px;
    color: #ffd700 !important;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
    font-weight: bold;
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #c9a84c;
    font-family: Georgia, serif;
}

.news-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #e8d4b8;
    font-family: Georgia, serif;
}

.news-article-content p {
    margin-bottom: 15px;
    color: #e8d4b8;
}

.news-article-content h1,
.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
    color: #e8d4b8;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: bold;
}

.news-article-content h1 { font-size: 24px; }
.news-article-content h2 { font-size: 22px; }
.news-article-content h3 { font-size: 19px; }
.news-article-content h4 { font-size: 17px; }

.news-article-content ul,
.news-article-content ol {
    margin: 15px 0;
    padding-right: 25px;
    color: #e8d4b8;
}

.news-article-content ul li,
.news-article-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #e8d4b8;
}

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

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

.news-article-content ul li::marker,
.news-article-content ol li::marker {
    color: #e8d4b8;
}

.news-article-content strong {
    color: #e8d4b8;
    font-weight: bold;
}

.news-article-content a {
    color: #3498db;
    text-decoration: underline;
}

.news-article-content a:hover {
    color: #5dade2;
}

.news-article-content img {
    max-width: 100%;
    height: auto !important;
    width: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(201,168,76,0.4);
}

.news-article-content img:hover {
    border-color: #c9a84c;
    box-shadow: 0 0 20px rgba(201,168,76,0.6);
    transform: scale(1.02);
}

.news-article-content iframe,
.news-article-content video {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    border: 2px solid rgba(201,168,76,0.4);
}

.news-article-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(201,168,76,0.3);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-edit-article,
.btn-delete-article {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: Georgia, serif;
    border: 2px solid;
    font-size: 13px;
}

.btn-edit-article {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 50%, #f39c12 100%);
    border-color: #f1c40f;
    color: #1a0800;
}

.btn-edit-article:hover {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 50%, #f1c40f 100%);
    transform: translateY(-2px);
    color: #1a0800;
    text-decoration: none;
}

.btn-delete-article {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
    border-color: #e74c3c;
    color: white;
}

.btn-delete-article:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #e74c3c 100%);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* ===== Form Pages (Add/Edit) ===== */
.news-form-container {
    width: 100%;
    padding: 25px;
    margin: 0;
    background: rgba(20, 10, 5, 0.65);
    border-radius: 12px;
    box-sizing: border-box;
    border: 2px solid rgba(201,168,76,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.news-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.news-form-header h1 {
    font-family: 'Eason DisplayCaps', Georgia, serif;
    font-size: 26px;
    color: #ffd700;
    margin: 0 0 5px 0;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.form-back-link {
    display: inline-block;
    margin-bottom: 15px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 5px;
    color: #d0b88c;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: Georgia, serif;
    font-size: 12px;
}

.form-back-link:hover {
    background: linear-gradient(135deg, #8b6914 0%, #d4af37 50%, #8b6914 100%);
    border-color: #ffd700;
    color: #1a0800;
    transform: translateY(-2px);
    text-decoration: none;
}

.news-form {
    background: linear-gradient(145deg, rgba(30,15,5,0.95), rgba(50,25,10,0.9));
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Alert Messages */
.alert-error {
    background: linear-gradient(145deg, rgba(139,0,0,0.25), rgba(178,34,34,0.2));
    border: 2px solid #dc3545;
    color: #ff6b6b;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-family: Georgia, serif;
    font-size: 13px;
}

.alert-error ul {
    margin: 8px 0 0 0;
    padding-right: 20px;
    list-style: none;
}

.alert-error li {
    margin: 4px 0;
    padding-right: 12px;
    position: relative;
}

.alert-error li::before {
    content: '✖';
    position: absolute;
    right: 0;
    color: #ff6b6b;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #d0b88c;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
    font-family: Georgia, serif;
}

.form-label .required {
    color: #e74c3c;
    margin-right: 3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 6px;
    color: #d0b88c;
    font-size: 13px;
    font-family: Georgia, serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #c9a84c;
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 12px rgba(201,168,76,0.3);
}

.form-textarea {
    min-height: 350px;
    resize: vertical;
}

.form-help-text {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: rgba(208,184,140,0.7);
    font-family: Georgia, serif;
}

.character-counter {
    float: left;
    font-size: 11px;
    color: #c9a84c;
}

.character-counter.warning {
    color: #f39c12;
}

.character-counter.danger {
    color: #e74c3c;
}

.form-file-input {
    width: 100%;
    padding: 8px;
    background: rgba(0,0,0,0.4);
    border: 2px dashed rgba(201,168,76,0.3);
    border-radius: 6px;
    color: #d0b88c;
    font-size: 12px;
    font-family: Georgia, serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-file-input:hover {
    border-color: #c9a84c;
    background: rgba(0,0,0,0.6);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(201,168,76,0.3);
}

.btn-submit {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #27ae60 100%);
    border: 2px solid #2ecc71;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    font-family: Georgia, serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #2ecc71 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46,204,113,0.4);
}

.btn-cancel {
    padding: 12px 25px;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 6px;
    color: #d0b88c;
    font-size: 14px;
    font-weight: bold;
    font-family: Georgia, serif;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cancel:hover {
    background: rgba(0,0,0,0.6);
    border-color: #c9a84c;
    color: #ffd700;
    text-decoration: none;
}

/* Thumbnail Preview */
.thumbnail-preview {
    margin-top: 10px;
    padding: 12px;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 6px;
}

.thumbnail-preview-title {
    color: #c9a84c;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.thumbnail-preview-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 5px;
    display: block;
    margin-bottom: 8px;
}

.thumbnail-remove-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
    border: 2px solid #e74c3c;
    border-radius: 5px;
    color: white;
    font-size: 12px;
    font-family: Georgia, serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-remove-btn:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #e74c3c 100%);
    transform: translateY(-2px);
}

/* Lightbox */
.news-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.news-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.news-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.news-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    margin: 5% auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.news-lightbox-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.news-lightbox-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

/* RTL Support */
[dir="rtl"] .news-card-meta span {
    flex-direction: row-reverse;
}

[dir="rtl"] .character-counter {
    float: right;
}

[dir="rtl"] .alert-error ul {
    padding-right: 0;
    padding-left: 20px;
}

[dir="rtl"] .alert-error li {
    padding-right: 0;
    padding-left: 12px;
}

[dir="rtl"] .alert-error li::before {
    right: auto;
    left: 0;
}

[dir="rtl"] .news-lightbox-close {
    left: auto;
    right: 15px;
}

/* TinyMCE Editor Styling - Light theme for better visibility */
.tox-tinymce {
    border: 2px solid rgba(201,168,76,0.4) !important;
    border-radius: 8px !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
    background: #f5f5f5 !important;
    border-bottom: 1px solid #ddd !important;
}

.tox .tox-edit-area__iframe {
    background: #ffffff !important;
}

.tox .tox-tbtn {
    color: #333 !important;
}

.tox .tox-tbtn:hover {
    background: #e0e0e0 !important;
}

.tox .tox-tbtn--enabled {
    background: #d0d0d0 !important;
}

.tox .tox-statusbar {
    background: #f5f5f5 !important;
    border-top: 1px solid #ddd !important;
}

/* TinyMCE content area - ensure good contrast */
.mce-content-body {
    color: #333 !important;
    background: #fff !important;
    font-family: Georgia, serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 15px !important;
}

.mce-content-body img {
    max-width: 100% !important;
    height: auto !important;
}

.mce-content-body iframe {
    max-width: 100% !important;
}
