/* Job Detail Page Styles */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Breadcrumb Section */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--accent-color);
}

.breadcrumb-separator {
    color: #6c757d;
}

.current-page {
    color: var(--text-color);
    font-weight: 500;
}

/* Job Header */
.article-header {
    padding: 60px 0 40px;
    background: white;
}

.article-header-content {
    max-width: 1000px;
    margin: 0 auto;
}

.article-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.3;
}

.apply-button-container {
    margin-bottom: 30px;
}

.apply-now-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.apply-now-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.meta-info {
    flex: 1;
}

.meta-item {
    display: flex;
    margin-bottom: 15px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 120px;
    margin-right: 10px;
}

.meta-value {
    color: var(--light-text);
}

.table-of-contents {
    flex: 0 0 250px;
}

.table-of-contents h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

/* Job Content */
.article-content {
    padding: 60px 0;
    background: white;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.main-article {
    line-height: 1.7;
}

.article-section {
    margin-bottom: 50px;
}

.article-section:last-child {
    margin-bottom: 0;
}

.article-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.article-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin: 30px 0 20px 0;
}

.article-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 25px 0 15px 0;
}

.article-section p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.article-section ul {
    margin: 20px 0;
}

.article-section ul li {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Contact Info Box */
.contact-info-box {
    background: #f8f9fa;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.contact-info-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    margin-top: 0;
}

.contact-details {
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 8px;
    font-size: 16px;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-color);
}

/* Other Roles Grid */
.other-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.role-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.role-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.role-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    margin-top: 0;
}

.view-opening-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-opening-btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1f9968 0%, #408157 100%);
    padding: 90px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/pic/video-3.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
}

.cta-content {
    position: relative;
    z-index: 9;
}

.cta-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button .layui-icon {
    font-size: 12px;
}

.cta-button.primary {
    background: #ffffff;
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.cta-button.secondary:hover {
    background: #ffffff;
    color: #1f9968;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 200px;
        min-height: 200px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-meta {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .table-of-contents {
        flex: none;
        width: 100%;
    }

    .article-section h2 {
        font-size: 22px;
    }

    .article-section h3 {
        font-size: 18px;
    }

    .other-roles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cta-content h3 {
        font-size: 24px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .breadcrumb-nav {
        flex-wrap: wrap;
    }

    .article-header {
        padding: 40px 0;
    }

    .article-content {
        padding: 40px 0;
    }

    .article-section p {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .article-section h2 {
        margin-bottom: 15px;
    }

    .article-section ul li {
        font-size: 14px;
    }

    .contact-info-box {
        margin: 20px 0;
        padding: 20px;
    }

    .article-section {
        margin-bottom: 30px;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-content h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .cta-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .cta-button .layui-icon {
        font-size: 10px;
    }

    .cta-buttons {
        gap: 15px;
    }

    .meta-item {
        flex-direction: column;
        gap: 5px;
    }

    .meta-label {
        min-width: auto;
        margin-right: 0;
    }

    .article-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .article-section h2 {
        font-size: 18px;
    }

    .article-section h3 {
        font-size: 16px;
    }

    .cta-content h3 {
        font-size: 20px;
    }

    .cta-content p {
        font-size: 13px;
    }

    .cta-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .apply-now-btn {
        padding: 6px 20px;
        font-size: 14px;
    }

    .role-card {
        padding: 15px;
    }

    .role-card h4 {
        font-size: 14px;
    }

    .view-opening-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .apply-button-container{
        margin-bottom: 15px;
    }

    .article-header{
        padding-bottom: 20px;
    }
    .article-content{
        padding-top: 20px;
    }
}