/* Recruit Page Specific Styles */

/* Hero Section */
.recruit-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.recruit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.recruit-hero h1 {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recruit-hero .lead {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Company Introduction Card */
.company-intro-card {
    transition: all 0.3s ease;
}

.company-intro-card:hover {
    transform: translateY(-5px);
}

.company-intro-card .card-body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Training Timeline Section */
.timeline-container {
    position: relative;
    padding-left: 0;
}

.timeline-container .card {
    transition: all 0.3s ease;
    position: relative;
}

.timeline-container .card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.timeline-container .card::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 30px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.timeline-container .card:last-child::before {
    bottom: auto;
    height: 30px;
}

/* Step Number Circles */
.timeline-container .rounded-circle {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-container .card:hover .rounded-circle {
    transform: scale(1.1) rotate(360deg);
}

/* Step Title */
.timeline-container h4 {
    font-weight: 600;
    transition: color 0.3s ease;
}

.timeline-container .card:hover h4 {
    color: var(--primary-color);
}

/* Job Requirements Section */
.job-requirements-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
}

.job-requirements-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Requirement Items */
.requirement-item {
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 1rem;
}

.requirement-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

/* Icon backgrounds with better contrast */
.requirement-item .bg-primary.bg-opacity-10 {
    background-color: rgba(13, 110, 253, 0.15) !important;
    border: 2px solid rgba(13, 110, 253, 0.3);
}

.requirement-item .bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.15) !important;
    border: 2px solid rgba(25, 135, 84, 0.3);
}

.requirement-item .bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border: 2px solid rgba(255, 193, 7, 0.4);
}

.requirement-item .bg-info.bg-opacity-10 {
    background-color: rgba(13, 202, 240, 0.15) !important;
    border: 2px solid rgba(13, 202, 240, 0.3);
}

.requirement-item .bg-danger.bg-opacity-10 {
    background-color: rgba(220, 53, 69, 0.15) !important;
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.requirement-item .bg-secondary.bg-opacity-10 {
    background-color: rgba(108, 117, 125, 0.15) !important;
    border: 2px solid rgba(108, 117, 125, 0.3);
}

.requirement-item .bg-opacity-10 {
    transition: all 0.3s ease;
}

.requirement-item:hover .bg-opacity-10 {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Stronger icon colors */
.requirement-item .text-primary {
    color: #0056b3 !important;
    filter: brightness(0.9);
}

.requirement-item .text-success {
    color: #157347 !important;
    filter: brightness(0.9);
}

.requirement-item .text-warning {
    color: #cc9a06 !important;
    filter: brightness(0.9);
}

.requirement-item .text-info {
    color: #0a7ea4 !important;
    filter: brightness(0.9);
}

.requirement-item .text-danger {
    color: #b02a37 !important;
    filter: brightness(0.9);
}

.requirement-item .text-secondary {
    color: #495057 !important;
    filter: brightness(0.9);
}

.requirement-item i {
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.requirement-item:hover i {
    transform: rotate(360deg);
    filter: brightness(0.8);
}

/* Alert Box for Special Conditions */
.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: none;
    border-left: 4px solid var(--info);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.contact-card i {
    transition: all 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Application Method Box */
.application-method {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.application-method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

/* Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Icon Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fa-star {
    animation: pulse 2s infinite;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .recruit-hero {
        min-height: 300px;
        padding: 2rem 1rem;
    }
    
    .recruit-hero h1 {
        font-size: 2rem;
    }
    
    .recruit-hero .lead {
        font-size: 1rem;
    }
    
    .timeline-container .card {
        margin-bottom: 2rem;
    }
    
    .timeline-container .card::before {
        left: 20px;
        top: 80px;
    }
    
    .timeline-container .rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .timeline-container h4 {
        font-size: 1.3rem;
    }
    
    .job-requirements-card .card-body {
        padding: 2rem !important;
    }
    
    .requirement-item {
        margin-bottom: 1.5rem;
    }
    
    .requirement-item .bg-opacity-10 {
        padding: 0.75rem !important;
    }
    
    .requirement-item i {
        font-size: 1.5rem !important;
    }
    
    .contact-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .recruit-hero {
        min-height: 250px;
    }
    
    .recruit-hero h1 {
        font-size: 1.5rem;
    }
    
    .recruit-hero .lead {
        font-size: 0.9rem;
    }
    
    .timeline-container .card-body {
        padding: 1.5rem !important;
    }
    
    .timeline-container .rounded-circle {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    
    .timeline-container h4 {
        font-size: 1.1rem;
    }
    
    .job-requirements-card .card-body {
        padding: 1.5rem !important;
    }
    
    .requirement-item h5 {
        font-size: 1rem;
    }
    
    .requirement-item p {
        font-size: 0.9rem;
    }
    
    .application-method {
        padding: 1.5rem !important;
    }
}

/* Print Styles */
@media print {
    .recruit-hero {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    
    .timeline-container .card,
    .job-requirements-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }
    
    .contact-card {
        border: 1px solid #dee2e6;
    }
}

/* Accessibility Improvements */
.timeline-container .card:focus,
.requirement-item:focus,
.contact-card:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .company-intro-card .card-body {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        color: #e2e8f0;
    }
    
    .job-requirements-card {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        color: #e2e8f0;
    }
    
    .timeline-container .card {
        background: #2d3748;
        color: #e2e8f0;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
}

/* Custom Scrollbar for Timeline */
.timeline-container::-webkit-scrollbar {
    width: 8px;
}

.timeline-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Floating Application Button */
.floating-apply-btn {
    position: fixed;
    right: 20px;
    bottom: 20px; /* Position at bottom, below the back-to-top button */
    z-index: 999; /* Below back-to-top button */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border-radius: 50px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    animation: pulse-green 2s infinite;
}

.floating-apply-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-apply-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ba87e 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

.floating-apply-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.floating-apply-btn span {
    font-size: 16px;
}

/* Pulse Animation for Application Button */
@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(40, 167, 69, 0.6);
    }
}

/* Adjust back-to-top button position to be above apply button */
.back-to-top-btn {
    bottom: 90px !important; /* Position above the apply button (approx 50px button height + 20px gap + 20px) */
}

/* Mobile Responsive for Floating Application Button */
@media (max-width: 768px) {
    .floating-apply-btn {
        bottom: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .floating-apply-btn i {
        font-size: 16px;
        margin-right: 6px;
    }
    
    .floating-apply-btn span {
        font-size: 14px;
    }
    
    .back-to-top-btn {
        bottom: 85px !important; /* Adjust for mobile apply button */
    }
}

@media (max-width: 576px) {
    .floating-apply-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .floating-apply-btn i {
        font-size: 14px;
        margin-right: 5px;
    }
    
    .floating-apply-btn span {
        font-size: 13px;
    }
    
    .back-to-top-btn {
        bottom: 80px !important; /* Adjust for smaller mobile apply button */
    }
}

/* Application CTA Buttons */
.application-cta-btn {
    position: relative;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none !important;
    border: none;
}

.application-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.application-cta-btn:hover::before {
    width: 400px;
    height: 400px;
}

.application-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
    background: var(--bs-primary) !important;
    color: white !important;
}

.application-cta-btn.btn-success:hover {
    background: var(--bs-success) !important;
}

.application-cta-btn i {
    transition: transform 0.3s ease;
}

.application-cta-btn:hover i.fa-arrow-right {
    transform: translateX(5px);
}

.application-cta-btn:hover i.fa-paper-plane {
    transform: rotate(15deg);
}

/* Animation for CTA buttons */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(13, 110, 253, 0.6);
    }
}

.btn-primary.application-cta-btn {
    animation: pulse-glow 2s infinite;
}

.btn-success.application-cta-btn {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow-success {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(25, 135, 84, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(25, 135, 84, 0.6);
    }
}

.btn-success.application-cta-btn {
    animation: pulse-glow-success 2s infinite;
}
