/**
 * Content Sections Styles (Latest, Travel, Study Abroad)
 */

/* Section Containers */
.latest-section,
.travel-section,
.study-section {
	display: flex;
	flex-direction: column;
}

.latest-section {
	background-color: var(--color-section-bg-1);
	padding: var(--spacing-xxxl) 0;
}

.travel-section {
	background-color: var(--color-white);
	padding: var(--spacing-xxxl) 0;
}

.study-section {
	background-color: var(--color-section-bg-2);
	padding: var(--spacing-xxxl) 0;
}

/* Section Headers - Spacing handled by flex-vertical gap on container */

.section-title {
	font-family: 'Marcellus', serif;
	font-size: 40px;
	font-weight: 400;
	font-style: normal;
	color: var(--color-secondary);
	margin: 0;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;
}



/* Card Grid */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--spacing-mlg);
	/* Margin removed - handled by flex-vertical gap */
}

/* Post Cards */
.post-card {
	border-radius: 0;
	overflow: hidden;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease;
}

/* Card Image Container */
.post-card-image {
	position: relative;
	border: 3px solid var(--color-accent-red);
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Category Tags on Image */
.post-categories {
	position: absolute;
	top: var(--spacing-sm);
	left: var(--spacing-sm);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xs);
	z-index: 2;
}

.category-tag {
	background: rgba(255, 255, 255, 0.95);
	color: var(--color-black);
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 500;
	border-radius: 0;
	text-decoration: none;
	white-space: nowrap;
	display: inline-block;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Card Content */
.post-card-content {
	padding: var(--spacing-sm) 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.post-date {
	color: var(--color-text-light);
	font-size: 12px;
}

.post-card-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-black);
	margin: 0;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* View All Button */
.section-button-container {
	text-align: center;
}

.btn-view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 60px;
	border: 1px solid var(--color-secondary);
	color: var(--color-secondary);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 3px;
	transition: all 0.3s ease;
	width: 295px;
}

.btn-arrow {
	width: 12px;
	height: 12px;
	font-weight: 700;
	transition: all 0.3s ease;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	
}

/* Mobile */
@media (max-width: 768px) {

	.btn-view-all {
		width: 235px;
	}

	.post-card-title {
		font-size: 14px;
	}

	.post-date {
		font-size: 10px;
	}

	.latest-section,
	.travel-section,
	.study-section {
		padding: var(--spacing-mxl) 0;
	}

	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.section-title {
		font-size: 20px;
	}

		.section-subtitle {
		margin-left: 0;
		margin-top: 5px;
		font-size: 12px;
			font-weight: 700;
	}

	.post-card-content {
		padding: 6px 0;
	}
}