﻿/* Career Page Styles - SAMCO Swarnabhumi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #0a3e2c 0%, #1e5a3a 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

    .hero-banner::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.highlight {
    color: #ffd966;
    position: relative;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

    .stat i {
        font-size: 1rem;
    }

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

    .section-header h2 {
        font-size: 2rem;
        color: #0a3e2c;
        margin-bottom: 12px;
    }

    .section-header p {
        color: #64748b;
        font-size: 1rem;
    }

/* Openings Section */
.openings-section {
    padding: 80px 0;
    background: #ffffff;
}

.openings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.job-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

    .job-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
    }

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fef3c7;
    color: #b45309;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

    .card-badge.featured {
        background: #dcfce7;
        color: #166534;
    }

.job-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0a3e2c 0%, #1e5a3a 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

    .job-icon i {
        font-size: 32px;
        color: white;
    }

.job-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #0f172a;
}

.job-description {
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.5;
}

.requirements h4 {
    font-size: 0.9rem;
    color: #0a3e2c;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirements ul {
    list-style: none;
    margin-bottom: 20px;
}

.requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #334155;
}

    .requirements li i {
        color: #1e5a3a;
        font-size: 0.8rem;
    }

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.job-type {
    background: #e2e8f0;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
}

.job-location {
    font-size: 0.85rem;
    color: #64748b;
}

    .job-location i {
        margin-right: 4px;
    }

.apply-now-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0a3e2c 0%, #1e5a3a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .apply-now-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px -5px rgba(10, 62, 44, 0.3);
    }

/* How to Apply Steps */
.how-to-apply {
    padding: 80px 0;
    background: #f8fafc;
}

.apply-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0a3e2c 0%, #1e5a3a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step i {
    font-size: 2rem;
    color: #0a3e2c;
    margin-bottom: 16px;
    display: block;
}

.step h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #0f172a;
}

.step p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Application Details Section */
.application-details {
    padding: 80px 0;
    background: #ffffff;
}

.details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #f8fafc;
    border-radius: 24px;
    padding: 40px;
}

.email-details {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.details-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

    .details-header i {
        font-size: 28px;
        color: #1e5a3a;
    }

    .details-header h3 {
        font-size: 1.3rem;
        color: #0f172a;
    }

.email-addresses {
    margin-bottom: 24px;
}

.email-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

    .email-card:hover {
        background: #e6f0ea;
        transform: translateX(5px);
    }

    .email-card i {
        font-size: 24px;
        color: #1e5a3a;
    }

    .email-card a {
        color: #1e5a3a;
        text-decoration: none;
        font-weight: 500;
        word-break: break-all;
    }

        .email-card a:hover {
            text-decoration: underline;
        }

.contact-phone {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

    .contact-phone i {
        font-size: 24px;
        color: #1e5a3a;
    }

    .contact-phone a {
        color: #1e5a3a;
        text-decoration: none;
        font-weight: 500;
    }

.email-format {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

    .email-format h4 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        font-size: 1.1rem;
        color: #0f172a;
    }

.format-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.format-field {
    margin-bottom: 20px;
}

    .format-field label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        color: #334155;
        font-size: 0.85rem;
    }

    .format-field code {
        display: block;
        background: #e2e8f0;
        padding: 8px 12px;
        border-radius: 8px;
        font-family: monospace;
        font-size: 0.85rem;
        color: #0a3e2c;
    }

    .format-field ul {
        list-style: none;
        padding-left: 0;
    }

    .format-field li {
        padding: 4px 0;
        font-size: 0.9rem;
        color: #475569;
    }

/* Why Join Section */
.why-join {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e6f0ea 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

    .benefit:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
    }

    .benefit i {
        font-size: 40px;
        color: #1e5a3a;
        margin-bottom: 16px;
    }

    .benefit h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        color: #0f172a;
    }

    .benefit p {
        color: #64748b;
        font-size: 0.9rem;
    }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-container {
    background: white;
    margin: 40px auto;
    width: 90%;
    max-width: 650px;
    border-radius: 24px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, #0a3e2c 0%, #1e5a3a 100%);
    color: white;
    border-radius: 24px 24px 0 0;
}

    .modal-header h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.2rem;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    transition: opacity 0.3s;
}

    .modal-close:hover {
        opacity: 0.7;
    }

.modal-body {
    padding: 28px;
}

.instruction-box {
    background: #e6f0ea;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

    .instruction-box i {
        color: #1e5a3a;
        font-size: 20px;
    }

.modal-emails {
    margin-bottom: 20px;
}

.modal-email-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
}

    .modal-email-item i {
        font-size: 20px;
        color: #1e5a3a;
    }

    .modal-email-item a {
        color: #1e5a3a;
        text-decoration: none;
        font-weight: 500;
    }

.copy-btn {
    margin-left: auto;
    padding: 4px 12px;
    background: #e2e8f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

    .copy-btn:hover {
        background: #1e5a3a;
        color: white;
    }

.modal-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 24px;
}

    .modal-contact i {
        font-size: 20px;
        color: #1e5a3a;
    }

.email-template {
    margin-bottom: 24px;
}

    .email-template h4 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
        font-size: 1rem;
        color: #0f172a;
    }

.template-box {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
    overflow-x: auto;
}

.copy-template-btn {
    width: 100%;
    padding: 10px;
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

    .copy-template-btn:hover {
        background: #1e5a3a;
        color: white;
    }

.modal-note {
    background: #fef3c7;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #b45309;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 12px;
    }

    .stat {
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .openings-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .job-card {
        padding: 24px;
    }

    .details-wrapper {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .apply-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .modal-container {
        margin: 20px auto;
        width: 95%;
    }

    .modal-header {
        padding: 18px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .template-box {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .job-card h3 {
        font-size: 1.2rem;
    }
}
