/* Custom CSS to fix About The Founder section image sizing */

/* Reduce the overall height of the founder section */
.exhibition-carousel {
    max-height: 560px !important;
    overflow: hidden;
}

/* Make images smaller and ensure they fit within the container */
.exhibition-carousel .item img {
    width: 100% !important;
    height: 510px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px;
    display: block !important;
}

/* Ensure the item container also fills properly */
.exhibition-carousel .item {
    height: 510px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Adjust the background overlay to match the new image size */
.exhibition-carousel:after {
    height: 500px !important;
    top: 0 !important;
}

/* Ensure the carousel container doesn't exceed the image height */
.exhibition-carousel .owl-stage-outer {
    height: 500px !important;
}

.exhibition-carousel .owl-stage {
    height: 500px !important;
}

/* Adjust dots positioning for the new height */
.exhibition-carousel .owl-dots {
    top: 250px !important; /* Half of 500px */
}

/* RTL (Arabic) specific adjustments */
body[dir="rtl"] .exhibition-carousel .owl-dots {
    left: 18px !important;
    right: auto !important;
}

body[dir="rtl"] .exhibition-carousel:after {
    left: 0 !important;
    right: auto !important;
}

body[dir="rtl"] .exhibition-carousel {
    padding: 20px 0 20px 50px !important;
}

/* Center dots for img-carousel-dots-nav */
.img-carousel-dots-nav.owl-theme .owl-dots {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 20px !important;
}

.img-carousel-dots-nav.owl-theme .owl-dots .owl-dot {
    display: inline-block !important;
    margin: 0 5px !important;
    cursor: pointer !important;
}

.img-carousel-dots-nav.owl-theme .owl-dots .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    margin: 5px 7px !important;
    background: #d6d6d6 !important;
    display: block !important;
    border-radius: 30px !important;
    transition: opacity 200ms ease !important;
}

.img-carousel-dots-nav.owl-theme .owl-dots .owl-dot.active span,
.img-carousel-dots-nav.owl-theme .owl-dots .owl-dot:hover span {
    background: #093d5e !important;
}

/* Product carousel card styling */
.img-carousel-dots-nav .ow-carousel-entry {

    border-radius: 8px !important;
    overflow: hidden !important;
}

.img-carousel-dots-nav .ow-entry-title a {
    color: #ffffff !important;
}

.img-carousel-dots-nav .ow-entry-text p {
    color: #bcb5b5 !important;
}

/* LinkedIn and WeChat button styling */
.bt-linkedin.theme-btn {
    background-color: #0077b5 !important;
    color: #ffffff !important;
    bottom: 130px !important;
    left: 12px !important;
}

.bt-linkedin.theme-btn:hover {
    background-color: #005885 !important;
}

.bt-wechat.theme-btn {
    background-color: #07c160 !important;
    color: #ffffff !important;
    bottom: 190px !important;
    left: 12px !important;
}

.bt-wechat.theme-btn:hover {
    background-color: #06ad56 !important;
}

.bt-wechat.theme-btn {
    cursor: pointer !important;
}

/* WeChat Modal Enhancements */
.wechat-modal-overlay {
    animation: fadeIn 0.3s ease-in-out;
}

.wechat-modal-content {
    animation: slideInUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: scale(0.7) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Enhanced button hover effects */
.bt-wechat.theme-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(7, 193, 96, 0.4) !important;
    transition: all 0.3s ease !important;
}

/* WhatsApp button styling with original brand color */
.bt-buy-now.theme-btn {
    background: #25d366 !important;
    background: -moz-linear-gradient(top, #25d366 0%, #128c7e 100%) !important;
    background: -webkit-linear-gradient(top, #25d366 0%, #128c7e 100%) !important;
    background: linear-gradient(to bottom, #25d366 0%, #128c7e 100%) !important;
}

.bt-buy-now.theme-btn:hover {
    background: #128c7e !important;
    background: -moz-linear-gradient(top, #128c7e 0%, #075e54 100%) !important;
    background: -webkit-linear-gradient(top, #128c7e 0%, #075e54 100%) !important;
    background: linear-gradient(to bottom, #128c7e 0%, #075e54 100%) !important;
}

/* Reduce size of all theme buttons */
.theme-btn {
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 30px !important;
}

.theme-btn i {
    font-size: 18px !important;
    line-height: 40px !important;
}

.theme-btn span {
    font-size: 14px !important;
    line-height: 40px !important;
}

/* Responsive adjustments for small screens */
@media only screen and (max-width: 767px) {
    .theme-btn {
        height: 35px !important;
        min-width: 35px !important;
        border-radius: 25px !important;
    }

    .theme-btn i {
        font-size: 16px !important;
        line-height: 35px !important;
    }

    .theme-btn span {
        font-size: 12px !important;
        line-height: 35px !important;
    }

    /* Adjust positioning for mobile */
    .bt-buy-now.theme-btn {
        bottom: 8px !important;
        left: 8px !important;
    }

    .bt-support-now.theme-btn {
        bottom: 53px !important;
        left: 8px !important;
    }

    .bt-linkedin.theme-btn {
        bottom: 98px !important;
        left: 8px !important;
    }

    .bt-wechat.theme-btn {
        bottom: 143px !important;
        left: 8px !important;
    }
}

@media only screen and (max-width: 480px) {
    .theme-btn {
        height: 30px !important;
        min-width: 30px !important;
        border-radius: 20px !important;
    }

    .theme-btn i {
        font-size: 14px !important;
        line-height: 30px !important;
    }

    .theme-btn span {
        font-size: 10px !important;
        line-height: 30px !important;
    }

    /* Further adjust positioning for very small screens */
    .bt-buy-now.theme-btn {
        bottom: 5px !important;
        left: 5px !important;
    }

    .bt-support-now.theme-btn {
        bottom: 40px !important;
        left: 5px !important;
    }

    .bt-linkedin.theme-btn {
        bottom: 75px !important;
        left: 5px !important;
    }

    .bt-wechat.theme-btn {
        bottom: 110px !important;
        left: 5px !important;
    }
}

/* Responsive adjustments */
@media only screen and (max-width: 991px) {
    .exhibition-carousel {
        max-height: 400px !important;
    }

    .exhibition-carousel .item img {
        height: 350px !important;
    }

    .exhibition-carousel .item {
        height: 350px !important;
    }

    .exhibition-carousel:after {
        height: 350px !important;
    }

    .exhibition-carousel .owl-stage-outer {
        height: 350px !important;
    }

    .exhibition-carousel .owl-stage {
        height: 350px !important;
    }

    .exhibition-carousel .owl-dots {
        top: 175px !important;
    }

    /* RTL responsive adjustments */
    body[dir="rtl"] .exhibition-carousel .owl-dots {
        top: 175px !important;
    }
}

@media only screen and (max-width: 767px) {
    .exhibition-carousel {
        max-height: 300px !important;
    }

    .exhibition-carousel .item img {
        height: 250px !important;
    }

    .exhibition-carousel .item {
        height: 250px !important;
    }

    .exhibition-carousel:after {
        height: 250px !important;
    }

    .exhibition-carousel .owl-stage-outer {
        height: 250px !important;
    }

    .exhibition-carousel .owl-stage {
        height: 250px !important;
    }

    .exhibition-carousel .owl-dots {
        top: 125px !important;
    }

    /* RTL responsive adjustments */
    body[dir="rtl"] .exhibition-carousel .owl-dots {
        top: 125px !important;
    }
}
.fa-youtube {
    color: red !important;

}

/* YouTube Video Styles */
.dlab-post-video {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.dlab-post-video h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dlab-post-video h5 {
        font-size: 1.1rem;
    }

    .video-container {
        border-radius: 6px;
    }
}

/* Arabic specific styles */
.myfont .dlab-post-video h5 {
    font-family: 'GE Dinar One Medium', Arial, sans-serif;
}

/* German specific styles */
.dlab-post-video h5 {
    font-weight: 500;
}

/* Homepage News Video Play Button Styles */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(9, 61, 94, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.play-button i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

/* Hover effects for video play button */
.dlab-media:hover .video-play-overlay {
    opacity: 1 !important;
}

.dlab-media:hover .play-button {
    transform: scale(1.1) !important;
    background: rgba(9, 61, 94, 1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Video Modal Styles */
.video-container-modal {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-container-modal iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Responsive adjustments for video play button */
@media (max-width: 768px) {
    .play-button {
        width: 50px;
        height: 50px;
    }

    .play-button i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .play-button {
        width: 45px;
        height: 45px;
    }

    .play-button i {
        font-size: 14px;
    }
}

/* Ensure video overlay doesn't interfere with date badge */
.video-play-overlay {
    z-index: 5;
}

.date-badge {
    z-index: 6;
}
