.ag-home {
	width: 100%;
	position: relative;
	overflow: hidden;
	padding: 60px 20px;
	box-sizing: border-box;
}

.ag-home-logo {
	text-align: center;
	margin-bottom: 20px;
}

.ag-home-logo img {
	max-width: 200px;
	height: auto;
}

.ag-home-title {
	color: #FFFFFF;
	font-size: 60px;
	font-weight: 700;
	line-height: 67.2px;
	margin: 0 0 40px 0;
	text-align: center;
	width: 100%;
}

.ag-home-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	direction: rtl;
	justify-items: stretch;
	align-items: start;
}

.ag-home-card-wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 407px;
	margin: 0 auto;
}

.ag-home-card {
	background: #FFFFFF;
	overflow: hidden;
	border-radius: 20px;
	padding-bottom: 20px;
	width: 100%;
	box-sizing: border-box;
}

.ag-home-card-image-wrap {
	width: calc(100% - 30px);
	height: 243.56px;
	margin: 15px;
	overflow: hidden;
	border-radius: 20px;
	box-sizing: border-box;
}

.ag-home-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ag-home-card-title {
	color: #5C4B3B;
	font-size: 23px;
	font-weight: 700;
	line-height: 30px;
	padding: 0 15px;
	margin-top: 5px;
	word-wrap: break-word;
}

.ag-home-card-subtitle {
	color: #828F77;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	padding: 0 15px;
	margin-top: 0;
	word-wrap: break-word;
}

.ag-home-card-button {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 13px 20px;
	background: #FFFFFF;
	border-radius: 10px;
	text-decoration: none;
	color: #707F64;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	box-sizing: border-box;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.ag-home-card-button:hover {
	background-color: #F5F5F5;
}

.ag-home-card-button-text {
	white-space: nowrap;
}

.ag-home-card-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ag-home-card-arrow i {
	display: inline-block;
}

.ag-home-decoration-wrap {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-end;
	width: 100%;
	margin-top: 20px;
}

.ag-home-decoration {
	width: 929px;
	height: 526px;
	max-width: 100%;
	transform: rotate(17deg);
	opacity: 0.5;
	pointer-events: none;
}


/* Tablet — same layout as desktop, scaled down */
@media (max-width: 1024px) and (min-width: 769px) {
	.ag-home {
		padding: 50px 15px;
	}

	.ag-home-title {
		font-size: 44px;
		line-height: 52px;
		margin-bottom: 30px;
	}

	.ag-home-logo img {
		max-width: 160px;
	}

	.ag-home-grid {
		gap: 15px;
	}

	.ag-home-card-wrap {
		max-width: 100%;
	}

	.ag-home-card {
		border-radius: 18px;
		padding-bottom: 15px;
	}

	.ag-home-card-image-wrap {
		height: 180px;
		margin: 10px;
	}

	.ag-home-card-image {
		object-fit: cover;
	}

	.ag-home-card-title {
		font-size: 18px;
		line-height: 24px;
	}

	.ag-home-card-subtitle {
		font-size: 14px;
		line-height: 22px;
	}

	.ag-home-card-button {
		padding: 10px 15px;
		font-size: 11px;
	}

	.ag-home-decoration {
		width: 500px;
		height: auto;
	}
}

/* Mobile Landscape */
@media (max-width: 768px) {
	.ag-home {
		padding: 40px 12px;
	}

	.ag-home-title {
		font-size: 36px;
		line-height: 42px;
		margin-bottom: 25px;
	}

	.ag-home-logo {
		margin-bottom: 15px;
	}

	.ag-home-logo img {
		max-width: 130px;
	}

	.ag-home-grid {
		grid-template-columns: 1fr !important;
		gap: 12px;
	}

	.ag-home-card-wrap {
		width: 100%;
	}

	.ag-home-card {
		border-radius: 16px;
		padding-bottom: 12px;
	}

	.ag-home-card-image-wrap {
		height: auto;
		aspect-ratio: 16 / 10;
		margin: 10px;
		border-radius: 16px;
	}

	.ag-home-card-title {
		font-size: 18px;
		line-height: 24px;
		padding: 0 12px;
		margin-top: 4px;
	}

	.ag-home-card-subtitle {
		font-size: 14px;
		line-height: 20px;
		padding: 0 12px;
	}

	.ag-home-card-button {
		padding: 10px 15px;
		font-size: 11px;
		border-radius: 8px;
		width: 100%;
	}

	.ag-home-decoration {
		width: 350px;
		height: auto;
	}
}

/* Mobile Portrait */
@media (max-width: 480px) {
	.ag-home {
		padding: 30px 10px;
	}

	.ag-home-title {
		font-size: 28px;
		line-height: 34px;
		margin-bottom: 20px;
	}

	.ag-home-logo {
		margin-bottom: 12px;
	}

	.ag-home-logo img {
		max-width: 100px;
	}

	.ag-home-grid {
		gap: 10px;
	}

	.ag-home-card {
		border-radius: 14px;
		padding-bottom: 10px;
	}

	.ag-home-card-image-wrap {
		height: auto;
		aspect-ratio: 16 / 10;
		margin: 8px;
		border-radius: 14px;
	}

	.ag-home-card-title {
		font-size: 16px;
		line-height: 22px;
		padding: 0 10px;
	}

	.ag-home-card-subtitle {
		font-size: 13px;
		line-height: 18px;
		padding: 0 10px;
	}

	.ag-home-card-button {
		padding: 9px 15px;
		font-size: 10px;
		border-radius: 7px;
		gap: 6px;
	}

	.ag-home-card-arrow i {
		font-size: 10px;
	}

	.ag-home-decoration {
		width: 280px;
		height: auto;
	}
}

/* Small Mobile */
@media (max-width: 360px) {
	.ag-home {
		padding: 25px 8px;
	}

	.ag-home-title {
		font-size: 24px;
		line-height: 30px;
	}

	.ag-home-logo img {
		max-width: 80px;
	}

	.ag-home-card {
		border-radius: 12px;
	}

	.ag-home-card-image-wrap {
		height: auto;
		aspect-ratio: 16 / 10;
		margin: 6px;
		border-radius: 12px;
	}

	.ag-home-card-title {
		font-size: 14px;
		line-height: 20px;
	}

	.ag-home-card-subtitle {
		font-size: 12px;
		line-height: 16px;
	}

	.ag-home-card-button {
		padding: 8px 12px;
		font-size: 9px;
	}

	.ag-home-decoration {
		width: 220px;
	}
}