/* ================================================================
   Skincare Homepage — scoped to .sc-home (prefix: sc-)
   ================================================================ */

/* ---- Shared layout ---- */
.sc-home {
	font-family: inherit;
	color: #1a1a1a;
}

.sc-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.sc-section-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1a1a1a;
	line-height: 1.2;
}

.sc-section-subtitle {
	font-size: 0.9rem;
	color: #888;
	margin: 0;
}

/* ================================================================
   SECTION 1: HERO — Two-column featured posts
   ================================================================ */
.sc-hero {
	padding: 48px 0 56px;
	border-bottom: 1px solid #f0ebe4;
}

.sc-hero-header {
	margin-bottom: 28px;
}

.sc-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

.sc-hero-card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #faf8f5;
	border: 1px solid #f0ebe4;
}

.sc-hero-card .sc-card-img-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.sc-hero-card .sc-card-img-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.sc-hero-card:hover .sc-card-img-link img {
	transform: scale(1.04);
}

.sc-hero-card .sc-card-img-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: linear-gradient( 135deg, #f5e6d3 0%, #e8d5c4 100% );
}

.sc-hero-card .sc-card-body {
	padding: 20px 22px 22px;
}

.sc-cat-label {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #c17d52;
	margin-bottom: 10px;
	text-decoration: none;
}

.sc-cat-label:hover {
	color: #a0623d;
}

.sc-hero-card .sc-post-title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 12px;
}

.sc-hero-card .sc-post-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.sc-hero-card .sc-post-title a:hover {
	color: #c17d52;
}

.sc-post-meta {
	font-size: 0.8rem;
	color: #999;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sc-post-meta .sc-sep {
	opacity: 0.4;
}

/* ================================================================
   SECTION 2: TOPIC GRID — Browse by Topic
   ================================================================ */
.sc-topics {
	padding: 60px 0;
	background: #fff;
}

.sc-topics-header {
	margin-bottom: 28px;
}

.sc-topic-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 20px;
}

.sc-topic-card {
	display: block;
	padding: 26px 24px;
	border: 1.5px solid #f0ebe4;
	border-radius: 10px;
	text-decoration: none;
	background: #faf8f5;
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sc-topic-card:hover {
	border-color: #c17d52;
	transform: translateY( -2px );
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.07 );
}

.sc-topic-icon {
	font-size: 1.6rem;
	margin-bottom: 12px;
	display: block;
	line-height: 1;
}

.sc-topic-name {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 6px;
}

.sc-topic-desc {
	font-size: 0.83rem;
	color: #666;
	margin: 0 0 14px;
	line-height: 1.55;
}

.sc-topic-count {
	font-size: 0.75rem;
	font-weight: 600;
	color: #c17d52;
	letter-spacing: 0.03em;
}

/* ================================================================
   SECTION 3: LATEST ARTICLES — 3-column grid
   ================================================================ */
.sc-latest {
	padding: 60px 0;
	background: #faf8f5;
}

.sc-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
	flex-wrap: wrap;
	gap: 12px;
}

.sc-view-all {
	font-size: 0.875rem;
	font-weight: 600;
	color: #c17d52;
	text-decoration: none;
	white-space: nowrap;
}

.sc-view-all:hover {
	color: #a0623d;
}

.sc-articles-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
}

.sc-article-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.06 );
	transition: box-shadow 0.18s ease, transform 0.18s ease;
	display: flex;
	flex-direction: column;
}

.sc-article-card:hover {
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.1 );
	transform: translateY( -2px );
}

.sc-article-img-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	flex-shrink: 0;
}

.sc-article-img-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.sc-article-card:hover .sc-article-img-link img {
	transform: scale( 1.04 );
}

.sc-article-img-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, #f5e6d3 0%, #e8d5c4 100% );
}

.sc-article-body {
	padding: 18px 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.sc-article-title {
	font-size: 0.975rem;
	font-weight: 700;
	line-height: 1.42;
	margin: 0 0 auto;
	padding-bottom: 12px;
}

.sc-article-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.sc-article-title a:hover {
	color: #c17d52;
}

.sc-article-meta {
	font-size: 0.775rem;
	color: #aaa;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

/* ================================================================
   SECTION 4: NEWSLETTER — Full width
   ================================================================ */
.sc-newsletter {
	padding: 72px 24px;
	background: #F8F3ED;
	text-align: center;
}

.sc-newsletter-inner {
	max-width: 560px;
	margin: 0 auto;
}

.sc-newsletter-eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #c17d52;
	margin: 0 0 12px;
}

.sc-newsletter-title {
	font-size: 2rem;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 14px;
	line-height: 1.18;
}

.sc-newsletter-desc {
	font-size: 0.95rem;
	color: #666;
	margin: 0 0 30px;
	line-height: 1.65;
}

.sc-newsletter-form {
	display: flex;
	max-width: 420px;
	margin: 0 auto;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba( 0, 0, 0, 0.09 );
}

.sc-newsletter-form input[type="email"] {
	flex: 1;
	padding: 14px 18px;
	border: none;
	font-size: 0.9rem;
	outline: none;
	background: #fff;
	color: #1a1a1a;
	min-width: 0;
}

.sc-newsletter-form input[type="email"]::placeholder {
	color: #bbb;
}

.sc-newsletter-form button {
	padding: 14px 22px;
	background: #c17d52;
	color: #fff;
	border: none;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.18s ease;
	flex-shrink: 0;
}

.sc-newsletter-form button:hover {
	background: #a0623d;
}

.sc-newsletter-privacy {
	font-size: 0.75rem;
	color: #bbb;
	margin: 12px 0 0;
}

/* ================================================================
   SECTION 5: ABOUT + WRITE FOR US / SPONSORED CONTENT
   ================================================================ */
.sc-about-section {
	padding: 64px 0 72px;
	background: #fff;
}

.sc-about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.sc-about-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #c17d52;
	margin-bottom: 12px;
	display: block;
}

.sc-about-title {
	font-size: 1.55rem;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 16px;
	line-height: 1.25;
}

.sc-about-text {
	font-size: 0.93rem;
	color: #555;
	line-height: 1.75;
	margin: 0;
}

.sc-about-right {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sc-cta-box {
	padding: 26px 28px;
	border-radius: 10px;
	border: 1.5px solid #f0ebe4;
	background: #faf8f5;
}

.sc-cta-box-title {
	font-size: 1rem;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.sc-cta-box-badge {
	font-size: 0.63rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: #c17d52;
	color: #fff;
	padding: 3px 9px;
	border-radius: 4px;
	flex-shrink: 0;
}

.sc-cta-box-text {
	font-size: 0.875rem;
	color: #666;
	line-height: 1.65;
	margin: 0 0 18px;
}

.sc-cta-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 0.83rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sc-cta-btn-outline {
	border: 1.5px solid #c17d52;
	color: #c17d52;
	background: transparent;
}

.sc-cta-btn-outline:hover {
	background: #c17d52;
	color: #fff;
}

.sc-cta-btn-solid {
	background: #1a1a1a;
	color: #fff;
	border: 1.5px solid #1a1a1a;
}

.sc-cta-btn-solid:hover {
	background: #333;
	border-color: #333;
}

/* ================================================================
   Skincare Homepage — Responsive breakpoints
   ================================================================ */
@media ( max-width: 960px ) {
	.sc-hero-grid,
	.sc-topic-grid,
	.sc-articles-grid {
		grid-template-columns: 1fr 1fr;
	}
	.sc-about-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media ( max-width: 640px ) {
	.sc-section-title {
		font-size: 1.45rem;
	}
	.sc-hero-grid,
	.sc-topic-grid,
	.sc-articles-grid {
		grid-template-columns: 1fr;
	}
	.sc-newsletter-title {
		font-size: 1.55rem;
	}
	.sc-newsletter-form {
		flex-direction: column;
		border-radius: 8px;
		box-shadow: none;
	}
	.sc-newsletter-form input[type="email"],
	.sc-newsletter-form button {
		width: 100%;
		border-radius: 8px;
	}
	.sc-newsletter-form input[type="email"] {
		border: 1.5px solid #e8ddd4;
		margin-bottom: 10px;
	}
}

/* ================================================================
   Topics Page — scoped to .topics-page
   ================================================================ */

.topics-page {
	max-width: 1040px;
	margin: 0 auto;
	padding: 48px 32px 80px;
}

/* ---- Page Header ---- */
.topics-header {
	text-align: center;
	margin-bottom: 56px;
}

.topics-header h1 {
	font-family: 'Libre Baskerville', serif;
	font-weight: 400;
	font-size: 36px;
	color: #1E1B18;
	margin: 0 0 12px;
	line-height: 1.25;
}

.topics-header p {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 16px;
	color: #8E857D;
	margin: 0;
	line-height: 1.6;
}

/* ---- Topic Group ---- */
.topics-group {
	margin-bottom: 56px;
}

.topics-group:last-child {
	margin-bottom: 0;
}

.topics-group-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #EDE8E2;
}

.topics-group-header h2 {
	font-family: 'Libre Baskerville', serif;
	font-weight: 400;
	font-size: 24px;
	color: #1E1B18;
	margin: 0 0 6px;
}

.topics-group-header p {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	color: #8E857D;
	margin: 0;
}

/* ---- Topic Grid ---- */
.topics-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 16px;
}

/* ---- Topic Card (shared) ---- */
.topic-card {
	display: flex;
	flex-direction: column;
	padding: 22px 22px 20px;
	background: #FFFFFF;
	border: 1px solid #EDE8E2;
	border-radius: 12px;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	cursor: pointer;
}

.topic-card:hover {
	transform: translateY( -2px );
	box-shadow: 0 8px 30px rgba( 30, 27, 24, 0.06 );
	border-color: rgba( 196, 129, 58, 0.3 );
}

.topic-card__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 8px;
}

.topic-card__name {
	font-family: 'Nunito Sans', sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: #1E1B18;
	margin: 0;
	text-decoration: none;
}

/* Standalone card: name color on card hover */
a.topic-card:hover .topic-card__name {
	color: #C4813A;
}

/* Parent+children card: name color on name-link hover */
.topic-card__name-link {
	text-decoration: none;
}

.topic-card__name-link:hover .topic-card__name {
	color: #C4813A;
}

.topic-card__count {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 12px;
	color: #8E857D;
	white-space: nowrap;
	flex-shrink: 0;
	margin-left: 12px;
}

.topic-card__description {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	color: #8E857D;
	line-height: 1.55;
	margin: 0 0 12px;
	flex: 1;
}

.topic-card__link {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #C4813A;
}

/* ---- Child category pills ---- */
.topic-card__children {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #EDE8E2;
}

.topic-child {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #3B3632;
	text-decoration: none;
	padding: 4px 12px;
	background: #F8F3ED;
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}

.topic-child:hover {
	background: #C4813A;
	color: #FFFFFF;
}

.topic-child span {
	font-size: 11px;
	color: #8E857D;
	margin-left: 2px;
}

.topic-child:hover span {
	color: rgba( 255, 255, 255, 0.8 );
}

/* ---- Topics Page — Responsive ---- */
@media ( max-width: 768px ) {
	.topics-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 480px ) {
	.topics-page {
		padding: 32px 20px 60px;
	}
	.topics-header h1 {
		font-size: 28px;
	}
	.topics-grid {
		grid-template-columns: 1fr;
	}
}

/* ================================================================
   All Articles Page — scoped to .all-articles-page
   ================================================================ */

.all-articles-page {
	max-width: 1040px;
	margin: 0 auto;
	padding: 48px 32px 80px;
}

/* ----- Page Header ----- */
.articles-header {
	text-align: center;
	margin-bottom: 36px;
}

.articles-header h1 {
	font-family: 'Libre Baskerville', serif;
	font-weight: 400;
	font-size: 36px;
	color: #1E1B18;
	margin: 0 0 10px;
	line-height: 1.25;
}

.articles-header p {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 16px;
	color: #8E857D;
	margin: 0;
	line-height: 1.6;
}

/* ----- Category Filter Bar ----- */
.articles-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 36px;
	padding-bottom: 28px;
	border-bottom: 1px solid #EDE8E2;
}

.filter-pill {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #3B3632;
	text-decoration: none;
	padding: 7px 18px;
	border-radius: 50px;
	border: 1px solid #EDE8E2;
	background: #FFFFFF;
	transition: all 0.25s ease;
	white-space: nowrap;
}

.filter-pill:hover {
	border-color: rgba( 196, 129, 58, 0.4 );
	color: #C4813A;
	background: rgba( 196, 129, 58, 0.05 );
}

.filter-pill--active {
	background: #C4813A;
	color: #FFFFFF;
	border-color: #C4813A;
}

.filter-pill--active:hover {
	background: #B3722F;
	color: #FFFFFF;
	border-color: #B3722F;
}

/* ----- Active Filter Indicator ----- */
.articles-active-filter {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	color: #8E857D;
	text-align: center;
	margin-bottom: 28px;
}

.articles-active-filter strong {
	color: #1E1B18;
}

.articles-active-filter span {
	margin-left: 4px;
}

.clear-filter {
	font-size: 13px;
	font-weight: 600;
	color: #C4813A;
	text-decoration: none;
	margin-left: 12px;
}

.clear-filter:hover {
	text-decoration: underline;
}

/* ----- Articles Grid ----- */
.articles-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
	margin-bottom: 48px;
}

/* ----- Article Card ----- */
.article-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid #EDE8E2;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier( 0.25, 0.46, 0.45, 0.94 );
}

.article-card:hover {
	transform: translateY( -3px );
	box-shadow: 0 12px 40px rgba( 30, 27, 24, 0.07 );
	border-color: rgba( 196, 129, 58, 0.25 );
}

.article-card__image-link {
	display: block;
	text-decoration: none;
}

.article-card__image {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 60%;
	overflow: hidden;
	background: #F8F3ED;
}

.article-card__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.article-card:hover .article-card__img {
	transform: scale( 1.03 );
}

.article-card__placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, #F8F3ED 0%, #FDF3E8 100% );
}

.article-card__content {
	display: flex;
	flex-direction: column;
	padding: 18px 22px 22px;
	flex: 1;
}

.article-card__category {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #C4813A;
	text-decoration: none;
	margin-bottom: 8px;
	display: inline-block;
	align-self: flex-start;
}

.article-card__category:hover {
	color: #B3722F;
}

.article-card__title {
	font-family: 'Libre Baskerville', serif;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.38;
	margin: 0;
	flex: 1;
}

.article-card__title a {
	color: #1E1B18;
	text-decoration: none;
	transition: color 0.2s ease;
}

.article-card:hover .article-card__title a {
	color: #C4813A;
}

.article-card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #EDE8E2;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 12px;
	color: #8E857D;
}

.meta-dot {
	color: #EDE8E2;
}

/* ----- Pagination ----- */
.articles-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.pagination-btn {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #3B3632;
	text-decoration: none;
	padding: 10px 22px;
	border: 1px solid #EDE8E2;
	border-radius: 8px;
	background: #FFFFFF;
	transition: all 0.2s ease;
}

.pagination-btn:hover {
	border-color: #C4813A;
	color: #C4813A;
}

.pagination-numbers {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 8px;
}

.pagination-num {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #8E857D;
	text-decoration: none;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.pagination-num:hover {
	background: #F8F3ED;
	color: #C4813A;
}

.pagination-num--current {
	background: #C4813A;
	color: #FFFFFF;
	font-weight: 700;
}

/* ----- No Posts Found ----- */
.articles-empty {
	text-align: center;
	padding: 60px 20px;
}

.articles-empty p {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 16px;
	color: #8E857D;
	margin: 0 0 16px;
}

.articles-empty__link {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #C4813A;
	text-decoration: none;
}

.articles-empty__link:hover {
	text-decoration: underline;
}

/* ----- All Articles — Responsive ----- */
@media ( max-width: 900px ) {
	.articles-grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 20px;
	}
}

@media ( max-width: 540px ) {
	.all-articles-page {
		padding: 32px 20px 60px;
	}

	.articles-header h1 {
		font-size: 28px;
	}

	.articles-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.articles-filter {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 20px;
		margin-bottom: 28px;
		scrollbar-width: none;
	}

	.articles-filter::-webkit-scrollbar {
		display: none;
	}

	.articles-pagination {
		flex-wrap: wrap;
		gap: 6px;
	}

	.pagination-btn {
		padding: 8px 16px;
		font-size: 13px;
	}
}
