.rnd-detail-main {
    background: #f7fbff;
    color: #0f3477;
    padding: 34px 0 70px;
}

.rnd-detail-wrap {
    width: min(1180px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.rnd-breadcrumb {
    color: #0057d9;
    font-size: 14px;
    margin-bottom: 32px;
}

.rnd-breadcrumb a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.rnd-breadcrumb a:hover {
    text-decoration: underline;
}

.rnd-hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 430px;
    gap: 36px;
    align-items: center;
    margin-bottom: 34px;
}

.rnd-category-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 16px;
    border-radius: 999px;
    background: #e4f0ff;
    color: #0057d9;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.rnd-hero-text h1 {
    margin: 0 0 18px;
    font-size: 52px;
    line-height: 1.08;
    color: #0d3479;
    font-weight: 800;
}

.rnd-hero-text p {
    max-width: 610px;
    margin: 0 0 24px;
    color: #354f7f;
    font-size: 17px;
    line-height: 1.65;
}

.rnd-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;
    color: #405985;
    font-size: 14px;
}

.rnd-meta-row i {
    color: #0057d9;
    margin-right: 8px;
}

.rnd-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #14885f;
    font-weight: 800;
}

.rnd-status i {
    width: 12px;
    height: 12px;
    background: #20c785;
    border-radius: 50%;
    display: inline-block;
    margin: 0;
}

.rnd-status.completed {
    color: #3c6fb6;
}

.rnd-status.completed i {
    background: #6e9ee8;
}

.rnd-status.upcoming {
    color: #b56a16;
}

.rnd-status.upcoming i {
    background: #f6a63a;
}

.rnd-status.suspended {
    color: #b34343;
}

.rnd-status.suspended i {
    background: #ec6464;
}

.rnd-main-image {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(25, 70, 125, 0.08);
}

.rnd-tabs-card,
.rnd-side-card {
    background: #fff;
    border: 1px solid #dfe8f6;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(21, 67, 130, 0.06);
}

.rnd-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom: 1px solid #dfe8f6;
}

.rnd-tabs button {
    height: 70px;
    border: none;
    background: transparent;
    color: #40516f;
    font-weight: 800;
    cursor: pointer;
    position: relative;
}

.rnd-tabs button i {
    margin-right: 8px;
    color: #52627c;
}

.rnd-tabs button.active {
    color: #0057d9;
}

.rnd-tabs button.active i {
    color: #0057d9;
}

.rnd-tabs button.active::after {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 0;
    height: 3px;
    background: #0057d9;
    border-radius: 10px 10px 0 0;
}

.rnd-tab-content {
    display: none;
    padding: 34px 38px;
}

.rnd-tab-content.active {
    display: block;
}

.rnd-info-block {

    grid-template-columns: 70px 1fr;
    gap: 24px;
    padding: 0 0 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e4edf8;
}

.rnd-info-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rnd-info-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #edf5ff;
    color: #0057d9;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.rnd-info-block h2,
.rnd-editor-text h2 {
    margin: 0 0 10px;
    color: #0050c8;
    font-size: 21px;
    font-weight: 800;
}

.rnd-info-block p,
.rnd-editor-text p,
.rnd-editor-text li {
    margin: 0;
    color: #344f82;
    font-size: 16px;
    line-height: 1.7;
}

.rnd-editor-text ul {
    margin-top: 12px;
    padding-left: 22px;
}

.rnd-info-block ul {
    margin: 0;
    padding-left: 18px;
    color: #344f82;
    line-height: 1.7;
}

.rnd-inline-files {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.rnd-inline-files a {
    padding: 16px;
    border: 1px solid #e4edf8;
    border-radius: 10px;
    color: #0057d9;
    text-decoration: none;
    font-weight: 800;
}

.rnd-inline-files i {
    margin-right: 10px;
}

.rnd-blue-cta {
    margin-top: 26px;
    background: linear-gradient(90deg, #0046c7, #0057d9);
    color: white;
    border-radius: 12px;
    padding: 30px 36px;
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 26px;
    align-items: center;
    box-shadow: 0 16px 36px rgba(0, 87, 217, 0.22);
}

.rnd-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.16);
    font-size: 30px;
}

.rnd-blue-cta h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.rnd-blue-cta p {
    margin: 0;
    opacity: 0.95;
}

.rnd-blue-cta a {
    min-width: 250px;
    height: 56px;
    background: white;
    color: #0057d9;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
}

.rnd-blue-cta a span {
    margin-left: 8px;
}

.rnd-detail-sidebar {
    display: grid;
    gap: 24px;
}

.rnd-side-card {
    padding: 26px;
}

.rnd-side-card h3 {
    margin: 0 0 20px;
    color: #0d3479;
    font-size: 21px;
    font-weight: 800;
}

.rnd-side-info {
    display: grid;
    grid-template-columns: 38px 1fr 1.25fr;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e4edf8;
}

.rnd-side-info:last-child {
    border-bottom: none;
}

.rnd-side-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf5ff;
    color: #0057d9;
    display: grid;
    place-items: center;
}

.rnd-side-info strong {
    color: #354f7f;
    font-size: 14px;
}

.rnd-side-info span {
    color: #405985;
    font-size: 14px;
}

.side-status {
    display: inline-flex;
    background: #20c785;
    color: white;
    padding: 4px 11px;
    border-radius: 999px;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.side-status.completed {
    background: #6e9ee8;
}

.side-status.upcoming {
    background: #f6a63a;
}

.side-status.suspended {
    background: #ec6464;
}

.rnd-side-files {
    display: grid;
}

.rnd-side-files a {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    gap: 12px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e4edf8;
    color: #0057d9;
    text-decoration: none;
    font-weight: 700;
}

.rnd-side-files a:last-child {
    border-bottom: none;
}

.rnd-side-files > a > i {
    width: 34px;
    height: 34px;
    background: #edf5ff;
    color: #0057d9;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.rnd-side-files span {
    font-size: 14px;
    line-height: 1.35;
}

.rnd-side-files b {
    width: 34px;
    height: 34px;
    border: 1px solid #dfe8f6;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: normal;
}

.rnd-side-empty {
    margin: 0;
    color: #405985;
    font-size: 14px;
    line-height: 1.6;
}

.rnd-related-list {
    display: grid;
    gap: 12px;
}

.rnd-related-item {
    display: grid;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid #e4edf8;
    text-decoration: none;
}

.rnd-related-item:last-child {
    border-bottom: none;
}

.rnd-related-item strong {
    color: #0d3479;
    font-size: 15px;
    line-height: 1.35;
}

.rnd-related-item span {
    width: max-content;
    border-radius: 999px;
    background: #20c785;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.rnd-related-item span.completed {
    background: #6e9ee8;
}

.rnd-related-item span.upcoming {
    background: #f6a63a;
}

.rnd-related-item span.suspended {
    background: #ec6464;
}

@media (max-width: 1100px) {
    .rnd-detail-wrap {
        grid-template-columns: 1fr;
    }

    .rnd-detail-sidebar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 850px) {
    .rnd-hero-row {
        grid-template-columns: 1fr;
    }

    .rnd-tabs {
        grid-template-columns: 1fr;
    }

    .rnd-tabs button.active::after {
        left: 0;
        right: auto;
        width: 4px;
        height: 100%;
    }

    .rnd-blue-cta {
        grid-template-columns: 1fr;
    }

    .rnd-blue-cta a {
        width: 100%;
    }

    .rnd-detail-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .rnd-hero-text h1 {
        font-size: 36px;
    }

    .rnd-tab-content {
        padding: 26px 22px;
    }

    .rnd-info-block {
        grid-template-columns: 1fr;
    }

    .rnd-side-info {
        grid-template-columns: 34px 1fr;
    }

    .rnd-side-info span {
        grid-column: 2;
    }
}
