/*
Theme Name:  Brivona Child Theme
Description: Child theme for the Brivona theme
Author:      ThemetechMount
Author URI:  https://www.themetechmount.com/
Template:    brivona
Version:     0.1
Tags:        light, white, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, responsive, retina
*/


/* NOTE: Main theme's style.css file is already added in head tag. */

/* -------------------------------------------------------------
 * Clinic map tabs (Elementor "Tabs" widget, CSS class
 * "alwadani-clinic-tabs"). Matches the old WPBakery tabs: dark
 * buttons, theme green when active, no borders around content.
 * ------------------------------------------------------------- */
.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tabs-wrapper {
	justify-content: center;
}
.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tab-title,
.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tab-mobile-title {
	background-color: #033b4a;
	border: 1px solid #033b4a !important;
	color: #fff !important;
	font-size: 18px;
	font-weight: 400;
	line-height: 25px;
	padding: 14px 20px;
	margin-inline-start: 1px;
}
.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tab-title.elementor-active,
.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tab-mobile-title.elementor-active {
	background-color: #4aad72;
	border-color: #4aad72 !important;
}
.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tab-title::before,
.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tab-title::after {
	display: none;
}
.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tab-content {
	border: 0 !important;
	padding: 15px 0 16px;
}
.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tab-content iframe {
	display: block;
	width: 100%;
}

/* -------------------------------------------------------------
 * Brivona's responsive.min.css forces Elementor column padding with
 * !important below 1200px (15px on columns, 0 on inner "no gap"
 * columns), which overrides the paddings set in Elementor. These
 * classes (Elementor > Advanced > CSS Classes) restore them.
 * ------------------------------------------------------------- */

/* Full-width wrapper column (booking page): no padding while the 1140px
 * container frames it, 15px sides below 1025px like a WPBakery column. */
body .elementor-section .elementor-container .elementor-column.alw-pad-0.alw-pad-0 > .elementor-widget-wrap {
	padding: 0 !important;
}
@media (max-width: 1024px) {
	body .elementor-section .elementor-container .elementor-column.alw-pad-0.alw-pad-0 > .elementor-widget-wrap {
		padding: 0 15px !important;
	}
}

/* Booking form column: 50/70/58 desktop, 40px sides tablet, 15px mobile. */
body .elementor-section .elementor-container .elementor-column.alw-booking-formcol.alw-booking-formcol > .elementor-widget-wrap {
	padding: 50px 70px 58px !important;
}
@media (max-width: 1024px) {
	body .elementor-section .elementor-container .elementor-column.alw-booking-formcol.alw-booking-formcol > .elementor-widget-wrap {
		padding: 50px 40px 58px !important;
	}
}
@media (max-width: 767px) {
	body .elementor-section .elementor-container .elementor-column.alw-booking-formcol.alw-booking-formcol > .elementor-widget-wrap {
		padding: 50px 15px 58px !important;
	}
}

/* -------------------------------------------------------------
 * Shared classes for pages rebuilt from WPBakery
 * (database/elementor-pages/*.php).
 * ------------------------------------------------------------- */

/* WPBakery column gutters: 15px sides on every device (top/bottom come
 * from the Elementor column padding setting). */
body .elementor-section .elementor-container .elementor-column.alw-vc-col.alw-vc-col > .elementor-widget-wrap {
	padding-left: 15px !important;
	padding-right: 15px !important;
}

/* tm-custom-heading h2: 35px / 40px, theme colour. */
.elementor-widget-heading.alw-h2:not([class*="alw-tag-"]) .elementor-heading-title,
.elementor-widget-heading.alw-h2.alw-tag-h2 .elementor-heading-title {
	font-size: 35px;
	line-height: 40px;
	font-weight: 400;
	color: #033b4a;
}

/* WPBakery "arrow" toggles: title + chevron, thin line under each item. */
.elementor-widget-toggle.alw-toggle .elementor-toggle-item {
	border-bottom: 1px solid #eaeaea;
	padding-bottom: 22px;
	margin-bottom: 22px;
}
.elementor-widget-toggle.alw-toggle .elementor-tab-title {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	border: 0 !important;
	/* WPBakery keeps 50px on the left of the title text (arrow included);
	 * Elementor's arrow already takes 28px of it inline. */
	padding: 0 0 0 22px;
	font-size: 18px;
	line-height: 30px;
	font-weight: 400;
}
.elementor-widget-toggle.alw-toggle .elementor-tab-title .elementor-toggle-title {
	order: 0;
	color: #033b4a;
}
.elementor-widget-toggle.alw-toggle .elementor-tab-title .elementor-toggle-icon {
	order: 1;
	float: none;
	width: 22px;
	color: #9dabaf;
	text-align: center;
}
.elementor-widget-toggle.alw-toggle .elementor-tab-title .elementor-toggle-icon i,
.elementor-widget-toggle.alw-toggle .elementor-tab-title .elementor-toggle-icon svg {
	color: #9dabaf;
	fill: #9dabaf;
}
.elementor-widget-toggle.alw-toggle .elementor-tab-content {
	border: 0 !important;
	margin-top: 15px;
	padding: 0 0 0 50px;
	color: #9dabaf;
	font-size: 15px;
	line-height: 25px;
}

/* WPBakery row: -15px side margins so columns line up with the old layout. */
.elementor-section.alw-vc-row {
	margin-left: -15px;
	margin-right: -15px;
	width: auto;
}
.elementor-section.alw-vc-row > .elementor-container {
	max-width: none;
}


/* Brivona pulls the first Elementor top section up 83px; WPBakery rows did
 * not. (Its 92px/80px section padding is overridden by an explicit 0
 * padding setting on each section.) */
body .elementor-section.elementor-top-section.alw-vc-row:first-child {
	margin-top: 0;
}

/* WPBakery element spacing inside .alw-vc-col columns (replaces Elementor's
 * widget gap): headings 15px, text blocks and images 35px (last paragraph
 * flush), toggles use their own 22px item spacing, spacers none. */
.alw-vc-col > .elementor-widget-wrap {
	gap: 0;
}
.alw-vc-col > .elementor-widget-wrap > .elementor-widget {
	margin-bottom: 0;
}
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-heading {
	margin-bottom: 15px;
}
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title {
	margin: 0;
}
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-text-editor,
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-image,
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-divider {
	margin-bottom: 35px;
}
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-text-editor p:last-child,
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-text-editor ul:last-child {
	margin-bottom: 0;
}

/* Clinic map tabs on mobile (Elementor shows them as an accordion):
 * matches WPBakery's mobile panels - centred 16px/500 buttons, 46px tall,
 * 1px apart, map 16px below its button. */
@media (max-width: 767px) {
	.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tab-mobile-title {
		font-size: 16px;
		font-weight: 500;
		line-height: 16px;
		padding: 14px 20px;
		text-align: center;
		margin: 0 0 1px;
	}
	.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tab-content {
		padding: 16px 0 16px;
	}
}

/* WPBakery [tm-heading] (Elementor "tm_heading" with .alw-tm-heading):
 * heading 5px + description 6px apart, 40px below the box. */
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-tm_heading.alw-tm-heading {
	margin-bottom: 40px;
}
.elementor-widget-tm_heading.alw-tm-heading .tm-element-content-heading {
	margin-bottom: 11px;
}
/* In WPBakery the last element's bottom margin collapsed into the 40px. */
.elementor-widget-tm_heading.alw-tm-heading .tm-element-content-desctxt > :last-child {
	margin-bottom: 0;
}

/* Centered [tm-heading] description: 65% wide, 90% below 992px, full
 * width below 768px (Brivona's WPBakery rules). With a separator the
 * description follows the heading 5px below. */
.elementor-widget-tm_heading.alw-tm-heading .center-align .tm-element-content-desctxt {
	width: 65%;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 991px) {
	.elementor-widget-tm_heading.alw-tm-heading .center-align .tm-element-content-desctxt { width: 90%; }
}
@media (max-width: 767px) {
	.elementor-widget-tm_heading.alw-tm-heading .center-align .tm-element-content-desctxt { width: 100%; }
}
.elementor-widget-tm_heading.alw-tm-heading .tm-seperator-solid .tm-element-content-heading {
	margin-bottom: 5px;
}

/* Clinic map tabs: wrap onto several rows when they do not fit (11 clinics
 * on the contact page), panel with WPBakery's 1px transparent border. */
.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tabs-wrapper {
	flex-wrap: wrap;
}
@media (min-width: 768px) {
	.elementor-widget-tabs.alwadani-clinic-tabs .elementor-tab-content {
		border: 1px solid transparent !important;
		padding: 14px 0;
	}
}

/* tm-custom-heading as h1: 40px / 45px. */
.elementor-widget-heading.alw-h2.alw-tag-h1 .elementor-heading-title {
	font-size: 40px;
	line-height: 45px;
	font-weight: 400;
	color: #033b4a;
}

/* [vc_btn] (Elementor Button + .alw-vc-btn-*): WPBakery "modern" button. */
.elementor-widget-button.alw-vc-btn .elementor-button.elementor-button {
	font-size: 14px;
	font-weight: 400;
	line-height: 26px;
	padding: 14px 20px;
	border: 1px solid transparent;
	border-radius: 5px;
	color: #fff;
}
.elementor-widget-button.alw-vc-btn-shape-round .elementor-button { border-radius: 2em; }
.elementor-widget-button.alw-vc-btn-shape-square .elementor-button { border-radius: 0; }
.elementor-widget-button.alw-vc-btn-style-modern .elementor-button {
	background-image: linear-gradient(to bottom, rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, .01) 100%);
	background-repeat: repeat-x;
}
.elementor-widget-button.alw-vc-btn-primary .elementor-button {
	background-color: #0088cc;
	border-color: #0088cc;
}
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-button.alw-vc-btn,
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-button.alw-tm-btn {
	margin-bottom: 21.74px;
}

/* [vc_video el_width="70" align="center"] */
.elementor-widget-wrap > .elementor-element.elementor-widget-video.alw-vc-video-70 { width: 70%; margin-left: auto; margin-right: auto; }
.elementor-widget-wrap > .elementor-element.elementor-widget-video.alw-vc-video-80 { width: 80%; margin-left: auto; margin-right: auto; }
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-video { margin-bottom: 35px; }

/* [vc_single_image style=...] */
.elementor-widget-image.alw-vc-box-rounded img { border-radius: 4px; }
.elementor-widget-image.alw-vc-box-border img {
	/* frame outside the picture, as WPBakery's wrapper did */
	box-sizing: content-box;
	max-width: calc(100% - 12px);
	padding: 6px;
	background-color: #ebebeb;
}
.elementor-widget-image.alw-vc-box-border.alw-border-white img { background-color: #fff; }

/* [vc_separator]: WPBakery's separator box is 1px tall; the line (any
 * thickness) is drawn 1px below its top and overflows the box. */
.elementor-widget-divider.alw-vc-separator .elementor-divider {
	height: 1px;
	padding: 0;
	overflow: visible;
	align-items: flex-start;
}
.elementor-widget-divider.alw-vc-separator .elementor-divider-separator {
	transform: translateY(1px);
}

/* WPBakery row with tm_shadow="yes". */
.elementor-section.alw-tm-shadow { box-shadow: 0 0 15px 0 rgba(41, 61, 88, .1); }

/* WPBakery rows on pages without a sidebar sat in the theme's .container
 * (1140px + 15px gutters, fluid below 1200px) with -15px row margins. Give
 * the rebuilt sections the same content width. */
body:not(.themetechmount-sidebar-true) .elementor-section.elementor-top-section.alw-vc-row {
	margin-left: 0;
	margin-right: 0;
}
body:not(.themetechmount-sidebar-true) .elementor-section.elementor-top-section.alw-vc-row > .elementor-container {
	max-width: 1170px;
}
@media (max-width: 1199px) {
	/* below 1200px the theme container is fluid */
	body:not(.themetechmount-sidebar-true) .elementor-section.elementor-top-section.alw-vc-row > .elementor-container { max-width: none; }
}
/* ...on pages without a sidebar the first WPBakery row sat 92px higher
 * (measured on "عن الودعاني"). */
body:not(.themetechmount-sidebar-true) .elementor-section.elementor-top-section.alw-vc-row:first-child {
	margin-top: -92px;
}

/* WPBakery row with a background colour (not stretched): a 1140px box. */
body:not(.themetechmount-sidebar-true) .elementor-section.alw-vc-row.alw-vc-row-boxed > .elementor-container {
	max-width: 1140px;
}

/* [tm-servicebox add_icon="without-icon"]: 20/28px heading (left), 5px,
 * then 15/25px text with 10px below. */
.elementor-widget-tm_heading.alw-servicebox-without-icon .tm-element-content-heading {
	font-size: 20px;
	line-height: 28px;
	margin-bottom: 5px;
	text-align: left;
}
.elementor-widget-tm_heading.alw-servicebox-without-icon .tm-element-content-desctxt p:last-child {
	margin-bottom: 10px;
}

/* [tm-facts-in-digits]: the counter's 30px bottom margin collapses away in
 * WPBakery's stacked layout below 992px; drop it there too. */
@media (max-width: 991px) {
	.elementor-widget-tm_fid_element.alw-tm-fid .tm-fid { margin-bottom: 0; }
}

/* Empty background-image column (Brivona's tm-equal-height-image): the
 * image replaces the background below 992px. */
.elementor-widget-image.alw-eq-height-image { display: none; }
@media (max-width: 991px) {
	.elementor-widget-image.alw-eq-height-image { display: block; margin-bottom: 0 !important; }
	.elementor-widget-image.alw-eq-height-image img { width: 100%; }
	.elementor-column:has(> .elementor-widget-wrap > .alw-eq-height-image) > .elementor-widget-wrap { background-image: none !important; }
	/* inside inner rows the image spans the whole column (no gutters) */
	.elementor-inner-section .elementor-widget-wrap > .elementor-element.alw-eq-height-image {
		width: calc(100% + 30px);
		margin-left: -15px;
		margin-right: -15px;
	}
}

/* [tm-btn] size md (Elementor Button + .alw-tm-btn): 13px text,
 * 13px 30px padding, 1px border, 53px tall; with an icon the icon side
 * gets 50px (WPBakery's tm-vc_btn3-icon-left). */
.elementor-widget-button.alw-tm-btn .elementor-button.elementor-button {
	font-size: 13px;
	line-height: normal;
	padding: 13px 30px;
	border-width: 1px;
	border-style: solid;
}
.elementor-widget-button.alw-tm-btn .elementor-button.elementor-button:has(.elementor-button-icon) {
	padding-inline-start: 50px;
	position: relative;
}
.elementor-widget-button.alw-tm-btn .elementor-button .elementor-button-icon {
	position: absolute;
	inset-inline-start: 25px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
}
.elementor-widget-button.alw-tm-btn.tm-btn-style-flat .elementor-button.elementor-button { border-color: transparent; }
.elementor-widget-button.alw-tm-btn.tm-btn-style-outline.tm-btn-color-black .elementor-button.elementor-button {
	color: #033b4a;
	border-color: #033b4a;
	background-color: transparent;
}

/* Inner WPBakery rows (vc_row_inner): -15px margins on both sides, so the
 * section is 30px wider than its column (Elementor sets width:100%). */
.elementor-widget-wrap > .elementor-element.elementor-inner-section.alw-vc-row {
	width: calc(100% + 30px);
	max-width: none;
}

/* [tm-testimonialbox]: the WPBakery version's box row has no -15px
 * gutters. */
.elementor-widget-tm_testimonial_element.alw-tm-testimonial .themetechmount-boxes-row-wrapper {
	margin-left: 0;
	margin-right: 0;
}
.elementor-widget-tm_testimonial_element.alw-tm-testimonial .themetechmount-boxes-view-slickview .themetechmount-box-heading-wrapper:not(.tm-boxwithout-heading) {
	margin-bottom: 36px;   /* heading block 78px tall as in WPBakery */
}
.elementor-widget-tm_heading.alw-servicebox-without-icon > .elementor-widget-container {
	padding-right: 15px;   /* WPBakery service box is 15px narrower on the right */
}

/* tm-custom-heading as h3 / h4: Brivona's 30/35px and 25/30px. */
.elementor-widget-heading.alw-h2.alw-tag-h3 .elementor-heading-title {
	font-size: 30px; line-height: 35px; font-weight: 400; color: #033b4a;
}
.elementor-widget-heading.alw-h2.alw-tag-h4 .elementor-heading-title {
	font-size: 25px; line-height: 30px; font-weight: 400; color: #033b4a;
}

/* [vc_single_image style="vc_box_shadow" / "vc_box_shadow_border"]:
 * soft shadow on the picture; the border variant adds a 6px frame. */
.elementor-widget-image.alw-vc-box-shadow img,
.elementor-widget-image.alw-vc-box-shadow-border img {
	box-shadow: 0 0 5px rgba(0, 0, 0, .1);
}
.elementor-widget-image.alw-vc-box-shadow-border img {
	box-sizing: content-box;
	max-width: calc(100% - 12px);
	padding: 6px;
}
/* tm-custom-heading as h5 / h6: Brivona's 20/30 and 15/20. */
.elementor-widget-heading.alw-h2.alw-tag-h5 .elementor-heading-title {
	font-size: 20px; line-height: 30px; font-weight: 400; color: #033b4a;
}
.elementor-widget-heading.alw-h2.alw-tag-h6 .elementor-heading-title {
	font-size: 15px; line-height: 20px; font-weight: 400; color: #033b4a;
}

/* A text block's first element (often a list with a 16px top margin)
 * collapsed into the previous element's margin in WPBakery. */
.alw-vc-col > .elementor-widget-wrap > .elementor-widget + .elementor-widget-text-editor > .elementor-widget-container > :first-child {
	margin-top: 0;   /* only when something precedes it in the column */
}
/* tm-custom-heading as div: body text size, no gap below. */
.elementor-widget-heading.alw-h2.alw-tag-div .elementor-heading-title {
	font-size: 15px; line-height: 25px; font-weight: 400;
}
.alw-vc-col > .elementor-widget-wrap > .elementor-widget-heading.alw-tag-div {
	margin-bottom: 0;
}

/* Video/image strip (replaces the Ultimate Carousel add-on): swipeable,
 * N items per view (4 desktop, 2 tablet, 1 phone), each links out. */
.alw-carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--alw-visible) - 1) * var(--alw-gap)) / var(--alw-visible));
	gap: var(--alw-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: 6px;
}
.alw-carousel-item { scroll-snap-align: start; }
.alw-carousel-item img { display: block; width: 100%; height: 342px; object-fit: cover; }
@media (max-width: 1024px) {
	.alw-carousel { grid-auto-columns: calc((100% - (var(--alw-visible-tablet) - 1) * var(--alw-gap)) / var(--alw-visible-tablet)); }
}
@media (max-width: 767px) {
	.alw-carousel { grid-auto-columns: 100%; }
	.alw-carousel-item img { height: auto; }
}

/* [tm-list]: theme list look (15/25px text, skin-colour icons). */
.elementor-widget-icon-list.alw-tm-list .elementor-icon-list-item {
	font-size: 15px;
	line-height: 25px;
	padding-bottom: 7px;
}
/* ul.tm-list keeps the browser's 1em list margins */
.elementor-widget-icon-list.alw-tm-list .elementor-icon-list-items { margin: 16px 0 !important; }
.elementor-widget-icon-list.alw-tm-list .elementor-icon-list-icon i { color: #4aad72; font-size: 15px; }
.elementor-widget-icon-list.alw-tm-list.alw-textcolor-black .elementor-icon-list-text { color: #033b4a; }

/* WPBakery rows wrap columns onto new lines when their widths add up to
 * more than 100% (e.g. 12 columns of 3/12); Elementor squeezes them. */
.elementor-section.alw-vc-row > .elementor-container {
	flex-wrap: wrap;
}

/* Rows with a dark or skin-colour background: white headings, as on the
 * WPBakery pages (Elementor's theme widgets keep the dark heading colour). */
.elementor-section.alw-vc-row.tm-bgcolor-darkgrey :is(.elementor-heading-title, .tm-element-content-heading, .tm-element-content-subheading, h1, h2, h3, h4, h5, h6),
.elementor-section.alw-vc-row.tm-bgcolor-skincolor :is(.elementor-heading-title, .tm-element-content-heading, .tm-element-content-subheading, h1, h2, h3, h4, h5, h6) {
	color: #fff;
}
.elementor-section.alw-vc-row.tm-bgcolor-skincolor .tm-element-content-desctxt,
.elementor-section.alw-vc-row.tm-bgcolor-darkgrey .tm-element-content-desctxt {
	color: rgba(255, 255, 255, .8);
}

/* Icons copied from WPBakery use Font Awesome 4 classes ("fa fa-…").
 * Elementor's Font Awesome 5 CSS takes over ".fa", which hides brand icons
 * such as WhatsApp; keep the theme's Font Awesome 4 font for them. */
.elementor-widget i.fa {
	font-family: FontAwesome !important;
	font-weight: normal;
}

/* WPBakery rows whose columns wrap onto several lines (e.g. 12 x 3/12):
 * lines fill left-to-right like WPBakery's floats, see vc-map.php. */
.elementor-section.alw-ltr-wrap > .elementor-container {
	flex-direction: row-reverse;
}
.elementor-section.alw-vc-row.tm-bgcolor-skincolor .themetechmount-iconbox-desc,
.elementor-section.alw-vc-row.tm-bgcolor-skincolor .themetechmount-iconbox-desc p,
.elementor-section.alw-vc-row.tm-bgcolor-darkgrey .themetechmount-iconbox-desc p {
	color: rgba(255, 255, 255, .85);
}

/* Columns with a dark or skin-colour background: white text. */
.elementor-column:is(.alw-col-bg-skincolor, .alw-col-bg-darkgrey) :is(.elementor-heading-title, .tm-element-content-heading, .tm-element-content-subheading, h1, h2, h3, h4, h5, h6, .themetechmount-box-title, .themetechmount-testimonial-text, blockquote, p, .themetechmount-box-footer) {
	color: #fff;
}

/* Theme carousels (slick) in Elementor widgets start without RTL mode, so
 * the track must be laid out LTR; slide contents stay RTL. */
.elementor-widget-tm_testimonial_element .themetechmount-boxes-view-carousel .slick-slider,
.elementor-widget-tm_testimonial_element .themetechmount-boxes-view-carousel .slick-list,
.elementor-widget-tm_blog_element .themetechmount-boxes-view-carousel .slick-list {
	direction: ltr;
}
.elementor-widget-tm_testimonial_element .themetechmount-boxes-view-carousel .slick-slide,
.elementor-widget-tm_blog_element .themetechmount-boxes-view-carousel .slick-slide {
	direction: rtl;
}

/* ---------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------- */

/* Contact bar (phone / email / hours): Brivona puts the gap between the
 * icon and the text on the LTR side, so in RTL the text touched the icon. */
.first-footer .tm-vc_cta3-icons { padding: 0 0 0 15px !important; }
.first-footer .tm-vc_cta3_content-container { padding: 0 !important; }
.first-footer .tm-vc_cta3-content-header :is(h2, h4) { word-break: break-word; }

/* Social icons start on the same (right) side as the text above them. */
footer .themetechmount-social-links-wrapper ul.social-icons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; padding: 0; }
footer .themetechmount-social-links-wrapper ul.social-icons li { float: none; margin: 0; }

/* Disclaimer line was 8px (inline style from Theme Options). */
.tm-footer2-left span[style*="font-size"] { font-size: 12px !important; line-height: 1.7; }

/* Menu links: the dash sat on the LTR side (after the text in RTL). */
.second-footer .widget_nav_menu li a { padding: 0 21px 0 0 !important; }
.second-footer .widget_nav_menu li a::before { left: auto !important; right: 0 !important; }

@media (max-width: 767px) {
	/* Contact bar: compact rows, icon at the start (right) of each. */
	.first-footer .first-footer-inner { padding: 24px 0 8px; }
	.first-footer .widget-area { margin-bottom: 14px; }
	.first-footer .widget { margin-bottom: 0 !important; }
	.first-footer .tm-vc_cta3 { max-width: none; margin: 0; padding: 0 !important; }
	.first-footer .tm-vc_cta3 .tm-vc_icon_element .tm-vc_icon_element-inner { width: 46px !important; height: 46px !important; line-height: 46px !important; }
	.first-footer .tm-vc_cta3 .tm-vc_icon_element-inner .tm-vc_icon_element-icon { font-size: 18px !important; }
	.first-footer .tm-vc_cta3-content-header h2 { font-size: 18px !important; line-height: 24px !important; }
	.first-footer .tm-vc_cta3-content-header h4 { font-size: 13px !important; line-height: 20px !important; }

	/* Widgets: the two link lists side by side, news and "about" full
	 * width below them (was four stacked blocks, ~1400px). */
	.second-footer .second-footer-inner { padding: 30px 0 6px; }
	.second-footer .row { display: flex; flex-wrap: wrap; }
	.second-footer .row::before, .second-footer .row::after { content: none; }
	.second-footer .widget-area { width: 100%; float: none; margin-bottom: 26px; }
	.second-footer .widget-area:has(.widget_nav_menu) { width: 50%; }
	.second-footer .widget-area:has(.widget_nav_menu):first-child { order: 1; width: 56%; }   /* longer service names */
	.second-footer .widget-area:has(.widget_nav_menu):not(:first-child) { order: 2; width: 44%; }
	.second-footer .widget-area:has(.themetechmount_widget_recent_entries) { order: 3; }
	.second-footer .widget-area:has(.enhanced-text-widget) { order: 4; margin-bottom: 10px; }
	.second-footer .widget { margin-bottom: 0; }
	.second-footer .widget-title { font-size: 20px !important; line-height: 28px !important; margin-bottom: 14px !important; }
	.second-footer .widget_nav_menu li { padding-bottom: 8px !important; line-height: 22px; }
	.second-footer .widget_nav_menu li, .second-footer .widget_nav_menu li a { font-size: 14px !important; }
	.second-footer .widget_nav_menu li a { padding-right: 16px !important; }
	.second-footer .widget_nav_menu li a::before { width: 8px !important; top: 11px !important; }
	.second-footer .tm-recent-post-list-li { padding: 4px 0 12px !important; }
	.second-footer .enhanced-text-widget .textwidget { font-size: 14px; line-height: 24px; }
	.second-footer .themetechmount-social-links-wrapper { margin-top: 16px; }
}

@media (max-width: 360px) {
	/* Smallest phones: keep each footer link on one line. */
	.second-footer .widget_nav_menu li, .second-footer .widget_nav_menu li a { font-size: 13px !important; }
	.second-footer .widget-area:has(.widget_nav_menu) { padding-left: 8px; padding-right: 8px; }
	.second-footer .widget_nav_menu li a { padding-right: 13px !important; }
}

@media (min-width: 768px) and (max-width: 991px) {
	/* Contact bar: Brivona makes the three items half width here, so the
	 * third dropped to its own row. Three columns, icon above the text. */
	.first-footer .widget-area { width: 33.3333% !important; }
	.first-footer .tm-vc_cta3 { padding: 0 !important; }
	.first-footer .tm-vc_cta3 :is(.tm-vc_cta3-icons, .tm-vc_cta3_content-container) { display: block !important; width: auto; padding: 0 !important; text-align: center; }
	.first-footer .tm-vc_cta3-icons { margin-bottom: 12px; }
	.first-footer .tm-vc_cta3-icons .tm-vc_icon_element { float: none; display: inline-block; }
	.first-footer .tm-vc_cta3-content-header :is(h2, h4) { text-align: center; }
}

@media (max-width: 991px) {
	/* Bottom bar: keep the last line clear of the back-to-top button. */
	.bottom-footer-text { padding-bottom: 75px; }
	.bottom-footer-text .tm-footer2-left { text-align: center; }
}

/* ---------------------------------------------------------------------
 * Mobile: rows of many service boxes (the WhatsApp numbers of the
 * branches: 12 boxes, one per row, made a ~3100px strip). Two per row.
 * ------------------------------------------------------------------- */
@media (max-width: 767px) {
	/* Theme gives icon boxes 50/43/32/37px padding: too much on a phone. */
	.alw-tm-servicebox .tm-iconbox-wrapper { padding: 28px 15px 22px !important; }

	.elementor-inner-section:has(> .elementor-container > .elementor-column:nth-child(4) .alw-servicebox-top-center) > .elementor-container > .elementor-column {
		width: 50% !important;
	}
	.elementor-inner-section:has(> .elementor-container > .elementor-column:nth-child(4) .alw-servicebox-top-center) .tm-iconbox-wrapper {
		padding: 22px 6px 14px !important;
	}
	.elementor-inner-section:has(> .elementor-container > .elementor-column:nth-child(4) .alw-servicebox-top-center) .elementor-widget-wrap {
		padding: 0 5px !important;
	}
	.elementor-inner-section:has(> .elementor-container > .elementor-column:nth-child(4) .alw-servicebox-top-center) .tm-element-content-heading {
		font-size: 19px !important;
		line-height: 26px !important;
	}
	.elementor-inner-section:has(> .elementor-container > .elementor-column:nth-child(4) .alw-servicebox-top-center) .themetechmount-iconbox-icon {
		padding-bottom: 10px !important;
	}
}
