.prayer-times {
    --prayer-primary: #110022;
    --prayer-accent: #110022;
    --prayer-border: #d9d9d9;
    --prayer-text: #2b2b2b;
    --prayer-muted: #6c6c6c;
    --prayer-bg: #f7f7f7;

    color: var(--prayer-text);

    margin: 10px auto 25px;

    position: sticky;
    top: 170px;
}

/* ===============================
   HERO
================================= */

.prayer-hero {
    position: relative;

    margin-bottom: 16px;

    border: 1px solid var(--prayer-border);
    border-radius: 4px;

    overflow: hidden;

    background: #f3f3f3;
}

.prayer-hero__background {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(17, 0, 34, .2), rgba(17, 0, 34, .2)),
        url('../images/namaz-bg.jpg');

    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: cover, cover;
}

.prayer-hero__content {
    position: relative;
    z-index: 2;

    padding: 20px;
}

.prayer-hero__top {
    margin-bottom: 22px;
}

.prayer-hero__city {
    margin: 0 0 18px;

    font-size: 58px;
    font-weight: 400;
    line-height: 1;

    color: var(--prayer-accent);
}

.prayer-hero__controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.prayer-hero__select-wrapper {
    position: relative;
}

.prayer-hero__select {
    min-width: 170px;
    height: 42px;

    padding: 0 16px;

    border: 1px solid #cfcfcf;
    border-radius: 4px;

    background: #ffffff;

    font-size: 15px;
    color: var(--prayer-primary);

    outline: none;
    cursor: pointer;
}

.prayer-hero__date {
    font-size: 18px;
    font-weight: 700;
    color: var(--prayer-muted);
}

.prayer-hero__date_m {
    display: none;
    font-size: 18px;
    line-height: 25px;
    font-weight: 700;
    color: var(--prayer-muted);
}

/* ===============================
   DAILY TIMES
================================= */

.prayer-daily {
    background: rgba(255, 255, 255, .9);

    border: 1px solid #ececec;
}

.prayer-daily__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.prayer-daily__item {
    text-align: center;
}

.prayer-daily__label {
    padding: 12px 8px;

    border-bottom: 1px solid var(--prayer-border);

    font-size: 15px;
    font-weight: 700;
    color: var(--prayer-primary);
}

.prayer-daily__time {
    padding: 14px 8px;

    font-size: 15px;
    color: #3f3f3f;
}

.prayer-daily__time.active {
    font-weight: 700;
    color: var(--prayer-primary);
}

/* ===============================
   MONTH TITLE
================================= */

.prayer-month-title {
    margin-bottom: 18px;
    padding: 10px 16px;

    background: var(--prayer-accent);

    text-align: center;

    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* ===============================
   TABLE
================================= */

.prayer-table {
    overflow: hidden;
}

.prayer-table__wrapper {
    overflow-x: auto;

    border-radius: 4px;
}

.prayer-table__wrapper::-webkit-scrollbar {
    height: 6px;
}

.prayer-table__wrapper::-webkit-scrollbar-thumb {
    background: #cccccc;
}

.prayer-table__table {
    width: 100%;
    min-width: 920px;

    border-collapse: collapse;

    background: #ffffff;
}

.prayer-table__head {
    background: #ffffff;
}

.prayer-table__th {
    padding: 16px 12px;

    border-bottom: 2px solid #e7e7e7;

    text-align: center;

    font-size: 14px;
    font-weight: 700;
    color: var(--prayer-primary);

    white-space: nowrap;
}

.prayer-table__td {
    padding: 18px 12px;

    border-bottom: 1px solid #ececec;

    text-align: center;

    font-size: 14px;
    color: #434343;

    white-space: nowrap;
}

.prayer-table__td--date {
    font-weight: 700;
    color: var(--prayer-primary);
}

.prayer-table__body .prayer-table__row:nth-child(even) {
    background: #fafafa;
}

/* ===============================
   HOVER
================================= */

.prayer-table__body .prayer-table__row {
    transition: background .2s ease;
}

.prayer-table__body .prayer-table__row:hover {
    background: #f1fbfc;
}

.prayer-table__body .prayer-table__row.current {
    background: var(--prayer-primary);
}

.prayer-table__body .prayer-table__row.current .prayer-table__td {
    color: #fff;
}

/* ===============================
   RESPONSIVE
================================= */

@media only screen and (max-width: 1024px) {

    .prayer-hero__content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .prayer-hero__controls {
        display: flex;
        flex-direction: column-reverse;
    }

    .prayer-hero__city {
        font-size: 48px;
    }

    .prayer-daily__grid {
        grid-template-columns: repeat(1, minmax(0, 412px));
    }

    .prayer-daily__item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #ececec;
    }

    .prayer-daily__label {
        border: none;
    }
}

@media only screen and (max-width: 768px) {

    .prayer-hero__background {
        display: none;
    }

    .prayer-hero__city {
        font-size: 34px;
    }

    .prayer-hero__select {
        width: 100%;
        min-width: 100%;
    }

    .prayer-hero__controls {
        gap: 10px;
    }

    .prayer-daily__grid {
        grid-template-columns: repeat(1, minmax(0, 250px));
    }

    .prayer-month-title {
        font-size: 16px;
    }

    .prayer-table__th,
    .prayer-table__td {
        padding: 14px 10px;

        font-size: 13px;
    }

    /* table */
    .prayer-table__head {
        display: none;
    }

    .prayer-table__table,
    .prayer-table__body,
    .prayer-table__row,
    .prayer-table__td {
        display: block;
        width: 100%;
    }

    .prayer-table__table {
        min-width: 100%;
        background: transparent;
    }

    .prayer-table__wrapper {
        overflow: visible;
    }

    .prayer-table__row {
        margin-bottom: 16px;
        padding: 14px 16px;

        border: 1px solid #e9e9e9;
        border-radius: 12px;

        background: #ffffff;

        box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    }

    .prayer-table__td {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 20px;

        padding: 12px 0;

        border-bottom: 1px solid #f1f1f1;

        font-size: 14px;
        line-height: 1.4;

        text-align: right;
    }

    .prayer-table__td:last-child {
        border-bottom: 0;
    }

    .prayer-table__td::before {
        content: attr(data-label);

        flex-shrink: 0;

        font-weight: 700;
        color: #110022;

        text-align: left;
    }

    .prayer-table__td--date {
        font-weight: 700;
        color: #07b4c7;
    }

    .prayer-table__td--date::before {
        color: #07b4c7;
    }
}

@media only screen and (max-width: 578px) {
    .prayer-hero__content {
        flex-direction: column;
    }

    .prayer-hero__top {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .prayer-hero__controls {
        display: flex;
        flex-direction: row;
    }

    .prayer-hero__city {
        margin: 0;
    }

    .prayer-hero__date {
        display: none;
    }

    .prayer-hero__date_m {
        display: block;
    }

    .prayer-daily {
        width: 100%;
    }

    .prayer-daily__grid {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 390px) {

    .prayer-hero__city {
        font-size: 30px;
    }
}