/* ==========================================================================
   AN Global – Site Fixes
   Overrides only. No theme or plugin files are edited.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Phase 1 · 2.1 Footer overlap
   Finbuzz footer-8 pulls the footer up 320px over the page (meant for the
   home page blog cards). Turn it off on every page except the home page.
   Mobile (<768px) is already 0 in the theme.
   -------------------------------------------------------------------------- */
body:not(.home) #footer-8 .footer-top {
	margin-top: 0;
	padding-top: 90px;
}

/* --------------------------------------------------------------------------
   Phase 2 · 2.3 One content width
   ≥1400px: header, banner, blog and footer use the theme container
   (Customizer → container width 1320, 12px padding → 1296px content), and
   Elementor's default boxed width is 1296px (Site Settings → Layout).
   1025–1399px: the theme mixes full-width header, 1170px banner/footer and
   100% containers. Give everything one 36px gutter instead.
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1399.98px) {
	#masthead .container,
	.entry-banner > .container,
	#primary > .container,
	#footer .container {
		max-width: calc(100% - 48px) !important;
	}
	.elementor > .elementor-section.elementor-section-boxed > .elementor-container,
	.elementor-section-wrap > .elementor-section.elementor-section-boxed > .elementor-container {
		max-width: calc(100% - 72px);
	}
}

/* Top bar: keep each item on one line (it wrapped to two rows on laptops). */
@media (min-width: 1025px) {
	#tophead .header-item,
	#tophead .header-item a,
	#tophead .topbar-social { white-space: nowrap; }
	#tophead .topbar-right ul { display: flex; flex-wrap: nowrap; }
}
@media (min-width: 1025px) and (max-width: 1199.98px) {
	#tophead .header-phone > span { display: none; } /* "Call us:" label – number stays */
}

/* ==========================================================================
   Phase 3 · Components
   ========================================================================== */

/* 2.5 Headings: one navy (#10367D). The theme sets h1–h6 to #000; navy becomes
   the default. Widgets that set their own colour (e.g. white on dark bands) still win. */
h1, h2, h3, h4, h5, h6 { color: #10367D; }
.sidebar-widget-area .widget h3.widgettitle,
.widget .widgettitle,
.rt-single-content h2, .rt-single-content h3, .rt-single-content h4, .rt-single-content h5,
.comment-respond .comment-reply-title,
.post-grid-style2 .entry-title a { color: #10367D; }

/* Linked titles (blog cards, Insights list, sidebar posts, team names) were #111. Hover colours still apply. */
body .post-default .post-grid-item .entry-content h3 a,
body .rt_widget_recent_entries_with_image .topic-box .widget-recent-post-title a,
body.blog .entry-content h3 a, body.single-post .entry-content h3 a,
body.category .entry-content h3 a, body.archive .entry-content h3 a,
body .elementor-widget-rt-team h3 a,
body.single-post .site-content :is(h3, h4, h5) a:not(:hover) { color: #10367D; }

/* Article headings were 36px black in a two-thirds column. */
.rt-single-content h2 { font-size: 30px; line-height: 38px; }
.rt-single-content h3 { font-size: 24px; line-height: 32px; }
@media (max-width: 767px) {
	.rt-single-content h2 { font-size: 24px; line-height: 32px; }
	.rt-single-content h3 { font-size: 20px; line-height: 28px; }
}

/* Eyebrow labels: ALL CAPS everywhere ("About AN Global", "Media Presence" were Title Case). */
.title-text-button .subtitle { text-transform: uppercase; }

/* Contact info cards: title line-height 44 → 26, equal heights. */
.contact-info-default .contact-title { line-height: 26px; }
.elementor-column:has(> .elementor-widget-wrap > .elementor-widget-rt-info:only-child) > .elementor-widget-wrap { align-content: stretch; align-items: stretch; }
.elementor-widget-rt-info > .elementor-widget-container,
.elementor-widget-rt-info .contact-info-default,
.elementor-widget-rt-info .contact-info { height: 100%; }

/* 2.9 / About: division cards – content fills the card, button pinned to the bottom. */
.info-style9 .info-item .info-content {
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 48px 32px;
}
.info-style9 .info-item .info-content .info-title { margin-bottom: 24px; }
.info-style9 .info-item .info-content .info-text { margin-bottom: 24px; }
.info-style9 .info-item .info-content .info-button7 { margin-top: auto; }

/* Blog cards (Home, Businesses): equal height, 2-line titles, excerpt ends with "…". */
.post-grid-style2 .row > [class*="col-"] { display: flex; }
.post-grid-style2 .post-grid-item { display: flex; flex-direction: column; width: 100%; }
.post-grid-style2 .post-grid-item .entry-content { flex: 1 1 auto; }
.post-grid-style2 .entry-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.post-grid-style2 .entry-content > p::after { content: "\2026"; }

/* News: one image ratio + room for 2-line titles so cards end level. */
.elementor-8797 .elementor-widget-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.elementor-8797 .elementor-widget-heading .elementor-heading-title { min-height: 66px; }

/* Leadership: centre the last row of the management grid; advisors' photos one size. */
.elementor-widget-rt-team .row { justify-content: center; }
.elementor-7562 .elementor-element-309eba5 img,
.elementor-7562 .elementor-element-0d13a24 img,
.elementor-7562 .elementor-element-58ca81f img { width: 233px; aspect-ratio: 233 / 300; object-fit: cover; }

/* 2.6 Buttons: one radius (4px). Primary = solid orange, secondary = orange outline (btn-style8 already). */
.btn-style3 { border-radius: 4px !important; }
.btn-style9.btn1 { background-color: #F37021 !important; border-color: #F37021 !important; color: #fff !important; border-radius: 4px; }
.btn-style9.btn1:hover { background-color: #D95F14 !important; border-color: #D95F14 !important; }
.btn-style9.btn1 * { color: #fff !important; }

/* 2.8 Division logos: Desi Advisors is a two-line mark, the others one line – scale it down. */
.site-content img[src*="DesiAdvisors_New_Logo"] { transform: scale(.72); }

/* 2.8 Flags: white stripes vanished into the page. */
.elementor-image-carousel .swiper-slide-image { border: 1px solid #E5E7EB; }

/* 2.7 LeadConnector forms: reserve the height so no blank jump while the iframe loads. */
iframe[id^="inline-paUiZPDvx7RLpkOx"] { min-height: 941px; }
iframe[id^="inline-E8YybGxYyTWY47RP"] { min-height: 618px; }

/* ==========================================================================
   Phase 4 · Responsive
   ========================================================================== */

/* Footer email must not break mid-address ("info@anglobalholdings. / com"). */
@media (min-width: 768px) {
	#footer a[href^="mailto:"] { white-space: nowrap; }
}

/* ---- Tablet (768–1024) -------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
	/* Home division cards: 3 across instead of one card per row. */
	.elementor-element-46668939 > .elementor-container { flex-wrap: nowrap; }
	.elementor-element-46668939 > .elementor-container > .elementor-column { width: 33.333%; }
	.elementor-element-46668939 > .elementor-container > .elementor-column > .elementor-widget-wrap { margin: 0 !important; padding-left: 12px !important; padding-right: 12px !important; }

	/* Home hero text: tablet gutter (ran edge to edge). */
	.elementor-element-1f1ba286 .elementor-widget-rt-banner .container { padding-left: 32px; padding-right: 32px; }

	/* "Join Our Global Network" (Home, About, Businesses, Services): stack instead of two cramped columns. */
	.elementor-element-eac9d4a > .elementor-container,
	.elementor-element-c399ec4 > .elementor-container,
	.elementor-element-50f3145 > .elementor-container,
	.elementor-element-a83d83e > .elementor-container { flex-wrap: wrap; }
	.elementor-element-eac9d4a > .elementor-container > .elementor-column,
	.elementor-element-c399ec4 > .elementor-container > .elementor-column,
	.elementor-element-50f3145 > .elementor-container > .elementor-column,
	.elementor-element-a83d83e > .elementor-container > .elementor-column { width: 100%; }

	/* Theme widget rows (−12px sides) pushed cards past the screen edge → sideways scroll. */
	.elementor-top-section .elementor-widget .row { margin-left: 0; margin-right: 0; }
	#page { overflow-x: clip; }
}

/* ---- Phone (≤767) ------------------------------------------------------- */
@media (max-width: 767px) {
	/* One 20px gutter: on every Elementor section, the theme containers (banner, blog, footer)
	   and the mobile header. Column side padding is removed so text never sits at 0/10/42px –
	   except the Join cards, which have their own background. */
	.elementor > .elementor-top-section:not(.elementor-element-1f1ba286):not(.elementor-element-abfdcb4),
	.elementor-section-wrap > .elementor-top-section:not(.elementor-element-1f1ba286):not(.elementor-element-abfdcb4) { padding-left: 20px !important; padding-right: 20px !important; }
	/* Full-bleed bands (Home hero, Services CTA): background stays edge to edge, text gets the gutter. */
	.elementor-element-1f1ba286 .elementor-widget-rt-banner .container,
	.elementor-element-1f1ba286 .elementor-widget-rt-banner .row,
	.elementor-element-abfdcb4 .container { padding-left: 20px !important; padding-right: 20px !important; margin: 0; }
	.elementor-top-section > .elementor-container > .elementor-column:not(.elementor-element-efd056f):not(.elementor-element-a9bebaf):not(.elementor-element-d26ab2c):not(.elementor-element-3532408):not(.elementor-element-a4d80bc):not(.elementor-element-ea465fd):not(.elementor-element-f11ef18):not(.elementor-element-ff1ebb1) > .elementor-widget-wrap {
		padding-left: 0 !important; padding-right: 0 !important;
	}
	/* Theme widgets use Bootstrap rows (−12px sides) without a container → sideways scroll. */
	.elementor-top-section .elementor-widget .row { --bs-gutter-x: 0px; margin-left: 0; margin-right: 0; }

	/* Nested sections: same rule (only About's 0febddc column has its own background). */
	.elementor-inner-section > .elementor-container > .elementor-column:not(.elementor-element-0febddc) > .elementor-widget-wrap {
		padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important;
	}
	.elementor-top-section .elementor-inner-section { padding-left: 0 !important; padding-right: 0 !important; }

	.entry-banner > .container,
	#primary > .container,
	#footer .container { padding-left: 20px !important; padding-right: 20px !important; }

	/* Safety net for decorative shapes that bleed past the edge (clip keeps sticky header working). */
	#page { overflow-x: clip; }

	/* Hero + headings */
	.elementor-widget-rt-banner h1, .elementor-widget-rt-banner h2 { font-size: 30px !important; line-height: 38px !important; }
	.entry-banner h1 { font-size: 32px; line-height: 40px; }
	.title-text-button .section-title { font-size: 28px; line-height: 34px; }

	/* Header: phone + "Get Consulting" on one row (was 113px stacked), logo bar 20px gutter. */
	#mobile-top-fix { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; }
	#mobile-top-fix .header-top,
	#mobile-top-fix .header-button { margin: 0; }
	#mobile-top-fix .header-top { width: auto; }
	#mobile-top-fix .info-phone a { font-size: 14px; white-space: nowrap; }
	#mobile-top-fix .header-button a { padding: 6px 14px; font-size: 14px; white-space: nowrap; }
	.mobile-mene-bar .mean-bar { padding-left: 20px; padding-right: 20px; }

	/* Menu: full width + dark backdrop behind it (hero text showed through). */
	.rt-slide-nav { left: 0; right: 0; width: 100% !important; max-width: none !important; }
	.rt-slide-nav .offscreen-navigation .menu > li > a,
	.rt-slide-nav .offscreen-navigation .sub-menu a { padding-left: 20px; padding-right: 56px; }
	body.slidemenuon .rt-slide-nav { box-shadow: 0 0 0 100vmax rgba(3, 34, 75, .55); }

	/* Floating TOP button covered body text and duplicates the footer "Back to Top" link. */
	.scrollup { display: none !important; }
}

/* Banner decoration (.banner-element2, slides in from the right) poked 15–20px past the
   window on every width → sideways scroll. clip (not hidden) keeps the sticky header working. */
#page { overflow-x: clip; }

/* Home hero eyebrow: text is "Welcome to…"; a capitalize rule showed "Welcome To". */
.elementor-widget-rt-banner .subtitle { text-transform: none; }
@media (max-width: 767px) {
	.elementor-widget-rt-banner .subtitle { font-size: 16px !important; line-height: 24px !important; margin-bottom: 12px; }
}
