/* ==========================================================================
   RESPONSIVE RULES
   JobUpdatesByKiran
   Mobile-first overrides
   Loaded after style.css

   Breakpoints:
   1080px - Small desktop / large tablet
   860px  - Tablet
   620px  - Mobile
   480px  - Small mobile
   380px  - Very small mobile
   ========================================================================== */


/* ==========================================================================
   SMALL DESKTOP / LARGE TABLET
   ========================================================================== */

@media (max-width: 1080px) {

  .job-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-grid,
  .cat-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid {
    gap: 36px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .apply-card {
    position: static;
  }

}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 860px) {

  section {
    padding: 52px 0;
  }

  /* Hide desktop navigation */
  .nav-links {
    display: none;
  }

  /* Show hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Mobile navigation menu */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;

    background: #fff;

    border-bottom: 1px solid var(--line);

    padding: 10px 24px 18px;

    box-shadow: var(--shadow-md);

    gap: 2px;

    z-index: 1000;
  }

  .nav-links.mobile-open a {
    padding: 12px 14px;
  }


  /* Hero */
  .hero {
    padding: 48px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    gap: 20px;
  }


  /* Search */
  .search-panel {
    flex-direction: column;
  }

  .search-divider {
    display: none;
  }

  .search-panel .btn-primary {
    width: 100%;
  }


  /* Categories */
  .cat-grid,
  .cat-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }


  /* Companies */
  .company-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  /* Jobs */
  .job-grid {
    grid-template-columns: 1fr;
  }


  /* Other grids */
  .split {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .details-facts {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 620px) {

  /* Container */
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }


  /* Header height */
  .nav {
    height: 66px;
    min-height: 66px;
    gap: 7px;
  }


  /* ============================================================
     BRAND
     ============================================================ */

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

    min-width: 0;

    flex: 1;

    gap: 7px;

    overflow: hidden;
  }


  /* JK LOGO */
  .brand .brand-mark {
    width: 38px;
    height: 38px;

    min-width: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 14px;
  }


  /* JOBUPDATESBYKIRAN */
  .brand span.brand-text {

    display: block !important;

    visibility: visible !important;

    opacity: 1 !important;

    min-width: 0;

    max-width: 145px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 12px;

    line-height: 1.1;

    flex-shrink: 1;
  }


  /* JOB UPDATES subtitle */
  .brand span.brand-text small {

    display: block !important;

    margin-top: 3px;

    font-size: 6px;

    line-height: 1;

    letter-spacing: 1px;

    white-space: nowrap;
  }


  /* ============================================================
     HEADER ACTIONS
     ============================================================ */

  .nav-actions {

    display: flex;

    align-items: center;

    gap: 5px;

    flex-shrink: 0;
  }


  /* Search button */
  .nav-search-toggle {

    width: 40px;
    height: 40px;

    flex-shrink: 0;
  }


  /* Browse Jobs */
  .nav-actions .btn {

    padding: 9px 11px;

    font-size: 11px;

    white-space: nowrap;

    flex-shrink: 0;
  }


  /* Hamburger */
  .nav-toggle {

    width: 40px;
    height: 40px;

    flex-shrink: 0;
  }


  /* ============================================================
     HERO
     ============================================================ */

  .hero h1 {
    font-size: 30px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-stats {
    flex-wrap: wrap;
    row-gap: 14px;
  }


  /* ============================================================
     SECTION HEAD
     ============================================================ */

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 24px;
  }


  /* ============================================================
     CATEGORIES
     ============================================================ */

  .cat-grid,
  .cat-grid.cols-3 {
    grid-template-columns: 1fr;
  }


  /* ============================================================
     COMPANIES
     ============================================================ */

  .company-grid {
    grid-template-columns: 1fr;
  }


  /* ============================================================
     TICKET
     ============================================================ */

  .ticket {
    grid-template-columns: 1fr;
  }

  .ticket-stub {

    width: 100%;

    flex-direction: row;

    justify-content: space-between;

    align-items: center;

    border-left: none;

    border-top: 2px dashed var(--line-strong);

    padding: 12px 18px;
  }

  .ticket-stub::before,
  .ticket-stub::after {

    left: auto;

    top: -8px;
  }

  .ticket-stub::before {
    left: -8px;
  }

  .ticket-stub::after {

    right: -8px;

    left: auto;
  }

  .stub-barcode {
    display: none;
  }


  /* ============================================================
     FOOTER
     ============================================================ */

  .footer-grid {

    grid-template-columns: 1fr;

    gap: 26px;
  }

  .footer-bottom {

    flex-direction: column;

    align-items: flex-start;

    gap: 8px;
  }


  /* ============================================================
     DETAILS
     ============================================================ */

  .details-header {
    flex-direction: column;
  }

  .details-facts {
    grid-template-columns: 1fr 1fr;
  }


  /* ============================================================
     FILTERS
     ============================================================ */

  .filter-bar {

    flex-direction: column;

    align-items: stretch;
  }

  .filter-group {

    flex-direction: column;
  }

  .filter-select {

    width: 100%;
  }

}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

  .container {

    padding-left: 12px;

    padding-right: 12px;
  }


  /* Header */
  .nav {

    gap: 4px;
  }


  /* Logo */
  .brand {

    gap: 5px;
  }

  .brand .brand-mark {

    width: 36px;

    height: 36px;

    min-width: 36px;

    font-size: 13px;
  }


  /* Brand name */
  .brand span.brand-text {

    display: block !important;

    max-width: 125px;

    font-size: 11px;
  }


  /* Subtitle */
  .brand span.brand-text small {

    display: block !important;

    font-size: 5.5px;

    letter-spacing: .8px;
  }


  /* Search */
  .nav-search-toggle {

    width: 37px;

    height: 37px;
  }


  /* Browse */
  .nav-actions .btn {

    padding: 8px 9px;

    font-size: 10px;
  }


  /* Menu */
  .nav-toggle {

    width: 37px;

    height: 37px;
  }

}


/* ==========================================================================
   VERY SMALL MOBILE
   ========================================================================== */

@media (max-width: 380px) {

  .container {

    padding-left: 10px;

    padding-right: 10px;
  }


  .nav {

    gap: 3px;
  }


  .brand .brand-mark {

    width: 34px;

    height: 34px;

    min-width: 34px;
  }


  .brand span.brand-text {

    display: block !important;

    max-width: 105px;

    font-size: 10px;
  }


  .brand span.brand-text small {

    font-size: 5px;
  }


  .nav-search-toggle,
  .nav-toggle {

    width: 34px;

    height: 34px;
  }


  .nav-actions .btn {

    padding: 7px 7px;

    font-size: 9px;
  }

}