.comp-page {
    margin-top: 20px;
    padding-bottom: 20px;
}

.comp-hero {
    text-align: center;
    letter-spacing: 1px;
}

.comp-hero-text {
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.comp-hero-note {
    text-align: center;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-top: 0;
}

.comp-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 18px 0 8px;
}

.comp-stat {
    background: rgba(56, 132, 146, 0.08);
    border: 1px solid rgba(56, 132, 146, 0.25);
    border-radius: 20px;
    padding: 10px 26px;
    margin: 6px;
    min-width: 170px;
}

.comp-stat b {
    display: block;
    font-size: 22px;
    color: var(--primary-dark-color);
}

.comp-stat span {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.comp-stat-muted {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

.comp-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 24px 0 8px;
    border-bottom: 2px solid rgba(56, 132, 146, 0.2);
}

.comp-tab a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.comp-tab a:hover {
    color: var(--primary-color);
}

.comp-tab.is-active a {
    color: var(--primary-dark-color);
    border-bottom-color: var(--primary-color);
    background: rgba(56, 132, 146, 0.08);
}

.comp-tab-count {
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    line-height: 18px;
    min-width: 20px;
    padding: 0 7px;
    text-align: center;
}

.comp-tab.is-active .comp-tab-count {
    background: var(--primary-dark-color);
}

.comp-section-count {
    font-size: 12px;
    color: #777;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.comp-empty {
    text-align: center;
    padding: 50px 20px;
    color: #777;
}

.comp-empty i.material-icons {
    font-size: 46px;
    color: rgba(56, 132, 146, 0.5);
}

.comp-empty a {
    color: var(--primary-color);
    text-decoration: underline;
}

.comp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: 0.25s;
}

.comp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.comp-card .card-image {
    position: relative;
}

.comp-card .card-image img {
    object-fit: cover;
}

.comp-badges {
    position: absolute;
    top: 10px;
    left: 10px;
}

.comp-chip {
    display: inline-block;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    color: #fff;
}

.comp-chip-live {
    background: #2e7d32;
}

.comp-chip-closed {
    background: #757575;
}

.comp-card .card-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 74px;
}

.comp-name {
    font-size: 16px;
    line-height: 22px;
}

.comp-card .card-heading > small {
    align-self: flex-start;
}

.comp-card .card-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 5px 14px 16px 14px;
}

.comp-card .card-panel > .name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: -7px -14px 0 -14px;
}

.comp-card .card-panel > .name i.material-icons {
    font-size: 15px;
}

.comp-meta {
    list-style: none;
    margin: 12px 0 14px;
    padding: 0;
    flex: 1;
}

.comp-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.comp-meta li:last-child {
    border-bottom: none;
}

.comp-meta li i.material-icons {
    color: var(--primary-color);
}

.comp-meta small {
    display: block;
    font-size: 11px;
    color: #888;
    letter-spacing: 0.5px;
}

.comp-meta span {
    font-size: 13px;
}

.comp-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.comp-btn-row .enroll-btn,
.comp-btn-row .syllabus-btn {
    flex: 1 1 120px;
    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
}

.comp-card-closed .card-image img {
    filter: grayscale(1);
    opacity: 0.7;
}

.comp-card-closed .card-heading {
    color: #777;
}

/* Exam details page */
.comp-detail-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid rgba(56, 132, 146, 0.18);
    padding: 20px;
}

.comp-detail-image {
    position: relative;
    width: 360px;
    max-width: 100%;
}

.comp-detail-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 6px;
}

.comp-detail-image .comp-badges {
    top: 12px;
    left: 12px;
}

.comp-detail-body {
    flex: 1;
    min-width: 280px;
}

.comp-detail-body h5 {
    letter-spacing: 1px;
    margin: 0 0 4px 0;
}

.comp-detail-sub {
    font-size: 13px;
    color: #777;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.comp-detail-body .enroll-btn {
    border-radius: 20px;
    margin-top: 10px;
}

/* Participation form */
.comp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.comp-form-page {
    margin-top: 20px;
    padding-bottom: 20px;
}

.comp-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comp-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.comp-info-list li i.material-icons {
    color: var(--primary-color);
}

.comp-info-list li b {
    margin-left: auto;
    color: var(--primary-dark-color);
}

.comp-form-card .form-error-message {
    display: block;
    background: rgba(229, 57, 53, 0.1);
    color: #c62828;
}

.comp-form-card .form-success-message {
    display: block;
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

@media screen and (max-width: 800px) {
    .comp-tab a {
        padding: 10px 14px;
        font-size: 13px;
    }

    .comp-detail-image,
    .comp-detail-image img {
        width: 100%;
        height: 190px;
    }
}
