.datom-premium-post-container {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.datom-premium-post-bg-number {
    position: absolute;
    right: -20px;
    bottom: -50px;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.datom-premium-post-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.datom-premium-post-content {
    flex: 1;
    min-width: 0; /* Prevent overflow issues */
}

.datom-premium-post-image {
    flex: 1;
    line-height: 0;
    min-width: 0;
}

.datom-premium-post-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Split Layout Specifics */
.elementor-widget-datom_premium_single_post.datom-layout-split .datom-premium-post-container {
    padding: 0;
    min-height: 0; /* Remove fixed min-height to eliminate unwanted padding */
}

.elementor-widget-datom_premium_single_post.datom-layout-split .datom-premium-post-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0;
}

.elementor-widget-datom_premium_single_post.datom-layout-split .datom-premium-post-content {
    flex: 0 0 50% !important;
    width: 50% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.elementor-widget-datom_premium_single_post.datom-layout-split .datom-premium-post-image {
    flex: 0 0 50% !important;
    width: 50% !important;
    position: relative !important;
    overflow: hidden;
}

.elementor-widget-datom_premium_single_post.datom-layout-split .datom-premium-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.datom-premium-post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.datom-premium-post-tag {
    text-transform: uppercase;
    padding: 4px 12px;
    letter-spacing: 1px;
}

.datom-premium-post-issue {
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.datom-premium-post-title {
    line-height: 1.1;
    margin: 0 0 25px 0;
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.datom-premium-post-excerpt {
    line-height: 1.6;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.datom-premium-post-footer {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.datom-premium-post-link {
    text-decoration: none;
    border-bottom: 2px solid;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.datom-premium-post-link:hover {
    opacity: 0.8;
}

.datom-premium-post-read-time {
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* Modern Light Preset */
.elementor-widget-datom_premium_single_post.datom-style-modern-light .datom-premium-post-container {
    background-color: #f7fafc;
    color: #2d3748;
}

.elementor-widget-datom_premium_single_post.datom-style-modern-light .datom-premium-post-title {
    color: #1a202c;
}

.elementor-widget-datom_premium_single_post.datom-style-modern-light .datom-premium-post-excerpt {
    color: #4a5568;
}

.elementor-widget-datom_premium_single_post.datom-style-modern-light .datom-premium-post-bg-number {
    color: rgba(0, 0, 0, 0.03);
}

.elementor-widget-datom_premium_single_post.datom-style-modern-light .datom-premium-post-link {
    color: #3182ce;
}

/* Minimalist Gold Preset */
.elementor-widget-datom_premium_single_post.datom-style-minimalist .datom-premium-post-container {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e2e8f0;
}

.elementor-widget-datom_premium_single_post.datom-style-minimalist .datom-premium-post-title {
    color: #1c1917;
}

.elementor-widget-datom_premium_single_post.datom-style-minimalist .datom-premium-post-link {
    color: #ca8a04;
    border-bottom: 1px solid #ca8a04;
}

.elementor-widget-datom_premium_single_post.datom-style-minimalist .datom-premium-post-tag {
    background-color: #1c1917;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 767px) {
    .datom-premium-post-inner {
        flex-direction: column-reverse !important;
        flex-wrap: wrap !important;
        gap: 30px;
    }

    .datom-premium-post-content,
    .datom-premium-post-image,
    .elementor-widget-datom_premium_single_post.datom-layout-split .datom-premium-post-content,
    .elementor-widget-datom_premium_single_post.datom-layout-split .datom-premium-post-image {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    .datom-premium-post-image {
        min-height: 300px;
    }

    .elementor-widget-datom_premium_single_post.datom-layout-split .datom-premium-post-image {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .datom-premium-post-title {
        /* We keep font-size responsiveness if not controlled by Elementor, but Elementor usually handles this. 
           However, if the user hasn't set anything, these will be used. 
           Actually, I'll remove them too to be safe. */
    }
}
