/*
* Theme Name: SARAYA IP
* Theme URI: https://greenlifeit.com/
* Author: Asiqur Rahman <asiq.webdev@gmail.com>
* Author URI: https://asique.net/
* Description: WP Theme for SARAYA IP
* Version: 1.0.72
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: saraya-ip

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/**
 * Global / PHP-template CSS.
 * Section & widget styles live in Elementor Advanced → Custom CSS
 * on homepage sections, header, footer, contact popup, and inner hero.
 */

:root {
	--saraya-navy: #022b54;
	--saraya-blue: #00458a;
	--saraya-gold: #775a19;
	--saraya-text: #424752;
	--saraya-bg: #f9f9ff;
	--saraya-border: #e2e8f0;
	--saraya-white: #ffffff;
	--saraya-muted: #c4d7ff;
	--saraya-gold-light: #ffdea5;
	--saraya-container: 1200px;
}

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	font-family: "Work Sans", sans-serif;
	color: var(--saraya-text);
	background-color: var(--saraya-bg);
	-webkit-font-smoothing: antialiased;
}

p {
	margin: 0;
}

a {
	color: var(--saraya-blue);
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0;
}

/* Sticky Theme Builder header wrapper (not an Elementor widget). */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	overflow: visible !important;
}

/* ── Blog listing (News and Insights) — PHP template ── */

.saraya-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 32px;
	max-width: 1200px;
	margin: 64px auto 96px;
	padding: 0 24px;
}

.saraya-post-card {
	background: #ffffff;
	border: 1px solid rgba(2, 43, 84, 0.08);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.saraya-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(2, 43, 84, 0.12);
	border-color: rgba(119, 90, 25, 0.35);
}

.saraya-post-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

.saraya-post-card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #022b54;
}

.saraya-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.saraya-post-card:hover .saraya-post-card__media img {
	transform: scale(1.05);
}

.saraya-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px;
}

.saraya-post-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.saraya-post-card__cat {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #775a19;
}

.saraya-post-card__date {
	font-size: 13px;
	color: #6b7280;
}

.saraya-post-card__title {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	color: #022b54;
	margin: 0 0 10px;
}

.saraya-post-card__excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: #424752;
	margin: 0 0 18px;
}

.saraya-post-card__more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #022b54;
}

.saraya-post-card__more svg {
	transition: transform 0.25s ease;
}

.saraya-post-card:hover .saraya-post-card__more {
	color: #775a19;
}

.saraya-post-card:hover .saraya-post-card__more svg {
	transform: translateX(4px);
}

.saraya-posts-empty {
	max-width: 1200px;
	margin: 64px auto 96px;
	padding: 0 24px;
	text-align: center;
	color: #424752;
}

@media (max-width: 767px) {
	.saraya-posts {
		grid-template-columns: 1fr;
		gap: 24px;
		margin: 40px auto 64px;
	}
}

/* ── Single post view — PHP template ── */

.single-post .saraya-site-content {
	max-width: 820px;
	margin: 0 auto;
	padding: 72px 24px 96px;
	box-sizing: border-box;
}

.single-post .saraya-site-content > article h1 {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	color: #022b54;
	margin: 0 0 12px;
}

.single-post .saraya-site-content > article .saraya-single-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
	font-size: 14px;
	color: #6b7280;
}

.single-post .saraya-site-content > article .saraya-single-meta a {
	color: #775a19;
	text-decoration: none;
	font-weight: 600;
}

.single-post .saraya-site-content > article .saraya-single-featured img {
	width: 100%;
	border-radius: 12px;
	display: block;
	margin-bottom: 40px;
}

.single-post .saraya-site-content > article h2 {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
	color: #022b54;
	margin: 40px 0 14px;
}

.single-post .saraya-site-content > article h3 {
	font-size: 20px;
	font-weight: 600;
	color: #022b54;
	margin: 32px 0 10px;
}

.single-post .saraya-site-content > article p {
	font-size: 17px;
	line-height: 1.75;
	color: #424752;
	margin: 0 0 20px;
}

.single-post .saraya-site-content > article ul {
	margin: 0 0 24px;
	padding-left: 24px;
}

.single-post .saraya-site-content > article li {
	font-size: 17px;
	line-height: 1.75;
	color: #424752;
	margin-bottom: 8px;
}

.single-post .saraya-site-content > article li::marker {
	color: #775a19;
}

@media (max-width: 767px) {
	.single-post .saraya-site-content {
		padding: 48px 20px 72px;
	}

	.single-post .saraya-site-content > article h1 {
		font-size: 28px;
	}

	.single-post .saraya-site-content > article h2 {
		font-size: 22px;
	}
}
