/* تکمیل چیدمان Dorna روی پوسته gridora. رنگ‌ها از css/gridora.css می‌آیند. */

.dorna-grid {
	display: grid;
	gap: 16px;
}

.dorna-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dorna-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.dorna-grid .dafra-panel p,
.dorna-prose p,
.ilya-deep-block__body p {
	color: var(--gridora-text);
	line-height: 1.9;
}

.page-hero {
	position: relative;
	padding: clamp(48px, 8vw, 88px) 0 28px;
	background:
		radial-gradient(700px 280px at 100% 0%, rgba(26, 163, 255, 0.28), transparent 55%),
		radial-gradient(520px 240px at 0% 100%, rgba(255, 90, 61, 0.18), transparent 50%),
		linear-gradient(160deg, #0f2744 0%, #0a4d8c 55%, #0b6e6a 100%);
	color: #fff;
}

.page-hero h1,
.page-hero .lede,
.page-hero .sub-title {
	color: #fff !important;
}

.page-hero h1 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	line-height: 1.35;
	max-width: 46rem;
}

.page-hero .lede {
	max-width: 42rem;
	color: rgba(255, 255, 255, 0.9) !important;
}

.page-hero .crumbs,
.page-hero .crumbs a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 0.7rem;
	font-size: 0.9rem;
}

.dafra-dashboard--photo {
	margin: 22px 0;
}

.dafra-dashboard--photo .dorna-shot {
	display: block;
	width: 100%;
	height: auto;
}

.dafra-dashboard figcaption {
	margin: 0;
	padding: 10px 14px 12px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.85rem;
}

.ilya-deep-block--reverse > .dafra-dashboard { order: 2; }
.ilya-deep-block--reverse > .ilya-deep-block__body { order: 1; }

.ilya-deep-block > .dafra-dashboard {
	margin: 0;
}

.limit,
.note {
	margin: 16px 0;
	padding: 16px 18px;
	border-radius: 16px;
	background: linear-gradient(180deg, #fff, #fff6f0);
	border: 1px solid rgba(255, 90, 61, 0.22);
	color: var(--gridora-text);
}

.dorna-prose h2,
.dorna-prose h3,
.ilya-deep-block__body h2 {
	color: var(--gridora-ink);
	line-height: 1.4;
}

.dorna-hero-bg {
	background-color: #0f2744;
	background-image:
		radial-gradient(900px 420px at 80% 20%, rgba(26, 163, 255, 0.45), transparent 55%),
		radial-gradient(700px 380px at 10% 80%, rgba(255, 90, 61, 0.28), transparent 50%),
		radial-gradient(600px 320px at 50% 40%, rgba(45, 212, 168, 0.22), transparent 55%) !important;
}

.banner-section-three .dafra-dashboard {
	margin-top: 28px;
	text-align: right;
}

/* هیرو خانه: عنوان، تعریف، دکمه‌ها و لبهٔ تصویر در یک نما */
body.dafra-home.gridora-page .banner-section-three .banner-static,
body.dafra-home.gridora-page .banner-section-three .slide-item {
	min-height: 0;
}

body.dafra-home.gridora-page .banner-section-three .content-box {
	padding: 88px 0 8px;
}

body.dafra-home .banner-section-three .content-box h1.title {
	font-size: clamp(1.65rem, 2.5vw, 2.2rem) !important;
	line-height: 1.3 !important;
	margin-bottom: 0.4rem;
}

body.dafra-home .dorna-hero-copy {
	max-width: 44rem;
	padding: 14px 16px 16px;
	border-radius: 18px;
	background: rgba(8, 18, 36, 0.86);
}

body.dafra-home .dorna-hero-copy .banner-eyebrow,
body.dafra-home .dorna-hero-copy h1.title,
body.dafra-home .dorna-answer {
	color: #fff !important;
	opacity: 1 !important;
	text-shadow: none;
}

body.dafra-home .dorna-hero-copy .banner-eyebrow {
	margin-bottom: 8px;
	background: rgba(255, 255, 255, 0.1);
}

body.dafra-home .dorna-answer {
	margin: 0;
	max-width: 42rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
}

body.dafra-home .dorna-answer::before {
	content: "جواب کوتاه";
	display: block;
	margin-bottom: 6px;
	color: #ffe08a;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.4;
}

body.dafra-home .banner-section-three .content-box .btn-box {
	margin-top: 12px;
}

body.dafra-home .banner-section-three .dafra-dashboard {
	margin-top: 14px;
}

.dafra-dashboard figcaption {
	color: #f3f7fb;
}

/* کارت‌های مسئله و جزئیات: فاصله، سایه و تایپ یکسان */
.dorna-grid .dafra-panel {
	height: 100%;
	padding: 22px 20px;
	box-shadow: 0 18px 50px rgba(0, 119, 230, 0.12);
}

.dorna-grid .dafra-panel .index-no {
	margin: 0 0 8px;
	color: #0f2744;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1;
}

.dorna-grid .dafra-panel h3 {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.45;
}

.dorna-grid .dafra-panel p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.85;
}

/* جدول مقایسه */
.dorna-compare {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-top: 8px;
	border: 1px solid var(--gridora-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(0, 119, 230, 0.12);
}

.dorna-compare table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
}

.dorna-compare caption {
	caption-side: bottom;
	padding: 10px 14px 12px;
	color: #243b53;
	font-size: 0.85rem;
	text-align: right;
}

.dorna-compare th,
.dorna-compare td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--gridora-border);
	text-align: right;
	vertical-align: top;
	line-height: 1.7;
	color: #243b53;
}

.dorna-compare thead th {
	background: #0f2744;
	color: #fff;
	font-weight: 700;
}

.dorna-compare thead th.is-dorna {
	background: #0b5c59;
}

.dorna-compare th[scope="row"] {
	position: sticky;
	inset-inline-start: 0;
	z-index: 1;
	min-width: 9.5rem;
	background: #f4fbff;
	color: #0f2744;
	font-weight: 800;
}

.dorna-compare td.is-dorna {
	background: #f3fbf8;
}

body.dafra-home #cta.contact-section-three {
	background: #0f2744;
	background-image: none;
}

body.dafra-home #cta.contact-section-three::before {
	display: none;
}

body.dafra-home #cta .sec-title.light h2 {
	color: #fff;
}

body.dafra-home #cta .sec-title.light .text {
	color: #f4f8fb;
	opacity: 1;
}

body.dafra-home #cta .sec-title.light .sub-title {
	color: #ffe08a;
	opacity: 1;
}

.scroll-to-top {
	left: 20px !important;
	right: auto !important;
	bottom: 20px;
	z-index: 30;
}

.dafra-ecosystem__node {
	animation: none !important;
}

@media (max-width: 720px) {
	.dorna-compare {
		overflow: visible;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.dorna-compare table {
		min-width: 0;
	}

	.dorna-compare thead {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		clip-path: inset(50%);
		white-space: nowrap;
		border: 0;
	}

	.dorna-compare tr {
		display: block;
		margin: 0 0 14px;
		overflow: hidden;
		border: 1px solid var(--gridora-border);
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 18px 50px rgba(0, 119, 230, 0.12);
	}

	.dorna-compare th[scope="row"],
	.dorna-compare td {
		display: block;
		position: static;
		min-width: 0;
	}

	.dorna-compare th[scope="row"] {
		background: #0f2744;
		color: #fff;
	}

	.dorna-compare td::before {
		content: attr(data-col);
		display: block;
		margin-bottom: 4px;
		color: #0f2744;
		font-size: 0.75rem;
		font-weight: 800;
	}

	.dorna-compare td.is-dorna::before {
		color: #0b5c59;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dafra-panel,
	.dafra-process__step,
	.dafra-ecosystem__node,
	.theme-btn,
	.scroll-to-top,
	.gridora-footer__cta,
	.gridora-footer__links a,
	.dafra-dashboard {
		animation: none !important;
		transition: none !important;
	}

	.dafra-panel:hover,
	.dafra-process__step:hover,
	.theme-btn:hover,
	.scroll-to-top:hover,
	.gridora-footer__cta:hover,
	.gridora-footer__links a:hover {
		transform: none !important;
	}
}

.header-style-four .outer-box .theme-btn {
	margin-inline-start: 8px;
}

body.gridora-page .header-style-four .header-lower .outer-box {
	flex: 0 0 auto;
}

body.gridora-page .header-style-four .outer-box .theme-btn {
	padding: 10px 16px;
	white-space: nowrap;
}

@media (max-width: 991px) {
	.dorna-grid-2,
	.dorna-grid-3,
	.ilya-deep-block,
	.ilya-deep-block--reverse {
		grid-template-columns: 1fr;
	}
	.ilya-deep-block--reverse > .dafra-dashboard,
	.ilya-deep-block--reverse > .ilya-deep-block__body {
		order: 0;
	}
	.header-style-four .outer-box { display: none; }
}
