/* Careers Page Styles */

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('Image/careers.jpg') no-repeat center center;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    z-index: 1;
    /* Performance optimizations */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.particle-network {
    display: none; /* Keep particles hidden */
}

.hero-overlay {
    display: none; /* Disable the overlay as we're using gradient overlay on the background */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-text {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    padding: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    width: 100%;
}

.hero-title .title-line {
    display: block;
}

.hero-title .highlight {
    color: #4CAF50;
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.career-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Why Join Us Section */
.data-insights {
    padding: 60px 0;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9));
    color: #fff;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-blend-mode: darken;
    background-image: url('Image/Why Join Us.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.data-insights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('Image/Why Join Us.png') center/cover no-repeat, linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9));
    z-index: -1;
    background-attachment: scroll;
}

/* For tablets */
@media (min-width: 481px) and (max-width: 1024px) {
    .data-insights {
        background-position: center 25%;
        background-attachment: scroll;
        background-size: cover;
    }
    .data-insights::before {
        background-attachment: scroll;
        background-size: cover;
        background-position: center 25%;
    }
}

/* For tablet landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .data-insights {
        background-position: center 35%;
        background-size: cover;
        min-height: 85vh;
    }
    .data-insights::before {
        background-position: center 35%;
        background-size: cover;
    }
}

/* For iPad and similar tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .data-insights {
        background-position: center 30%;
        background-size: cover;
    }
    .data-insights::before {
        background-position: center 30%;
        background-size: cover;
    }
}

/* For extra large screens */
@media (min-width: 1400px) {
    .data-insights {
        background-position: center 40%;
        background-size: cover;
    }
    .data-insights::before {
        background-position: center 40%;
        background-size: cover;
    }
}

/* For ultra-wide screens */
@media (min-width: 1920px) {
    .data-insights {
        background-position: center 45%;
        background-size: cover;
    }
    .data-insights::before {
        background-position: center 45%;
        background-size: cover;
    }
}
/* For very small devices */
@media (max-width: 480px) {
    .data-insights {
        min-height: auto;
        height: auto;
        padding: 60px 0 140px 0;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    .data-insights::before {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }

    .data-insights .insight-card {
        padding: 20px;
        margin-bottom: 25px;
    }
}

/* For very small mobile devices */
@media (max-width: 320px) {
    .data-insights {
        background-size: cover;
        background-position: center center;
        padding: 40px 0 120px 0;
        min-height: auto;
        height: auto;
    }
    .data-insights::before {
        background-size: cover;
        background-position: center center;
    }
    .data-insights .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .data-insights .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    .data-insights .insight-card {
        padding: 18px;
        margin-bottom: 20px;
    }
}

/* For mobile portrait (vertical) */
@media (max-width: 480px) and (orientation: portrait) {
    .data-insights {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        min-height: auto;
        height: auto;
        padding: 60px 0 160px 0;
    }
    .data-insights::before {
        background-size: cover;
        background-position: center center;
    }
    .data-insights .insight-card {
        padding: 20px;
        margin-bottom: 25px;
    }
}

/* For mobile landscape (horizontal) */
@media (max-width: 768px) and (orientation: landscape) {
    .data-insights {
        background-size: cover;
        background-position: center center;
        min-height: auto;
        height: auto;
        padding: 40px 0 120px 0;
    }
    .data-insights::before {
        background-size: cover;
        background-position: center center;
    }
    .data-insights .insight-card {
        padding: 20px;
        margin-bottom: 25px;
    }
}

.data-insights .section-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    line-height: 1.2;
}

.data-insights .section-subtitle {
    font-size: 1.3rem;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
}

.data-insights .insight-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    padding: 25px;
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.data-insights .insight-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.data-insights .insight-card h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.data-insights .insight-card p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 15px 0;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.data-insights .benefits-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

/* Checkmark styles */
.benefits-list .fa-check-circle {
    color: #4CAF50; /* Green color for checkmarks */
    margin-right: 8px;
}

/* Remove underlines from company card links */
.company-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.company-card-link:hover {
    text-decoration: none;
}

.data-insights .insight-icon:hover {
    background: rgba(0, 168, 255, 0.25);
    color: #4bc6ff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.5);
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 0 20px;
}

.gallery-img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* About Card Styles for Portfolio Section */
.about-card {
    background: rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin: 0 auto 30px;
    max-width: 1200px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    list-style-type: none;
}

.section-title span {
    position: relative;
    display: inline-block;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.data-insights .insight-card h3 {
    color: #fff;
    margin-bottom: 15px;
}

.data-insights .insight-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
    text-align: left;
}

.benefits-list li {
    position: relative;
    padding: 12px 0 12px 35px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
    font-size: 0.95rem;
}

.benefit-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.benefit-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.benefit-item p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Job Listings */
.open-positions {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.open-positions .section-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.open-positions .section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.open-positions .section-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.9;
}

.job-listings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.job-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.job-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px 30px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
}

.job-header h3 {
    color: #ffffff;
    margin: 0 0 10px;
    font-size: 1.4rem;
    font-weight: 600;
}

.job-location {
    color: #cbd5e1;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.job-id {
    position: absolute;
    top: 20px;
    right: 30px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    color: #3b82f6;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.job-details {
    padding: 30px;
    color: #cbd5e1;
    position: relative;
    z-index: 1;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.job-type {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.job-type.full-time {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.job-type.part-time {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.job-type.internship {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.job-salary {
    color: #3b82f6;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.job-description h4,
.job-requirements h4,
.data-insights .insight-card h3 {
    color: #4bc6ff;
    margin: 0 0 20px 0;
    font-size: 1.6rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    line-height: 1.3;
}

.data-insights .insight-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #4bc6ff;
    transition: all 0.3s ease;
}

.job-description h4::after,
.job-requirements h4::after,
.job-benefits h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 2px;
}

.job-description ul,
.job-requirements ul {
    padding-left: 20px;
    margin: 0 0 15px;
    color: #cbd5e1;
    line-height: 1.8;
    opacity: 0.9;
}

.job-description li,
.job-requirements li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 8px;
}

.job-description li::before,
.job-requirements li::before {
    content: '•';
    color: #3b82f6;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    font-size: 1.2em;
    line-height: 1;
    position: absolute;
    left: 0;
    top: 0;
}

.job-description li,
.job-requirements li {
    margin-bottom: 8px;
}

.benefits-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
    margin: 15px 0 20px;
}

.benefits-tags li {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.benefits-tags li:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 15px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-apply::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.btn-apply:hover::before {
    opacity: 1;
}

.btn-apply span,
.btn-apply i {
    position: relative;
    z-index: 2;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.2);
}

/* Companies Hiring Section */
.companies-hiring {
    padding: 80px 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.companies-hiring .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.companies-hiring .section-title {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.companies-hiring .section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #3b82f6;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.companies-hiring .section-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.company-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.company-card:hover::before {
    transform: scaleX(1);
}

.company-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.company-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 1;
    transition: all 0.3s ease;
    filter: brightness(1.2) contrast(1.1) saturate(1.1);
}

.company-card:hover .company-logo img {
    opacity: 1;
    transform: scale(1.05);
    filter: brightness(1.3) contrast(1.2) saturate(1.2) drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.company-info h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.company-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.job-count {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
}

.company-card:hover .job-count {
    background: #3b82f6;
    color: white;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .company-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .companies-hiring {
        padding: 60px 0;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Application Form */
.application-form {
    padding: 80px 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Error Message Styles */
.error-message {
    color: #ef4444 !important;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* Form Input Styles */
.form-control,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
    color: #000000 !important; /* Force black text */
    background-color: #fff !important; /* Ensure white background */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Error state for form fields */
.form-control.error,
.form-select.error,
.form-textarea.error,
input[type="text"].error,
input[type="email"].error,
input[type="tel"].error,
input[type="date"].error,
select.error,
textarea.error {
    border-color: #ef4444 !important;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Radio Button Styling */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.radio-group.error {
    color: #ef4444;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

/* Required Field Indicator */
.required {
    color: #ef4444;
    margin-left: 2px;
}

/* Form Section Styling */
.form-section {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form-section h3 {
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    font-size: 1.25rem;
}

/* Form Row for Side by Side Inputs */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 250px;
}

/* File Upload Styling */
.file-upload {
    margin-top: 0.5rem;
}

.file-upload input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
}

/* Checkbox Styling */
.checkbox-group {
    position: relative;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 0.25rem;
    margin-top: 0.25rem;
}

.checkbox-group label {
    display: inline-block;
    margin-left: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group.error {
    color: #ef4444;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-row .form-group {
        flex: 1 1 100%;
    }
    
    .form-section {
        padding: 1.5rem 1rem;
    }
}

/* Ensure text is visible in dark mode */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="file"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: #ffffff !important;
    border-color: #334155;
    color: #000000 !important;
}

[data-theme="dark"] .form-section {
    background: #1e293b;
    border: 1px solid #334155;
}

[data-theme="dark"] .form-section h3 {
    color: #f8fafc;
    border-color: #334155;
}

[data-theme="dark"] .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .file-upload input[type="file"] {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .form-footer {
    color: #94a3b8;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.form-header {
    padding: 30px 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.form-header h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.05rem;
}

.job-application-form {
    padding: 30px 40px 40px;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: #2c3e50;
    margin: 0 0 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: #3498db;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    flex: 1 1 200px;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group .required {
    color: #3498db;
    margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    font-size: 16px; /* Prevents zoom on focus in iOS */
    min-height: 44px; /* Minimum touch target size */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    margin: 5px 0;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: inline-block;
    padding: 8px 20px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.file-upload-label:hover {
    background: #e0e0e0;
}

.file-name {
    color: #7f8c8d;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.file-info {
    display: block;
    color: #95a5a6;
    font-size: 0.85rem;
    margin-top: 5px;
}

.terms-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.terms-section .form-group {
    margin-bottom: 10px;
}

.terms-section .form-group:last-child {
    margin-bottom: 0;
}

.terms-section a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.terms-section a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.submit-btn {
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    min-height: 50px;
}

.btn, 
button, 
input[type="submit"], 
input[type="button"] {
    min-height: 44px;
    line-height: 1.2;
    padding: 10px 20px;
}

/* Enhanced Button Styles for Careers Page */

/* ปุ่มหลักใน Hero Section */
.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%) !important;
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 18px 40px !important;
    border-radius: 50px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.hero-buttons .btn-primary::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.5s ease !important;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #00b8e6 0%, #0086b3 100%) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.hero-buttons .btn-primary:hover::before {
    left: 100% !important;
}

.hero-buttons .btn-primary:active {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5) !important;
}

/* Responsive สำหรับปุ่ม */
@media (max-width: 768px) {
    .hero-buttons .btn-primary {
        font-size: 1rem !important;
        padding: 16px 35px !important;
        border-radius: 45px !important;
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn-primary {
        font-size: 0.95rem !important;
        padding: 14px 30px !important;
        border-radius: 40px !important;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    position: relative;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
}

.success-message i {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #2c3e50;
    margin: 0 0 15px;
    font-size: 1.8rem;
}

.success-message p {
    color: #7f8c8d;
    margin: 0 0 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .job-header {
        padding: 15px 20px;
    }
    
    .job-id {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .hero {
        min-height: 100vh;
        height: 100%;
        padding: 120px 20px 80px;
        background-attachment: scroll;
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('Image/careers.jpg') center/cover no-repeat;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-item {
        padding: 25px 20px;
    }
    
    .job-card {
        padding: 20px;
    }
    
    .job-header h3 {
        font-size: 1.3rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-meta span {
        font-size: 0.9rem;
    }
    
    .job-type {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .application-form {
        padding: 40px 0;
    }
    
    .form-container {
        border-radius: 0;
    }
    
    .form-header {
        padding: 25px 20px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .gallery-img {
        height: 150px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-img {
        height: 200px;
    }
    
    .hero {
        min-height: 100vh;
        height: 100%;
        padding: 100px 15px 60px;
        background-attachment: scroll;
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('Image/careers.jpg') center/cover no-repeat;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .job-card {
        text-align: center;
    }
    
    .job-meta {
        justify-content: center;
    }
    
    .job-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-apply {
        width: 100%;
    }
    
    .file-upload {
        padding: 20px 15px;
        text-align: center;
    }
    
    .file-upload-icon {
        margin-bottom: 10px;
    }
    
    .file-upload-text {
        font-size: 0.9rem;
    }
    
    .file-upload input[type="file"] {
        height: 44px; /* Minimum touch target size */
        opacity: 1;
        position: relative;
        z-index: 2;
    }
    
    .file-upload-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .career-hero h1 {
        font-size: 1.8rem;
    }
    
    .job-header h3 {
        font-size: 1.1rem;
    }
    
    .job-salary {
        font-size: 0.9rem;
    }
    
    .job-description h4,
    .job-requirements h4,
    .job-benefits h4 {
        font-size: 1rem;
    }
    
    .job-description p,
    .job-requirements ul,
    .job-benefits ul {
        font-size: 0.9rem;
        text-align: left;
    }
    
    .btn-apply {
        padding: 10px 20px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 200px;
        margin: 15px auto 0;
    }
    
    .job-meta span, 
    .job-type,
    .job-location,
    .job-date {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        max-width: 100%;
    }
}
