/* =========================================================
   Guideline Hazards – Tabs Layout
   ========================================================= */

.hazard-tabs {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* ---------- Tabs navigation ---------- */

.hazard-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.hazard-tab-btn {
    background: none;
	background-color: white!important;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px!important;
    cursor: pointer!important;
    font-size: 24px!important;
    font-family: "CooperHewitt", Sans-serif;
    line-height: 1.3;
    color: #555!important;
    border-radius: 5px !important;
    transition: all 0.25s ease;
}

.hazard-tab-btn svg {
    width: 43px;
    height: 43px;
    display: block;
    fill: currentColor;
    transition: fill 0.25s ease, transform 0.25s ease;
    transform: scale(0.5);
    transform-origin: center;
}

/* Hover / active states */
.hazard-tab-btn:hover,
.hazard-tab-btn.active,
.hazard-tab-btn:focus {
    border-color: var(--tab-color);
    color: var(--tab-color) !important;
    background: rgba(0, 0, 0, 0.02);
    outline: none;
}

/* ---------- Tabs content ---------- */

.hazard-tabs-content {
    position: relative;
}

.hazard-tab-content {
    display: none;
}

.hazard-tab-content.active {
    display: block;
}

/* ---------- Card ---------- */

.hazard-card {
    display: flex;
    align-items: center;
    gap: 50px;

    background: #fff;
    padding: 50px;
    border-radius: 5px;

    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.hazard-image {
    width: 100%;
    max-width: 200px;
}

.hazard-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hazard-info {
    text-align: left;
}

/* ---------- Description ---------- */

.hazard-description p {
    margin: 0 0 10px;
}

.hazard-description .elementor-heading-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    color: #545454;
    margin-bottom: 18px;
    font-family: "CooperHewitt", Sans-serif;
}

/* ---------- Languages ---------- */

.hazard-languages {
    display: flex;
    flex-wrap: wrap;
    column-gap: 28px;
    row-gap: 7px;
}

.hazard-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;
    color: #111;
    font-size: 15px;
    font-family: "CooperHewitt", Sans-serif;

    transition: opacity 0.2s ease;
}

.hazard-lang-item:hover {
    opacity: 0.7;
}

.hazard-lang-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.hazard-languages span {
    font-size: 15px;
    font-weight: 400;
}

/* ---------- Admin SVG preview ---------- */

#guideline_icon_preview svg {
    width: 40px;
    height: 40px;
    display: block;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {

    .hazard-card {
        flex-direction: column;
        text-align: center;
    }

    .hazard-image img {
        max-width: 280px;
        margin: 0 auto;
    }

    .hazard-info {
        text-align: center;
    }

    .hazard-languages {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
        justify-items: start;
    }

    .hazard-lang-item {
        font-size: 14px;
        justify-content: flex-start;
    }
}
