/* ตัวแปรสี Theme - Premium & Modern */
:root {

    /* Primary Colors - Deep Navy & Royal Blue */
    --primary-blue: #1e3a8a;
    --secondary-blue: #1e40af;
    --accent-blue: #3b82f6;
    --light-blue: #dbeafe;
    --dark-blue: #1e293b;
    --navy-blue: #0f172a;
    
    /* Neutral Colors - Sophisticated Grays */
    --white: #ffffff;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Accent Colors - Premium Gold */
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    
    /* Shadow Colors */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Blue Shadows */
    --shadow-blue-md: 0 4px 6px -1px rgba(30, 58, 138, 0.15), 0 2px 4px -1px rgba(30, 58, 138, 0.1);
    --shadow-blue-lg: 0 10px 15px -3px rgba(30, 58, 138, 0.2), 0 4px 6px -2px rgba(30, 58, 138, 0.15);
    
    /* Legacy Variables for Compatibility */
    --gray-light: var(--gray-100);
    --gray-dark: var(--gray-800);
    --highlight-blue: var(--accent-blue);
    --hover-blue: var(--secondary-blue);
    
    /* Announcement Section Colors - Premium */
    --announcement-primary: var(--primary-blue);
    --announcement-secondary: var(--secondary-blue);
    --announcement-light: var(--light-blue);
    --announcement-dark: var(--dark-blue);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-thai: 'Noto Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes - Modern Scale */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
}



/* Base Typography */
* {
    font-family: var(--font-thai);
}

body {
    font-family: var(--font-thai);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-thai);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--gray-900);
    letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--gray-700);
}

/* Premium Button Styles */
.btn {
    font-family: var(--font-thai);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}






/* Premium Navbar */
.navbar {

    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-blue-lg);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;

    gap: 16px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand img {

    height: 60px;
    width: 60px;
    background: var(--white);
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;

    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    object-fit: contain;
    transform: scale(1.2);
}

.navbar-brand span {

    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--white);

    letter-spacing: var(--tracking-wide);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav {

    gap: 8px;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-wide);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;

    top: 0;
    left: 0;
    width: 0;

    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.navbar-nav .nav-link:hover::before {

    width: 100%;
}

.navbar-nav .nav-link:hover {

    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link.active {

    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Premium Announcement Section */
.announcement-section {
    /* Background image will be set dynamically by JavaScript */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    transition: opacity 1s ease-in-out;
    box-sizing: border-box;
}

.announcement-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
}

.announcement-content {
    position: relative;
    z-index: 2;
}

.announcement-title {

    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--white);

    margin-bottom: 32px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;

    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.announcement-cta {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.announcement-btn {
    display: inline-flex;
    align-items: center;

    gap: 12px;
    padding: 20px 40px;
    background-color: var(--white);

    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;

    border-radius: 16px;
    font-size: var(--text-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.2),
        0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: var(--tracking-wide);
}

.announcement-btn:hover {

    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.25),
        0 8px 16px rgba(0,0,0,0.15);
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;

    border-color: rgba(255, 255, 255, 0.2);
}

.announcement-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.announcement-btn:hover::before {
    left: 100%;
}

.announcement-btn i {

    font-size: var(--text-xl);
    transition: all 0.3s ease;
}

.announcement-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Slogan Section */
.slogan-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 40px 0 50px 0;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}


.slogan-item {
    display: flex;
    align-items: center;

    gap: 16px;
    color: var(--white);
    font-weight: 700;

    font-size: var(--text-xl);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.slogan-item:hover {

    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slogan-item i {

    font-size: var(--text-2xl);
    color: var(--gold-light);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slogan-item:hover i {

    transform: scale(1.15) rotate(5deg);
    color: var(--gold);
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
}

.slogan-text {

    font-family: var(--font-thai);
    letter-spacing: var(--tracking-wide);
    font-weight: 700;
}

.slogan-separator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slogan-separator i {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.slogan-separator:hover i {
    color: var(--white);
    transform: scale(1.2);
}

/* Slogan Description */
.slogan-description {
    margin-top: 25px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.slogan-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}


/* Desktop Optimizations */
@media (min-width: 1200px) {
    .announcement-section {
        padding: 80px 0;
        min-height: 100vh;
    }
    
    .announcement-title {
        font-size: 3rem;
        margin-bottom: 25px;
    }
    
    .announcement-btn {
        padding: 18px 40px;
        font-size: 1.2rem;
    }
    
    .slogan-item {
        font-size: 1.2rem;
        gap: 10px;
    }
    
    .slogan-item i {
        font-size: 1.3rem;
    }
    
    .slogan-description p {
        font-size: 1.2rem;
    }
}


/* ============================================
   Modern Minimal Job Cards - Clean & Readable
   ============================================ */

/* Job Cards Container - 3 columns on desktop, 1 column on mobile */
#job-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
}

/* Mobile: 1 card per row */
@media (max-width: 991.98px) {
    #job-results {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Fix announcement section background on tablet */
    .announcement-section {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
    }
}

/* Desktop & Tablet: 3 cards per row */
@media (min-width: 992px) {
    #job-results {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Individual card column wrapper */
#job-results > div {
    width: 100%;
    display: flex;
}

/* Modern Minimal Job Card */
.job-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    animation: fadeInUp 0.5s ease forwards;
}

/* Top accent border - minimal design (only when no urgent banner) */
.job-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 16px 16px 0 0;
}

/* Hide accent border when urgent banner exists */
.job-card:has(.urgent-job-banner)::before {
    display: none;
}

/* Hover effect - subtle lift */
.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.12);
    border-color: var(--primary-blue);
}

.job-card:hover::before {
    background: var(--accent-blue);
}

/* Card Body Layout */
.job-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

/* Card Title - Clean Typography */
.job-card .card-title {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start !important;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.4;
}

/* Job Details Section */
.job-details {
    margin-top: auto;
    margin-bottom: 16px;
}

/* Job Details List */
.job-details-list {
    flex: 1;
    margin-bottom: 16px;
    list-style: none;
    padding: 0;
}




.card-title i {
    margin-top: 2px;
    flex-shrink: 0;
}

.card-title .position-title {
    display: inline;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.card-title .new-job-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    flex-shrink: 0;
    vertical-align: top;
    margin-top: 2px;
    white-space: nowrap;
}

.salary-info i,
.location-details i,
.benefits-list i,
.contact-details i {
    color: var(--primary-blue);
    margin-right: 8px;
}

/* Tablet adjustments */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #job-results {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Tablet Popup Responsive */
    .popup-content {
        max-width: 90%;
        border-radius: 20px;
    }

    .popup-header {
        padding: 24px 28px;
    }

    .popup-title {
        font-size: var(--text-2xl);
    }

    .popup-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .popup-body {
        padding: 24px 28px;
    }

    .popup-info-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .info-card {
        padding: 16px;
    }

    .popup-section {
        padding: 20px;
        margin-bottom: 16px;
    }

    .section-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .section-title {
        font-size: var(--text-lg);
    }

    .popup-footer {
        padding: 20px 28px;
    }

    .popup-btn {
        padding: 12px 24px;
        font-size: var(--text-sm);
    }
}
   
/* ============================================
   Typography - Clean & Readable
   ============================================ */

/* Position Title - Minimal & Readable */
.position-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* Job Description Label */
.job-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Responsive Typography */
@media (min-width: 992px) {
    .position-title {
        font-size: 1.375rem;
    }
    
    .job-desc {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .position-title {
        font-size: 1.125rem;
    }
    
    .job-desc {
        font-size: 0.9rem;
    }
}

/* Salary & Branch Badges - Minimal Design */
.salary, .branch {
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.salary {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.branch {
    background-color: rgba(30, 58, 138, 0.06);
    color: var(--primary-blue);
    border: 1px solid rgba(30, 58, 138, 0.15);
}

/* Subtle hover effect */
.salary:hover,
.branch:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .salary, .branch {
        font-size: 0.8rem;
        padding: 5px 10px;
        margin-right: 6px;
        margin-bottom: 6px;
    }
}

/* Job Details List - Clean & Readable */
.job-details-list li {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.6;
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid var(--gray-100);
}

.job-details-list li:last-child {
    border-bottom: none;
}

.job-details-list li i {
    color: var(--accent-blue);
    margin-right: 10px;
    margin-top: 4px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Responsive */
@media (min-width: 992px) {
    .job-details-list li {
        font-size: 1rem;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .job-details-list li {
        font-size: 0.875rem;
        padding: 6px 0;
    }
    
    .job-details-list li i {
        margin-right: 8px;
        margin-top: 3px;
    }
}


/* ============================================
   Buttons - Minimal & Clean
   ============================================ */

.job-card .btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.job-card .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.job-card .btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-1px);
    color: var(--white);
}

.job-card .btn-outline-secondary {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
}

.job-card .btn-outline-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
    border-color: var(--primary-blue);
}

/* Responsive Buttons */
@media (max-width: 768px) {
    .job-card .btn {
        padding: 9px 14px;
        font-size: 0.8125rem;
    }
}

/* Premium Filter Section */
.filter-section {
    margin: 48px 0;
    text-align: center;
}

.filter-tags {
    display: flex;
    justify-content: center;

    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {

    padding: 16px 32px;
    border: 2px solid var(--primary-blue);
    background-color: var(--white);
    color: var(--primary-blue);

    border-radius: 16px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;

    font-size: var(--text-base);
    letter-spacing: var(--tracking-wide);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {

    color: var(--white);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-blue-lg);
    border-color: var(--primary-blue);
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);

    box-shadow: var(--shadow-blue-lg);
    transform: translateY(-2px);
}


/* Premium Search Box */
.search-container {

    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;

    padding: 20px 70px 20px 70px;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    font-size: var(--text-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(30, 58, 138, 0.08),
        0 2px 8px rgba(30, 58, 138, 0.04);
    background: var(--white);

    font-family: var(--font-thai);
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
}

.search-box input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.search-box i.fas.fa-search {
    position: absolute;

    left: 28px;
    top: 50%;
    transform: translateY(-50%);

    color: var(--accent-blue);
    font-size: var(--text-xl);
    z-index: 1;

    transition: all 0.3s ease;
}

.search-box input:focus {

    border-color: var(--accent-blue);
    box-shadow: 
        0 12px 40px rgba(30, 58, 138, 0.15),
        0 4px 12px rgba(30, 58, 138, 0.1);
    outline: none;

    transform: translateY(-2px);
}

.search-box input:focus + i.fas.fa-search {
    color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}



/* Premium Job Header */
.job-header {
    color: var(--primary-blue);
    font-weight: 900;
    margin-bottom: 20px;
    font-size: var(--text-5xl);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
    text-shadow: 0 2px 4px rgba(30, 58, 138, 0.1);
    position: relative;
}

/* Container สำหรับ job listings */
#job-listings {
    background-color: var(--gray-50);
    padding: 40px 0;
    margin-top: 0;
}

.job-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

.job-subtitle {

    color: var(--gray-700);
    font-size: var(--text-xl);
    margin-bottom: 40px;
    font-weight: 500;
    line-height: var(--leading-relaxed);
    letter-spacing: var(--tracking-wide);
}

/* Premium Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;

        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 



/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}



/* Logo styling for all pages */
.navbar-brand img,
.footer-logo {
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: contain;
}

.navbar-brand img {
    padding: 4px;
}

.footer-logo {
    padding: 2px;
    transform: scale(1.2);
}

/* Footer Styling */
.footer {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: var(--text-xl);
}

.footer p, .footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer .social-icons a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-xl);
    margin-right: 15px;
    transition: all 0.3s ease;
}

.footer .social-icons a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.footer .contact-info i {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 10px;
}

.footer .copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
} 

/* ============================================
   Modern Premium Popup Design - Clean & Readable
   ============================================ */

/* Popup Overlay */
.job-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.job-popup.active {
    display: flex;
    opacity: 1;
}

.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Popup Content Container */
.popup-content {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
}

.job-popup.active .popup-content {
    transform: translateY(0) scale(1);
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--gray-600);
    font-size: 18px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.popup-close:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: rotate(90deg) scale(1.1);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

/* Popup Header - Prominent Title */
.popup-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 32px 40px;
    position: relative;
    /* อนุญาตให้ชื่อหลายบรรทัดไม่ถูกตัดทิ้ง */
    overflow: visible;
    min-height: auto;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    /* อย่าดักจับคลิก ทิ้งให้ผ่านไปยังปุ่ม X */
    pointer-events: none;
}

.popup-title {
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    /* กันชนด้านขวาสำหรับปุ่มปิด */
    padding-right: 72px;
    /* ให้ตัดบรรทัดอัตโนมัติและแสดงครบ */
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Popup Body */
.popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px;
    background: var(--gray-50);
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.popup-body::-webkit-scrollbar {
    width: 6px;
}

.popup-body::-webkit-scrollbar-track {
    background: transparent;
}

.popup-body::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.popup-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Info Cards - Salary & Requirements */
.popup-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(30, 58, 138, 0.1),
        0 0 0 1px rgba(30, 58, 138, 0.1);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.info-card-content {
    flex: 1;
}

.info-card-label {
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 4px;
}

.info-card-value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.4;
}

.salary-info,
.require-info {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-blue);
}

/* Popup Sections */
.popup-section {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--light-blue), rgba(59, 130, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 18px;
    flex-shrink: 0;
}

.section-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Popup Lists */
.popup-details,
.popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-detail-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    color: var(--gray-700);
    line-height: 1.6;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--gray-100);
}

.popup-detail-item:last-child {
    border-bottom: none;
}

.popup-detail-item::before {
    content: '•';
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 20px;
    margin-right: 12px;
    margin-top: -2px;
    flex-shrink: 0;
}

.popup-detail-item span {
    flex: 1;
}

/* Location Info */
.location-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    background: transparent; /* remove background box */
    border-radius: 0;
}

.location-label {
    font-weight: 600;
    color: var(--gray-600);
    min-width: 80px;
    flex-shrink: 0;
}

.location-value {
    color: var(--gray-800);
    flex: 1;
    line-height: 1.5;
}

/* Benefits Info */
.benefits-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit-item {
    position: relative;
    padding: 12px 0 12px 0;
    color: var(--gray-700);
    line-height: 1.6;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--gray-100);
}

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-item::before {
    content: '•';
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 20px;
    margin-right: 12px;
    margin-top: -2px;
    display: inline-block;
    width: 16px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    background: transparent; /* remove background box */
    border-radius: 0;
    /* ป้องกันข้อความยาวล้นกรอบ โดยเฉพาะลิงก์ */
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contact-info strong {
    font-weight: 600;
    color: var(--gray-600);
    min-width: 100px;
    flex-shrink: 0;
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.2s ease;
    /* อนุญาตให้ตัดคำกลางลิงก์ยาว */
    word-break: break-all;
    overflow-wrap: anywhere;
}

.contact-info a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Popup Footer */
.popup-footer {
    padding: 24px 40px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* Popup Buttons */
.popup-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: var(--text-base);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.popup-btn span {
    display: inline-block;
}

.popup-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    color: var(--white);
    text-decoration: none;
}

.popup-btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.popup-btn-secondary:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    border-color: var(--gray-400);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Premium New Job Icon - Red Star Badge Style */
.new-job-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 
        0 1px 4px rgba(220, 38, 38, 0.4),
        0 1px 2px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    animation: newBadgePulse 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
    vertical-align: middle;
}

.new-job-icon:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: scale(1.05);
    box-shadow: 
        0 3px 8px rgba(220, 38, 38, 0.5),
        0 2px 4px rgba(220, 38, 38, 0.4);
}

.new-job-icon .new-star-icon {
    width: 8px;
    height: 8px;
    margin-right: 3px;
    fill: currentColor;
    animation: starRotate 3s infinite;
    flex-shrink: 0;
}

@keyframes newBadgePulse {
    0%, 100% {
        background: linear-gradient(135deg, #dc2626, #ef4444);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, #b91c1c, #dc2626);
        transform: scale(1.02);
    }
}

@keyframes starRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}

/* Premium Urgent Job Banner - Integrated with Card */
.urgent-job-banner {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: var(--white);
    padding: 10px 16px;
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 16px 16px 0 0;
    margin: 0;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    animation: urgentPulse 1.5s infinite;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.urgent-job-banner::before {
    content: "🚨 ";
    font-size: var(--text-base);
    margin-right: 4px;
}

/* Responsive Urgent Banner */
@media (max-width: 768px) {
    .urgent-job-banner {
        padding: 8px 14px;
        font-size: var(--text-xs);
    }
    
    .urgent-job-banner::before {
        font-size: var(--text-sm);
        margin-right: 3px;
    }
}

@media (max-width: 576px) {
    .urgent-job-banner {
        padding: 7px 12px;
        font-size: var(--text-xs);
    }
    
    .job-card {
        border-radius: 12px;
    }
    
    .urgent-job-banner {
        border-radius: 12px 12px 0 0;
    }
}

@keyframes urgentPulse {
    0%, 100% {
        background: linear-gradient(135deg, #dc2626, #ef4444);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, #b91c1c, #dc2626);
        transform: scale(1.02);
    }
}




/* Premium Responsive Design */
@media (max-width: 768px) {

    .navbar {
        padding: 16px 0;
    }
    
    .navbar-brand span {

        font-size: var(--text-xl);
    }
    
    .navbar-brand img {
        height: 50px;
        width: 50px;
        padding: 3px;
    }

    .navbar-nav .nav-link {
        padding: 12px 20px;
        font-size: var(--text-base);
        margin: 4px 0;
        border-radius: 12px;
    }

    /* Mobile Popup Responsive */
    .job-popup {
        padding: 12px;
    }

    .popup-content {
        max-width: 100%;
        border-radius: 20px;
        max-height: 92vh;
    }

    .popup-header {
        padding: 20px 24px;
    }

    .popup-title {
        font-size: var(--text-xl);
        padding-right: 72px;
        line-height: 1.4;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .popup-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .popup-body {
        padding: 24px;
    }

    .popup-info-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .info-card {
        padding: 16px;
    }

    .info-card-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .info-card-value {
        font-size: var(--text-base);
    }

    .popup-section {
        padding: 20px;
        margin-bottom: 16px;
    }

    .section-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .section-title {
        font-size: var(--text-lg);
    }

    .popup-detail-item {
        padding: 10px 0;
        font-size: var(--text-sm);
    }

    .location-item,
    .benefit-item,
    .contact-info > div {
        font-size: var(--text-sm);
    }

    .location-item,
    .contact-info > div {
        padding: 0;               /* keep background-less layout on mobile */
        background: transparent;
        border-radius: 0;
    }

    .popup-footer {
        padding: 20px 24px;
        flex-wrap: wrap;
    }

    .popup-btn {
        padding: 12px 24px;
        font-size: var(--text-sm);
        flex: 1;
        min-width: 140px;
    }

    /* Premium Announcement Section Responsive */
    .announcement-section {
        padding: 60px 0;
        /* Fill full viewport height on mobile/tablet */
        min-height: 100vh; /* fallback */
        min-height: 100svh;
        /* Fix background on mobile/tablet */
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        width: 100%;
    }

    .announcement-title {

        font-size: var(--text-4xl);
        margin-bottom: 24px;
    }

    .announcement-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .slogan-section {
        gap: 16px;
        margin: 32px 0 40px 0;
    }
    
    
    .slogan-item {

        font-size: var(--text-lg);
        gap: 12px;
        padding: 10px 16px;
    }
    
    .slogan-item i {

        font-size: var(--text-xl);
    }
    
    .slogan-description p {

        font-size: var(--text-sm);
        line-height: var(--leading-relaxed);
    }

    .filter-section {
        margin: 48px 0;
        text-align: center;
    }

    .filter-tags {
        gap: 12px;
        justify-content: center;
    }

    .filter-btn {

        padding: 14px 24px;
        font-size: var(--text-sm);
        border-radius: 12px;
    }

    .search-box input {

        padding: 18px 60px 18px 60px;
        font-size: var(--text-base);
        border-radius: 12px;
    }

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

    .position-title {

        font-size: var(--text-xl);
        margin-bottom: 20px;
    }

    .job-desc {
        font-size: var(--text-xl);
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .job-details-list li {
        font-size: var(--text-lg);
        line-height: 1.2;
        padding: 5px 0;
    }

    .salary, .branch {
        margin-right: 12px;
        margin-bottom: 8px;
        font-size: var(--text-sm);
        padding: 6px 12px;
        border-radius: 10px;
    }

    .search-box i.fas.fa-search {

        left: 24px;
        font-size: var(--text-lg);
    }
}

@media (max-width: 576px) {

    .navbar {
        padding: 12px 0;
    }
    
    .navbar-brand img {
        height: 45px;
        width: 45px;
        padding: 2px;
    }
    
    .navbar-brand span {
        font-size: var(--text-lg);
    }

    .announcement-section {
        padding: 40px 0;
        /* Ensure first screen shows only announcement */
        min-height: 100vh; /* fallback */
        min-height: 100svh;
        /* Fix background on mobile */
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        width: 100%;
    }

    .announcement-title {
        font-size: var(--text-3xl);
        margin-bottom: 20px;
    }

    .slogan-item {
        font-size: var(--text-base);
        gap: 10px;
        padding: 8px 14px;
    }
    
    .slogan-item i {
        font-size: var(--text-lg);
    }

    .filter-btn {

        padding: 12px 20px;
        font-size: var(--text-xs);
        border-radius: 10px;
    }
    .job-card .card-body {
        padding: 18px;
    }

    .job-desc {
        font-size: var(--text-lg);
        margin-bottom: 8px;
        font-weight: 600;
        line-height: 1.2;
    }

    .job-details-list li {
        font-size: var(--text-base);
        line-height: 1.2;
        padding: 4px 0;
    }

    .position-title {
        font-size: var(--text-lg);
        margin-bottom: 16px;
    }

    .search-box input {
        padding: 16px 50px 16px 50px;
        font-size: var(--text-sm);
        border-radius: 10px;
    }

    .search-box i.fas.fa-search {
        left: 20px;
        font-size: var(--text-base);
    }
}


/* Premium Mobile Design for Extra Small Screens (320px) */
@media (max-width: 320px) {

    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand span {
        font-size: var(--text-base);
    }
    
    .navbar-brand img {
        height: 40px;
        width: 40px;
        padding: 2px;
    }

    .announcement-section {
        padding: 30px 0;
        /* Extra small screens should also fill the viewport */
        min-height: 100vh; /* fallback */
        min-height: 100svh;
        /* Fix background on extra small screens */
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        width: 100%;
    }

    .announcement-title {

        font-size: var(--text-2xl);
        margin-bottom: 16px;
    }

    .slogan-section {
        gap: 8px;
        flex-direction: column;
        margin: 20px 0 30px 0;
    }
    
    
    .slogan-item {
        font-size: var(--text-sm);
        gap: 8px;
        padding: 6px 12px;
    }
    
    .slogan-item i {
        font-size: var(--text-base);
    }
    
    .slogan-separator {
        display: none;
    }
    
    .slogan-description p {
        font-size: var(--text-xs);
        line-height: var(--leading-relaxed);
    }

    .announcement-btn {

        padding: 16px 28px;
        font-size: var(--text-sm);
        border-radius: 12px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: var(--text-xs);
        border-radius: 8px;
    }
    
    .job-card .card-body {
        padding: 16px;
    }

    /* Small Mobile Popup Responsive */
    .popup-content {
        max-width: 100%;
        border-radius: 16px;
        max-height: 95vh;
    }

    .popup-header {
        padding: 16px 16px;
    }

    .popup-title {
        font-size: var(--text-lg);
        line-height: 1.4;
        padding-right: 60px;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    
    .popup-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .popup-body {
        padding: 20px;
    }

    .popup-info-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .info-card {
        padding: 16px;
    }

    .info-card-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .popup-section {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .section-header {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .section-title {
        font-size: var(--text-lg);
    }

    .popup-detail-item {
        padding: 10px 0;
        font-size: var(--text-sm);
    }

    .popup-footer {
        padding: 16px 20px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .popup-btn {
        padding: 12px 20px;
        font-size: var(--text-sm);
        flex: 1;
        min-width: 120px;
    }

    .popup-btn-secondary {
        order: 2;
    }

    .popup-btn-primary {
        order: 1;
    }
    
    /* Footer & Job Card Styles for Extra Small Screens */
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .footer h5 {
        font-size: var(--text-base);
        margin-bottom: 12px;
    }
    
    .footer p, .footer a {
        font-size: var(--text-xs);
    }
    
    .footer .social-icons a {
        font-size: var(--text-base);
        margin-right: 10px;
    }
    
    .footer .copyright {
        font-size: var(--text-xs);
        margin-top: 15px;
        padding-top: 10px;
    }
    
    .job-card .btn {
        padding: 10px 16px;
        font-size: var(--text-sm);
        border-radius: 8px;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }


    .job-desc {
        font-size: var(--text-base);
        margin-bottom: 6px;
        font-weight: 600;
        line-height: 1.2;
    }

    .job-details-list li {
        font-size: var(--text-sm);
        line-height: 1.2;
        padding: 3px 0;
    }

    .position-title {
        font-size: var(--text-base);
        margin-bottom: 12px;
    }

    .salary, .branch {
        font-size: var(--text-sm);
        padding: 5px 10px;
        border-radius: 8px;
        margin-right: 8px;
        margin-bottom: 6px;
    }

    .search-box input {
        padding: 14px 40px 14px 40px;
        font-size: var(--text-xs);
        border-radius: 8px;
    }

    .search-box i.fas.fa-search {
        left: 16px;
        font-size: var(--text-sm);
    }

    /* Popup Styles for Extra Small Screens */
    .job-popup {
        padding: 8px;
    }

    .popup-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 8px;
    }

    .popup-header {
        padding: 12px 16px;
        border-radius: 8px 8px 0 0;
    }

    .popup-title {
        font-size: var(--text-base);
        line-height: 1.35;
        padding-right: 56px;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .popup-close {
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        font-size: var(--text-xs);
    }

    .popup-body {
        padding: 12px 16px;
    }

    .popup-section {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .popup-section-title {
        font-size: var(--text-base);
        gap: 6px;
        margin-bottom: 8px;
        padding: 8px 12px;
        border-radius: 6px;
    }

    .popup-section-title i {
        display: none;
    }

    .popup-list li {
        padding: 8px 0;
        gap: 8px;
        font-size: var(--text-sm);
    }

    .popup-list li::before {
        content: ">";
        width: 12px;
        height: 12px;
        font-size: var(--text-xs);
    }

    .popup-list li i {
        display: none;
    }

    .popup-footer {
        padding: 12px 16px;
        gap: 8px;
        border-radius: 0 0 8px 8px;
    }

    .popup-btn {
        padding: 8px 12px;
        font-size: var(--text-sm);
        border-radius: 6px;
        gap: 4px;
    }
}


