/* Premium Headline Styles */
.gmr-fullwidth-headline {
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
}

.premium-slider-item .gmr-bigheadline {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

/* Big Headline (Left) */
.premium-slider-item .gmr-big-headline {
    width: 60%;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.premium-slider-item .gmr-big-headline .post-thumbnail img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    min-height: 331px;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

.gmr-big-headline:hover .post-thumbnail img {
    transform: scale(1.05);
}

.gmr-bigheadline-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    z-index: 2;
    pointer-events: none;
    border-radius: 0 0 0 5px;
}

.gmr-bigheadline-content * {
    pointer-events: auto;
}

.gmr-bigheadline-content .gmr-slide-titlelink {
    color: #fff !important;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

/* Right Column (Small Posts) */
.premium-slider-item .gmr-bigheadline-right-column {
    width: 40%;
    padding: 10px 15px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.wrap-headline-right-compact {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px;
    background: #fdfdfd;
    border-radius: 5px;
    border: 1px solid #f2f2f2;
    transition: all 0.3s ease;
    flex: 1;
}

.wrap-headline-right-compact:hover {
    background: #f8f8f8;
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.post-thumbnail-compact {
    width: 140px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    line-height: 0;
}

.post-thumbnail-compact img {
    width: 100%;
    height: 75px;
    object-fit: cover;
    display: block;
}

.recent-title-wrap-compact {
    flex-grow: 1;
}

.recent-title-compact {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.recent-title-compact:hover {
    color: #e74c3c;
}

/* Meta Topic (Badges) */
.gmr-meta-topic {
    margin-bottom: 10px;
}

.gmr-meta-topic a {
    background: #e74c3c;
    color: #fff !important;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .gmr-bigheadline-content .gmr-slide-titlelink {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .gmr-fullwidth-headline {
        padding-left: 0;
        padding-right: 0;
    }
    .premium-slider-item .gmr-bigheadline {
        display: block;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .premium-slider-item .gmr-big-headline {
        width: 100%;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    .premium-slider-item .gmr-big-headline .post-thumbnail img {
        border-radius: 5px;
        min-height: 250px;
        min-height: var(--premium-slider-height, 250px);
    }
    .gmr-bigheadline-content {
        left: 15px;
        right: 15px;
        border-radius: 0 0 5px 5px;
    }
    /* Compact layout for first slider (Module Home) */
    .modulehome-wrap {
        padding-left: 15px;
        padding-right: 15px;
        position: relative;
    }
    .premium-slider-item .gmr-bigheadline-right-column {
        width: 100%;
        padding: 0;
    }
    .wrap-headline-right-compact {
        padding: 10px;
        gap: 12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

:root {
    --premium-slider-height: 400px;
}

@media (max-width: 768px) {
    :root {
        --premium-slider-height: 270px;
    }
}

/* Slider Controls (Arrows & Dots) */
.gmr-premium-slider-wrapper {
    position: relative;
}

.tns-outer {
    position: relative;
}

/* Global Slider Button Aesthetics */
.tns-controls button {
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.4);
    background-image: none !important;
    border: none;
    color: #333;
    width: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: absolute;
    aspect-ratio: 1 / 1;
}

.tns-controls button:hover {
    background: #e74c3c;
    color: #fff;
}

/* Specific offsets to avoid edge touching */
.tns-controls button[data-controls="prev"] {
    left: 10px !important;
}

.tns-controls button[data-controls="next"] {
    right: 10px !important;
}

/* Premium Slider Specific Positioning */
.gmr-premium-slider-wrapper .tns-controls {
    position: absolute;
    top: 0;
    height: var(--premium-slider-height, 400px);
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0;
}

.gmr-premium-slider-wrapper .tns-controls button {
    top: 50%;
    transform: translateY(-50%);
}

/* Module Home Slider Specific Positioning */
.modulehome-wrap .tns-controls {
    position: absolute;
    top: 0;
    height: 140px; /* Matching 'medium-new' thumbnail height */
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0;
}

.modulehome-wrap .tns-controls button {
    top: 50%;
    transform: translateY(-50%);
}

.tns-controls button[data-controls="prev"]::before {
    content: "❮";
    font-size: 16px;
}

.tns-controls button[data-controls="next"]::before {
    content: "❯";
    font-size: 16px;
}

@media (max-width: 768px) {
    .gmr-premium-slider-wrapper .tns-controls {
        height: var(--premium-slider-height, 250px);
    }
}

.tns-nav {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.tns-nav button {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tns-nav button.tns-nav-active {
    background: #e74c3c;
    transform: scale(1.4);
}
