/* =========================================================
   DRUPAL MAINTENANCE CHECKLIST
   ========================================================= */

.drupal-maintenance-checklist-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 15%,
            rgba(13, 110, 253, 0.035),
            transparent 28%),
        linear-gradient(180deg,
            #ffffff 0%,
            #fbfdff 100%);
}


/* =========================================================
   HEADING
   ========================================================= */

.maintenance-checklist-head {
    max-width: 1100px;
}

.maintenance-checklist-kicker {
    color: #ff5a00;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 900;
    text-transform: uppercase;
}

.maintenance-kicker-line {
    position: relative;
    width: 35px;
    height: 2px;
    flex-shrink: 0;
    background: #ff5a00;
}

.maintenance-kicker-line::before,
.maintenance-kicker-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff5a00;
    transform: translateY(-50%);
}

.maintenance-kicker-line::before {
    left: 0;
}

.maintenance-kicker-line::after {
    right: 0;
}

.maintenance-checklist-head h2 {
    color: #071333;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.maintenance-checklist-head p {
    color: #485574;
    font-size: 18px;
    line-height: 1.55;
}


/* =========================================================
   CHECKLIST GRID
   ========================================================= */

.maintenance-checklist-grid {
    width: 100%;
}

.maintenance-checklist-row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;

    align-items: stretch;
}


/*
 * Bootstrap has no native 20% column.
 * This creates exactly 5 cards per row on desktop.
 */
.maintenance-checklist-col {
    position: relative;
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
}


/* =========================================================
   TASK CARD
   ========================================================= */

.maintenance-task-card {
    --maintenance-color: #0d6efd;
    --maintenance-soft: #edf4ff;

    width: 100%;
    min-width: 0;
    min-height: 320px;

    padding: 22px 18px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid #dce5f1;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(14, 39, 80, 0.035);
}


/* =========================================================
   CARD COLORS
   ========================================================= */

.maintenance-green {
    --maintenance-color: #169530;
    --maintenance-soft: #eaf7ec;
}

.maintenance-blue {
    --maintenance-color: #176bed;
    --maintenance-soft: #edf3ff;
}

.maintenance-purple {
    --maintenance-color: #8a4be4;
    --maintenance-soft: #f3eeff;
}

.maintenance-orange {
    --maintenance-color: #ed6800;
    --maintenance-soft: #fff2e7;
}

.maintenance-teal {
    --maintenance-color: #0b9ea3;
    --maintenance-soft: #e9f8f8;
}

.maintenance-pink {
    --maintenance-color: #e34988;
    --maintenance-soft: #fff0f6;
}

.maintenance-yellow {
    --maintenance-color: #ee9500;
    --maintenance-soft: #fff5df;
}

.maintenance-dark-green {
    --maintenance-color: #147b29;
    --maintenance-soft: #edf7ee;
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.maintenance-task-head {
    width: 100%;
    min-height: 82px;

    display: flex;
    align-items: flex-start;

    gap: 14px;
}

.maintenance-task-icon {
    width: 62px;
    min-width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    color: var(--maintenance-color);
    background: var(--maintenance-soft);

    font-size: 28px;
    line-height: 1;
}

.maintenance-task-icon i {
    line-height: 1;
}


/* =========================================================
   TITLE
   ========================================================= */

.maintenance-task-title {
    min-width: 0;
    flex: 1;
}

.maintenance-task-title h3 {
    min-height: 41px;

    margin: 2px 0 3px;

    color: #071333;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;

    overflow-wrap: break-word;
}

.maintenance-task-title strong {
    display: block;

    color: var(--maintenance-color);

    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;

    text-align: right;
}


/* =========================================================
   PROGRESS BAR
   ========================================================= */

.maintenance-progress {
    width: 100%;
    height: 4px;

    margin: 8px 0 21px;

    overflow: hidden;

    border-radius: 50px;

    background: #e5e9ee;
}

.maintenance-progress span {
    height: 100%;

    display: block;

    border-radius: inherit;

    background: var(--maintenance-color);
}


/* =========================================================
   CHECK LIST
   ========================================================= */

.maintenance-task-list {
    width: 100%;

    margin: 0;
    padding: 0;
}

.maintenance-task-list li {
    width: 100%;
    min-height: 34px;

    display: flex;
    align-items: flex-start;

    gap: 9px;

    color: #071333;

    font-size: 12px;
    line-height: 1.35;
}

.maintenance-task-list li>span {
    min-width: 0;
    flex: 1;

    overflow-wrap: break-word;
}

.maintenance-task-list li i {
    width: 17px;
    min-width: 17px;
    height: 17px;

    margin-top: 1px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    font-size: 8px;
    line-height: 1;
}


/* Completed */

.maintenance-task-list .completed i {
    color: #ffffff;
    background: #15962c;
}


/* In progress */

.maintenance-task-list .progress-item i {
    color: #ffffff;
    background: #277be9;
}


/* Not started */

.maintenance-task-list .not-started i {
    border: 2px solid #a3acb8;

    color: transparent;
    background: transparent;
}


/* =========================================================
   BOTTOM INFO STRIP
   ========================================================= */

.maintenance-bottom-strip {
    padding: 22px 25px;

    border: 1px solid #e1e8f4;
    border-radius: 13px;

    background:
        radial-gradient(circle at 80% 30%,
            rgba(13, 110, 253, 0.04),
            transparent 30%),
        linear-gradient(180deg,
            #f8fbff,
            #ffffff);
}

.maintenance-bottom-item,
.maintenance-legend {
    min-height: 75px;

    padding: 5px 25px;

    border-right: 1px solid #cfdced;
}

.maintenance-bottom-last {
    border-right: 0;
}


/* =========================================================
   BOTTOM ICON
   ========================================================= */

.maintenance-bottom-icon {
    width: 55px;
    min-width: 55px;
    height: 55px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 32px;
}

.maintenance-bottom-blue {
    color: #1268e9;
}


/* =========================================================
   BOTTOM TEXT
   ========================================================= */

.maintenance-bottom-item h3,
.maintenance-legend>strong {
    margin-bottom: 5px;

    color: #071333;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 900;
}

.maintenance-bottom-item .maintenance-pro-tip {
    color: #1268e9;
    font-size: 17px;
}

.maintenance-bottom-item p {
    color: #071333;

    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   LEGEND
   ========================================================= */

.maintenance-legend-items span {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #071333;

    font-size: 10px;
}

.maintenance-legend-items i {
    width: 19px;
    min-width: 19px;
    height: 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    font-size: 9px;
}

.legend-completed {
    background: #159a61;
}

.legend-progress {
    background: #1268e9;
}

.legend-attention {
    background: #f6af00;
}

.legend-not-started {
    background: #a7acb5;
}


/* =========================================================
   LARGE DESKTOP
   5 CARDS PER ROW
   ========================================================= */

@media (min-width: 1400px) {

    .maintenance-checklist-col {
        width: 20%;
        max-width: 20%;
        flex: 0 0 20%;
    }

    .maintenance-task-card {
        min-height: 320px;
    }
}


/* =========================================================
   1200 - 1399
   STILL 5 CARDS PER ROW
   ========================================================= */

@media (min-width: 1200px) and (max-width: 1399.98px) {

    .maintenance-checklist-row {
        --bs-gutter-x: 9px;
        --bs-gutter-y: 10px;
    }

    .maintenance-checklist-col {
        width: 20%;
        max-width: 20%;
        flex: 0 0 20%;
    }

    .maintenance-task-card {
        min-height: 310px;

        padding: 17px 12px;
    }

    .maintenance-task-head {
        min-height: 75px;

        gap: 9px;
    }

    .maintenance-task-icon {
        width: 48px;
        min-width: 48px;
        height: 48px;

        border-radius: 9px;

        font-size: 21px;
    }

    .maintenance-task-title h3 {
        min-height: 39px;

        font-size: 12px;
        line-height: 1.3;
    }

    .maintenance-task-title strong {
        font-size: 11px;
    }

    .maintenance-progress {
        margin-top: 5px;
        margin-bottom: 17px;
    }

    .maintenance-task-list li {
        min-height: 31px;

        gap: 7px;

        font-size: 10px;
        line-height: 1.3;
    }

    .maintenance-task-list li i {
        width: 15px;
        min-width: 15px;
        height: 15px;
    }
}


/* =========================================================
   1400 - 1599
   ========================================================= */

@media (min-width: 1400px) and (max-width: 1599.98px) {

    .maintenance-checklist-row {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 12px;
    }

    .maintenance-task-card {
        padding: 19px 14px;
    }

    .maintenance-task-icon {
        width: 52px;
        min-width: 52px;
        height: 52px;

        font-size: 23px;
    }

    .maintenance-task-title h3 {
        font-size: 13px;
    }

    .maintenance-task-list li {
        font-size: 11px;
    }
}


/* =========================================================
   1600+
   ========================================================= */

@media (min-width: 1600px) {

    .maintenance-checklist-row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .maintenance-task-card {
        padding: 22px 18px;
    }

    .maintenance-task-icon {
        width: 60px;
        min-width: 60px;
        height: 60px;

        font-size: 27px;
    }

    .maintenance-task-title h3 {
        font-size: 14px;
    }

    .maintenance-task-list li {
        font-size: 12px;
    }
}


/* =========================================================
   TABLET
   2 CARDS PER ROW
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199.98px) {

    .maintenance-checklist-col {
        width: 50%;
        max-width: 50%;
        flex: 0 0 50%;
    }

    .maintenance-task-card {
        min-height: 300px;

        padding: 22px 20px;
    }

    .maintenance-task-title h3 {
        font-size: 16px;
    }

    .maintenance-task-list li {
        font-size: 13px;
    }
}


/* =========================================================
   BELOW 992
   ========================================================= */

@media (max-width: 991.98px) {

    .maintenance-bottom-item,
    .maintenance-legend {
        padding: 20px 10px;

        border-right: 0;
        border-bottom: 1px solid #d4dfec;
    }

    .maintenance-bottom-last {
        border-bottom: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .maintenance-checklist-kicker {
        gap: 10px !important;

        font-size: 12px;
    }

    .maintenance-kicker-line {
        width: 25px;
    }

    .maintenance-checklist-head h2 {
        font-size: 22px;
    }

    .maintenance-checklist-head p {
        font-size: 16px;
    }


    /* Grid */

    .maintenance-checklist-row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 14px;
    }

    .maintenance-checklist-col {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }


    /* Card */

    .maintenance-task-card {
        min-height: 0;

        padding: 20px 18px;
    }

    .maintenance-task-head {
        min-height: 0;

        margin-bottom: 10px;
    }

    .maintenance-task-icon {
        width: 55px;
        min-width: 55px;
        height: 55px;

        font-size: 25px;
    }

    .maintenance-task-title h3 {
        min-height: 0;

        font-size: 16px;
    }

    .maintenance-task-title strong {
        font-size: 13px;
    }

    .maintenance-task-list li {
        min-height: 34px;

        font-size: 13px;
    }


    /* Bottom */

    .maintenance-bottom-strip {
        padding: 15px;
    }

    .maintenance-bottom-item,
    .maintenance-legend {
        min-height: 0;
    }

    .maintenance-bottom-item p {
        font-size: 13px;
    }

    .maintenance-legend-items span {
        font-size: 12px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .maintenance-checklist-kicker .maintenance-kicker-line:last-child {
        display: none;
    }

    .maintenance-bottom-item {
        align-items: flex-start !important;
    }

    .maintenance-legend-items {
        flex-direction: column;
        align-items: flex-start !important;

        gap: 10px !important;
    }
}