/* =========================================
   CVNAMAI RESPONSIVE
   CLEAN MOBILE V1
   ========================================= */


/* =========================================
   MAŽESNI DESKTOP / TABLET
   ========================================= */

@media (max-width: 1100px) {

  .jobs-layout {
    grid-template-columns: 210px 1fr;
  }

  .employer-card {
    display: none;
  }
}


@media (max-width: 950px) {

  .nav-links {
    display: none;
  }
}


@media (max-width: 900px) {

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-box {
    flex-wrap: wrap;
  }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 750px) {

  /* =====================================
     BENDRA
     ===================================== */

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 32px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }


  /* =====================================
     HEADER
     ===================================== */

  .navbar {
    height: 64px;
    gap: 10px;
  }

  .logo {
    font-size: 20px;
    white-space: nowrap;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;

    font-size: 18px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
    gap: 8px;
  }

  .login-button {
    min-height: 40px;

    padding: 8px 13px;

    font-size: 12px;

    white-space: nowrap;
  }

  .post-job-button {
    min-height: 40px;

    padding: 8px 12px;

    font-size: 12px;

    white-space: nowrap;
  }


  /* =====================================
     HERO
     ===================================== */

  .hero {
    padding: 28px 0 28px;
  }

  .hero-top {
    display: block;
    min-height: 0;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-badge {
    display: inline-flex;

    margin-bottom: 14px;

    padding: 7px 11px;

    font-size: 11px;
  }

  .hero h1 {
    max-width: 100%;

    margin-bottom: 14px;

    font-size: 34px !important;
    line-height: 1.07;
    letter-spacing: -1px;
  }

  .hero p {
    max-width: 100%;

    margin: 0;

    font-size: 15px;
    line-height: 1.5;
  }


  /* =====================================
     PAIEŠKA
     ===================================== */

  .search-box {
    width: 100%;

    margin-top: 22px;

    display: grid !important;
    grid-template-columns: 1fr !important;

    gap: 9px;

    padding: 10px;

    border-radius: 16px;
  }

  .search-box input,
  .search-box select,
  .search-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    min-height: 48px;

    margin: 0;

    font-size: 14px;
  }

  .search-box input,
  .search-box select {
    padding: 0 14px;
  }

  .search-button {
    padding: 0 14px;

    font-size: 14px;
  }


  /* =====================================
     QUICK FILTERIAI
     ===================================== */

  .quick-filters {
    width: 100%;

    margin-top: 12px;

    display: flex !important;
    flex-wrap: nowrap !important;

    gap: 8px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 0 0 5px;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .quick-filters::-webkit-scrollbar {
    display: none;
  }

  .quick-filters button {
    flex: 0 0 auto !important;

    min-height: 38px;

    padding: 8px 12px;

    font-size: 11px;

    white-space: nowrap;
  }


  /* =====================================
     STATISTIKA
     ===================================== */

  .stats-grid {
    margin-top: 20px;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .stat-card {
    min-width: 0;

    padding: 12px;

    gap: 9px;

    border-radius: 14px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;

    border-radius: 10px;

    font-size: 18px;
  }

  .stat-card strong {
    font-size: 17px;
    line-height: 1.1;
  }

  .stat-card span {
    font-size: 11px;
    line-height: 1.25;
  }


  /* =====================================
     DARBO SKELBIMŲ SEKCIJA
     ===================================== */

  .jobs-section {
    padding: 30px 0 42px;
  }

  .jobs-layout {
    display: block;
  }

  .filters,
  .employer-card {
    display: none;
  }

  .jobs-header {
    margin-bottom: 16px;

    display: flex;

    gap: 12px;

    align-items: flex-end;
    justify-content: space-between;
  }

  .jobs-header h2 {
    margin: 0;

    font-size: 24px;
    line-height: 1.15;
  }

  .jobs-header p {
    margin-top: 5px;

    font-size: 13px;
  }

  .jobs-header select {
    width: 125px;
    max-width: 125px;

    min-height: 44px;

    padding: 0 10px;

    font-size: 12px;
  }


  /* =====================================
     DARBO KORTELĖ
     ===================================== */

  .job-card {
    width: 100%;

    display: grid;

    grid-template-columns: minmax(0, 1fr);

    gap: 12px;

    padding: 16px;

    border-radius: 15px;
  }

  .job-info {
    min-width: 0;
  }

  .job-info h3 {
    margin: 0;

    font-size: 16px;
    line-height: 1.25;
  }

  .job-meta {
    margin-top: 4px;

    font-size: 11px;
    line-height: 1.4;
  }

  .job-info p {
    margin: 7px 0;

    font-size: 12px;
    line-height: 1.45;
  }

  .job-tags {
    gap: 5px;
  }

  .job-tags span {
    padding: 4px 7px;

    font-size: 10px;
  }


  /* =====================================
     KORTELĖS VEIKSMAI
     ===================================== */

  .job-actions {
    grid-column: 1;

    min-width: 0;

    margin-top: 0;
    padding-left: 0;
    padding-top: 11px;

    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-left: 0;
    border-top: 1px solid #eef1f5;

    text-align: left;
  }

  .job-actions strong {
    order: 1;

    font-size: 15px;

    white-space: normal;
  }

  .job-posted-time {
    order: 2;

    margin-left: auto;

    text-align: right;
  }

  .job-actions small {
    display: block;

    margin: 3px 0 9px;

    font-size: 11px;
  }

  .job-buttons {
    width: 100%;

    display: grid;

    grid-template-columns: 1fr 1.35fr;

    gap: 7px;
  }

  .job-buttons button {
    width: 100%;
    min-width: 0;

    min-height: 42px;

    padding: 8px;

    font-size: 11px;
  }


  /* =====================================
     KAIP TAI VEIKIA
     ===================================== */

  .how-it-works {
    padding: 42px 0;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .steps-grid {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .step-card {
    padding: 22px 18px;

    border-radius: 15px;
  }

  .step-icon {
    width: 52px;
    height: 52px;

    font-size: 23px;
  }


  /* =====================================
     FOOTER
     ===================================== */

  footer {
    padding-top: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .footer-column {
    gap: 6px;
  }

  .footer-column h3 {
    margin-bottom: 5px;

    font-size: 16px;
  }

  .footer-column a,
  .footer-column p {
    font-size: 13px;
    line-height: 1.45;
  }

  .newsletter-box {
    width: 100%;
    max-width: 100%;
  }

  .footer-bottom {
    margin-top: 25px;
    padding: 16px 0;

    flex-direction: column;

    gap: 4px;

    font-size: 11px;
  }
}


/* =========================================
   LABAI MAŽI TELEFONAI
   ========================================= */

@media (max-width: 390px) {

  .container {
    width: calc(100% - 24px);
  }

  .hero h1 {
    font-size: 31px !important;
  }

  .hero p {
    font-size: 14px;
  }

  .stat-card {
    padding: 10px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;

    font-size: 16px;
  }

  .stat-card strong {
    font-size: 15px;
  }

  .stat-card span {
    font-size: 10px;
  }

  .jobs-header h2 {
    font-size: 22px;
  }

  .jobs-header select {
    width: 115px;
  }
}
