/* Content-to-footer spacing and footer size overrides */

/* Ensure page scrolls on all viewports (fix tablet/landscape content not visible) */
html {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Tablet and short viewports: prevent hero/parallax from filling viewport so content is visible */
@media (max-height: 700px), (min-width: 768px) and (max-width: 1024px) {
    section.hero.parallax {
        min-height: 0 !important;
        height: auto !important;
    }
}

/* Center nav links between logo and theme button (desktop only) */
@media (min-width: 768px) {
    .navbar-menu {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .navbar-menu .theme-customizer-trigger {
        position: absolute;
        right: 0;
    }
}

/* Sticky footer: main content grows so footer always sits at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex: 1 0 auto;
    margin-bottom: 5rem;
}

/* Shrink footer height and fonts (~25% reduction) */
.footer {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.footer-container {
    padding-top: 0;
    padding-bottom: 0;
}

.footer .footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.footer .footer-section p,
.footer .footer-links,
.footer .footer-links a {
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer .footer-section {
    margin-bottom: 0.5rem;
}

.footer .footer-section:last-child {
    margin-bottom: 0;
}

.footer .row {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
}

.footer-bottom p {
    font-size: 0.8rem;
}

/* Video Link Card Styles */
.video-link {
    display: block;
    position: relative;
    width: 100%;
    border-radius: var(--btn-border-radius);
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.video-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.video-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.video-link:hover img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease;
    z-index: 1;
}

.video-link:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.video-play-icon {
    font-size: 5rem;
    color: var(--color-white);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.video-link:hover .video-play-icon {
    transform: scale(1.1);
    color: var(--color-primary);
}