/* ========================================
   CAREER PAGE - COMPLETE STYLES (MERGED)
   Includes Listing and Details Pages
   ======================================== */

:root {
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary-color: #06b6d4;
    --dark-bg: #030712;
    --card-bg-dark: #111827;
    --card-bg-darker: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #e2e8f0;
    --border-light: #1e293b;
    --border-dark: #1e293b;
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --gradient-accent: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
}

/* ========================================
   CAREER LISTING STYLES
   ======================================== */

/* === HERO SECTION === */
.career-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #020617;
    padding: 120px 0 80px;
}

.career-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 120%, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.08) 40%, #020617 75%);
    z-index: 0;
}

.career-grid-floor {
    position: absolute;
    bottom: -25%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.2) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(400px) rotateX(70deg);
    opacity: 0.2;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 50%);
    z-index: 0;
}

.career-hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.career-hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.career-title-highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.career-hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
}

/* === SECTION BOX === */
.section-box {
    background: #020617;
    padding: 60px 0 80px;
}

/* === RESPONSIVE GRID === */
.content-page .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.content-page .row>[class*='col-'] {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
}

/* === JOB CARDS === */
.card-grid-2 {
    position: relative;
    background: rgba(30, 41, 59, 0.7);
    border: none;
    border-radius: 16px;
    overflow: visible;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Card Header */
.card-grid-2-image-left {
    position: relative;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Job Type Badge */
.location-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* Card Body */
.card-block-info {
    display: flex;
    flex-direction: column;
    padding: 0 24px 24px 24px;
    flex: 1;
}

/* Job Title */
.card-grid-2 h6 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 16px;
    line-height: 1.3;
    min-height: auto;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
    position: relative;
}

.card-grid-2 h6::after {
    display: none;
}

.card-grid-2 h6 a {
    color: #ffffff;
    text-decoration: none;
}

/* Job Meta - Now in header */
.card-grid-2 .mt-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
    min-height: auto;
    align-items: center;
}

.card-briefcase,
.card-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

/* Job Description */
.color-text-paragraph,
.font-sm.color-text-paragraph {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Skills Section */
.card-grid-2 .mt-30 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: auto;
    align-content: flex-start;
}

/* Skill Tags */
.btn-grey-small {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 11px !important;
    font-weight: 600;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    white-space: nowrap;
}

/* Card Footer */
.card-2-bottom {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* See Details Button */
.btn-apply-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px !important;
    font-weight: 700;
    text-transform: capitalize;
    border: none;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-apply-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.35);
}

/* === UTILITY CLASSES === */
.mt-15 {
    margin-top: 15px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.mr-5 {
    margin-right: 5px !important;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-grid-2 {
    animation: slideInUp 0.7s ease-out;
    animation-fill-mode: both;
}

.card-grid-2:nth-child(1) {
    animation-delay: 0.1s;
}

.card-grid-2:nth-child(2) {
    animation-delay: 0.2s;
}

.card-grid-2:nth-child(3) {
    animation-delay: 0.3s;
}

.card-grid-2:nth-child(4) {
    animation-delay: 0.4s;
}

.card-grid-2:nth-child(5) {
    animation-delay: 0.5s;
}

.card-grid-2:nth-child(6) {
    animation-delay: 0.6s;
}


/* ========================================
   CAREER DETAILS STYLES
   ======================================== */

.career-detail-hero {
    position: relative;
    padding: 180px 0 120px;
    background: var(--gradient-hero);
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.career-detail-hero .container {
    position: relative;
    z-index: 1;
}

.badges-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.badge-pill {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    color: var(--text-light);
}

.badge-pill.type {
    color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    flex-wrap: wrap;
}

.hero-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-meta li i {
    color: var(--primary-color);
}

/* === CONTENT LAYOUT === */
.career-detail-content {
    padding-top: 60px;
    padding-bottom: 100px;
    position: relative;
    z-index: 10;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

/* === JOB DESCRIPTION AREA === */
.job-description-area {
    padding: 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.rich-text-content {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3 {
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.rich-text-content ul {
    padding-left: 20px;
    margin-bottom: 30px;
}

.rich-text-content li {
    margin-bottom: 10px;
    color: var(--text-muted);
    position: relative;
}

/* Apply Section */
.apply-section {
    margin-top: 80px;
}

.apply-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
}

.apply-box {
    background: var(--card-bg-dark);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.apply-box p {
    color: var(--text-muted);
}

/* === SIDEBAR === */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.summary-card,
.share-card {
    background: var(--card-bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 24px;
    color: white;
}

.summary-card h3,
.share-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-list li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-box {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.info {
    display: flex;
    flex-direction: column;
}

.info .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none !important;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: none !important;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    border-bottom: none !important;
}




/* ========================================
   RESPONSIVE STYLES (UNIFIED)
   ======================================== */

/* Desktop (1200px+) */
@media (min-width: 1200px) {
    .content-page .row>.col-xl-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Tablet (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {

    /* DETAILS PAGE */
    .content-grid {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    /* LISTING PAGE */
    .content-page .row>.col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .career-hero-section {
        min-height: 50vh;
        padding: 100px 0 60px;
    }

    .career-hero-title {
        font-size: 3rem;
    }

    .career-hero-subtitle {
        font-size: 1.1rem;
    }

    .card-grid-2 h6 {
        font-size: 20px;
        min-height: auto;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* LISTING PAGE */
    .content-page .row>.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .career-hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .career-hero-subtitle {
        font-size: 1rem;
    }

    .card-grid-2 h6 {
        font-size: 19px;
        min-height: auto;
    }

    .card-block-info {
        padding: 0 24px 24px 24px;
    }
}

/* Details Page Tablet Stack (<= 991px) */
@media (max-width: 991.98px) {
    .career-detail-hero {
        padding: 140px 0 80px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Note: Only set hero-title for Details page here to avoid conflict if class names overlap, 
       but currently classes differ (hero-title vs career-hero-title) */
    .hero-title {
        font-size: 2.5rem;
    }

    .sidebar-column {
        margin-top: 20px;
        order: -1;
    }

    .career-detail-content {
        padding-top: 40px;
        padding-bottom: 80px;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767.98px) {

    /* LISTING */
    .content-page .row>[class*='col-'] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .career-hero-section {
        padding: 80px 0 50px;
    }

    .career-hero-title {
        font-size: 2rem;
    }

    .career-hero-subtitle {
        font-size: 0.95rem;
    }

    .card-grid-2 {
        margin-bottom: 30px;
    }

    /* DETAILS */
    .career-detail-hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 20px;
    }

    .hero-meta {
        font-size: 0.95rem;
        gap: 20px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .rich-text-content {
        font-size: 1rem;
    }

    .rich-text-content h2 {
        font-size: 1.5rem;
        margin-top: 30px;
    }

    .rich-text-content h3 {
        font-size: 1.25rem;
    }
}

/* Mobile Portrait (< 576px) */
@media (max-width: 575.98px) {

    /* LISTING */
    .content-page .row>[class*='col-'] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .career-hero-section {
        padding: 60px 0 40px;
        min-height: 50vh;
    }

    .career-hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .career-hero-subtitle {
        font-size: 0.95rem;
    }

    .card-grid-2 {
        margin-bottom: 24px;
    }

    .card-grid-2-image-left {
        padding: 16px 20px 12px 20px;
    }

    .card-grid-2 h6 {
        font-size: 18px;
        margin-top: 15px;
        margin-bottom: 12px;
    }

    .card-block-info {
        padding: 0 20px 20px 20px;
    }

    .color-text-paragraph,
    .font-sm.color-text-paragraph {
        margin-bottom: 20px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .btn-apply-now {
        padding: 12px 20px;
        font-size: 13px !important;
    }

    /* DETAILS */
    .career-detail-hero {
        padding: 100px 0 50px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .badges-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .badge-pill {
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .hero-meta {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    .career-detail-content {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .rich-text-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }



    .summary-card,
    .share-card {
        padding: 20px;
    }

    .apply-box {
        padding: 20px;
    }
}