.bg-grey {
    background-color: #f5f5f5;
}

.small {
    font-size: 13px;
}

.cv-options-container .form-check-area {
    padding: 6px;
    border-radius: 8px;
}

.cv-options-container .form-check-area.active .form-check-label {
    color: #2466C9;
    font-weight: bold;
}

.cv-options-container .form-check-area:hover,
.cv-options-container .form-check-area.active {
    background: #E5F0FF;
}

.options-panel {
    border: 1px solid #2466C9;
    border-radius: 8px;
    padding: 10px 8px;
}

.language-buttons button {
    font-size: 12px;
}

#jobPosition {
    height: 38px;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid #DEDEDE;
    font-size: 14px;
}

#jobPosition:focus {
    outline: none;
    box-shadow: none;
}

#jobPosition::placeholder {
    color: #959595;
    font-size: 14px;
}

.btn-upload-cv {
    background: #E5F0FF;
    border-radius: 20px;
    padding: 6px 25px;
    color: #2466C9;
    font-weight: bold;
}

.cv-list {
    border-radius: 8px;
    max-height: 270px;
    overflow-y: auto;
}

.cv-item {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    margin-bottom: .5rem;
}

.cv-item.selected,
.cv-item:hover {
    background-color: #E5F0FF;
}

.cv-item .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.cv-details {
    display: flex;
    flex-direction: column;
}

.cv-date {
    color: #6c757d;
    font-size: 12px;
    margin-top: 2px;
}

.view-cv {
    color: #272727;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 80px;
    text-decoration: none;
}

.view-cv:hover {
    text-decoration: none;
}

.form-check-input:checked {
    background-color: #2466C9;
    border-color: #2466C9;
}

.cv-item .form-check-label {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 0;
    margin-top: 0;
}

.cv-item.selected .form-check-label,
.cv-item:hover .form-check-label {
    color: #2466C9;
}

.view-cv i {
    padding-top: 4px;
}

.form-check-input:focus {
    box-shadow: none;
}

.read-more {
    position: relative;
    color: #34495e;
    text-decoration: none;
    cursor: text;
}

.read-more .trigger {
    display: block;
    position: absolute;
    bottom: 0;
    cursor: pointer;
    color: #2980b9;
    font-weight: bold;
}

.read-more .content {
    position: relative;
    overflow: hidden;
    max-height: 89.6px;
    transition: max-height 500ms ease;
}

.read-more .content::before {
    content: "";
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 50%, white 100%);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 44.8px;
    transition: opactiy 500ms ease, visibility 500ms ease;
}

.read-more.expanded .content {
    max-height: 100%;
}

.read-more.expanded .content::before,
.read-more.expanded .trigger {
    opacity: 0;
    visibility: hidden;
}

#table-of-contents {
    background: #F1F7FF;
    padding: 10px;
    border-radius: 5px;
}

#table-of-contents .content-index {
    color: #2466C9;
    font-weight: bold;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 10px;
}

#table-of-contents ul {
    padding-left: 0;
    margin: 0;
    list-style-type: none;
}

#table-of-contents ul li {
    margin-bottom: 10px;
}

#table-of-contents .h2-item ul {
    margin-top: 10px;
}

#table-of-contents .h2-item a {
    font-weight: bold;
    color: #000;
}

#table-of-contents .h3-item a {
    padding-left: 20px;
    font-weight: normal;
}

.desc table {
    margin: 10px 0;
}

.desc td {
    border: 1px solid #ddd;
    padding: 5px;
}

.desc h2 {
    font-size: 20px;
}

.desc h3 {
    font-size: 18px;
}

.desc ul {
    padding-left: 15px;
}

.desc img {
    max-width: 800px;
    display: block;
    margin: 10px auto;
}

@media all and (max-width: 500px) {
    .desc img {
        width: 100% !important;
        height: auto !important;
    }
}

.cv-related-owl {
    position: relative;
}

.cv-related-owl .owl-nav button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #2466C9 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 34px;
    height: 34px;
    line-height: 34px !important;
    font-size: 14px !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(36, 102, 201, 0.35);
    transition: background 0.2s, box-shadow 0.2s;
    z-index: 10;
}

.cv-related-owl .owl-nav .owl-prev { left: -17px; }
.cv-related-owl .owl-nav .owl-next { right: -17px; }

.cv-related-owl .owl-nav button:hover {
    background: #1a4fa0 !important;
    box-shadow: 0 4px 12px rgba(36, 102, 201, 0.45);
}

.cv-related-owl .owl-nav button.disabled {
    background: #c0cfe8 !important;
    box-shadow: none;
    cursor: default;
}

.iframe-preview-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.iframe-preview-wrapper iframe {
    width: 794px;
    height: 1123px;
    border: none;
    transform-origin: top left;
    display: block;
}

.iframe-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(36, 102, 201, 0.2);
    border-top-color: #2466C9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.iframe-fallback {
    width: 100%;
}