/* Extracted from the approved homepage footer styles */

.footer {
background:#041123;color:#d5e2ed;padding:54px 0 18px
}

.footer-grid {
display:grid;grid-template-columns:1.2fr repeat(3,1fr);gap:25px
}

.footer-brand p {
font-size:11px;color:#91a8bc;margin:15px 0 8px
}

.footer-email {
font-size:11px;color:#4bd5cf;direction:ltr;display:inline-block
}

.footer h3 {
font-size:12px;color:#f2f7fb;margin:4px 0 14px
}

.footer-grid>div:not(:first-child)>a {
display:block;font-size:10px;color:#9eb1c2;margin:8px 0
}

.footer-grid>div>a:hover {
color:#4bd5cf
}

.footer-bottom {
grid-column:1/-1;border-top:1px solid #ffffff1c;padding-top:16px;display:flex;justify-content:space-between;gap:15px;color:#758ca1;font-size:9px
}

@media(max-width:760px) {
.footer {
padding-top:38px
}

.footer-grid {
grid-template-columns:1fr 1fr;gap:25px 20px
}

.footer-brand {
grid-column:1/-1
}

.footer-bottom {
font-size:8px;flex-direction:column;gap:4px
}
}

.footer .brand img {
display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.footer .brand img {
width: 175px;
  height: auto;
  max-height: 65px;
  object-fit: contain;
}

.footer .brand img {
width: 210px;
  max-height: 80px;
}

/* Footer: white and larger original logo */
.footer .brand img {
width: 245px !important;
  height: auto !important;
  max-height: 100px !important;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

/* Footer right-to-left layout */
.footer-grid {
direction: rtl;
  text-align: right;
}

.footer-brand {
text-align: right;
  justify-self: start;
}

.footer-brand p,
.footer-brand .footer-email {
text-align: right;
}

.footer-grid > div:not(.footer-bottom) {
min-width: 0;
}

@media (max-width: 760px) {
.footer .brand img {
width: 210px !important;
    max-height: 85px !important;
}
}

/* Move footer logo 1cm to the right */
.footer-brand .brand {
position: relative;
  right: 38px;
}

@media (max-width: 760px) {
.footer-brand .brand {
right: 0;
}
}

/* Correct footer logo direction */
.footer-brand .brand {
right: auto !important;
  left: 38px !important;
}

@media (max-width: 760px) {
.footer-brand .brand {
left: 0 !important;
}
}

/* Footer columns spacing refinement */
.footer-grid > div:not(.footer-brand):not(.footer-bottom) {
padding-top: 4px;
}

.footer-grid > div:not(.footer-brand):not(.footer-bottom) h3 {
margin-bottom: 10px;
}

.footer-grid > div:not(.footer-brand):not(.footer-bottom) > a {
margin: 5px 0;
  line-height: 1.8;
}

@media (max-width: 760px) {
.footer-grid {
row-gap: 18px;
}
}

/* Independent footer trust marks */
.footer-trust {
grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.footer-trust h3 {
margin: 0;
  font-size: 14px;
  color: #fff;
}

.footer-trust img {
display: block;
  width: 110px;
  height: auto;
  background: #fff;
  border-radius: 8px;
}

.footer-bottom {
grid-column: 1 / -1;
}

@media (max-width: 760px) {
.footer-trust,
  .footer-bottom {
grid-column: 1 / -1;
}
}

/* Footer: trust mark as the fifth column, left of contact links */
.footer-grid {
grid-template-columns: 1.2fr repeat(4, 1fr);
}

.footer-trust {
grid-column: auto !important;
  align-self: start;
  justify-self: center;
  border-top: 0;
  margin-top: 4px;
  padding: 4px 0;
}

.footer-trust img {
width: 100px;
}

@media (max-width: 760px) {
.footer-grid {
grid-template-columns: 1fr 1fr;
}

.footer-trust {
grid-column: auto !important;
}

.footer-bottom {
grid-column: 1 / -1;
}
}

/* Enamad and Samandehi marks side by side */
.footer-trust-logos {
display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-trust-logos img {
display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

/* Match footer content width with homepage */
.footer > .container.footer-grid {
  width: min(1160px, calc(100% - 56px)) !important;
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}
