/*
* 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.138
* 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;
	--saraya-h1-size: 40px;
	--saraya-h2-size: 32px;
	--saraya-h3-size: 26px;
	--saraya-h4-size: 20px;
	--saraya-h5-size: 18px;
	--saraya-h6-size: 16px;
}

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;
}

/* Global heading scale — baseline for PHP templates and unstyled prose. */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Work Sans", sans-serif;
	font-weight: 600;
	line-height: 1.3em;
	color: var(--saraya-navy);
	margin: 0;
}

h1 {
	font-size: var(--saraya-h1-size);
	font-weight: 700;
	line-height: 1.2em;
	margin: 0 0 16px;
}

h2 {
	font-size: var(--saraya-h2-size);
	font-weight: 700;
	line-height: 1.2em;
	margin: 32px 0 12px;
}

h3 {
	font-size: var(--saraya-h3-size);
	line-height: 1.3em;
	margin: 28px 0 10px;
}

h4 {
	font-size: var(--saraya-h4-size);
	line-height: 1.3em;
	margin: 24px 0 8px;
}

h5 {
	font-size: var(--saraya-h5-size);
	line-height: 1.4em;
	margin: 20px 0 8px;
}

h6 {
	font-size: var(--saraya-h6-size);
	font-weight: 600;
	line-height: 1.4em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 16px 0 6px;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
	margin-top: 0;
}

.saraya-archive-header h1 {
	font-size: var(--saraya-h1-size);
	font-weight: 700;
	line-height: 1.2em;
	margin: 0 0 32px;
}

@media (max-width: 767px) {
	:root {
		--saraya-h1-size: 28px;
		--saraya-h2-size: 24px;
		--saraya-h3-size: 22px;
		--saraya-h4-size: 18px;
		--saraya-h5-size: 17px;
		--saraya-h6-size: 15px;
	}

	h2 {
		margin-top: 24px;
	}

	h3 {
		margin-top: 20px;
	}

	.saraya-archive-header h1 {
		margin-bottom: 24px;
	}
}

.custom-list ul {
	margin-left: 0;
	margin-bottom: 15px;
	list-style: none;
	padding: 0;
}
.custom-list li {
	position: relative;
	margin-bottom: 10px;
	margin-left: 30px;
}

.custom-list li::before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 1px;
    left: -30px;
    height: 24px;
    width: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23775a19' viewBox='0 0 24 24' %3E%3Cpath d='M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m-1.29 13.71c-.2.2-.45.29-.71.29s-.51-.1-.71-.29l-3-3L7.7 11.3l2.29 2.29 5.29-5.29 1.41 1.41-6 6Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* ── 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;
	}
}

/* ── 404 fallback (when Elementor template is not assigned) ── */

.saraya-404 {
	max-width: 720px;
	margin: 0 auto;
	padding: 72px 24px 96px;
	text-align: center;
}

.saraya-404__code {
	margin: 0 0 8px;
	font-size: 72px;
	font-weight: 700;
	line-height: 1.1em;
	color: var(--saraya-gold);
}

.saraya-404 h1 {
	margin-bottom: 12px;
}

.saraya-404 p {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.6em;
}

.saraya-404 a {
	font-weight: 600;
	color: var(--saraya-navy);
	text-decoration: none;
}

.saraya-404 a:hover {
	color: var(--saraya-gold);
}

/* ── Single post view — PHP fallback + Elementor Post Content ── */

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

.single-post .saraya-comments-wrap {
	max-width: 1240px;
	margin: 60px auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.saraya-comments {
	padding: 40px;
	background: var(--saraya-white, #fff);
}

.saraya-comments__title,
.saraya-comments__reply-title {
	font-family: "Work Sans", sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3em;
	color: var(--saraya-navy);
	margin: 0 0 28px;
}

.saraya-comments__list {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
}

.saraya-comments__list > .comment + .comment {
	margin-top: 20px;
}

.saraya-comments__list .children {
	list-style: none;
	margin: 15px 0 0 20px;
    padding: 0;
}

a#cancel-comment-reply-link {
    display: inline-block;
    margin-left: 20px;
}

.saraya-comments__list .children .comment + .comment {
	margin-top: 12px;
}

.saraya-comments li.depth-2 > .saraya-comment {
	background: #fff;
}

.saraya-comment {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	column-gap: 16px;
	row-gap: 10px;
	padding: 20px;
	background: var(--saraya-bg);
	border: 1px solid var(--saraya-border);
}

.saraya-comment--reply {
	background: #fff;
}

.saraya-comment__avatar {
	grid-column: 1;
	grid-row: 1;
}

.saraya-comment__avatar img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 0;
	background: var(--saraya-navy);
}

.saraya-comment__body {
	display: contents;
}

.saraya-comment__meta {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	margin: 0;
}

.saraya-comment__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.saraya-comment__who {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}

.saraya-comment__author,
.saraya-comment__author a {
	font-size: 16px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.3em;
	color: var(--saraya-navy);
	text-decoration: none;
}

.saraya-comment__reply-to {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4em;
	color: var(--saraya-gold);
}

.saraya-comment__date {
	display: block;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4em;
	color: #6b7280;
	text-decoration: none;
}

.saraya-comment__date:hover {
	color: var(--saraya-gold);
}

.saraya-comment__awaiting {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--saraya-gold);
}

.saraya-comment__content {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0;
}

.saraya-comment__content p {
	font-size: 16px;
	line-height: 1.65em;
	color: var(--saraya-text);
	margin: 0 0 12px;
}

.saraya-comment__content p:last-child {
	margin-bottom: 0;
}

.saraya-comment__actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin: 0;
}

.saraya-comment__reply a,
.saraya-comment__edit a {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--saraya-gold);
}

.saraya-comment__reply a:hover,
.saraya-comment__edit a:hover {
	color: var(--saraya-navy);
}

.saraya-comments .comment-navigation,
.saraya-comments .navigation.pagination {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 32px;
}

.saraya-comments .nav-links a,
.saraya-comments .page-numbers {
	font-size: 14px;
	font-weight: 600;
	color: var(--saraya-navy);
	text-decoration: none;
}

.saraya-comments .comment-respond {
	margin-top: 8px;
	padding-top: 32px;
	border-top: 1px solid var(--saraya-border);
}

.saraya-comments .logged-in-as,
.saraya-comments .must-log-in {
	font-size: 14px;
	line-height: 1.5em;
	color: var(--saraya-text);
	margin: 0 0 16px;
}

.saraya-comments .comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.saraya-comments .comment-form-comment,
.saraya-comments .comment-form-cookies-consent,
.saraya-comments .form-submit {
	grid-column: 1 / -1;
}

.saraya-comments .comment-form p {
	margin: 0 0 16px;
}

.saraya-comments .comment-form label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4em;
	color: var(--saraya-navy);
	margin-bottom: 6px;
}

.saraya-comments .comment-form .required {
	color: var(--saraya-gold);
}

.saraya-comments .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.saraya-comments .comment-form-cookies-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	padding: 0;
	accent-color: var(--saraya-navy);
}

.saraya-comments .comment-form-cookies-consent label {
	display: inline;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5em;
	color: var(--saraya-text);
}

.saraya-comments .comment-form input[type="text"],
.saraya-comments .comment-form input[type="email"],
.saraya-comments .comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--saraya-border);
	border-radius: 0;
	font-family: "Work Sans", sans-serif;
	font-size: 15px;
	line-height: 1.5em;
	color: var(--saraya-text);
	background: #fff;
	box-sizing: border-box;
}

.saraya-comments .comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.saraya-comments .comment-form input:focus,
.saraya-comments .comment-form textarea:focus {
	outline: none;
	border-color: var(--saraya-blue);
}

.saraya-comments__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: 1px solid var(--saraya-navy);
	border-radius: 0;
	background: var(--saraya-navy);
	color: var(--saraya-white);
	font-family: "Work Sans", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.saraya-comments__submit:hover,
.saraya-comments__submit:focus {
	background: var(--saraya-gold);
	border-color: var(--saraya-gold);
	color: var(--saraya-white);
}

.single-post .saraya-site-content > article h1,
.saraya-single-post-content .elementor-widget-container > h1 {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2em;
	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,
.saraya-single-post-content .elementor-widget-container img {
	width: 100%;
	border-radius: 0;
	display: block;
	margin-bottom: 40px;
}

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

.single-post .saraya-site-content > article h3,
.saraya-single-post-content .elementor-widget-container h3 {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3em;
	color: #022b54;
	margin: 32px 0 10px;
}

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

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

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

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

.saraya-single-post-content .elementor-widget-container a {
	color: #775a19;
}

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

	.single-post .saraya-comments-wrap {
		margin-bottom: 72px;
		padding: 0 20px;
	}

	.saraya-comments {
		padding: 28px 20px 32px;
	}

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

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

	.saraya-comments__title,
	.saraya-comments__reply-title {
		font-size: 22px;
		margin-bottom: 20px;
	}

	.saraya-comment {
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 12px;
		padding: 16px;
	}

	.saraya-comment__avatar img {
		width: 44px;
		height: 44px;
	}

	.saraya-comments__list .children {
		margin-left: 20px;
		padding-left: 12px;
	}

	.saraya-comments .comment-form {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.saraya-comments__submit {
		width: 100%;
	}
}

/* ── Legal / policy page prose (Elementor text-editor) ── */

.saraya-legal-content .elementor-text-editor,
.saraya-legal-content .elementor-widget-container {
	color: var(--saraya-text);
	font-family: "Work Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
}

.saraya-legal-content .elementor-text-editor > *:first-child {
	margin-top: 0;
}

.saraya-legal-content .elementor-text-editor h2 {
	font-family: "Work Sans", sans-serif;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--saraya-navy);
	margin: 40px 0 14px;
}

.saraya-legal-content .elementor-text-editor h2:first-child {
	margin-top: 0;
}

.saraya-legal-content .elementor-text-editor h3 {
	font-family: "Work Sans", sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--saraya-navy);
	margin: 32px 0 10px;
}

.saraya-legal-content .elementor-text-editor p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--saraya-text);
	margin: 0 0 20px;
}

.saraya-legal-content .elementor-text-editor p.saraya-legal-lead {
	margin: 8px 0 36px;
}

.saraya-legal-content .elementor-text-editor p.saraya-legal-lead a {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--saraya-white);
	background-color: var(--saraya-gold);
	padding: 16px 32px;
}

.saraya-legal-content .elementor-text-editor p.saraya-legal-lead a:hover,
.saraya-legal-content .elementor-text-editor p.saraya-legal-lead a:focus {
	background-color: var(--saraya-navy);
	color: var(--saraya-white);
}

.saraya-legal-content .elementor-text-editor a:not(.saraya-legal-lead a) {
	color: var(--saraya-blue);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.saraya-legal-content .elementor-text-editor a:not(.saraya-legal-lead a):hover,
.saraya-legal-content .elementor-text-editor a:not(.saraya-legal-lead a):focus {
	color: var(--saraya-gold);
}

.saraya-legal-content .elementor-text-editor ul,
.saraya-legal-content .elementor-text-editor ol {
	margin: 0 0 24px;
	padding-left: 24px;
}

.saraya-legal-content .elementor-text-editor li {
	font-size: 16px;
	line-height: 1.6;
	color: var(--saraya-text);
	margin-bottom: 10px;
}

.saraya-legal-content .elementor-text-editor li::marker {
	color: var(--saraya-gold);
}

.saraya-legal-content .elementor-text-editor strong,
.saraya-legal-content .elementor-text-editor b {
	font-weight: 600;
	color: var(--saraya-navy);
}

@media (max-width: 767px) {
	.saraya-legal-content .elementor-text-editor h2 {
		font-size: 22px;
		margin-top: 32px;
	}

	.saraya-legal-content .elementor-text-editor p.saraya-legal-lead a {
		display: flex;
		justify-content: center;
		width: 100%;
		box-sizing: border-box;
	}
}