/* --------------------------------------------------
   GLOBAL FONT + BASE
-------------------------------------------------- */

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

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
    background: #ffffff;
    color: #222;
}

/* --------------------------------------------------
   TOP HEADER
-------------------------------------------------- */

.top-header {
    padding: 16px;
    background: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* logo + title row */
.title-row {
    display: flex;
    align-items: center;
}

/* lock logo size */
.logo {
    width: 48px;
    height: auto;
    margin-right: 12px;
    margin-top: 4px;
}

/* shared left margin for all three lines */
.header-align {
    margin-left: 60px;
    color: #00264d;
}

/* line 1: Degree Not Required */
.site-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* lines 2 & 3: half size, same color, aligned */
.tagline-sub,
.tagline-legal {
    font-size: 10px;
    line-height: 1.2;
    margin: 0;
}

/* --------------------------------------------------
   SEARCH BAR
-------------------------------------------------- */

.search-bar {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 8px;
}

/* --------------------------------------------------
   ACCORDION LIST
-------------------------------------------------- */

.accordion-section {
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    background: #fff;
    cursor: pointer;
}

.accordion-panel {
    display: none;
    padding: 0 16px 12px 16px;
}

.accordion-panel.open {
    display: block;
}

.job-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 16px;
}

.job-item:hover {
    color: #003366;
}

/* --------------------------------------------------
   JOB DETAIL CARD
-------------------------------------------------- */

#job-container {
    padding: 20px;
}

.gov-job-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#job-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.gov-row {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #eaeaea;
}

.gov-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.gov-row span:last-child {
    font-size: 15px;
}

/* --------------------------------------------------
   BACK BUTTONS
-------------------------------------------------- */

.back-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.back-buttons button {
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    background: #003366;
    color: white;
    cursor: pointer;
}

.back-buttons button:hover {
    background: #00264d;
}

/* --------------------------------------------------
   MOBILE POLISH
-------------------------------------------------- */

@media (max-width: 600px) {

    .site-title {
        font-size: 18px;
    }

    .tagline-sub,
    .tagline-legal {
        font-size: 10px;
    }

    .gov-job-card {
        padding: 16px;
        border-radius: 10px;
    }

    .gov-row {
        padding: 10px 0;
    }

    .gov-label {
        font-size: 12px;
    }

    .gov-row span:last-child {
        font-size: 14px;
    }

    .accordion-header {
        font-size: 16px;
        padding: 14px;
    }

    .job-item {
        font-size: 15px;
        padding: 10px 0;
    }
}
.logo {
    width: 48px;
    height: auto;
}
.nav-line {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* optional: lets it wrap on small screens */
}
.nav-line {
      font-size: 20px !important;
}
/* Clean modern header links */
.top-header .tagline-sub span a {
    color: #3a5cc4 !important;      /* modern blue */
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 0 8px !important;
}

.top-header .tagline-sub span a:hover {
    color: #1e3d99 !important;      /* darker hover */
    text-decoration: underline !important;
}
/* Clean, modern, professional header links */
.top-header .tagline-sub span a {
    color: #2a4fb8 !important;          /* richer blue */
    text-decoration: none !important;
    font-weight: 700 !important;        /* stronger, more premium */
    letter-spacing: 0.3px !important;   /* subtle polish */
    padding: 4px 10px !important;       /* breathing room */
    border-radius: 4px !important;      /* soft but not bubbly */
    transition: all 0.18s ease-in-out !important;
}

.top-header .tagline-sub span a:hover {
    color: #ffffff !important;
    background: #2a4fb8 !important;     /* invert on hover */
    text-decoration: none !important;
}

/* Desktop default */
.nav-line a {
    font-size: 14px;
}

/* Mobile override */
@media (max-width: 600px) {
    .nav-line a {
        font-size: 18px;
    }
}

html, body {
  background: #ffffff !important;
}
.ferret-wrap {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.ferret-wrap img {
    max-width: 350px;
    height: auto;
}
/* --------------------------------------------------
   FINAL TRIPLE-BLOCK LAYOUT
-------------------------------------------------- */

.triple-block {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Korean | spacer | English */
    gap: 40px;
    padding: 30px 40px;
    width: 100%;
    margin-left: 0;      /* anchor left */
    margin-right: auto;  /* stop centering */
}

.triple-block .korean {
    text-align: left;
}

.triple-block .english {
    text-align: left; /* you wanted English left-aligned */
}

/* mobile stack */
@media (max-width: 700px) {
    .triple-block {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .triple-block .korean,
    .triple-block .english {
        text-align: center;
    }
}

.triple-block {
    margin-left: 0 !important;
    margin-right: auto !important;
}
/* MOBILE FIXES — SAFE, CONTROLLED, DOES NOT BREAK DESKTOP */
@media (max-width: 600px) {

  /* Reduce all text by ~20% */
  html,
  body {
    font-size: 80% !important;
  }

  .site-title {
    font-size: 16px !important;
  }

  .tagline-sub,
  .tagline-legal {
    font-size: 8px !important;
  }

  .accordion-header {
    font-size: 14px !important;
    padding: 12px !important;
  }

  .job-item {
    font-size: 13px !important;
  }

  .gov-label {
    font-size: 11px !important;
  }

  .gov-row span:last-child {
    font-size: 12px !important;
  }

  .back-buttons button {
    font-size: 12px !important;
    padding: 10px 14px !important;
  }

  /* Normalize details/summary and nested list indentation */
  details,
  summary {
    margin: 0;
    padding: 0;
  }


  details ul,
  details ol,
  ul,
  ol {
    margin-left: 0 !important;
    padding-left: 1rem !important;
    list-style-position: inside !important;
  }
  details li,
  ul li,
  ol li {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  ul ul,
  ol ol,
  ul ol,
  ol ul {
    padding-left: 1rem !important;
  }

}
