/* ===== Career Page Styles ===== */

/* --- About Careers Section --- */
.career-about-section {
    padding: 50px 0 10px;
}
.career-about-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #fafbff, #fff8f5);
    border: 1px solid #f0e8e0;
    border-radius: 16px;
    padding: 35px 35px;
}
.career-about-content {
    flex: 1;
}
.career-about-content .career-section-title {
    margin-bottom: 14px;
}
.career-about-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}
.career-about-text strong {
    color: #e60000;
}
.career-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.career-tech-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e8e0d8;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    transition: all 0.3s ease;
}
.career-tech-tags span:hover {
    border-color: #e60000;
    color: #e60000;
    box-shadow: 0 3px 10px rgba(230, 0, 0, 0.1);
    transform: translateY(-2px);
}
.career-tech-tags span i {
    font-size: 14px;
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Stats counters */
.career-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex-shrink: 0;
    width: 280px;
}
.career-stat-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: all 0.3s ease;
}
.career-stat-item:hover {
    border-color: #e60000;
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.08);
    transform: translateY(-3px);
}
.career-stat-number {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}
.career-stat-label {
    font-size: 12px;
    color: #777;
    font-weight: 600;
    margin-top: 4px;
}

/* --- Why Join Section (top) --- */
.career-why-section {
    padding: 40px 0 30px;
}
.career-why-section .career-section-title {
    margin-bottom: 10px;
}
.career-why-section .career-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --- Main Section: Form + Openings --- */
.career-section {
    padding: 10px 0 60px;
    display: block;
    margin-left: 0;
    margin-right: 0;
}
.career-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: stretch;
    gap: 0 !important;
    justify-content: flex-start !important;
    margin-left: -10px;
    margin-right: -10px;
}
.career-section .col-lg-7,
.career-section .col-md-7 {
    flex: 0 0 58.333% !important;
    max-width: 58.333% !important;
    min-width: auto !important;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}
.career-section .col-lg-5,
.career-section .col-md-5 {
    flex: 0 0 41.667% !important;
    max-width: 41.667% !important;
    min-width: auto !important;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}
.career-section .col-sm-12 {
    min-width: auto !important;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

/* --- Section Titles --- */
.career-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.career-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    border-radius: 2px;
}

.career-description {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 100%;
    text-align: justify;
}

/* --- Benefits Row --- */
.career-benefits {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: space-between;
}
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 22px 20px;
    flex: 1 1 0;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.benefit-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #f0c8a0;
}
.benefit-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff5f5, #fff0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.benefit-icon i {
    font-size: 22px;
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.benefit-text {
    display: flex;
    flex-direction: column;
}
.benefit-text strong {
    font-size: 18px;
    color: #222;
    margin-bottom: 6px;
}
.benefit-text span {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* ===== JOB CARDS (Clickable / Expandable) ===== */
.career-openings {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.job-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #f0c8a0;
}
.job-card.active {
    border-color: #e60000;
    box-shadow: 0 6px 25px rgba(230, 0, 0, 0.1);
}

/* Card Header */
.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}
.job-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.job-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff5f5, #fff0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.job-icon i {
    font-size: 18px;
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.job-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px 0;
}
.job-meta-inline {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.job-meta-inline span {
    font-size: 14px;
    color: #888;
}
.job-meta-inline i {
    color: #e60000;
    margin-right: 4px;
    font-size: 11px;
}

/* Summary visible when card is CLOSED */
.job-card-summary {
    padding: 12px 20px 16px;
    border-top: 1px solid #f0f0f0;
}
.job-card-summary p {
    font-size: 14px;
    color: #555;
    margin: 0 0 6px;
    line-height: 1.5;
}
/* Buttons row in summary */
.job-summary-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
/* Read Full Description button */
.job-read-more-btn {
    background: #fff;
    color: #e60000;
    border: 2px solid #e60000;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}
.job-read-more-btn:hover {
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    color: #fff;
    border-color: transparent;
}
.job-read-more-btn i {
    margin-right: 5px;
}
/* Change button text style when card is open */
.job-card.active .job-read-more-btn {
    background: #f5f5f5;
    color: #888;
    border-color: #ddd;
}
/* Hide summary when card is OPEN */
.job-card.active .job-card-summary {
    display: none;
}

/* Expandable Details (hidden when closed) */
.job-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.job-card.active .job-card-details {
    max-height: 1200px;
}

.job-detail-content {
    padding: 0 20px 20px;
    border-top: 1px solid #f0f0f0;
}
.job-detail-content h5 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 16px 0 8px;
}
.job-detail-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.job-detail-content ul {
    margin: 0;
    padding-left: 20px;
}
.job-detail-content ul li {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    position: relative;
}

/* Detail Footer: Badges + Buttons */
.job-detail-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.job-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.job-close-btn {
    background: #fff;
    color: #888;
    border: 2px solid #ddd;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.job-close-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #555;
}
.job-close-btn i {
    margin-right: 5px;
}
.job-badge {
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.job-badge-location {
    background: #f0f0f0;
    color: #555;
}
.job-apply-btn {
    margin-left: auto;
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    color: #fff !important;
    border: none;
    padding: 9px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}
.job-apply-btn:hover {
    opacity: 0.85;
    color: #fff !important;
    text-decoration: none !important;
}
.job-apply-btn i {
    margin-right: 5px;
}

/* --- CTA Box --- */
.career-cta-box {
    background: linear-gradient(135deg, #fff5f5, #fff8f0);
    border: 1px solid #ffe0cc;
    border-radius: 12px;
    padding: 24px 22px;
    margin-top: 15px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.career-cta-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e60000, #ff8c1a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.career-cta-icon i {
    font-size: 20px;
    color: #fff;
}
.career-cta-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}
.career-cta-box p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 14px;
}
.career-cta-btn {
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.career-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.career-cta-btn i {
    margin-right: 6px;
}
/* --- Intern Box --- */
.career-intern-box {
    background: linear-gradient(135deg, #eef6ff, #f0f8ff);
    border: 2px solid #b3d4fc;
    border-radius: 12px;
    padding: 24px 22px;
    margin-top: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: internBoxGlow 2s ease-in-out infinite;
}
@keyframes internBoxGlow {
    0% {
        border-color: #b3d4fc;
        box-shadow: 0 0 8px rgba(26, 115, 232, 0.15);
    }
    50% {
        border-color: #1a73e8;
        box-shadow: 0 0 20px rgba(26, 115, 232, 0.4), 0 0 40px rgba(26, 115, 232, 0.15);
    }
    100% {
        border-color: #b3d4fc;
        box-shadow: 0 0 8px rgba(26, 115, 232, 0.15);
    }
}
.career-intern-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a237e;
    margin: 0 0 8px;
}
.career-intern-box p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px;
}
.intern-icon {
    background: linear-gradient(135deg, #1a73e8, #4fc3f7) !important;
}
.intern-icon i {
    color: #fff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}
.intern-hiring-badge {
    position: absolute;
    top: 14px;
    right: -30px;
    background: linear-gradient(90deg, #e60000, #ff5722);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 40px;
    transform: rotate(35deg);
    letter-spacing: 0.5px;
}
.intern-hiring-badge i {
    margin-right: 4px;
    font-size: 10px;
}
.career-intern-apply-btn {
    background: linear-gradient(90deg, #1a73e8, #4fc3f7);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    animation: internPulse 2s infinite;
}
.career-intern-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 115, 232, 0.4);
}
.career-intern-apply-btn i {
    margin-right: 8px;
}
@keyframes internPulse {
    0% { box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(26, 115, 232, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3); }
}

/* Intern modal */
.intern-modal {
    max-width: 580px !important;
    text-align: left !important;
}
.intern-modal form {
    margin-top: 10px;
}
.intern-form-row {
    display: flex;
    gap: 12px;
}
.intern-form-row .career-form-group {
    flex: 1 1 0;
}

@media (max-width: 500px) {
    .intern-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ===== FORM STYLES ===== */
.career-form-wrapper {
    background: #fff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.career-form-title {
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    padding: 16px 20px;
    margin: 0;
}
.career-form-title i {
    margin-right: 8px;
}

.career-form-wrapper form {
    padding: 20px 20px 16px;
}

/* Alert Messages */
.career-alert {
    padding: 12px 16px;
    margin: 15px 20px 0;
    border-radius: 8px;
    font-size: 14px;
}
.career-alert ul {
    margin: 5px 0 0;
    padding-left: 18px;
}
.career-alert ul li {
    margin-bottom: 3px;
}
.career-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.career-alert-error {
    background: #ffeef0;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Form Row - 2 column layout */
.career-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}
.career-form-row .career-form-group {
    flex: 1 1 0;
}

/* Form Groups */
.career-form-group {
    margin-bottom: 10px;
}
.career-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.career-form-group label i {
    color: #e60000;
    margin-right: 5px;
    font-size: 12px;
}
.required {
    color: #e60000;
}

.career-form-control {
    width: 100%;
    border: 1px solid #dce0e8;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafbfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.career-form-control:focus {
    outline: none;
    border-color: #e60000;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.08);
    background: #fff;
}
select.career-form-control {
    appearance: auto;
    cursor: pointer;
}
textarea.career-form-control {
    resize: vertical;
    min-height: 80px;
}

/* File Input */
.career-file-input {
    padding: 8px 14px;
    cursor: pointer;
}
.career-file-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Submit Button */
.career-submit-btn {
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    border: none;
    color: #fff;
    padding: 12px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
    width: 100%;
}
.career-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.career-submit-btn i {
    margin-right: 6px;
}

/* ===== Responsive Design ===== */

@media (max-width: 991px) {
    .career-section {
        padding: 20px 0 40px;
    }
    .career-section .col-lg-7,
    .career-section .col-md-7 {
        flex: 0 0 58.333% !important;
        max-width: 58.333% !important;
    }
    .career-section .col-lg-5,
    .career-section .col-md-5 {
        flex: 0 0 41.667% !important;
        max-width: 41.667% !important;
    }
    .career-form-wrapper {
        position: static;
        margin-bottom: 30px;
    }
    .career-benefits {
        flex-wrap: wrap;
    }
    .benefit-item {
        flex: 1 1 calc(50% - 20px);
    }
    .career-why-section {
        padding: 30px 0 20px;
    }
    .career-about-wrapper {
        flex-direction: column;
        padding: 25px 22px;
        gap: 25px;
    }
    .career-stats {
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .career-section .col-lg-7,
    .career-section .col-md-7,
    .career-section .col-lg-5,
    .career-section .col-md-5,
    .career-section .col-sm-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .career-form-row {
        flex-direction: column;
        gap: 0;
    }
    .career-benefits {
        flex-wrap: wrap;
    }
    .benefit-item {
        flex: 1 1 100%;
    }
    .career-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .career-section-title {
        font-size: 24px;
    }
    .career-form-wrapper form {
        padding: 20px 18px 15px;
    }
    .job-card-header {
        padding: 14px 15px;
    }
    .job-header-left {
        gap: 10px;
    }
    .job-icon {
        width: 36px;
        height: 36px;
    }
    .job-icon i {
        font-size: 15px;
    }
    .job-title {
        font-size: 15px;
    }
    .job-meta-inline {
        gap: 10px;
    }
    .job-detail-content {
        padding: 0 15px 15px;
    }
    .job-apply-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .career-section {
        padding: 15px 0 25px;
    }
    .career-why-section {
        padding: 25px 0 15px;
    }
    .career-section-title {
        font-size: 20px;
    }
    .career-form-title {
        font-size: 18px;
        padding: 14px 15px;
    }
    .career-submit-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* ===== Email Client Chooser Modal ===== */
.email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.email-modal {
    background: #fff;
    border-radius: 14px;
    padding: 30px 30px 25px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: emailModalIn 0.3s ease;
}
@keyframes emailModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.email-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.email-modal-close:hover {
    color: #333;
}
.email-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}
.email-modal-title i {
    color: #e60000;
    margin-right: 8px;
}
.email-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 22px;
}
.email-modal-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.email-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px;
    border: 2px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}
.email-option:hover {
    border-color: #e60000;
    background: #fff8f6;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: #e60000;
}
.email-option img {
    width: 40px;
    height: 40px;
}
.email-modal-copy {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}
.email-modal-copy p {
    font-size: 13px;
    color: #888;
    margin: 0 0 8px;
}
.email-copy-row {
    display: flex;
    gap: 8px;
}
.email-copy-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #f9f9f9;
}
.email-copy-row button {
    padding: 8px 16px;
    background: linear-gradient(90deg, #e60000, #ff8c1a);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}
.email-copy-row button:hover {
    opacity: 0.85;
}

@media (max-width: 400px) {
    .email-modal {
        padding: 22px 18px 18px;
    }
    .email-modal-options {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .email-option {
        padding: 14px 8px;
        font-size: 12px;
    }
    .email-option img {
        width: 32px;
        height: 32px;
    }
}
