/*
 * DokterIN footer styling for the Site Builder footers (Templates > Footer,
 * posts: "Footer - Indonesia" / "Footer - English", linked as Polylang
 * translations).
 *
 * The Elementor widgets in those templates hold content only (text, links,
 * images, icons) plus a stable "dokterin-footer-*" CSS class - they have no
 * style settings of their own. ALL footer styling lives here, in the child
 * theme, rather than in Elementor's generated uploads/elementor/css/post-*.css.
 * Selectors never use Elementor's auto-generated element IDs, so both
 * language variants (and any rebuild) share the same rules.
 */

.dokterin-footer {
	--dokterin-footer-text: #3d3d3d;
	--dokterin-footer-title: #1f1f1f;
	--dokterin-footer-pink: #df1683;
	--dokterin-footer-blue: #1a75bb;

	font-family: "Plus Jakarta Sans", sans-serif;
	letter-spacing: 0;
}

.dokterin-footer p,
.dokterin-footer .elementor-heading-title,
.dokterin-footer .elementor-icon-list-text {
	font-family: "Plus Jakarta Sans", sans-serif;
	letter-spacing: 0;
}

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.elementor-section.elementor-section-boxed.dokterin-footer > .elementor-container {
	max-width: 1868px;
}

/* Elementor's gradient control only has two colour stops; the design
 * fades pink -> near-white -> light blue. */
.elementor-section.dokterin-footer-main {
	background: linear-gradient( 90deg, #ffb3e2 0%, #fdf2f8 50%, #8cc5ed 100% );
	padding: 35px 14px;
}

.elementor-column.dokterin-footer-col-brand,
.elementor-column.dokterin-footer-col-company {
	width: 28.571%;
}

.elementor-column.dokterin-footer-col-services,
.elementor-column.dokterin-footer-col-collab {
	width: 21.428%;
}

.elementor-column.dokterin-footer-col > .elementor-widget-wrap {
	padding: 0 20px;
	align-content: flex-start;
}

/* The kit adds 20px below every widget; spacing here is set per widget.
 * The per-widget margin rules below use the same specificity
 * (.dokterin-footer .elementor-widget.*) and come later, so they win. */
.dokterin-footer .elementor-widget:not( :last-child ) {
	margin-block-end: 0;
}

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

.dokterin-footer .dokterin-footer-logo {
	text-align: left;
}

/* Elementor forces linked SVG images to 48px wide
 * (.elementor-widget-image a img[src$=".svg"]) - outrank it. */
.elementor-section.dokterin-footer .elementor-widget.dokterin-footer-logo img {
	width: 200px;
	max-width: 100%;
	height: auto;
}

.dokterin-footer .elementor-widget.dokterin-footer-company {
	margin: 16px 0;
}

.dokterin-footer p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var( --dokterin-footer-text );
}

/* ------------------------------------------------------------------ */
/* Headings                                                            */
/* ------------------------------------------------------------------ */

.dokterin-footer .elementor-widget.dokterin-footer-title {
	margin-block-end: 12px;
}

.dokterin-footer .dokterin-footer-title .elementor-heading-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: var( --dokterin-footer-title );
}

.dokterin-footer .elementor-widget.dokterin-footer-title-spaced {
	margin-block-start: 32px;
}

/* ------------------------------------------------------------------ */
/* Icon lists (contact details + link columns)                         */
/* ------------------------------------------------------------------ */

.dokterin-footer .elementor-icon-list-items:not( .elementor-inline-items ) .elementor-icon-list-item:not( :last-child ) {
	padding-block-end: 0;
}

.dokterin-footer .dokterin-footer-links .elementor-icon-list-items:not( .elementor-inline-items ) .elementor-icon-list-item:not( :first-child ) {
	margin-block-start: 6px;
}

.dokterin-footer .dokterin-footer-contact .elementor-icon-list-items:not( .elementor-inline-items ) .elementor-icon-list-item:not( :first-child ) {
	margin-block-start: 8px;
}

.dokterin-footer .elementor-icon-list-text {
	font-size: 16px;
	line-height: 1.5;
	color: var( --dokterin-footer-text );
	transition: color 0.2s ease;
}

.dokterin-footer .elementor-icon-list-item > a:hover .elementor-icon-list-text {
	color: var( --dokterin-footer-pink );
}

/* The address item wraps onto several lines - keep its pin icon aligned to
 * the first line instead of vertically centred. */
.dokterin-footer .dokterin-footer-contact .elementor-icon-list-item,
.dokterin-footer .dokterin-footer-contact .elementor-icon-list-item > a {
	align-items: flex-start;
}

/* Elementor always emits its own default icon size / social grid variables
 * on the element itself (.elementor-76 .elementor-element.elementor-element-*),
 * so these two need that same level of specificity to win. */
.elementor-section.dokterin-footer .elementor-element.dokterin-footer-contact {
	--e-icon-list-icon-size: 22px;
}

.dokterin-footer .dokterin-footer-contact .elementor-icon-list-icon {
	padding-top: 1px;
}

.dokterin-footer .dokterin-footer-contact .elementor-icon-list-icon i {
	color: var( --dokterin-footer-pink );
	font-size: 22px;
}

.dokterin-footer .dokterin-footer-contact .elementor-icon-list-icon svg {
	fill: var( --dokterin-footer-pink );
	width: 22px;
	height: 22px;
}

.dokterin-footer .dokterin-footer-contact .elementor-icon-list-text {
	padding-inline-start: 14px;
}

/* ------------------------------------------------------------------ */
/* Social icons                                                        */
/* ------------------------------------------------------------------ */

.elementor-section.dokterin-footer .elementor-element.dokterin-footer-social {
	--icon-size: 24px;
	--icon-padding: 0.5em;
	--grid-column-gap: 16px;
	--grid-row-gap: 16px;
	--justify-content: flex-start;
	text-align: left;
}

.dokterin-footer .dokterin-footer-social .elementor-widget-container {
	text-align: left;
}

.dokterin-footer .dokterin-footer-social .elementor-social-icon {
	background-color: rgba( 26, 117, 187, 0.2 );
	transition: background-color 0.2s ease;
}

.dokterin-footer .dokterin-footer-social .elementor-social-icon i {
	color: var( --dokterin-footer-blue );
}

.dokterin-footer .dokterin-footer-social .elementor-social-icon svg {
	fill: var( --dokterin-footer-blue );
}

.dokterin-footer .dokterin-footer-social .elementor-social-icon:hover {
	background-color: var( --dokterin-footer-blue );
}

.dokterin-footer .dokterin-footer-social .elementor-social-icon:hover i {
	color: #fff;
}

.dokterin-footer .dokterin-footer-social .elementor-social-icon:hover svg {
	fill: #fff;
}

/* ------------------------------------------------------------------ */
/* App store badges (side by side)                                     */
/* ------------------------------------------------------------------ */

.dokterin-footer .elementor-widget.dokterin-footer-badge {
	width: auto;
	max-width: none;
	margin: 0 16px 12px 0;
}

.dokterin-footer .dokterin-footer-badge img {
	display: block;
	width: auto;
	height: 48px;
}

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

.elementor-section.dokterin-footer-bottom {
	background-color: var( --dokterin-footer-blue );
	padding: 8.5px 16px 8.5px 16px;
}

/* Same 20px inner gutter as the main columns, so the copyright text lines
 * up with the logo / right-hand column above it. */
.dokterin-footer-bottom .elementor-column > .elementor-widget-wrap {
	padding: 0 20px;
}

.dokterin-footer-bottom p {
	color: #fff;
}

.dokterin-footer-bottom-right p {
	text-align: right;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media ( max-width: 1024px ) {

	/* Four columns -> two per row on tablet. */
	.dokterin-footer-main > .elementor-container {
		flex-wrap: wrap;
		row-gap: 40px;
	}

	.elementor-column.dokterin-footer-col-brand,
	.elementor-column.dokterin-footer-col-services,
	.elementor-column.dokterin-footer-col-collab,
	.elementor-column.dokterin-footer-col-company {
		width: 50%;
	}

	.dokterin-footer .dokterin-footer-badge img {
		height: 40px;
	}
}

@media ( max-width: 767px ) {

	.dokterin-footer-main > .elementor-container {
		row-gap: 32px;
	}

	.elementor-column.dokterin-footer-col-brand,
	.elementor-column.dokterin-footer-col-services,
	.elementor-column.dokterin-footer-col-collab,
	.elementor-column.dokterin-footer-col-company {
		width: 100%;
	}

	/* Copyright bar stays a single two-column row on phones. */
	.dokterin-footer-bottom .elementor-column {
		width: 50%;
	}
}
