/**
 * Elegant News Grid Styles
 * Version: 2.0.0
 * Author: Darko Ivanec
 * Company: Digitalni Svemir
 */

/* =============================================================================
   SHARED STYLES (All Layouts)
   ============================================================================= */

/* Mobile/Desktop Layout Visibility */
.eng-mobile-only {
    display: block;
}

.eng-desktop-only {
    display: none;
}

@media (min-width: 1000px) {
    .eng-mobile-only {
        display: none;
    }

    .eng-desktop-only {
        display: block;
    }
}

.elegant-news-grid-wrapper,
.elegant-lifestyle-posts-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Mobile/Tablet wrapper padding (do 999px) */
@media (max-width: 999px) {
    .elegant-news-grid-wrapper {
        padding: 20px 23px 30px 23px;
    }
}

/* Desktop wrapper padding (1000px+) */
@media (min-width: 1000px) {
    .elegant-news-grid-wrapper,
    .elegant-lifestyle-posts-wrapper {
        padding-left: 56px;
        padding-right: 56px;
    }
}

.eng-container,
.elp-container {
    background-color: #ffffff;
    padding: 32px;
    width: 315px;
    box-sizing: content-box;
}

/* Tablet/Desktop: Full width container */
@media (min-width: 768px) {
    .eng-container,
    .elp-container {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Heading (Shared) */
.eng-heading,
.elp-heading {
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 20px !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: #000 !important;
    margin: 10px 0 50px 0 !important;
    padding: 0 !important;
}

/* Heading Wrapper with Submenu */
.eng-heading-wrapper {
    position: relative;
}

.eng-heading-wrapper.eng-has-submenu {
    margin-bottom: 0;
}

/* Add spacing ONLY when submenu is open */
.eng-heading-wrapper.eng-wrapper-expanded {
    margin-bottom: 30px;
}

@media (min-width: 1000px) {
    .eng-heading-wrapper.eng-wrapper-expanded {
        margin-bottom: 60px;
    }
}

.eng-heading-clickable {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

@media (hover: hover) {
    .eng-heading-clickable:hover {
        opacity: 0.7;
    }
}

/* Submenu Container */
.eng-submenu {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

/* Mobile: 50%/50% layout kao desktop */
@media (max-width: 999px) {
    .eng-heading-wrapper.eng-has-submenu {
        display: grid;
        grid-template-columns: 50% 50%;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 50px;
    }

    .eng-heading-wrapper.eng-has-submenu .eng-heading {
        margin-bottom: 0 !important;
        width: 100%;
        margin-top: 2px !important;
    }

    .eng-submenu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        padding: 0;
        transform: translateX(20px);
    }

    .eng-submenu.eng-submenu-active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        max-height: 500px;
    }

    .eng-submenu-link {
        text-align: right;
    }
}

/* Desktop: Submenu on right side - 50%/50% layout */
@media (min-width: 1000px) {
    .eng-heading-wrapper.eng-has-submenu {
        display: grid;
        grid-template-columns: 50% 50%;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 60px;
    }

    .eng-heading-wrapper.eng-has-submenu .eng-heading {
        margin-bottom: 0 !important;
        width: 100%;
    }

    .eng-submenu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        transform: translateX(30px);
        padding: 0;
        /* Align submenu text with heading baseline - heading is 20px, submenu is 15px */
        padding-top: 3px;
    }

    .eng-submenu.eng-submenu-active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        max-height: 500px;
    }
}

/* Submenu List */
.eng-submenu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eng-submenu-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile: Tighter submenu spacing for plugin (NOT archive pages) */
@media (max-width: 999px) {
    .eng-submenu-item {
        margin-top: -10px !important;
    }

    /* Reset for category/tag archive pages - keep normal spacing */
    .elegant-archive-expanded-submenu .eng-submenu-item {
        margin-top: 0 !important;
    }
}

.eng-submenu-link {
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 22px !important;
    letter-spacing: 2.25px !important;
    text-transform: uppercase !important;
    color: var(--lifestyle, #617973) !important;
    text-decoration: none !important;
    transition: color 0.2s ease, opacity 0.2s ease;
    display: block;
    text-align: right;
}

@media (hover: hover) {
    .eng-submenu-link:hover {
        opacity: 0.7;
    }
}

@media (min-width: 1000px) {
    .eng-submenu-list {
        gap: 10px;
    }

    .eng-submenu-link {
        font-family: "Reddit Sans", sans-serif !important;
        font-size: 22px !important;
        font-style: normal !important;
        font-weight: 700 !important;
        line-height: 22px !important;
        letter-spacing: 3.3px !important;
        text-transform: uppercase !important;
    }

    /* Category/Tag archive pages - align submenu with heading */
    .elegant-archive-expanded-submenu .eng-submenu {
        padding-right: 40px !important;
        margin-top: 20px;
    }

    /* Category/Tag archive pages - horizontal submenu list */
    .elegant-archive-expanded-submenu .eng-submenu-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 3vw !important;
    }
}

/* Category/Tag Label (Shared) */
.eng-post-category,
.elp-post-category {
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 15px !important;
    letter-spacing: 2.6px !important;
    text-transform: uppercase !important;
    color: #000 !important;
    margin: 0px 0px 8px 0px !important;
    padding: 0 !important;
}

.eng-post-category a,
.elp-post-category a {
    color: inherit !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

@media (hover: hover) {
    .eng-post-category a:hover,
    .elp-post-category a:hover {
        opacity: 0.7;
    }
}

/* Post Title (Shared) */
.eng-post-title,
.elp-post-title {
    font-family: 'DM Serif Text', Georgia, serif !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: -0.2px !important;
    color: #4D4D4D !important;
    margin: 0 !important;
    margin-bottom: 4px !important;
    padding: 0 !important;
}

.eng-post-title a,
.elp-post-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

@media (hover: hover) {
    .eng-post-title a:hover,
    .elp-post-title a:hover {
        opacity: 0.7;
    }
}

/* Post Image (Shared) */
.eng-post-image,
.elp-post-image {
    overflow: hidden;
    background-color: #f5f5f5;
}

.eng-post-image a,
.elp-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.eng-post-image img,
.elp-post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

@media (hover: hover) {
    .eng-post-image:hover img,
    .elp-post-image:hover img {
        transform: scale(1.05);
    }
}

.eng-no-image,
.elp-no-image {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

/* More Link (Shared) */
.eng-more-link,
.elp-more-link {
    margin-top: 60px !important;
    text-align: center !important;
}

.eng-more-link a,
.elp-more-link a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 15px !important;
    letter-spacing: 3.6px !important;
    text-transform: uppercase !important;
    color: #000 !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

@media (hover: hover) {
    .eng-more-link a:hover,
    .elp-more-link a:hover {
        opacity: 0.7;
    }
}

.eng-plus-icon,
.elp-plus-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-top: 1px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.eng-plus-icon svg,
.elp-plus-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (hover: hover) {
    .eng-more-link a:hover .eng-plus-icon,
    .elp-more-link a:hover .elp-plus-icon {
        transform: rotate(90deg);
    }
}

/* No Posts */
.eng-no-posts,
.elp-no-posts,
.elp-no-category {
    padding: 40px 20px;
    text-align: center;
    color: #666666;
    background-color: #ffffff;
}

/* Hide classes */
@media (max-width: 999px) {
    .eng-hide-mobile,
    .elp-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 1000px) {
    .eng-hide-desktop,
    .elp-hide-desktop {
        display: none !important;
    }
}

/* =============================================================================
   LAYOUT 1: TWO COLUMN - IMAGE LEFT, TEXT RIGHT
   (Original layout - backward compatible)
   ============================================================================= */

.eng-layout-two-column .eng-posts-list,
.elp-posts-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.eng-layout-two-column .eng-post-item,
.elp-post-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.eng-layout-two-column .eng-post-image,
.elp-post-image {
    flex-shrink: 0;
    width: 40%;
    height: 120px;
}

.eng-layout-two-column .eng-post-image img,
.elp-post-image img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover;
}

.eng-layout-two-column .eng-post-content,
.elp-post-content {
    flex: 1;
    min-width: 0;
}

/* Zoom image when hovering title in two-column layout */
.eng-layout-two-column .eng-post-item:has(.eng-post-title a:hover) .eng-post-image img,
.elp-post-item:has(.elp-post-title a:hover) .elp-post-image img {
    transform: scale(1.05);
}

@media (max-width: 420px) {
    .eng-layout-two-column .eng-container,
    .elp-container {
        width: 100%;
        padding: 20px 20px 60px 20px;
        margin: 0;
        box-sizing: border-box;
    }

    .eng-layout-two-column .eng-post-item,
    .elp-post-item {
        gap: 13px;
    }

    .eng-layout-two-column .eng-post-image,
    .elp-post-image {
        width: 48%;
        height: 120px;
    }

    .eng-layout-two-column .eng-post-image img,
    .elp-post-image img {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover;
    }
}

/* Tablet styles (421px - 999px) */
@media (min-width: 421px) and (max-width: 999px) {
    .eng-layout-two-column .eng-post-image,
    .elp-post-image {
        height: 300px;
    }

    .eng-layout-two-column .eng-post-image img,
    .elp-post-image img {
        height: 100% !important;
    }
}

@media (min-width: 1000px) {
    .eng-layout-two-column .eng-container,
    .elp-container {
        max-width: 1200px;
        width: 100%;
        padding: 20px 40px 80px 40px;
        margin: 0 auto;
    }

    .eng-layout-two-column .eng-heading,
    .elp-heading {
        font-size: 30px !important;
        line-height: 30px !important;
        margin: 0 0 60px 0 !important;
    }

    .eng-layout-two-column .eng-posts-list,
    .elp-posts-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 50px 40px;
    }

    .eng-layout-two-column .eng-post-item,
    .elp-post-item {
        flex-direction: column;
        gap: 20px;
    }

    .eng-layout-two-column .eng-post-image,
    .elp-post-image {
        width: 100%;
        height: auto;
        aspect-ratio: 145 / 122;
    }

    .eng-layout-two-column .eng-post-image img,
    .elp-post-image img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 145 / 122;
    }

    .eng-layout-two-column .eng-post-content,
    .elp-post-content {
        flex: initial;
    }

    .eng-layout-two-column .eng-post-category,
    .elp-post-category {
        font-size: 14px !important;
        line-height: 16px !important;
        margin: 0 0 18px 0 !important;
    }

    .eng-layout-two-column .eng-post-title,
    .elp-post-title {
        font-size: 30px !important;
        line-height: 30px !important;
    }

    .eng-layout-two-column .eng-more-link,
    .elp-more-link {
        padding: 70px 100px 120px 100px !important;
    }

    .eng-layout-two-column .eng-more-link a,
    .elp-more-link a {
        font-size: 17px !important;
        line-height: 20px !important;
        letter-spacing: 4.8px !important;
    }

    .eng-layout-two-column .eng-plus-icon,
    .elp-plus-icon {
        width: 14px;
        height: 14px;
    }
}

/* =============================================================================
   LAYOUT 2: FEATURED + GRID 4 (1 veliki + 4 mala)
   ============================================================================= */

.eng-layout-featured-grid .eng-featured-grid-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Featured Post (Mobile - stacked vertically) */
.eng-layout-featured-grid .eng-featured-post {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eng-layout-featured-grid .eng-featured-post .eng-post-image {
    width: 100%;
    height: 204px;
    position: relative;
    overflow: hidden;
}

.eng-layout-featured-grid .eng-featured-post .eng-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.eng-layout-featured-grid .eng-featured-post .eng-post-image img {
    width: 100% !important;
    height: 204px !important;
    object-fit: cover;
}

/* Small Posts Grid (Mobile - 2 columns) */
.eng-layout-featured-grid .eng-small-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
}

.eng-layout-featured-grid .eng-small-post-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.eng-layout-featured-grid .eng-small-post-item .eng-post-image {
    width: 100%;
    height: 110px;
    min-width: 0;
}

.eng-layout-featured-grid .eng-small-post-item .eng-post-image img {
    width: 100% !important;
    height: 110px !important;
    object-fit: cover;
    max-width: 100%;
    display: block;
}

/* Tablet: Larger images (768px-999px) */
@media (min-width: 768px) and (max-width: 999px) {
    .eng-layout-featured-grid .eng-featured-post .eng-post-image {
        height: 380px;
    }

    .eng-layout-featured-grid .eng-featured-post .eng-post-image img {
        height: 380px !important;
    }

    .eng-layout-featured-grid .eng-small-post-item .eng-post-image {
        height: 220px;
    }

    .eng-layout-featured-grid .eng-small-post-item .eng-post-image img {
        height: 220px !important;
    }
}

@media (max-width: 420px) {
    .eng-layout-featured-grid .eng-container {
        width: 100%;
        padding: 20px 20px 60px 20px;
        box-sizing: border-box;
    }
}

@media (min-width: 1000px) {
    .eng-layout-featured-grid .eng-container {
        max-width: 1200px;
        width: 100%;
        padding: 20px 40px 80px 40px;
        margin: 0 auto;
    }

    .eng-layout-featured-grid .eng-heading {
        font-size: 30px !important;
        line-height: 30px !important;
        margin: 0 0 60px 0 !important;
    }

    /* Desktop: Featured left (50%), Grid right (50%) */
    .eng-layout-featured-grid .eng-featured-grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .eng-layout-featured-grid .eng-featured-post {
        gap: 25px;
    }

    .eng-layout-featured-grid .eng-featured-post .eng-post-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1.35;
    }

    .eng-layout-featured-grid .eng-featured-post .eng-post-image img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1.35;
    }

    .eng-layout-featured-grid .eng-featured-post .eng-post-category {
        font-size: 14px !important;
        line-height: 16px !important;
        margin: 0 0 18px 0 !important;
    }

    .eng-layout-featured-grid .eng-featured-post .eng-post-title {
        font-size: 28px !important;
        line-height: 28px !important;
    }

    /* Small posts - 2x2 grid */
    .eng-layout-featured-grid .eng-small-posts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        align-content: start;
    }

    .eng-layout-featured-grid .eng-small-post-item {
        gap: 15px;
    }

    .eng-layout-featured-grid .eng-small-post-item .eng-post-image {
        width: 100%;
        height: auto;
        aspect-ratio: 147 / 122;
    }

    .eng-layout-featured-grid .eng-small-post-item .eng-post-image img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 147 / 122;
    }

    .eng-layout-featured-grid .eng-more-link {
        padding: 70px 100px 120px 100px !important;
    }

    .eng-layout-featured-grid .eng-more-link a {
        font-size: 17px !important;
        line-height: 20px !important;
        letter-spacing: 4.8px !important;
    }

    .eng-layout-featured-grid .eng-plus-icon {
        width: 14px;
        height: 14px;
    }
}

/* =============================================================================
   LAYOUT 3: GRID 2 COLUMNS
   ============================================================================= */

.eng-layout-grid-two .eng-grid-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 21px;
}

.eng-layout-grid-two .eng-grid-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.eng-layout-grid-two .eng-grid-item .eng-post-image {
    width: 100%;
    height: 122px;
}

.eng-layout-grid-two .eng-grid-item .eng-post-image img {
    width: 100% !important;
    height: 122px !important;
}

@media (max-width: 420px) {
    .eng-layout-grid-two .eng-container {
        width: 100%;
        padding: 20px 20px 60px 20px;
        box-sizing: border-box;
    }

    .eng-layout-grid-two .eng-grid-two-columns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

/* Tablet styles (421px - 999px) */
@media (min-width: 421px) and (max-width: 999px) {
    .eng-layout-grid-two .eng-grid-item .eng-post-image {
        width: 100%;
        height: 300px;
    }

    .eng-layout-grid-two .eng-grid-item .eng-post-image img {
        width: 100% !important;
        height: 100% !important;
    }
}

@media (min-width: 1000px) {
    .eng-layout-grid-two .eng-container {
        max-width: 1200px;
        width: 100%;
        padding: 20px 40px 80px 40px;
        margin: 0 auto;
    }

    .eng-layout-grid-two .eng-heading {
        font-size: 30px !important;
        line-height: 30px !important;
        margin: 0 0 60px 0 !important;
    }

    .eng-layout-grid-two .eng-grid-two-columns {
        gap: 50px 40px;
    }

    .eng-layout-grid-two .eng-grid-item {
        gap: 20px;
    }

    .eng-layout-grid-two .eng-grid-item .eng-post-image {
        width: 100%;
        height: auto;
        aspect-ratio: 147 / 122;
    }

    .eng-layout-grid-two .eng-grid-item .eng-post-image img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 147 / 122;
    }

    .eng-layout-grid-two .eng-post-category {
        font-size: 14px !important;
        line-height: 16px !important;
        margin: 0 0 18px 0 !important;
    }

    .eng-layout-grid-two .eng-post-title {
        font-size: 30px !important;
        line-height: 30px !important;
    }

    .eng-layout-grid-two .eng-more-link {
        padding: 70px 100px 120px 100px !important;
    }

    .eng-layout-grid-two .eng-more-link a {
        font-size: 17px !important;
        line-height: 20px !important;
        letter-spacing: 4.8px !important;
    }

    .eng-layout-grid-two .eng-plus-icon {
        width: 14px;
        height: 14px;
    }
}

/* =============================================================================
   LAYOUT 4: SINGLE COLUMN
   ============================================================================= */

.eng-layout-single-column .eng-single-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.eng-layout-single-column .eng-single-item {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
}

.eng-layout-single-column .eng-single-item .eng-post-image {
    flex-shrink: 0;
    width: 145px;
    height: 120px;
}

.eng-layout-single-column .eng-single-item .eng-post-image img {
    width: 145px !important;
    height: 120px !important;
    object-fit: cover;
}

.eng-layout-single-column .eng-single-item .eng-post-content {
    flex: 1;
}

/* Mobile typography - Figma specs */
.eng-layout-single-column .eng-post-category {
    color: #000 !important;
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 15px !important;
    letter-spacing: 2.6px !important;
    text-transform: uppercase !important;
}

.eng-layout-single-column .eng-post-title {
    color: var(--Naslov-box, #4D4D4D) !important;
    font-family: "DM Serif Text", serif !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: -0.2px !important;
}

/* Tablet: Larger images and typography (768px-999px) */
@media (min-width: 768px) and (max-width: 999px) {
    .eng-layout-single-column .eng-single-item {
        gap: 30px;
    }

    .eng-layout-single-column .eng-single-item .eng-post-image {
        width: 220px;
        height: 180px;
    }

    .eng-layout-single-column .eng-single-item .eng-post-image img {
        width: 220px !important;
        height: 180px !important;
    }

    .eng-layout-single-column .eng-post-category {
        font-size: 15px !important;
        line-height: 17px !important;
        letter-spacing: 3px !important;
    }

    .eng-layout-single-column .eng-post-title {
        font-size: 24px !important;
        line-height: 24px !important;
        letter-spacing: -0.24px !important;
    }
}

@media (min-width: 1000px) {
    .eng-layout-single-column .eng-container {
        max-width: 800px;
        width: 100%;
        padding: 20px 40px 80px 40px;
        margin: 0 auto;
    }

    .eng-layout-single-column .eng-heading {
        font-size: 30px !important;
        line-height: 30px !important;
        margin: 0 0 60px 0 !important;
    }

    .eng-layout-single-column .eng-single-column {
        gap: 60px;
    }

    .eng-layout-single-column .eng-single-item {
        gap: 25px;
    }

    .eng-layout-single-column .eng-post-category {
        font-size: 14px !important;
        line-height: 16px !important;
        margin: 0 0 18px 0 !important;
    }

    .eng-layout-single-column .eng-post-title {
        font-size: 32px !important;
        line-height: 32px !important;
    }

    .eng-layout-single-column .eng-more-link {
        padding: 70px 100px 120px 100px !important;
    }

    .eng-layout-single-column .eng-more-link a {
        font-size: 17px !important;
        line-height: 20px !important;
        letter-spacing: 4.8px !important;
    }

    .eng-layout-single-column .eng-plus-icon {
        width: 14px;
        height: 14px;
    }
}

/* =============================================================================
   LAYOUT 5: FIVE POSTS - FIRST LARGE (Desktop Only)
   Two columns: Left = 1 large article, Right = 4 small articles (2x2 grid)
   ============================================================================= */

/* Mobile: Stacked vertically (like featured_plus_grid) */
.eng-layout-five-posts-first-large .eng-five-posts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.eng-layout-five-posts-first-large .eng-large-post {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eng-layout-five-posts-first-large .eng-large-post .eng-post-image {
    width: 100%;
    height: 284px;
}

.eng-layout-five-posts-first-large .eng-large-post .eng-post-image img {
    width: 100% !important;
    height: 284px !important;
}

/* Small Posts Grid (Mobile - 2 columns) */
.eng-layout-five-posts-first-large .eng-small-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
}

.eng-layout-five-posts-first-large .eng-small-post-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.eng-layout-five-posts-first-large .eng-small-post-item .eng-post-image {
    width: 100%;
    height: 122px;
}

.eng-layout-five-posts-first-large .eng-small-post-item .eng-post-image img {
    width: 100% !important;
    height: 122px !important;
}

/* Tablet: Veće slike (768px-999px) */
@media (min-width: 768px) and (max-width: 999px) {
    .eng-layout-five-posts-first-large .eng-large-post .eng-post-image {
        height: 420px;
    }

    .eng-layout-five-posts-first-large .eng-large-post .eng-post-image img {
        height: 420px !important;
    }

    .eng-layout-five-posts-first-large .eng-small-post-item .eng-post-image {
        height: 220px;
    }

    .eng-layout-five-posts-first-large .eng-small-post-item .eng-post-image img {
        height: 220px !important;
    }
}

@media (max-width: 999px) {
    .eng-layout-five-posts-first-large .eng-container {
        width: 100%;
        box-sizing: border-box;
    }

    .eng-layout-five-posts-first-large .eng-submenu.eng-submenu-active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        max-height: 500px;
        margin-top: -10px;
    }

    .eng-layout-five-posts-first-large .eng-submenu-item {
        margin: 0 !important;
        padding: 0 !important;
        margin-top: -10px !important;
    }
}

/* Desktop: 1000px+ (SVE desktop rezolucije) */
@media (min-width: 1000px) {
    .eng-layout-five-posts-first-large .eng-container {
        max-width: 1920px;
        width: 100%;
        padding: 20px 50px 20px 50px;
        margin: 0 auto;
    }

    .eng-layout-five-posts-first-large .eng-heading {
        font-size: 30px !important;
        line-height: 30px !important;
        margin: 20px 0 60px 0 !important;
    }

    /* Five Posts Layout: Podrška za submenu */
    .eng-layout-five-posts-first-large .eng-heading-wrapper.eng-has-submenu {
        display: grid;
        grid-template-columns: 50% 50%;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 100px;
        overflow: visible !important; /* KRITIČNO - omogući submenu da se vidi */
    }

    .eng-layout-five-posts-first-large .eng-heading-wrapper.eng-has-submenu .eng-heading {
        margin-bottom: 0 !important;
    }

    .eng-layout-five-posts-first-large .eng-submenu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        transform: translateX(30px) !important;
        padding: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, max-height 0.3s ease !important;
    }

    .eng-layout-five-posts-first-large .eng-submenu.eng-submenu-active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
        max-height: 500px !important;
        overflow: visible !important; /* Prikaži sadržaj */
        margin-top: 20px;
    }

    /* Osiguraj da container ne clipuje submenu */
    .eng-layout-five-posts-first-large .eng-container {
        overflow: visible !important;
    }

    /* Ukloni bullet points iz submenua */
    .eng-layout-five-posts-first-large .eng-submenu-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .eng-layout-five-posts-first-large .eng-submenu-item {
        list-style: none !important;
    }

    /* Desktop: Large post left (50%), Small posts grid right (50%) */
    .eng-layout-five-posts-first-large .eng-five-posts-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .eng-layout-five-posts-first-large .eng-large-post {
        gap: 40px;
    }

    .eng-layout-five-posts-first-large .eng-large-post .eng-post-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1.1;
    }

    .eng-layout-five-posts-first-large .eng-large-post .eng-post-image img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1.1;
    }

    /* Large post category - Desktop Base (default za 1000-1400px) */
    .eng-layout-five-posts-first-large .eng-large-post .eng-post-category {
        font-family: "Reddit Sans", sans-serif !important;
        font-size: 19px !important;
        font-style: normal !important;
        font-weight: 800 !important;
        line-height: 15px !important;
        letter-spacing: 3.75px !important;
        text-transform: uppercase !important;
        color: #000 !important;
        margin: 0 0 18px 0 !important;
    }

    /* Large post title - Desktop Base (default za 1000-1400px) */
    .eng-layout-five-posts-first-large .eng-large-post .eng-post-title {
        font-family: 'DM Serif Text', Georgia, serif !important;
        font-size: 39px !important;
        font-weight: 400 !important;
        line-height: 39px !important;
        letter-spacing: -0.77px !important;
        color: #4D4D4D !important;
        padding-right: 20px !important;
    }

    /* Small posts - 2x2 grid */
    .eng-layout-five-posts-first-large .eng-small-posts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 42px;
        align-content: start;
    }

    .eng-layout-five-posts-first-large .eng-small-post-item {
        gap: 29px;
    }

    .eng-layout-five-posts-first-large .eng-small-post-item .eng-post-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .eng-layout-five-posts-first-large .eng-small-post-item .eng-post-image img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1;
    }

    /* Small posts category - Desktop Base (default za 1000-1400px) */
    .eng-layout-five-posts-first-large .eng-small-post-item .eng-post-category {
        font-family: "Reddit Sans", sans-serif !important;
        font-size: 15px !important;
        font-style: normal !important;
        font-weight: 800 !important;
        line-height: 15px !important;
        letter-spacing: 3px !important;
        text-transform: uppercase !important;
        color: #000 !important;
        margin: 0 0 18px 0 !important;
    }

    /* Small posts title - Desktop Base (default za 1000-1400px) */
    .eng-layout-five-posts-first-large .eng-small-post-item .eng-post-title {
        font-family: 'DM Serif Text', Georgia, serif !important;
        font-size: 25px !important;
        font-weight: 400 !important;
        line-height: 25px !important;
        letter-spacing: -0.49px !important;
        color: #4D4D4D !important;
    }

    .eng-layout-five-posts-first-large .eng-more-link {
        padding: 70px 100px 120px 100px !important;
    }

    .eng-layout-five-posts-first-large .eng-more-link a {
        font-size: 17px !important;
        line-height: 15px !important;
        letter-spacing: 4.8px !important;
    }

    .eng-layout-five-posts-first-large .eng-plus-icon {
        width: 14px;
        height: 14px;
    }
}

/* ==========================================================================
   Desktop Medium: 1401px - 1500px
   ========================================================================== */

@media (min-width: 1401px) and (max-width: 1500px) {

    /* Large post category - Desktop Medium */
    .eng-layout-five-posts-first-large .eng-large-post .eng-post-category {
        font-size: 22px !important;
        line-height: 15px !important;
        letter-spacing: 4.375px !important;
    }

    /* Large post title - Desktop Medium */
    .eng-layout-five-posts-first-large .eng-large-post .eng-post-title {
        font-size: 47px !important;
        line-height: 47px !important;
        letter-spacing: -0.94px !important;
    }

    /* Small posts category - Desktop Medium */
    .eng-layout-five-posts-first-large .eng-small-post-item .eng-post-category {
        font-size: 18px !important;
        line-height: 15px !important;
        letter-spacing: 3.5px !important;
    }

    /* Small posts title - Desktop Medium */
    .eng-layout-five-posts-first-large .eng-small-post-item .eng-post-title {
        font-size: 30px !important;
        line-height: 30px !important;
        letter-spacing: -0.6px !important;
    }
}

/* ==========================================================================
   Desktop Large: 1501px+
   ========================================================================== */

@media (min-width: 1501px) {

    /* Large post category - Desktop Large (Figma specs za velike ekrane) */
    .eng-layout-five-posts-first-large .eng-large-post .eng-post-category {
        font-size: 25px !important;
        line-height: 15px !important;
        letter-spacing: 5px !important;
    }

    /* Large post title - Desktop Large (Figma specs za velike ekrane) */
    .eng-layout-five-posts-first-large .eng-large-post .eng-post-title {
        font-size: 55px !important;
        line-height: 55px !important;
        letter-spacing: -1.1px !important;
    }

    /* Small posts category - Desktop Large (Figma specs za velike ekrane) */
    .eng-layout-five-posts-first-large .eng-small-post-item .eng-post-category {
        font-size: 20px !important;
        line-height: 15px !important;
        letter-spacing: 4px !important;
    }

    /* Small posts title - Desktop Large (Figma specs za velike ekrane) */
    .eng-layout-five-posts-first-large .eng-small-post-item .eng-post-title {
        font-size: 35px !important;
        line-height: 35px !important;
        letter-spacing: -0.35px !important;
    }
}
/* ==========================================================================
   Layout 6: Three Column Row (Desktop Only)
   ========================================================================== */

/* Mobile: Skriven layout na mobilnom */
@media (max-width: 999px) {
    .eng-layout-three-column-row .eng-container {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Desktop: 1000px+ */
@media (min-width: 1000px) {
    .eng-layout-three-column-row .eng-container {
        max-width: 1920px;
        width: 100%;
        padding: 20px 50px 20px 50px;
        margin: 0 auto;
        overflow: visible !important;
    }

    .eng-layout-three-column-row .eng-heading {
        font-size: 30px !important;
        line-height: 30px !important;
        margin: 20px 0 100px 0 !important;
    }

    /* Three Column Layout: Podrška za submenu (kao five_posts_first_large) */
    .eng-layout-three-column-row .eng-heading-wrapper.eng-has-submenu {
        display: grid;
        grid-template-columns: 50% 50%;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 60px;
        overflow: visible !important;
    }

    .eng-layout-three-column-row .eng-heading-wrapper.eng-has-submenu .eng-heading {
        margin-bottom: 0 !important;
    }

    .eng-layout-three-column-row .eng-submenu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        transform: translateX(30px) !important;
        padding: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, max-height 0.3s ease !important;
    }

    .eng-layout-three-column-row .eng-submenu.eng-submenu-active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
        max-height: 500px !important;
        overflow: visible !important;
    }

    /* Ukloni bullet points iz submenua */
    .eng-layout-three-column-row .eng-submenu-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .eng-layout-three-column-row .eng-submenu-item {
        list-style: none !important;
    }

    /* Three Column Container: inline-flex sa 60px gap */
    .eng-layout-three-column-row .eng-three-column-container {
        display: inline-flex;
        align-items: flex-start;
        gap: 60px;
        width: 100%;
    }

    /* Column Item: flex kolona */
    .eng-layout-three-column-row .eng-column-item {
        display: flex;
        flex-direction: column;
        gap: 30px;
        flex: 1;
        min-width: 0;
    }

    /* Post Image: aspect ratio 7:7.3 */
    .eng-layout-three-column-row .eng-column-item .eng-post-image {
        width: 100%;
        height: auto !important;
        aspect-ratio: 7 / 7.3;
    }

    .eng-layout-three-column-row .eng-column-item .eng-post-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* Post Title: DM Serif Text, 40px, line-height 40px, letter-spacing -0.8px */
    .eng-layout-three-column-row .eng-column-item .eng-post-title {
        font-family: 'DM Serif Text', Georgia, serif !important;
        font-size: 40px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 40px !important;
        letter-spacing: -0.8px !important;
        color: var(--Naslov-box, #4D4D4D) !important;
        margin: 0 !important;
    }

    /* More Link - isti stil kao five_posts_first_large */
    .eng-layout-three-column-row .eng-more-link {
        padding: 70px 100px 120px 100px !important;
    }

    .eng-layout-three-column-row .eng-more-link a {
        font-size: 17px !important;
        line-height: 20px !important;
        letter-spacing: 4.8px !important;
    }
}
/* ==========================================================================
   Layout 7: Two Rows - First Row Two Large (Desktop Only)
   ========================================================================== */

/* Mobile: Skriven layout na mobilnom */
@media (max-width: 999px) {
    .eng-layout-two-rows-first-two-large .eng-container {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Desktop: 1000px+ */
@media (min-width: 1000px) {
    .eng-layout-two-rows-first-two-large .eng-container {
        max-width: 1920px;
        width: 100%;
        padding: 20px 50px 20px 50px;
        margin: 0 auto;
        overflow: visible !important;
    }

    .eng-layout-two-rows-first-two-large .eng-heading {
        font-size: 30px !important;
        line-height: 30px !important;
        margin: 20px 0 60px 0 !important;
    }

    /* Submenu podrška (kao five_posts_first_large) */
    .eng-layout-two-rows-first-two-large .eng-heading-wrapper.eng-has-submenu {
        display: grid;
        grid-template-columns: 50% 50%;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 60px;
        overflow: visible !important;
    }

    .eng-layout-two-rows-first-two-large .eng-heading-wrapper.eng-has-submenu .eng-heading {
        margin-bottom: 0 !important;
    }

    .eng-layout-two-rows-first-two-large .eng-submenu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        transform: translateX(30px) !important;
        padding: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, max-height 0.3s ease !important;
    }

    .eng-layout-two-rows-first-two-large .eng-submenu.eng-submenu-active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
        max-height: 500px !important;
        overflow: visible !important;
    }

    /* Ukloni bullet points iz submenua */
    .eng-layout-two-rows-first-two-large .eng-submenu-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .eng-layout-two-rows-first-two-large .eng-submenu-item {
        list-style: none !important;
    }

    /* First Row: 2 Large Articles (50%/50% sa 40px gap) */
    .eng-layout-two-rows-first-two-large .eng-first-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    /* Large Item */
    .eng-layout-two-rows-first-two-large .eng-large-item {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }

    /* Large Item Image: 550px height */
    .eng-layout-two-rows-first-two-large .eng-large-item .eng-post-image {
        width: 100%;
        height: 550px;
        overflow: hidden;
    }

    .eng-layout-two-rows-first-two-large .eng-large-item .eng-post-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        display: block;
    }

    /* Large Item Title: 55px, line-height 55px, letter-spacing -1.1px */
    .eng-layout-two-rows-first-two-large .eng-large-item .eng-post-title {
        font-family: 'DM Serif Text', Georgia, serif !important;
        font-size: 55px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 55px !important;
        letter-spacing: -1.1px !important;
        color: var(--Naslov-box, #4D4D4D) !important;
        margin: 0 !important;
    }

    /* Second Row: 4 Small Articles (Grid 4 columns) */
    .eng-layout-two-rows-first-two-large .eng-second-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 46px;
    }

    /* Small Item */
    .eng-layout-two-rows-first-two-large .eng-small-item {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Small Item Image: Square (1:1) */
    .eng-layout-two-rows-first-two-large .eng-small-item .eng-post-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }

    .eng-layout-two-rows-first-two-large .eng-small-item .eng-post-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        display: block;
    }

    /* Small Item Title: 35px, line-height 40px, letter-spacing -0.7px */
    .eng-layout-two-rows-first-two-large .eng-small-item .eng-post-title {
        font-family: 'DM Serif Text', Georgia, serif !important;
        font-size: 35px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 40px !important;
        letter-spacing: -0.7px !important;
        color: var(--Naslov-box, #4D4D4D) !important;
        margin: 0 !important;
    }

    /* More Link - isti stil kao ostali layouti */
    .eng-layout-two-rows-first-two-large .eng-more-link {
        padding: 70px 100px 120px 100px !important;
    }

    .eng-layout-two-rows-first-two-large .eng-more-link a {
        font-size: 17px !important;
        line-height: 20px !important;
        letter-spacing: 4.8px !important;
    }
}

/* =============================================================================
   LAYOUT: SINGLE COLUMN IMAGE TITLE (Mobile Optimized)
   ============================================================================= */

/* Container - Mobile */
.eng-layout-single-column-image-title .eng-container {
    width: 100%;
    padding: 20px 20px 60px 20px;
    box-sizing: border-box;
}

/* Items Container */
.eng-single-column-image-title-items {
    display: flex;
    flex-direction: column;
    gap: 50px; /* Gap between posts */
}

/* Individual Item */
.eng-single-column-image-title-item {
    display: flex;
    flex-direction: column;
}

/* Image - Full width, aspect ratio 7:7.3 for mobile */
.eng-image-title-image {
    width: 100%;
    aspect-ratio: 7 / 7.3;
    overflow: hidden;
    position: relative;
}

.eng-image-title-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.eng-image-title-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.eng-image-title-image .eng-no-image {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

/* Title - Mobile */
.eng-image-title-title {
    margin: 0;
    padding: 0;
}

.eng-image-title-title a {
    color: var(--Naslov-box, #4D4D4D);
    font-family: "DM Serif Text", serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 100% */
    letter-spacing: -0.2px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.eng-image-title-title a:hover {
    opacity: 0.7;
}

/* More Link - Same as other layouts */
.eng-layout-single-column-image-title .eng-more-link {
    margin-top: 60px;
    text-align: center;
}

/* Desktop Styles */
@media (min-width: 1000px) {
    .eng-layout-single-column-image-title .eng-container {
        max-width: 1200px;
        width: 100%;
        padding: 20px 40px 80px 40px;
        margin: 0 auto;
    }

    .eng-layout-single-column-image-title .eng-heading {
        font-size: 30px !important;
        line-height: 30px !important;
        margin: 0 0 60px 0 !important;
    }

    .eng-single-column-image-title-items {
        gap: 60px; /* Larger gap on desktop */
    }

    .eng-single-column-image-title-item {
        gap: 20px; /* Larger gap between image and title on desktop */
    }

    /* Title - Desktop */
    .eng-image-title-title a {
        font-size: 28px;
        line-height: 28px;
        letter-spacing: -0.28px;
    }

    /* More Link */
    .eng-layout-single-column-image-title .eng-more-link {
        padding: 70px 100px 120px 100px !important;
    }

    .eng-layout-single-column-image-title .eng-more-link a {
        font-size: 17px !important;
        line-height: 20px !important;
        letter-spacing: 4.8px !important;
    }
}
