/**
 * Elementor News Layout Widget Styles
 */

.elementor-news-layout {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-ui);
}

.elementor-news-layout .widget-title {
    width: auto;
    background-color: var(--ink);
    color: var(--ink-light);
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    padding: 0.5rem 3rem 0.5rem 2rem;
    margin: 0;
    display: inline-block;
    text-transform: none;
    font-family: var(--font-editorial);
}

/* Header with title and main author */
.news-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.news-main-author {
    position: absolute;
    right: 36%;
    color: var(--color-stone-gray);
    font-size: 16px;
    font-weight: 500;
}


/* Main Layout Container */
.news-layout-container {
    display: flex;
    width: 100%;
}

/* Main Post (Left Column) */
.news-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-main .post-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.news-main .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-main:hover .post-image img {
    transform: scale(1.02);
}

.news-main .post-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-main .post-title {
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.news-main .post-title a {
    text-decoration: none;
    transition: color 0.2s ease-out;
}

.news-main .post-title a:hover {
    text-decoration: none;
    opacity: 0.7;
}

/* .news-main:hover {
    background-color: var(--color-silver-mist);
    padding: 15px;
    margin: -15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
} */

/* Image link styles */
.post-image-link {
    display: block;
    text-decoration: none;
}

.post-image-link:hover {
    text-decoration: none;
}

/* Author Styles */
.news-main .post-author {
    display: none; /* Hide author in main post content since it's in header */
}

.hero-byline {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: var(--ink-light);
    margin-bottom: 16px;
}

.post-excerpt {
    font-size: 1.05rem;
    color: var(--ink-muted);
    line-height: 1.72;
    margin-bottom: 24px;
    font-family: var(--font-editorial);
}

.hero-read {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1.5px solid var(--ink);
    padding-bottom: 2px;
    transition: opacity 0.2s;
    display: inline-flex;
}

.hero-label {
    font-family: var(--font-ui);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 16px;
}

.news-main .post-content {
    gap: 0;
}

.news-main .post-title {
    margin-top: 0;
    font-family: var(--font-editorial);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.hero-byline strong {
    color: var(--ink-muted);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 968px) {
    .news-layout-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-main .post-title {
        font-size: 24px;
    }

    .news-main .post-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .news-main .post-title {
        font-size: 20px;
    }

    .news-main .post-image {
        height: 200px;
    }

    .sub-post-item .post-image {
        height: 150px;
    }

    .sub-post-item .post-title {
        font-size: 20px;
        line-height: 22px;
    }

    .news-main-author {
        right: 0;
    }
}

@media (max-width: 480px) {
    .elementor-news-layout .widget-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .news-main .post-title {
        font-size: 18px;
    }

    .sub-post-item .post-title {
        font-size: 18px;
        line-height: 20px;
        margin: 8px 0px 15px;
    }

    .news-main-author {
        right: 0;
    }

    .news-layout-container {
        gap: 20px;
    }

    .news-sub {
        gap: 15px;
    }
}

/* Editor preview styles */
.elementor-editor-active .elementor-news-layout {
    min-height: 400px;
}

/* Loading state */
.news-layout-container:empty:after {
    content: "Loading news layout...";
    display: block;
    text-align: center;
    padding: 60px;
    color: var(--color-silver-mist);
    font-style: italic;
    grid-column: 1 / -1;
}
