/* 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: transparent;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: none;
    margin-bottom: 0;
    height: var(--premium-slider-height, 400px);
}

/* Big Headline (Left) */
.premium-slider-item .gmr-big-headline {
    width: 60%;
    height: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.premium-slider-item .gmr-big-headline .post-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.premium-slider-item .gmr-big-headline .post-thumbnail img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    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%;
    height: 100%;
    padding: 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;
    min-height: 0;
}

.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: 150px;
    height: 105px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    line-height: 0;
}

.post-thumbnail-compact img {
    width: 100%;
    height: 105px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.recent-title-wrap-compact {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.compact-cat-wrap {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1;
}

.compact-cat-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff !important;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    transition: opacity 0.2s ease;
}

.compact-cat-badge:hover {
    opacity: 0.85;
}

.recent-title-compact {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.recent-title-compact:hover {
    color: #e74c3c;
}

.compact-post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.compact-post-meta .meta-content,
.compact-post-meta .posted-on {
    font-size: 12px;
    color: #888;
    font-style: normal;
    line-height: 1;
}

/* 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;
    }
    .gmr-premium-slider-wrapper {
        margin-left: 0;
        margin-right: 0;
    }
    .premium-slider-item .gmr-bigheadline {
        display: block;
        height: auto;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .premium-slider-item .gmr-big-headline {
        width: 100%;
        height: var(--premium-slider-height, 270px);
        padding: 0 15px;
        margin-bottom: 20px;
    }
    .premium-slider-item .gmr-big-headline .post-thumbnail {
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    .premium-slider-item .gmr-big-headline .post-thumbnail img {
        border-radius: 5px;
        width: 100%;
        height: 100%;
        min-height: unset;
        object-fit: cover;
    }
    .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%;
        height: auto;
        padding: 0;
    }
    .wrap-headline-right-compact {
        padding: 10px;
        gap: 12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .post-thumbnail-compact {
        width: 120px;
        height: 85px;
    }
    .post-thumbnail-compact img {
        height: 85px;
    }
}

:root {
    --premium-slider-height: 400px;
}

@media (max-width: 768px) {
    :root {
        --premium-slider-height: 270px;
    }
}

/* Slider Controls (Arrows & Dots) */
.gmr-premium-slider-wrapper {
    position: relative;
    margin-left: -15px;
    margin-right: -15px;
}

.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);
}

/* ===================================================
   Slider Post Middle (Homepage Card Carousel)
   =================================================== */
.gmr-slider-middle-wrapper {
	position: relative;
	margin-top: 25px;
	margin-bottom: 25px;
	width: 100%;
}

.gmr-slider-middle-container {
	display: flex;
}

.gmr-slider-middle-item {
	padding: 0;
}

.gmr-slider-middle-card {
	position: relative;
	height: 270px;
	border-radius: 12px;
	overflow: hidden;
	background-color: #1a1a1a;
	display: block;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.gmr-slider-middle-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.16);
}

.slider-middle-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	overflow: hidden;
}

.slider-middle-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.5s ease;
}

.gmr-slider-middle-card:hover .slider-middle-img {
	transform: scale(1.06);
}

.slider-middle-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2c3e50, #4ca1af);
}

/* Dark Gradient Overlay */
.slider-middle-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.02) 0%,
		rgba(0, 0, 0, 0.20) 40%,
		rgba(0, 0, 0, 0.82) 75%,
		rgba(0, 0, 0, 0.95) 100%
	);
	z-index: 2;
	pointer-events: none;
}

/* Top-Right Views Badge */
.slider-middle-views-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	background-color: #e53935;
	color: #ffffff !important;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 5px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	line-height: 1;
	pointer-events: none;
}

.slider-middle-views-badge svg {
	display: inline-block;
	vertical-align: middle;
}

/* Bottom Content Area */
.slider-middle-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 16px 14px;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 6px;
	pointer-events: none;
}

.slider-middle-content * {
	pointer-events: auto;
}

/* Category Badge */
.slider-middle-category {
	margin-bottom: 2px;
}
.slider-middle-category .cat-links {
	margin: 0;
}
.slider-middle-category a {
	display: inline-block;
	background-color: var(--scheme-color, #d32f2f);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 2px;
	text-transform: uppercase;
	line-height: 1.2;
}

/* Meta Top (Dot + Time) */
.slider-middle-meta-top {
	display: flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

.slider-middle-dot {
	width: 6px;
	height: 6px;
	background-color: #e53935;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.slider-middle-time {
	letter-spacing: 0.2px;
	color: rgba(255, 255, 255, 0.9);
}

/* Card Title */
.slider-middle-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.slider-middle-title a {
	color: #ffffff !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.slider-middle-title a:hover {
	color: #e53935 !important;
}

/* Author Meta */
.slider-middle-author {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #26c6da;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	margin-top: 2px;
}

.slider-middle-author svg {
	color: #26c6da;
}

/* Slider Middle Controls (Prev/Next buttons) */
.gmr-slider-middle-wrapper .tns-controls {
	position: absolute;
	top: 0;
	height: 100%;
	width: 100%;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	padding: 0;
}

.gmr-slider-middle-wrapper .tns-controls button {
	top: 50%;
	transform: translateY(-50%);
}
