/*
Theme Name: ScalarTalent Base
Theme URI: http://example.com/scalartalenttheme-base
Author: Andy Normore
Author URI: http://example.com
Description: A base theme for ScalarTalent with customizable header, footer, and predefined CSS styles for quick color customization.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scalartalenttheme-base
Tags: custom-header, custom-background, custom-logo, custom-menu
*/

/* Add your custom styles here */


/* ATS CUSTOMIZATION */
.text-capitalize {
    text-transform: capitalize;
}
.text-lowecase {
    text-transform: lowercase;
}


/* Main container for all jobs */
.scalartalent-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Individual job card */
.scalartalent-job-card {
    display: flex;
    gap: 20px;
    border: 1px solid #ddd;
    border-radius: 12px; /* Rounded edges */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
    padding: 20px;
}

.scalartalent-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Job image on the left */
.scalartalent-job-image {
    flex: 0 0 150px; /* Fixed width for image */
    height: 150px;
    overflow: hidden;
    border-radius: 12px 0 0 12px; /* Rounded edges on the left */
}

.scalartalent-job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content area on the right */
.scalartalent-job-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scalartalent-job-title {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

.scalartalent-job-title a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.3s ease;
}

.scalartalent-job-title a:hover {
    color: #005880;
}

.scalartalent-job-excerpt {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

.scalartalent-job-date {
    font-size: 0.9rem;
    color: #888;
    margin-top: auto;
}

.scalartalent-applicant-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 12px;
    padding: 4px 0px 4px 0px;
    min-height: 500px;
    justify-content: center; /* Center content vertically */
}

.scalartalent-form-row {
}

.scalartalent-applicant-form input {
    width: 100%;
    border-radius: 8px; /* Rounded edges */
    margin-bottom:20px;
}
.scalartalent-applicant-form textarea {
    padding:4px;
}
.scalartalent-form-row input[type="file"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    background-color: #fff;
    font-size: 14px;
}


.scalartalent-job-button {
    margin:20px 0 20px 0 !important;
    width:100%;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.scalartalent-job-button:hover {
    background-color: #50c7ff;
}

@media (max-width: 768px) {
    .scalartalent-job-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .scalartalent-job-image {
        width: 100%;
        height: auto;
    }

    .scalartalent-job-content {
        gap: 15px;
    }
}

/* LOADER */

.loader {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(#14ffe9, #ffeb3b, #ff00e0);
    animation: animate 0.5s linear infinite;
    margin: 0 auto; /* Center horizontally */
    margin-top:50px;
}

@keyframes animate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  .loader span {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(#14ffe9, #ffeb3b, #ff00e0);
  }

  .loader span:nth-child(1){
    filter: blur(5px);
  }

  .loader span:nth-child(2){
    filter: blur(10px);
  }

  .loader span:nth-child(3){
    filter: blur(25px);
  }

  .loader span:nth-child(4){
    filter: blur(50px);
  }

  .loader:after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    right: 10px;
    background: #240229;
    border-radius: 50%;
  }

/* SUCCESS */
.success-checkmark {
    width: 80px;
    height: 115px;
    margin: 0 auto;

    .check-icon {
        width: 80px;
        height: 80px;
        position: relative;
        border-radius: 50%;
        box-sizing: content-box;
        border: 4px solid #4CAF50;

        &::before {
            top: 3px;
            left: -2px;
            width: 30px;
            transform-origin: 100% 50%;
            border-radius: 100px 0 0 100px;
        }

        &::after {
            top: 0;
            left: 30px;
            width: 60px;
            transform-origin: 0 50%;
            border-radius: 0 100px 100px 0;
            animation: rotate-circle 4.25s ease-in;
        }

        &::before, &::after {
            content: '';
            height: 100px;
            position: absolute;
            transform: rotate(-45deg);
        }

        .icon-line {
            height: 5px;
            background-color: #4CAF50;
            display: block;
            border-radius: 2px;
            position: absolute;
            z-index: 10;

            &.line-tip {
                top: 46px;
                left: 14px;
                width: 25px;
                transform: rotate(45deg);
                animation: icon-line-tip 0.75s;
            }

            &.line-long {
                top: 38px;
                right: 8px;
                width: 47px;
                transform: rotate(-45deg);
                animation: icon-line-long 0.75s;
            }
        }

        .icon-circle {
            top: -4px;
            left: -4px;
            z-index: 10;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            position: absolute;
            box-sizing: content-box;
            border: 4px solid rgba(76, 175, 80, .5);
        }

        .icon-fix {
            top: 8px;
            width: 5px;
            left: 26px;
            z-index: 1;
            height: 85px;
            position: absolute;
            transform: rotate(-45deg);
        }
    }
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 45px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}