/* ************************ */


.grid-internal-page-container {
    --grid-layout-gap: 1px;
    --grid-column-count: 3;
    --grid-item--min-width: 288px;
    --gap-count: calc(var(--grid-column-count) - 1);
    --total-gap-width: calc(var(--gap-count) * var(--grid-layout-gap));
    --grid-item--max-width: calc((100% - var(--total-gap-width)) / var(--grid-column-count));

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(var(--grid-item--min-width), var(--grid-item--max-width)), 1fr));
    grid-gap: var(--grid-layout-gap);
}


/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */


.noee {
    font-size: 16px;
    font-family: 'DroidKufi-Regular';
}

.rang {
    background-color: rgb(224, 224, 243);
}

.dore {
    margin: 10px;
}


.gridvv-internal-page-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* هنا المشكلة */
}


.gridvv-internal-page-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}


.textgawra {
    font-size: 1.75rem;
    line-height: 2.25rem
}

/* *************************************************** */



.mb-b {
    margin: 1rem;
}

.wena {
    width: 100%;
}

.center-img {
    display: flex;
    justify-content: center;
    /* يوسطها أفقياً */
    align-items: center;
    /* يوسطها عمودياً لو في ارتفاع */
}


.dddd {

    background-color: #2e3869;
}

/* /////////////////////////////////////////////////////////////////////// */
.penasa {
    background-color: #2e3869;
    /* width: 300px; */
    /* height: auto; */
    border-radius: 20px;
    /* زوايا دائرية */
    padding: 20px;
    /* مسافة داخلية من الحواف */
    color: white;
    /* لون النص */
    font-size: 18px;
    line-height: 1.6;
}

.dddd {
    background-color: #2e3869;
    /* width: 300px; */
    /* height: auto; */
    border-radius: 20px;
    /* زوايا دائرية */
    padding: 20px;
    /* مسافة داخلية من الحواف */
    color: white;
    /* لون النص */
    font-size: 18px;
    line-height: 1.6;
}

.sdf {
    padding: 20px;
    font-size: 22px;
}

.fotng {

    font-size: 18px;
}

/* ????//////////////////////////////////////////// */


#authors-section {
    background-image: url("acsecoes/LogoFam/fam-logo.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 150px auto;
}


.rangfo {

    font-size: 20px;
    color: #ffc107;
}

.rangfoo {
    font-size: 20px;
    color: #1935bd;
    font-weight: bold;
    /* يجعل الخط بولد */
}



.xat {
    border: none;
    height: 1px;
    background: #1935bd;
}




.vbv {
    height: 40mm;
    transition: all 0.3s ease;
}

.wete {
    height: 10mm;
    transition: all 0.3s ease;
}

.wetew {
    height: 20mm;

}


/* //////////////////////////////////////////////////////////////////////// */

.sliderX {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 400px;
    /* 🔹 يمكنك تغيير الارتفاع حسب رغبتك */
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    /* اختياري */
}

.sliderXX {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 650px;
    /* 🔹 يمكنك تغيير الارتفاع حسب رغبتك */
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    /* اختياري */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 🔹 لعرض الصورة كاملة بدون قص */
    background-color: #000;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

audio {
    margin-top: 10px;
    width: 200px;
}

/* //////////////////////////////////////////////////////////////////////// */



.subMenu-nav-mobile {
    max-height: 300px;
    /* أقصى ارتفاع للقائمة */
    overflow-y: auto;
    /* تفعيل التمرير العمودي */
}


/* ڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤ */




.article__link {
    color: inherit;
    /* اللون الافتراضي يأخذ لون النص العادي */
    text-decoration: none;
    /* إزالة الخط التحت */
    transition: color 0.3s;
    /* حركة سلسة عند التغيير */
}

.article__link:hover {
    color: blue;
    /* اللون الأزرق عند المرور بالماوس */
}


.books-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:15px;
}

/* شكل الكارت */
.dore-single{
    display:flex;
    flex-direction:column; /* يجعل العناصر فوق بعض */
    background:#fff;
}

/* الصورة */
.img-box img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:6px;
}

/* المحتوى */
.content-box{
    padding-top:8px;
}

/* شاشات أصغر */
@media (max-width:1200px){
    .books-grid{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:900px){
    .books-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px){
    .books-grid{
        grid-template-columns: 1fr;
    }
}



.img-box img{
    width:100%;
    height:180px;
    object-fit:cover;
}


/* ڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤڤ */

.nice-form{
    width:100%;
}

/* صفين في سطر واحد */
.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.form-row{
    display:flex;
    flex-direction:column;
}

.form-row label{
    margin-bottom:5px;
    font-weight:bold;
    font-size:14px;
}

.form-row input,
.form-row textarea{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:14px;
    outline:none;
}

.form-row input:focus,
.form-row textarea:focus{
    border-color:#2d7ff9;
}

/* زر الإرسال */
.btn-send{
    margin-top:10px;
    width:100%;
    padding:10px;
    border:none;
    background:#2d7ff9;
    color:white;
    font-size:15px;
    border-radius:6px;
    cursor:pointer;
}

.btn-send:hover{
    background:#1c63cc;
}

/* عند الشاشات الصغيرة يصبح تحت بعض */
@media (max-width:700px){
    .form-grid{
        grid-template-columns:1fr;
    }
}


.comment-box{
    width:100%;
}

.comment-item{
    padding:10px 0;
    border-bottom:1px solid #eee;
}

.comment-name{
    font-size:20px;
    font-weight:bold;
    color:#333;
    margin-bottom:5px;
}

.comment-text{
    font-size:15px;
    color:#555;
    line-height:1.6;
}


.textarea-box{
position:relative;
}

#emoji-btn{
position:absolute;
right:10px;
bottom:10px;
border:none;
background:none;
font-size:20px;
cursor:pointer;
}

#emoji-picker{
display:none;
position:absolute;
bottom:45px;
right:0;
background:white;
border:1px solid #ddd;
border-radius:6px;
padding:8px;
width:400px;
max-height:150px;
overflow:auto;
box-shadow:0 2px 8px rgba(0,0,0,0.15);
}

#emoji-picker span{
font-size:20px;
padding:4px;
cursor:pointer;
display:inline-block;
}

#emoji-picker span:hover{
background:#eee;
border-radius:4px;
}