/* Townnews footer: TownPress footer structure and default skin, plus a compact featured post. */

/* Base */
#footer{position:relative;z-index:10;background-position:center 0;background-size:cover;color:#333;font-family:inherit}
#footer *,#footer *::before,#footer *::after{box-sizing:border-box}
.footer--has-background{margin-top:-100px;padding-top:100px}
.footer--has-background:before{content:"";display:block;position:absolute;top:0;left:0;right:0;width:100%;height:100px}
.footer__inner{position:relative}
#footer a{text-decoration:none}

/* Container and grid (columns follow the Footer columns setting) */
.lsvr-container{margin:0 auto;padding:0 30px;width:100%;max-width:1400px}
.footer-widgets .lsvr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px}
.footer-widgets .lsvr-grid--1-cols{grid-template-columns:minmax(0,1fr)}
.footer-widgets .lsvr-grid--2-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
.footer-widgets .lsvr-grid--3-cols{grid-template-columns:repeat(3,minmax(0,1fr))}
.footer-widgets .lsvr-grid--4-cols{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:782px){.footer-widgets .lsvr-grid--md-2-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.footer-widgets .lsvr-grid{grid-template-columns:minmax(0,1fr)}}

/* Widget area */
.footer-widgets{color:#d7dcdf;background-color:rgba(17,17,17,.9)}
.footer-widgets__inner{padding:48px 0 0 0}
.footer-widgets .widget{margin:0 0 48px 0;min-width:0}
.footer-widgets .widget__inner{padding:0;min-width:0}
.footer-widgets .widget__title{position:relative;margin:0 0 24px 0;padding:0;font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#fff}
.footer-widgets a{color:#fff}
.footer-widgets a:hover{color:#d93a1e}
.footer-widgets p{margin:0 0 10px;line-height:1.5;overflow-wrap:anywhere}
.footer-widgets__inner{padding-left:10px;padding-right:10px}
@media (min-width:783px){.footer-widgets__inner{padding-left:0;padding-right:0}}

/* Compact featured post: fixed image height, clamped title and excerpt, nothing spills out */
.footer-widgets .widget_townnews_featured .tn-card{background:transparent;border:0;box-shadow:none;padding:0;gap:8px;transform:none;color:#fff;min-width:0}
.footer-widgets .widget_townnews_featured .tn-card:hover{transform:none;box-shadow:none}
.footer-widgets .widget_townnews_featured .tn-card-media{display:block;width:100%;height:140px;overflow:hidden;border-radius:8px}
.footer-widgets .widget_townnews_featured .tn-card-media img{width:100%;height:100%;object-fit:cover;display:block}
.footer-widgets .widget_townnews_featured .tn-card-title{margin:0;font-size:15px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.footer-widgets .widget_townnews_featured .tn-card-meta{margin:0;font-size:12px;color:#aab6c6}
.footer-widgets .widget_townnews_featured .tn-card-excerpt{margin:0;font-size:13px;line-height:1.45;color:#c9d2de;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere}

/* Galleries slider in the footer */
.footer-widgets .tn-slider-footer{position:relative}
.footer-widgets .tn-slider-footer .tn-slides{position:relative;height:150px;overflow:hidden;border-radius:8px;background:#0a1a2c}
.footer-widgets .tn-slider-footer .tn-slide{position:absolute;inset:0;display:block;opacity:0;transition:opacity .7s;color:#fff}
.footer-widgets .tn-slider-footer .tn-slide.is-active{opacity:1}
.footer-widgets .tn-slider-footer .tn-slide-img{width:100%;height:100%;object-fit:cover;display:block}
.footer-widgets .tn-slider-footer .tn-slide-caption{position:absolute;left:0;right:0;bottom:0;padding:18px 10px 8px;background:linear-gradient(transparent,rgba(0,0,0,.8));font-size:12px;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.footer-widgets .tn-slider-dots{display:flex;gap:6px;margin-top:8px}
.footer-widgets .tn-slider-dots button{width:8px;height:8px;border-radius:50%;border:0;background:#55606e;padding:0;cursor:pointer}
.footer-widgets .tn-slider-dots button.is-active{background:#d93a1e}
.footer-widgets .widget__more{margin:12px 0 0;font-size:13px}
.footer-widgets .widget__more a{color:#d93a1e;font-weight:700}

/* Archive calendar in the footer */
.footer-widgets .tn-calendar{font-size:12px}
.footer-widgets .tn-calendar table{width:100%;border-collapse:collapse;table-layout:fixed}
.footer-widgets .tn-calendar th,.footer-widgets .tn-calendar td{border:1px solid rgba(255,255,255,.12);padding:3px 2px;text-align:center;color:#d7dcdf;background:transparent;font-size:11px}
.footer-widgets .tn-cal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;color:#fff}
.footer-widgets .tn-cal-nav{color:#d93a1e;font-weight:700;padding:0 6px;text-decoration:none}
.footer-widgets .tn-cal-link{color:#d93a1e;font-weight:700}
.footer-widgets .tn-calendar td.has-event{background:rgba(217,58,30,.15)}

/* Bottom bar: light, like the TownPress default */
.footer-bottom{position:relative;background-image:linear-gradient(rgba(242,242,242,.9),#f2f2f2)}
.footer-bottom__inner{position:relative;padding:24px 0 40px}
.footer-bottom__inner:after{display:table;clear:both;height:0;content:"";visibility:hidden}
.footer-social{position:absolute;top:-20px;left:0;right:0;width:100%;text-align:center}
.footer-social__list{list-style-type:none;margin:0;padding:0}
.footer-social__item{list-style-type:none;margin:0 2px;padding:0;line-height:1.3em;display:inline-block}
.footer-social__link{display:block;width:34px;height:34px;line-height:34px;font-size:18px;text-align:center;border-radius:50%;color:#fff;background-color:#d93a1e}
.footer-social__link:hover{box-shadow:inset 0 0 0 50px rgba(255,255,255,.1)}
.footer-social__link svg{display:inline-block;vertical-align:middle;width:16px;height:16px}
.footer-social__link--facebook{background-color:#3b5998}
.footer-social__link--x{background-color:#111}
.footer-social__link--twitter{background-color:#55acee}
.footer-social__link--instagram{background-color:#3f729b}
.footer-social__link--youtube{background-color:#e52d27}
.footer-social__link--linkedin{background-color:#0976b4}
.footer-social__link--whatsapp{background-color:#25d366}
.footer-social__link--tiktok{background-color:#111}
.footer-menu{float:right;width:45%;font-size:.875em;text-align:right}
.footer-menu__list{list-style-type:none;margin:0;padding:0}
.footer-menu__list>li{list-style-type:none;margin:0 0 3px 14px;padding:0;line-height:1.3em;display:inline-block}
.footer-menu__list a{color:#333}
.footer-text{float:left;width:45%;line-height:1.3em;font-size:.75em;color:#555}
.footer-text p{margin:0}
.footer-text a{color:#333;text-decoration:underline}
.footer-bottom__inner .footer-menu,.footer-bottom__inner .footer-text{margin-top:0}
.back-to-top{display:block;position:absolute;top:-20px;right:0;z-index:50}
.back-to-top__link{display:inline-block;position:relative;width:34px;height:34px;border-radius:50%;background:#d93a1e}
.back-to-top__link:after{content:"";position:absolute;left:12px;top:14px;width:8px;height:8px;border-left:2px solid #fff;border-top:2px solid #fff;transform:rotate(45deg)}
@media (max-width:782px){
	.footer-menu,.footer-text{float:none;width:auto;text-align:center}
	.footer-menu{margin:0 0 12px}
	.footer-menu__list>li{margin:0 7px 3px}
	.footer-text{margin-top:8px}
	.back-to-top{position:relative;top:auto;right:auto;margin:24px auto 0;text-align:center}
}
.footer-widgets .widget_townnews_featured .tn-card-media{align-self:stretch;width:100%}
.footer-widgets .widget_townnews_featured .tn-card-media img{min-width:100%}
.footer-widgets .tn-featured{display:block;grid-template-columns:none;gap:0}

/* Social media buttons: their own centred row, between the footer columns and the copyright line */
.footer-social-row{padding:26px 0 24px;border-top:1px solid rgba(255,255,255,.12);background:rgba(17,17,17,.9)}
.footer-social-row .footer-social{position:static;top:auto;left:auto;right:auto;width:auto;text-align:center}
.footer-social-row .footer-social__list{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.footer-social-row .footer-social__item{margin:0}
.footer-social-row .footer-social__link{width:40px;height:40px;line-height:40px}

/* Footer uses the same 88% box as the Townnews layout, so its edges line up with the sidebars and content */
#footer .lsvr-container{width:88%;max-width:none;padding-left:0;padding-right:0}
@media (max-width:991px){#footer .lsvr-container{width:94%}}
@media (max-width:782px){#footer .footer-widgets__inner{padding-left:0;padding-right:0}}
