/* Unified responsive footer — 2026-11 */
.foot{display:block!important;box-sizing:border-box;width:auto;margin:20px clamp(10px,2.4vw,30px) 0!important;padding:clamp(22px,3vw,38px) clamp(16px,3.5vw,48px) 18px!important;border-radius:26px 26px 0 0;overflow:hidden}
.foot *{box-sizing:border-box}
.foot .footer-grid{display:grid!important;grid-template-columns:minmax(180px,1.15fr) repeat(3,minmax(0,1fr))!important;gap:clamp(12px,1.7vw,24px)!important;align-items:start;max-width:1260px;margin-inline:auto}
.foot .footer-grid>div{min-width:0}
.foot .footer-grid>div:not(:first-child){padding:clamp(12px,1.3vw,18px)!important;border-radius:18px!important}
.foot .footer-grid h3{font-size:clamp(13px,1.1vw,16px);line-height:1.8;margin:0 0 10px}
.foot .footer-grid p{font-size:clamp(12px,1vw,14px);line-height:2;margin:6px 0}
.foot .footer-grid a:not(.mosque-footer-home){display:flex!important;align-items:center;justify-content:space-between;gap:6px;margin:6px 0!important;padding:9px 11px!important;font-size:clamp(12px,1vw,14px);line-height:1.65;min-height:40px;overflow-wrap:anywhere}
.foot .footer-grid a svg{flex-shrink:0}
.foot .mosque-footer-home{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px;margin:0 0 10px!important}
.foot .mosque-footer-home h3{margin:0}
.foot .footer-logo{width:52px;height:52px;object-fit:contain;flex-shrink:0}
.foot .footer-bottom{max-width:1260px;margin:20px auto 0!important;padding-top:12px!important;line-height:1.8;text-align:center;display:block!important}
.foot .map-links{display:grid;gap:4px}
@media(max-width:900px){.foot .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.foot .footer-grid>div:nth-child(3){grid-column:auto!important}}
@media(max-width:560px){.foot{margin:14px 8px 0!important;padding:18px 12px 12px!important;border-radius:22px 22px 0 0}.foot .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.foot .footer-grid>div:first-child,.foot .footer-grid>div:nth-child(3){grid-column:1/-1!important}.foot .footer-grid>div:not(:first-child){padding:11px!important}.foot .footer-grid h3{font-size:13px;margin-bottom:6px}.foot .footer-grid p{font-size:12px}.foot .footer-grid a:not(.mosque-footer-home){font-size:12px;padding:8px!important;min-height:42px}.foot .footer-logo{width:40px;height:40px}.foot .footer-bottom{font-size:11px;margin-top:14px!important}.foot .map-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}}
@media(max-width:360px){.foot .footer-grid{grid-template-columns:1fr!important}.foot .footer-grid>div{grid-column:1/-1!important}.foot .map-links{grid-template-columns:1fr}}

/* Final override: explicit areas avoid narrow auto-sized logo column */
.foot .footer-grid{grid-template-areas:"identity channels location shortcuts";grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.15fr) minmax(0,.9fr)!important}
.foot .footer-grid>div:nth-child(1){grid-area:identity;min-width:0}
.foot .footer-grid>div:nth-child(2){grid-area:channels;min-width:0}
.foot .footer-grid>div:nth-child(3){grid-area:location;min-width:0}
.foot .footer-grid>div:nth-child(4){grid-area:shortcuts;min-width:0}
.foot .mosque-footer-home{width:100%;flex-wrap:nowrap;align-items:center!important;overflow:visible}
.foot .mosque-footer-home h3{white-space:normal;overflow-wrap:normal;word-break:normal;min-width:0;font-size:clamp(13px,1.15vw,17px)}
.foot .footer-grid>div:first-child{display:block;max-width:100%;overflow:visible}
.foot .footer-grid>div:first-child p{max-width:36ch}
.foot .footer-grid>div:not(:first-child){background:rgba(255,255,255,.045)!important}
.foot::after{opacity:.075!important}
@media(max-width:900px){.foot .footer-grid{grid-template-areas:"identity identity" "channels location" "shortcuts shortcuts";grid-template-columns:repeat(2,minmax(0,1fr))!important}.foot .footer-grid>div:nth-child(1){grid-column:1/-1!important}.foot .footer-grid>div:nth-child(3){grid-column:auto!important}.foot .footer-grid>div:nth-child(4){grid-column:1/-1!important}}
@media(max-width:560px){.foot .footer-grid{grid-template-areas:"identity identity" "channels location" "shortcuts shortcuts";grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.foot .footer-grid>div:nth-child(1){grid-column:1/-1!important;display:flex;flex-direction:column;gap:2px;padding:4px 2px 8px!important}.foot .mosque-footer-home{display:flex!important;flex-direction:row!important;align-items:center!important;width:100%;gap:10px!important}.foot .mosque-footer-home h3{font-size:15px!important;line-height:1.75!important;word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important;margin:0!important}.foot .footer-grid>div:nth-child(3){grid-column:auto!important}.foot .footer-grid>div:nth-child(4){grid-column:1/-1!important}.foot .footer-grid>div:not(:first-child){padding:10px!important}.foot .footer-grid a:not(.mosque-footer-home){overflow-wrap:normal;word-break:normal;font-size:11px!important;padding:8px 6px!important;gap:4px}.foot .footer-grid a svg{width:13px;height:13px}.foot .footer-grid h3{font-size:13px!important}.foot .map-links{grid-template-columns:1fr!important}.foot .footer-grid>div:first-child p{font-size:12px!important;line-height:1.8;margin:0!important}.foot .footer-bottom{font-size:10px!important}}
@media(max-width:390px){.foot .footer-grid{grid-template-areas:"identity" "channels" "location" "shortcuts";grid-template-columns:minmax(0,1fr)!important}.foot .footer-grid>div{grid-column:1/-1!important}.foot .footer-grid a:not(.mosque-footer-home){font-size:12px!important}.foot .map-links{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Compact mobile footer — prevent full-screen stacking */
@media(max-width:600px){
 .foot{padding:14px 12px 10px!important;margin:10px 8px 0!important;border-radius:20px 20px 0 0}
 .foot .footer-grid{display:grid!important;grid-template-areas:"identity" "channels" "location" "shortcuts"!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
 .foot .footer-grid>div{grid-column:1/-1!important;min-width:0}
 .foot .footer-grid>div:first-child{padding:0 2px 5px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between;gap:12px}
 .foot .mosque-footer-home{width:auto!important;flex:0 1 auto;min-width:0;gap:7px!important;margin:0!important}
 .foot .footer-logo{width:35px!important;height:35px!important}
 .foot .mosque-footer-home h3{font-size:13px!important;line-height:1.5!important;margin:0!important}
 .foot .footer-grid>div:first-child p{display:none!important}
 .foot .footer-grid>div:not(:first-child){padding:10px!important;border-radius:14px!important}
 .foot .footer-grid h3{font-size:12px!important;line-height:1.5!important;margin:0 0 7px!important}
 .foot .footer-grid>div:nth-child(2){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}
 .foot .footer-grid>div:nth-child(2)>h3{grid-column:1/-1}
 .foot .footer-grid>div:nth-child(2)>a{margin:0!important;min-height:38px!important}
 .foot .footer-grid a:not(.mosque-footer-home){font-size:11px!important;line-height:1.4!important;min-height:36px!important;padding:7px 8px!important;margin:0!important;gap:5px!important;overflow-wrap:normal!important;word-break:normal!important}
 .foot .footer-grid>div:nth-child(3)>p{font-size:11px!important;line-height:1.6!important;margin:0 0 8px!important}
 .foot .map-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 .foot .footer-grid>div:nth-child(4){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important}
 .foot .footer-grid>div:nth-child(4)>h3{grid-column:1/-1}
 .foot .footer-grid>div:nth-child(4)>a{justify-content:center!important;text-align:center;padding:7px 4px!important}
 .foot .footer-bottom{margin-top:9px!important;padding-top:8px!important;font-size:10px!important}
 .foot::after{opacity:.045!important}
}
@media(max-width:350px){.foot .footer-grid>div:nth-child(4){grid-template-columns:repeat(2,minmax(0,1fr))}.foot .footer-grid>div:nth-child(2)>a{font-size:10px!important}}

/* Desktop compact layout; keep the approved mobile treatment unchanged */
@media(min-width:901px){
 .foot{padding:22px clamp(18px,3vw,38px) 12px!important;margin-top:12px!important}
 .foot .footer-grid{max-width:1180px!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1.15fr) minmax(0,.95fr)!important;gap:12px!important}
 .foot .footer-grid>div:not(:first-child){padding:12px!important;border-radius:14px!important}
 .foot .footer-grid h3{font-size:14px!important;line-height:1.6!important;margin:0 0 8px!important}
 .foot .footer-grid p{font-size:12px!important;line-height:1.8!important;margin:4px 0!important}
 .foot .footer-grid a:not(.mosque-footer-home){font-size:12px!important;line-height:1.5!important;min-height:34px!important;padding:6px 9px!important;margin:5px 0!important;border-radius:10px!important}
 .foot .mosque-footer-home{gap:8px!important;margin:0 0 8px!important}
 .foot .footer-logo{width:42px!important;height:42px!important}
 .foot .mosque-footer-home h3{font-size:14px!important;line-height:1.7!important}
 .foot .footer-bottom{max-width:1180px!important;margin-top:12px!important;padding-top:9px!important;font-size:10px!important}
 .foot::after{opacity:.05!important}
}
@media(min-width:901px) and (max-width:1100px){
 .foot .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:"identity channels" "location shortcuts"!important;gap:10px!important}
}
