/* ===================== Hero Section ===================== */
.hero-section {
	background: var(--hero-bg);
	color: #ffffff;
	padding: 120px 0;
	text-align: center;
	transition: background 0.35s ease;
}

.hero-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 20px;
}

.hero-description {
	font-size: 1.2rem;
	max-width: 700px;
	margin: 0 auto 40px;
	color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.hero-buttons .btn-secondary {
	color: #ffffff;
	border-color: #ffffff;
}

.hero-buttons .btn-secondary:hover {
	background-color: #ffffff;
	color: var(--primary-color);
}

/* ===================== About Section ===================== */
.about-section {
	display: flex;
	align-items: center;
	gap: 60px;
	padding: 80px 20px;
}

.about-image img {
	width: 100%;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
}

.section-title {
	font-size: 2.2rem;
	margin-bottom: 20px;
	color: var(--text-color);
}

.features {
	margin-top: 30px;
	display: grid;
	gap: 15px;
}

.feature-item {
	color: var(--text-muted);
}

.feature-item strong {
	color: var(--primary-color);
}

/* ===================== Semesters Grid (4 in a Row) ===================== */
.semesters-section {
	padding: 80px 0;
	background-color: var(--light-gray);
	transition: background-color 0.35s ease;
}

.semesters-grid {
	display: grid;
	/* Key change: Force 4 columns on large screens */
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.semester-card {
	background-color: var(--surface-color);
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	transition:
		transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.3s ease,
		border-color 0.3s ease,
		background-color 0.35s ease;
	overflow: hidden;
}

.semester-card a {
	text-decoration: none;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 30px 20px;
	color: inherit;
	text-align: center;
	align-items: center;
}

.semester-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow);
	border-color: var(--primary-color);
}

.card-icon {
	width: 56px;
	height: 56px;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--light-gray);
	border-radius: 12px;
	padding: 12px;
	transition:
		background-color 0.35s ease,
		color 0.35s ease;
}

.card-icon svg {
	width: 100%;
	height: 100%;
	color: var(--primary-color);
	transition:
		color 0.35s ease,
		transform 0.3s ease;
}

.semester-card:hover .card-icon {
	background-color: var(--primary-color);
}

.semester-card:hover .card-icon svg {
	color: #ffffff;
	transform: scale(1.1);
}

.semester-card h3 {
	font-size: 1.15rem;
	margin-bottom: 8px;
	color: var(--text-color);
}

.semester-card p {
	font-size: 0.85rem;
	color: var(--text-muted);
	line-height: 1.4;
}

/* ===================== Responsive Adjustments ===================== */

/* Table-sized screens: 2 per row */
@media (max-width: 1024px) {
	.semesters-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.about-section {
		gap: 30px;
	}
}

@media (max-width: 768px) {
	.hero-section {
		padding: 80px 20px;
	}

	.hero-buttons {
		flex-direction: column;
	}

	.about-section {
		flex-direction: column;
		text-align: center;
	}

	.semester-card a {
		flex-direction: row;
		text-align: left;
		padding: 20px;
		gap: 15px;
	}

	.card-icon {
		margin-bottom: 0;
		width: 40px;
		height: 40px;
		padding: 8px;
		flex-shrink: 0;
	}
}

/* Mobile: 1 per row */
@media (max-width: 580px) {
	.semesters-grid {
		grid-template-columns: 1fr;
	}

	.about-image {
		display: none;
	}

	.semester-card a {
		gap: 15px;
	}
}

/* ===================== FAQ Section ===================== */
.faq-section {
	padding: 80px 0;
	background-color: var(--off-white);
}

.faq-list {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	margin-bottom: 12px;
	overflow: hidden;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
	border-color: var(--primary-color);
	box-shadow: 0 4px 12px rgba(45, 138, 110, 0.1);
}

.faq-item summary {
	padding: 18px 24px;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "+";
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--primary-color);
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 16px;
}

.faq-item[open] summary::after {
	content: "\2212";
}

.faq-item summary h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--text-color);
	margin: 0;
	line-height: 1.4;
}

.faq-item p {
	padding: 0 24px 18px;
	color: var(--text-muted);
	line-height: 1.7;
	font-size: 0.95rem;
}

.faq-item p a {
	color: var(--primary-color);
	text-decoration: underline;
}

@media (max-width: 580px) {
	.faq-item summary {
		padding: 14px 16px;
	}

	.faq-item p {
		padding: 0 16px 14px;
	}

	.faq-item summary h3 {
		font-size: 0.95rem;
	}
}
