/* Base styles (mobile first) */
.article-container {
	width: 100%;
	max-width: 95%; /* Increased from default */
	padding: 1rem;
	margin: 0 auto;
	margin-top: 2rem; /* Added top margin */
}

.blog-article {
	background: var(--textColor);
	padding: 1rem 1rem;
	padding-top: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Blog article for tablet and up */
@media screen and (min-width: 768px) {
	.blog-article {
		padding: 2rem 2.5rem;
		padding-top: 3rem;
	}
}

/* Article Header */
.article-header {
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--mainColor);
	padding-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
}

/* Centered bordered note section */
.centered-bordered-note {
	border: 2px solid var(--mainColor);
	border-radius: 10px;
	background: #fff;
	padding: 1.5rem 0.8rem 0.8rem 2.5rem;
	width: 100%;
	max-width: 100%;
	margin: 2em auto;
	text-align: justify;
	font-size: 1rem;
	font-style: italic;
	font-weight: bold;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	display: block;
	position: relative;
}

.note-icon-left {
	display: inline-block;
	position: absolute;
	top: -0.8em;
	left: -0.8em;
	width: 3em;
	height: 3em;
	vertical-align: middle;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Note styles for tablet and up */
@media screen and (min-width: 768px) {
	.centered-bordered-note {
		padding: 1.3em 1.5em 1.5em 4.5em;
		font-size: 1.4em;
		max-width: 99vw;
	}

	.note-icon-left {
		top: -1.2em;
		left: -1.2em;
		width: 5em;
		height: 5em;
	}
}

@media screen and (min-width: 1024px) {
	.centered-bordered-note {
		width: 1200px;
		max-width: 99vw;
	}
}

.article-header h1 {
	text-align: center;
	color: var(--secondaryColor);
	font-family: "al-fresco", sans-serif;
	font-weight: 700;
	font-style: normal;
	font-size: 2.2rem;
	margin-bottom: 1.5rem;
	margin-top: 0.5rem;
	line-height: 1.3;
	white-space: normal;
	word-wrap: break-word;
}

/* Adjust margin for larger screens if needed */
@media screen and (min-width: 768px) {
	.article-header h1 {
		margin-bottom: 2.5rem;
		margin-top: 0;
		font-size: 2rem;
		white-space: nowrap;
		text-align: left;
	}
}

@media screen and (min-width: 1024px) {
	.article-header h1 {
		margin-bottom: 3rem;
		font-size: 2.5rem;
	}
}

.article-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--textColor);
	font-size: 0.8rem;
	padding: 0.8rem 1rem;
	background: var(--mainColor);
	border-radius: 8px;
	width: fit-content;
	flex-direction: column;
}

/* Article Content */
.article-content {
	line-height: 1.6;
	color: var(--fourthColor);
	/* Removed flexbox centering for better note centering */
}

p.lead {
	font-size: 2rem;
	font-style: italic;
	font-weight: bold;
	color: var(--fourthColor); /* Changed to fourth color (#0096c8) */
	margin-bottom: 1.5rem;
	text-align: justify;
}

/* Adjust lead size for larger screens */
@media screen and (min-width: 768px) {
	p.lead {
		font-size: 2.2rem;
	}
}

@media screen and (min-width: 1024px) {
	p.lead {
		font-size: 2.4rem;
	}
}

.article-content p {
	font-size: 1.2rem;
	color: var(--secondaryColor);
	line-height: 1.5;
	margin-bottom: 0.75rem; /* Reduced from 1.25rem */
	text-align: justify;
}

.article-content section {
	margin: 2rem 0;
}

.article-content h2 {
	color: var(--mainColor); /* Changed from secondaryColor to mainColor */
	font-size: 1.2rem;
	margin: 1.2rem 0 0.8rem;
	font-weight: 600;
}

.article-content h3 {
	color: var(--fourthColor); /* Changed from mainColor to fourthColor */
	font-size: 1.1rem;
	margin: 1rem 0 0.6rem;
	font-weight: 700; /* Changed from 500 to 700 for bold */
	font-style: italic; /* Added italic style */
	text-align: left; /* Added explicit left alignment */
}

.article-content p {
	margin-bottom: 0.6rem;
	font-size: 1rem;
	text-align: justify;
	color: var(--secondaryColor);
}

/* Adjust paragraph size for larger screens */
@media screen and (min-width: 768px) {
	.article-content p {
		font-size: 1.2rem;
		margin-bottom: 0.75rem;
	}

	.article-content h2 {
		font-size: 1.5rem;
		margin: 1.5rem 0 1rem;
	}

	.article-content h3 {
		font-size: 1.25rem;
		margin: 1.25rem 0 0.75rem;
	}
}

@media screen and (min-width: 1024px) {
	.article-content p {
		font-size: 1.4rem;
	}
}

.article-content ul {
	margin: 0.8rem 0 1.2rem 0.5rem;
	list-style: none;
	align-self: stretch;
}

/* UL for tablet and up */
@media screen and (min-width: 768px) {
	.article-content ul {
		margin: 1rem 0 1.5rem 2rem;
	}
}

.article-content li {
	margin-bottom: 0.4rem;
	position: relative;
	padding-left: 1.5rem;
	color: var(--secondaryColor);
	font-size: 1rem;
	font-style: italic;
	line-height: 1.4;
}

.article-content li::before {
	content: "\25CF"; /* Unicode for Black Circle ● */
	color: var(--secondaryColor);
	position: absolute;
	left: 0;
	font-family: "Arpona Regular", serif; /* Use Arpona Regular for bullets */
	font-size: 0.8rem;
	line-height: 1;
	top: 0.2rem; /* Adjust vertical alignment as needed */
}

/* Responsive adjustments */
@media screen and (min-width: 768px) {
	.article-content li {
		margin-bottom: 0.6rem; /* Slightly larger for tablet */
		font-size: 1.3rem;
		padding-left: 2rem;
	}

	.article-content li::before {
		font-size: 1.1rem; /* Reduced from 1.6rem */
	}
}

@media screen and (min-width: 1024px) {
	.article-content li {
		margin-bottom: 0.7rem; /* Slightly larger for desktop */
		font-size: 1.4rem;
	}

	.article-content li::before {
		font-size: 1.2rem; /* Reduced from 1.8rem */
	}
}

/* Article Conclusion */
.article-conclusion {
	background: var(--secondaryColor);
	border: 2px solid var(--secondaryColor);
	color: var(--textColor);
	padding: 0.5rem 1rem 1.5rem 4rem;
	border-radius: 8px;
	margin: 2rem 0;
	position: relative;
}

.conclusion-icon {
	display: block;
	position: absolute;
	top: -1em;
	left: -1em;
	width: 4em;
	height: 4em;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Conclusion styles for tablet and up */
@media screen and (min-width: 768px) {
	.article-conclusion {
		padding: 0.3rem 2rem 1.5rem 6rem;
	}

	.conclusion-icon {
		top: -1.5em;
		left: -1.5em;
		width: 7em;
		height: 7em;
	}
}

.article-conclusion h2 {
	color: var(--textColor);
	font-family: "al-fresco", sans-serif;
	font-weight: 700;
	font-size: 2rem !important;
	margin: 1.5rem 0 0.5rem 0;
	padding-left: 0;
	line-height: 1;
	text-align: left;
}

/* Conclusion h2 for tablet and up */
@media screen and (min-width: 768px) {
	.article-conclusion h2 {
		font-size: 5rem !important;
		padding-left: 2.5rem;
		text-align: left;
		margin: 0 0 0.3rem 0;
	}
}

.article-conclusion ul {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.article-conclusion li {
	color: var(--textColor);
	margin-bottom: 0.5rem;
	font-weight: 500;
	font-size: 0.95rem;
	position: relative;
	padding-left: 1.5rem;
}

/* Conclusion li for tablet and up */
@media screen and (min-width: 768px) {
	.article-conclusion ul {
		padding-left: 2rem;
	}

	.article-conclusion li {
		margin-bottom: 0.8rem;
		font-size: 1.3rem;
		padding-left: 1.5rem;
	}
}

.article-conclusion li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 10px;
	height: 10px;
	background: var(--textColor);
	border-radius: 50%;
}

/* Title Wrapper */
.title-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.header-icon {
	width: 60px;
	height: 60px;
	fill: var(--mainColor);
	transform: none;
}

/* Title Wrapper for tablet and up */
@media screen and (min-width: 768px) {
	.title-wrapper {
		flex-direction: row;
		align-items: baseline;
		gap: 1rem;
	}

	.header-icon {
		width: 85px;
		height: 85px;
		transform: translateY(18px);
	}
}

/* Responsive adjustments for the icon */
@media screen and (min-width: 768px) {
	.header-icon {
		width: 100px; /* Increased from 85px */
		height: 100px; /* Increased from 85px */
		transform: translateY(22px); /* Adjusted for new size */
	}
}

@media screen and (min-width: 1024px) {
	.header-icon {
		width: 110px; /* Increased from 95px */
		height: 110px; /* Increased from 95px */
		transform: translateY(25px); /* Adjusted for new size */
	}
}

/* Introduction specific styles */
.article-introduction {
	font-size: 1rem;
	color: var(--fourthColor);
	line-height: 1.6;
	margin: 3.5rem 0 2rem 0;
	text-align: justify;
	font-weight: 700;
	font-style: italic;
	padding: 0 0.5rem;
	position: relative;
	border-bottom: none; /* Remove full-width border */
}

/* Introduction for tablet and up */
@media screen and (min-width: 768px) {
	.article-introduction {
		font-size: 1.4rem;
		line-height: 1.8;
		margin: 2rem 0 3rem 0;
		padding: 0 1rem;
	}
}

.article-introduction::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 200px; /* Increased from 100px */
	height: 2px;
	background-color: var(--mainColor);
	margin-bottom: -1.5rem; /* Add space between line and next content */
}

/* Adjust line width for larger screens */
@media screen and (min-width: 768px) {
	.article-introduction::after {
		width: 300px; /* Increased from 150px */
	}
}

@media screen and (min-width: 1024px) {
	.article-introduction::after {
		width: 400px; /* Increased from 200px */
	}
}

/* Tablet (768px and up) */
@media screen and (min-width: 768px) {
	.article-container {
		max-width: 95%;
		padding: 2rem;
		margin-top: 3rem; /* Increased top margin for tablet */
	}

	.blog-article {
		padding: 3rem 3.5rem;
		padding-top: 4rem;
	}

	.article-header h1 {
		font-size: 2.8rem; /* Reduced from 3.5rem */
		line-height: 0.9; /* Slightly tighter for larger text */
	}

	.article-meta {
		flex-direction: row;
		gap: 2rem;
	}

	.lead {
		font-size: 1.2rem;
	}

	.article-content h2 {
		font-size: 1.75rem;
	}

	.article-content h3 {
		font-size: 1.4rem;
	}
}

/* Desktop (1024px and up) */
@media screen and (min-width: 1024px) {
	.article-container {
		max-width: 1200px; /* Increased from 1000px */
		padding: 3rem 2rem;
		margin-top: 4rem; /* Increased top margin for desktop */
	}

	.blog-article {
		padding: 4rem 4.5rem;
		padding-top: 5rem;
	}

	.article-header h1 {
		font-size: 3.5rem; /* Reduced from 4.5rem */
		line-height: 0.9;
	}

	.lead {
		font-size: 1.3rem;
		line-height: 1.8;
	}

	.article-content {
		line-height: 1.8;
	}

	.article-content h2 {
		font-size: 2rem;
		margin: 2rem 0 1.5rem;
	}

	.article-content h3 {
		font-size: 1.5rem;
		margin: 1.5rem 0 1rem;
	}

	.article-conclusion {
		padding: 2rem;
		margin: 3rem 0;
	}
}

/* Large Desktop (1440px and up) */
@media screen and (min-width: 1440px) {
	.article-container {
		max-width: 1400px; /* Increased from 1200px */
	}
}

/* Print styles */
@media print {
	.article-container {
		max-width: 100%;
		padding: 0;
	}

	.blog-article {
		box-shadow: none;
		padding: 0;
	}

	.article-content {
		font-size: 12pt;
		line-height: 1.5;
	}
}

/* Like and Comment Section */
.article-interactions {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e0e0e0;
}

@media screen and (min-width: 768px) {
	.article-interactions {
		margin-top: 3rem;
		padding-top: 2rem;
	}
}

.like-section {
	margin-bottom: 1.5rem;
}

@media screen and (min-width: 768px) {
	.like-section {
		margin-bottom: 2rem;
	}
}

.like-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.6rem 1rem;
	background: transparent;
	border: 2px solid var(--secondaryColor);
	border-radius: 25px;
	color: var(--secondaryColor);
	font-family: "arpona", sans-serif;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

@media screen and (min-width: 768px) {
	.like-btn {
		gap: 0.5rem;
		padding: 0.8rem 1.5rem;
		font-size: 1rem;
	}
}

.like-btn:hover,
.like-btn.liked {
	background: var(--secondaryColor);
	color: white;
}

.like-btn svg {
	width: 20px;
	height: 20px;
}

.like-btn.liked svg {
	fill: currentColor;
}

.comments-section h3 {
	font-family: "al-fresco", sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--secondaryColor);
	margin-bottom: 1rem;
}

@media screen and (min-width: 768px) {
	.comments-section h3 {
		font-size: 1.8rem;
		margin-bottom: 1.5rem;
	}
}

.comment-form {
	background: #f8f8f8;
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
}

@media screen and (min-width: 768px) {
	.comment-form {
		padding: 1.5rem;
		margin-bottom: 2rem;
	}
}

.comment-form .form-group {
	margin-bottom: 1rem;
}

.comment-form label {
	display: block;
	font-family: "arpona", sans-serif;
	font-weight: 600;
	color: var(--secondaryColor);
	margin-bottom: 0.5rem;
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 0.6rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: "arpona", sans-serif;
	font-size: 0.9rem;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

@media screen and (min-width: 768px) {
	.comment-form input,
	.comment-form textarea {
		padding: 0.8rem;
		font-size: 1rem;
	}
}

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

.comment-form textarea {
	resize: vertical;
	min-height: 100px;
}

.submit-comment-btn {
	padding: 0.6rem 1.5rem;
	background: var(--secondaryColor);
	color: white;
	border: none;
	border-radius: 4px;
	font-family: "arpona", sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
	width: 100%;
}

@media screen and (min-width: 768px) {
	.submit-comment-btn {
		padding: 0.8rem 2rem;
		font-size: 1rem;
		width: auto;
	}
}

.submit-comment-btn:hover {
	background: var(--primaryColor);
}

.comments-list {
	margin-top: 2rem;
}

.comment-item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1rem 1.5rem;
	margin-bottom: 1rem;
}

.comment-author {
	font-family: "arpona", sans-serif;
	font-weight: 700;
	color: var(--secondaryColor);
	margin-bottom: 0.3rem;
}

.comment-date {
	font-size: 0.85rem;
	color: #888;
	margin-bottom: 0.5rem;
}

.comment-content {
	font-family: "arpona", sans-serif;
	line-height: 1.6;
	color: #333;
}

@font-face {
	font-family: "Al Fresco";
	src:
		url("../fonts/AlFresco.woff2") format("woff2"),
		url("../fonts/AlFresco.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
