.exams-page {
    background: #fff;
}

.exams-sub-nav {
    overflow-x: auto;
    border-bottom: 3px solid var(--brand-red);
    background: #fff;
}

.exams-sub-nav-scroll {
    display: flex;
    min-width: max-content;
    padding: 0;
}

.exams-sub-nav-link,
.exams-sub-nav-empty {
    min-height: 48px;
    padding: 13px 17px 10px;
    border-bottom: 3px solid transparent;
    color: #5f5f5f;
    font-size: 15px;
    white-space: nowrap;
}

.exams-sub-nav-link:hover,
.exams-sub-nav-link.is-active {
    border-bottom-color: var(--brand-orange);
    color: var(--brand-red);
}

.exams-sub-nav-link.is-active {
    font-weight: 600;
}

.exams-shell {
    padding-top: 24px;
    padding-bottom: 54px;
}

.exams-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.exams-main {
    min-width: 0;
}

.exams-carousel {
    position: relative;
    height: 320px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f3f4f6;
}

.exams-carousel[hidden] {
    display: none;
}

.exams-carousel .carousel-slide {
    position: relative;
    display: none;
    width: 100%;
    height: 100%;
    color: #fff;
}

.exams-carousel .carousel-slide.active {
    display: block;
}

.exams-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exams-carousel-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(0 0 0 / 48%), transparent 72%);
}

.exams-carousel-copy {
    position: absolute;
    z-index: 1;
    right: 80px;
    bottom: 34px;
    left: 34px;
    display: grid;
    gap: 7px;
}

.exams-carousel.is-single .exams-carousel-copy {
    bottom: 22px;
}

.exams-carousel-copy strong {
    overflow: hidden;
    font-size: 24px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exams-carousel-copy small {
    overflow: hidden;
    opacity: .92;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exams-carousel .carousel-nav-btn {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    background: rgb(0 0 0 / 38%);
    color: #fff;
    cursor: pointer;
}

.exams-carousel .carousel-prev {
    left: 16px;
}

.exams-carousel .carousel-next {
    right: 16px;
}

.exams-carousel .carousel-dots {
    position: absolute;
    z-index: 2;
    bottom: 14px;
    left: 50%;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.exams-carousel .carousel-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgb(255 255 255 / 48%);
    cursor: pointer;
}

.exams-carousel .carousel-dot.active {
    width: 28px;
    border-radius: 8px;
    background: #fff;
}

.exams-tabs .tabs-header {
    display: flex;
    overflow-x: auto;
    border-bottom: 2px solid var(--brand-red);
    background: #f4f4f5;
}

.exams-tabs .tab-btn {
    min-width: max-content;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    background: transparent;
    color: #555;
    cursor: pointer;
    font-size: 15px;
}

.exams-tabs .tab-btn:hover {
    color: var(--brand-red);
}

.exams-tabs .tab-btn.active {
    background: var(--brand-orange);
    color: #fff;
}

.exams-tabs .tabs-content {
    min-height: 735px;
    padding: 24px;
    border: 1px solid #ddd;
    border-top: 0;
    background: #fff;
}

.exams-tabs .tab-pane {
    display: none;
}

.exams-tabs .tab-pane.active {
    display: block;
}

.exams-featured-article {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7e7e7;
}

.exams-featured-image {
    height: 135px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.exams-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exams-featured-article h2 {
    margin: 3px 0 9px;
    font-size: 18px;
    line-height: 1.55;
}

.exams-featured-article h2 a:hover {
    color: var(--brand-red);
}

.exams-featured-article p {
    display: -webkit-box;
    overflow: hidden;
    color: #888;
    font-size: 14px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.exams-article-list li {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.exams-article-list a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exams-article-list a:hover {
    color: var(--brand-red);
}

.exams-article-list time {
    flex: 0 0 auto;
    color: #999;
    font-size: 13px;
}

.exams-sidebar {
    display: grid;
    min-width: 0;
    gap: 24px;
}

.exams-side-card {
    padding: 18px;
    border: 1px solid #ddd;
    background: #fff;
}

.exams-latest {
    min-width: 0;
    min-height: 370px;
    overflow: hidden;
}

.exams-latest-panel[hidden] {
    display: none;
}

.exams-latest-panel,
.exams-latest ul,
.exams-latest li {
    min-width: 0;
    max-width: 100%;
}

.exams-latest li {
    padding: 11px 0;
    border-bottom: 1px dashed var(--brand-red);
}

.exams-latest li:last-child {
    border-bottom: 0;
}

.exams-latest a {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exams-latest a:hover {
    color: var(--brand-red);
}

.exams-side-heading {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.exams-side-heading h2 {
    padding-left: 12px;
    border-left: 4px solid var(--brand-orange);
    font-size: 21px;
    font-weight: 500;
}

.exams-side-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f2f2f2;
}

.exams-side-carousel-slide {
    position: absolute;
    inset: 0;
    display: none;
    color: #fff;
}

.exams-side-carousel-slide.is-active {
    display: block;
    animation: examsSideCarouselFadeIn .6s ease;
}

.exams-side-carousel-slide::after {
    position: absolute;
    inset: 48% 0 0;
    background: linear-gradient(transparent, rgb(0 0 0 / 78%));
    content: '';
    pointer-events: none;
}

.exams-side-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exams-side-carousel-slide:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -4px;
}

.exams-side-carousel-caption {
    position: absolute;
    z-index: 1;
    right: 12px;
    bottom: 42px;
    left: 12px;
}

.exams-side-carousel.is-single .exams-side-carousel-caption {
    bottom: 18px;
}

.exams-side-carousel-title {
    display: block;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgb(0 0 0 / 70%);
    white-space: nowrap;
}

.exams-side-carousel-dots {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.exams-side-carousel-dot {
    position: relative;
    width: 26px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.exams-side-carousel-dot::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(255 255 255 / 62%);
    box-shadow: 0 1px 3px rgb(0 0 0 / 45%);
    content: '';
    transform: translate(-50%, -50%);
    transition: width .2s ease, background-color .2s ease;
}

.exams-side-carousel-dot.is-active::before {
    width: 22px;
    border-radius: 6px;
    background: #fff;
}

.exams-side-carousel-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -8px;
}

.exams-contact p {
    display: flex;
    gap: 12px;
    padding: 7px 0;
    font-size: 14px;
}

.exams-contact strong {
    flex: 0 0 68px;
}

.exams-contact span {
    overflow-wrap: anywhere;
    color: #666;
}

.exams-empty {
    display: grid;
    min-height: 100px;
    place-items: center;
    padding: 18px;
    color: #888;
    background: #fafafa;
    text-align: center;
}

.exams-carousel-empty {
    height: 100%;
}

@keyframes examsSideCarouselFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.exams-custom-detail .container {
    padding-top: 24px;
    padding-bottom: 54px;
}

.exams-custom-detail-panel {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 48px;
}

.exams-custom-detail-body {
    max-width: 900px;
    min-height: 220px;
    margin: 0 auto;
    padding-top: 32px;
    overflow-wrap: anywhere;
}

.exams-custom-detail-body img,
.exams-custom-detail-body video,
.exams-custom-detail-body iframe {
    max-width: 100%;
}

.exams-custom-detail-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 992px) {
    .exams-layout {
        grid-template-columns: 1fr;
    }

    .exams-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .exams-shell {
        padding: 18px 14px 42px;
    }

    .exams-carousel {
        height: 230px;
    }

    .exams-carousel-copy {
        right: 24px;
        bottom: 28px;
        left: 24px;
    }

    .exams-carousel-copy strong {
        font-size: 19px;
    }

    .exams-carousel-copy small {
        display: none;
    }

    .exams-featured-article {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 14px;
    }

    .exams-featured-image {
        height: 86px;
    }

    .exams-featured-article h2 {
        margin-top: 0;
        font-size: 16px;
    }

    .exams-featured-article p {
        display: none;
    }

    .exams-tabs .tabs-content {
        min-height: 665px;
        padding: 16px;
    }

    .exams-article-list time {
        display: none;
    }

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

    .exams-custom-detail .container {
        padding: 18px 14px 42px;
    }

    .exams-custom-detail-panel {
        padding: 22px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .exams-carousel .carousel-slide.active {
        animation: none;
    }

    .exams-side-carousel-slide.is-active {
        animation: none;
    }
}
