/* ===================================
   VACANCIES PAGE STYLES
   ================================== */

/* Introduction Section */
.vacancy-intro {
    background: linear-gradient(135deg, #00bcd4 0%, #2c3e50 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
}

.vacancy-intro p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Call Button */
.call-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #2196F3 ;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.call-button svg {
    width: 20px;
    height: 20px;
}

.call-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Vacancies Grid */
.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Vacancy Card */
.vacancy-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.vacancy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.vacancy-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #00bcd4 0%, #2c3e50 100%);
}

/* Card Content */
.vacancy-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vacancy-card-date {
    color: #5c5c5c;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.vacancy-card-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.vacancy-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; 
    line-clamp: 3; 
    overflow: hidden;
}

.vacancy-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.read-more-link {
    color: #1976D2;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more-link:hover {
    gap: 0.75rem;
    color: #00BCD4;
}

/* No Vacancies Message */
.no-vacancies {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    display: none; /* Extracted from inline style */
}

.no-vacancies-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-vacancies h3 {
    color: #333;
    margin-bottom: 1rem;
}

.no-vacancies p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.no-vacancies a {
    color: #2196F3;
    font-weight: 600;
}

.supported-formats p.file-size-info { /* New class for the p tag */
    margin-top: 0.8rem;
    font-size: 0.85rem;
}


/* ===================================
   VACANCY MODAL
   ================================== */

.vacancy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.vacancy-modal.active {
    display: flex;
}

.vacancy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.vacancy-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

/* hide scroll bar in chrome, safari */
.vacancy-modal-content::-webkit-scrollbar {
    display:none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vacancy-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 64, 64, 0.664);
    border: none;
    border-radius: 50%;
    font-size: 2.6rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #000000;
    font-weight: 400;
    padding: 0;
}

.vacancy-modal-close:hover {
    background: rgb(255, 64, 64);
    transform:  scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.vacancy-modal-body {
    display: flex;
    flex-direction: column;
}

.vacancy-modal-image {
    width: 100%;
    height:100%;
    object-fit: cover;
    background: linear-gradient(135deg, #00bcd4 0%, #2c3e50 100%);
}

.vacancy-modal-info {
    padding: 2rem;
}

.vacancy-modal-date {
    color: #5c5c5c;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
    padding-left: 5px;
}

.vacancy-modal-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-left: 5px;
    margin-top: 0 !important;
}

.vacancy-modal-description {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    white-space: pre-wrap;
    padding-left: 5px;
}

.vacancy-modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 3px solid #75757552;
}

.apply-btn,
.call-btn {
    flex: 1;
    min-width: 200px;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.apply-btn {
    background: #2295f3;
    color: white;
}

.apply-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.call-btn {
    background: #4caf50;
    color: white;
}

.call-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.call-btn svg {
    width: 18px;
    height: 18px;
}

/* ===================================
   RESPONSIVE DESIGN
   ================================== */

@media (max-width: 768px) {

    .vacancy-intro p {
    font-size: 1.1rem;
    }

    .vacancies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .vacancy-card-image {
        height: 200px;
    }
    
    .vacancy-modal-content {
        width: 95%;
    }
    
    .vacancy-modal-info {
        padding: 1.5rem;
    }
    
    .vacancy-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .vacancy-modal-actions {
        flex-direction: column;
    }
    
    .apply-btn,
    .call-btn {
        width: 100%;
        min-width: auto;
    }
    .apply-btn{
        margin-bottom: 0;
    }
    .call-btn{
        margin-top: 0;
    }  
}

@media (max-width: 480px) {
    .vacancy-intro {
        padding: 1.5rem;
    }
    
    .call-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
