/* ═══════════════════════════════════════
   MOBILE FOOTER FIX — link this in all pages
   <link rel="stylesheet" href="footer-mobile.css">
   Place this AFTER your main <style> block
═══════════════════════════════════════ */

@media(max-width:480px){

  /* ── FOOTER TOP: block layout ── */
  .footer-top{
    display:block !important;
    padding:20px 12px 12px !important;
    max-width:100% !important;
  }

  /* ── BRAND: full width, centred ── */
  .brand-col.footer-col{
    display:block !important;
    width:100% !important;
    text-align:center !important;
    padding:0 0 16px 0 !important;
    margin-bottom:14px !important;
    border-bottom:1px solid rgba(153,101,21,0.2) !important;
    float:none !important;
  }
  .brand-col p{
    max-width:280px !important;
    margin:0 auto 12px !important;
  }
  .social-row{
    justify-content:center !important;
  }

  /* ── 3 COLUMNS: Quick Links, Programs, Contact ── */
  .footer-col:nth-child(2),
  .footer-col:nth-child(3),
  .footer-col.contact-col{
    display:inline-block !important;
    width:32% !important;
    vertical-align:top !important;
    text-align:left !important;
    padding:0 3px 12px !important;
    float:none !important;
    box-sizing:border-box !important;
  }

  /* ── COLUMN HEADINGS ── */
  .footer-col:nth-child(2) h4,
  .footer-col:nth-child(3) h4,
  .footer-col.contact-col h4{
    font-size:8px !important;
    letter-spacing:1.4px !important;
    margin-bottom:8px !important;
    padding-bottom:6px !important;
    text-align:left !important;
    display:block !important;
  }
  .footer-col:nth-child(2) h4::after,
  .footer-col:nth-child(3) h4::after,
  .footer-col.contact-col h4::after{
    left:0 !important;
    transform:none !important;
  }

  /* ── QUICK LINKS + PROGRAMS: list items ── */
  .footer-col:nth-child(2) ul li,
  .footer-col:nth-child(3) ul li{
    margin-bottom:5px !important;
  }
  .footer-col:nth-child(2) ul li a,
  .footer-col:nth-child(3) ul li a{
    font-size:10px !important;
    color:rgba(245,222,179,0.52) !important;
    justify-content:flex-start !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    gap:3px !important;
  }
  .footer-col:nth-child(2) ul li a::before,
  .footer-col:nth-child(3) ul li a::before{
    font-size:11px !important;
    flex-shrink:0 !important;
  }

  /* ── CONTACT COLUMN: plain text list, no cards ── */
  .footer-col.contact-col .contact-item{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-height:unset !important;
    height:auto !important;
    background:none !important;
    border:none !important;
    border-radius:0 !important;
    padding:0 0 6px 0 !important;
    margin:0 !important;
    gap:0 !important;
    overflow:visible !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    text-align:left !important;
    vertical-align:unset !important;
    float:none !important;
  }
  .footer-col.contact-col .contact-icon{
    display:none !important;
  }
  .footer-col.contact-col .contact-txt{
    font-size:10px !important;
    text-align:left !important;
    color:rgba(245,222,179,0.52) !important;
    word-break:break-word !important;
    line-height:1.4 !important;
  }
  .footer-col.contact-col .contact-txt strong{
    font-size:7.5px !important;
    display:block !important;
    text-align:left !important;
    color:rgba(201,168,76,0.75) !important;
    letter-spacing:1px !important;
    margin-bottom:1px !important;
    text-transform:uppercase !important;
  }

  /* ── FOOTER BOTTOM ── */
  .footer-bottom{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    text-align:center !important;
    gap:10px !important;
    padding:14px 16px 16px !important;
    clear:both !important;
  }
  .footer-bottom .copy{
    font-size:10px !important;
    line-height:1.5 !important;
  }
  .footer-bottom .links{
    justify-content:center !important;
    gap:12px !important;
  }
  .footer-bottom .links a{
    font-size:9.5px !important;
  }
  .dhamma-strip{
    font-size:8.5px !important;
    letter-spacing:1.6px !important;
    padding:10px 12px !important;
    line-height:1.6 !important;
  }
  .dhamma-strip span{
    margin:0 5px !important;
  }
}
