.space {
    margin-right: 70px;
}

/* Header */
header.masthead {
    position: relative;
    padding-top: 10.5rem;
    padding-bottom: 6rem;
    text-align: center;
    color: #fff;
    background-image: url("../img/header-bg.jpg");
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
  }

header.masthead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* طبقة سوداء شفافة */
    z-index: 1;
}

header.masthead .container {
    position: relative;
    z-index: 2; /* لجعل النصوص تظهر فوق الطبقة الشفافة */
}

/* Activites */
.portfolio-item {
    position: relative;
    display: block;
}

.portfolio-link {
    display: block;
    position: relative;
}

.portfolio-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(126, 23, 26, 0.8); /* طبقة شفافة سوداء */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.portfolio-link:hover .portfolio-hover {
    opacity: 1;
}

.portfolio-hover-content {
    color: white;
    font-size: 1.25rem;
}

.portfolio-caption-heading{
    direction: rtl;
}

.timeline > li .timeline-image {
    overflow: hidden; /* يضمن عدم خروج الصورة من الدائرة */
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* يجعل الصورة تملأ الدائرة دون تشويه */
}


/* Navigation*/
.navbar {
direction: rtl;
text-align: right;
}

.navbar-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* .navbar-toggler {
    margin-left: auto;
    margin-right: 0;
} */

.navbar-nav .nav-item {
    float: right;
}

.navbar-nav .nav-link {
    text-align: right;
}

.nav-link:hover{
    color: #dc3545 !important;
}

#mainNav .navbar-nav .nav-item .nav-link.active, #mainNav .navbar-nav .nav-item .nav-link:hover {
    color: #dc3545 !important;
}


@media (min-width: 992px) {
    #mainNav.navbar-shrink .navbar-brand svg, #mainNav.navbar-shrink .navbar-brand img {
        height: 3rem;
    }
}

@media (min-width: 992px) {
    #mainNav.navbar-shrink {
        background-color: #25405a !important;
    }
}

@media (min-width: 992px) {
    #mainNav .navbar-brand img {
        height: 4rem;
    }
}

/* Members */
.team-member img {
    width: 8rem;
    height: 8rem;
    border: 0.2rem solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 1200px) {
    .small-title {
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .small-text {
        font-size: 0.7rem;
    }
}


/* goals */
.image-stack {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;  /* حجم الدائرة */
    height: 15rem;
    border-radius: 50%;
    background-color: var(--bs-primary, #ffc800); /* لون الخلفية، يمكن تغييره */
    border: 1px solid white; /* الإطار */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.circle-image {
    width: 95%;  /* لجعل الصورة أصغر من الدائرة */
    height: 95%;
    border-radius: 50%;
    object-fit: cover;  /* لضبط الصورة داخل الدائرة */
}

.text-muted{
    direction: rtl;
    text-align: justify;
}


/* Contact Us */
#phone {
    direction: rtl;
    text-align: right;
  }


.page-section h2.section-heading, .page-section .section-heading.h2,
.portfolio-modal .modal-content h2, .my-3, .timeline .timeline-heading h4,
.portfolio-caption-heading{
    color: #25405a;
}
