﻿.swiper-slide {
    cursor: pointer;
}










/* Styling for the Search Section */
.search-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background-color: #eff4ff;
}

    .search-input:focus {
        outline: none;
        border-color: #007bff;
    }

.search-button {
    padding: 10px 20px;
    background-color: #007bff;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

    .search-button:hover {
        background-color: #0056b3;
    }

/* Styling for the Categories Swiper */
.categories-swiper-wrapper {
    position: relative;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .category-card img {
        width: 100%;
        height: auto;
        border-radius: 50%;
        margin-bottom: 10px;
        transition: transform 0.3s;
    }

        .category-card img:hover {
            transform: scale(1.05);
        }

    .category-card a {
        font-size: 13px;
        cursor: pointer;
    }

        .category-card a:hover {
            color: var(--theme-color) !important;
            text-decoration: none !important;
        }

.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
}

.swiper-pagination-bullet-active {
    background-color: #007bff;
}

.categories-swiper .swiper-button-next,
.categories-swiper .swiper-button-prev {
    background-color: transparent;
    width: 24px;
    height: 24px;
    color: black;
    font-size: 14px;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.categories-swiper .swiper-button-disabled,
.categories-swiper .swiper-button-disabled {
    opacity: 0 !important;
}


.categories-swiper .swiper-button-next::after,
.categories-swiper .swiper-button-prev::after {
    font-family: "Font Awesome 6 Pro"; /* Updated font-family */
    font-weight: 900; /* Ensure this matches the icon style */
    font-size: inherit;
}


.categories-swiper .swiper-button-prev::after {
    content: "\f054" !important;
}

.categories-swiper .swiper-button-next::after {
    content: "\f053" !important;
}


.categories-swiper .swiper-button-prev {
    right: 0px !important;
    top: 12px;
    background-color: #fff;
    padding: 25px 5px;
    border-left: 1px solid #9aa0a5;
    border-radius: 0;
    color: #3f3f3f;
}

.categories-swiper .swiper-button-next {
    left: 0 !important;
    top: 12px;
    background-color: #fff;
    padding: 25px 5px;
    border-right: 1px solid #9aa0a5;
    border-radius: 0;
    color: #3f3f3f;
}





.search-results-container {
    position: absolute;
    top: 135%;
    left: 0;
    width: 100%;
    background: #eff4ff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    padding: 1rem;
    border-radius: 10px;
    animation: moveInTop 0.2s ease-out;
}

.search-category {
    margin-bottom: 1rem;
}

.category-title {
    color: #6e6e6e;
    margin-bottom: 1rem;
    font-weight: bold;
}

.search-results-container .swiper {
    padding: 0 15px 40px 15px;
}

.search-results-container .swiper-slide {
    width: 150px;
    height: 100px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
}

.searchIcon {
    position: absolute;
    left: 15px;
    top: 30%;
    color: #7a8289;
}

/* Define the keyframes */
@keyframes moveInTop {
    0% {
        transform: translateY(20px); /* Move element 100px above its original position */
    }

    100% {
        display: block;
        transform: translateY(0); /* Move element to its original position */
    }
}


.video-title p {
    font-size: 12px;
    height: 35px;
    overflow: hidden;
}





















/* Custom CSS with unique prefix */
.custom-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0 auto;
    padding: 20px;
}

.custom-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
 
    .custom-card:hover {
        transform: translateY(-5px);
    }

/* Video Card (Rectangle) */
.custom-video-card {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    background-size: cover !important;
    background-repeat:no-repeat !important;
}

/* Blog and Podcast Cards (Square) */
.custom-blog-card,
.custom-podcast-card {
    aspect-ratio: 1/1;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    background-size: cover !important;
    background-repeat: no-repeat !important;
}



.custom-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: white;
    display: flex;
    justify-content: space-between;
    background-color: #000000ab;
}

.custom-card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.custom-card-title {
    font-size: 14px;
}

.custom-card-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .custom-cards-container {
        grid-template-columns: 1fr;
    }
}

/* Main Container */
.custom-media-section {
    max-width: 740px; /* Adjust to make it square-like */
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: auto;
}


/* Individual Media Card */
.custom-media-card {
    width: 230px;
    height: 210px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.custom-media-card:hover {
    transform: translateY(-5px);
}

.custom-media-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.custom-video-bg {
    background: var(--theme-color);
}

.custom-podcast-bg {
    background: var(--theme-color);
}

.custom-blog-bg {
    background: var(--theme-color);
}

.custom-media-card h3 {
    margin: 0.5rem 0;
    color: #2d3436;
}

.custom-media-link {
    color: #747474;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .custom-media-link:hover {
        text-decoration: none;
        color:var(--theme-color);
    }

/* All Media Image */
.custom-all-media-image {
    width: 230px;
    height: 210px;
    border-radius: 12px;
    overflow: hidden;
    padding: 1.5rem;
}

    .custom-all-media-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures the image fills the container */
    }

/* Responsive Design */
@media (max-width: 768px) {
    .custom-media-cards {
        flex: 1 1 100%; /* Full width on mobile */
    }

    .custom-media-card {
        flex: 1 1 100%; /* Full width on mobile */
    }

    .custom-all-media-image {
        flex: 1 1 100%; /* Full width on mobile */
        order: -1;
    }
}