/* 
 * Responsive utility styles for the website
 * Provides helper classes and utilities for responsive design
 */

/* Base responsive utility styles */
.hide-on-desktop {
    display: none !important;
}

.show-on-mobile {
    display: none !important;
}

.show-on-tablet {
    display: none !important;
}

.show-on-small {
    display: none !important;
}

/* Body class when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Responsive table container */
.table-responsive {
    width: 100%;
    margin-bottom: 1rem;
}

/* Responsive iframe container */
.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100vw;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Flash content alternative */
.flash-alternative {
    width: 100%;
    height: auto;
    background-color: #f5f5f5;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Medium screens / tablets (up to 992px) */
@media screen and (max-width: 992px) {
    .hide-on-tablet {
        display: none !important;
    }

    .show-on-tablet {
        display: block !important;
    }

    /* Center align on tablet */
    .center-on-tablet {
        text-align: center !important;
    }

    /* Full width on tablet */
    .full-width-tablet {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Small screens / mobile (up to 768px) */
@media screen and (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: block !important;
    }

    .hide-on-desktop {
        display: block !important;
    }

    /* Center align on mobile */
    .center-on-mobile {
        text-align: center !important;
    }

    /* Stack on mobile */
    .stack-on-mobile {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Adjust spacing on mobile */
    .mobile-margin-bottom {
        margin-bottom: 15px !important;
    }

    .mobile-padding {
        padding: 10px !important;
    }
}

/* Extra small screens (up to 480px) */
@media screen and (max-width: 480px) {
    .hide-on-small {
        display: none !important;
    }

    .show-on-small {
        display: block !important;
    }

    /* Adjust spacing on very small screens */
    .small-margin-bottom {
        margin-bottom: 10px !important;
    }

    .small-padding {
        padding: 5px !important;
    }

    /* Full width on small screens */
    .full-width-small {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Print styles */
@media print {
    .hide-on-print {
        display: none !important;
    }
}