/* ============================================================
   Placement Guide — Responsive Layer
   ============================================================ */

* {
    box-sizing: border-box;
}

/* ------------------------------------------------------------
   BODY
   ------------------------------------------------------------ */

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* ------------------------------------------------------------
   MAIN CONTAINER
   ------------------------------------------------------------ */

.pg-wrap {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}


/* ------------------------------------------------------------
   SEARCH AREA
   ------------------------------------------------------------ */

.pg-search-grid {
    width: 100%;
}


/* ------------------------------------------------------------
   SEARCH INPUTS
   ------------------------------------------------------------ */

.pg-wrap .tbltextboxEn,
.pg-wrap select.dropdown {
    width: 100% !important;
    max-width: none !important;
}


/* ------------------------------------------------------------
   AJAX RESULT AREA
   ------------------------------------------------------------ */

#txtData {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

#retrieved-data {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}


/* ------------------------------------------------------------
   BROWSE COMPANY TABLE
   ------------------------------------------------------------ */

#my-tbl {
    width: 100% !important;
    max-width: 1000px !important;
}


/* ------------------------------------------------------------
   COMPANY NAMES
   ------------------------------------------------------------ */

#my-tbl td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* ------------------------------------------------------------
   COMPANY DETAILS
   ------------------------------------------------------------ */

.tblborder,
.tblborder1,
table[width] {
    width: 100% !important;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tblborder td,
.tblborder1 td,
table[width] td {
    width: auto !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .pg-wrap {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    #txtData,
    #retrieved-data {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .pg-navbar-inner {
        padding: 12px 16px;
    }

    .pg-navbar-links {
        width: 100%;
        gap: 12px;
    }

    .pg-hero {
        max-height: 280px;
    }

    .pg-hero-img {
        height: 280px;
    }

    .pg-hero-inner h1 {
        font-size: 27px;
    }

    .pg-search-grid {
        grid-template-columns: 1fr;
    }

    .pg-divider {
        flex-direction: row;
        padding-top: 0;
    }

    .pg-divider-line {
        width: auto;
        height: 1px;
        flex: 1;
    }

    #my-tbl {
        grid-template-columns: 1fr !important;
    }

    .pg-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 500px) {

    .pg-card {
        padding: 18px 16px;
    }

    .pg-card-head {
        flex-direction: column;
    }

    .pg-pills {
        width: 100%;
    }

    .pg-pill {
        font-size: 11px;
    }

    .pg-archive-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .pg-search-btn {
        width: 100%;
        justify-content: center;
    }

    .pg-footer-inner {
        grid-template-columns: 1fr;
    }

    .pg-hero-inner h1 {
        font-size: 24px;
    }

}
