.cards-grid.cards-grid--fixed {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
body.page-dark {
	background: #05060b;
	color: #f5f7ff;
	font-family: "Segoe UI", "Helvetica", "Arial", sans-serif;
	margin: 0;
}

/* Light theme overrides */
body.theme-light.page-dark{
	background: #ffffff;
	color: #222222;
}
.theme-light .page-dark-wrapper{}
.theme-light .page-hero{
	background: #ffffff;
	color: #222222;
}
.theme-light .page-hero__eyebrow{ color: rgba(0,0,0,0.7); }
.theme-light .page-hero__description{ color: rgba(0,0,0,0.85); }
.theme-light .page-hero__meta{ color: rgba(0,0,0,0.7); }
.theme-light .page-hero__visual ul{ color: rgba(0,0,0,0.8); }
.theme-light .page-hero__media,
.theme-light .page-hero__visual{
	background: rgba(0,0,0,0.03);
	border: 1px solid rgba(0,0,0,0.08);
}
.theme-light .page-button{
	border-color: rgba(0,0,0,0.6);
	color: #222222;
}
.theme-light .page-button--primary{
	background: #222222;
	color: #ffffff;
}
.theme-light .page-button--primary:hover{
	background: transparent;
	color: #222222;
	border-color: rgba(0,0,0,0.6);
}
.theme-light .page-button--ghost{
	background: rgba(0,0,0,0.08);
	color: #222222;
}
.theme-light .page-button--ghost:hover{
	background: rgba(0,0,0,0.16);
}

body.page-dark .cbp-af-header .header_bg {
	background: rgba(5, 6, 11, 0.9);
}

.page-dark-wrapper {
	min-height: 100vh;
	padding-bottom: 120px;
}

.page-hero {
	padding: clamp(64px, 12vh, 140px) clamp(20px, 8vw, 120px);
	background: radial-gradient(circle at top left, rgba(31, 74, 209, 0.35), transparent 45%),
		radial-gradient(circle at 20% 80%, rgba(255, 102, 204, 0.25), transparent 40%),
		#05060b;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 48px;
	align-items: center;
}

.page-hero__content h1 {
	font-size: clamp(36px, 6vw, 78px);
	font-weight: 200;
	line-height: 1.05;
	margin: 0 0 24px;
}

.page-hero__eyebrow {
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.35em;
	color: rgba(245, 247, 255, 0.7);
	margin-bottom: 14px;
}

.page-hero__description {
	font-size: 18px;
	line-height: 1.6;
	color: rgba(245, 247, 255, 0.85);
	margin-bottom: 32px;
}

.page-hero__meta {
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	color: rgba(245, 247, 255, 0.7);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
}

.page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.page-button {
	padding: 14px 30px;
	border: 1px solid rgba(245, 247, 255, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 13px;
	background: transparent;
	color: #f5f7ff;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.page-button--primary {
	background: #f5f7ff;
	color: #05060b;
}

.page-button--primary:hover {
	background: transparent;
	color: #f5f7ff;
}
.page-button--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: #f5f7ff;
}
.page-button--ghost:hover {
	background: rgba(255, 255, 255, 0.16);
}

.page-hero__media,
.page-hero__visual {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 24px;
	border-radius: 0;
}

.page-hero__visual h3 {
	margin-top: 0;
	margin-bottom: 16px;
	font-weight: 300;
}

.page-hero__visual ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: rgba(245, 247, 255, 0.8);
}

.page-hero__media video,
.page-hero__media img {
	width: 100%;
	display: block;
}

.page-hero__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: rgba(245, 247, 255, 0.85);
	line-height: 1.6;
}

.page-hero__list li {
	position: relative;
	padding-left: 26px;
}

.page-hero__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #5A2362;
	box-shadow: 0 0 8px rgba(90, 35, 98, 0.7);
}

.page-section {
	padding: clamp(48px, 8vw, 80px) clamp(20px, 7vw, 120px);
}

.section-eyebrow {
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.35em;
	color: rgba(245, 247, 255, 0.6);
	margin: 0 0 14px;
}

.theme-light .section-eyebrow{ color: rgba(0,0,0,0.6); }

.section-title {
	margin: 0 0 16px;
	font-size: 32px;
	font-weight: 200;
}

.section-subtitle {
	margin: 0 0 32px;
	color: rgba(245, 247, 255, 0.75);
	line-height: 1.6;
}

.theme-light .section-subtitle{ color: rgba(0,0,0,0.75); }

.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

.cards-grid.cards-grid--fixed {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid.cards-grid--fixed > * {
	min-width: 0;
}

@media (max-width: 1200px) {
	.cards-grid.cards-grid--fixed {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.cards-grid.cards-grid--fixed {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cards-grid.cards-grid--fixed {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

.stat-card,
.team-card,
.project-card,
.blog-card,
.sidebar-card {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 24px;
	color: inherit;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.theme-light .stat-card,
.theme-light .team-card,
.theme-light .project-card,
.theme-light .blog-card,
.theme-light .sidebar-card{
	background: rgba(0,0,0,0.02);
	border: 1px solid rgba(0,0,0,0.08);
}

.blog-card {
	height: 100%;
}

.blog-card .page-button {
	margin-top: auto;
	align-self: flex-start;
}

.project-card:hover,
.blog-card:hover {
	transform: translateY(-6px);
	border-color: rgba(255, 255, 255, 0.35);
}

.theme-light .project-card:hover,
.theme-light .blog-card:hover{
	border-color: rgba(0,0,0,0.3);
}

.stat-card strong {
	font-size: 38px;
	font-weight: 200;
}

.stat-card p {
	margin: 0;
	color: rgba(245, 247, 255, 0.75);
	line-height: 1.5;
}

.theme-light .stat-card p{ color: rgba(0,0,0,0.75); }

.team-card img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	align-self: flex-start;
}

.team-card h3 {
	margin: 0;
	font-size: 18px;
}

.team-card p {
	margin: 0;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.2em;
	color: rgba(245, 247, 255, 0.65);
}

.theme-light .team-card p{ color: rgba(0,0,0,0.65); }

.project-card img {
	width: 100%;
	height: 240px;
	object-fit: cover;
}

.project-card__meta {
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.3em;
	color: rgba(245, 247, 255, 0.6);
}

.theme-light .project-card__meta{ color: rgba(0,0,0,0.6); }

.project-card h3,
.blog-card h3 {
	margin: 0;
	font-size: 20px;
}

.project-card p,
.blog-card p {
	margin: 0;
	color: rgba(245, 247, 255, 0.75);
	line-height: 1.5;
}

.theme-light .project-card p,
.theme-light .blog-card p{ color: rgba(0,0,0,0.75); }

.blog-card time {
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.3em;
	color: rgba(245, 247, 255, 0.55);
}

.theme-light .blog-card time{ color: rgba(0,0,0,0.55); }

.blog_date_detail {
	display: block;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.3em;
	color: rgba(245, 247, 255, 0.55);
	margin-bottom: 16px;
}

.theme-light .blog_date_detail{ color: rgba(0,0,0,0.55); }

.page-cta {
	margin: clamp(40px, 8vw, 100px) clamp(20px, 7vw, 120px) 0;
	padding: clamp(32px, 6vw, 64px);
	border-radius: 24px;
	background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
		rgba(10, 12, 20, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}

.theme-light .page-cta{
	background: rgba(0,0,0,0.03);
	border-color: rgba(0,0,0,0.08);
}

.page-cta h2 {
	margin: 0 0 12px;
	font-size: 30px;
	font-weight: 200;
}

.page-cta p {
	margin: 0;
	color: rgba(245, 247, 255, 0.75);
	line-height: 1.6;
}

.theme-light .page-cta p{ color: rgba(0,0,0,0.75); }

.page-cta__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.blog-grid {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blog-detail {
	margin: 0 clamp(20px, 7vw, 120px);
	padding: clamp(32px, 5vw, 64px);
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(0, 320px);
	gap: 36px;
}

.blog-detail article {
	line-height: 1.6;
	color: rgba(245, 247, 255, 0.85);
}

.theme-light .blog-detail article{
	color: rgba(0,0,0,0.85);
}

.blog-detail article p {
	margin-bottom: 1.2em;
}

.blog-detail article img,
.blog-detail article video {
	max-width: 100%;
	border-radius: 16px;
}

.blog-sidebar {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.sidebar-card h4 {
	margin: 0;
	font-size: 16px;
}

.sidebar-card time {
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.3em;
	color: rgba(245, 247, 255, 0.55);
}

.comments_block {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.comments_block h2 {
	margin-top: 0;
	margin-bottom: 8px;
}

.comment_list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.comment {
	background: rgba(245, 247, 255, 0.05);
	border: 1px solid rgba(245, 247, 255, 0.08);
	border-radius: 16px;
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.theme-light .comment{
	background: rgba(0,0,0,0.03);
	border-color: rgba(0,0,0,0.08);
}

.comment-reply {
	margin-top: 12px;
	margin-left: 24px;
	background: rgba(245, 247, 255, 0.03);
	border-color: rgba(245, 247, 255, 0.05);
}

.theme-light .comment-reply{
	background: rgba(0,0,0,0.02);
	border-color: rgba(0,0,0,0.05);
}

.comment_header {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: baseline;
	color: rgba(245, 247, 255, 0.85);
}

.theme-light .comment_header{ color: rgba(0,0,0,0.85); }

.comment_author {
	font-weight: 600;
}

.comment_date {
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.3em;
	color: rgba(245, 247, 255, 0.5);
}

.theme-light .comment_date{ color: rgba(0,0,0,0.5); }

.comment_text {
	line-height: 1.6;
	font-size: 15px;
	color: rgba(245, 247, 255, 0.85);
}

.theme-light .comment_text{ color: rgba(0,0,0,0.85); }

.no_comments {
	margin: 0;
	color: rgba(245, 247, 255, 0.65);
}

.theme-light .no_comments{ color: rgba(0,0,0,0.65); }

.comment_form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	background: rgba(245, 247, 255, 0.04);
}

.theme-light .comment_form{
	border-color: rgba(0,0,0,0.08);
	background: rgba(0,0,0,0.03);
}

.form_group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form_input,
.form_textarea {
	background: rgba(10, 10, 10, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	padding: 12px 16px;
	color: #f5f7ff;
	font-size: 15px;
	font-family: "Segoe Ui","Helvetica","Arial";
	transition: border-color 0.2s, background 0.2s;
}

.theme-light .form_input,
.theme-light .form_textarea{
	background: rgba(255,255,255,0.9);
	border: 1px solid rgba(0,0,0,0.2);
	color: #222222;
}

.form_input:focus,
.form_textarea:focus {
	outline: none;
	border-color: rgba(143, 211, 255, 0.8);
	background: rgba(10, 10, 10, 0.45);
}

.theme-light .form_input:focus,
.theme-light .form_textarea:focus{
	border-color: rgba(90, 35, 98, 0.4);
	background: rgba(255,255,255,1);
}

.form_textarea {
	min-height: 140px;
	resize: vertical;
}

.submit_button {
	align-self: flex-start;
	padding: 12px 28px;
	border-radius: 999px;
	border: none;
	background: linear-gradient(120deg, #8fd3ff, #8c7bff);
	color: #0a0a0a;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.submit_button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(140, 123, 255, 0.3);
}

.form_errors {
	background: rgba(186, 26, 26, 0.1);
	border: 1px solid rgba(186, 26, 26, 0.4);
	border-radius: 12px;
	padding: 12px 16px;
}

.page-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 32px;
}

.page-tab {
	padding: 10px 18px;
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.25em;
	color: rgba(245, 247, 255, 0.8);
}

.page-tab.is-active {
	background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
	.page-hero {
		grid-template-columns: 1fr;
	}

	.blog-detail {
		grid-template-columns: 1fr;
	}

	.page-cta {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 600px) {
	.page-hero__actions,
	.page-cta__actions {
		width: 100%;
	}

	.page-button {
		width: 100%;
		text-align: center;
	}
}

