.cfv2-home-search {
    max-width: 760px;
    margin: 24px auto;
}

.cfv2-home-search-form {
    display: flex;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #d9deea;
    border-radius: 12px;
    padding: 8px;
}

.cfv2-home-search-form select,
.cfv2-home-search-form input,
.cfv2-home-search-form button {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #d9deea;
    font-size: 16px;
}

.cfv2-home-search-form select {
    min-width: 150px;
    padding: 0 12px;
    background: #fff;
}

.cfv2-home-search-form input {
    flex: 1;
    padding: 0 14px;
}

.cfv2-home-search-form button {
    min-width: 120px;
    border: 0;
    background: #1877f2;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.cfv2-listing-wrap {
    max-width: 1240px;
    margin: 24px auto;
    padding: 0 16px;
    font-family: var(--cfv2-font-family, inherit);
    font-size: var(--cfv2-base-font-size, 16px);
}

.cfv2-university-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    align-items: start;
}

.cfv2-course-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    align-items: start;
}

.cfv2-course-sidebar {
    border: 1px solid #d8dde8;
    border-radius: 3px;
    background: #f5f7fa;
    padding: 18px;
}

.cfv2-course-sidebar h3 {
    margin: 0 0 14px;
    font-size: var(--cfv2-heading-font-size, 32px);
    line-height: 1.2;
    font-weight: 700;
}

.cfv2-course-filter-form label,
.cfv2-course-checkbox-group {
    display: block;
    margin-bottom: 16px;
}

.cfv2-course-filter-form span,
.cfv2-course-checkbox-group strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: var(--cfv2-label-font-size, 14px);
}

.cfv2-course-filter-form select {
    width: 100%;
    height: 40px;
    border: 1px solid #cfd6e2;
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
}

.cfv2-course-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 14px;
}

.cfv2-course-layout .cfv2-results {
    border-left: 1px solid #d8dde8;
    padding-left: 18px;
}

.cfv2-course-layout .cfv2-results-head {
    margin-bottom: 10px;
}

.cfv2-course-layout .cfv2-results-head h3 {
    font-size: var(--cfv2-heading-font-size, 32px);
    font-weight: 700;
}

.cfv2-course-layout .cfv2-results-head p {
    display: none;
}

.cfv2-course-search {
    margin-bottom: 16px;
}

.cfv2-course-search input {
    width: 100%;
    height: 40px;
    border: 1px solid #d9deea;
    border-radius: 6px;
    padding: 0 12px;
}

.cfv2-course-layout .cfv2-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.cfv2-course-card {
    border: 1px solid #d8dde8;
    border-radius: 3px;
    background: #fff;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cfv2-course-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.cfv2-course-logo-wrap {
    width: 96px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfv2-course-logo {
    max-width: 96px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cfv2-course-info h4 {
    margin: 0 0 6px;
    font-size: var(--cfv2-card-title-size, 24px);
    font-weight: 700;
    line-height: 1.15;
}

.cfv2-course-university,
.cfv2-course-meta {
    margin: 0 0 3px;
    font-size: 14px;
    color: #111827;
}

.cfv2-course-actions {
    width: 100px;
    display: grid;
    gap: 6px;
}

.cfv2-course-actions .cfv2-btn {
    width: 100%;
    min-height: 28px;
    line-height: 28px;
    border-radius: 2px;
    font-size: 14px;
}

.cfv2-course-actions .cfv2-btn-apply {
    background: #070c63;
}

.cfv2-course-actions .cfv2-btn-details {
    background: #2196f3;
    color: #fff;
}

.cfv2-uni-sidebar {
    border: 1px solid #d8dde8;
    border-radius: 3px;
    background: #f5f7fa;
    padding: 18px;
}

.cfv2-uni-sidebar h3 {
    margin: 0 0 14px;
    font-size: var(--cfv2-heading-font-size, 32px);
    line-height: 1.2;
    font-weight: 700;
}

.cfv2-uni-filter-form label,
.cfv2-uni-checkbox-group {
    display: block;
    margin-bottom: 16px;
}

.cfv2-uni-filter-form span,
.cfv2-uni-checkbox-group strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: var(--cfv2-label-font-size, 14px);
}

.cfv2-uni-filter-form input[type='search'],
.cfv2-uni-filter-form select {
    width: 100%;
    height: 40px;
    border: 1px solid #cfd6e2;
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
}

.cfv2-uni-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 14px;
}

.cfv2-university-layout .cfv2-results {
    border-left: 1px solid #d8dde8;
    padding-left: 18px;
}

.cfv2-university-layout .cfv2-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.cfv2-university-layout .cfv2-results-head h3 {
    font-size: var(--cfv2-heading-font-size, 32px);
    font-weight: 700;
}

.cfv2-university-layout .cfv2-results-head p {
    display: none;
}

.cfv2-uni-card {
    border: 1px solid #d8dde8;
    border-radius: 3px;
    background: #fff;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cfv2-uni-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.cfv2-uni-logo-wrap {
    width: 96px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfv2-uni-logo {
    max-width: 96px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cfv2-uni-logo-placeholder {
    width: 96px;
    height: 56px;
    border: 1px solid #d8dde8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
}

.cfv2-uni-info h4 {
    margin: 0 0 6px;
    font-size: var(--cfv2-card-title-size, 24px);
    font-weight: 700;
    line-height: 1.15;
}

.cfv2-uni-info p {
    margin: 0 0 3px;
    font-size: 14px;
    color: #111827;
}

.cfv2-uni-actions {
    width: 100px;
    display: grid;
    gap: 6px;
}

.cfv2-uni-actions .cfv2-btn {
    width: 100%;
    min-height: 28px;
    line-height: 28px;
    border-radius: 2px;
    font-size: 14px;
}

.cfv2-uni-actions .cfv2-btn-apply {
    background: #070c63;
}

.cfv2-uni-actions .cfv2-btn-details {
    background: #2196f3;
    color: #fff;
}

.cfv2-page-search {
    margin-bottom: 14px;
}

.cfv2-page-search-form {
    display: flex;
    gap: 10px;
    border: 1px solid #d9deea;
    border-radius: 14px;
    background: #fff;
    padding: 8px;
}

.cfv2-page-search-form input {
    flex: 1;
    height: 44px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    padding: 0 12px;
}

.cfv2-page-search-form button {
    min-width: 120px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #1877f2;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.cfv2-filters-bar {
    border: 1px solid #d9deea;
    border-radius: 14px;
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
}

.cfv2-filters-bar h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

.cfv2-filter-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.cfv2-filter-form label {
    display: block;
    margin-bottom: 0;
}

.cfv2-filter-form span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.cfv2-filter-form input,
.cfv2-filter-form select {
    width: 100%;
    height: 42px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    padding: 0 10px;
    background: #fff;
}

.cfv2-filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 0;
}

.cfv2-filter-actions button,
.cfv2-filter-actions a {
    flex: 1;
    border: 0;
    border-radius: 10px;
    min-height: 40px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.cfv2-filter-actions button {
    background: #1877f2;
    color: #fff;
    cursor: pointer;
}

.cfv2-filter-actions a {
    background: #eef2fb;
    color: #1f2937;
}

.cfv2-results {
    min-width: 0;
}

.cfv2-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.cfv2-results-head h3 {
    margin: 0;
    font-size: 24px;
}

.cfv2-results-head p {
    margin: 0;
    color: #4b5563;
}

.cfv2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cfv2-card {
    border: 1px solid #d9deea;
    border-radius: 14px;
    background: #fff;
    padding: 16px;
}

.cfv2-card h4 {
    margin: 0 0 8px;
    font-size: 20px;
}

.cfv2-card p {
    margin: 0 0 6px;
    color: #4b5563;
}

.cfv2-buttons {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.cfv2-btn {
    flex: 1;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    line-height: 40px;
    font-weight: 600;
    cursor: pointer;
}

.cfv2-btn-apply {
    background: #16a34a;
    color: #fff;
}

.cfv2-btn-details {
    background: #eef2fb;
    color: #1f2937;
}

.cfv2-empty {
    border: 1px dashed #c8d0e4;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.cfv2-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.cfv2-pagination a,
.cfv2-pagination span {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d9deea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cfv2-pagination .page-numbers.current {
    background: #070c63;
    color: #fff;
    border-color: #070c63;
}

.cfv2-pagination a:hover {
    background: #eef2fb;
}

.cfv2-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 99999;
}

.cfv2-modal[hidden] {
    display: none !important;
}

.cfv2-modal-dialog {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.cfv2-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.cfv2-modal-dialog form {
    display: grid;
    gap: 10px;
}

.cfv2-modal-dialog input,
.cfv2-modal-dialog select,
.cfv2-modal-dialog button {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #d9deea;
    padding: 0 12px;
}

.cfv2-modal-dialog label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #334155;
}

.cfv2-modal-dialog .cfv2-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.cfv2-modal-dialog .cfv2-consent input[type='checkbox'] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

.cfv2-university-layout .cfv2-card.cfv2-uni-card {
    border: 1px solid #d8dde8;
    border-radius: 3px;
    padding: 18px;
}

.cfv2-university-layout .cfv2-uni-info h4 {
    font-size: 21px;
    margin: 0 0 6px;
}

.cfv2-university-layout .cfv2-uni-actions .cfv2-btn {
    border-radius: 2px;
    min-height: 28px;
    line-height: 28px;
    font-size: 14px;
    text-decoration: none;
}

.cfv2-university-layout .cfv2-uni-actions .cfv2-btn-apply {
    background: #070c63;
    color: #fff;
}

.cfv2-university-layout .cfv2-uni-actions .cfv2-btn-details {
    background: #2196f3;
    color: #fff;
}

.cfv2-modal-dialog button[type='submit'] {
    border: 0;
    background: #1877f2;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.cfv2-form-message {
    min-height: 20px;
    margin: 0;
    font-size: 14px;
}

@media (max-width: 992px) {
    .cfv2-university-layout {
        grid-template-columns: 1fr;
    }

    .cfv2-course-layout {
        grid-template-columns: 1fr;
    }

    .cfv2-university-layout .cfv2-results {
        border-left: 0;
        padding-left: 0;
    }

    .cfv2-course-layout .cfv2-results {
        border-left: 0;
        padding-left: 0;
    }

    .cfv2-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .cfv2-home-search-form {
        flex-direction: column;
    }

    .cfv2-page-search-form {
        flex-direction: column;
    }

    .cfv2-filter-form {
        grid-template-columns: 1fr;
    }

    .cfv2-grid {
        grid-template-columns: 1fr;
    }

    .cfv2-uni-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cfv2-course-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cfv2-uni-actions {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .cfv2-course-actions {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }
}
