/* 
   File: checklist-style.css
   Author: Gina Choi
   Date: Match 3, 2026
   Description: Training Checklist Style Sheets
   version: 1.0
*/
body{
    font-family: "BentonSans Medium", Arial, sans-serif !important;
    padding: 20px;
}
h2 {
    color: #201436;
    font-family: "BentonSans Medium", Arial, sans-serif !important;
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 3.125rem;
    display: inline-block;
    margin: 0;
}
.main-header {
    min-width: 700px;
}
.main-header h2{
    color: #4f2683;
    padding-left: 16px;
    margin-top: 12px;
    margin-bottom: 5px;
    font-size: 2em;
}
.main-header p {
    margin-top: 0;
    padding-left: 16px;
    color: #444;
}
.main-header hr {
    border: none;
    border-top: 1px solid #E3D4F7;
    margin: 12px 0;
    width: calc(100% - 32px);
    margin-left: 16px;
    
}
.selection { 
    flex: 1;
    padding: 15px;
    box-sizing: border-box;
    display: grid;
    width: 100%;
} 
.checkbox-group-role {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}
.checkbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 10px;
}
.counter {
    font-size: 0.9rem;
    color: #555;
    transition: color 0.3s ease;
}
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #f9f9fb;
    border: 2px solid #e0d8f0;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    justify-content: flex-start;
    align-items: stretch;
    flex: 1 1 calc((100% - 48px) / 4);
    min-width: 160px;
}
.checkbox-group h3,
.checkbox-group .counter {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    text-align: center;
}
.checkbox-group:hover {
    box-shadow: 0 4px 12px rgba(79, 38, 131, 0.15);
    border-color: #4F2683;
}
input[type="checkbox"] {
    accent-color: #4F2683;
    transform: scale(1.2);
    cursor: pointer;
}

#columnsWrapper {
    display: none;  
}
.role-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 3px solid #8F55E0;
    object-position: center center;
    transition: all 0.3s ease;
}
.role-card {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #ccc;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    gap: 12px;
    flex: 1 1 0;
    max-width: 280px;
    min-width: 120px;
    transition: all 0.3s ease;
}
.role-card input {
    display: none;
    margin-right: 8px;
}
.role-card:has(input:checked) {
    border-color: #4F2683;
    background: #E9DFF7;
    color: #2E1658;
    box-shadow: 0 4px 8px rgba(79,38,131,0.2);
}
.role-card:hover {
    box-shadow: 0 4px 12px rgba(79, 38, 131, 0.15);
}
.help-icon {
    display: inline-block;
    margin-left: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8F55E0;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    font-weight: bold;
}
.help-icon .tooltip {
    visibility: hidden;
    opacity: 0;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 220px;
    font-size: 13px;
    white-space: normal;
    transition: opacity 0.2s;
    z-index: 1;
}
.help-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}
.reportheader{
    margin-top: 20px;
}
label:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

h3 {
    color: #201436;
    font-family: "BentonSans Medium", Arial, sans-serif !important;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2rem;
}
.table-container {
    width: 100%;
    min-width: calc(160px * 4 + 48px);
    box-sizing: border-box;
    overflow-x: auto;
}
#previewTable {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    box-sizing: border-box;
}
#previewTable thead{
    background-color: #4F2683;
    color: white;
    font-weight: bold;
}
#previewTable th, 
#previewTable td {
    padding: 8px;
    text-align: left;
    overflow-wrap: anywhere;
}

#previewTable th:nth-child(1),
#previewTable td:nth-child(1),
#previewTable th:nth-child(2),
#previewTable td:nth-child(2),
#previewTable th:nth-child(3),
#previewTable td:nth-child(3),
#previewTable th:nth-child(4),
#previewTable td:nth-child(4) {
    border-right: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
#previewTable tbody tr:nth-child {
    background-color: white;
}
#previewTable tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}
#previewTable td:nth-child(3) {
    word-break: break-word;
}
.button-purple {
    padding: 10px 18px;
    background: #4F2683;
    border-radius: 4px;
    color: #FFFFFF;
    text-align: center;
    border: 2px solid #4F2683;
    font-family: "BentonSans Medium", Arial, sans-serif !important;
    font-size: 1rem;
    line-height: 25px;
    min-width: 145px;
    text-decoration: none;
    margin: 8px 16px;
}

.button-purple:hover {
    background: #201436;
    border: 2px solid #8F55E0;
    color: #FFFFFF;
}

#backtotop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background-color: white;
    color: #4F2683;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 3rem;
    height: 3rem;
    line-height: 3.6rem;
    font-size: 2rem;
    border: none;
    text-decoration: none;
    margin: 0;
    transition: opacity 0.2s ease-out;
}
#backtotop:hover {
    color: white;
    background-color: #4F2683;
    transform: translateY(-2px);
}

footer {
    border-top: 1px solid #F6F6F6;
    min-width: 700px;
    margin-top: 16px;
}
.footer-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}
#footer-contact {
    padding: 16px 0;
    justify-content: center;
    align-items: center;
    gap: 20px;
    display: flex;
}
.address {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    flex: 1 1 0;
    margin: 0;
}
#footer-contact span {
    margin:0;
    font-weight: 400;
}
.bs-book {
    font-family: "BentonSans Book", Arial, sans-serif !important;
}
.phone-contact {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-container {
    margin-left: 50px;
    justify-content: cetner;
    align-items: center;
    row-gap: 20px !important;
    flex-wrap: wrap;
    display: flex;
    gap: 20px;
}
.social-container img {
    border-radius: 50%;
    border: 1px solid transparent;
}
.social-container img:hover{
    border-color: #4F2683;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}

.footer-details-container {
    background: #4f2683;
    padding: 40px;
}

.footer-details {
    display: flex;
    justify-content: center; 
    gap: 15px;
    flex-wrap: nowrap;
    padding-left: 16px;
    padding-bottom: 20px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.footer-details-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}
.footer-details-links-title{
    color: white;
    position: relative;
}
.footer-details-links-title::after {
    border-bottom: 1px solid #FFFFFF;
    content: "";
    display: block;
    width: 100%;
    padding-top: 4px;
}
.links-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.lnk {
    position: relative;
    color: white;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    padding-bottom: 2px;
}
.lnk::after {
    content: '';
    position: absolute;
    left:0;
    bottom: 0;
    height:1px;
    background-color: #FFFFFF;
    transition: transform 0.3s ease;
    display: inline-block;
    width:100%;
    transform: scaleX(0);
    transform-origin: left;
}
.lnk:hover::after {
    transform: scaleX(1);
}
.land-acknowledgement {
    padding-left: 70px;
    padding-top: 10px;
}

.land-acknowledgement-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #fff;
    width: 390px;
    height: 100px;
    padding: 16px;
}
.land-ack-title {
    position: relative;
    color: white;
    text-decoration: none;
    display: inline-block;
}
.land-ack-title::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.land-ack-title:hover::after{
    transform: scaleX(1);
}

.land-ack-text {
    color:white;
    margin: 0;
    font-family: "BentonSans Book", Arial, sans-serif !important;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5625rem;
}

#logo-legal {
    text-align: center;
}
.logo-hr {
    border: none;
    border-top: 1px solid #6D469F;
    margin: 30px auto;
    width: calc(100% - 30%);
}
.footer-logo img {
    display: block;
    margin: 0 auto;
}

#western-standards {
    padding-top: 20px;
    text-align: center;
}
.western-standards-text {
    color:white;
    margin: 0;
    font-family: "BentonSans Book";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5625rem;
}
#western-standards-links {
    text-align: center;
}
.western-standards-links-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 10px;
}
.western-standards-link {
    position: relative;
    color: white;
    padding-top: 10px;
}
.nav-link {
    text-decoration: none;
    color: white;
}
.western-standards-links-list li + li::before {
    content: "•";
    color: white;
    margin: 0 10px;
}


/*  Adjust the page size */
@media (max-width: 1200px) {
    .role_card {
        max-width: 240px;
    }
    .role-image {
        height: 130px;
    }
    .checkbox-group {
        padding: 16px 20px;
    }
    .checkbox-group h3 {
        font-size: 0.9rem;
        line-height: 1.2;
        text-align: left;
    }
    .checkbox-group .counter {
        font-size: 0.80rem;
    }
}
@media (max-width: 992px) {
    .role_card {
        max-width: 200px;
    }
    .role-image {
        height: 120px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.5rem;
    }
    .role_card {
        max-width: 180px;
        min-width: 140px;
    }
    .role-image {
        height: 100px;
    }
    .checkbox-group h3 {
        font-size: 0.9rem;
    }
    .checkbox-group .counter {
        font-size: 0.8rem;
    }
    .footer-container {
        flex-direction: column;
    }
    .footer-details-links,
    .land-acknowledgement,
    .western-standards,
    .western-standards-links {
        font-size: 14px;
    }
    .land-acknowledgement-container {
    width: 230px;
    height: 150px;
    padding: 12px;
    }

}

@media (max-width: 480px) {
    .checkbox-group-role {
        flex-wrap: wrap;
    }
    .role_card {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 45%;
    }
    .role-image {
        height: 90px;
    }
}

