/*
 * Viral Pro Headline Main Styles
 * Target Theme: Deep Indigo (#4e3c80), Modern Magazine
 */

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
	--primary-color: #4e3c80;
	--primary-hover: #3d2f66;
	--secondary-color: #f1592a;
	--text-color: #333333;
	--text-light: #777777;
	--bg-body: #f7f7f7;
	--bg-content: #ffffff;
	--border-color: #e5e5e5;
	--font-main: 'Poppins', sans-serif;
	--font-heading: 'Montserrat', sans-serif;
	
	/* Category Colors */
	--cat-1: #e91e63;
	--cat-2: #9c27b0;
	--cat-3: #2196f3;
	--cat-4: #4caf50;
	--cat-5: #ff9800;
}

body {
	font-family: var(--font-main);
	color: var(--text-color);
	background-color: var(--bg-body);
	line-height: 1.6;
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	margin-top: 0;
	color: #222;
}

a {
	color: var(--text-color);
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--primary-color);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ==========================================================================
   Header
   ========================================================================== */
.top-bar {
	background-color: var(--primary-color);
	color: #fff;
	font-size: 13px;
	padding: 10px 0;
}

.top-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.top-bar a {
	color: #fff;
}

.social-icons a {
	margin-left: 15px;
	opacity: 0.8;
}

.social-icons a:hover {
	opacity: 1;
}

.site-branding {
	background-color: #fff;
	padding: 30px 0;
	text-align: center;
}

.site-title {
	font-size: 42px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -1px;
	margin: 0;
}

.site-title a {
	color: #222;
}

.site-title a:hover {
	color: var(--primary-color);
}

.site-description {
	font-size: 14px;
	color: var(--text-light);
	margin-top: 5px;
}

/* Main Navigation */
.site-navigation-wrap {
	background-color: #2a2a2a;
	position: relative;
	z-index: 100;
	transition: background 0.3s;
}

.site-navigation-wrap.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.primary-menu-container {
	flex-grow: 1;
}

.primary-menu-container ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

.primary-menu-container ul li {
	position: relative;
}

.primary-menu-container ul li a {
	color: #fff;
	display: block;
	padding: 18px 20px;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 14px;
}

.primary-menu-container ul li a:hover,
.primary-menu-container ul li.current-menu-item > a {
	background-color: var(--primary-color);
}

.nav-actions {
	display: flex;
	position: relative;
}

.nav-actions button {
	background: none;
	border: none;
	color: #fff;
	padding: 18px 15px;
	cursor: pointer;
	font-size: 16px;
}

.nav-actions button:hover {
	background-color: var(--primary-color);
}

/* Header Search Form */
.header-search-form {
	position: absolute;
	top: 100%;
	right: 0;
	background-color: #fff;
	padding: 15px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	min-width: 250px;
	z-index: 1000;
}

.header-search-form form {
	display: flex;
	margin: 0;
}

.header-search-form input[type="search"] {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	outline: none;
}

.header-search-form button {
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	padding: 10px 15px;
	cursor: pointer;
}

.header-search-form button:hover {
	background-color: #222;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: #fff;
	padding: 15px;
	font-size: 20px;
	cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
	margin-top: 20px;
	margin-bottom: 40px;
}

.hero-grid {
	display: flex;
	gap: 5px;
	height: 500px;
}

.hero-left {
	flex: 0 0 50%;
	width: 50%;
}

.hero-right {
	flex: 0 0 50%;
	width: 50%;
}

.hero-grid-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 5px;
	height: 100%;
}

.hero-item {
	position: relative;
	height: 100%;
	overflow: hidden;
}

.hero-item .post-thumb,
.hero-item .post-thumb a {
	display: block;
	height: 100%;
}

.hero-item img, .fallback-hero, .fallback-hero-small {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.fallback-hero { background-color: #ddd; }
.fallback-hero-small { background-color: #ccc; }

.hero-item:hover img {
	transform: scale(1.05);
}

/* Overlay Style */
.overlay-style::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60%;
	background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
	pointer-events: none;
}

.overlay-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 25px;
	z-index: 2;
}

.hero-item-small .overlay-content {
	padding: 15px;
}

.overlay-content .cat-label {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	padding: 3px 8px;
	margin-bottom: 10px;
	border-radius: 2px;
}

.overlay-content .cat-label a {
	color: #fff;
}

.overlay-content .entry-title {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.3;
}

.hero-item-small .overlay-content .entry-title {
	font-size: 16px;
	margin-bottom: 5px;
}

.overlay-content .entry-title a {
	color: #fff;
}

.overlay-content .post-meta {
	color: #bbb;
	font-size: 12px;
}

.overlay-content .post-meta span {
	margin-right: 15px;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 40px;
}

.main-content-area {
	flex: 0 0 calc(70% - 15px);
	width: calc(70% - 15px);
}

.widget-area {
	flex: 0 0 calc(30% - 15px);
	width: calc(30% - 15px);
}

/* Section Headings */
.section-heading {
	border-bottom: 2px solid var(--primary-color);
	margin-bottom: 25px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

.section-title {
	margin: 0;
	font-size: 18px;
	text-transform: uppercase;
}

.section-title .title-inner {
	background-color: var(--primary-color);
	color: #fff;
	padding: 8px 15px;
	display: inline-block;
}

.section-heading.dark-heading {
	border-bottom-color: #222;
}

.section-heading.dark-heading .title-inner {
	background-color: #222;
}

.view-all {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 5px;
}

/* Main News Block */
.main-news-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.featured-main-news {
	grid-column: 1 / -1; /* Span full width */
	display: flex;
	gap: 30px;
}

.featured-main-news .post-thumb {
	flex: 0 0 50%;
}

.featured-main-news .post-content {
	flex: 0 0 50%;
}

.featured-main-news .entry-title {
	font-size: 28px;
}

.post-item .post-thumb {
	position: relative;
	margin-bottom: 15px;
}

.post-item .post-thumb img, .fallback-thumb {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
}

.fallback-thumb { background-color: #eee; }

.cat-label {
	position: absolute;
	bottom: 0;
	left: 0;
	background-color: var(--primary-color);
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	padding: 3px 8px;
}

.cat-label a { color: #fff; }

.post-meta {
	font-size: 12px;
	color: var(--text-light);
	margin-bottom: 8px;
}

.post-item .entry-title {
	font-size: 18px;
	margin-bottom: 10px;
}

/* Sidebar Widgets */
.widget {
	background-color: #fff;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.widget-title {
	font-size: 16px;
	text-transform: uppercase;
	border-left: 3px solid var(--primary-color);
	padding-left: 10px;
	margin-bottom: 20px;
}

.trending-item {
	display: flex;
	margin-bottom: 20px;
	align-items: center;
}

.trending-number {
	font-size: 36px;
	font-weight: 800;
	color: #eee;
	margin-right: 15px;
	line-height: 1;
}

.trending-content .entry-title {
	font-size: 14px;
	margin-bottom: 5px;
}

.ad-placeholder {
	background-color: #f1f1f1;
	border: 1px dashed #ccc;
	text-align: center;
	padding: 50px 20px;
	color: #999;
}

/* What's New Section */
.whats-new-section {
	padding: 40px 0;
}

.bg-gray {
	background-color: #f5f5f5;
}

.whats-new-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.whats-new-grid .post-item {
	height: 300px;
	position: relative;
	overflow: hidden;
}

.whats-new-grid .post-item .post-thumb,
.whats-new-grid .post-item .post-thumb a {
	height: 100%;
}

.whats-new-grid .post-item img,
.whats-new-grid .post-item .fallback-thumb {
	height: 100%;
}

.whats-new-grid .overlay-content {
	padding: 15px;
}

.whats-new-grid .overlay-content .entry-title {
	font-size: 16px;
	margin-bottom: 5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background-color: #1a1a1a;
	color: #ccc;
}

.footer-widgets {
	padding: 60px 0;
}

.footer-widgets-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.footer-widget-column {
	flex: 1;
	min-width: 250px;
}

.footer-widget-column .widget {
	background: none;
	padding: 0;
	box-shadow: none;
}

.footer-widget-column .widget-title {
	color: #fff;
	border-left: none;
	padding-left: 0;
	position: relative;
	padding-bottom: 10px;
}

.footer-widget-column .widget-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 30px;
	height: 2px;
	background-color: var(--primary-color);
}

.widget_categories ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget_categories ul li {
	border-bottom: 1px solid rgba(255,255,255,0.1);
	padding: 8px 0;
}

.widget_categories ul li a {
	color: #ccc;
}

.widget_categories ul li a:hover {
	color: #fff;
	padding-left: 5px;
}

.contact-info p {
	margin-bottom: 10px;
}

.contact-info i {
	width: 20px;
	color: var(--primary-color);
}

.site-info {
	background-color: #111;
	padding: 20px 0;
	font-size: 13px;
	position: relative;
}

.scroll-to-top {
	position: absolute;
	right: 30px;
	bottom: 20px;
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	border-radius: 2px;
}

.scroll-to-top:hover {
	background-color: #fff;
	color: var(--primary-color);
}

/* Footer Trending */
.footer-trending-item {
	margin-bottom: 15px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	padding-bottom: 15px;
}

.footer-trending-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.footer-trending-item .entry-title {
	font-size: 14px;
	margin-bottom: 5px;
	line-height: 1.4;
}

.footer-trending-item .entry-title a {
	color: #ccc;
}

.footer-trending-item .entry-title a:hover {
	color: var(--primary-color);
}

.footer-trending-item .posted-on {
	font-size: 11px;
	color: #999;
}

/* Footer Newsletter */
.footer-newsletter-form {
	margin-top: 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-newsletter-form input[type="email"] {
	padding: 12px 15px;
	border: none;
	background-color: rgba(255,255,255,0.1);
	color: #fff;
	outline: none;
}

.footer-newsletter-form button {
	padding: 12px 15px;
	border: none;
	background-color: var(--primary-color);
	color: #fff;
	text-transform: uppercase;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
}

.footer-newsletter-form button:hover {
	background-color: #fff;
	color: var(--primary-color);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
	.hero-grid {
		flex-direction: column;
		height: auto;
	}
	.hero-left, .hero-right {
		width: 100%;
	}
	.hero-item-large {
		height: 400px;
		margin-bottom: 5px;
	}
	.hero-grid-inner {
		height: 400px;
	}
	.main-content-area, .widget-area {
		flex: 0 0 100%;
		width: 100%;
	}
	.whats-new-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.primary-menu-container {
		display: none; /* simple mobile menu fallback */
	}
	.menu-toggle {
		display: block;
	}
	.nav-actions {
		display: none;
	}
}

@media (max-width: 767px) {
	.featured-main-news {
		flex-direction: column;
	}
	.whats-new-grid {
		grid-template-columns: 1fr;
	}
	.top-bar-inner {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}
}
