/**
 * Pulsar Theme - Latest News Widget Styles
 */

/* Main container */
.pulsar-latest-news {
    width: 100%;
    position: relative;
    background-color: #000000;
    overflow: hidden;
}

/* Inner container for flex layout */
.pulsar-latest-news-inner {
    display: flex;
    width: 100%;
    min-height: 400px;
}

/* Image wrapper - takes up 65% on desktop */
.pulsar-latest-news-image-wrapper {
    flex: 0.65;
    overflow: hidden;
    position: relative;
}

.pulsar-latest-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Content wrapper - takes up 35% on desktop */
.pulsar-latest-news-content-wrapper {
    flex: 0.35;
    display: flex;
    justify-content: flex-start;
    position: relative;
}

/* Text wrapper - aligns with the 1320px container */
.pulsar-latest-news-text-wrapper {
    max-width: 462px; /* 35% of the 1320px container */
    width: 100%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Title styling */
.pulsar-latest-news-title {
    font-family: "AktivGrotesk", sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
}

/* Add more space between title and date */
.pulsar-latest-news-title {
    margin-bottom: 15px;
}

/* Date styling */
.pulsar-latest-news-date {
    font-family: "AktivGrotesk", sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 0;
    color: #ffffff;
    opacity: 0.8;
}

/* Button wrapper spacing */
.pulsar-latest-news-text-wrapper .pulsar-button-wrapper {
    margin-top: 30px;
    margin-bottom: 0;
}

/* Make sure the button is white on black background */
.pulsar-latest-news .pulsar-button {
    color: #FFFFFF;
}

/* Use white arrow for the button */
.pulsar-latest-news .pulsar-arrow-icon {
    filter: invert(1);
}

.pulsar-latest-news-read-more:hover .read-more-arrow {
    transform: translateX(5px);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .pulsar-latest-news-inner {
        flex-direction: column;
    }
    
    .pulsar-latest-news-image-wrapper {
        height: 300px;
        position: relative;
    }
    
    .pulsar-latest-news-image {
        position: relative;
    }
    
    .pulsar-latest-news-content-wrapper {
        justify-content: center;
    }
    
    .pulsar-latest-news-text-wrapper {
        max-width: 100%;
        padding: 40px 20px;
    }
}

@media (max-width: 767px) {
    .pulsar-latest-news-title {
        font-size: 24px;
    }
    
    .pulsar-latest-news-content {
        font-size: 16px;
    }
    
    .pulsar-latest-news-image-wrapper {
        height: 200px;
    }
}
