/*
 * Dini 120 — Footer & newsletter.
 * Source design (sharjah.ac.ae footer): black band; logo + slogan beside
 * link columns (titles underlined in green); contact links separated by thin
 * rules and the newsletter form on one row; copyright row under a faint
 * line; a decorative pattern in the bottom corner. On phones the link
 * columns fold under their titles. See developer guide §5.12.
 */

.dft {
	position: relative;
	overflow: hidden;
	background: var(--dini-black);
	color: var(--dini-white);
	font-size: 14px;
}
.dft .dini-container { position: relative; z-index: 1; padding-top: clamp(36px, 4.6vw, 76px); }
.dft a { color: var(--dini-white); text-decoration: none; transition: color var(--dini-ease); }
.dft a:hover { color: var(--dini-green); }

/* Top: brand + link columns */
.dft-top {
	display: grid;
	grid-template-columns: minmax(170px, 18%) 1fr;
	gap: 32px clamp(32px, 6vw, 110px);
	padding-bottom: clamp(32px, 5vw, 96px);
}
.dft-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dft-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dft-logo img { width: clamp(58px, 5vw, 84px); height: auto; }
.dft-name { display: flex; flex-direction: column; gap: 3px; line-height: 1.45; }
.dft-name b { font-size: 16px; font-weight: 700; }
.dft-name small { font-size: 12.5px; opacity: .8; }
.dft-slogan { margin: 16px 0 0; font-size: 14px; opacity: .9; }

.dft-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 24px; }
.dft-col-title { margin: 0 0 22px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.dini-rtl .dft-col-title { font-weight: 700; }
.dft-col-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: start;
	cursor: default;
}
.dft-col-toggle span { position: relative; }
.dft-col-toggle span::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -.3em;
	height: 2px;
	background: var(--dini-green);
}
.dft-chevron { display: none; width: 16px; height: 16px; transition: transform .4s; }
.dft-col-list { margin: 0; padding: 0; list-style: none; }
.dft-col-list li + li { margin-top: 12px; }
.dft-col-list a { opacity: .88; }
.dft-col-list a:hover { opacity: 1; }

/* Middle: contact + newsletter */
.dft-mid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding-bottom: 32px;
}
.dft-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; margin: 0; padding: 0; list-style: none; }
.dft-contact li { padding-inline: 1em; border-inline-end: 1px solid rgba(255, 255, 255, .8); }
.dft-contact li:first-child { padding-inline-start: 0; }
.dft-contact li:last-child { border-inline-end: 0; }
.dft-contact a, .dft-contact-text { display: inline-flex; align-items: center; gap: 12px; }
.dft-contact .dini-icon { width: 22px; height: 22px; stroke-width: 1.6; color: var(--dini-green); }

.dft-news {
	flex: 0 1 46%;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 8px 24px;
}
.dft-news-title { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; }
.dini-rtl .dft-news-title { font-weight: 700; }
.dft-form, .dft-msg, .dft-note { grid-column: 2; }
.dft-form { display: flex; gap: 8px; }
.dft-input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding-inline: 16px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: var(--dini-radius);
	background: rgba(255, 255, 255, .06);
	color: var(--dini-white);
	font: inherit;
	text-align: start;
}
.dini-rtl .dft-input:placeholder-shown { direction: rtl; }
.dft-input::placeholder { color: rgba(255, 255, 255, .6); }
.dft-input:focus { border-color: var(--dini-green); outline: none; }
.dft-submit {
	flex-shrink: 0;
	height: 46px;
	padding-inline: 22px;
	border: 0;
	border-radius: var(--dini-radius);
	background: var(--dini-green);
	color: var(--dini-black);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--dini-ease);
}
.dft-submit:hover { background: var(--dini-green-dark); }
.dft-submit:disabled { opacity: .6; cursor: default; }
.dft-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dft-msg { margin: 0; font-size: 13px; }
.dft-msg:empty { display: none; }
.dft-msg.is-ok { color: var(--dini-green); }
.dft-msg.is-error { color: #ff9b9b; }
.dft-note { margin: 0; font-size: 12px; opacity: .65; }

/* Bottom row */
.dft-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 19px;
	border-top: 1px solid rgba(255, 255, 255, .4);
	font-size: 13px;
}
.dft-copy { margin: 0; opacity: .9; }
.dft-legal { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.dft-legal li { padding-inline: 1em; }
.dft-legal li:first-child { padding-inline-start: 0; }
.dft-legal li:last-child { padding-inline-end: 0; }
.dft-legal li:not(:last-child) { border-inline-end: 1px solid var(--dini-white); }

/* Decorative corner pattern */
.dft-ornament {
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 240px;
	height: 160px;
	color: var(--dini-white);
	opacity: .08;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to top, #000, transparent);
	mask-image: linear-gradient(to top, #000, transparent);
}

@media (max-width: 991px) {
	.dft-top { grid-template-columns: 1fr; }
	.dft-brand { max-width: 420px; margin-inline: auto; }
	.dft-news { flex-basis: 100%; }
	.dft-ornament { display: none; }
}

@media (max-width: 767px) {
	.dft-cols { grid-template-columns: 1fr; gap: 0; }
	.dft-col { border-bottom: 1px solid rgba(255, 255, 255, .2); }
	.dft-col-title { margin: 0; }
	.dft-col-toggle { width: 100%; justify-content: space-between; padding-block: 16px; cursor: pointer; }
	.dft-js .dft-chevron { display: block; }
	.dft-js .dft-col-toggle[aria-expanded="true"] .dft-chevron { transform: rotate(180deg); }
	.dft-js .dft-col-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s; }
	.dft-js .dft-col-body.is-open { grid-template-rows: 1fr; }
	.dft-col-list { overflow: hidden; min-height: 0; }
	.dft-col-list li:first-child { margin-top: 4px; }
	.dft-col-list li:last-child { margin-bottom: 18px; }
	.dft-contact { flex-direction: column; align-items: flex-start; }
	.dft-contact li { padding-inline: 0; border: 0; }
	.dft-news { grid-template-columns: 1fr; }
	.dft-form, .dft-msg, .dft-note { grid-column: 1; }
	.dft-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

@media (max-width: 400px) {
	.dft-form { flex-direction: column; }
}
