@font-face {
    font-family: Tajawal_LIGHT;
    src: url("assets/fonts/Tajawal/Tajawal-Light.ttf");
}

@font-face {
    font-family: Tajawal_MEDIUM;
    src: url("assets/fonts/Tajawal/Tajawal-Medium.ttf");
}

@font-face {
    font-family: Tajawal_BOLD;
    src: url("assets/fonts/Tajawal/Tajawal-Bold.ttf");
}

.tajawal-light {
    font-family: Tajawal_LIGHT !important;
}

.tajawal-medium {
    font-family: Tajawal_MEDIUM !important;
}

.tajawal-bold {
    font-family: Tajawal_BOLD !important;
}

* {
    font-family: Tajawal_MEDIUM !important;
    font-size: 16px;
    font-weight: 500;
}





.card{
    width: 300px;
    aspect-ratio: 1 / 0.7;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.card .image-box{
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.card .image-box .bb{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: inherit;
    transition:0.5s ease-in-out ;
}

.card::after{
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid white;
    border-radius: inherit;
    opacity: 0;
    transition: 0.4 ease-in-out;
}
.card:hover .bb{
    filter: grayscale(1) brightness(0.4);
    transform: scale(1.1);
}
.card:hover::after{
    opacity: 1;
    inset: 20px;
}

.card:hover{
    transform: scale(0.95);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}


/* حذف العنوان من الأسفل */
.card-bottom-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255);
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.5s ease-in-out;
}
.card:hover .card-bottom-title {
    opacity: 0;
    transform: translateY(20px);
}
       /* زر عرض المزيد */
       .view-more-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.5s ease-in-out;
    z-index: 15;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    width: auto;
    padding: 0 10px;
}

.card:hover .view-more-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

swiper-container {
    width: 100%;
    height: 100%;
  }

  swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #444;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  .project-swiper {
    width: 100%;
    height: 256px; /* h-64 = 16rem = 256px */
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.project-swiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom navigation buttons */
.project-swiper .swiper-button-next,
.project-swiper .swiper-button-prev {
    color: #143D59;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.project-swiper .swiper-button-next:hover,
.project-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.project-swiper .swiper-button-next::after,
.project-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Custom pagination */
.project-swiper .swiper-pagination-bullet {
    background: #143D59;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.project-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #143D59;
    transform: scale(1.2);
}
