/* 
 * Brany R Blog - Main Stylesheet
 */

:root {
	--brany-r-blog-primary-color: #0b5cff;
	--brany-r-blog-text-color: #333333;
	--brany-r-blog-bg-color: #f9f9fc;
	--brany-r-blog-border-color: #e5e7eb;
	--brany-r-blog-sidebar-width: 280px;
	--brany-r-blog-right-sidebar-width: 350px;
	--brany-r-blog-spacing: 2rem;
}

/* Container */
.brany-r-blog-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem 1rem;
	box-sizing: border-box;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--brany-r-blog-text-color);
}

/* Banner (Header) */
.brany-r-blog-main-wrapper {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.brany-r-blog-banner {
	background-color: #1a56db; /* vibrant blue */
	color: #ffffff;
	padding: 4rem 2vw;
	margin-bottom: 3rem;
	box-sizing: border-box;
}

.brany-r-blog-banner-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
	padding: 0 1rem;
}

.brany-r-blog-banner-content {
	flex: 1;
	max-width: 60%;
}

.brany-r-blog-title {
	color: #ffffff;
	font-size: 2.8rem;
	font-weight: 800;
	margin-bottom: 2rem;
	line-height: 1.2;
}

.brany-r-blog-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 1rem;
	font-weight: 500;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.meta-item svg {
	width: 20px;
	height: 20px;
	opacity: 0.9;
}

.brany-r-blog-banner-image {
	flex: 1;
	max-width: 40%;
	display: flex;
	justify-content: flex-end;
}

.brany-r-blog-banner-image img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.25);
	object-fit: cover;
}

/* Grid Layout */
.brany-r-blog-grid {
	display: grid;
	grid-template-columns: var(--brany-r-blog-sidebar-width) 1fr var(--brany-r-blog-right-sidebar-width);
	gap: var(--brany-r-blog-spacing);
	align-items: start;
}

/* Left Sidebar - TOC */
.brany-r-blog-sidebar-left {
	position: sticky;
	top: 2rem;
}

.brany-r-blog-toc-title {
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--brany-r-blog-border-color);
}

.brany-r-blog-toc-container ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.brany-r-blog-toc-container li {
	margin-bottom: 0.75rem;
}

.brany-r-blog-toc-container a {
	text-decoration: none;
	color: var(--brany-r-blog-primary-color);
	font-size: 0.95rem;
	font-weight: 500;
	transition: color 0.2s ease;
	display: block;
	line-height: 1.4;
}

.brany-r-blog-toc-container a:hover {
	color: #003db3;
	text-decoration: underline;
}

.brany-r-blog-toc-container .toc-h3 {
	padding-left: 1rem;
	font-size: 0.85rem;
	color: #4b5563;
}

/* Center Content */
.brany-r-blog-content {
	background: #ffffff;
	padding: 2.5rem;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	font-size: 1.125rem;
	line-height: 1.7;
	border: 1px solid var(--brany-r-blog-border-color);
}

.brany-r-blog-content h2,
.brany-r-blog-content h3 {
	color: #111827;
	margin-top: 2rem;
	margin-bottom: 1rem;
	scroll-margin-top: 2rem; /* For smooth scrolling offset */
}

/* Right Sidebar - Contact Form */
.brany-r-blog-sidebar-right {
	position: sticky;
	top: 2rem;
}

.brany-r-blog-form-container {
	background: #111827;
	color: #ffffff;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.brany-r-blog-form-container h2,
.brany-r-blog-form-container h3 {
	color: #ffffff;
}

.brany-r-blog-form-container input:not([type="submit"]),
.brany-r-blog-form-container textarea {
	width: 100%;
	padding: 0.75rem;
	margin-bottom: 1rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	color: #ffffff;
}

.brany-r-blog-form-container input[type="submit"] {
	background-color: var(--brany-r-blog-primary-color);
	color: #ffffff;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	width: 100%;
	transition: background-color 0.2s ease;
}

.brany-r-blog-form-container input[type="submit"]:hover {
	background-color: #003db3;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
	/* Banner Mobile Layout */
	.brany-r-blog-banner {
		padding: 3rem 1rem;
	}
	
	.brany-r-blog-banner-inner {
		flex-direction: column;
		gap: 2rem;
		text-align: center;
	}
	
	.brany-r-blog-banner-content,
	.brany-r-blog-banner-image {
		max-width: 100%;
		width: 100%;
		flex: none;
	}
	
	.brany-r-blog-meta {
		justify-content: center;
	}
	
	.brany-r-blog-banner-image {
		justify-content: center;
	}

	.brany-r-blog-title {
		font-size: 2.2rem;
	}

	/* Grid Layout Mobile */
	.brany-r-blog-grid {
		grid-template-columns: 1fr;
		display: flex;
		flex-direction: column;
	}
	
	.brany-r-blog-sidebar-left,
	.brany-r-blog-sidebar-right {
		position: static;
	}

	/* Order for mobile stacking: TOC -> Content -> Form */
	.brany-r-blog-sidebar-left {
		order: 1;
		margin-bottom: 2rem;
	}
	.brany-r-blog-content {
		order: 2;
		margin-bottom: 2rem;
	}
	.brany-r-blog-sidebar-right {
		order: 3;
	}
}
