/*
Theme Name: Khairah Child
Theme URI: http://themeforest.net/user/wpoceans/portfolio/
Author: wpoceans
Author URI: http://themeforest.net/user/wpoceans
Description: Khairah - Charity WordPress Theme
Template:	khairah
Version: 1.0
Text Domain: khairah-child
*/

/* Styling for the featured image container */
.event-featured-image-wrapper {
    position: relative;
    overflow: hidden; /* Ensures the zoom effect is clipped */
    margin-bottom: 30px; /* Space below the image */
    border-radius: 10px; /* Slightly rounded corners for a modern look */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Enhanced shadow for depth */
    line-height: 0; /* Remove extra space below image */
    /* Adjusted height to be more in line with the breadcrumb banner */
    height: 400px; /* Fixed height for a consistent look */
    width: 600px; /* Fixed width to make it square */
    margin-left: auto; /* Center the image horizontally */
    margin-right: auto; /* Center the image horizontally */
    display: flex; /* Use flexbox to center the image content */
    align-items: center; /* Vertically center the image content */
    justify-content: center; /* Horizontally center the image content */
}

/* Styling for the image itself */
.event-featured-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%; /* Make the image fill the container height */
    object-fit: cover; /* Crops the image to cover the container while maintaining aspect ratio */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth cubic-bezier transition for zoom */
}

/* Zoom effect on hover */
.event-featured-image-wrapper:hover img {
    transform: scale(1.08); /* More pronounced zoom on hover */
}

/* Styling for the image overlay */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); /* Gradient for better text readability */
    color: #fff;
    padding: 30px 25px; /* More padding */
    font-size: 1.8em; /* Larger title */
    font-weight: 700; /* Bolder title */
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none; /* Allows interaction with elements below if needed */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex; /* Use flexbox for aligning title */
    align-items: flex-end; /* Align title to the bottom */
}

/* Show overlay on hover */
.event-featured-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.image-overlay h2 {
    margin: 0; /* Remove default margin from h2 */
    color: inherit; /* Ensure text color is white from parent */
    font-size: 1em; /* Adjust font size relative to parent */
}

/* Styling for the breadcrumb banner with background image */
.khairah-breadcrumb-banner {
    position: relative;
    padding: 60px 20px; /* Adjust padding as needed */
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff; /* Default text color for breadcrumbs and title */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px; /* Minimum height for the banner */
}

/* Dark black overlay for the breadcrumb banner */
.breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark black overlay with 60% opacity */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Breadcrumbs styling (inside the overlay) */
.khairah-breadcrumbs {
    /* padding: 10px 20px; */
    /* background-color: rgba(255, 255, 255, 0.1); Slightly transparent background for breadcrumbs */
    border-radius: 8px;
    font-size: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-bottom: 15px; /* Space between breadcrumbs and title */
}

.khairah-breadcrumbs a {
    color: #f0f0f0; /* Lighter color for links */
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 4px; /* Adjust padding for spacing */
}

.khairah-breadcrumbs a:hover {
    color: #ffffff; /* White on hover */
    text-decoration: underline;
}

.khairah-breadcrumbs span {
    color: #ccc; /* Separator color */
    padding: 0 4px;
}

.khairah-breadcrumbs .current-item {
    color: #ffffff; /* White for current item */
    font-weight: 600; /* Slightly bolder for current item */
}

/* Styling for the breadcrumb title */
.breadcrumb-title {
    margin: 0;
    font-size: 2.8em; /* Larger, prominent title */
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Subtle text shadow */
}
/* Custom Event Posts Widget Styling */
.khairah-event-posts-widget .recent-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.khairah-event-posts-widget .event-post-item {
    display: flex; /* Use flexbox for side-by-side layout */
    align-items: flex-start; /* Align items to the top */
    margin-bottom: 20px; /* Space between each event item */
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Separator for list items */
}

.khairah-event-posts-widget .event-post-item:last-child {
    border-bottom: none; /* No border for the last item */
    margin-bottom: 0;
    padding-bottom: 0;
}

.khairah-event-posts-widget .event-image-block {
    flex-shrink: 0; /* Prevent image block from shrinking */
    margin-right: 15px; /* Space between image and content */
    width: 75px; /* Fixed width for the image container */
    height: 75px; /* Fixed height for the image container (making it square) */
    overflow: hidden; /* Hide overflowing parts of the image */
    border-radius: 5px; /* Slightly rounded corners for the image */
}

.khairah-event-posts-widget .event-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the block without distortion */
    display: block;
}

.khairah-event-posts-widget .event-content-block {
    flex-grow: 1; /* Allow content block to take remaining space */
}

.khairah-event-posts-widget .event-post-title {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em; /* Adjust title font size */
    line-height: 1.3;
}

.khairah-event-posts-widget .event-post-title a {
    text-decoration: none;
    color: #333; /* Darker color for title link */
    transition: color 0.3s ease;
}

.khairah-event-posts-widget .event-post-title a:hover {
    color: #007bff; /* Highlight on hover */
}

.khairah-event-posts-widget .event-post-excerpt {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.5;
}

.khairah-event-posts-widget .event-post-date {
    font-size: 0.8em;
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .khairah-breadcrumb-banner {
        min-height: 200px;
        padding: 40px 15px;
    }

    .breadcrumb-title {
        font-size: 2em;
    }

    .image-overlay {
        padding: 20px 15px;
        font-size: 1.5em;
    }

    .event-featured-image-wrapper {
        height: 200px; /* Adjust for smaller screens */
        width: 200px;
    }
}

@media (max-width: 480px) {
    .khairah-breadcrumb-banner {
        min-height: 180px;
    }

    .breadcrumb-title {
        font-size: 1.8em;
    }

    .khairah-breadcrumbs {
        font-size: 0.85em;
    }

    .image-overlay {
        padding: 15px 10px;
        font-size: 1.2em;
    }

    .event-featured-image-wrapper {
        height: 150px; /* Further adjust for very small screens */
        width: 150px;
    }
}
