#video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Ensure the video is behind other content */
    }

    .hero-wrap {
    position: relative;
    overflow: hidden;
    height: 100vh; /* Make sure it takes the full viewport height */
    }


    .ftco-footer {
        padding: 4em 0;
        background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
        color: #fff;
        position: relative;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .ftco-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, #0064e4, transparent);
        opacity: 0.3;
    }

    .ftco-footer .logo a {
        color: #fff;
        font-size: 32px;
        font-weight: 700;
        text-decoration: none;
        letter-spacing: -0.5px;
        display: inline-block;
        position: relative;
    }

    .ftco-footer .logo span {
        display: block;
        font-size: 13px;
        color: #0064e4;
        font-weight: 500;
        margin-top: 5px;
        text-transform: uppercase;
        letter-spacing: 2px;
        opacity: 0.9;
    }

    .footer-header {
        margin-bottom: 3.5rem;
        padding-bottom: 2.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .footer-description {
        color: rgba(255,255,255,0.7);
        font-size: 15px;
        line-height: 1.7;
        margin: 1.5rem 0;
        max-width: 90%;
    }

    .footer-buttons {
        margin-top: 2rem;
        display: flex;
        gap: 1rem;
        justify-content: flex-end;
    }

    .footer-buttons .btn {
        padding: 12px 24px;
        font-weight: 500;
        border-radius: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 13px;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 200px;
    }

    .footer-buttons .btn .ion-ios-arrow-forward {
        margin-left: 8px;
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .footer-buttons .btn:hover .ion-ios-arrow-forward {
        transform: translateX(3px);
    }

    .footer-buttons .btn-primary {
        background: #0064e4;
        border: none;
        box-shadow: 0 4px 15px rgba(0,100,228,0.2);
    }

    .footer-buttons .btn-primary:hover {
        background: #0056c7;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,100,228,0.3);
    }

    .footer-buttons .btn-light {
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.1);
        color: #fff !important;
        backdrop-filter: blur(10px);
    }

    .footer-buttons .btn-light:hover {
        background: rgba(255,255,255,0.12);
        transform: translateY(-2px);
        border-color: rgba(255,255,255,0.2);
    }

    .ftco-footer-widget {
        margin-bottom: 2.5rem;
    }

    .ftco-footer-widget h2 {
        font-size: 15px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        position: relative;
        padding-bottom: 12px;
    }

    .ftco-footer-widget h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 25px;
        height: 2px;
        background: #0064e4;
        border-radius: 2px;
    }

    .ftco-footer-widget ul li {
        margin-bottom: 12px;
        list-style: none;
    }

    .ftco-footer-widget ul li a {
        color: rgba(255,255,255,0.65);
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 14px;
        display: flex;
        align-items: center;
    }

    .ftco-footer-widget ul li a:hover {
        color: #fff;
        transform: translateX(5px);
    }

    .ftco-footer-widget .ion-ios-arrow-forward {
        font-size: 12px;
        color: #0064e4;
        margin-right: 10px;
        transition: all 0.3s ease;
        opacity: 0.8;
    }

    .ftco-footer hr {
        border: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        margin: 2.5rem 0;
    }

    .copyright {
        color: rgba(255,255,255,0.4);
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    @media (max-width: 767.98px) {
        .ftco-footer {
            padding: 3em 0;
        }

        .footer-header {
            text-align: center;
            padding-bottom: 2rem;
            margin-bottom: 2rem;
        }
        
        .footer-buttons {
            margin-top: 1.5rem;
            flex-direction: column;
            align-items: stretch;
        }

        .footer-buttons .btn {
            width: 100%;
        }

        .footer-description {
            text-align: center;
            max-width: 100%;
        }
        
        .ftco-footer-widget {
            text-align: center;
            margin-bottom: 2rem;
        }

        .ftco-footer-widget h2::after {
            left: 50%;
            transform: translateX(-50%);
        }
        
        .ftco-footer-widget ul li a {
            justify-content: center;
        }

        .ftco-footer-widget ul li a:hover {
            transform: translateX(0) translateY(-2px);
        }
    }

    .hover-shadow:hover {
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
        transition: box-shadow 0.3s ease;
    }
    .content-preview {
        max-height: 100px;
        overflow: hidden;
        position: relative;
        transition: max-height 0.3s ease;
    }
    .content-preview.expanded {
        max-height: 1000px;
    }
    .content-preview::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 30px;
        background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
        transition: opacity 0.3s ease;
    }
    .content-preview.expanded::after {
        opacity: 0;
    }
    .view-more-btn {
        cursor: pointer;
        color: #007bff;
        font-size: 0.85rem;
        background: none;
        border: none;
        padding: 0;
        margin-top: 0.5rem;
        display: inline-flex;
        align-items: center;
    }
    .view-more-btn:hover {
        color: #0056b3;
        text-decoration: underline;
    }
    .view-more-btn i {
        margin-left: 0.25rem;
        transition: transform 0.2s ease;
    }
    .view-more-btn.expanded i {
        transform: rotate(180deg);
    }
    .result-card {
        transition: transform 0.2s ease;
    }
    .result-card:hover {
        transform: translateY(-3px);
    }
    .badge {
        font-weight: 500;
        letter-spacing: 0.3px;
    }
    .relevance-score {
        margin-bottom: 1rem;
    }
    .relevance-score .progress {
        height: 6px;
        border-radius: 3px;
        overflow: hidden;
        background-color: #e9ecef;
    }
    .relevance-score .progress-bar {
        border-radius: 3px;
    }
    .card-header {
        border-bottom: none;
        padding: 0.75rem 1rem;
    }
    .card-body {
        padding: 0.5rem 1rem 1rem;
    }
    .card-footer {
        background-color: transparent;
        padding: 0.75rem 1rem;
    }
    .btn-view-document {
        border-radius: 50px;
        padding: 0.375rem 1rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    .btn-view-document:hover {
        background-color: #007bff;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
    }
    
    /* PDF Viewer Styles */
    .pdf-viewer-container {
        display: none;
        margin-top: 1rem;
        background-color: #1e1e1e;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.25);
        overflow: hidden;
        position: relative;
        height: 700px;
        width: 100%;
    }
    .pdf-viewer-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0.75rem;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 10;
    }
    .pdf-close-btn {
        background: rgba(0, 0, 0, 0.6);
        border: none;
        color: white;
        width: 98px;
        height: 33px;
        border-radius: 4%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-right: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
    .pdf-close-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    .pdf-close-btn i {
        font-size: 16px;
    }
    .pdf-iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
    .search-results-layout {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .search-results-column {
        flex: 1;
        min-width: 300px;
    }
    .pdf-viewer-column {
        flex: 2;
        min-width: 500px;
        display: none;
    }
    .pdf-viewer-column.active {
        display: block;
    }
    .search-results-column.full-width {
        flex: 1;
        width: 100%;
    }
    .search-results-column .result-cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    @media (max-width: 992px) {
        .search-results-layout {
            flex-direction: column;
        }
        .search-results-column,
        .pdf-viewer-column {
            width: 100%;
            flex: none;
        }
        .search-results-column .result-cards-grid {
            grid-template-columns: 1fr;
        }
    }
/* Reset some styles for the search results */
.hover-shadow:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    transition: box-shadow 0.3s ease;
}
.content-preview {
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}
.content-preview.expanded {
    max-height: 1000px;
}
.content-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    transition: opacity 0.3s ease;
}
.content-preview.expanded::after {
    opacity: 0;
}

/* New simplified card styles */
.result-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.result-file-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.badge {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}
.badge-pdf {
    background-color: #007bff;
    color: white;
}
.badge-page {
    background-color: #6c757d;
    color: white;
}
.badge-type {
    background-color: #17a2b8;
    color: white;
}
.badge-country {
    background-color: #343a40;
    color: white;
}
.relevance-container {
    margin-bottom: 10px;
}
.relevance-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}
.relevance-bar {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}
.relevance-value {
    height: 100%;
    background-color: #28a745;
    border-radius: 3px;
}
.result-text {
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    margin-bottom: 15px;
    direction: rtl;
    text-align: right;
}
.result-actions {
    display: flex;
    justify-content: space-between;
}
.btn-view-more {
    background: none;
    border: none;
    color: #007bff;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
}
.btn-view-more:hover {
    text-decoration: underline;
}
.btn-view-document {
    border: 1px solid #007bff;
    background-color: white;
    color: #007bff;
    font-size: 14px;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-view-document:hover {
    background-color: #007bff;
    color: white;
}

/* PDF Viewer Styles */
.pdf-viewer-container {
    display: none;
    margin-top: 1rem;
    background-color: #1e1e1e;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.25);
    overflow: hidden;
    position: relative;
    height: 700px;
    width: 100%;
}
.pdf-viewer-container.active {
    display: block;
}
.pdf-viewer-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.75rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}
.pdf-close-btn {
    background: rgba(255, 0, 0);
    border: none;
    color: white;
    width: 98px;
    height: 33px;
    border-radius: 4%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .pdf-close-btn {
        background: rgba(255, 0, 0);
        border: none;
        color: white;
        width: 3rem;
        height: 1rem;
        border-radius: 4%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2sease;
        margin-right: -0.3rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        margin-top: -0.55rem;
    }
}
.pdf-close-btn:hover {
    background-color: rgba(255,0, 0, 0.9);
}
.pdf-close-btn i {
    font-size: 16px;
}

.search-results-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.search-results-column {
    flex: 1;
    min-width: 300px;
}
.pdf-viewer-column {
    flex: 2;
    min-width: 50%;
    display: none;
}
.pdf-viewer-column.active {
    display: block;
}
.search-results-column.full-width {
    flex: 1;
    width: 100%;
}
.search-results-column .result-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
@media (max-width: 992px) {
    .search-results-layout {
        flex-direction: column;
    }
    .search-results-column,
    .pdf-viewer-column {
        width: 100%;
        flex: none;
    }
    .search-results-column .result-cards-grid {
        grid-template-columns: 1fr;
    }
}
.modal-dialog {
    max-width: 550px;
}
.custom-dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    z-index: 1000;
    border-radius: 2%;
    margin-left: 1%
  }
  
  .custom-menu-item {
    display: block;
    color: #343a40;
    padding: 0.5rem 1rem;
    text-decoration: none;  
    font-size: 80%;
  
  }
  
  .custom-menu-item:hover {
    background-color: #0050b8;
    color: white	;  
    border-radius: 2%;
    transition: all 0.1s ease;
  }
  
  .custom-dropdown:hover .custom-dropdown-menu {
    display: block;
  }
  
  .custom-dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
  }

  .search-container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header {
    text-align: center;
    margin-bottom: 25px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

select, input[type="text"] {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

select:focus, input[type="text"]:focus {
    border-color: #0066ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.3);
}

select {
    min-width: 200px;
    cursor: pointer;
}

input[type="text"] {
    flex-grow: 1;
    min-width: 300px;
}

.btn-primary {
    padding: 15px 25px;
    background-color: #0066ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    select, input[type="text"], .btn-primary {
        width: 100%;
        min-width: auto;
    }
    
    .header h1 {
        font-size: 2em;
    }
}
input[type="text"] {
    flex-grow: 1;
    min-width: 196px;
}
#country{
    max-width: 160px;
}
#occupation{
    max-width: 150px;
}
#paye , #occupationn {
    padding-right: 5px;
    padding-left: 2px;
}		
#firstName , #lastName {
    border: 1px solid #ced4da;
}