@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* --- Design Tokens --- */
:root {
    --bg-primary: #121212;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-blue: #00aaff;
    --accent-yellow: #ffcc00;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}


.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* --- Navbar --- */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Background Glows */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.blue-glow {
    background: #007AFF;
    top: -100px;
    left: -100px;
}

.orange-glow {
    background: #FF8A00;
    bottom: -100px;
    right: -100px;
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 40px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -20px;
}

.logo img {
    height: 22px;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nav-center .page-title {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-center .admin-suffix {
    font-weight: 500;
    color: var(--text-primary);
}

.nav-center .admin-active {
    font-weight: 500;
    color: var(--text-primary);
}

.nav-center .admin-link-grey {
    font-weight: 300;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-center .admin-link-grey:hover {
    color: var(--text-primary);
    opacity: 0.8;
}

.nav-right {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
}

.profile-btn {
    background: #5a5a5a4f;
    color: white;
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.profile-btn:hover {
    background: #ff296964;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 0, 38, 0.14);
}

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    color: var(--text-primary);
}

.switch-icon {
    width: 20px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-btn img {
    height: 16px;
}

.nav-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.close-btn,
.edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 15px;
    transition: var(--transition);
}

.close-btn:hover,
.edit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-btn img,
.edit-btn img {
    height: 20px;
}

.admin-job-btn {
    margin-right: 0px !important;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 14px;
}

/* --- Home Hero --- */
.home-hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 78, 80, 0.1), transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(0, 170, 255, 0.1), transparent 40%);
}

.hero-content {
    text-align: center;
    max-width: 1000px;
}

.hero-title {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Category Grid --- */
.category-grid {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: nowrap;
    padding-bottom: 60px;
    width: 100%;
}

.category-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 30px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-container {
    display: flex;
    gap: 20px;
}

.group-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

.sales-text {
    color: var(--accent-blue);
}

.ops-text {
    color: var(--accent-yellow);
}

.category-card {
    width: 230px;
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 40px;
    transition: var(--transition);
    position: relative;
    overflow: visible;
    border-radius: 24px;
    background: #0000004a;
}

.category-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.persona-img {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    bottom: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.persona-img img {
    height: 140%;
    object-fit: contain;
    transition: var(--transition);
    margin-bottom: -40px;
}

.category-card:hover .persona-img img {
    transform: scale(1.05);
}

.card-label {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-primary);
    position: relative;
    z-index: 10;
}

/* --- Search All Button --- */
.search-all-container {
    text-align: center;
    margin-bottom: 60px;
}

.search-all-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.search-all-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

/* --- Search Page --- */
.search-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 40px;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-icon-bg {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-placeholder {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
    mask: url('icons/Icon_House.svg') no-repeat center;
    -webkit-mask: url('icons/Icon_House.svg') no-repeat center;
}

.category-icon-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-title {
    font-size: 36px;
    font-weight: 400;
}

.search-box {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 50px;
    gap: 15px;
    height: 65px;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    background-color: #ffffff07;
    transition: var(--transition);
}

.search-box.active {
    background: linear-gradient(135deg, rgba(0, 127, 230, 0.6), rgba(0, 95, 178, 0.6));
    border-color: #007AFF;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
}

.search-box.admin-size {
    height: 42px;
    padding: 8px 15px;
    max-width: 900px;
    min-width: 280px;
}

.search-icon {
    width: 20px;
    opacity: 0.6;
    transition: var(--transition);
}

.search-box.active .search-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    transition: var(--transition);
}

.search-box.active input {
    color: #ffffff;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box.active input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    outline: none;
}

.clear-search {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.search-box.active .clear-search img {
    filter: brightness(0) invert(1);
}

/* Filters */
.filters-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-chip {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-chip.active {
    background: linear-gradient(135deg, rgba(0, 127, 230, 0.6), rgba(0, 95, 178, 0.6));
    border-color: #007AFF;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.filter-chip.active .chip-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.chip-icon {
    width: 14px;
    opacity: 0.8;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

.filter-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 18px;
    height: 38px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    box-sizing: border-box;
}

.filter-select-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-select-wrapper.active {
    background: linear-gradient(135deg, rgba(0, 127, 230, 0.6), rgba(0, 95, 178, 0.6));
    border-color: #007AFF;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.filter-select-wrapper.active .chip-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.filter-select {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 20px;
    height: 100%;
    line-height: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.filter-select-wrapper.active .filter-select {
    color: #ffffff;
}

.filter-select option {
    background: #1a1a1a;
    color: white;
}

/* Results Info */
.results-info {
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
    color: var(--text-secondary);
}

.results-count {
    color: var(--text-primary);
}

/* Job Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.job-card {
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    background: transparent;
    text-decoration: none;
    color: inherit;
    /* Card itself is transparent, content holds the overlay/blur */
}

.job-card:hover {
    transform: translateY(-5px);
}

.job-banner {
    height: 220px;
    /* Increased height to accommodate overlap */
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.job-banner::after {
    content: '';
    position: absolute;
    top: 160px;
    /* Start of the info box overlay (220 - 60) */
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(51, 51, 51, 0), #000000);
    z-index: 5;
    pointer-events: none;
}

.job-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-content {
    padding: 30px;
    margin-top: -60px;
    /* Overlay onto banner */
    margin-left: 0;
    margin-right: 0;
    position: relative;
    z-index: 10;
    background: #33333380;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 20px;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    max-height: 270px;
    overflow: hidden;
}

.job-dept-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-blue);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.job-dept-inline {
    color: var(--text-secondary);
    margin-left: 12px;
}

.job-dept-label[data-dept="internal"],
.job-dept-label[data-dept="field"],
.job-dept-inline[data-dept="internal"],
.job-dept-inline[data-dept="field"] {
    color: #ffcc00;
}

.job-title {
    font-size: 22px;
    margin-bottom: 10px;
    max-width: 320px;
    max-height: 37px;
    overflow: clip;
}

.job-meta {
    display: flex;
    gap: 20px;
    row-gap: 6px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--accent-blue);
}

.meta-item img {
    width: 14px;
    height: 14px;
}

.job-salary {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 15px;
}

.job-snippet {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    min-height: 60px;
}

/* Job Detail Page Styles */
.job-detail-main {
    padding-top: 100px;
    padding-bottom: 120px;
    min-height: 100vh;
}

.job-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.job-story {
    width: 100%;
}

.label-small {
    display: inline-block;
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.label-small-position {
    display: inline-block;
    color: rgb(255 255 255 / 56%);
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.job-title-large {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
}

.job-salary-large {
    font-size: 40px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 10px;
}

.post-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.apply-btn-inline {
    background: linear-gradient(135deg, #22BC63, #00B987);
    border: none;
    color: white;
    padding: 18px 72px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 40px;
    transition: var(--transition);
}

.apply-btn-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 188, 99, 0.4);
}

.spec-section {
    margin-top: 40px;
}

.spec-section h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #ffffff;
}

.spec-section ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-secondary);
}

.spec-section ul li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.spec-section p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Right Column (Banner) */
.job-detail-banner {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    margin-top: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.job-detail-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.job-story-text {
    width: 100%;
}

.story-section {
    margin-bottom: 40px;
}

.story-section h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
}

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

/* Sticky Apply Bar (Mobile) */
.sticky-apply-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 20px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: none;
}

.apply-btn-full {
    width: 100%;
    background: linear-gradient(135deg, #22BC63, #00B987);
    border: none;
    color: white;
    padding: 18px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* --- Admin View Styles --- */
.admin-main {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-title-group h1 {
    font-size: 32px;
    font-weight: 500;
}

.admin-actions {
    display: flex;
    gap: 15px;
}

.btn-purple {
    background: linear-gradient(135deg, #FF45B7, #b2003e);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 69, 183, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #007FE6, #005FB2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.btn-green {
    background: linear-gradient(135deg, #22BC63, #00B987);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 188, 99, 0.4);
}

.admin-table-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    /* Container itself stays clipped */
}

/* Wrapper for horizontal scroll */
.admin-table-scroll {
    overflow-x: auto;
    width: 100%;
}

.admin-table-scroll::-webkit-scrollbar {
    height: 8px;
}

.admin-table-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.admin-table-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.admin-table-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table td {
    padding: 20px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.job-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-cell-title {
    font-weight: 500;
    color: white;
}

.job-cell-id {
    font-size: 12px;
    color: var(--text-secondary);
}

.status-badge {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-published {
    color: #5BD664;
}

.status-archived {
    color: #FF45B7;
}

.status-draft {
    color: #FFA500;
}

/* --- Admin Filters --- */
.admin-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-direction: row;
    flex-wrap: wrap;
}

.search-filter {
    flex: 2;
}

.filter-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    opacity: 0.5;
    pointer-events: none;
}

.filter-group input,
.filter-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 15px;
    color: white;
    font-size: 14px;
    transition: var(--transition);
    appearance: none;
}

.search-filter input {
    padding-left: 45px;
}

.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.action-btns {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-btn img {
    width: 16px;
    opacity: 0.8;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: #1a1a1a;
    width: 100%;
    max-width: 600px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.modal-body {
    padding: 40px;
}

.form-group label,
.spec-section-admin label,
.banner-upload-section label,
.uploaded-options label {
    display: block;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: -7px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 20px;
    color: white;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group select,
.admin-select {
    border-radius: 50px !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.05);
}

.upload-area p {
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-footer {
    padding: 0 40px 40px;
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.btn-submit {
    flex: 2;
}

.modal-small {
    max-width: 450px;
}

.confirm-message {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.confirm-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
}

.confirm-message p {
    font-size: 16px;
    line-height: 1.5;
}

.confirm-message .sub-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.confirm-message .sub-text.destructive {
    color: #FF4545;
}

.btn-destructive {
    background: linear-gradient(135deg, #FF4545, #D12D2D) !important;
}

.btn-destructive:hover {
    box-shadow: 0 4px 15px rgba(255, 69, 69, 0.4) !important;
}

/* Success State */
.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 170, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.success-icon img {
    width: 80px;
    height: 80px;
}

.success-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.success-content p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* --- Media Queries --- */

@media (max-width: 1200px) {
    .category-grid {
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 560px) {
    .admin-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .container {
        padding: 0 40px;
    }

    .navbar {
        height: 100px;
    }

    .nav-center {
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        margin-left: 55px;
        margin-top: 34px;
    }

    .nav-center .logo img {
        height: 20px;
    }

    .logo img {
        height: 22px;
        margin-bottom: 8px;
    }

    .nav-center .page-title {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--text-secondary);
        font-weight: 300;
        margin-top: -2px;
    }

    input.admin-input-large {
        font-size: 24px;
        font-weight: 400;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .category-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        flex-wrap: nowrap;
    }

    .category-group {
        width: 100%;
        max-width: 500px;
        padding: 15px;
        border-radius: 30px;
    }

    .card-container {
        flex-direction: row;
        width: 100%;
        gap: 10px;
        justify-content: center;
    }

    .category-card {
        flex: 1;
        width: 0;
        min-width: 140px;
        height: 240px;
        padding-bottom: 20px;
        border-radius: 20px;
    }

    .group-label {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 10px;
        font-size: 24px;
        opacity: 1;
        text-align: center;
    }

    .persona-img {
        top: 10px;
        bottom: 50px;
    }

    .persona-img img {
        height: 140%;
        margin-bottom: -10px;
    }

    .card-label {
        font-size: 14px;
    }

    /* --- Search Page Mobile --- */
    .search-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-bottom: 30px;
    }

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

    .search-box {
        width: 100%;
        max-width: 100%;
        padding: 10px 18px;
    }

    .filters-container {
        margin-bottom: 30px;
        justify-content: center;
    }

    .results-info {
        font-size: 18px;
        margin-bottom: 20px;
    }

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

    .job-card {
        flex-direction: column;
        border-radius: 20px;
        height: auto;
        margin-bottom: 20px;
    }

    .job-banner {
        height: 140px;
        /* Scaled down for mobile */
        width: 100%;
        border-radius: 20px;
        position: relative;
        overflow: hidden;
    }

    .job-banner::after {
        content: '';
        position: absolute;
        top: 100px;
        /* Start of the info box overlay (140 - 40) */
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(51, 51, 51, 0), #000000);
        z-index: 5;
        pointer-events: none;
    }

    .job-content {
        padding: 20px;
        width: auto;
        /* Reset from desktop 65% if it was there, or match new vertical */
        margin-top: -40px;
        /* Scaled overlay for mobile */
        margin-left: 0;
        margin-right: 0;
        border-radius: 20px;
        background: #33333380;
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        border: 0.5px solid rgba(255, 255, 255, 0.3);
    }

    .job-title {
        font-size: 16px;
        margin-bottom: 8px;
        white-space: normal;
        /* Allow wrap on mobile */
    }

    .job-meta {
        gap: 12px;
        margin-bottom: 12px;
    }

    .meta-item {
        font-size: 11px;
    }

    .job-salary {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .job-snippet {
        display: block;
        /* Show a small version of snippet or keep hidden? Design says on phone usually condensed. */
        font-size: 12px;
    }

    .mobile-footer-action {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .edit-search-btn {
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition);
    }

    .edit-search-btn:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .scroll-top-icon {
        width: 24px;
        height: 24px;
        transform: rotate(90deg);
        opacity: 0.8;
    }

    /* Job Detail Mobile Overrides */
    .job-detail-main {
        padding-top: 120px;
    }

    .job-detail-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .job-story {
        display: contents;
        /* Allows children to be ordered in the parent grid */
    }

    .job-detail-banner {
        margin-bottom: 10px;
        margin-top: -10px;
    }

    .job-specs {
        display: contents;
    }

    /* Items before responsibilities */
    .job-specs>.job-labels-wrap,
    .job-specs>.job-title-large,
    .job-specs>.job-meta,
    .job-specs>.job-salary-large,
    .job-specs>.post-date,
    .job-specs>.apply-btn-inline {
        order: 10;
    }

    .job-labels-wrap {
        display: flex;
        align-items: center;
        gap: 0;
        order: 10;
    }

    .job-dept-inline {
        margin-left: 8px !important;
    }



    /* All sections (Responsibilities, Requirements, etc) */
    .job-specs>.spec-section {
        order: 30;
        margin-top: 0px;
    }

    .job-story-text {
        order: 40;
        margin-top: 20px;
    }

    .job-title-large {
        font-size: 30px;
        margin-top: -20px;
        margin-bottom: 0px;
    }

    .job-salary-large {
        font-size: 30px;
    }

    .sticky-apply-bar {
        display: block;
    }
}

/* --- Admin Table Responsiveness --- */
@media (max-width: 1132px) {
    .admin-table-container {
        margin: 20px -40px 0;
        padding: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        position: relative;
        overflow: hidden;
    }

    .admin-table-scroll {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 10px;
        /* Space for scrollbar */
    }

    .admin-table {
        min-width: 1100px;
        /* Forced overflow */
    }

    .admin-table-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60px;
        background: linear-gradient(to left, var(--bg-primary), transparent);
        pointer-events: none;
        z-index: 10;
        border-radius: 0;
    }
}

/* --- Add Job Page Styles --- */
.add-job-main {
    padding-top: 120px;
    padding-bottom: 100px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.add-job-container {
    max-width: 1440px;
    z-index: 1;
}

.status-indicator {
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.status-draft {
    color: #F2994A;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.form-column {
    display: flex;
    column-gap: 20px;
    flex-direction: column;
    gap: 30px;
}

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

.form-group,
.spec-section-admin,
.uploaded-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.form-group.flex-grow {
    flex: 1;
}



.admin-input,
.admin-textarea,
.admin-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

input.admin-input-large {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 10px 0;
    font-size: 30px;
    font-weight: 400;
    color: white;
    width: 100%;
}

.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus,
.admin-input-large:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.1);
}

.admin-textarea {
    resize: vertical;
    min-height: 140px;
}

.admin-textarea.tall {
    min-height: 250px;
}

.admin-select-wrapper {
    position: relative;
}

.admin-select-wrapper::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('icons/Icon_DropDownArrow.svg') no-repeat center;
    background-size: contain;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 1;
}

.admin-select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-symbol .symbol {
    position: absolute;
    left: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.input-with-symbol .admin-input {
    padding-left: 30px;
}

.input-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.toggle-group {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    /* Hide old toggle group by default or keep for modal if needed, but we are moving to simple containers */
}

/* If the modal still uses toggle-group, let's keep it but make it overrideable */
.admin-modal .toggle-group {
    display: flex;
}

.toggle-group.tiny {
    flex: 0 0 auto;
    width: 100px;
    background: transparent;
    border: none;
    padding: 0;
}

.toggle-container-simple {
    display: flex;
    align-items: flex-start;
    height: 45px;
    /* Matches admin-input height */
}

.toggle-with-label {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    min-width: 44px;
    height: 24px;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Added subtle border */
}

.switch input:checked+.slider {
    background-color: #5BD664;
}

.switch input:focus+.slider {
    box-shadow: 0 0 1px #5BD664;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

/* Removed orange override to allow green active state */
/* input:checked+.slider {
    background-color: var(--accent-orange);
} */

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.section-divider {
    margin: 20px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.section-divider h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-orange);
}

.banner-upload-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
}

.upload-header {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.upload-btn {
    background: white;
    color: black;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 130px;
}

.upload-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

.banner-preview {
    width: 100%;
    aspect-ratio: 1000 / 480;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.thumbnail {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    border-color: var(--accent-orange);
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.action-right {
    display: flex;
    gap: 20px;
}

.btn-delete {
    background: transparent;
    border: 1px solid #FF5252;
    color: #FF5252;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #FF5252;
    color: white;
}

.btn-archive {
    background: transparent;
    border: 1px solid #FF45B7;
    color: #FF45B7;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-archive:hover {
    background: #FF45B7;
    color: white;
}

.btn-draft {
    background: rgba(242, 153, 74, 0.1);
    border: 1px solid #F2994A;
    color: #F2994A;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-draft:hover {
    background: #F2994A;
    color: white;
}

.btn-publish {
    background: #4CAF50;
    border: 1px solid #4CAF50;
    color: white;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-publish:hover {
    background: #43A047;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}


/* Highlight for last edited job */
.recent-job-row {
    background-color: #2365e01c !important;
}

.recent-job-row td:first-child {
    box-shadow: inset 3px 0 0 #0077ff;
}

/* --- Side Menu --- */
.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2001;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.side-menu.active {
    transform: translateX(320px);
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.side-menu-logo img {
    height: 22px;
}

.side-menu-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.side-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.side-menu-close img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.side-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.side-menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.side-menu-link img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    filter: brightness(0) invert(1);
}

.side-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.side-menu-footer {
    margin-top: auto;
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ======================================
   INLINE APPLICATION SECTION
   ====================================== */

.application-section {
    background: linear-gradient(180deg, rgb(14 14 14 / 39%) 0%, rgb(14 14 14 / 0%) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    position: relative;
    z-index: 10;
    animation: appSectionSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes appSectionSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.application-section-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 170px 30px 60px;
}

.application-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.application-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.application-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.application-close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.application-close img {
    width: 22px;
    height: 22px;
    opacity: 1;
    rotate: 90deg;
}

/* Section titles */
.app-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    letter-spacing: 0.3px;
}

.app-form-section {
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
}

/* Form grid - 2 column on desktop */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-full {
    grid-column: 1 / -1;
}

/* Required star */
.required-star {
    color: #ff4d4d;
    font-weight: 600;
}

/* Form inputs within application section */
.application-section .form-group {
    margin-bottom: 0;
}

.application-section .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.application-section .form-group input[type="text"],
.application-section .form-group input[type="email"],
.application-section .form-group input[type="tel"],
.application-section .form-group input[type="url"],
.application-section .form-group textarea,
.application-section .form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.application-section .form-group input:focus,
.application-section .form-group textarea:focus,
.application-section .form-group select:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.application-section .form-group input::placeholder,
.application-section .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.application-section .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.application-section .form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M1.41 0L6 4.58 10.59 0 12 1.41 6 7.41 0 1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Phone input group */
.phone-input-group {
    display: flex;
    gap: 8px;
}

.country-code-select {
    width: 110px !important;
    flex-shrink: 0;
    padding: 12px 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M1 0l4 4 4-4z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    padding-right: 24px !important;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.country-code-select:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.phone-input-group input[type="tel"] {
    flex: 1;
    min-width: 0;
}

/* Upload area */
.application-section .upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.02);
}

.application-section .upload-area:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.application-section .upload-area.drag-over {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
}

.application-section .upload-area.file-selected {
    border-color: var(--accent-blue);
    border-style: solid;
    background: rgba(59, 130, 246, 0.06);
}

.application-section .upload-area img {
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.application-section .upload-area p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.upload-hint {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 6px;
}

/* EEO Section */
.eeo-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.eeo-notice {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* SMS Consent */
.sms-consent-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked+.radio-custom {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
}

.radio-label input[type="radio"]:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-label input[type="radio"]:checked~* {
    color: var(--text-primary);
}

/* Form actions */
.app-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-form-actions .btn-secondary {
    padding: 12px 28px;
}

.app-form-actions .btn-submit {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
}

/* Success state */
.application-success {
    text-align: center;
    padding: 60px 20px;
    animation: appSectionSlideUp 0.4s ease forwards;
}

.application-success .success-icon {
    margin-bottom: 24px;
}

.application-success .success-icon img {
    width: 80px;
    height: 80px;
    opacity: 1;
}

.application-success h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.application-success p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 30px;
}

/* Form Validation Styles */
.form-group.error input[type="text"],
.form-group.error input[type="email"],
.form-group.error input[type="tel"],
.form-group.error input[type="url"],
.form-group.error textarea,
.form-group.error select {
    border-color: #ff4d4d !important;
    background: rgba(255, 77, 77, 0.05) !important;
}

.form-group.error .upload-area {
    border-color: #ff4d4d !important;
    background: rgba(255, 77, 77, 0.05) !important;
}

.error-message {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('icons/Icon_Notice_Warning.svg') no-repeat center;
    background-size: contain;
}

.sms-consent.error {
    border: 1px solid #ff4d4d;
    background: rgba(255, 77, 77, 0.05);
    border-radius: 12px;
    padding: 15px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .application-section-inner {
        padding: 140px 40px 40px;
    }

    .application-header h2 {
        font-size: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .country-code-select {
        width: 100% !important;
    }

    .app-form-actions {
        flex-direction: column-reverse;
    }

    .app-form-actions button {
        width: 100%;
    }

    .eeo-section {
        padding: 16px;
    }
}