/* 
 * Custom Lightweight Grid System for Online Job Board
 * Replacing Bootstrap dependency
 */

.wfojb-container, .wfojb-demo-wrapper {
    box-sizing: border-box;
}

.wfojb-container *, .wfojb-container *:before, .wfojb-container *:after {
    box-sizing: inherit;
}

/* Row & Columns */
.wfojb-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class*="wfojb-col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Base Columns (Mobile first) */
.wfojb-col-12 { flex: 0 0 100%; max-width: 100%; }

/* Medium devices (Tablets, 768px and up) */
@media (min-width: 768px) {
    .wfojb-col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .wfojb-col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .wfojb-col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .wfojb-col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .wfojb-col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .wfojb-col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .wfojb-col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .wfojb-col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .wfojb-col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .wfojb-col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .wfojb-col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .wfojb-col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Alignment Utilities */
.wfojb-text-center { text-align: center !important; }
.wfojb-text-right { text-align: right !important; }
.wfojb-text-left { text-align: left !important; }
.wfojb-text-muted { color: #6c757d !important; }

/* Spacing Utilities */
.wfojb-mt-0 { margin-top: 0 !important; }
.wfojb-mt-1 { margin-top: .25rem !important; }
.wfojb-mt-2 { margin-top: .5rem !important; }
.wfojb-mt-3 { margin-top: 1rem !important; }
.wfojb-mt-4 { margin-top: 1.5rem !important; }
.wfojb-mt-5 { margin-top: 3rem !important; }

.wfojb-ms-0 { margin-left: 0 !important; }
.wfojb-ms-1 { margin-left: .25rem !important; }
.wfojb-ms-2 { margin-left: .5rem !important; }
.wfojb-ms-3 { margin-left: 1rem !important; }
.wfojb-ms-4 { margin-left: 1.5rem !important; }
.wfojb-ms-5 { margin-left: 3rem !important; }

.wfojb-me-0 { margin-right: 0 !important; }
.wfojb-me-1 { margin-right: .25rem !important; }
.wfojb-me-2 { margin-right: .5rem !important; }
.wfojb-me-3 { margin-right: 1rem !important; }
.wfojb-me-4 { margin-right: 1.5rem !important; }
.wfojb-me-5 { margin-right: 3rem !important; }

.wfojb-mb-0 { margin-bottom: 0 !important; }
.wfojb-mb-1 { margin-bottom: .25rem !important; }
.wfojb-mb-2 { margin-bottom: .5rem !important; }
.wfojb-mb-3 { margin-bottom: 1rem !important; }
.wfojb-mb-4 { margin-bottom: 1.5rem !important; }
.wfojb-mb-5 { margin-bottom: 3rem !important; }

.wfojb-pt-0 { padding-top: 0 !important; }
.wfojb-pt-1 { padding-top: .25rem !important; }
.wfojb-pt-2 { padding-top: .5rem !important; }
.wfojb-pt-3 { padding-top: 1rem !important; }
.wfojb-pt-4 { padding-top: 1.5rem !important; }
.wfojb-pt-5 { padding-top: 3rem !important; }

.wfojb-pb-0 { padding-bottom: 0 !important; }
.wfojb-pb-1 { padding-bottom: .25rem !important; }
.wfojb-pb-2 { padding-bottom: .5rem !important; }
.wfojb-pb-3 { padding-bottom: 1rem !important; }
.wfojb-pb-4 { padding-bottom: 1.5rem !important; }
.wfojb-pb-5 { padding-bottom: 3rem !important; }

/* Flex Utilities */
.wfojb-d-flex { display: flex !important; }
.wfojb-align-items-center { align-items: center !important; }
.wfojb-justify-content-center { justify-content: center !important; }
.wfojb-justify-content-between { justify-content: space-between !important; }

/* Responsive Image */
.wfojb-img-fluid {
    max-width: 100%;
    height: auto;
}

/* Custom Modal System (Replacing Bootstrap Modal) */
.wfojb-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.wfojb-modal-content {
    background-color: #fefefe;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: wfojb-modal-zoom 0.3s ease-out;
}

@keyframes wfojb-modal-zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wfojb-modal .wfojb-close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.wfojb-modal .wfojb-close-modal:hover {
    color: #000;
}
