/* When a page is embedded in an iframe, hide site chrome */
body.in-iframe header,
body.in-iframe footer {
  display: none !important;
}

/* If you want to hide secondary buttons only in embedded mode */
body.in-iframe .btn.btn-secondary {
  display: none !important;
}

/* Utilities (only apply when you add these classes in templates) */
.u-container-narrow {
    width: 100%;
    max-width: 750px;
}

/* Replaces inline style="text-decoration: none;" safely */
.footer-brand-link {
    text-decoration: none;
}
.footer-brand-link:hover,
.footer-brand-link:focus {
    text-decoration: none;
}

/* Generic inline content links */
.content-link {
    color: inherit;                /* match surrounding text color */
    text-decoration: none;         /* no default underline */
    border-bottom: 1px dotted currentColor; /* subtle "designer" underline */
    transition: border-color 0.15s ease, color 0.15s ease;
}

.content-link:hover,
.content-link:focus {
    border-bottom-style: solid;    /* stronger underline on hover/focus */
    text-decoration: none;         /* keep decoration consistent */
}

body {
    padding-top: 100px; /* Adjust based on your navbar height */
}

@media (max-width: 768px) {
    body {
        padding-top: 100px; /* Adjust if the navbar height changes on smaller screens */
    }
}

main {
    padding-bottom: 150px; /* Adjust based on your footer height */
}

/* Remove all padding and margins when inside an iframe */
body.in-iframe {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

main.in-iframe {
    padding: 0 !important;
    margin: 0 !important;
}

@media (min-width: 768px) {
    .non-iframe-cards {
        display: none !important; /* Hide non-iframe cards on larger screens */
    }

    .iframe-cards {
        display: flex !important; /* Show iframe cards on larger screens */
    }
}

@media (max-width: 767px) {
    .iframe-cards {
        display: none !important; /* Hide iframe cards on smaller screens */
    }

    .non-iframe-cards {
        display: flex !important; /* Show non-iframe cards on smaller screens */
    }
}

/* Replace your existing footer block with this */
footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    margin: 0 auto;
    padding: 1rem 0;
    border-top: 1px solid #ccc;
    position: relative; /* Default for mobile: flow with content */
}

/* Re-enable fixed position only for larger screens */
@media (min-width: 768px) {
    footer {
        position: fixed;
        bottom: 0;
    }
}

/* Adjust main padding so you don't have a giant gap on mobile */
main {
    padding-bottom: 2rem; /* Small buffer on mobile */
}

@media (min-width: 768px) {
    main {
        padding-bottom: 150px; /* Original buffer for fixed footer on desktop */
    }
}