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

/* Career Introduction Section with Background */
.career-intro {
    padding: 60px 0 50px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(255, 140, 97, 0.9) 100%),
                url('../images/glass-building-ith-reflected-sun.jpg') center/cover no-repeat;
    position: relative;
}

.career-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
}

.career-intro .container {
    position: relative;
    z-index: 2;
}

.career-intro h2 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.career-intro-text {
    font-size: 1em;
    color: #fff;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.95;
}

/* Company Info Section - Horizontal Cards */
.company-info-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.company-info-section .container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-block {
    background: #fff;
    border-radius: 10px;
    padding: 20px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 280px;
}

.info-block:hover {
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.15);
    transform: translateY(-5px);
}

.info-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-title i {
    color: #ff6b35;
    font-size: 1.1em;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9em;
    color: #444;
    line-height: 1.6;
}

.info-item i {
    color: #ff6b35;
    font-size: 0.85em;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Organization Chart Image */
.org-chart-image {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.org-chart-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.org-chart-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

/* Job Openings Section */
.job-openings-section {
    padding: 50px 0;
    background: #fff;
}

.job-section-title {
    font-size: 1.75em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

/* Job Cards Grid */
.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.job-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.job-card:hover {
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.15);
    transform: translateY(-3px);
}

.job-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #fff9f7 0%, #fff 100%);
    border-bottom: 2px solid #ff6b35;
}

.job-card-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.job-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.job-type-badge,
.job-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.job-type-badge.type-fulltime {
    background: #4CAF50;
    color: #fff;
}

.job-type-badge.type-parttime {
    background: #2196F3;
    color: #fff;
}

.job-type-badge.type-contract {
    background: #FF9800;
    color: #fff;
}

.job-type-badge.type-internship {
    background: #9C27B0;
    color: #fff;
}

.job-status-badge.status-open {
    background: #ff6b35;
    color: #fff;
}

.job-status-badge.status-closed {
    background: #999;
    color: #fff;
}

.job-card-body {
    padding: 20px;
}

.job-description {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.job-info-grid {
    display: grid;
    gap: 10px;
}

.job-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}

.job-info-item i {
    color: #ff6b35;
    font-size: 1.1em;
}

.job-card-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn-apply-job {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c61 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-apply-job:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff6b35 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #fff;
}

.job-accordion {
    max-width: 100%;
    margin: 0 auto;
}

.job-item {
    margin-bottom: 15px;
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.job-item .accordion-button {
    background: #fff;
    border: none;
    padding: 18px 22px;
    font-size: 20px;
    box-shadow: none !important;
}

.job-item .accordion-button::after {
    display: none;
}

.job-item .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #fff9f7 0%, #fff 100%);
    border-bottom: 2px solid #ff6b35;
}

.job-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.job-info {
    flex: 1;
}

.job-title {
    font-size: 0.83em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.job-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.job-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.job-badge.open {
    background: #ff6b35;
    color: #fff;
}

.job-badge.closed {
    background: #999;
    color: #1a1a1a;
}

.job-positions {
    font-size: 0.75em;
    background: #ff6b35;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.job-date {
    font-size: 0.75em;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.accordion-arrow {
    font-size: 1.3em;
    color: #ff6b35;
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed) .accordion-arrow {
    transform: rotate(180deg);
}

.job-details {
    padding: 22px;
    background: #fff;
}

.job-details h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    margin-top: 20px;
}

.job-details h4:first-child {
    margin-top: 0;
}

.job-requirements,
.job-responsibilities {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.job-requirements li,
.job-responsibilities li {
    padding-left: 28px;
    margin-bottom: 10px;
    position: relative;
    line-height: 1.6;
    color: #444;
    font-size: 0.95em;
}

.job-requirements li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #ff6b35;
}

.job-responsibilities li::before {
    content: '\f0a4';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #ff6b35;
}

/* Job Apply Box */
.job-apply-box {
    background: linear-gradient(135deg, #fff9f7 0%, #fff 100%);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.job-apply-box h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
}

.apply-form .form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 10px 14px;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.apply-form .form-control:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.apply-form .form-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.btn-apply {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c61 100%);
    border: none;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-apply:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff6b35 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-email {
    background: #fff;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-email:hover {
    background: #ff6b35;
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .company-info-section .container {
        flex-direction: column;
    }

    .info-block {
        min-width: 100%;
    }

    .job-header-compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-apply-box {
        position: static;
        margin-top: 25px;
    }
}

@media (max-width: 768px) {
    .career-intro {
        padding: 60px 0 40px;
    }

    .career-intro h2 {
        font-size: 2em;
    }

    .career-intro-text {
        font-size: 1em;
    }

    .job-section-title {
        font-size: 1.6em;
    }

    .job-title {
        font-size: 1em;
    }

    .job-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .info-title {
        font-size: 1.2em;
    }

    .info-item {
        font-size: 0.9em;
    }
}
