.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;    
    background-color: #003366;
    color: #fff;
    padding: 30px 20px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.site-footer > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 600px;
    margin: 0 auto;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ff6600
}

.site-footer > div > ul:last-of-type {
    display: flex;
    gap: 14px;
    align-items: center;
}

.site-footer > div > ul:last-of-type img {
    width: 22px;
    height: 22px;
    display: block;
}

.site-footer ul,
.site-footer li {
    list-style: none;
    margin: 0;
    padding: 0;
}


.site-footer li a {
    display: inline-block;
    padding: 4px 0;
    line-height: 1.4;
}

.site-footer > div > ul:first-of-type {
    display: flex;
    flex-direction: column;   /* STACK ROWS */
    gap: 14px;
}

.site-footer > div > ul:first-of-type > li > ul {
    display: flex;
    gap: 20px;                /* space between links */
    flex-wrap: wrap;          /* safety for narrow screens */
}

.site-footer > div > ul:first-of-type > li > ul > li {
    margin-bottom: 6px;
}

.site-footer > div > ul:first-of-type > li > ul > li:last-child {
    margin-bottom: 0;
}

.site-footer > div > ul:last-of-type > li {
    display: flex;
    align-items: center;
}

.site-footer > div > ul:last-of-type {
    display: flex;
    gap: 14px;
}

.site-footer > div > ul:last-of-type a {
    display: inline-flex;
    padding: 6px;
}

.site-footer a img {
  width: 30px; /* adjust size */
  height: 30px;
  transition: all 0.3s ease; /* smooth effect */
}

.site-footer a.icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: 0.2s ease;
}

/* Default images */
a.twitter { background-image: url('/images/svg/twitter.svg'); }
a.bluesky { background-image: url('/images/svg/bluesky.svg'); }
a.youtube { background-image: url('/images/svg/youtube.svg'); }

/* Hover images */
a.twitter:hover { background-image: url('/images/svg/twitter-hover.svg'); }
a.bluesky:hover { background-image: url('/images/svg/bluesky-hover.svg'); }
a.youtube:hover { background-image: url('/images/svg/youtube-hover.svg'); }


.site-footer.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.mobile-footer {
	display: none;
}

.loginModal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    z-index:9999;
    align-items:center;
    justify-content:center;
}

.loginModal.show{
    display:flex;
}

.loginBox{
    position:relative;
    width:min(420px,90%);
    background:white;
    padding:40px;
    border:1px solid #333;
    border-radius: 10px;
}

.loginBox h2{
    margin-top:0;
    margin-bottom:35px;
    font-size:2rem;
}

.loginBox label{
    display:block;
    margin-bottom:8px;
    color:#333;
}

.loginBox input{
    width:100%;
    box-sizing:border-box;
    background:white;
    border:1px solid #d3d3d3;
    padding:14px;
    color:#333;
    margin-bottom:25px;
    border-radius: 5px;
}

.loginBox button[type="submit"]{
    width:100%;
    padding:14px;
    background:#ff6600;
    border:none;
    color:white;
    cursor:pointer;
    border-radius: 5px;
}

.closeLogin{
    position:absolute;
    top:15px;
    right:20px;
    background:none;
    border:none;
    color:#aaa;
    font-size:2rem;
    cursor:pointer;
}












@media (max-width: 600px) {

    .site-footer {
        display: none;
    }

	.mobile-footer {
	    position: fixed;
	    bottom: 0;
	    left: 0;
	    width: 100%;
	    
	    background: #003366;
	    border-top: 1px solid rgba(255,255,255,0.1);
	    
	    display: flex;
	    justify-content: space-around;
	    align-items: center;
	    
	    height: 60px;
	    z-index: 1000;
	}
	
	.mobile-footer .nav-item {
	    flex: 1;
	    text-align: center;
	    color: #ccc;
	    text-decoration: none;
	    font-size: 11px;
	    
	    display: flex;
	    flex-direction: column;
	    align-items: center;
	    justify-content: center;
	}
	
	.mobile-footer .nav-item span {
	    font-size: 10px;
	    margin-top: 2px;
	}
	
	.mobile-footer .nav-item:hover {
	    color: #ff6600;
	}

}
