/* =============================================
   RTL + Design Improvements for أجابة
   ============================================= */

/* ---------- Navigation RTL ---------- */
.single-post__next__meta {
    float: left;
    margin-right: 20px;
}
.single-post__previous__meta {
    float: right;
    margin-left: 20px;
}
.single-post__previous__text h5,
.single-post__next__text h5 {
    color: #f4952f;
}
.humberger__menu__wrapper.show__humberger__menu__wrapper {
    right: 0;
}
.humberger__menu__wrapper {
    right: -400px;
}
.humberger__menu__logo {
    margin-top: 40px;
    margin-bottom: 25px;
}
/* .humberger__menu__logo img {
    max-height: 50px;
    width: auto;
} */

/* ---------- Header ---------- */
.header__top {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid #f4952f;
}

.header__social {
    padding: 0;
    text-align: center;
    padding-top: 8px;
}
.header__social a {
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}
.header__social a:hover {
    color: #f4952f;
    transform: translateY(-2px);
}
.header__social a:last-child {
    margin-right: 10px;
}

.header__logo {
    padding: 0;
    text-align: center;
    padding-top: 5px;
}
.header__logo img {
    height: 100px;
    transition: opacity 0.2s;
}
.header__logo img:hover {
    opacity: 0.85;
}

.header__btn {
    padding: 0;
    padding-top: 12px;
    text-align: center;
}
.header__btn .primary-btn {
    border-radius: 25px;
    padding: 8px 28px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.header__btn .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(244, 149, 47, 0.35);
}

/* ---------- Subscribe Modal ---------- */
#exampleModal .modal-header {
    background: linear-gradient(135deg, #f4952f, #e07b1a);
    color: #fff;
    border-radius: 4px 4px 0 0;
}
#exampleModal .modal-header .modal-title {
    color: #fff;
    font-weight: bold;
}
#exampleModal .modal-header .close {
    color: #fff;
    opacity: 0.9;
    padding: 0;
    margin: 0;
}
#exampleModal .modal-content {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    border: none;
}
#exampleModal .btn-primary {
    background: #f4952f;
    border-color: #f4952f;
    border-radius: 20px;
    padding: 8px 30px;
    transition: background 0.2s, box-shadow 0.2s;
}
#exampleModal .btn-primary:hover {
    background: #e07b1a;
    border-color: #e07b1a;
    box-shadow: 0 4px 12px rgba(244, 149, 47, 0.3);
}

/* ---------- Post Cards ---------- */
.categories__post__item {
    transition: transform 0.22s, box-shadow 0.22s;
    border-radius: 6px;
    overflow: hidden;
}
.categories__post__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
}
.categories__post__item__pic {
    position: relative;
}
.categories__post__item__text .post__label--large li a {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(244, 149, 47, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(244, 149, 47, 0.3);
    transition: background 0.2s, color 0.2s;
}
.categories__post__item__text .post__label--large li a:hover {
    background: #f4952f;
    color: #fff !important;
    padding: 2px 10px;
}

/* ---------- Categories cards (homepage grid) ---------- */
.categories__item {
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s;
}
.categories__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

/* ---------- Load More Button ---------- */
.load__more__btn .btn {
    border-radius: 25px;
    padding: 10px 44px;
    font-size: 15px;
    background: #f4952f;
    border-color: #f4952f;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.load__more__btn .btn:hover {
    background: #e07b1a;
    border-color: #e07b1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(244, 149, 47, 0.32);
}

/* ---------- Sidebar ---------- */
.sidebar__feature__item__list__single {
    margin-bottom: 5px !important;
    border-radius: 5px;
    transition: background 0.2s;
}
.sidebar__feature__item__list__single:hover {
    background: #fff8f0 !important;
}
.sidebar__item__categories ul li a {
    transition: color 0.2s, padding-right 0.2s;
}
.sidebar__item__categories ul li a:hover {
    color: #f4952f;
    padding-right: 5px;
}
.sidebar__item__categories ul li a span {
    float: left;
}
.sidebar__item__categories {
    margin-top: 60px;
}

/* ---------- Reading Progress Bar ---------- */
#reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to left, #f4952f, #e07b1a);
    z-index: 99999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ---------- Back to Top Button ---------- */
#back-to-top {
    position: fixed;
    bottom: 35px;
    left: 35px;
    width: 44px;
    height: 44px;
    background: #f4952f;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 998;
    box-shadow: 0 4px 14px rgba(244, 149, 47, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
#back-to-top.show {
    opacity: 1;
    pointer-events: all;
}
#back-to-top:hover {
    transform: translateY(-3px);
    background: #e07b1a;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb__text {
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
}
.breadcrumb__option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}
.breadcrumb__option a {
    font-size: 14px;
    color: #666;
    transition: color 0.2s;
}
.breadcrumb__option a:hover {
    color: #f4952f;
}
.breadcrumb__option a::after {
    content: "/";
    margin-right: 6px;
    margin-left: 2px;
    color: #bbb;
}
.breadcrumb__option span {
    font-size: 14px;
    color: #f4952f;
}

/* ---------- Single Post Page ---------- */
.single-post__hero {
    height: 420px;
    background-size: cover;
    background-position: center;
}
.single-post__title__text h1 {
    font-size: 2.3rem;
    line-height: 1.4;
}
.single-post__more__details p {
    line-height: 2em;
}
.single-post__more__details ul,
.single-post__more__details ol {
    padding: 5px 26px;
}
.single-post__tags a {
    border-radius: 20px;
    padding: 4px 14px;
    background: #f8f8f8;
    border: 1px solid #eee;
    margin: 3px 0;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}
.single-post__tags a:hover {
    background: #f4952f;
    color: #fff;
    border-color: #f4952f;
}

/* ---------- Comment Section ---------- */
.single-post__comment__item__pic {
    float: right;
    margin-left: 25px;
}
.single-post__comment__item.single-post__comment__item--reply {
    padding-right: 120px;
}
.single-post__comment__item__text ul {
    left: 0;
    right: auto;
}
.single-post__comment__item {
    margin-bottom: 15px;
    border-radius: 6px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.single-post__comment__item:hover {
    background: #fff8f0;
    border-color: rgba(244, 149, 47, 0.2);
}
.comment-desc {
    font-style: italic;
    background-color: #ffffd8;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}
.widget__title {
    margin-bottom: 20px;
}

/* Leave Comment Form */
.single-post__leave__comment form .input-list input {
    padding-right: 20px;
    padding-left: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.single-post__leave__comment form .input-list input:focus {
    border-color: #f4952f;
    box-shadow: 0 0 0 3px rgba(244, 149, 47, 0.12);
    outline: none;
}
.single-post__leave__comment form textarea:focus {
    border-color: #f4952f;
    box-shadow: 0 0 0 3px rgba(244, 149, 47, 0.12);
    outline: none;
}
.single-post__leave__comment textarea {
    padding-right: 20px;
}
.reply-div {
    padding: 12px 15px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #f0e8df;
}

/* ---------- Footer ---------- */
.footer {
    margin-top: 50px;
}
.footer__copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: 15px;
}

/* ---------- Search ---------- */
.search-item {
    margin: 2px;
    transition: background 0.2s, box-shadow 0.2s;
    border-radius: 6px;
}
.search-item:hover {
    margin: 3px;
    background-color: #fff8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.search-body {
    width: 80%;
    padding: 5px;
}
.search-img,
.search-body {
    display: inline-block;
    vertical-align: middle;
}
.search-img {
    height: 90px;
    width: 18%;
}
.search-error {
    color: #afadad;
}

/* ---------- Answers ---------- */
.answer-item {
    padding: 10px;
    background-color: #fffbed;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid rgba(244, 149, 47, 0.12);
    transition: box-shadow 0.2s;
}
.answer-item:hover {
    box-shadow: 0 3px 12px rgba(244,149,47,0.15);
}
.answer-item a {
    color: #111;
}

/* ---------- Most Views Cards ---------- */
.most-veiws-item {
    height: 380px;
    padding: 7px;
    transition: transform 0.22s, box-shadow 0.22s;
    border-radius: 6px;
    overflow: hidden;
}
.most-veiws-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
    padding: 7px;
}
.most-veiws-item:hover .most-veiws-body {
    background-color: #fff8f0;
}
.most-veiws-img {
    height: 180px;
}
.most-veiws-body {
    height: 180px;
    padding: 8px;
    border: 2px solid rgba(247, 162, 47, 0.45);
    border-top-width: 0;
    transition: background 0.22s;
}
.most-veiws-body h4 { height: 30%; }
.most-veiws-body p  { height: 45%; }
.most-veiws-widget,
.search-widget {
    text-align: left !important;
}
.most-veiws-widget span { color: grey; }
.most-views-title {
    padding: 5px 0;
    font-weight: bold;
    color: orange;
    margin-top: 150px;
}

/* ---------- Misc ---------- */
.categories {
    padding-top: 20px;
}
hr {
    margin-inline-start: 0;
    width: 70%;
}
.important-links-widget { margin-top: 40px; }
.important-links-widget li {
    list-style: none;
    margin: 5px 25px 0 0;
    padding-right: 10px;
}
.important-links-widget li:first-child { margin-right: 0; }
.important-links-widget li h3 { color: #f4952f; }
.important-links-widget li a { color: #111; }
.important-links-widget li a:hover { color: #199fb0; }
.important-links-widget li i {
    color: #f4952f;
    margin-left: 10px;
}

/* ---------- Smooth scroll ---------- */
html {
    scroll-behavior: smooth;
}
