/* Custom styles for index page */
.title {
    font-family: 'Cairo', sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    color: rgb(6, 6, 66);
}

/* Blog images styling */
.bd-blog-thumb {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.bd-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.bd-blog-thumb:hover img {
    transform: scale(1.05);
}

.content {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: small;
}

.content-list {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-optical-sizing: auto;
    color: black;
    font-weight: bold;
}

.content-list-nav {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    border-bottom: 1px solid rgb(45, 43, 77);
}

.bold-first-word {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.bd-blog-area-2 {
    background-color: #f9f9f9;
    padding: 30px 15px;
    border-radius: 8px;
}

.work-under-cont {
    text-align: center;
}

.work-under-cont .title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.work-under-cont .content {
    font-size: 1.2rem;
    color: #666;
    margin: 0 auto;
}

.work-under-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.brand-item {
    text-align: center;
    max-width: 150px;
    flex: 0 1 150px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

.work-under-img {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 3px solid #e7e4c4;
    padding: 10px;
    overflow: hidden;
}

.work-under-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-under-img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.brand-item .content {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.limited-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 4;
    max-height: calc(1.2em * 4);
    line-height: 1.2em;
    margin-bottom: 15px;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.rounded-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hero slider sizing tweaks */
.bd-hero-area-2 {
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
}

.slider-area1 {
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.slider-area1 .bd-hero-slider,
.slider-area1 .bd-hero-active {
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.slider-area1 .bd-hero-active .swiper-wrapper {
    height: 100vh;
    width: 100%;
    max-width: 100%;
}

.slider-area1 .bd-hero-active .swiper-slide {
    height: 100vh;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.bd-hero-inner-2 {
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.bd-hero-2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.bd-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    z-index: 0;
    margin: 0;
    padding: 0;
}

/* Override Bootstrap container if needed */
.bd-hero-inner-2 > .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.bd-hero-content-wrapper-2 {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
}

@media (max-width: 991px) {
    .bd-hero-area-2,
    .bd-hero-inner-2,
    .bd-hero-2,
    .slider-area1,
    .slider-area1 .bd-hero-slider,
    .slider-area1 .bd-hero-active,
    .slider-area1 .bd-hero-active .swiper-wrapper,
    .slider-area1 .bd-hero-active .swiper-slide,
    .bd-hero-content-wrapper-2 {
        min-height: 70vh;
        height: 70vh;
        width: 100%;
    }

    .bd-hero-bg {
        width: 100vw;
        height: 100%;
        background-size: cover !important;
    }
}

@media (max-width: 575px) {
    .bd-hero-area-2,
    .bd-hero-inner-2,
    .bd-hero-2,
    .slider-area1,
    .slider-area1 .bd-hero-slider,
    .slider-area1 .bd-hero-active,
    .slider-area1 .bd-hero-active .swiper-wrapper,
    .slider-area1 .bd-hero-active .swiper-slide,
    .bd-hero-content-wrapper-2 {
        min-height: 60vh;
        height: 60vh;
        width: 100%;
    }

    .bd-hero-bg {
        width: 100vw;
        height: 100%;
        background-size: cover !important;
        background-position: center center !important;
    }

    .bd-hero-title {
        font-size: 1.5rem;
    }
}

/* Ensure navigation buttons are visible */
.bd-hero-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 50px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bd-hero-prev,
.bd-hero-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bd-hero-prev:hover,
.bd-hero-next:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Pagination dots */
.main-slider-dot {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.main-slider-dot .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-slider-dot .swiper-pagination-bullet-active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .work-under-img {
        width: 100px;
        height: 100px;
    }

    .brand-item {
        max-width: 130px;
        flex: 0 1 130px;
    }

    .brand-item .content {
        font-size: 0.85rem;
    }

    .bd-blog-thumb {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .work-under-cont .title {
        font-size: 1.5rem;
    }

    .work-under-cont .content {
        font-size: 1rem;
    }

    .work-under-img {
        width: 90px;
        height: 90px;
    }

    .brand-item {
        max-width: 110px;
        flex: 0 1 110px;
    }

    .brand-item .content {
        font-size: 0.8rem;
    }

    .work-under-list {
        gap: 20px;
    }

    .bd-blog-thumb {
        height: 180px;
    }
}
