@media only screen and (max-width: 1224px) {
    .site .header h2 {
        margin: 0;
    }

    .sidebar .block.last ul li {
        font-size: 16px;
    }

    .sidebar .block.last ul li a {
        display: block;
        font-size: 16px;
        height: 40px;
        line-height: 40px;
        width: 40px;
    }

    .sidebar .block.last ul li:after {
        right: -10px; /* Adjusted for better alignment */
        top: 10px;
    }
}

@media only screen and (max-width: 1000px) {
    /* Hide sidebar properly without breaking layout */
    .sidebar {
        position: absolute;
        left: -9999px; /* Moves sidebar off-screen */
    }

    #wprmenu_bar {
        border-bottom: 1px #222 solid;
    }

    .hide {
        visibility: visible !important;
        display: block !important;
    }

    .site {
        padding: 0 0 100px 0; /* Reduced padding to avoid extra space */
    }

    .site .footer {
        padding: 30px;
        line-height: 22px;
        min-height: 200px; /* Changed from fixed height to min-height */
    }

    iframe {
        width: 100%;
    }
}

@media only screen and (max-width: 700px) {
    .site .header h2 {
        width: 200px;
        height: 40px;
        margin: 0 auto 20px auto;
    }

    .site .header .phone::before {
        display: none;
    }

    .site .header .phone {
        font-size: 20px;
        text-align: center;
        position: relative;
    }

    .site .header .phone a {
        padding: 0;
    }
}
