/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://example.com/
Description: Child theme for the Twenty Twenty-Five theme
Author: rami
Author URI: https://example.com/
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
/*h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}*/

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/******************كود خاص انا االي عامله ************************************/




/***************************************custom code by Ramy*******************/

h2,h3,h4,p,li,ul  {
direction: rtl;
text-align: right;
}
.english {
direction: ltr;
text-align: left
}
.float-left{
    float: left
}
/*.........................................h1-page-style.............................................*/


h1 {
   
    font-size: 3em;
    font-weight: bold;
    color: #89CFF0;
    padding: 2%;
    cursor: pointer;
    direction: rtl;
    text-align: right;
}

/**nav menu test ****/
.nav-menu {
    display: flex; /* جعل العناصر أفقية */
    justify-content: center; /* محاذاة في المنتصف */
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px; /* مسافة بين العناصر */
}
 
.nav-menu li {
    position: relative;
    padding: 10px 20px;
    background: #333; /* لون الزر */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    position: relative;
}

.nav-menu li::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: #89CFF0
; /* لون الخط الأخضر */
    transition: all 0.3s ease-in-out;
}

.nav-menu li:hover::after {
    width: 100%;
    left: 0;
}








/* تحسين شكل عناوين h3 في الصفحة الرئيسية */
.main-products-widget {
    text-align: center; /* يجعل محتوى الحاوية في المنتصف */
}

.main-products-widget h3 {
    display: inline-block; /* يجعل العنصر h3 يأخذ حجم المحتوى */
    position: relative;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    padding-bottom: 5px;
    cursor: pointer;
}


/* الخط السفلي  اللبني */
.main-products-widget h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #89CFF0; /* اللون الذهبي */
    transition: all 0.3s ease-in-out;
}

/* التأثير عند تمرير الماوس */
.main-products-widget h3:hover::after {
    width: 100%;
    left: 0;
}

/* إزالة التأثير من الرابط داخل العنوان */
.main-products-widget h3 a {
    text-decoration: none;
    color: inherit;
    text-align: center;
}

/********************end main-site-title code by ramy ************/

/********************STYLE CODE FOR EVERY P TAG  code by ramy ************/


.main-container-p-css p {
    font-family: "Arial", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(90deg, #f8f8f8, #ffffff);
    padding: 10px 15px;
    border-left: 5px solid #008000;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.main-container-p-css p:hover {
    background: linear-gradient(90deg, #ffffff, #f8f8f8);
    border-left-color: #ff3300;
    transform: translateX(5px);
}

/****************************posts-grid-customize****************/



/* تصميم شبكة المقالات */
.custom-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

/* تصميم كل بطاقة مقال */
.custom-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

/* صورة المقال */
.custom-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* نص المقال */
.custom-post-content {
    background: white;
    padding: 15px;
    text-align: center;
    position: relative;
}

/* عنوان المقال */
.custom-post-content h2 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    color: #222;
}

/* الخط الااللبني لسفلي */
.custom-post-content::after {
    content: "";
    width: 40px;
    height: 4px;
    background-color: #89CFF0;
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
}


