/* ========== Global Styles - External ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ========== Hero Section ========== */
.hero-section {
    background: linear-gradient(180deg, #6E100F 0%, #6E100F 35%, #B04C4C 70%, #D17070 100%);
    color: white;
    padding: 70px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    margin-left: 10%;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 0;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.hero-image img {
    max-width: 500px;
    height: auto;
}

/* ========== Search Section ========== */
.search-section {
    margin-top: -40px;
    margin-bottom: 60px;
}

.search-box {
    padding: 30px;
    border-radius: 12px;
    background: white;
}

.search-box h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.search-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input {
    flex: 2;
}

.level-select {
    flex: 1;
}

.search-button {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    color: white;
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    height: 56px;
}

.search-button:hover {
    background: linear-gradient(135deg, #a00000 0%, #e52040 100%);
}

/* ========== Job Cards ========== */
.job-card {
    border-radius: 16px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform .18s ease, box-shadow .18s ease, border .18s ease;
}

.job-card-content {
    padding: 14px 16px 10px 16px;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    cursor: pointer;
}

/* top badges */


.job-status-open {
    background-color: #ecfdf3;
    color: #15803d;
    font-weight: 500;
}

.job-status-closed {
    background-color: #fef2f2;
    color: #b91c1c;
    font-weight: 500;
}

.job-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;

    white-space: normal !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* LIMIT 2 LINE */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.job-location {
    color: #6b7280;
    margin-bottom: 8px;
}

/* 2x2 grid meta */
.job-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
}

.job-meta-item {
    display: flex;
    align-items: flex-start !important;
    gap: 8px;
    line-height: 1.4;
    color: #4b5563;
}

.job-meta-item .mud-icon-root {
    font-size: 17px;
    line-height: 1.35;      /* konsisten icon size */
   color: #6b7280;         /* soft grey icon */
   margin-top: 2px;
}

.job-meta-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;                /* jarak antar baris */
    margin-top: 10px;
}

.job-meta-red {
    background-color: rgba(228, 24, 63, 0.08);
    color: #a40d2c;
}

.job-meta-red .mud-icon-root {
    color: #E4183F;
}

.job-meta-grey {
    background-color: #f3f4f6;
    color: #4b5563;
}

.job-meta-grey .mud-icon-root {
    color: #6b7280;
}

/* footer */
.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 10px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(90deg, #ffffff, #fff5f7);
}

/* ========== External Container ========== */
.external-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== Navigation Bar ========== */
.external-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.navbar-brand h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.navbar-menu {
    display: flex;
    gap: 30px;
}

.navbar-menu .nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.navbar-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========== Main Content ========== */
.external-main {
    flex: 1;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

/* ========== Content Section ========== */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: #7f8c8d;
}

/* ========== Features Grid ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* ========== Job Cards ========== */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.job-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.job-header {        /* cukup untuk 2 baris title */
    display: flex;
    align-items: flex-start;
}


.job-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #7f8c8d;
    flex-wrap: wrap;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.job-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.job-tag {
    background: #f0f3f7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-salary {
    font-size: 18px;
    font-weight: 700;
    color: #2ecc71;
}

/* ========== Application Form ========== */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #7f8c8d;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== Status Tracking ========== */
.status-container {
    max-width: 800px;
    margin: 0 auto;
}

.status-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f3f7;
}

.status-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.review {
    background: #cfe2ff;
    color: #084298;
}

.status-badge.interview {
    background: #d1e7dd;
    color: #0f5132;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #842029;
}

.status-timeline {
    margin-top: 30px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% + 5px);
    background: #e0e6ed;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding-top: 5px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.timeline-time {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 14px;
    color: #555;
}

/* ========== Footer ========== */
.external-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 30px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        gap: 20px;
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 25px;
    }

    .section-header h2 {
        font-size: 28px;
    }
}

/* ========== Alert Messages ========== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-error {
    background: #f8d7da;
    color: #842029;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: #cfe2ff;
    color: #084298;
    border-left: 4px solid #0d6efd;
}

.kairos-appbar {
    background-color: transparent !important;
    transition: background-color .25s ease, box-shadow .25s ease;
    z-index: 1100;
}

.kairos-appbar .mud-button.appbar-login-btn {
    background-color: #ffffff;
    color: var(--mud-palette-secondary) !important;
    text-transform: none;
}

/* kondisi setelah di-scroll */
.kairos-appbar.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.kairos-appbar.scrolled .mud-button.appbar-login-btn {
    background-color: var(--mud-palette-secondary) !important;
    color: #ffffff !important;
}


.job-meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px; 
}


.job-meta-red {
    color: #e53935 !important; /* merah */
}

.job-meta-red .mud-icon-root {
    color: #e53935 !important;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px 24px; /* row gap, column gap */
}

.section-title {
    margin-bottom: 20px;
}

  .kairos-footer {
        position: relative;
        margin-top: 64px; /* setara mt-16 */
        padding: 64px 0 28px 0;
        background-image: url('/images/footer-city.jpg'); /* <-- ganti ini */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow: hidden;
    }

    /* dark overlay */
    .kairos-footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        z-index: 0;
    }

    .kairos-footer .footer-content {
        position: relative;
        z-index: 1;
    }

    .footer-muted {
        color: rgba(255,255,255,0.78);
        line-height: 1.55;
    }

    .footer-title {
        color: #fff;
        font-weight: 700;
    }

    .footer-divider {
        background-color: rgba(255,255,255,0.22) !important;
    }


    .apply-card-title {
    background: #2f3a40;
    color: #fff;
    padding: 14px 16px;
    font-weight: 700;
}

.apply-card-body {
    padding: 16px;
}

.apply-label {
    color: #b10f2e;          /* merah seperti gambar */
    font-weight: 700;
    margin-bottom: 6px;
}

.apply-hint {
    color: #6b7280;
    font-size: 12px;
    margin-top: -4px;
    margin-bottom: 8px;
}

.apply-input .mud-input-control > .mud-input-control-input-container {
    background: #eef6ff;      /* biru muda */
    border-radius: 4px;
}

.apply-input .mud-input-root {
    padding: 12px 12px;       /* tinggi field */
}

.apply-input .mud-input-underline:before,
.apply-input .mud-input-underline:after {
    display: none !important; /* hilangin underline */
}

.dropzone {
    background: #fff;
    border: 2px dashed #cfd4da;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.dropzone .dz-link {
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.btn-submit-like {
    color: #fff !important;
    font-weight: 700;
    border-radius: 4px;
    padding: 12px 14px;
}

.soft-input { background-color: #EEF4FB; }

    .file-upload-input { position:absolute; width:100%; height:100%; overflow:hidden; z-index:10; opacity:0; }
    .upload-link { color:#2563eb; text-decoration:underline; }
    .file-name { color:#2563eb; text-decoration:underline; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:320px; display:inline-block; }


    /* page background & spacing */
.kairos-page{
  background:#fff;
  min-height: 100vh;
  padding-top: 78px; /* offset appbar */
  padding-bottom: 60px;
}

.kairos-topbar{
  border-bottom: 1px solid #eee;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}

.kairos-logo{ height: 34px; object-fit: contain; }
.kairos-brand{ font-weight: 600; color:#444; }
.top-link{ text-transform:none; }
.top-login{ text-transform:none; border-radius: 10px; }

.kairos-breadcrumb { margin-top: 14px; }
.kairos-title { font-weight: 700;}

/* filter card */
.filter-card{
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.filter-header{
  background:#2f3a3d;
  color:#fff;
  padding: 18px 20px;
  font-weight: 600;
  font-size:18px;
}

.filter-body{ padding: 14px 16px 16px; }
.filter-section{ color:#8b1d1d; font-weight: bold; font-size: 16px; }

.filter-apply{
  margin-top: 16px;
  border-radius: 8px;
  height: 42px;
}

/* search row */
.search-row{
  display:flex;
  align-items:center;
  gap: 12px;
}

.search-input{
  flex: 1;
  border-radius: 12px;
}

.search-btn{
  border-radius: 10px;
  background: #6f1d1b;
  color: #fff;
  width: 44px;
  height: 44px;
}

.meta-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-top: 12px;
}

.results-text{ color:#666; }
.sort-select{ min-width: 160px; }

/* job card */
.job-card{
  border: 1px solid #edf0f2;
  border-radius: 10px;
  padding: 14px 14px 16px;
  background:#fff;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  min-height: 100%;
}

.job-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.job-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px; /* spacing antar elemen */
}

.job-card-chips-left {
    display: flex;
    align-items: center;
    gap: 8px; /* spacing antar chip */
    flex-wrap: wrap; /* wrap jika terlalu panjang */
}

.job-chip{
  border-radius: 8px;
  font-weight: 600;
}

.applied-badge{
  background: #e9ecef;
  color:#555;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.job-title{ font-weight: 800; margin-top: 2px; }
.job-meta{ color:#7b7b7b; margin-top: 4px; font-size: 12px; }
.job-desc{ color:#6d6d6d; margin-top: 5px; font-size: 13px; }

.readmore{
  color:#1d66ff;
  margin-left: 6px;
  font-weight: 600;
  text-decoration: underline;
}
