.rsp-hero {
    max-width: 46rem;
    margin: 0;
    padding-top: 1rem;
}

.rsp-hero__title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--bs-body-color);
    margin-bottom: 1rem;
}

.rsp-hero__title .accent {
    color: var(--bs-primary);
}

.rsp-hero__lead {
    font-size: 1.1rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

.rsp-group {
    margin-top: 3.5rem;
}

.rsp-group__title {
    font-size: clamp(1.35rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--bs-body-color);
    margin-bottom: 0.35rem;
}

.rsp-group__desc {
    color: var(--bs-secondary-color);
    margin-bottom: 1.75rem;
    max-width: 42rem;
}

.rsp-card {
    height: 100%;
    background-color: #fff;
    border: 1px solid var(--brand-border, #e2e8f0);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.rsp-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: var(--bs-primary-bg-subtle);
    border: 1px solid rgba(29, 78, 216, 0.12);
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.rsp-card__icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.rsp-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bs-body-color);
    margin-bottom: 0.4rem;
}

.rsp-card__desc {
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

/* Okvir "uređaja" oko primjera — jasno signalizira da je ovo prikaz onoga što razred
   vidi na svom zaslonu/mobitelu, odvojeno od ostatka marketinške stranice. */
.rsp-device {
    background: #f4f5f7;
    border: 1px solid var(--brand-border, #e2e8f0);
    border-radius: 1.5rem;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.08);
}

.rsp-device__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background-color: #f4992e;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.9rem;
}

.rsp-device__header {
    text-align: center;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.rsp-device__header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.rsp-device__header .rsp-sat {
    font-size: 15px;
    color: #555;
    font-variant-numeric: tabular-nums;
}

.rsp-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 520px) {
    .rsp-status-grid {
        grid-template-columns: 1fr;
    }
}

.rsp-status-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    border-top: 5px solid #1e8e3e;
}

.rsp-status-card.next {
    border-top-color: #1d4ed8;
}

.rsp-status-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #595959;
    font-weight: bold;
    margin-bottom: 6px;
}

.rsp-status-subject {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
}

.rsp-status-detail {
    font-size: 13px;
    color: #444;
}

.rsp-status-time {
    font-size: 12px;
    color: #595959;
    margin-top: 6px;
}

.rsp-obavijest {
    background: #fff8e1;
    border: 1px solid #f0d878;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #5c4a06;
}

.rsp-obavijest .rsp-obavijest-datum {
    font-weight: bold;
    margin-right: 6px;
}

.rsp-grid-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.rsp-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    table-layout: fixed;
}

.rsp-grid th, .rsp-grid td {
    vertical-align: top;
}

.rsp-grid thead th {
    background: #eef1f5;
    color: #333;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.35rem;
    text-align: center;
    white-space: nowrap;
}

.rsp-grid thead th.rsp-dan-stupac {
    background: transparent;
}

.rsp-grid .rsp-sat-oznaka {
    font-size: 0.85rem;
    font-weight: 700;
}

.rsp-grid .rsp-sat-vrijeme {
    font-size: 0.65rem;
    font-weight: 400;
    color: #475569;
}

.rsp-grid .rsp-dan-stupac {
    width: 3.6rem;
    min-width: 3.6rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    background: #f4f5f7;
    border-radius: 0.5rem;
    padding: 0.5rem 0.5rem;
    white-space: nowrap;
}

tr.rsp-danas .rsp-dan-stupac {
    background: #1e8e3e;
    color: #fff;
}

.rsp-grid .rsp-celija {
    min-width: 8rem;
    padding: 0;
}

.rsp-celija-split {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 3rem;
}

.rsp-blok {
    flex: 1;
    border-radius: 0.6rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    line-height: 1.3;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.rsp-blok-grupa {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #333;
}

.rsp-blok-predmet {
    font-weight: 700;
    color: #1a1a1a;
}

.rsp-blok-meta {
    font-size: 0.75rem;
    color: #333;
}

.rsp-legenda {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 0.6rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    text-align: center;
}

.rsp-legenda__item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.rsp-legenda__broj {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rsp-cta {
    margin-top: 4rem;
    text-align: center;
    background: var(--bs-primary-bg-subtle);
    border: 1px solid rgba(29, 78, 216, 0.14);
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
}

.rsp-cta__title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--bs-body-color);
    margin-bottom: 0.6rem;
}

.rsp-cta__desc {
    color: var(--bs-secondary-color);
    max-width: 34rem;
    margin: 0 auto 1.5rem;
}
