/* =====================================
   BASE STYLES
===================================== */

body {
    font-family: Georgia, serif !important;
    background: none !important;
    color: #000 !important;
    margin: 0;
    padding: 0;
}

.gallery-container {
    display: none !important;
}

.padding-top-bott {
    padding: 20px 0;
}

.imp-img-cir ul.ul-v > li,
.item-list li {
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.logo-cmf a {
    border-right: none;
    padding-right: 0;
}

.resp-tab-content ul.list li {
    list-style: disc;
    margin-left: 15px;
}

.imp-link ul.ul-v > li {
    list-style: disc;
    display: inline-block;
}

.imp-link {
    border: none;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 800px) {

    .minister,
    .left-block,
    .complaint,
    .whats-new-maincontainer {
        width: 100%;
        margin-bottom: 25px;
        float: left;
    }

    ul.ul-v > li {
        width: 31.333%;
        display: inline-block;
    }

    .imp-link ul.ul-v > li {
        width: 30%;
    }

    .minister-box {
        max-width: 50%;
        float: left;
        padding: 20px;
    }

    .item-list li {
        width: 48%;
        float: left;
        margin-right: 2%;
    }

    .imp-img-cir ul.ul-v > li {
        width: 29%;
        margin-right: 10px;
    }
}

@media screen and (max-width: 940px) {
    .megamenu-wraper #main_menu,
    .megamenu-wraper #overflow_menu {
        display: none !important;
    }
}

/* =====================================
   FOOTER
===================================== */

footer {
    border: 1px solid #ccc;
}

footer .container {
    padding: 0 !important;
}

footer .row > .footer-link {
    display: none !important;
}

/* =====================================
   PRINT — FINAL FIX
===================================== */

@media print {

    /* NEVER USE ZERO MARGIN IN FIREFOX */
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
        margin: 0;
        padding: 0;
        height: auto !important;
        overflow: visible !important;
    }

    /* FORCE VISIBILITY */
    header,
    footer,
    nav,
    main,
    section,
    article {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
    }

    /* FLEX FIX */
    header #main_menu ul {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    /* ===============================
       🔥 CORE FIREFOX FIX 🔥
       PRE-SCALE CONTENT TO 70%
    =============================== */

    .print-root {
        transform: scale(0.65);
        transform-origin: top left;
        width: calc(100% / 0.65);
    }

    /* LAYOUT SAFETY */
    .container,
    .row,
    .wrapper,
    .page {
        width: auto !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    /* COLUMN FIXES */
    .main-contents-home-page .col-lg-4.col-sm-12.col-md-6,
    .content-print .col-md-4,
    .main-contents-home-page .col-md-4,
    .home-btm-slider .col-md-4 {
        width: 33.33% !important;
    }

    .home-btm-slider .col-md-8 {
        width: 66.66% !important;
    }

    /* PAGE BREAK CONTROL */
    section,
    article,
    .content,
    .print-area {
        page-break-inside: avoid !important;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid !important;
    }

    a,
    p,
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        text-decoration: none !important;
    }

    /* HARD RESET */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
        transform-style: flat !important;
    }
    
    header,
    footer,
    nav,
    .no-print,
    .region-header-top,
    .main-menu,
    .nav-menu {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }

    header #top-header .container.common-container.four_content.top-header {
        width: 100% !important;
        max-width: max-content !important;
    }
    header #main_menu ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    .main-contents-home-page .col-lg-4.col-sm-12.col-md-6,
    .content-print .col-md-4,
    .main-contents-home-page .col-md-4,
    .home-btm-slider .col-md-4 {
        width: 33.33% !important;
    }
    .home-btm-slider .col-md-8 {
        width: 66.66% !important;
    }

    .print-area,
    .content,
    main,
    .container,
    .wrapper,
    .page {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }
}

/* =====================================
   FIREFOX SAFETY NET
===================================== */

@supports (-moz-appearance: none) {
    @media print {
        html, body {
            zoom: 0.65 !important;
        }
    }
}
