/* ================================================
   Footer Component - Unified Structure
   ================================================ */

/* Main Footer Container */
.footer {
	background-color: #f6f7f8;
	color: var(--gray-700);
	padding: 55px 0 0;
}

/* Footer Grid Layout */
.footer__main {
	display: grid;
	grid-template-columns: 1.2fr 1.5fr 1fr 1fr;
	gap: 40px;
}

/* Individual Columns */
.footer__col {
	display: flex;
	flex-direction: column;
}

/* Logo Column */
.footer__col--logo {
	grid-column: 1;
}

/* Logo Wrapper - Desktop */
.footer__logo-wrapper {
	display: flex;
	align-items: center;
	gap: 15px;
}

.footer__logo-img {
	width: 70px;
	height: auto;
}

.footer__logo-text {
	display: flex;
	flex-direction: column;
}

.footer__logo-line1 {
	font-family: Montserrat, var(--font-primary);
	font-size: var(--fs-300);
	font-weight: 700;
	color: var(--brand-secondary);
	line-height: 1.3;
}

.footer__logo-line2 {
	font-family: Montserrat, var(--font-primary);
	font-size: var(--fs-200);
	font-weight: 500;
	color: var(--brand-secondary);
	line-height: 1.3;
}

/* Contact Column */
.footer__col--contact {
	grid-column: 2;
}

/* Admissions Column */
.footer__col--admissions {
	grid-column: 3;
}

/* Student Life Column */
.footer__col--student {
	grid-column: 4;
}

/* Headings */
.footer__heading {
	font-family: Montserrat, var(--font-primary);
	font-size: var(--fs-350);
	font-weight: 700;
	line-height: 20.723px;
	color: var(--brand-secondary);
	margin-bottom: 11px;
	padding-bottom: 11px;
	position: relative;
}

.footer__heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 47px;
	height: 1px;
	background-color: var(--brand-secondary);
}

/* Contact List */
.footer__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer__list-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 15px;
	font-family: Montserrat, var(--font-primary);
	font-size: var(--fs-200);
	font-weight: 400;
	line-height: 24px;
	color: var(--gray-700);
}

.footer__list-item .iconify {
	font-size: 14px;
	margin-top: 5px;
	flex-shrink: 0;
	color: var(--brand-secondary);
}

.footer__list-item strong {
	font-weight: 700;
	color: var(--brand-secondary);
}

/* Links Lists */
.footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer__links li {
	margin-bottom: 0;
}

.footer__link {
	display: block;
	font-family: Montserrat, var(--font-primary);
	font-size: var(--fs-200);
	font-weight: 400;
	line-height: 30px;
	color: var(--gray-700);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer__link:hover {
	color: var(--brand-secondary);
}

/* Bottom Section - Connect Bar */
.footer__bottom {
	margin-top: 40px;
}

.footer__connect-bar {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 24px;
	background-color: var(--brand-primary);
	padding: 18px 20px;
}

.footer__connect-text {
	font-family: Montserrat, var(--font-primary);
	font-size: var(--fs-300);
	font-weight: 600;
	color: var(--color-light);
	white-space: nowrap;
}

.footer__social {
	display: flex;
	align-items: center;
	gap: 14px;
}

.footer__social-link {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--color-light);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer__social-link:hover {
	background-color: var(--gray-200);
	transform: scale(1.05);
}

.footer__social-link .iconify {
	font-size: 18px;
	color: var(--brand-primary);
}

/* Responsive Design */
@media (max-width: 1199px) {
	.footer__main {
		gap: 30px;
	}
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991px) {
	.footer {
		padding: 40px 0 0;
	}

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

	.footer__col--logo {
		grid-column: 1 / -1;
		align-items: center;
	}

	.footer__logo-wrapper {
		justify-content: center;
	}

	.footer__col--contact {
		grid-column: 1 / -1;
	}

	.footer__col--admissions {
		grid-column: 1;
	}

	.footer__col--student {
		grid-column: 2;
	}
}

/* Mobile */
@media (max-width: 575px) {
	.footer {
		padding: 30px 16px 0;
	}

	.footer > .container {
		padding: 0;
		max-width: 100%;
	}

	.footer__main {
		grid-template-columns: 1fr;
		gap: 0;
	}

	/* Add dividers between columns */
	.footer__col {
		padding: 20px 0;
		border-bottom: 1px solid var(--gray-300);
	}

	.footer__col:first-child {
		padding-top: 0;
	}

	.footer__col:last-child {
		border-bottom: none;
	}

	/* Logo column on mobile */
	.footer__col--logo {
		grid-column: 1;
		justify-content: center;
	}

	.footer__logo-wrapper {
		justify-content: center;
	}

	.footer__logo-img {
		width: 55px;
	}

	.footer__logo-text {
		text-align: left;
	}

	.footer__logo-line1 {
		font-size: var(--fs-200);
	}

	.footer__logo-line2 {
		font-size: var(--fs-100);
	}

	/* Contact column */
	.footer__col--contact,
	.footer__col--admissions,
	.footer__col--student {
		grid-column: 1;
		align-items: flex-start;
		text-align: left;
	}

	/* Headings */
	.footer__heading {
		font-size: var(--fs-300);
		margin-bottom: 12px;
		padding-bottom: 0;
	}

	.footer__heading::after {
		display: none;
	}

	/* Contact list items - spacing adjustment */
	.footer__list-item {
		line-height: 1.5;
		margin-bottom: 12px;
	}

	.footer__list-item .iconify {
		margin-top: 3px;
	}

	/* Bottom section */
	.footer__bottom {
		margin-top: 20px;
		margin-left: -16px;
		margin-right: -16px;
		width: calc(100% + 32px);
	}

	/* Connect bar - vertical layout */
	.footer__connect-bar {
		flex-direction: column;
		gap: 12px;
		padding: 16px 20px;
	}

	.footer__connect-text {
		font-size: var(--fs-200);
		font-weight: 500;
	}

	.footer__social-link {
		width: 28px;
		height: 28px;
	}

	.footer__social-link .iconify {
		font-size: 14px;
	}
}
