/* careers.css
   Careers Page Styles - Updated with Horizontal Moving Cards
   Brand Colors: Blue (#005293) and Red (#DC052D)
*/

/* Hero Section */
.careers-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 82, 147, 0.95) 0%, rgba(0, 41, 74, 0.95) 100%);
    padding: 140px 0 100px;
    text-align: center;
    overflow: hidden;
}

.careers-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 5, 45, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 8s ease-in-out infinite;
}

.careers-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 5, 45, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 8s ease-in-out infinite 2s;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.careers-hero .container {
    position: relative;
    z-index: 2;
}

.careers-hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    text-transform: camelcase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.careers-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Why Join Us Section */
.careers-why-join {
    padding: 100px 0;
    background: #fff;
}

.careers-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.careers-why-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #005293;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.careers-why-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #DC052D;
    border-radius: 2px;
}

.careers-why-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.careers-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(0, 82, 147, 0.1), rgba(220, 5, 45, 0.1));
}

.benefit-item i {
    font-size: 24px;
    color: #DC052D;
}

.benefit-item span {
    font-size: 16px;
    font-weight: 500;
    color: #005293;
}

.careers-why-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 82, 147, 0.25);
    height: 450px;
}

.careers-why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.careers-why-image:hover img {
    transform: scale(1.05);
}

.careers-why-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    border-radius: 14px;
    pointer-events: none;
}

/* Testimonials Section - Horizontal Moving Cards */
.careers-testimonials {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.careers-testimonials::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 5, 45, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 15s ease-in-out infinite;
}

.careers-testimonials::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 82, 147, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 15s ease-in-out infinite reverse;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

.careers-testimonials h2 {
    font-size: 42px;
    font-weight: 700;
    color: #005293;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    z-index: 2;
}

.careers-testimonials h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #DC052D;
    border-radius: 2px;
}

.testimonials-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    animation: slideHorizontal 25s linear infinite;
    width: fit-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes slideHorizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

.testimonial-card {
    flex: 0 0 350px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 82, 147, 0.1);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005293, #DC052D);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 82, 147, 0.2);
}

.testimonial-card:hover::before {
    transform: translateX(0);
}

.testimonial-icon {
    margin-bottom: 20px;
    animation: floatIcon 3s ease-in-out infinite;
}

.testimonial-card:nth-child(2) .testimonial-icon {
    animation-delay: 0.3s;
}

.testimonial-card:nth-child(3) .testimonial-icon {
    animation-delay: 0.6s;
}

.testimonial-card:nth-child(4) .testimonial-icon {
    animation-delay: 0s;
}

.testimonial-card:nth-child(5) .testimonial-icon {
    animation-delay: 0.3s;
}

.testimonial-card:nth-child(6) .testimonial-icon {
    animation-delay: 0.6s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-3deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(3deg);
    }
}

.testimonial-icon i {
    font-size: 60px;
    color: #DC052D;
    opacity: 0.2;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(220, 5, 45, 0.3));
}

.testimonial-card:hover .testimonial-icon i {
    opacity: 0.8;
    transform: scale(1.1);
    color: #005293;
}

.testimonial-content {
    position: relative;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    position: relative;
    margin: 0;
    padding: 0 10px;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 30px;
    color: #DC052D;
    opacity: 0.3;
    font-family: serif;
    position: relative;
}

.testimonial-content p::before {
    margin-right: 5px;
}

.testimonial-content p::after {
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonial-card {
        flex: 0 0 300px;
    }
}

@media (max-width: 992px) {
    .careers-hero h1 {
        font-size: 42px;
    }
    
    .careers-why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .careers-why-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .testimonial-card {
        flex: 0 0 280px;
    }
}

@media (max-width: 768px) {
    .careers-hero {
        padding: 120px 0 80px;
    }
    
    .careers-hero h1 {
        font-size: 32px;
    }
    
    .careers-hero p {
        font-size: 16px;
    }
    
    .careers-why-content h2,
    .careers-testimonials h2 {
        font-size: 32px;
    }
    
    .careers-benefits {
        grid-template-columns: 1fr;
    }
    
    .testimonials-track {
        gap: 20px;
    }
    
    .testimonial-card {
        flex: 0 0 260px;
        padding: 30px 20px;
    }
    
    @keyframes slideHorizontal {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 10px));
        }
    }
}

@media (max-width: 480px) {
    .careers-hero h1 {
        font-size: 28px;
    }
    
    .careers-why-content h2,
    .careers-testimonials h2 {
        font-size: 28px;
    }
    
    .testimonial-card {
        flex: 0 0 240px;
        padding: 25px 15px;
    }
    
    .testimonial-content p {
        font-size: 14px;
    }
}