/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/*============ Variables ===========*/
:root {
	--main-border-radius: 8px;
    --main-shadow: 0 6px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --main-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --main-transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/*============ Header ===========*/
header .sub-menu {padding-block: 8px;}
@media (min-width: 769px) {	header#masthead { overflow: visible !important;} .sub-menu {left: auto !important;}}
site-header {
	box-shadow: rgba(0, 0, 0, 0.05) 0px 8px 8px -4px;
	transition: var(--main-transition);
}
.current_page_item,.menu-item:hover {
    color: var(--brand2);
}

/*============ Footer ===========*/
.copyright-bar {
    display: none;
}

/*============ Single Post/Page ===========*/
#breadcrumbs {
    color: var(--text);
}
#breadcrumbs a:hover {
    color: var(--brand2);
}

/** FAQ **/
.rank-math-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}
.rank-math-list > div {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--main-border-radius);
    padding: 18px 22px;
    transition: var(--main-transition);
    /*box-shadow: var(--main-shadow);*/
}
.rank-math-list > div:hover {
    box-shadow: var(--main-shadow-hover);
    transform: translateY(-2px);
}
.rank-math-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--contrast);
    margin: 0;
}
.rank-math-answer {
    color: #475569;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.rank-math-answer p {
    margin-bottom: unset;
}

/* تنسيق بيانات ميتا اسفل المقالة */
footer.entry-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}
.cat-links, .tags-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.cat-links a, .tags-links a {
    background: #f5f7f9;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--main-transition);
    border: 1px solid #e1e8ed;
    display: inline-block;
}
.cat-links a:hover, .tags-links a:hover {
    background: var(--brand2);
    color: var(--fff);
    border-color: var(--brand2);
}
.tags-links {
    color: transparent; /* يخفي الفواصل النصية */
}
.tags-links a, .tags-links .gp-icon {
    color: initial; /* يعيد اللون للعناصر المطلوبة */
}

/* تنسيق قسم التنقل (المقالات السابقة) */
#nav-below {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nav-previous, .nav-next {
    background: #fdfdfd;
    padding: 15px;
    border-radius: var(--main-border-radius);
    border: 1px solid #f0f0f0;
}
.nav-previous a, .nav-next a {
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;

}
.nav-previous a:hover, .nav-next a:hover {
    text-decoration: underline;
}
.gp-icon svg {
    vertical-align: middle;
    margin-left: 5px;
    fill: #666;
}

/*============ Box ===========*/
:has(>.box) {padding-inline:4px; margin-bottom: 20px;}
.box {
    position: relative;
	text-align: center;
    background-color: #ffffff;
	padding: 30px 20px;
    border: solid 2px var(--brand2);
	border-radius: 12px;
    box-shadow: 0 4px 8px -2px rgb(0 0 0 / .1);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.3s ease-in-out;
}
.icon-box:hover {
	transform: translateY(-3px);
	border-color: #ff5252;
	box-shadow: var(--main-shadow-hover);
}

/*============ General ===========*/
.wp-block-group {
    margin-bottom: 1rem;
}
.wp-block-heading:hover {
    color: var(--brand2);
}
figure {
    margin-bottom: 20px;
}
header.page-header, 
article, 
aside.widget, 
.site-header, 
.site-footer,
article img,
figure {
    border-radius: var(--main-border-radius);
    overflow: hidden;
}

/*============ Mobile ===========*/
@media (max-width: 768px) {
    .generate-back-to-top {
        bottom: 130px !important;
    }
}