/* ==========================================================================
   CAREER PAGE REDESIGN - MODERN VIBRANT LIGHT
   ========================================================================== */

/* 1. Hero Section */
.career-hero {
    background-image: url('../img/career/img-1.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 55vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.career-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Vibrant, energetic gradient overlay */
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.75) 0%, rgba(255, 107, 107, 0.85) 100%);
    z-index: -1;
}

.career-hero__title {
    font-size: 5rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    animation: smoothFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.career-hero__subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffeaea;
    letter-spacing: 2px;
    animation: smoothFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes smoothFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* 2. Premium Image Cards Section */
.career-section {
    background-color: #f7f9fb;
    color: #1a1a1a;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.service-card {
    background: #ffffff;
    border-radius: 28px;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    padding: 10px; /* Outer padding so background wraps image perfectly */
}

.service-card:hover {
    background: #ed1c24; /* Brand Red */
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(237, 28, 36, 0.3);
}

.service-card-content {
    padding: 30px 25px 25px;
    flex-grow: 1;
}

.service-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.service-title-wrap h3 {
    color: #222222; /* Deep dark blue/gray */
    font-size: 1.25rem; /* Reduced title size */
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    max-width: 75%;
    transition: color 0.4s ease;
}

.service-card:hover .service-title-wrap h3 {
    color: #ffffff; /* White text on red background */
}

.service-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid #e1e5e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222222;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-arrow i {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotate(-45deg); /* Point up-right */
}

.service-card:hover .service-arrow {
    background: #ffffff;
    border-color: #ffffff;
    color: #ed1c24;
}

.service-card:hover .service-arrow i {
    transform: rotate(-45deg) translate(3px, -3px);
}

.service-card-content p {
    font-size: 0.9rem; /* Reduced text size */
    color: #6a7c85;
    margin: 0;
    font-weight: 500;
    transition: color 0.4s ease;
}

.service-card:hover .service-card-content p {
    color: rgba(255, 255, 255, 0.9); /* Off-white for description */
}

.service-card-image {
    position: relative;
    padding: 0 10px 10px;
    border-radius: 20px;
    overflow: hidden; /* For image scaling animation */
}

.service-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-image img {
    transform: scale(1.08); /* Smooth scale animation on hover */
}

/* Apply Now Overlay */
.apply-overlay {
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: rgba(15, 33, 45, 0.7); /* Elegant dark overlay instead of bright red */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
    z-index: 3;
    text-decoration: none;
}

.service-card:hover .apply-overlay {
    opacity: 1;
}

.apply-btn {
    background: #ed1c24; /* Red button */
    color: #ffffff; /* White text */
    padding: 8px 22px; /* Smaller padding */
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px; /* Smaller font */
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 5px 15px rgba(237, 28, 36, 0.3);
}

.service-card:hover .apply-overlay .apply-btn {
    transform: translateY(0);
}

/* Badges removed per user request */

/* 3. Modern Floating Form Section */
.application-section {
    padding: 100px 0;
    background: #f8f9fb;
    position: relative;
}

.application-section .section-title {
    color: #1a1a1a;
    font-weight: 800;
}

.application-form-wrapper {
    background: #ffffff;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
}

/* Modern floating inputs override */
.app-form-group {
    position: relative;
    margin-bottom: 40px;
}

.app-input {
    width: 100%;
    padding: 15px 0 10px;
    font-size: 1.1rem;
    color: #1a1a1a;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e1e4e8;
    outline: none;
    transition: all 0.3s ease;
}

.app-label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1.1rem;
    color: #999999;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-input:focus ~ .app-label,
.app-input:not(:placeholder-shown) ~ .app-label,
select.app-input:valid ~ .app-label {
    top: -12px;
    font-size: 0.85rem;
    color: #ed1c24;
    font-weight: 700;
}

/* Fix for select dropdown arrow */
select.app-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0px center;
    background-size: 16px;
    cursor: pointer;
}

.app-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #ed1c24);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-input:focus ~ .app-underline {
    left: 0;
    width: 100%;
}

/* Premium Drop Zone */
.modern-dropzone {
    border: 2px dashed #ffb3b3;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    background: #fff5f5;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    margin-bottom: 40px;
    position: relative;
}

.modern-dropzone:hover {
    border-color: #ed1c24;
    background: #fff0f0;
    transform: scale(1.02);
}

.dropzone-icon {
    font-size: 38px;
    color: #ff6b6b;
    margin-bottom: 12px;
    display: block;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.modern-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.modern-dropzone h5 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Vibrant Gradient Button */
.btn-magnetic {
    background: linear-gradient(135deg, #ff6b6b 0%, #ed1c24 100%);
    color: #ffffff;
    padding: 16px 45px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(237, 28, 36, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-magnetic:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(237, 28, 36, 0.3);
}

/* Simple Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
