/*
	Theme Name:   AllX News
	Theme URI:    https://seosthemes.com/allx-wordpress-theme/
	Description:  AllX News is a child theme of AllX featuring a powerful front page news section with full Customizer control.
	Author:       seosbg
	Author URI:   https://seosthemes.com/
	Template:     allx
	Version:      1.0.0
	Requires at least: 5.6
	Requires PHP: 5.6
	Tested up to: 6.9
	License:      GNU General Public License v2 or later
	License URI:  https://www.gnu.org/licenses/gpl-2.0.html
	Tags: grid-layout, wide-blocks, one-column, two-columns, left-sidebar, right-sidebar, rtl-language-support, translation-ready, footer-widgets, microformats, theme-options, flexible-header, custom-header, custom-logo, full-width-template, sticky-post, custom-background, custom-menu, custom-colors, featured-image-header, threaded-comments, blog, entertainment, featured-images, editor-style, template-editing, photography
	Text Domain:  allx-news
*/

/* =====================================================
   NEWS SECTION — wrapper
   ===================================================== */

#allx-news-section {
	width: 100%;
	padding: 40px 20px;
	box-sizing: border-box;
	margin-bottom: 20px;
}

#allx-news-section .allx-news-inner {
	max-width: 1200px;
	margin: 0 auto;
}

/* Section heading */
#allx-news-section .allx-news-heading {
	margin: 0 0 8px 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

#allx-news-section .allx-news-subheading {
	margin: 0 0 30px 0;
	font-size: 15px;
	opacity: 0.7;
}

/* Divider below heading */
#allx-news-section .allx-news-divider {
	width: 60px;
	height: 4px;
	border-radius: 2px;
	margin: 10px 0 28px 0;
	background: #008989;
}

/* =====================================================
   GRID LAYOUTS
   ===================================================== */

.allx-news-grid {
	display: grid;
	gap: 24px;
}

.allx-news-grid.allx-cols-2 { grid-template-columns: repeat(2, 1fr); }
.allx-news-grid.allx-cols-3 { grid-template-columns: repeat(3, 1fr); }
.allx-news-grid.allx-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media ( max-width: 900px ) {
	.allx-news-grid.allx-cols-3,
	.allx-news-grid.allx-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media ( max-width: 600px ) {
	.allx-news-grid { grid-template-columns: 1fr !important; }
}

/* =====================================================
   POST CARD
   ===================================================== */

.allx-news-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	position: relative;
}

.allx-news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Thumbnail */
.allx-news-card .allx-card-thumb {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
}

.allx-news-card .allx-card-thumb-placeholder {
	width: 100%;
	aspect-ratio: 16/9;
	background: #ecf0f3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
	font-size: 13px;
}

/* Body */
.allx-news-card .allx-card-body {
	padding: 16px 18px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Category badge */
.allx-news-card .allx-card-cat {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #fff;
	background: #008989;
	padding: 2px 8px;
	border-radius: 3px;
	display: inline-block;
	margin-bottom: 10px;
	text-decoration: none;
}

/* Sticky badge */
.allx-news-card .allx-sticky-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #e74c3c;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 3px 8px;
	border-radius: 3px;
	z-index: 2;
}

/* Title */
.allx-news-card .allx-card-title {
	margin: 0 0 10px 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	flex: 1;
}

.allx-news-card .allx-card-title a {
	text-decoration: none;
	color: inherit;
}

.allx-news-card .allx-card-title a:hover {
	color: #008989;
}

/* Meta */
.allx-news-card .allx-card-meta {
	font-size: 12px;
	color: #888;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.allx-news-card .allx-card-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Excerpt */
.allx-news-card .allx-card-excerpt {
	font-size: 13px;
	color: #666;
	line-height: 1.6;
	margin: 0 0 14px 0;
}

/* Button */
.allx-news-card .allx-card-btn {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
	align-self: flex-start;
	margin-top: auto;
}

/* =====================================================
   STICKY POSTS — separate strip
   ===================================================== */

.allx-sticky-strip {
	margin-bottom: 30px;
	padding: 14px 18px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.allx-sticky-strip .allx-sticky-label {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	white-space: nowrap;
	padding: 4px 10px;
	border-radius: 4px;
}

.allx-sticky-strip .allx-sticky-links {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.allx-sticky-strip .allx-sticky-links a {
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.allx-sticky-strip .allx-sticky-links a:hover {
	text-decoration: underline;
}

/* =====================================================
   LOAD MORE BUTTON
   ===================================================== */

.allx-news-load-more-wrap {
	text-align: center;
	margin-top: 32px;
}

.allx-news-load-more {
	display: inline-block;
	padding: 11px 32px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: background 0.2s ease, transform 0.15s ease;
}

.allx-news-load-more:hover {
	transform: translateY(-2px);
}

/* =====================================================
   FADE-IN ANIMATION on scroll
   ===================================================== */

.allx-news-card {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease;
}

.allx-news-card.allx-card-visible {
	opacity: 1;
	transform: translateY(0);
}

.allx-news-card:hover {
	transform: translateY(-4px) !important;
}

