/* ============================
   🎨 تصميم المقال الفردي
   قالب: Royal Elementor Kit Child
   ============================ */

/* ===== الصوره البارزة ===== */
.royal-featured-image {
    position: relative;
    text-align: center;
    color: #fff;
    margin-bottom: 90px;
}
.royal-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===== العنوان والتصنيفات على خلفية بيضاء ===== */
.royal-overlay {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 25px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    text-align: center;
    width: 85%;
    max-width: 900px;
}

.royal-title {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* ===== بيانات المقال ===== */
.royal-meta-top {
    font-size: 15px;
    color: #666;
    margin-top: 5px;
}

.royal-meta-top a {
    background: #E92C00;
    color: #fff !important;
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.royal-meta-top a:hover {
    background: #c92400;
}

/* ===== اسم الكاتب والتاريخ ===== */
.royal-meta-info {
    color: #555;
    font-size: 14px;
    margin-top: 10px;
}

/* ===== المحتوى ===== */
.royal-content-frame {
    background: #fff;
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    line-height: 1.9;
    font-size: 17px;
    color: #222;
}

/* ===== التعليقات ===== */
.royal-comments {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
}

.comment-form input[type="submit"] {
    background: #45958B;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.comment-form input[type="submit"]:hover {
    opacity: 0.85;
}

/* ===== مواضيع ذات صلة ===== */
.royal-related-posts {
    max-width: 1000px;
    margin: 50px auto;
    text-align: center;
}
.royal-related-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 25px;
}
.royal-related-item {
    flex: 1 1 45%;
    max-width: 45%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: 0.3s;
}
.royal-related-item img {
    width: 100%;
    height: auto;
}
.royal-related-item h4 {
    padding: 15px;
    font-size: 17px;
    color: #000;
}
.royal-related-item:hover {
    transform: translateY(-5px);
}

/* ===== المقال السابق والتالي ===== */
.royal-post-nav {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 40px auto;
    gap: 20px;
}
.royal-prev a,
.royal-next a {
    background: #45958B;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.royal-prev a:hover,
.royal-next a:hover {
    opacity: 0.8;
}

/* ===== موبايل ===== */
@media (max-width: 992px) {
    .royal-title {
        font-size: 24px;
    }
    .royal-overlay {
        width: 90%;
        padding: 20px;
        bottom: -35px;
    }
    .royal-related-item {
        flex: 1 1 48%;
        max-width: 48%;
    }
}
@media (max-width: 600px) {
    .royal-related-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .royal-post-nav {
        flex-direction: column;
        align-items: center;
    }
    .royal-overlay {
        bottom: -25px;
        width: 92%;
    }
}
