/* ATEC v1.4.7 — targeted RTL Contacts typography and restored Arabic footer layout.
   This stylesheet loads ONLY for ar-* Joomla pages. Never change English footer.
   The v1.4.6 26px flex gap made the three 33.333% columns wrap. */
@media (min-width: 761px) {
 html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-row {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;direction:rtl!important;align-items:start!important;
  justify-content:stretch!important;flex-wrap:nowrap!important;width:100%!important;
 }
 html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-row .tb-col {
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-width:0!important;flex:none!important;flex-basis:auto!important;
  margin:0!important;grid-row:auto!important;order:0!important;
 }
 html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-row .tb-col:nth-child(1){grid-column:1!important;}
 html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-row .tb-col:nth-child(2){grid-column:2!important;text-align:center!important;}
 html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-row .tb-col:nth-child(3){grid-column:3!important;}
}
/* Make all three editable footer columns legible; preserve the blue lines and social SVGs. */
html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer>.tb-container{
 width:min(calc(100% - 44px),1100px)!important;max-width:1100px!important;
 margin-inline:auto!important;
}
html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-col:first-child .tb-button-wrap .tb-button,
html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-col:first-child .tb-text a,
html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-col:last-child .tb-text,
html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-col:last-child .tb-text p{
 font-family:'Cairo',Tahoma,Arial,sans-serif!important;font-size:16px!important;
 font-weight:400!important;line-height:1.85!important;letter-spacing:0!important;
}
html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-col .tb-heading {
 font-family:'Cairo',Tahoma,Arial,sans-serif!important;font-size:24px!important;
 font-weight:400!important;line-height:1.6!important;letter-spacing:0!important;
}
html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-col:nth-child(2) .tb-text,
html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-col:nth-child(2) .tb-text p {
 font-family:'Cairo',Tahoma,Arial,sans-serif!important;font-size:16px!important;line-height:1.85!important;
 font-weight:400!important;text-align:center!important;
}
html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-col:nth-child(2) .tb-image img{
 width:194px!important;height:180px!important;max-width:100%!important;object-fit:contain!important;
}
/* Arabic Contacts: the older v1.4.0 stylesheet explicitly forces Raleway on these headings.
   High-specificity overrides apply to headings AND paragraph text with no changes to English. */
html[dir="rtl"] body.atec-template.is-rtl .atec-main .tragbuilder-page .tb-section.atec-v139-contact-intro .atec-v139-contact-mainheading .tb-heading,
html[dir="rtl"] body.atec-template.is-rtl .atec-main .tragbuilder-page .tb-section.atec-v139-contact-intro .atec-v139-contact-mainheading h2{
 font-family:'Cairo',Tahoma,Arial,sans-serif!important;font-size:34px!important;
 font-weight:400!important;font-style:normal!important;line-height:1.65!important;
 text-align:center!important;letter-spacing:0!important;color:#4d4d4d!important;
}
html[dir="rtl"] body.atec-template.is-rtl .atec-main .tragbuilder-page .tb-section.atec-v139-contact-intro .atec-v139-contact-intro-text .tb-text,
html[dir="rtl"] body.atec-template.is-rtl .atec-main .tragbuilder-page .tb-section.atec-v139-contact-intro .atec-v139-contact-intro-text .tb-text p,
html[dir="rtl"] body.atec-template.is-rtl .atec-main .tragbuilder-page .tb-section.atec-v139-contact-intro .atec-v139-contact-intro-text .tb-text h2{
 font-family:'Cairo',Tahoma,Arial,sans-serif!important;font-size:23px!important;
 font-weight:400!important;font-style:normal!important;line-height:1.8!important;
 color:#555!important;text-align:center!important;letter-spacing:0!important;
 max-width:960px!important;margin-inline:auto!important;
}
html[dir="rtl"] body.atec-template.is-rtl .atec-main .tragbuilder-page .tb-section.atec-v139-contact-details .atec-v139-contact-label .tb-heading,
html[dir="rtl"] body.atec-template.is-rtl .atec-main .tragbuilder-page .tb-section.atec-v139-contact-details .atec-v139-contact-label h3{
 font-family:'Cairo',Tahoma,Arial,sans-serif!important;font-size:23px!important;
 font-weight:400!important;line-height:1.65!important;letter-spacing:0!important;
 text-align:right!important;
}
@media (max-width:760px) {
 html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-row{
  display:flex!important;flex-direction:column!important;gap:28px!important;
  align-items:stretch!important;width:100%!important;
 }
 html[dir="rtl"] body.atec-template.is-rtl #sp-footer.atec-footer .atec-v12-footer .tb-row .tb-col{
  width:100%!important;max-width:100%!important;flex:none!important;
  min-width:0!important;min-height:0!important;
 }
 html[dir="rtl"] body.atec-template.is-rtl .atec-main .tragbuilder-page .tb-section.atec-v139-contact-intro .atec-v139-contact-mainheading .tb-heading{font-size:29px!important;}
 html[dir="rtl"] body.atec-template.is-rtl .atec-main .tragbuilder-page .tb-section.atec-v139-contact-intro .atec-v139-contact-intro-text .tb-text,
 html[dir="rtl"] body.atec-template.is-rtl .atec-main .tragbuilder-page .tb-section.atec-v139-contact-intro .atec-v139-contact-intro-text .tb-text p{font-size:19px!important;}
}
