/* Block: footer */
/* Bricks Builder: Add this CSS to Appearance > Customize > Additional CSS */

/* Footer Container - Base Styles (Mobile First) */
.htc-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    position: relative;
}

.htc-footer .htc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Footer Content Layout */
.htc-footer__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Footer Section Base Styles */
.htc-footer__section {
    position: relative;
}

.htc-footer__section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    position: relative;
}

.htc-footer__section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e74c3c;
}

/* Event Information Section */
.htc-footer__section--event {
    text-align: center;
}

.htc-footer__event-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.htc-footer__event-date,
.htc-footer__event-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.htc-footer__event-label {
    font-size: 0.85rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.htc-footer__event-value {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
}

.htc-footer__event-description {
    margin-top: 1rem;
    max-width: 280px;
}

.htc-footer__event-description p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #bdc3c7;
    font-style: italic;
}

/* Navigation Section */
.htc-footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.htc-footer__nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
    position: relative;
    padding: 0.25rem 0;
}

.htc-footer__nav-link:hover,
.htc-footer__nav-link:focus {
    color: #3498db;
    padding-left: 0.75rem;
}

.htc-footer__nav-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 3px;
}

.htc-footer__nav-link::before {
    content: '→';
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: all 0.2s ease-in-out;
    color: #3498db;
}

.htc-footer__nav-link:hover::before,
.htc-footer__nav-link:focus::before {
    opacity: 1;
    left: -0.5rem;
}

/* Partners Section */
.htc-footer__partners {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.htc-footer__partner {
    padding: 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.2s ease-in-out;
}

.htc-footer__partner:hover {
    background: rgba(52, 152, 219, 0.15);
    transform: translateX(4px);
}

.htc-footer__partner-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.htc-footer__partner-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.htc-footer__partner-full {
    display: block;
    font-size: 0.85rem;
    color: #bdc3c7;
    line-height: 1.4;
}

.htc-footer__partner-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Contact Section */
.htc-footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.htc-footer__contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.htc-footer__contact-label {
    font-size: 0.85rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.htc-footer__contact-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.htc-footer__contact-link:hover,
.htc-footer__contact-link:focus {
    color: #5dade2;
    text-decoration: underline;
}

.htc-footer__contact-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 3px;
}

.htc-footer__contact-value {
    color: #ecf0f1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer Bottom Section */
.htc-footer__bottom {
    border-top: 1px solid rgba(189, 195, 199, 0.2);
    padding: 1.5rem 0;
}

.htc-footer__bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.htc-footer__funding {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(189, 195, 199, 0.2);
}

.htc-footer__funding p {
    margin: 0;
    font-size: 0.75rem;
    color: #95a5a6;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

.htc-footer__copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: #bdc3c7;
}

/* Back to Top Button */
.htc-footer__back-to-top {
    position: absolute;
    top: -25px;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    z-index: 10;
}

.htc-footer__back-to-top:hover,
.htc-footer__back-to-top:focus {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.htc-footer__back-to-top:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.htc-footer__back-to-top-icon {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.htc-footer__back-to-top-text {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

/* Tablet Styles (576px–1023.98px) */
@media screen and (min-width: 576px) and (max-width: 1023.98px) {
    .htc-footer {
        padding: 4rem 0 1.5rem 0;
    }
    
    .htc-container {
        padding: 0 2rem;
    }
    
    .htc-footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .htc-footer__section--event {
        text-align: left;
    }
    
    .htc-footer__event-info {
        align-items: flex-start;
    }
    
    .htc-footer__event-date,
    .htc-footer__event-location {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .htc-footer__event-description {
        max-width: 100%;
    }
    
    .htc-footer__partners {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .htc-footer__partner {
        padding: 0.75rem;
    }
    
    .htc-footer__bottom-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .htc-footer__back-to-top {
        right: 3rem;
    }
}

/* Desktop Styles (1024px+) */
@media screen and (min-width: 1024px) {
    .htc-footer {
        padding: 5rem 0 2rem 0;
    }
    
    .htc-footer__content {
        grid-template-columns: 1.2fr 1fr 1.5fr 1fr;
        gap: 4rem;
    }
    
    .htc-footer__section-title {
        font-size: 1.3rem;
    }
    
    .htc-footer__event-description {
        margin-top: 1.5rem;
    }
    
    .htc-footer__partners {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .htc-footer__partner {
        padding: 1rem;
    }
    
    .htc-footer__contact-item {
        flex-direction: row;
        align-items: baseline;
        gap: 0.75rem;
    }
    
    .htc-footer__contact-label {
        min-width: 70px;
        flex-shrink: 0;
    }
    
}

/* Note: Large desktop merged into Desktop to keep 3 viewports */

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .htc-footer {
        background: #000000;
        color: #ffffff;
    }
    
    .htc-footer__section-title {
        color: #ffffff;
        border-bottom-color: #ffffff;
    }
    
    .htc-footer__section-title::after {
        background-color: #ffffff;
    }
    
    .htc-footer__nav-link,
    .htc-footer__contact-link {
        color: #ffffff;
    }
    
    .htc-footer__nav-link:hover,
    .htc-footer__nav-link:focus,
    .htc-footer__contact-link:hover,
    .htc-footer__contact-link:focus {
        background-color: #ffffff;
        color: #000000;
    }
    
    .htc-footer__partner {
        background: rgba(255, 255, 255, 0.1);
        border-color: #ffffff;
    }
    
    .htc-footer__back-to-top {
        background: #ffffff;
        color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .htc-footer__nav-link,
    .htc-footer__contact-link,
    .htc-footer__partner,
    .htc-footer__back-to-top {
        transition: none;
    }
    
    .htc-footer__nav-link::before {
        transition: none;
    }
    
    .htc-footer__back-to-top:hover,
    .htc-footer__back-to-top:focus {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .htc-footer {
        background: none !important;
        color: #000000 !important;
        margin-top: 2rem;
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .htc-footer__back-to-top {
        display: none;
    }
    
    .htc-footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .htc-footer__section-title {
        color: #000000 !important;
        border-bottom-color: #000000 !important;
    }
    
    .htc-footer__nav-link,
    .htc-footer__contact-link {
        color: #000000 !important;
        text-decoration: underline;
    }
    
    .htc-footer__partner {
        background: none !important;
        border-color: #000000 !important;
    }
    
    .htc-footer__partner-name {
        color: #000000 !important;
    }
}

/* Screen Reader Only Class */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
