﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.modal-img {
    max-height: 300px; /* قللنا الارتفاع */
    object-fit: cover; /* الصورة تغطي الإطار بشكل جميل */
    border-radius: 12px; /* حواف مستديرة */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* ظل خفيف */
    transition: transform 0.3s ease; /* تأثير سلس عند hover */
}

    .modal-img:hover {
        transform: scale(1.05); /* تأثير تكبير بسيط عند hover */
    }


.modal-content {
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: none;
    background-color: #f8f9fa; /* لون فاتح للخلفية */
    border-radius: 16px 16px 0 0;
}

.modal-footer {
    border-top: none;
    justify-content: center;
}



/* نفس طول العناوين لجميع الكروت */
.card-title-fixed {
    min-height: 2.5rem; /* اضبطي حسب طول العنوان الأطول */
}

/* نفس طول النص لجميع الكروت */
.card-text-fixed {
    min-height: 3.5rem; /* اضبطي حسب أطول نص */
}


.card-custom {
    display: flex;
    flex-direction: column;
    align-items: center; /* يركّز المحتوى أفقياً */
    height: 100%;
    text-align: center; /* يركّز النصوص */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth effect */
    cursor: pointer; /* يدي إحساس إنه clickable */
}
    .card-custom:hover {
        transform: scale(1.05); /* يكبر الكارد شوية */
        box-shadow: 0 10px 25px rgba(0,0,0,0.2); /* ظل أكبر */
    }

/* الصورة داخل الكارد */
.card-img-top-custom {
   max-width: 100%; /* عرض كامل للكارد */
   max-height : 100px; /* ارتفاع أصغر لباينة كويس */
    object-fit: contain; /* يغطي المساحة بدون تشويه */
    transition: transform 0.3s ease; /* تأثير عند hover */
}

    /* تأثير hover جميل */
    .card-img-top-custom:hover {
        transform: scale(1.05);
    }

/* النص داخل الكارد */
.card-body-custom {
    flex-grow: 1;
    padding: 1rem;
}

/* الفوتر */
.card-footer-custom {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Flex layout للكارد */
.card-custom {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* responsive للصور */
@media (min-width: 768px) {
    .card-img-top-custom {
        height: 180px;
    }
}

@media (min-width: 1200px) {
    .card-img-top-custom {
        height: 200px;
    }
}
