@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.poolSeries_area {
    position: relative;
    font-family: "Inter", serif;
}

.series_item {
    position: relative;
    margin: 0 0 20px;
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    padding-bottom: 20px;
}

.series_thumb_wrapper {
    width: 100%;
}

.series_thumb {
    position: relative;
    height: 300px;
    width: 100%;
    /* Ensure thumb container is full width */
}

.series_thumb img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0 !important;
}

.series_thumb a {
    display: inline-block;
    background: #31AEFF;
    color: #fff;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    border-radius: 10px 0 0 10px;
    padding: 14px 34px;
    position: absolute;
    right: 0;
    top: 27px;
    text-decoration: none !important;
}

.series_thumb a:hover {
    background: #DB9D6A;
}

.series_details {
    position: relative;
    padding: 30px 28px;
    background: #FFF2E7;
    border-radius: 0 0 20px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.series_details h2 {
    font-size: 30px;
    line-height: 36px;
    color: #07032D;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 0 10px;
    min-height: 72px;
    /* Ensures consistent height for title area */
}

.series_details h2 ins {
    font-size: 25px;
    line-height: 30px;
    color: #DB9D6A;
}

ul.series_size {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.series_size li {
    font-size: 22px;
    line-height: 26.4px;
    color: #07032D;
    font-weight: 700;
    display: inline-block;
    margin-right: 8px;
}

.series_size li small {
    font-weight: 400;
}

.series_details h3 {
    font-size: 25px;
    line-height: 30px;
    color: #07032D;
    font-weight: 700;
    margin: 0 0 20px;
}

.series_varient {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}

.series_varient p {
    font-size: 22px;
    line-height: 26.4px;
    font-weight: 500;
    color: #07032D;
    margin: 0;
}

.series_varient ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.series_varient ul li {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.series_varient ul li fieldset {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.series_varient ul li fieldset input {
    display: none;
}

.series_varient ul li fieldset label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
    color: #07032D;
}

.series_varient ul li fieldset label img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.series_varient ul li fieldset input:checked+label img {
    border: 4px solid #fff;
    outline: 1px solid #07032D;
}



/* Style Two */
.series_item a.view_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #31AEFF;
    color: #fff;
    font-size: 19px;
    line-height: 23px;
    font-weight: 700;
    border-radius: 100px;
    justify-content: center;
    text-transform: uppercase;
    padding: 15px 34px;
    text-decoration: none !important;
    width: 100%;
    text-align: center;
    margin-top: auto;
    /* Pushes button to bottom */
}

.series_item a.view_btn:hover {
    background: #DB9D6A;
}

.series_rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}

.series_rating span {
    font-size: 16px;
    font-weight: 400;
    color: #07032D;
    line-height: 19px;
}

/* Set Owl Carousel's default images to auto width */
.pool-carousel-slider.owl-carousel .owl-item img {
    max-width: 100%;
    width: auto !important;
}

/* Override specifically for series thumb images */
.pool-carousel-slider.owl-carousel .owl-item .series_thumb img {
    max-width: 100%;
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0 !important;
}

.series_item p {
    font-size: 15.8px;
    line-height: 22px;
    color: #07032D;
    font-weight: 400;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Fix for carousel item width */
.pool-carousel-slider.owl-carousel .owl-item {
    width: 100%;
}

.pool-carousel-slider.owl-carousel .owl-item .series_item {
    width: 100%;
}

.series_thumb_wrapper {
    width: 100%;
}

.series_thumb {
    position: relative;
    height: 300px;
    width: 100%;
    /* Ensure thumb container is full width */
}

.series_thumb img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0 !important;
}

.mfp-blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* General card styling */
.mfp-blog-post-card {
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: none;
}

/* First card styling - horizontal layout */
.mfp-blog-post-card.first-card {
    grid-column: span 3;
    display: flex;
    flex-direction: row;
    height: auto;
}

.mfp-blog-post-card.first-card .post-thumbnail {
    width: 50%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.mfp-blog-post-card.first-card .post-content {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* Regular card styling - vertical layout */
.mfp-blog-post-card .post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.mfp-blog-post-card .post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Post date */
.mfp-blog-post-card .post-date {
    color: #DB9D6A;
    font-size: 0.8em;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Post title */
.mfp-blog-post-card .post-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.mfp-blog-post-card.first-card .post-title {
    font-size: 1.8em;
}

/* Post excerpt */
.mfp-blog-post-card .post-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Read more button */
.mfp-blog-post-card .read-more {
    display: inline-block;
    background-color: transparent;
    color: #31AEFF;
    border: 1px solid #31AEFF;
    border-radius: 30px;
    padding: 8px 25px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s;
    align-self: flex-start;
}

.mfp-blog-post-card .read-more:hover {
    background-color: #31AEFF;
    color: #fff;
}

/* Make sure images maintain aspect ratio and fill the container */
.mfp-blog-post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* First card thumbnail */
.mfp-blog-post-card.first-card .post-thumbnail {
    width: 50%;
    height: auto;
    min-height: 300px;
    overflow: hidden;
}

.mfp-blog-post-card.first-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Load More Button Container */
.mfp-load-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Load More Button Styling */
.mfp-load-more-button {
    display: inline-block;
    background-color: transparent;
    color: #31AEFF;
    border: 2px solid #31AEFF;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.mfp-load-more-button:hover {
    background-color: #31AEFF;
    color: white;
}

/* Arrow styling */
.mfp-load-more-button .arrow {
    margin-left: 5px;
    display: inline-block;
}

/* Add some padding to the widget container */
.mfp-blog-posts-widget {
    padding: 20px;
    border-radius: 15px;
}

/* Tablet Styles (768px to 1024px) */
@media (max-width: 1024px) {
    .mfp-blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mfp-blog-post-card.first-card {
        grid-column: span 2;
    }

    .mfp-blog-post-card .post-title {
        font-size: 1.2em;
    }
}

/* Mobile Styles (up to 767px) */
@media (max-width: 767px) {
    .mfp-blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mfp-blog-post-card.first-card {
        grid-column: span 1;
        flex-direction: column;
    }

    .mfp-blog-post-card.first-card .post-thumbnail,
    .mfp-blog-post-card.first-card .post-content {
        width: 100%;
    }

    .mfp-blog-post-card.first-card .post-thumbnail {
        height: 200px;
    }

    .mfp-blog-post-card .post-content {
        padding: 15px;
    }

    .mfp-blog-post-card .post-title {
        font-size: 1.1em;
    }

    .mfp-blog-post-card .post-excerpt {
        margin-bottom: 15px;
    }

    .mfp-load-more-container {
        margin-top: 20px;
    }

    .mfp-load-more-button {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
    }
}