/* ==========================================================================
   Site footer
   --------------------------------------------------------------------------
   Loaded after style.css. All colours arrive as custom properties set inline
   on <footer class="dcv-footer"> and derived from the two colours set in
   General Settings -> Footer, so nothing here is hard-coded to one theme.

       --f-base    main panel        (copyright_color)
       --f-deep    bottom bar         (copyright_color, darkened)
       --f-line    hairline rules     (copyright_color, lightened)
       --f-accent  brand red          (footer_color)
       --f-gold    value text inside the admin-authored HTML blocks
   ========================================================================== */

/* ---------- Panel ---------------------------------------------------------- */

.dcv-footer {
	position: relative;
	margin: 0;
	padding: 0;
	color: #fff;
	background: var(--f-base);
	font-family: var(--font-rajdhani), var(--font-solaiman-lipi);
	overflow: hidden;
}

/* Hairline between the panel and whatever renders above it, plus the brand
   accent rail that stops the block reading as a flat slab of navy. */
.dcv-footer__rail {
	display: block;
	height: 3px;
	background: linear-gradient(
		to right,
		var(--f-accent) 0,
		var(--f-accent) 22%,
		var(--f-line) 22%,
		var(--f-line) 100%
	);
}

.dcv-footer__body {
	padding-top: 46px;
	padding-bottom: 42px;
}

/* ---------- Column headings ----------------------------------------------- */

.dcv-footer__title {
	position: relative;
	margin: 0 0 20px;
	padding: 0 0 12px;
	color: #fff;
	font-family: var(--font-rajdhani), var(--font-solaiman-lipi);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* Short accent bar under each heading, so all four columns line up optically
   even when one of them has fewer rows than the others. */
.dcv-footer__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 2px;
	background: var(--f-accent);
}

/* ---------- Brand column -------------------------------------------------- */

.dcv-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* The uploaded logo is a JPEG on white. A white plate with padding makes that
   look deliberate instead of like a broken image dropped on the navy panel. */
.dcv-footer__logo {
	display: inline-block;
	max-width: 100%;
	padding: 9px 18px;
	background: #fff;
	border-radius: 8px;
	line-height: 0;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
	transition: transform .25s ease, box-shadow .25s ease;
}

.dcv-footer__logo:hover,
.dcv-footer__logo:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}

.dcv-footer__logo:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.dcv-footer__logo img {
	display: block;
	width: auto;
	max-width: 210px;
	max-height: 52px;
	height: auto;
	object-fit: contain;
}

/* Fallback when no logo has been uploaded yet. */
.dcv-footer__wordmark {
	display: inline-block;
	color: #fff;
	font-family: var(--font-newsreader), var(--font-noto-serif-bengali), serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.15;
	text-decoration: none;
}

.dcv-footer__wordmark:hover,
.dcv-footer__wordmark:focus-visible {
	color: #fff;
	text-decoration: none;
	opacity: .88;
}

.dcv-footer__tagline {
	margin: 18px 0 0;
	max-width: 42ch;
	color: rgba(255, 255, 255, .74);
	font-size: 15px;
	line-height: 1.65;
}

/* ---------- Call to action ------------------------------------------------ */

.dcv-footer__cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 18px;
	padding: 8px 16px;
	color: #fff;
	background: var(--f-accent);
	border: 1px solid var(--f-accent);
	border-radius: 4px;
	font-family: var(--font-rajdhani), var(--font-solaiman-lipi);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .03em;
	text-decoration: none;
	transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.dcv-footer__cta:hover,
.dcv-footer__cta:focus-visible {
	color: #fff;
	background: transparent;
	border-color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, .26);
	outline: none;
}

.dcv-footer__cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ---------- Social row ---------------------------------------------------- */

.dcv-footer__socialnav {
	margin-top: 22px;
}

.dcv-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dcv-footer__social li {
	display: block;
	list-style: none;
}

.dcv-footer__social a {
	display: inline-block;
	width: 34px;
	height: 34px;
	line-height: 32px;
	text-align: center;
	font-size: 15px;
	color: #fff;
	background: var(--brand, #5B6472);
	border: 1px solid var(--brand, #5B6472);
	border-radius: 50%;
	transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.dcv-footer__social a:hover,
.dcv-footer__social a:focus-visible {
	color: var(--brand, #5B6472);
	background: #fff;
	border-color: var(--brand, #5B6472);
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
	outline: none;
}

.dcv-footer__social a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ---------- Section links ------------------------------------------------- */

.dcv-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dcv-footer__links li {
	display: block;
	list-style: none;
	border-bottom: 1px solid var(--f-line);
}

.dcv-footer__links li:last-child {
	border-bottom: 0;
}

.dcv-footer__links a {
	position: relative;
	display: block;
	padding: 7px 0 7px 17px;
	color: rgba(255, 255, 255, .8);
	font-family: var(--font-rajdhani), var(--font-solaiman-lipi);
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
	transition: color .22s ease, padding-left .22s ease;
}

/* Chevron marker that slides in on hover instead of a background flash. */
.dcv-footer__links a::before {
	content: "\f105";                 /* la-angle-right */
	position: absolute;
	left: 0;
	top: 50%;
	margin-top: -9px;
	font-family: "Line Awesome";
	font-size: 13px;
	color: var(--f-accent);
	opacity: 0;
	transform: translateX(-5px);
	transition: opacity .22s ease, transform .22s ease;
}

.dcv-footer__links a:hover,
.dcv-footer__links a:focus-visible {
	color: #fff;
	padding-left: 22px;
	text-decoration: none;
	outline: none;
}

.dcv-footer__links a:hover::before,
.dcv-footer__links a:focus-visible::before {
	opacity: 1;
	transform: translateX(0);
}

.dcv-footer__links a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dcv-footer__links-empty {
	padding: 7px 0;
	color: rgba(255, 255, 255, .5);
	font-size: 15px;
}

/* ---------- Admin-authored text blocks ----------------------------------- */
/*
   footer_left_content / footer_center_content hold one plain entry per line,
   stored and escaped as text - the deprecated <font size="3" markup the old
   rich-text editor produced is gone. The view turns "Label : value" into a
   <dt>/<dd> pair, so the definition list does the label/value alignment that
   inline markup used to fake.

   Global resets matter here: a bare <dl> would otherwise inherit the browser
   default 40px left indent and push the column out of alignment.
*/

.dcv-rows {
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, .82);
	font-family: var(--font-rajdhani), var(--font-solaiman-lipi);
	font-size: 15px;
	line-height: 1.65;
}

.dcv-rows dt {
	float: none;
	width: auto;
	margin: 0;
	color: #fff;
	font-weight: 600;
}

.dcv-rows dd {
	margin: 0 0 9px;
	padding: 0;
	color: var(--f-gold);
}

.dcv-rows dt + dd {
	margin-top: -2px;
}

/* A line with no label stands on its own, so it reads as body copy rather
   than as a value that lost its label. */
.dcv-rows__plain {
	color: rgba(255, 255, 255, .66);
	font-size: 14px;
	font-style: italic;
}

.dcv-rows a {
	color: var(--f-gold);
	text-decoration: none;
	border-bottom: 1px solid rgba(231, 193, 115, .45);
	transition: color .22s ease, border-color .22s ease;
}

.dcv-rows a:hover,
.dcv-rows a:focus-visible {
	color: #fff;
	border-bottom-color: #fff;
	text-decoration: none;
	outline: none;
}

.dcv-rows a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Bottom bar ---------------------------------------------------- */

.dcv-footer__bottom {
	background: var(--f-deep);
	border-top: 1px solid var(--f-line);
}

.dcv-footer__bottomrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.dcv-footer__copy,
.dcv-footer__credit {
	margin: 0;
	color: rgba(255, 255, 255, .68);
	font-family: var(--font-rajdhani), var(--font-solaiman-lipi);
	font-size: 14px;
	line-height: 1.6;
}

.dcv-footer__copy a,
.dcv-footer__credit a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .35);
	transition: color .22s ease, border-color .22s ease;
}

.dcv-footer__copy a:hover,
.dcv-footer__credit a:hover,
.dcv-footer__copy a:focus-visible,
.dcv-footer__credit a:focus-visible {
	color: var(--f-gold);
	border-bottom-color: var(--f-gold);
	outline: none;
}

/* ==========================================================================
   Back to top
   main.js fades .scrollToTop in past 100px, so it starts hidden.
   ========================================================================== */

.dcv-totop {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #fff;
	background: var(--f-base, #0f2c52);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 10px 24px rgba(16, 32, 58, .28);
	cursor: pointer;
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.dcv-totop i {
	font-size: 18px;
	line-height: 1;
}

.dcv-totop:hover,
.dcv-totop:focus-visible {
	background: var(--f-accent, #c8102e);
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(16, 32, 58, .34);
	outline: none;
}

.dcv-totop:focus-visible {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--f-accent, #c8102e);
}

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

@media (max-width: 991.98px) {
	.dcv-footer__body {
		padding-top: 38px;
		padding-bottom: 34px;
	}

	.dcv-footer__tagline {
		max-width: none;
	}
}

@media (max-width: 767.98px) {
	.dcv-footer__bottomrow {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.dcv-footer__logo {
		padding: 8px 14px;
	}

	.dcv-footer__logo img {
		max-width: 180px;
		max-height: 46px;
	}

	.dcv-totop {
		right: 16px;
		bottom: 16px;
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcv-footer * {
		transition-duration: .01ms !important;
	}
}