/* Bootstrap 5 compatibility layer for Formations Hunt theme */

/* Preserve original close button appearance inside modals */
.company-check .modal-body > .btn-close,
.modal .btn-close {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 10;
    opacity: 1;
    filter: none;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
}

/* Dropdown menus — match original positioning */
.dropdown-s1 .dropdown-menu {
    margin-top: 0;
}

.dropdown-s1 .dropdown-menu.show {
    display: block;
}

/* Accordion / collapse — BS5 uses .accordion but site uses custom FAQ */
.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

/* Hero inline styles from original homepage */
.main-banner #result_show {
    padding: 0 !important;
    min-height: 0 !important;
}

.carbon-section {
    padding: 60px 0;
    text-align: center;
}

.carbon-section h2 {
    font-weight: 600;
    margin-bottom: 40px;
}

.carbon-icon {
    margin: 0 auto 30px;
}

.carbon-item {
    text-align: left;
    margin-bottom: 30px;
}

.carbon-item h5 {
    font-weight: 700;
    margin-bottom: 7px;
}

.carbon-item p {
    margin-bottom: 6px;
}

.carbon-item i {
    color: #4caf50;
    margin-right: 10px;
}

.hread-more {
    font-size: 17px;
    color: #87cb28;
    font-weight: 600;
    text-decoration: none;
}

.hread-more:hover {
    color: rgba(26, 27, 30, 0.89);
}

.hread-more i {
    margin-left: 5px;
}

.hbtn-learn {
    margin-top: 30px;
}

.swot-box {
    min-height: 250px;
    display: flex;
    flex-direction: row;
    padding: 20px;
    overflow: hidden;
}

.vertical-word {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 1px #070606;
    text-stroke: 1px #070606;
    text-transform: uppercase;
    width: 20%;
    flex-direction: column;
    line-height: 1.1;
}

.horizontal-word {
    justify-content: center;
    align-items: center;
    font-size: 38px;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 1px #070606;
    text-stroke: 1px #070606;
    text-transform: uppercase;
    width: 100%;
    white-space: nowrap;
    writing-mode: horizontal-tb;
}

.swot-title h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.swot-content {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10px;
    color: #000;
    padding-right: 10px;
    position: relative;
}

.swot-content::after {
    content: "";
    position: absolute;
    right: 0;
    height: 63%;
    width: 1px;
    background: #000;
}

.bg-strengths { background-color: #c5beb3; }
.bg-weaknesses { background-color: #bfbebc; }
.bg-opportunities { background-color: #e7e1d5; }
.bg-threats { background-color: #ccb7a5; }

.row-eq-height > .col-md-6 {
    display: flex;
}

.search-input-modal {
    border-width: 1px 0 1px 1px;
    border-style: solid;
    border-color: #87cb28;
    height: 48px;
    border-radius: 24px;
    width: 100%;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.012em;
    color: #706969;
    padding: 0 116px 0 23px;
}

.logo_container {
    margin-bottom: 25px;
}
