/* Fair Footer Styles */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    width: 100%;
    margin: 0;
    padding: 0 20px;
    position: relative;
}

/* Add side borders covering entire viewport including header */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: 6px; /* Total width of all three lines */
    z-index: 9999; /* Very high z-index to appear above all elements */
    pointer-events: none;
}

body::before {
    left: 0;
    background: linear-gradient(
        to right,
        #614511 0 2px,
        #D4AF37 2px 4px,
        #614511 4px 6px
    );
}

body::after {
    right: 0;
    background: linear-gradient(
        to left,
        #614511 0 2px,
        #D4AF37 2px 4px,
        #614511 4px 6px
    );
}

/* Ensure content doesn't go under the borders */
.container {
    position: relative;
    z-index: 1;
}

.fair-footer {
    background-color: #62A780; /* Sage green to match header */
    color: #614511; /* Brown text */
    padding: 40px 0 20px; /* Added bottom padding to ensure border visibility */
    position: relative;
    margin-top: 0; /* Removed top margin to eliminate white space */
    overflow: hidden; /* Prevent margin collapse */
    flex-shrink: 0;
    width: 100%;
}

/* Border that matches the header's bottom border */
.fair-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px; /* Total height of all three lines */
    background: linear-gradient(
        to bottom,
        #614511 0 2px,
        #D4AF37 2px 4px,
        #614511 4px 6px
    );
}

/* Bottom border for footer */
.fair-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px; /* Total height of all three lines */
    background: linear-gradient(
        to bottom,
        #614511 0 2px,
        #D4AF37 2px 4px,
        #614511 4px 6px
    );
}

.fair-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fair-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.fair-footer-section h3 {
    color: #614511; /* Brown text */
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.fair-footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #D4AF37; /* Gold accent */
}

.fair-footer-links {
    list-style: none;
    padding: 0;
}

.fair-footer-links li {
    margin-bottom: 10px;
}

.fair-footer-links a {
    color: #614511; /* Brown text */
    text-decoration: none;
    transition: color 0.3s ease;
}

.fair-footer-links a:hover {
    color: #D4AF37; /* Gold on hover */
}

.fair-footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.fair-footer-social a {
    color: #614511; /* Brown text */
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.fair-footer-social a:hover {
    color: #D4AF37; /* Gold on hover */
}

.fair-footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(97, 69, 17, 0.2);
    margin: 20px 0 0 0;
    line-height: 1.2;
}

.fair-footer-links-inline {
    margin-top: 15px;
}

.fair-footer-links-inline a {
    color: #614511; /* Brown text */
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.fair-footer-links-inline a:hover {
    color: #D4AF37; /* Gold on hover */
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fair-footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fair-footer-section {
        text-align: center;
    }
    
    .fair-footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .fair-footer-social {
        justify-content: center;
    }
    
    .fair-footer-links-inline a {
        display: block;
        margin: 10px 0;
    }
}
