﻿/**
 * Custom Job Platform Styles
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Top Bar */
.top-bar {
  display: flex;
  padding: 20px;
  background-color: white;
  border-bottom: 1px solid #ddd;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
}

/* Prevent any unintended top gap on Elementor header */
html,
body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.elementor-location-header,
#masthead.site-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.search-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex: 1;
  width: 100%;
}

.search-bar input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 30%;
}

.search-bar select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 30%;
}

.search-bar button {
  background-color: #013171;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Main content */
.job-page {
  font-family: "Poppins", sans-serif;
  background: #f9f9f9;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  align-items: flex-start;
}

/* Filter Sidebar */
.filter-sidebar {
  margin: 20px 5px auto 5px;
  width: 20%;
  background: #fff;
  border-top: 4px solid #013171;
  padding: 15px 20px;
  overflow-y: auto;
  height: 100vh;
  position: sticky;
  top: 0;
  border-radius: 12px;
}

.filter-sidebar h2 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.filter-group .toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  font-size: 14px;
}

/* Toggle Switch Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 18px;
  transition: 0.4s linear;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #1a73e8;
}

.switch input:checked + .slider:before {
  transform: translateX(18px);
}

/* Filter links */
.filter-links {
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.filter-links li {
  margin: 6px 0;
}

.filter-links a {
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
}

/* Section titles */
.section-title {
  font-size: 14px;
  font-weight: bold;
  margin: 20px 0 10px;
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
}

.filter-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-section li {
  margin: 6px 0;
}

.filter-section a {
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
}

/* Middle section */
.jobs-listing {
  width: 70%;
  padding: 20px;
  overflow-y: auto;
  transition: width 0.3s ease;
  margin: 20px 5px auto 5px;
  flex: 1;
  background: white;
  border-radius: 16px;
}

.jobs-listing h2 {
  padding-left: 17px;
  font-size: 33px;
  font-family: "Poppins", sans-serif;
}

.job-card {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-top: 1px solid #e7e9ed;
}

.job-card:hover {
  background-color: #e7e9ed40;
}

.job-card h3 a {
  font-size: 22px;
  margin-top: 0;
  color: #1a1a1a;
  text-decoration: none;
}

.job-card button {
  background: #013171;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 2px;
  font-family: "Poppins", sans-serif;
}

/* Featured and Highlighted Job Badges */
.featured-badge,
.highlighted-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-badge {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a1a;
}

.highlighted-badge {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
  color: white;
}

.job-card.featured-job,
.job-listing-card.featured-job {
  border-left: 4px solid #FFD700;
  background: linear-gradient(to right, rgba(255, 215, 0, 0.05), #fff);
}

.job-card.highlighted-job,
.job-listing-card.highlighted-job {
  border-left: 4px solid #FF4757;
  background: linear-gradient(to right, rgba(255, 71, 87, 0.05), #fff);
}

.job-card.featured-job.highlighted-job,
.job-listing-card.featured-job.highlighted-job {
  border-left: 4px solid #FF6B6B;
  background: linear-gradient(to right, rgba(255, 107, 107, 0.08), #fff);
}

.job-info {
  font-size: 15px;
  color: #1a1a1a;
}

/* Job Detail Panel */
.job-detail {
  width: 0;
  overflow: hidden;
  padding: 0;
  background-color: #fbfcfd;
  transition: width 0.3s ease, padding 0.3s ease;
}

/* When active */
.content.show-detail .jobs-listing {
  width: 40%;
}

.content.show-detail .job-detail {
  margin: 20px 5px auto 5px;
  width: 40%;
  padding: 20px;
  background-color: white;
  border-radius: 16px;
  border-top: 4px solid #013171;
}

/* Hide menu button on desktop */
.menu-toggle {
  display: none;
  padding: 10px 15px;
  margin-bottom: 10px;
  font-size: 16px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.close-btn {
  display: none; /* Hidden by default (desktop) */
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  z-index: 1001;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.job-title {
  font-size: 22px;
  font-weight: bold;
  flex-grow: 1;
}

.job-company {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  font-weight: bold;
  justify-content: flex-start;
  align-items: center;
}

.job-company-info {
  align-content: center;
}

.job-location {
  color: gray;
  font-size: 12px;
  align-items: center;
  margin-block: 2px;
}

.job-type-one {
  margin-block: 0px;
  font-size: 18px;
  color: #1a1a1a;
}

.job-company img {
  width: 60px;
  height: 60px;
  border: 1px solid #e7e9ed;
}

.job-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.job-buttons {
  margin: 15px 0;
  display: flex;
  gap: 10px;
}

.job-buttons button {
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.easy-apply {
  background-color: #013171;
  color: white;
  padding: 10px 40px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.save-btn {
  padding: 10px 20px;
  background-color: #f0f0f0;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.close-btn {
  font-size: 20px;
  cursor: pointer;
  border: none;
  background: none;
  color: #666;
}

.content {
  display: flex;
  flex: 1;
  transition: all 0.3s ease;
}

.skills {
  border-top: 1px solid #e7e9ed;
  padding-top: 10px;
}

.skills li {
  margin-bottom: 10px;
  font-size: 14px;
}

/* Additional styles for job search page */
.job-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.job-search-form input,
.job-search-form select {
  flex: 1;
}

.job-search-form button {
  white-space: nowrap;
}

/* Job meta display in cards */
.job-meta {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.job-meta span {
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

/* Pagination styles */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  padding: 20px 0;
}

.pagination a,
.pagination span {
  padding: 10px 15px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #013171;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #013171;
  color: white;
  border-color: #013171;
}

.pagination .current {
  background: #013171;
  color: white;
  border-color: #013171;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #7f8c8d;
}

.empty-state i {
  font-size: 4em;
  margin-bottom: 20px;
  color: #bdc3c7;
}

.empty-state h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.empty-state p {
  margin-bottom: 20px;
}

/* Active filter links */
.filter-section a.active {
  color: #013171;
  font-weight: 600;
}

/* Search suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.search-suggestions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-suggestions-list li {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.search-suggestions-list li:last-child {
  border-bottom: none;
}

.search-suggestions-list a {
  color: #333;
  text-decoration: none;
  display: block;
}

.search-suggestions-list a:hover {
  color: #013171;
}

/* ========================================
   JOB DETAILS PAGE STYLES
   ======================================== */

/* Job Detail Header */
.job-detail-header {
  background: linear-gradient(135deg, #013171 0%, #1a73e8 100%);
  color: white;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(1, 49, 113, 0.2);
}

.job-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.job-title-section {
  flex: 1;
}

.job-detail-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.job-company-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.company-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.company-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.company-logo-placeholder i {
  font-size: 2em;
  color: rgba(255, 255, 255, 0.8);
}

.company-name {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 8px;
}

.job-location {
  font-size: 1.1em;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 200px;
}

.apply-btn {
  background: #27ae60;
  color: white;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.apply-btn:hover {
  background: #219a52;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.save-job-btn, .share-job-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.save-job-btn:hover, .share-job-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.save-job-btn.saved,
.latest-jobs-shortcode {
  width: min(100%, 1536px);
  margin: 0 auto;
  padding: 44px 56px 48px;
  background: #fff;
  color: #001a3d;
}

.latest-jobs-shortcode__header {
  text-align: center;
  margin-bottom: 26px;
}

.latest-jobs-shortcode__eyebrow {
  margin: 0 0 14px;
  color: #050b16;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.latest-jobs-shortcode__title {
  position: relative;
  margin: 0;
  padding-bottom: 26px;
  color: #003171;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
}

.latest-jobs-shortcode__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 288px;
  max-width: 45vw;
  height: 1px;
  background: #003171;
  transform: translateX(-50%);
}

.latest-jobs-shortcode__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.latest-job-card {
  position: relative;
  min-height: 242px;
  padding: 20px 20px 24px;
  border: 1px solid #004caa;
  border-radius: 7px;
  background: #fff;
  color: #001a3d;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.latest-job-card:hover,
.latest-job-card:focus-within {
  border-color: #003171;
  box-shadow: 0 12px 26px rgba(0, 49, 113, 0.13);
  transform: translateY(-2px);
}

.latest-job-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 7px;
}

.latest-job-card__tag,
.latest-job-card__title,
.latest-job-card__location,
.latest-job-card__company {
  position: relative;
  z-index: 2;
}

.latest-job-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 11px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #dcfbdc;
  color: #003171;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.latest-job-card:nth-child(even) .latest-job-card__tag {
  background: #e4e3ff;
}

.latest-job-card:nth-child(3n) .latest-job-card__tag {
  background: #dffeff;
}

.latest-job-card__tag i,
.latest-job-card__location i {
  color: #001f45;
  font-size: 13px;
}

.latest-job-card__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.latest-job-card__title a {
  color: #001a3d;
  text-decoration: none;
}

.latest-job-card__title a:hover,
.latest-job-card__title a:focus {
  color: #003171;
}

.latest-job-card__location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #003171;
  font-size: 17px;
  line-height: 1.35;
}

.latest-job-card__divider {
  height: 1px;
  margin: 28px 0 26px;
  background: #d9d9d9;
}

.latest-job-card__company {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #001a3d;
  font-size: 16px;
  font-weight: 700;
}

.latest-job-card__company-logo,
.latest-job-card__company-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.latest-job-card__company-logo {
  object-fit: contain;
  border-radius: 4px;
}

.latest-job-card__company-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #001f45;
  font-size: 25px;
}

.latest-jobs-shortcode__actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.latest-jobs-shortcode__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  background: #003171 !important;
  color: #fff !important;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 49, 113, 0.25);
}

.latest-jobs-shortcode__button:hover,
.latest-jobs-shortcode__button:focus {
  background: #001f45;
  color: #fff;
}

.latest-jobs-shortcode__empty {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 22px;
  border: 1px solid #d7e2f4;
  border-radius: 7px;
  text-align: center;
}

@media (max-width: 1200px) {
  .latest-jobs-shortcode__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .latest-jobs-shortcode {
    padding: 36px 24px 42px;
  }

  .latest-jobs-shortcode__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .latest-jobs-shortcode {
    padding: 32px 16px 38px;
  }

  .latest-jobs-shortcode__title {
    font-size: 34px;
  }

  .latest-jobs-shortcode__grid {
    grid-template-columns: 1fr;
  }

  .latest-job-card {
    min-height: 220px;
  }
}

.save-job-btn.favorited {
  background: #e74c3c;
  border-color: #e74c3c;
}

.save-job-btn.favorited:hover {
  background: #c0392b;
  border-color: #c0392b;
}

/* Job Meta Grid */
.job-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.meta-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.meta-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.meta-item i {
  font-size: 1.5em;
  color: #013171;
  width: 40px;
  text-align: center;
}

.meta-content {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
  margin-bottom: 5px;
}

.meta-value {
  font-size: 1.1em;
  color: #333;
  font-weight: 600;
}

/* Job Categories */
.job-categories {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.job-categories h4 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2em;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tag {
  background: linear-gradient(135deg, #013171, #1a73e8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 49, 113, 0.3);
}

/* Job Description Section */
.job-description-section,
.job-requirements-section,
.job-contact-section,
.similar-jobs-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.job-description-section h3,
.job-requirements-section h3,
.job-contact-section h3,
.similar-jobs-section h3 {
  color: #333;
  font-size: 1.4em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.job-content,
.requirements-content {
  line-height: 1.8;
  color: #555;
  font-size: 1.1em;
}

.job-content h1, .job-content h2, .job-content h3,
.requirements-content h1, .requirements-content h2, .requirements-content h3 {
  color: #333;
  margin-top: 25px;
  margin-bottom: 15px;
}

.job-content ul, .job-content ol,
.requirements-content ul, .requirements-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.job-content li, .requirements-content li {
  margin-bottom: 8px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.contact-item i {
  font-size: 1.3em;
  color: #013171;
  width: 30px;
  text-align: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
}

.contact-value {
  font-size: 1.1em;
  color: #013171;
  text-decoration: none;
  font-weight: 500;
}

.contact-value:hover {
  text-decoration: underline;
}

/* Similar Jobs */
.similar-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.similar-job-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #013171;
  transition: all 0.3s ease;
}

.similar-job-card:hover {
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.similar-job-card h4 {
  margin-bottom: 10px;
}

.similar-job-card h4 a {
  color: #333;
  text-decoration: none;
  font-size: 1.1em;
}

.similar-job-card h4 a:hover {
  color: #013171;
}

.similar-job-location {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.similar-job-salary {
  color: #013171;
  font-weight: 600;
  margin-bottom: 15px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9em;
}

/* Responsive Design for Job Details */
@media (max-width: 768px) {
  .job-header-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .job-detail-title {
    font-size: 2em;
  }
  
  .job-actions {
    flex-direction: row;
    min-width: auto;
  }
  
  .job-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .similar-jobs-grid {
    grid-template-columns: 1fr;
  }
  
  .job-detail-header {
    padding: 25px;
  }
  
  .job-description-section,
  .job-requirements-section,
  .job-contact-section,
  .similar-jobs-section {
    padding: 20px;
  }
}

/* Loading States */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: #7f8c8d;
}

.loading-state .spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #013171;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Search Bar Enhancements */
.search-bar {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-suggestions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-suggestions-list li {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

.search-suggestions-list li:last-child {
  border-bottom: none;
}

.search-suggestions-list li:hover {
  background-color: #f8f9fa;
}

.search-suggestions-list a {
  color: #333;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.search-suggestions-list a:hover {
  color: #013171;
}

/* Filter Enhancements */
.filter-sidebar .toggle-item {
  cursor: pointer;
  padding: 8px 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.filter-sidebar .toggle-item:hover {
  background-color: #f8f9fa;
}

.filter-section a {
  display: block;
  padding: 6px 0;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.filter-section a:hover {
  background-color: #f0f8ff;
  padding-left: 8px;
}

.filter-section a.active {
  background-color: #e3f2fd;
  color: #013171;
  font-weight: 600;
  padding-left: 8px;
}

/* Job Card Enhancements */
.job-card {
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #013171, #1a73e8);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.job-card:hover::before {
  transform: scaleX(1);
}

.job-card h3 a {
  position: relative;
  transition: color 0.3s ease;
}

.job-card:hover h3 a {
  color: #013171;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
    gap: 15px;
  }
  
  .search-bar input,
  .search-bar select {
    width: 100%;
  }
  
  .job-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .similar-jobs-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   DASHBOARD STYLES - SIMPLIFIED & EFFICIENT
   ======================================== */

/* Full-page gradient matching the login page */
.page-template-page-dashboard,
.page-template-page-dashboard #page,
.page-template-page-dashboard .site-main,
.page-template-page-dashboard #primary {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 82% 86%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #5069d4 0%, #5a50b1 52%, #6542a5 100%);
  min-height: 100vh;
}

.dashboard-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 40px;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
}

/* â”€â”€ Dashboard Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #013171 0%, #0a4fa6 100%);
  padding: 20px 28px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(1, 49, 113, 0.22);
  margin-bottom: 28px;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.user-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3em;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-details {
  min-width: 0;
}

.user-details h3 {
  margin: 0 0 2px;
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  display: inline-block;
  color: rgba(255,255,255,0.75);
  font-size: 0.78em;
  font-weight: 500;
  background: rgba(255,255,255,0.12);
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-actions {
  flex-shrink: 0;
}

.logout-btn,
.logout-btn:link,
.logout-btn:visited {
  background: rgba(255,255,255,0.13);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.32);
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 0.875em;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.logout-btn:hover {
  background: rgba(220,53,69,0.85);
  border-color: transparent;
  color: #fff !important;
}

/* Dashboard Content */
.dashboard-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

/* Sidebar */
.dashboard-sidebar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 20px 14px;
  height: fit-content;
  position: sticky;
  top: 24px;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item,
.nav-item:link,
.nav-item:visited,
.nav-item:hover,
.nav-item:focus {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: #444;
  text-decoration: none !important;
  text-align: left !important;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  font-size: 0.92em;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
}

.nav-item:hover {
  background: #eef2ff;
  color: #013171 !important;
  text-decoration: none !important;
}

.nav-item.active,
.nav-item.active:link,
.nav-item.active:visited {
  background: linear-gradient(135deg, #013171 0%, #0a4fa6 100%);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(1, 49, 113, 0.28);
  text-decoration: none !important;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 0.95em;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-item.active i { opacity: 1; }

.nav-item span {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Content */
.dashboard-main {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 32px;
  min-height: 500px;
}

.dashboard-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dashboard-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 1.5em;
}

.section-header p {
  margin: 0;
  color: #666;
  font-size: 0.95em;
}

/* Forms */
.profile-form {
  max-width: 600px;
}

.post-job-form {
  max-width: 100%;
}

.dashboard-section#profile .profile-form {
  max-width: 100%;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.profile-card {
  background: #ffffff;
  border: 1px solid #e0e9f5;
  border-top: 3px solid #0f4a99;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(12, 32, 66, 0.06);
  transition: box-shadow 0.25s ease;
}

.profile-card:hover {
  box-shadow: 0 5px 18px rgba(12, 32, 66, 0.10);
}

.profile-card-full {
  grid-column: 1 / -1;
}

.profile-card-title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f8;
  font-size: 0.78rem;
  color: #0f4a99;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-card-title i {
  font-size: 0.95rem;
  opacity: 0.75;
}

.profile-card .form-group {
  margin-bottom: 14px;
}

.profile-card .form-group:last-child {
  margin-bottom: 0;
}

.profile-card .form-group label {
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a6080;
  margin-bottom: 6px;
}

.profile-card input,
.profile-card select {
  border: 1.5px solid #d9e4f0;
  border-radius: 8px;
  background: #ffffff;
  height: 42px;
  padding: 0 13px;
  font-size: 0.93rem;
  color: #1a2b45;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-card textarea {
  border: 1.5px solid #d9e4f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 11px 13px;
  font-size: 0.93rem;
  color: #1a2b45;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-card input:focus,
.profile-card textarea:focus,
.profile-card select:focus {
  border-color: #0f4a99;
  box-shadow: 0 0 0 3px rgba(15, 74, 153, 0.10);
  outline: none;
  background: #fafcff;
}

.profile-card textarea {
  resize: vertical;
  min-height: 130px;
}

.profile-card .char-counter {
  display: block;
  text-align: right;
  margin-top: 5px;
  font-size: 0.77rem;
  font-weight: 500;
  color: #8a9bb5;
}

.dashboard-section#profile .update-profile-form > .btn {
  min-width: 180px;
}

/* Profile save bar */
.dashboard-section#profile .update-profile-form > .btn {
  margin-top: 8px;
}

/* Profile file inputs */
.profile-card input[type="file"] {
  height: auto;
  padding: 10px 14px;
  border: 1.5px dashed #b0c4de;
  background: #f6f9ff;
  font-size: 0.87rem;
  color: #4a6080;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-card input[type="file"]:hover {
  border-color: #0f4a99;
  background: #edf4ff;
}

/* Profile Hero Banner */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #0c2042 0%, #163d82 100%);
  border-radius: 14px;
  color: #fff;
}

.profile-hero--employer {
  background: linear-gradient(135deg, #1a2e50 0%, #0c5c8a 100%);
}

.profile-hero-avatar {
  flex-shrink: 0;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.profile-hero-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-hero-name {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.70);
}

.profile-hero-meta {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Current logo / CV preview */
.current-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 12px;
  padding: 12px 16px;
  background: #f8f9ff;
  border: 1px solid #dde2f0;
  border-radius: 8px;
}

#company-logo-preview {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  border: 1px solid #e4e8f0;
  padding: 4px;
}

.current-logo-label {
  margin: 0;
  font-size: 0.82em;
  color: #666;
  line-height: 1.4;
}

.current-cv {
  margin-top: 8px;
}

.profile-hero--teacher {
  background: linear-gradient(135deg, #083a7a 0%, #0f5aa8 100%);
}

.teacher-profile-form-grid .profile-card {
  border-radius: 10px;
}

.teacher-profile-form-grid .form-row {
  gap: 16px;
}

.teacher-profile-summary-card textarea {
  min-height: 150px;
}

.teacher-profile-cv-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.field-help {
  display: block;
  margin-top: 7px;
  color: #7c8da8;
  font-size: 0.78rem;
  line-height: 1.4;
}

.teacher-current-cv {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #d7e7f8;
  border-left: 4px solid #0f4a99;
  border-radius: 10px;
  background: #f3f8ff;
}

.teacher-current-cv > i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
  color: #0f4a99;
  font-size: 1rem;
  flex-shrink: 0;
}

.teacher-current-cv strong,
.teacher-current-cv a {
  display: block;
}

.teacher-current-cv strong {
  color: #1a2b45;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.teacher-current-cv a {
  color: #0f4a99;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.teacher-current-cv a:hover {
  text-decoration: underline;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
  font-size: 0.9em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9em;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #013171;
}

.char-counter {
  display: block;
  text-align: right;
  font-size: 0.8em;
  color: #666;
  margin-top: 5px;
}

/* Cards */
.application-card,
.saved-job-card,
.referral-card,
.job-listing-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.2s ease;
}

.application-card:hover,
.saved-job-card:hover,
.referral-card:hover,
.job-listing-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* â”€â”€ Expanded employer application card â”€â”€ */
.application-card.expanded-card {
  border-left: 4px solid #013171;
  background: #fff;
}

.app-header-info {
  flex: 1;
  min-width: 0;
}

.app-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 6px;
  font-size: 0.875rem;
  color: #555;
}

.app-meta-row a {
  color: #013171;
  text-decoration: none;
}

.app-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  background: #f8f9fa;
  border-radius: 8px;
}

.app-detail-wide {
  grid-column: 1 / -1;
}

.app-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-detail-value {
  font-size: 0.9rem;
  color: #222;
  font-weight: 500;
}

.app-cover-letter {
  margin: 10px 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.app-cover-letter summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  background: #f8f9fa;
  user-select: none;
}

.app-cover-letter p {
  padding: 14px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  background: #fff;
}

/* â”€â”€ Status-change confirmation modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#status-confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#status-confirm-modal.is-open { display: flex; }

.scm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.scm-dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  width: min(420px, 92vw);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scm-title {
  margin: 0;
  font-size: 1.15rem;
  color: #013171;
}

.scm-body {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

.scm-email-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: #555;
  padding: 10px 12px;
  background: #f0f4ff;
  border-radius: 8px;
  cursor: pointer;
}

.scm-email-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #013171;
  width: 16px;
  height: 16px;
}

.scm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

/* â”€â”€ Status-change toast â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#status-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
#status-toast.is-visible { opacity: 1; transform: translateY(0); }
.status-toast-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-toast-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }


.referral-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.application-header h4,
.referral-header h4 {
  margin: 0;
  font-size: 1.1em;
}

.application-header h4 a,
.referral-header h4 a {
  color: #333;
  text-decoration: none;
}

.application-header h4 a:hover,
.referral-header h4 a:hover {
  color: #013171;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-pending-approval { background: #fff3cd; color: #856404; }
.status-reviewed { background: #d1ecf1; color: #0c5460; }
.status-shortlisted { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-publish { background: #d4edda; color: #155724; }
.status-draft { background: #e2e3e5; color: #383d41; }
.status-private { background: #d1ecf1; color: #0c5460; }
.status-hired { background: #d1e7dd; color: #0f5132; }

.hentry.status-publish {
    background: #f0f2f7;
    color: #155724;
}


.match-badge {
  background: #013171;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
}

.application-meta,
.job-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.85em;
  color: #666;
}

.application-meta span,
.job-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.company-name {
  color: #013171;
  font-weight: 500;
  margin: 5px 0;
}

.job-info h4 {
  margin: 0 0 10px 0;
}

.job-info h4 a {
  color: #333;
  text-decoration: none;
}

.job-info h4 a:hover {
  color: #013171;
}

.job-actions,
.application-actions,
.referral-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-state i {
  font-size: 3em;
  color: #ddd;
  margin-bottom: 15px;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  color: #333;
}

.empty-state p {
  margin: 0 0 20px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: #013171;
  color: #ffffff;
  border: 2px solid #013171;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.btn-primary:hover {
  background: #0f4a99;
  border-color: #0f4a99;
  box-shadow: 0 2px 8px rgba(15, 63, 131, 0.14);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #013171;
  border: 2px solid #013171;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.btn-outline:hover {
  background: #013171;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(1, 49, 113, 0.12);
  transform: translateY(-2px);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-container {
    padding: 20px 24px;
  }
  .dashboard-content {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 768px) {
  /* Container */
  .dashboard-container {
    padding: 12px 14px;
  }

  /* Two-column → single column */
  .dashboard-content {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ── Header: stay on one row, compact ── */
  .dashboard-header {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-align: left;
  }

  .user-info { gap: 10px; min-width: 0; flex: 1; }

  .user-avatar { width: 40px; height: 40px; font-size: 1.05em; }

  .user-details h3 { font-size: 0.97em; }
  .user-role { font-size: 0.72em; padding: 2px 8px; }

  /* Logout: icon-only pill */
  .logout-btn,
  .logout-btn:link,
  .logout-btn:visited {
    padding: 8px 12px;
    font-size: 0.8em;
    gap: 5px;
  }
  .logout-btn span { display: none; }        /* hide "Logout" text, keep icon */

  /* ── Sidebar → horizontal scrollable tab bar ── */
  .dashboard-sidebar {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    position: static;
  }

  .dashboard-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    gap: 6px;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .dashboard-nav::-webkit-scrollbar { display: none; }

  .nav-item,
  .nav-item:link,
  .nav-item:visited,
  .nav-item:hover,
  .nav-item:focus {
    flex-shrink: 0 !important;
    width: auto !important;
    padding: 8px 14px !important;
    border-radius: 99px !important;
    font-size: 0.84em !important;
    white-space: nowrap !important;
    gap: 6px !important;
  }

  .nav-item i { font-size: 0.88em; }

  /* ── Main panel ── */
  .dashboard-main {
    padding: 18px 14px;
    min-height: auto;
  }

  /* Profile form grid → 1 col */
  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Profile hero compact */
  .profile-hero {
    padding: 14px 16px;
    gap: 14px;
    margin-bottom: 16px;
  }
  .profile-hero-avatar { width: 52px; height: 52px; font-size: 1.2rem; }
  .profile-hero-name { font-size: 1.05rem; }

  /* Section header */
  .section-header { margin-bottom: 16px; padding-bottom: 12px; }
  .section-header h2 { font-size: 1.25em; }

  /* Meta rows */
  .application-meta,
  .job-meta {
    flex-direction: column;
    gap: 6px;
  }

  /* Action buttons stay inline when there are ≤2 */
  .job-actions,
  .application-actions,
  .referral-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ── Extra-small phones (≤430px) ── */
@media (max-width: 430px) {
  .dashboard-container { padding: 8px 10px; }
  .dashboard-main { padding: 14px 12px; }
  .dashboard-header { padding: 10px 12px; }
  .user-avatar { width: 36px; height: 36px; }
  .user-details h3 { font-size: 0.9em; }

  /* Profile card padding */
  .profile-card { padding: 16px 14px; }

  /* Nav pill tabs smaller */
  .nav-item,
  .nav-item:link,
  .nav-item:visited,
  .nav-item:hover,
  .nav-item:focus {
    padding: 7px 12px !important;
    font-size: 0.8em !important;
  }
  .nav-item i { display: none; }    /* hide icons, show text only */
}

/* Responsive for tablets and mobile */
@media (max-width: 991px) {
  .job-page {
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
  }

  .filter-sidebar {
    position: fixed;
    top: 30px;
    left: -320px;
    height: 100%;
    width: 100%;
    z-index: 999;
    background-color: white;
    width: 260px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .filter-sidebar.show {
    left: 0;
  }

  .jobs-listing {
    width: 100%;
  }
}

/* Show close button only on mobile/tablet */
@media (max-width: 991px) {
  .close-btn {
    display: block;
  }
}

@media (max-width: 991px) {
  .job-detail {
    display: none;
    width: 100% !important;
    padding: 20px;
  }

  .content.mobile-show-detail .jobs-listing {
    display: none;
  }

  .content.mobile-show-detail .job-detail {
    display: block;
  }
}

/* Job Platform Container */
.job-platform-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Job Listing Cards */
.job-listing-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.job-listing-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.job-listing-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.job-listing-company {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.job-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    color: #5a6c7d;
}

.job-meta-item i {
    margin-right: 5px;
    color: #3498db;
}

.job-listing-description {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

.job-listing-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    color: white;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
    color: white;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white !important;
}

/* Forms */
.job-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-control.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Duplicate dashboard block removed â€” definitions consolidated above */

/* Search and Filters */
.job-search-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.search-form .form-group {
    margin-bottom: 0;
}

.search-btn {
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.search-btn:hover {
    background: #2980b9;
}

/* Job Categories and Tags */
.job-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.job-category {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.job-category:hover {
    background: #3498db;
    color: white;
}

/* Favorites */
.favorite-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #bdc3c7;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn.favorited {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.favorite-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

.favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Default Avatar */
.default-avatar {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5em;
}

.default-avatar i {
    color: #6c757d;
}

/* User Avatar in Dashboard */
.user-avatar {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.8em;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar i {
    color: #6c757d;
}

/* Job Actions */
.job-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.job-actions .btn {
    flex: 1;
}

.job-actions .favorite-btn {
    flex-shrink: 0;
}

/* Job Listing Company Info */
.job-listing-company-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.job-listing-company-info .job-company-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.job-listing-company-info .job-company-details {
    flex: 1;
}

.job-listing-company-info .job-listing-title {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.job-listing-company-info .job-listing-company {
    color: #6c757d;
    font-size: 0.9em;
    margin: 0;
}

/* Company Logo in Single Job Listing */
.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.company-logo.default-avatar {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.8em;
}

/* Application Status */
.application-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-reviewed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-shortlisted {
    background: #d4edda;
    color: #155724;
}

.status-hired {
    background: #d1e7dd;
    color: #0f5132;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        order: 0;
    }
    
    .dashboard-content {
        order: 0;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .job-listing-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .job-listing-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.loading-state .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.notification.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.notification.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #3498db;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Dashboard Specific Styles */
.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.dashboard-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 0;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #013171;
    box-shadow: 0 0 0 2px rgba(1, 49, 113, 0.1);
}

.form-control[type="file"] {
    padding: 8px;
}

.form-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.char-counter {
    font-size: 12px;
    color: #666;
    text-align: right;
    display: block;
    margin-top: 5px;
}

.file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
}

.current-cv {
    margin-top: 15px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 4px;
    border-left: 4px solid #013171;
}

.current-cv label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: normal;
}

/* Application Status */
.application-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-reviewed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-shortlisted {
    background: #d4edda;
    color: #155724;
}

.status-hired {
    background: #d1e7dd;
    color: #0f5132;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Application Actions */
.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.application-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.application-status-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analytics-number {
    font-size: 36px;
    font-weight: bold;
    color: #013171;
    margin: 10px 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-outline {
    background: transparent;
    color: #013171;
    border: 2px solid #013171;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.btn-outline:hover {
    background: #013171;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(1, 49, 113, 0.22);
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-danger:hover {
    background: #c82333;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-link a {
    color: #013171;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Job Meta Display */
.job-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.job-meta span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .application-actions {
        flex-direction: column;
    }
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-page {
  min-height: calc(100vh - 80px);
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 82% 86%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #5069d4 0%, #5a50b1 52%, #6542a5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 42px);
  font-family: 'Poppins', sans-serif;
}

.login-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 70px rgba(17, 39, 77, 0.26);
  overflow: hidden;
  width: 100%;
  max-width: 540px;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  background: linear-gradient(135deg, #013171 0%, #1e4a8a 100%);
  color: white;
  padding: 42px 34px;
  text-align: center;
}

.login-header h1 {
  margin: 0 0 10px 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.06rem;
}

.login-form-container {
  padding: 34px;
}

.login-form .form-group {
  margin-bottom: 22px;
}

.login-form label {
  display: block;
  margin-bottom: 10px;
  color: #1f2f45;
  font-weight: 600;
  font-size: 0.93rem;
}

.login-form .input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.login-form .input-group i {
  position: absolute;
  left: 14px;
  color: #6f7f94;
  font-size: 1.02rem;
  z-index: 2;
}

.login-form .input-group input {
  width: 100%;
  min-height: 54px;
  padding: 15px 16px 15px 44px;
  border: 1px solid #d8e0ea;
  border-radius: 14px;
  font-size: 0.96rem;
  color: #11253f;
  transition: all 0.3s ease;
  background: #f9fbfe;
}

.login-form .input-group .password-input {
  padding-right: 84px;
}

.login-form .input-group input::placeholder {
  color: #8d9caf;
}

.login-form .input-group input:focus {
  outline: none;
  border-color: #013171;
  background: white;
  box-shadow: 0 0 0 3px rgba(1, 49, 113, 0.1);
}

.login-form .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8e0ea;
  background: #ffffff;
  color: #1b67bb;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.login-form .toggle-password:hover,
.login-form .toggle-password:focus {
  color: #0d4f99;
  border-color: #9ec4ec;
  background: #edf5ff;
  outline: none;
}

.login-form .toggle-password-text {
  pointer-events: none;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 0.9rem;
  gap: 12px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #4f6178;
  position: relative;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.remember-me .checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
  background: #013171;
  border-color: #013171;
}

.remember-me input[type="checkbox"]:focus-visible + .checkmark {
  box-shadow: 0 0 0 3px rgba(1, 49, 113, 0.16);
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
  content: 'âœ“';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password {
  color: #0f5fb6;
  text-decoration: none;
  font-weight: 600;
}

.forgot-password:hover {
  text-decoration: underline;
}

.form-messages {
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9em;
  display: none;
}

.form-messages.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-messages.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.form-messages .message {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-btn {
  width: 100%;
  min-height: 54px;
  padding: 15px;
  background: linear-gradient(135deg, #013171 0%, #1e4a8a 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 49, 113, 0.3);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e1e5e9;
}

.login-divider span {
  background: white;
  padding: 0 15px;
  color: #666;
  font-size: 0.9em;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  background: white;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-social:hover {
  border-color: #013171;
  background: #f8f9fa;
  transform: translateY(-1px);
}

.btn-google {
  color: #db4437;
}

.btn-linkedin {
  color: #0077b5;
}

.register-link {
  text-align: center;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid #e1e5e9;
}

.register-link p {
  margin: 0;
  color: #5d6e83;
}

.register-link a {
  color: #013171;
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  text-decoration: underline;
}

/* ----------------------------------------
   Register Page
   ---------------------------------------- */
.register-page-shell {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 82% 86%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #5069d4 0%, #5a50b1 52%, #6542a5 100%);
  padding: 56px clamp(16px, 4vw, 52px);
}

.register-layout {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: stretch;
}

.register-hero-panel,
.register-form-panel {
  min-width: 0;
}

.register-hero-panel {
  padding: 42px 36px;
  border-radius: 28px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(1, 49, 113, 0.98), rgba(19, 97, 190, 0.96)),
    #013171;
  box-shadow: 0 24px 54px rgba(1, 49, 113, 0.22);
}

.register-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.register-hero-panel h1 {
  margin: 22px 0 14px;
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: #ffffff;
}

.register-intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.8;
}

.register-benefits {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.register-benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.register-benefits i {
  margin-top: 3px;
  color: #8fd2ff;
}

.register-card {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(16, 42, 67, 0.12);
  backdrop-filter: blur(12px);
}

.register-card-header h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 2rem;
  color: #102843;
}

.register-card-header p {
  margin: 0 0 24px;
  color: #66768b;
  line-height: 1.7;
}

.register-grid {
  display: grid;
  gap: 18px;
}

.register-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.registration-form .form-group {
  margin-bottom: 18px;
}

.registration-form .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d2d44;
}

.registration-form .form-control {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d9e1ea;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.96rem;
  color: #102843;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.registration-form .form-control:focus {
  border-color: #2490f5;
  box-shadow: 0 0 0 4px rgba(36, 144, 245, 0.12);
  outline: none;
}

.registration-form .form-group.has-error .form-control {
  border-color: #e35d6a;
  box-shadow: 0 0 0 4px rgba(227, 93, 106, 0.12);
}

.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrap .form-control {
  padding-right: 74px;
}

.register-form-panel .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #d9e1ea;
  background: #ffffff;
  color: #1f6dc4;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.register-form-panel .toggle-password:hover,
.register-form-panel .toggle-password:focus {
  color: #1258a7;
  background: #eff6ff;
  border-color: #9ec5ef;
  outline: none;
}

.register-form-panel .toggle-password-text {
  pointer-events: none;
}

.field-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #75869a;
}

.password-strength {
  margin-top: 10px;
}

.password-strength-bar {
  width: 0%;
  height: 8px;
  border-radius: 999px;
  background: #e35d6a;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.password-strength-label {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #75869a;
}

.password-strength.is-weak .password-strength-bar {
  background: #e35d6a;
}

.password-strength.is-fair .password-strength-bar {
  background: #f2a43a;
}

.password-strength.is-good .password-strength-bar {
  background: #2f9adf;
}

.password-strength.is-strong .password-strength-bar {
  background: #1f9d57;
}

.field-error {
  min-height: 18px;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #c2384f;
  line-height: 1.4;
}

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 12px 0;
  color: #31435a;
  line-height: 1.7;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: #2490f5;
  flex-shrink: 0;
}

.checkbox-row a {
  color: #0f67c6;
  text-decoration: none;
  font-weight: 600;
}

.checkbox-row a:hover {
  text-decoration: underline;
}

.checkbox-row--muted {
  color: #66768b;
}

.form-feedback {
  display: none;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback.is-success {
  background: #edf9f0;
  color: #1d6b3a;
  border: 1px solid #c9ebd2;
}

.form-feedback.is-error {
  background: #fff2f2;
  color: #b42318;
  border: 1px solid #f0c8c8;
}

.register-submit-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
}

.register-submit-btn.loading,
.register-submit-btn:disabled {
  opacity: 0.85;
  cursor: wait;
}

.register-login-link {
  margin-top: 20px;
  text-align: center;
}

.register-login-link p {
  margin: 0;
  color: #66768b;
}

body.registration-modal-open {
  overflow: hidden;
}

.registration-success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.registration-success-modal.is-visible {
  display: block;
}

.registration-success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 38, 0.56);
  backdrop-filter: blur(2px);
}

.registration-success-modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 28px));
  margin: clamp(20px, 6vh, 54px) auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 30px 28px;
  box-shadow: 0 26px 70px rgba(12, 40, 71, 0.28);
  animation: registrationPopupIn 0.22s ease-out;
}

.registration-success-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  color: #506581;
  cursor: pointer;
}

.registration-success-modal__close:hover,
.registration-success-modal__close:focus {
  color: #18395d;
}

.registration-success-modal__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1b6fc6;
}

.registration-success-modal__title {
  margin: 10px 0 8px;
  font-size: clamp(1.45rem, 3.3vw, 2rem);
  color: #0f2a45;
}

.registration-success-modal__message {
  margin: 0 0 18px;
  color: #4a5e75;
  line-height: 1.7;
}

.registration-success-modal__credentials {
  background: #f4f8fd;
  border: 1px solid #d6e4f3;
  border-radius: 16px;
  padding: 14px 14px 10px;
  margin-bottom: 18px;
}

.registration-success-modal__credentials p {
  margin: 0 0 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #102843;
  word-break: break-word;
}

.registration-success-modal__credentials p:last-child {
  margin-bottom: 0;
}

.registration-success-modal__credentials span {
  min-width: 86px;
  color: #5a6f86;
  font-weight: 600;
}

.registration-success-modal__credentials strong {
  color: #112d49;
  font-weight: 700;
}

.registration-success-modal__login-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes registrationPopupIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .register-layout {
    grid-template-columns: 1fr;
  }

  .register-hero-panel,
  .register-form-panel {
    max-width: 860px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .register-page-shell {
    padding: 28px 14px;
  }

  .register-hero-panel,
  .register-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .register-grid--two {
    grid-template-columns: 1fr;
  }

  .password-field-wrap .form-control {
    padding-right: 68px;
  }

  .register-form-panel .toggle-password {
    width: 52px;
    height: 30px;
    font-size: 0.72rem;
  }

  .registration-success-modal__dialog {
    border-radius: 18px;
    padding: 26px 18px 20px;
  }

  .registration-success-modal__credentials p {
    align-items: flex-start;
  }

  .registration-success-modal__credentials span {
    min-width: 76px;
  }
}

/* Responsive Login */
@media (max-width: 480px) {
  .login-shell {
    width: 100%;
  }

  .login-container {
    margin: 8px;
    border-radius: 18px;
  }
  
  .login-header {
    padding: 30px 18px;
  }
  
  .login-header h1 {
    font-size: 1.9rem;
  }
  
  .login-form-container {
    padding: 24px 18px;
  }

  .login-form .toggle-password {
    width: 56px;
    height: 32px;
    font-size: 0.7rem;
  }
  
     .form-options {
     flex-direction: column;
     gap: 15px;
     align-items: flex-start;
   }
 }

/* ========================================
   LOGIN/LOGOUT BUTTON SHORTCODE STYLES
   ======================================== */

/* Auth Actions Container */
.auth-actions,
.user-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-actions .btn,
.user-actions .btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.auth-actions .btn-primary,
.user-actions .btn-primary {
  background: #013171;
  color: white;
  border: none;
}

.auth-actions .btn-primary:hover,
.user-actions .btn-primary:hover {
  background: #012a5e;
  transform: translateY(-1px);
}

.auth-actions .btn-outline,
.user-actions .btn-outline {
  background: transparent;
  color: #013171;
  border: 1px solid #013171;
}

.auth-actions .btn-outline:hover,
.user-actions .btn-outline:hover {
  background: #013171;
  color: white !important;
}

/* ----------------------------------------
   Auth Button Group
   ---------------------------------------- */
.auth-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-signup-btn.btn-outline {
  background: #ffffff;
}

.auth-signup-btn.btn-outline:hover {
  background: #013171;
  color: #ffffff !important;
}

.auth-btn-group--logged-in {
  gap: 10px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ----------------------------------------
   Dropdown Menu
   ---------------------------------------- */
.user-menu-dropdown {
  position: relative;
  display: inline-block;
}

.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 28, 61, 0.64);
  color: #ffffff;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* Shimmer sweep on hover */
.user-menu-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.13) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.user-menu-toggle:hover::before,
.user-menu-dropdown.is-open .user-menu-toggle::before {
  transform: translateX(120%);
}

.user-menu-toggle:hover,
.user-menu-dropdown.is-open .user-menu-toggle,
.user-menu-dropdown:focus-within .user-menu-toggle {
  background: rgba(14, 46, 92, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 24px rgba(2, 17, 40, 0.32), inset 0 0 0 1px rgba(255,255,255,0.08);
  transform: translateY(-2px) scale(1.015);
}

.user-avatar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #59b5ff 0%, #2b7fff 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.user-trigger-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.user-display-name {
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-trigger-role {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.user-menu-toggle .fa-chevron-down {
  font-size: 0.75em;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.user-menu-dropdown.is-open .fa-chevron-down,
.user-menu-dropdown:hover .fa-chevron-down,
.user-menu-dropdown:focus-within .fa-chevron-down {
  transform: rotate(180deg);
}

/* ----------------------------------------
   Auth button — mobile compact size
   ---------------------------------------- */
@media (max-width: 767px) {
  .auth-btn-group--logged-in {
    padding: 2px;
    border-radius: 12px;
  }

  .user-menu-toggle {
    min-height: unset;
    padding: 6px 10px;
    gap: 7px;
    border-radius: 10px;
  }

  .user-avatar-badge {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .user-display-name {
    font-size: 0.82rem;
    max-width: 88px;
  }

  .user-trigger-role {
    font-size: 0.6rem;
  }

  .user-menu-toggle .fa-chevron-down {
    font-size: 0.65em;
  }

  .user-menu-dropdown-content {
    min-width: 220px;
    right: 0;
    left: auto;
  }
}

.user-menu-dropdown-content {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: white;
  min-width: 260px;
  box-shadow: 0 24px 50px rgba(4, 17, 38, 0.22);
  border-radius: 18px;
  z-index: 1000;
  border: 1px solid rgba(9, 30, 66, 0.08);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

/* open via JS class OR hover */
.user-menu-dropdown.is-open .user-menu-dropdown-content,
.user-menu-dropdown:hover .user-menu-dropdown-content,
.user-menu-dropdown:focus-within .user-menu-dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* User info block at top of dropdown */
.user-menu-info {
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f6;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
}

.user-menu-info strong {
  display: block;
  color: #12243f;
  font-size: 0.98em;
  margin-bottom: 4px;
}

.user-menu-info .user-role-label {
  display: block;
  color: #013171;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.user-menu-info .user-email {
  display: block;
  color: #888;
  font-size: 0.8em;
  word-break: break-all;
}

/* Dropdown items */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: #25344a;
  text-decoration: none;
  font-size: 0.9em;
  position: relative;
  transition: background 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}

/* Animated left accent bar */
.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #013171;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropdown-item + .dropdown-item {
  border-top: 1px solid rgba(238, 242, 246, 0.85);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  color: #666;
  transition: color 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropdown-item:hover {
  background: #f0f4ff;
  color: #013171;
  padding-left: 24px;
}

.dropdown-item:hover::before {
  transform: scaleY(1);
}

.dropdown-item:hover i {
  color: #013171;
  transform: translateX(2px);
}

/* Shimmer sweep on hover */
.nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(1,49,113,0.07) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
  pointer-events: none;
  border-radius: 8px;
}

.nav-item:hover {
  background: #eef2ff;
  color: #013171;
  transform: translateX(4px);
}

.nav-item:hover::after {
  transform: translateX(120%);
}

.nav-item:hover i {
  transform: scale(1.2);
}

.nav-item.active {
  background: linear-gradient(135deg, #013171 0%, #0a4fa6 100%);
  color: white !important;
  box-shadow: 0 4px 14px rgba(1, 49, 113, 0.28);
  transform: none;
}

.nav-item.active::after {
  display: none;
}

.nav-item.active i {
  transform: none;
  opacity: 1;
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1em;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.nav-item span {
  font-weight: 500;
}

.search-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.search-row input[type="text"] {
  flex: 2;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.search-row input[type="text"]:focus {
  border-color: #013171;
  outline: none;
}

.search-row select {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  cursor: pointer;
}

.search-btn {
  padding: 12px 24px;
  background: #013171;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn:hover {
  background: #012a5e;
}

.advanced-filters {
  border-top: 1px solid #e1e5e9;
  padding-top: 20px;
  margin-top: 20px;
}

.filter-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-row select {
  flex: 1;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.salary-range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 2;
  min-width: 250px;
}

.salary-range label {
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.salary-range input {
  width: 100px;
  padding: 8px 12px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
}

.salary-range span {
  color: #666;
  font-weight: 500;
}

.filter-toggles {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.filter-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #013171;
}

.search-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

.toggle-filters,
.clear-filters {
  padding: 8px 16px;
  border: 1px solid #e1e5e9;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-filters:hover,
.clear-filters:hover {
  background: #f8f9fa;
  border-color: #013171;
  color: #013171;
}

.results-count {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.loading-state {
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #013171;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Admin Dashboard Styles */
.admin-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-card h3 {
  margin: 0;
  color: #013171;
  font-size: 16px;
}

.stat-card p {
  font-size: 2em;
  margin: 10px 0;
  font-weight: bold;
  color: #333;
}

/* Commission Status Badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d1ecf1; color: #0c5460; }
.status-paid { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* Responsive adjustments for enhanced search */
@media (max-width: 768px) {
  .search-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .search-row input[type="text"],
  .search-row select {
    width: 100%;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-row select,
  .salary-range {
    width: 100%;
    min-width: auto;
  }
  
  .filter-toggles {
    flex-direction: column;
    gap: 10px;
  }
  
  .search-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .toggle-filters,
  .clear-filters {
    justify-content: center;
  }
}

/* ========================================
   SUBSCRIPTION PAGE STYLES
   ======================================== */

.subscription-page {
  background: #f5f6fa;
  min-height: 100vh;
  padding: 60px 0 80px;
}

.sub-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.sub-header {
  text-align: center;
  margin-bottom: 48px;
}

.sub-eyebrow {
  display: inline-block;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.sub-header h1 {
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  color: #0d1b4b !important;
  margin: 0 0 10px !important;
  letter-spacing: -0.02em !important;
}

.sub-header > p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 auto 28px;
  max-width: 500px;
}

/* ── Billing Toggle ── */
.billing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 40px;
  padding: 6px 16px;
}

.billing-tab {
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-tab.active {
  color: #0d1b4b;
  font-weight: 600;
}

.billing-toggle-track {
  width: 40px;
  height: 22px;
  background: #013171;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.billing-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}

.billing-save-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

/* ── Plans Grid ── */
.sub-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
  align-items: stretch;
}

.sub-plan-card {
  background: #fff;
  border: 1.5px solid #e8ecf0;
  border-radius: 18px;
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.2s, border-color 0.2s;
}

/* Extra top room so the badge doesn't get clipped */
.sub-plan-popular {
  padding-top: 44px;
  border-color: #013171;
  box-shadow: 0 6px 30px rgba(1,49,113,0.12);
}
.sub-plan-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border-color: #d1d5db;
}
.sub-plan-popular:hover {
  box-shadow: 0 8px 36px rgba(1,49,113,0.18);
}

.sub-plan-current {
  border-color: #22c55e;
}

.sub-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #013171;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.sub-plan-top {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}

.sub-plan-name {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #0d1b4b !important;
  margin: 0 0 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.sub-plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}
.sub-price-sym {
  font-size: 1.1rem;
  font-weight: 600;
  color: #013171;
  line-height: 1;
  align-self: flex-start;
  margin-top: 6px;
}
.sub-price-val {
  font-size: 2.6rem;
  font-weight: 700;
  color: #013171;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: all 0.25s;
}
.sub-price-per {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-left: 2px;
}

.sub-yearly-note {
  font-size: 0.78rem;
  color: #22c55e;
  margin: 4px 0 0;
  font-weight: 500;
}

/* ── Features ── */
.sub-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.sub-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #374151;
  padding: 7px 0;
  border-bottom: 1px solid #f9fafb;
}
.sub-plan-features li:last-child { border-bottom: none; }
.sub-plan-features li i {
  color: #22c55e;
  font-size: 0.8rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── Action Buttons ── */
.sub-plan-action { margin-top: auto; }

.sub-btn {
  display: block;
  width: 100%;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-shadow: none;
  text-decoration: none !important;
}
.sub-btn-primary {
  background: #013171 !important;
  color: #fff !important;
  border-color: #013171 !important;
  box-shadow: 0 1px 3px rgba(1,49,113,0.15) !important;
}
.sub-btn-primary:hover,
.sub-btn-primary:focus,
.sub-btn-primary:visited {
  background: #01235a !important;
  border-color: #01235a !important;
  color: #fff !important;
  text-decoration: none !important;
}
.sub-btn-outline {
  background: transparent;
  color: #013171;
  border-color: #013171;
}
.sub-btn-outline:hover {
  background: #013171;
  color: #fff;
}
.sub-btn-current {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: default;
}

/* ── FAQ ── */
.sub-faq {
  max-width: 760px;
  margin: 0 auto;
}

.sub-faq > h2 {
  text-align: center;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #0d1b4b !important;
  margin: 0 0 28px !important;
  letter-spacing: -0.01em !important;
}

.sub-faq-list {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  overflow: hidden;
}

.sub-faq-item {
  border-bottom: 1px solid #f3f4f6;
}
.sub-faq-item:last-child { border-bottom: none; }

.sub-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a2e;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background 0.15s;
}
.sub-faq-q:hover { background: #fafafa; }
.sub-faq-q[aria-expanded="true"] { color: #013171; }
.sub-faq-q i {
  color: #9ca3af;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: color 0.15s;
}
.sub-faq-q[aria-expanded="true"] i { color: #013171; }

.sub-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.sub-faq-a p {
  margin: 0;
  padding: 0 24px 18px;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sub-plans-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .sub-header h1 { font-size: 1.7rem !important; }
  .sub-plans-grid { grid-template-columns: 1fr; gap: 16px; }
  .sub-plan-card { padding: 24px 20px 20px; }
  .sub-price-val { font-size: 2rem; }
  .billing-toggle-wrap { flex-wrap: wrap; justify-content: center; }
  .sub-faq-q { padding: 16px 18px; }
  .sub-faq-a p { padding: 0 18px 16px; }
}

/* ── keep old .plan-card class for any other templates referencing it ── */
.plan-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1.5px solid #e8ecf0;
  position: relative;
  transition: box-shadow 0.2s;
}
.plan-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.plan-card.teacher-premium { border-color: #013171; }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #013171;
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ========================================
   ENHANCED DASHBOARD STYLES
   ======================================== */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 1.5em;
}

.section-header p {
  margin: 0;
  color: #666;
  font-size: 0.95em;
}

.section-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Unified dashboard button motion + hover behavior */
.dashboard-container .btn,
.dashboard-container .btn:link,
.dashboard-container .btn:visited {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.dashboard-container .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -140%;
  width: 110%;
  height: 100%;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  transition: left 0.42s ease;
  pointer-events: none;
}

.dashboard-container .btn:hover,
.dashboard-container .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(12, 32, 66, 0.12);
}

.dashboard-container .btn:hover::after,
.dashboard-container .btn:focus-visible::after {
  left: 135%;
}

.dashboard-container .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(12, 32, 66, 0.1);
}

.dashboard-container .btn:focus-visible {
  outline: 2px solid rgba(10, 79, 166, 0.4);
  outline-offset: 2px;
}

.dashboard-container .btn-primary,
.dashboard-container .btn-primary:link,
.dashboard-container .btn-primary:visited {
  color: #fff;
}

.dashboard-container .btn-primary:hover,
.dashboard-container .btn-primary:focus-visible,
.dashboard-container .btn-primary:active {
  background: #012a5e;
  color: #fff;
}

.dashboard-container .btn-outline,
.dashboard-container .btn-outline:link,
.dashboard-container .btn-outline:visited {
  background: #ffffff;
  border-color: #0f4a99;
  color: #0f3f86 !important;
}

.dashboard-container .btn-outline:hover,
.dashboard-container .btn-outline:focus-visible,
.dashboard-container .btn-outline:active {
  background: #0f3f86;
  border-color: #0f3f86;
  color: #ffffff !important;
}

.dashboard-container .btn-danger,
.dashboard-container .btn-danger:link,
.dashboard-container .btn-danger:visited {
  color: #fff;
}

.dashboard-container .btn-danger:hover,
.dashboard-container .btn-danger:focus-visible,
.dashboard-container .btn-danger:active {
  background: #c82333;
  border-color: #c82333;
  color: #fff;
}

.section-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.section-actions .btn i {
  width: 1em;
  text-align: center;
}

.favorites-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card i {
  font-size: 2em;
  color: #013171;
  width: 50px;
  text-align: center;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2em;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.stat-label {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}

.saved-job-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.saved-job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #013171 0%, #1e4a8a 100%);
}

.saved-job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #013171;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.job-header h4 {
  margin: 0;
  font-size: 1.2em;
  flex: 1;
}

.job-header h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.job-header h4 a:hover {
  color: #013171;
}

.saved-date {
  background: #f8f9fa;
  color: #666;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8em;
  font-weight: 500;
  flex-shrink: 0;
  margin-left: 15px;
}

.company-name {
  color: #013171;
  font-weight: 600;
  margin: 10px 0;
  font-size: 1.1em;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  color: #666;
  font-weight: 500;
}

.job-meta span i {
  color: #013171;
}

.job-meta span.renew-limit-note {
  background: #fff8e6;
  color: #8a6500;
}

.job-meta span.renew-limit-note i {
  color: #8a6500;
}

.job-excerpt {
  color: #666;
  font-size: 0.9em;
  line-height: 1.5;
  margin: 15px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #013171;
}

.job-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.saved-job-card .job-actions {
  flex-direction: row;
  flex-wrap: wrap;
}

.job-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
}

.job-actions .btn i {
  width: 1em;
  text-align: center;
}

.saved-job-card .job-actions .btn {
  flex: 1 1 170px;
}

.job-actions .btn:hover {
  transform: translateY(-1px);
}

.job-actions .btn-primary {
  background: #013171;
  color: white;
  border: none;
}

.job-actions .btn-primary:hover {
  background: #012a5e;
  box-shadow: 0 2px 8px rgba(1, 49, 113, 0.15);
}

.job-actions .btn-outline {
  background: transparent;
  color: #013171;
  border: 1px solid #013171;
}

.job-actions .btn-outline:hover {
  background: #013171;
  color: white !important;
}

.job-edit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 20, 42, 0.58);
}

.job-edit-modal-overlay.is-open {
  display: flex;
}

.job-edit-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(8, 20, 42, 0.18);
}

.job-edit-modal-header,
.job-edit-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #e5edf8;
}

.job-edit-modal-footer {
  justify-content: flex-end;
  border-top: 1px solid #e5edf8;
  border-bottom: 0;
}

.job-edit-modal .job-edit-modal-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #10243f;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.job-edit-modal .job-edit-modal-header h3 i {
  font-size: 1.15rem;
}

.job-edit-modal-close {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #013171;
  color: #fff;
  box-shadow: none !important;
  font-size: 20px;
  font-weight: 600;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

.job-edit-modal-close:hover,
.job-edit-modal-close:focus {
  background: #012a5e;
  box-shadow: none !important;
  outline: 2px solid rgba(1, 49, 113, 0.18);
  outline-offset: 2px;
}

.job-edit-form {
  padding: 20px 24px 18px;
}

.job-edit-form .form-group {
  margin-bottom: 16px;
}

.job-edit-form label {
  margin-bottom: 7px;
  color: #10243f;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
}

.job-edit-form input,
.job-edit-form select,
.job-edit-form textarea {
  min-height: 42px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.job-edit-form textarea {
  min-height: 132px;
}

.job-edit-form .input-icon-wrap i {
  font-size: 0.86rem;
}

.job-edit-form .form-row {
  gap: 20px;
}

.job-edit-form .pill-check-group {
  max-height: 190px;
  overflow: auto;
  gap: 8px;
}

.job-edit-form .pill-check-label span {
  min-height: 28px;
  padding: 6px 14px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.job-edit-modal-footer .btn {
  flex: 0 0 auto;
  min-width: 108px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  box-shadow: none !important;
  font-size: 0.95rem;
  line-height: 1;
}

.job-edit-modal-footer .btn:hover {
  transform: none;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .job-edit-modal-overlay {
    padding: 12px;
    align-items: flex-start;
  }

  .job-edit-modal {
    max-height: calc(100vh - 24px);
  }

  .job-edit-modal-header,
  .job-edit-modal-footer,
  .job-edit-form {
    padding: 16px;
  }

  .job-edit-modal .job-edit-modal-header h3 {
    font-size: 1.25rem;
  }

  .job-edit-modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .job-edit-modal-footer .btn {
    width: 100%;
  }
}

/* Clear favorites confirmation popup */
#dashboard-confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
}

#dashboard-confirm-modal.is-open {
  display: flex;
}

.dcm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.dcm-dialog {
  position: relative;
  width: min(440px, 92vw);
  background: #fff;
  border-radius: 12px;
  padding: 24px 24px 18px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dcm-title {
  margin: 0;
  color: #013171;
  font-size: 1.1rem;
}

.dcm-body {
  margin: 0;
  color: #444;
  line-height: 1.5;
}

.dcm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* Enhanced empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #dee2e6;
}

.empty-state i {
  font-size: 4em;
  color: #dee2e6;
  margin-bottom: 20px;
  display: block;
}

.empty-state h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.5em;
  font-weight: 600;
}

.empty-state p {
  margin: 0 0 25px 0;
  font-size: 1.1em;
  line-height: 1.5;
}

.empty-state .btn {
  padding: 12px 24px;
  font-size: 1em;
  font-weight: 600;
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    gap: 15px;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    padding: 16px 18px;
  }

  .profile-card-title {
    font-size: 0.75rem;
  }

  .teacher-profile-cv-row {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
  }

  .profile-hero-name {
    font-size: 1.05rem;
    white-space: normal;
  }

  .dashboard-section#profile .update-profile-form > .btn {
    width: 100%;
  }
  
  .section-actions {
    align-self: stretch;
    justify-content: center;
  }
  
  .favorites-stats {
    grid-template-columns: 1fr;
  }
  
  .job-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .saved-date {
    margin-left: 0;
    align-self: flex-start;
  }
  
  .job-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .job-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .job-actions .btn {
    justify-content: center;
  }
}

/* Usage & Limits Styles */
.usage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.usage-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #013171;
}

.usage-card h3 {
  margin: 0 0 15px 0;
  color: #013171;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.usage-card p {
  margin: 8px 0;
  color: #666;
  font-size: 0.95em;
}

.usage-card p strong {
  color: #333;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e7e9ed;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #013171 0%, #0154a8 100%);
  transition: width 0.3s ease;
  border-radius: 4px;
}

/* Bookmark Candidate Button */
.bookmark-candidate {
  background: transparent;
  border: 1px solid #013171;
  color: #013171;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bookmark-candidate:hover {
  background: #013171;
  color: white;
}

.bookmark-candidate.bookmarked {
  background: #013171;
  color: white;
  border-color: #013171;
}

.bookmark-candidate.bookmarked:hover {
  background: #012a5e;
  border-color: #012a5e;
}

/* Push Up and Renew Job Buttons */
.push-up-job,
.renew-job {
  background: transparent;
  border: 1px solid #28a745;
  color: #28a745;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
}

.push-up-job:hover,
.renew-job:hover {
  background: #28a745;
  color: white;
}

.push-up-job:disabled,
.renew-job:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   Job Feed Block (Homepage Shortcode)
   ============================================ */
.job-feed-block {
  --job-feed-navy: #0f3f83;
  --job-feed-deep: #0b2f63;
  --job-feed-ink: #1d304d;
  --job-feed-muted: #667b9a;
  --job-feed-line: #d9e3f2;
  --job-feed-soft: #f4f8ff;
  padding: 2rem 0;
  width: 100%;
  max-width: 1440px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  margin: 0 auto;
}

.job-feed-showcase-head {
  text-align: center;
  margin-bottom: 1.35rem;
}

.job-feed-eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e1b444;
  margin-bottom: 0.35rem;
}

.job-feed-heading {
  margin: 0;
  font-size: clamp(1.75rem, 3.1vw, 2.35rem);
  line-height: 1.15;
  color: var(--job-feed-deep);
  letter-spacing: -0.02em;
}

.job-feed-ctas {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.job-feed-ctas .btn {
  padding: 0.64rem 1.3rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.18s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.job-feed-ctas .btn-primary {
  background: var(--job-feed-deep);
  color: #ffffff;
  border: 2px solid var(--job-feed-deep);
  box-shadow: 0 1px 4px rgba(11, 47, 99, 0.10);
}

.job-feed-ctas .btn-primary:hover {
  background: var(--job-feed-navy);
  border-color: var(--job-feed-navy);
  box-shadow: 0 3px 10px rgba(15, 63, 131, 0.18);
  transform: translateY(-2px);
}

.job-feed-ctas .btn-outline {
  background: #ffffff;
  border: 2px solid var(--job-feed-navy);
  color: var(--job-feed-navy);
}

.job-feed-ctas .btn-outline:hover {
  background: var(--job-feed-navy);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(15, 63, 131, 0.14);
  transform: translateY(-2px);
}

.job-feed-filters {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.job-feed-filters .filter-label {
  font-weight: 700;
  color: var(--job-feed-ink);
}

.job-feed-filters .filter-links a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin-right: 0.4rem;
  text-decoration: none;
  color: #5e6e87;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.job-feed-filters .filter-links a:hover,
.job-feed-filters .filter-links a.active {
  background: var(--job-feed-navy);
  color: white;
  box-shadow: 0 4px 10px rgba(15, 63, 131, 0.2);
}

.job-feed-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.job-feed-card {
  position: relative;
  overflow: hidden;
  background: #fdfefe;
  border: 1px solid #d4e0f2;
  border-radius: 10px;
  padding: 0.9rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.job-feed-card-hit-area {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.job-feed-card-hit-area:focus-visible {
  outline: 2px solid var(--job-feed-navy);
  outline-offset: -2px;
}

.job-feed-card:hover {
  border-color: var(--job-feed-navy);
  box-shadow: 0 6px 14px rgba(12, 47, 99, 0.11);
  transform: translateY(-1px);
  background: #f0f6ff;
  cursor: pointer;
}

.job-feed-card-link:focus-visible {
  outline: 3px solid var(--job-feed-navy);
  outline-offset: 2px;
  border-radius: inherit;
}

.job-feed-card.featured {
  border-color: var(--job-feed-navy);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.job-feed-card-header {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  align-items: flex-start;
}

.job-feed-company-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--job-feed-line);
  background: #f4f6f8;
  flex-shrink: 0;
}

.job-feed-company-logo.default {
  background: #ecf2fb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--job-feed-navy);
  font-size: 1rem;
}

.job-feed-card-meta {
  flex: 1;
  min-width: 0;
}

.job-feed-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
}

.job-feed-title a {
  position: relative;
  z-index: 3;
  color: var(--job-feed-deep);
  text-decoration: none;
  font-weight: 700;
}

.job-feed-title a:hover {
  color: var(--job-feed-navy);
}

.job-feed-company {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  color: #435e86;
  font-weight: 500;
}

.job-feed-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #5f7495;
  font-weight: 500;
}

.job-feed-location i {
  margin-right: 0;
}

.job-feed-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
  padding: 0.58rem 0 0.52rem;
  border-top: 1px solid #edf2fa;
  border-bottom: 1px solid #edf2fa;
}

.job-feed-card .job-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.52rem;
  background: #eef2f7;
  border-radius: 6px;
  color: #5d6f8e;
  font-weight: 500;
}

.job-feed-card .job-salary {
  font-size: 0.85rem;
  font-weight: 700;
  color: #11a265;
}

.job-feed-excerpt {
  font-size: 0.92rem;
  color: #576a87;
  margin: 0 0 0.62rem;
  line-height: 1.45;
  min-height: 4.2em;
  display: -webkit-box;
  --webkit-line-clamp: 3;
  --webkit-box-orient: vertical;
  overflow: hidden;
}

.job-feed-link {
  position: relative;
  z-index: 3;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--job-feed-navy);
  text-decoration: none;
  font-weight: 700;
}

.job-feed-link:hover {
  color: var(--job-feed-deep);
}

.job-feed-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background: #f7faff;
  border: 1px solid var(--job-feed-line);
  border-radius: 10px;
}

.job-feed-empty p {
  margin-bottom: 1rem;
}

.job-feed-ctas-bottom {
  margin-top: 1.45rem;
  padding-top: 1.45rem;
  border-top: 1px solid #e4ecf8;
}

.job-feed-compact .job-feed-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.job-feed-compact .job-feed-card {
  padding: 0.85rem;
  min-height: 228px;
}

@media (max-width: 1200px) {
  .job-feed-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .job-feed-compact .job-feed-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .job-feed-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-feed-compact .job-feed-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .job-feed-block {
    padding: 1.65rem 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .job-feed-showcase-head {
    margin-bottom: 1.15rem;
  }

  .job-feed-heading {
    font-size: 1.7rem;
  }

  .job-feed-ctas {
    gap: 0.55rem;
  }

  .job-feed-ctas .btn {
    font-size: 0.95rem;
    padding: 0.58rem 1rem;
  }

  .job-feed-list,
  .job-feed-compact .job-feed-list {
    grid-template-columns: 1fr;
  }

  .job-feed-card,
  .job-feed-compact .job-feed-card {
    min-height: 0;
  }
}

/* Job Companies Block (HelloWork style) */
.job-companies-block {
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.job-companies-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.job-companies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.job-company-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s, border-color 0.2s;
}

.job-company-item:hover {
  background: #f8fafc;
  border-color: #013171;
  color: #013171;
}

.job-company-item .company-name {
  font-weight: 500;
}

.job-company-item .job-count {
  font-size: 0.85rem;
  color: #666;
}

/* ========================================
   Job Search Layout Refresh
   ======================================== */
:root {
  --cjt-font-body: "Poppins", sans-serif;
  --cjt-font-title: "Jost", sans-serif;
  --cjt-primary: #013171;
  --cjt-primary-hover: #1a4a9a;
  --cjt-title: #1b2940;
  --cjt-body: #4c5d73;
  --cjt-muted: #7a8fa8;
  --cjt-surface: #ffffff;
  --cjt-surface-soft: #f0f5ff;
  --cjt-border: #e5edf7;
  --cjt-border-soft: #edf1f7;
  --cjt-pill-radius: 99px;
  --cjt-card-radius: 16px;
  --cjt-radius-12: 12px;
  --cjt-radius-14: 14px;
  --cjt-radius-20: 20px;
  --cjt-shadow-card: 0 4px 14px rgba(15, 35, 68, 0.05);
  --cjt-shadow-card-hover: 0 10px 28px rgba(15, 35, 68, 0.1);
  --cjt-shadow-panel: 0 10px 28px rgba(12, 28, 60, 0.08);
  --cjt-shadow-soft: 0 6px 22px rgba(12, 28, 60, 0.06);
  --cjt-shadow-soft-lg: 0 8px 24px rgba(12, 28, 60, 0.06);
  --cjt-shadow-primary: 0 1px 4px rgba(1, 49, 113, 0.08);
  --cjt-shadow-btn: 0 1px 4px rgba(1, 49, 113, 0.08);
  --cjt-shadow-btn-hover: 0 3px 8px rgba(1, 49, 113, 0.13);
  --cjt-border-2: #e6ecf5;
  --cjt-border-3: #e4ebf5;
  --cjt-field-border: #d6e1ee;
  --cjt-field-border-focus: #9cbbe3;
  --cjt-field-bg: #fbfdff;
  --cjt-chip-bg: #eef3fb;
  --cjt-chip-text: #53657d;
  --cjt-text-2: #66758c;
  --cjt-text-3: #5d708a;
  --cjt-text-4: #6f7f96;
  --cjt-text-5: #71829a;
  --cjt-heading-2: #223751;
  --cjt-heading-3: #24394f;
  --cjt-avatar-border: #d8e2ef;
  --cjt-avatar-bg: #f7f9fd;
  --cjt-preview-border: #dfe8f4;
  --cjt-preview-bg: #f6f9ff;
}

.job-search-page {
  width: min(1440px, calc(100% - 48px));
  margin: 28px auto 56px;
  padding: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: transparent;
  font-family: var(--cjt-font-body);
}

.job-search-access-wrap {
  position: relative;
}

.job-search-access-wrap.is-employer-locked {
  min-height: 70vh;
}

.job-search-access-wrap.is-employer-locked .job-search-page {
  filter: blur(6px);
  opacity: 0.48;
  pointer-events: none;
  user-select: none;
}

.job-search-employer-lock {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 130px 20px 40px;
  background: rgba(246, 249, 255, 0.26);
}

.job-search-employer-lock__panel {
  width: min(100%, 520px);
  padding: 30px 28px;
  border: 1px solid #d7e4f5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(1, 49, 113, 0.16);
  text-align: center;
}

.job-search-employer-lock__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #013171;
  font-size: 1.35rem;
}

.job-search-employer-lock__panel h2 {
  margin: 0 0 10px;
  color: #0c2649;
  font-family: var(--cjt-font-heading);
  font-size: 1.75rem;
  line-height: 1.2;
}

.job-search-employer-lock__panel p {
  margin: 0 auto 22px;
  max-width: 420px;
  color: #50627c;
  font-size: 0.98rem;
  line-height: 1.6;
}

.job-search-employer-lock__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.job-search-employer-lock__actions .btn {
  min-width: 170px;
}

@media (max-width: 620px) {
  .job-search-employer-lock {
    padding-top: 76px;
  }

  .job-search-employer-lock__panel {
    padding: 24px 18px;
  }

  .job-search-employer-lock__actions .btn {
    width: 100%;
  }
}

body.page-template-page-job-search,
body.page-template-page-job-search html,
body.page-template-page-job-search #page,
body.page-template-page-job-search .site,
body.page-template-page-job-search .elementor-location-header,
body.page-template-page-job-search .elementor-location-header > .elementor,
body.page-template-page-job-search .elementor-location-header .elementor-section-wrap,
body.page-template-page-job-search .elementor-location-header .e-con,
body.page-template-page-job-search .elementor-location-header .e-con-inner {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-template-page-job-search .elementor-location-header::before,
body.page-template-page-job-search .elementor-location-header::after,
body.page-template-page-job-search .elementor-location-header > .elementor::before,
body.page-template-page-job-search .elementor-location-header > .elementor::after {
  content: none !important;
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.job-search-page h1,
.job-search-page h2,
.job-search-page h3,
.job-search-page h4,
.job-search-page .job-title,
.job-search-page .section-title,
.job-search-page .jobs-listing h2,
.job-search-page .filter-sidebar-head h2,
.jd-modal-topbar-title,
.jd-modal-body .job-description h3,
.jd-modal-body .job-description h4,
.login-prompt-content h2 {
  font-family: var(--cjt-font-title);
}

/* â”€â”€ Filter Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.job-search-page .filter-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  width: auto;
  margin: 0;
  padding: 22px 18px 28px;
  border-radius: 20px;
  border: 1px solid rgba(12, 34, 66, 0.09);
  box-shadow: 0 12px 32px rgba(14, 28, 56, 0.07);
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #dce5f2 transparent;
}
.job-search-page .filter-sidebar::-webkit-scrollbar { width: 4px; }
.job-search-page .filter-sidebar::-webkit-scrollbar-thumb { background: #dce5f2; border-radius: 99px; }

.filter-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f7;
}
.filter-sidebar-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cjt-title);
  flex: 1;
}
.filter-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cjt-primary);
  text-decoration: none;
  white-space: nowrap;
}
.filter-clear-all:hover { text-decoration: underline; }
.filter-sidebar-close {
  display: none !important;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #6a7b91;
  cursor: pointer;
  padding: 0 0 0 4px;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--cjt-pill-radius);
  background: var(--cjt-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

/* Quick links */
.filter-quick-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}
.filter-quick-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3b5b84;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.filter-quick-link i { width: 15px; text-align: center; font-size: 0.85rem; }
.filter-quick-link:hover { background: var(--cjt-surface-soft); color: var(--cjt-primary); }
.filter-quick-link.active { background: #e8f0ff; color: var(--cjt-primary); font-weight: 700; }

/* Section title */
.job-search-page .section-title {
  margin: 20px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--cjt-border-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #8a9bb4;
}
.filter-quick-links + .filter-section .section-title {
  margin-top: 4px;
}

/* Filter list */
.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #4a5e78;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.filter-list a:hover { background: var(--cjt-surface-soft); color: var(--cjt-primary); }
.filter-list a.active {
  background: linear-gradient(90deg, #e8f0ff 0%, #f2f7ff 100%);
  color: var(--cjt-primary);
  font-weight: 700;
}
.filter-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8a9bb4;
  background: #f0f4fa;
  padding: 1px 6px;
  border-radius: 99px;
}
.filter-list a.active .filter-count { background: #cddeff; color: var(--cjt-primary); }

/* Scrollable filter list */
.filter-list-scroll {
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #dce5f2 transparent;
  padding-right: 2px;
}
.filter-list-scroll::-webkit-scrollbar { width: 3px; }
.filter-list-scroll::-webkit-scrollbar-thumb { background: #dce5f2; border-radius: 99px; }

/* Remote toggle link */
.filter-toggle-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #4a5e78;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.filter-toggle-link:hover { background: var(--cjt-surface-soft); color: var(--cjt-primary); }
.filter-toggle-icon {
  display: inline-block;
  width: 34px;
  height: 20px;
  border-radius: 99px;
  background: #d5dde8;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s;
}
.filter-toggle-icon::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 99px;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.filter-toggle-link.active .filter-toggle-icon { background: var(--cjt-primary); }
.filter-toggle-link.active .filter-toggle-icon::after { transform: translateX(14px); }

/* Mobile toggle button */
.filter-mobile-toggle {
  display: none !important;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid #c8d7ee;
  border-radius: var(--cjt-pill-radius);
  background: var(--cjt-surface);
  color: var(--cjt-primary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.filter-mobile-toggle:hover { background: var(--cjt-surface-soft); border-color: #a5bfe0; }

/* Sidebar backdrop */
.filter-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 46, 0.38);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.filter-sidebar-backdrop.show { display: block; }

/* â”€â”€ Main content â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.job-search-main {
  min-width: 0;
}

.job-search-page .jobs-listing {
  width: auto;
  margin: 0;
  padding: 28px 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(12, 34, 66, 0.08);
  box-shadow: 0 12px 32px rgba(14, 28, 56, 0.07);
  background: var(--cjt-surface);
}

/* Listing header */
.jobs-listing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.jobs-listing-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.job-search-page .jobs-listing h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.1;
  color: var(--cjt-title);
}
.jobs-found-count {
  font-size: 0.88rem;
  color: var(--cjt-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Active filter chips */
.active-filters-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f7;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: #e8f0ff;
  color: var(--cjt-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #c5d8f7;
  transition: background 0.15s;
}
.active-filter-chip:hover { background: #d6e8ff; }
.active-filter-chip i { font-size: 0.7rem; }
.active-filter-chip--clear {
  background: #f5f7fa;
  color: #5b7290;
  border-color: #dce5f2;
}
.active-filter-chip--clear:hover { background: #ebeef4; color: #3b4f66; }

/* â”€â”€ Job Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.job-search-page .job-card {
  margin: 0 0 14px;
  padding: 20px;
  border: 1px solid var(--cjt-border);
  border-radius: var(--cjt-card-radius);
  background: var(--cjt-surface);
  box-shadow: var(--cjt-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  cursor: pointer;
}
.job-search-page .job-card:last-child { margin-bottom: 0; }
.job-search-page .job-card:hover {
  transform: translateY(-2px);
  border-color: #c8d9f0;
  box-shadow: var(--cjt-shadow-card-hover);
}
.job-search-page .job-card:focus-visible {
  outline: 3px solid #98baf0;
  outline-offset: 2px;
}
.job-card-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.job-card-logo { flex-shrink: 0; }
.job-card-body { flex: 1; min-width: 0; }

.job-search-page .job-company-img,
.job-search-page .default-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: #f7f9fc;
  border: 1px solid #e5ebf3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #8a9bb4;
}

.job-search-page .job-card h3 {
  margin: 0 0 4px;
}
.job-search-page .job-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cjt-title);
  text-decoration: none;
  display: inline;
}
.job-search-page .job-title:hover { color: var(--cjt-primary); }

.job-search-page .job-company {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 8px;
}
.job-search-page .job-type-one {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3b5b84;
  margin: 0;
}
.job-search-page .job-location {
  font-size: 0.85rem;
  color: var(--cjt-muted);
}
.job-search-page .job-location i { margin-right: 3px; font-size: 0.78rem; }

.job-search-page .job-info {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cjt-body);
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.job-search-page .job-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.job-search-page .job-meta .job-tag {
  padding: 4px 10px;
  border-radius: var(--cjt-pill-radius);
  background: #f0f4fb;
  color: #4a6084;
  font-size: 0.78rem;
  font-weight: 600;
}
.job-search-page .job-meta .job-salary {
  padding: 4px 10px;
  border-radius: 99px;
  background: #e6faf2;
  color: #177a50;
  font-size: 0.78rem;
  font-weight: 700;
}

.job-search-page .job-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-sm {
  padding: 7px 16px;
  font-size: 0.84rem;
  border-radius: 99px;
}
.job-search-page .favorite-btn {
  width: 38px;
  height: 38px;
  border-radius: 99px;
  border: 1.5px solid #d8e2ef;
  background: var(--cjt-surface);
  color: #7a8fa8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.job-search-page .favorite-btn:hover { border-color: #becfe9; color: #234f96; background: var(--cjt-surface-soft); }
.job-search-page .favorite-btn.favorited { background: #eaf1ff; border-color: #c5d6f3; color: #1c58b6; }

/* â”€â”€ Pagination â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.jobs-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #edf1f7;
}
.jobs-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1.5px solid #d8e5f5;
  background: #fff;
  color: #3b5b84;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.jobs-pagination .page-numbers:hover { background: #f0f5ff; border-color: #a5bfe0; color: #013171; }
.jobs-pagination .page-numbers.current { background: #013171; border-color: #013171; color: #fff; }
.jobs-pagination .page-numbers.dots { border: none; background: none; color: #8a9bb4; }

/* â”€â”€ Featured/highlighted badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.featured-badge,
.highlighted-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.featured-badge { background: #fff7e0; color: #a07000; border: 1px solid #f0d060; }
.highlighted-badge { background: #fff0ec; color: #b63000; border: 1px solid #f5bba8; }

/* â”€â”€ Empty state â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.job-search-page .empty-state {
  text-align: center;
  padding: 56px 20px;
  color: #7a8fa8;
}
.job-search-page .empty-state i { font-size: 2.4rem; margin-bottom: 16px; display: block; color: #b0c2d8; }
.job-search-page .empty-state h3 { font-size: 1.3rem; color: #3b4f66; margin: 0 0 8px; }
.job-search-page .empty-state p { margin: 0 0 20px; font-size: 0.95rem; }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1100px) {
  .job-search-page {
    width: min(100%, calc(100% - 32px));
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .job-search-page {
    grid-template-columns: 1fr;
    width: min(100%, calc(100% - 24px));
    margin: 18px auto 36px;
  }
  .filter-mobile-toggle { display: inline-flex !important; }
  .filter-sidebar-close { display: inline-flex !important; }
  .job-search-page .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    max-height: 100dvh;
    width: 300px;
    max-width: 85vw;
    border-radius: 0 20px 20px 0;
    z-index: 200;
    transform: translateX(-110%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 40px rgba(10, 22, 46, 0.18);
  }
  .job-search-page .filter-sidebar.show { transform: translateX(0); }
  .jobs-listing-header { flex-wrap: wrap; }
}

@media (max-width: 580px) {
  /* Listing container */
  .job-search-page .jobs-listing { padding: 14px; border-radius: 14px; }

  /* Individual card */
  .job-search-page .job-card { padding: 14px; margin-bottom: 10px; }

  /* Keep logo + body side by side */
  .job-card-inner { flex-direction: row; gap: 12px; }

  /* Smaller company logo */
  .job-search-page .job-company-img,
  .job-search-page .default-avatar { width: 42px; height: 42px; font-size: 1rem; border-radius: 10px; }

  /* Tighter title */
  .job-search-page .job-card h3 a,
  .job-search-page .job-title { font-size: 0.95rem; }

  /* Collapse margin on company row */
  .job-search-page .job-company { margin-bottom: 4px; gap: 4px 10px; }
  .job-search-page .job-type-one { font-size: 0.84rem; }
  .job-search-page .job-location { font-size: 0.8rem; }

  /* Compact excerpt — hide if no content to avoid ghost gap */
  .job-search-page .job-info { font-size: 0.84rem; margin-bottom: 8px; }
  .job-search-page .job-info:empty { display: none; }

  /* Footer: tags row then apply+heart on the same row */
  .job-card-footer { flex-direction: column; align-items: stretch; gap: 8px; }
  .job-search-page .job-meta { gap: 4px; }

  /* Apply and heart side-by-side */
  .job-search-page .job-actions { width: 100%; display: flex; flex-direction: row; gap: 8px; }
  .job-search-page .job-actions .btn { flex: 1; justify-content: center; text-align: center; }
  .job-search-page .favorite-btn { flex-shrink: 0; width: 36px; height: 36px; }
}

/* ==========================================
   Job Detail & Login Prompt Modals
   ========================================== */

body.modal-open {
  overflow: hidden;
}

.jd-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 18, 40, 0.52);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.jd-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.jd-modal {
  background: var(--cjt-surface);
  width: min(900px, 100%);
  max-height: 92dvh;
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(48px);
  transition: transform 0.32s cubic-bezier(0.34, 1.18, 0.64, 1);
  box-shadow: 0 -12px 48px rgba(8, 20, 50, 0.16);
}

.jd-modal-overlay.open .jd-modal {
  transform: translateY(0);
}

/* Sticky topbar with title + close button */
.jd-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 14px 28px;
  border-bottom: 1px solid var(--cjt-border-soft);
  flex-shrink: 0;
  position: relative;
}
.jd-modal-topbar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cjt-title);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jd-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 10;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: #f0f4fb;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  color: #3a5072;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jd-modal-topbar .jd-modal-close {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
}

.jd-modal-close:hover {
  background: #d5e6f8;
  color: var(--cjt-primary);
  transform: rotate(90deg);
}

.jd-modal-body {
  overflow-y: auto;
  padding: 24px 32px 40px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.jd-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 64px 20px;
  color: #6a7f9a;
  font-size: 0.95rem;
}

.jd-error {
  color: #c0392b;
  text-align: center;
  padding: 40px 24px;
  font-size: 0.96rem;
}


/* -- Modal body content (AJAX-injected HTML) -- */
.jd-modal-body .job-company {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.jd-modal-body .job-company-img,
.jd-modal-body .default-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #e5ebf3;
  background: #f7f9fc;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #8a9bb4;
}
.jd-modal-body .job-company-info { flex: 1; min-width: 0; }
.jd-modal-body .job-type-one {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cjt-title);
}
.jd-modal-body .job-location {
  margin: 0;
  font-size: 0.88rem;
  color: var(--cjt-muted);
}
.jd-modal-body .job-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.jd-modal-body .easy-apply,
.jd-modal-body .save-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 99px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.jd-modal-body .easy-apply {
  background: var(--cjt-primary);
  color: #fff;
  border: none;
  box-shadow: var(--cjt-shadow-btn);
}
.jd-modal-body .easy-apply:hover {
  background: var(--cjt-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--cjt-shadow-btn-hover);
}
.jd-modal-body .save-btn {
  background: #fff;
  color: #3a5a80;
  border: 1.5px solid #ccd9ee;
}
.jd-modal-body .save-btn:hover {
  background: var(--cjt-surface-soft);
  border-color: #a5bfe0;
  color: var(--cjt-primary);
  transform: translateY(-1px);
}
.jd-modal-body .job-description {
  border-top: 1px solid var(--cjt-border-soft);
  padding-top: 20px;
}
.jd-modal-body .job-description h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cjt-title);
}
.jd-modal-body .job-description h4 {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2a3b53;
}
.jd-modal-body .job-description p {
  margin: 0 0 12px;
  color: var(--cjt-body);
  font-size: 0.95rem;
  line-height: 1.7;
}
.jd-modal-body .job-description ul {
  margin: 0 0 14px 20px;
  padding: 0;
}
.jd-modal-body .job-description li {
  color: var(--cjt-body);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 4px;
}
.jd-modal-body .job-description strong { color: #2a3b53; }

/* Drag handle on topbar */
.jd-modal-topbar::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: #d8e2ef;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}
/* Login prompt variant â€” centered, smaller, rounded */
.jd-modal-overlay.login-prompt-overlay {
  align-items: center;
}

.login-prompt-modal {
  width: min(460px, calc(100% - 24px));
  border-radius: 28px;
  max-height: unset;
}

.jd-modal-overlay.login-prompt-overlay .jd-modal {
  transform: translateY(24px) scale(0.97);
}

.jd-modal-overlay.login-prompt-overlay.open .jd-modal {
  transform: translateY(0) scale(1);
}

.login-prompt-content {
  padding: 52px 36px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.login-prompt-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #e8f1ff, #d4e6ff);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--cjt-primary);
}

.login-prompt-content h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a2c44;
}

.login-prompt-content p {
  margin: 0;
  color: #5b7090;
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 32ch;
}

.login-prompt-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.login-prompt-actions .btn {
  flex: 1;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.login-prompt-actions .btn-outline {
  border: 1.5px solid #d4e0f0;
  background: #f8fbff;
  color: #3a5a80;
}

.login-prompt-actions .btn-outline:hover {
  background: #edf4ff;
  border-color: #b9ceea;
  color: #013171 !important;
}

@media (max-width: 640px) {
  .jd-modal {
    width: 100%;
    max-height: 94dvh;
    border-radius: 24px 24px 0 0;
  }

  .jd-modal-body {
    padding: 20px 18px 32px;
  }

  .login-prompt-modal {
    border-radius: 24px;
  }

  .login-prompt-content {
    padding: 40px 20px 32px;
  }

  .login-prompt-actions {
    flex-direction: column;
  }
}

/* ==========================================
   Single Job Page Refresh (Scoped)
   ========================================== */

.single-job-detail-page {
  padding: 22px 14px 54px;
  display: block;
  min-height: auto;
}

.single-job-detail-page .single-job-content,
.job-apply-page .job-apply-content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0;
  flex: 0 1 auto;
  display: block;
}

.single-job-detail-page .single-job-shell,
.job-apply-page .job-apply-shell {
  width: 100% !important;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.single-job-detail-page .job-detail-header {
  margin-bottom: 22px;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 18px 44px rgba(14, 38, 74, 0.2);
}

.single-job-detail-page .job-header-content {
  gap: 28px;
  align-items: center;
}

.single-job-detail-page .job-detail-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  margin: 0 0 14px;
}

.single-job-detail-page .job-company-info {
  gap: 14px;
}

.single-job-detail-page .company-logo,
.single-job-detail-page .company-logo.default-avatar {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.single-job-detail-page .company-logo.default-avatar {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.16);
}

.single-job-detail-page .company-name {
  color: #cacacb !important;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.72rem;
}

.single-job-detail-page .job-location {
  margin: 4px 0 0;
  font-size: 1rem;
}

.single-job-detail-page .job-detail-header .job-actions {
  width: min(260px, 100%);
  min-width: 216px;
  display: grid;
  gap: 10px;
  align-self: flex-start;
}

.single-job-detail-page .job-detail-header .apply-btn,
.single-job-detail-page .job-detail-header .save-job-btn,
.single-job-detail-page .job-detail-header .share-job-btn {
  margin: 0;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 600;
  justify-content: center;
}

.single-job-detail-page .job-detail-header .apply-btn {
  background: var(--cjt-surface);
  color: #0d3e80;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 3px 10px rgba(2, 20, 54, 0.05);
}

.single-job-detail-page .job-detail-header .apply-btn:hover {
  background: var(--cjt-surface-soft);
  color: #08346f;
}

.single-job-detail-page .job-detail-header .save-job-btn,
.single-job-detail-page .job-detail-header .share-job-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #f5f9ff;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.single-job-detail-page .job-detail-header .save-job-btn:hover,
.single-job-detail-page .job-detail-header .share-job-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.62);
  color: #ffffff;
}

.single-job-detail-page .job-detail-header .save-job-btn.favorited {
  background: rgba(234, 78, 102, 0.24);
  border-color: rgba(255, 186, 196, 0.72);
  color: #ffdbe2;
}

.single-job-detail-page .job-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.single-job-detail-page .meta-item {
  border-radius: 16px;
  border: 1px solid var(--cjt-border-2);
  box-shadow: var(--cjt-shadow-soft);
  padding: 16px;
}

.single-job-detail-page .meta-item i {
  width: 30px;
  font-size: 1.2em;
}

.single-job-detail-page .job-categories {
  display: block;
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--cjt-border-2);
  box-shadow: var(--cjt-shadow-soft);
}

.single-job-detail-page .job-categories h4 {
  margin: 0 0 12px;
  font-size: 1.32rem;
}

.single-job-detail-page .category-tags {
  gap: 8px;
}

.single-job-detail-page .category-tag {
  border-radius: var(--cjt-pill-radius);
  padding: 7px 12px;
  font-size: 0.8rem;
}

.single-job-detail-page .job-description-section,
.single-job-detail-page .job-requirements-section,
.single-job-detail-page .job-contact-section,
.single-job-detail-page .similar-jobs-section {
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid var(--cjt-border-2);
  box-shadow: var(--cjt-shadow-soft-lg);
  padding: clamp(18px, 3.2vw, 28px);
}

.single-job-detail-page .job-content,
.single-job-detail-page .requirements-content {
  font-size: 1rem;
  line-height: 1.72;
}

.single-job-detail-page .contact-item,
.single-job-detail-page .similar-job-card {
  border-radius: 14px;
}

@media (max-width: 1024px) {
  .single-job-detail-page .job-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-job-detail-page .job-header-content {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .single-job-detail-page {
    padding: 14px 10px 36px;
  }

  .single-job-detail-page .job-header-content {
    gap: 20px;
  }

  .single-job-detail-page .job-detail-header .job-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    align-self: stretch;
  }

  .single-job-detail-page .job-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .single-job-detail-page .job-detail-header {
    border-radius: 18px;
    padding: 18px;
  }

  .single-job-detail-page .company-logo,
  .single-job-detail-page .company-logo.default-avatar {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .single-job-detail-page .job-detail-title {
    font-size: 1.7rem;
  }
}

/* ==========================================
   Apply Page Refresh (Scoped)
   ========================================== */

.job-apply-page {
  padding: 26px 14px 54px;
  display: block;
  min-height: auto;
}

@media (max-width: 1440px) {
  .single-job-detail-page,
  .job-apply-page {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 1200px) {
  .single-job-detail-page,
  .job-apply-page {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.job-apply-page .apply-page-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--cjt-title);
  line-height: 1.08;
}

.job-apply-page .apply-job-summary-card,
.job-apply-page .apply-form-card {
  background: var(--cjt-surface);
  border: 1px solid var(--cjt-border-3);
  border-radius: var(--cjt-radius-20);
  box-shadow: var(--cjt-shadow-panel);
  padding: clamp(18px, 3.2vw, 26px);
  margin-bottom: 16px;
}

.job-apply-page .apply-job-summary-card h3,
.job-apply-page .apply-form-card h3 {
  margin: 0 0 14px;
  font-size: 1.7rem;
  color: var(--cjt-heading-2);
}

.job-apply-page .apply-job-summary-card .job-company {
  gap: 12px;
  margin-top: 8px;
}

.job-apply-page .apply-job-summary-card .job-company-img,
.job-apply-page .apply-job-summary-card .default-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--cjt-radius-14);
  border: 1px solid var(--cjt-avatar-border);
  background: var(--cjt-avatar-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}

.job-apply-page .apply-job-summary-card .job-type-one {
  margin: 0;
  font-size: 1.2rem;
}

.job-apply-page .apply-job-summary-card .job-location {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: var(--cjt-text-2);
}

.job-apply-page .apply-job-summary-card .job-meta {
  margin-top: 14px;
  gap: 8px;
}

.job-apply-page .apply-job-summary-card .job-meta span {
  border-radius: var(--cjt-pill-radius);
  background: var(--cjt-chip-bg);
  color: var(--cjt-chip-text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 11px;
}

.job-apply-page .application-form .form-group {
  margin-bottom: 16px;
}

.job-apply-page .application-form .form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cjt-heading-2);
}

.job-apply-page .application-form .form-control {
  width: 100%;
  border: 1px solid var(--cjt-field-border);
  border-radius: var(--cjt-radius-12);
  padding: 12px 14px;
  font-size: 0.96rem;
  background: var(--cjt-field-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.job-apply-page .application-form textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.job-apply-page .application-form .form-control:focus {
  outline: none;
  border-color: var(--cjt-field-border-focus);
  box-shadow: 0 0 0 3px rgba(1, 49, 113, 0.1);
  background: var(--cjt-surface);
}

.job-apply-page .application-form .char-counter {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--cjt-text-5);
}

.job-apply-page .application-form .file-preview,
.job-apply-page .application-form .current-cv {
  border-radius: var(--cjt-radius-12);
  border: 1px solid var(--cjt-preview-border);
  background: var(--cjt-preview-bg);
  padding: 10px 12px;
  margin-top: 10px;
}

.job-apply-page .application-form .form-help {
  margin-top: 7px;
  font-size: 0.82rem;
  color: var(--cjt-text-4);
}

.job-apply-page .application-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0d4c9f;
  margin-right: 8px;
  vertical-align: middle;
}

.job-apply-page .application-form .form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.job-apply-page .application-form .form-actions .btn {
  border-radius: var(--cjt-pill-radius);
  padding: 12px 20px;
  font-weight: 600;
}

.job-apply-page .application-form .form-actions .btn-primary {
  box-shadow: var(--cjt-shadow-primary);
}

@media (max-width: 768px) {
  .job-apply-page {
    padding: 14px 10px 34px;
  }

  .job-apply-page .apply-job-summary-card h3,
  .job-apply-page .apply-form-card h3 {
    font-size: 1.45rem;
  }

  .job-apply-page .application-form .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .job-apply-page .application-form .form-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.jd-modal-overlay.apply-status-overlay {
  align-items: center;
}

.apply-status-modal {
  width: min(460px, calc(100% - 24px));
  border-radius: 24px;
  max-height: unset;
}

/* â”€â”€ Apply Form: two-column row â”€â”€ */
.job-apply-page .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.job-apply-page .form-group {
  display: flex;
  flex-direction: column;
}

.job-apply-page .form-control {
  width: 100%;
  box-sizing: border-box;
}

.job-apply-page select.form-control {
  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 d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

@media (max-width: 600px) {
  .job-apply-page .form-row {
    grid-template-columns: 1fr;
  }
}

.jd-modal-overlay.apply-status-overlay .jd-modal {
  transform: translateY(24px) scale(0.97);
}

.jd-modal-overlay.apply-status-overlay.open .jd-modal {
  transform: translateY(0) scale(1);
}

.apply-status-content {
  padding: 48px 30px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.apply-status-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--cjt-pill-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}

.apply-status-icon.success {
  background: linear-gradient(135deg, #e4f9ef, #c8f3df);
  color: #1a8d56;
}

.apply-status-icon.error {
  background: linear-gradient(135deg, #ffeceb, #ffd7d5);
  color: #c8433d;
}

.apply-status-content h3 {
  margin: 0;
  font-size: 1.55rem;
  color: var(--cjt-heading-3);
}

.apply-status-content p {
  margin: 0;
  color: var(--cjt-text-3);
  line-height: 1.65;
  font-size: 0.96rem;
  max-width: 32ch;
}

.apply-status-actions {
  width: 100%;
  margin-top: 8px;
}

.apply-status-actions .btn {
  width: 100%;
  border-radius: var(--cjt-pill-radius);
  justify-content: center;
  font-weight: 600;
  padding: 12px 16px;
}

@media (max-width: 520px) {
  .apply-status-content {
    padding: 40px 18px 26px;
  }

  .apply-status-icon {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
  }
}

/* Dashboard Subscription Section */
.subscription-overview {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 500px;
}

.subscription-current h3,
.subscription-free h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.subscription-current .plan-price {
  font-size: 1.1rem;
  color: #013171;
  font-weight: 600;
  margin: 0.25rem 0;
}

.subscription-current .plan-expiry {
  font-size: 0.9rem;
  color: #666;
  margin: 0.25rem 0;
}

.subscription-free p {
  margin: 0.5rem 0;
  color: #555;
}

.subscription-free .btn {
  margin-top: 1rem;
}

/* ===========================================
   Post Job Form – Card Layout
   =========================================== */
.pj-card {
  background: #fff;
  border: 1px solid #e0e9f5;
  border-top: 3px solid #0f4a99;
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(12, 32, 66, 0.06);
  transition: box-shadow 0.25s ease;
}

.pj-card:hover {
  box-shadow: 0 5px 18px rgba(12, 32, 66, 0.10);
}

.pj-card-title {
  margin: 0 0 18px;
  font-size: 0.97rem;
  font-weight: 600;
  color: #013171;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8eef8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pj-card-title i {
  opacity: 0.75;
  font-size: 0.9em;
}

/* Required star */
.field-required {
  color: #e53e3e;
  margin-left: 2px;
}

/* Icon-wrapped inputs */
.input-icon-wrap {
  position: relative;
}

.input-icon-wrap > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 0.82em;
  pointer-events: none;
  z-index: 1;
}

.input-icon-wrap input,
.input-icon-wrap select {
  padding-left: 36px !important;
}

/* Taxonomy pill checkboxes */
.pj-taxonomy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pill-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pill-check-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.pill-check-label input[type="checkbox"] {
  display: none;
}

.pill-check-label span {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid #c5d5eb;
  background: #f4f8ff;
  color: #444;
  font-size: 0.83em;
  font-weight: 500;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  user-select: none;
  line-height: 1.4;
}

.pill-check-label input[type="checkbox"]:checked + span {
  background: #013171;
  border-color: #013171;
  color: #fff;
}

.pill-check-label:hover span {
  border-color: #0a4fa6;
  color: #013171;
  background: #eaf0fb;
}

.pill-check-label input[type="checkbox"]:checked + span:hover {
  background: #0a4fa6;
}

.pj-no-terms {
  color: #888;
  font-size: 0.85em;
  margin: 4px 0 0;
}

/* Submit row */
.pj-submit-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 4px;
  gap: 12px;
}

.pj-submit-btn {
  padding: 12px 40px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Responsive – tablets */
@media (max-width: 768px) {
  .pj-taxonomy-row {
    grid-template-columns: 1fr;
  }
}

/* Responsive – mobile */
@media (max-width: 580px) {
  .pj-card {
    padding: 18px 16px;
  }

  .pj-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pj-submit-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================
   ACCOUNT SETTINGS SECTION
   ============================================================ */

.acct-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.acct-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.acct-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.acct-card-danger {
  border-color: #fcd5d5;
  background: #fff9f9;
}

.acct-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.acct-card-danger .acct-card-icon {
  background: #fce8e8;
  color: #c0392b;
}

.acct-card-body { flex: 1; min-width: 0; }
.acct-card-body h3 {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #1a1a2e !important;
  margin: 0 0 6px !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.acct-card-body p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 14px;
  line-height: 1.5;
}

.acct-info-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.acct-info-list li {
  font-size: 0.875rem;
  color: #374151;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.acct-info-list li i {
  color: #9ca3af;
  width: 14px;
  text-align: center;
}

.acct-note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}
.danger-note { color: #c0392b; }

.acct-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  color: #c0392b;
  cursor: pointer;
  text-decoration: underline;
}
.acct-link-btn:hover { color: #922b21; }

/* Buttons */
.acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none !important;
}
.acct-btn-primary {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.acct-btn-primary:hover {
  background: #4338ca;
  border-color: #4338ca;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.acct-btn-ghost {
  background: transparent;
  color: #6b7280;
  border-color: #d1d5db;
}
.acct-btn-ghost:hover {
  background: #f3f4f6;
  color: #374151;
}

/* 2FA Toggle */
.acct-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.acct-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.acct-toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.acct-toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.acct-toggle-input:checked + .acct-toggle-slider {
  background: #4f46e5;
}
.acct-toggle-input:checked + .acct-toggle-slider::before {
  transform: translateX(20px);
}
.acct-toggle-label {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

/* ============================================================
   PASSWORD CHANGE MODAL
   ============================================================ */

.pwd-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}
.pwd-modal-overlay.is-open {
  display: flex;
}

.pwd-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: pwdModalIn 0.22s ease;
}
@keyframes pwdModalIn {
  from { opacity: 0; transform: translateY(-18px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.pwd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 16px;
  border-bottom: 1px solid #f3f4f6;
}
.pwd-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pwd-modal-header h3 i { color: #4f46e5; }
.pwd-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.pwd-modal-close:hover { color: #1a1a2e; }

#password-change-form {
  padding: 20px 28px 24px;
}

.pwd-field-group {
  margin-bottom: 18px;
}
.pwd-field-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}
.pwd-input-wrap {
  position: relative;
}
.pwd-input-wrap input[type="password"],
.pwd-input-wrap input[type="text"] {
  width: 100%;
  padding: 11px 44px 11px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1a1a2e;
  background: #fafafa;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.pwd-input-wrap input:focus {
  outline: none;
  border-color: #4f46e5;
  background: #fff;
}
.pwd-eye-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}
.pwd-eye-toggle:hover { color: #4f46e5; }

.pwd-strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}
.pwd-strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
}
.strength-weak   { background: #ef4444; }
.strength-fair   { background: #f59e0b; }
.strength-good   { background: #22c55e; }
.strength-strong { background: #16a34a; }

.pwd-strength-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
}
.pwd-strength-hint.strength-weak   { color: #ef4444; }
.pwd-strength-hint.strength-fair   { color: #f59e0b; }
.pwd-strength-hint.strength-good   { color: #22c55e; }
.pwd-strength-hint.strength-strong { color: #16a34a; }

.pwd-modal-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.pwd-msg-error   { background: #fef2f2; color: #c0392b; border: 1px solid #fecaca; }
.pwd-msg-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.pwd-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

@media (max-width: 900px) {
  .acct-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .acct-settings-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .acct-card {
    padding: 20px 16px;
    gap: 14px;
  }
  .acct-card-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .pwd-modal { border-radius: 16px; }
  .pwd-modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .pwd-modal-footer .acct-btn {
    width: 100%;
    justify-content: center;
  }
  #password-change-form { padding: 16px 20px 20px; }
  .pwd-modal-header { padding: 18px 20px 14px; }
}


/* =============================================================
   WOOCOMMERCE CLASSIC CHECKOUT — Custom Styling v2
   French Connect Teacher  |  Brand: #013171
   ============================================================= */

/* ── Reset any inherited green / coloured background ─────── */
body.woocommerce-checkout,
body.woocommerce-checkout #page,
body.woocommerce-checkout .site,
body.woocommerce-checkout #content,
body.woocommerce-checkout .site-content,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout main#primary,
body.woocommerce-checkout #primary,
body.woocommerce-order-received,
body.woocommerce-order-received #page,
body.woocommerce-order-received .site-main,
body.woocommerce-order-received main#primary {
  background: #f0f2f7 !important;
}

/* ── Hide the page title ("Checkout") on checkout pages ─── */
body.woocommerce-checkout .entry-header,
body.woocommerce-checkout .page-header {
  text-align: center;
  margin-bottom: 0;
}

/* ── Page spacing ─────────────────────────────────────────── */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout main#primary {
  padding: 36px 0 72px !important;
}

.woocommerce-checkout .woocommerce {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ── Coupon / login notice strip ──────────────────────────── */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
  background: #eef3fc;
  border-left: 4px solid #013171;
  border-top: none;
  color: #013171;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.woocommerce-checkout .woocommerce-error {
  background: #fff0f0;
  border-left: 4px solid #c0392b;
  border-top: none;
  color: #c0392b;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  list-style: none;
}

/* ── Two-column grid ──────────────────────────────────────── */
form.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

form.checkout.woocommerce-checkout #customer_details {
  grid-column: 1;
  grid-row: 1;
}

form.checkout.woocommerce-checkout #order_review_heading {
  display: none;
}

form.checkout.woocommerce-checkout #order_review {
  grid-column: 2;
  grid-row: 1 / 4;
}

/* ── Card panels ──────────────────────────────────────────── */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(1, 49, 113, 0.06), 0 4px 20px rgba(1, 49, 113, 0.05);
  padding: 24px 28px;
  margin-bottom: 20px;
}

/* ── Section headings — fix oversized theme h3 ───────────── */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3 {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #013171 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1.5px solid #eaeef5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 7px !important;
  line-height: 1.3 !important;
}

/* ── Field grid inside cards ──────────────────────────────── */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.form-row.form-row-wide,
.form-row.notes {
  grid-column: 1 / -1;
}

/* Force address-2 and all wide rows to span full grid width */
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #shipping_address_2_field {
  display: none !important;
}

/* address line 2 sub-row — sits inside address-1 wrapper, not the grid */
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #shipping_address_2_field {
  margin-top: 8px;
  margin-bottom: 0;
}

/* Force address-2 input to always use neutral border regardless of validation */
.woocommerce-checkout #billing_address_2,
.woocommerce-checkout #shipping_address_2 {
  border-color: #dce2ef !important;
}

.woocommerce-checkout #billing_address_2:focus,
.woocommerce-checkout #shipping_address_2:focus {
  border-color: #013171 !important;
  box-shadow: 0 0 0 3px rgba(1, 49, 113, 0.09) !important;
}

/* first name / last name grid row — ensure equal width */
.woocommerce-checkout .form-row.form-row-first,
.woocommerce-checkout .form-row.form-row-last {
  min-width: 0;
}

/* ── Labels ───────────────────────────────────────────────── */
.woocommerce-checkout .form-row label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7a99;
  margin-bottom: 5px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.woocommerce-checkout .form-row .required {
  color: #e74c3c;
}

/* ── form-row reset (prevent WC from adding sub-borders) ─── */
.woocommerce-checkout .form-row {
  position: relative;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 14px;
}

.woocommerce-checkout .woocommerce-input-wrapper {
  display: block;
  width: 100%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
}

/* address line 2 inner span/p — remove any visual container */
.woocommerce-checkout .woocommerce-input-wrapper span,
.woocommerce-checkout .woocommerce-input-wrapper p {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── Inputs ───────────────────────────────────────────────── */
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1.5px solid #dce2ef;
  border-radius: 8px;
  background: #fbfcff;
  color: #1a1a2e;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  box-sizing: border-box;
  outline: none;
  --webkit-appearance: none;
}

.woocommerce-checkout .form-row textarea {
  height: auto;
  padding: 11px 13px;
  resize: vertical;
  min-height: 86px;
  line-height: 1.5;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
  border-color: #013171 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(1, 49, 113, 0.09) !important;
}

.woocommerce-checkout .form-row input::placeholder {
  color: #c0c9d8;
}

/* ── Validation states ────────────────────────────────────── */
/* Only show error state; suppress WC's green validated border */
.woocommerce-checkout .form-row.woocommerce-invalid input,
.woocommerce-checkout .form-row.woocommerce-invalid .select2-selection {
  border-color: #e74c3c !important;
  background: #fff8f8 !important;
}

.woocommerce-checkout .form-row.woocommerce-validated input,
.woocommerce-checkout .form-row.woocommerce-validated .select2-selection {
  border-color: #dce2ef !important;
  background: #fbfcff !important;
}

.woocommerce-checkout .form-row.woocommerce-invalid .form-row__message {
  color: #e74c3c;
  font-size: 0.78rem;
  margin-top: 4px;
}

/* ── Select2 country / state ──────────────────────────────── */
.woocommerce-checkout .select2-container .select2-selection--single {
  height: 44px;
  border: 1.5px solid #dce2ef;
  border-radius: 8px;
  background: #fbfcff;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.woocommerce-checkout .select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--focus .select2-selection--single {
  border-color: #013171 !important;
  box-shadow: 0 0 0 3px rgba(1, 49, 113, 0.09);
  background: #fff;
  outline: none;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 44px;
  padding-left: 13px;
  color: #1a1a2e;
  font-size: 0.9rem;
  font-family: inherit;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 10px;
}

.woocommerce-checkout .select2-dropdown {
  border: 1.5px solid #013171;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(1, 49, 113, 0.13);
  overflow: hidden;
  font-size: 0.9rem;
}

.woocommerce-checkout .select2-results__option {
  padding: 9px 13px;
  font-size: 0.88rem;
}

.woocommerce-checkout .select2-results__option--highlighted {
  background: #013171 !important;
  color: #fff !important;
}

/* ── Ship-to toggle ───────────────────────────────────────── */
#ship-to-different-address {
  margin-bottom: 4px;
}

#ship-to-different-address label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #013171;
}

#ship-to-different-address input[type="checkbox"] {
  accent-color: #013171;
  width: 15px;
  height: 15px;
}

/* ── ORDER REVIEW SIDEBAR ─────────────────────────────────── */
#order_review {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(1, 49, 113, 0.06), 0 4px 20px rgba(1, 49, 113, 0.05);
  padding: 24px 24px 20px;
  position: sticky;
  top: 20px;
}

#order_review::before {
  content: 'Order Summary';
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #013171;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid #eaeef5;
}

/* Order table */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.woocommerce-checkout-review-order-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  color: #9aabc2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0 9px;
  border-bottom: 1px solid #eaeef5;
}

.woocommerce-checkout-review-order-table .cart_item td {
  padding: 12px 0;
  border-bottom: 1px solid #f2f4f9;
  vertical-align: top;
}

.woocommerce-checkout-review-order-table .cart_item .product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a2e;
  padding-right: 10px;
  line-height: 1.4;
}

.woocommerce-checkout-review-order-table .cart_item .product-name .product-quantity {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #9aabc2;
  margin-top: 2px;
}

.woocommerce-checkout-review-order-table .cart_item .product-total {
  font-weight: 700;
  font-size: 0.875rem;
  color: #013171;
  text-align: right;
  white-space: nowrap;
}

.woocommerce-checkout-review-order-table tfoot tr td,
.woocommerce-checkout-review-order-table tfoot tr th {
  padding: 9px 0;
  border-bottom: 1px solid #f2f4f9;
  font-size: 0.84rem;
  color: #6b7a99;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total td,
.woocommerce-checkout-review-order-table tfoot tr.order-total th {
  font-size: 0.975rem;
  font-weight: 800;
  color: #013171;
  border-bottom: none;
  border-top: 1.5px solid #eaeef5;
  padding-top: 14px;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total td {
  text-align: right;
}

/* ── PAYMENT SECTION ──────────────────────────────────────── */
#payment {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: -4px;
}

#payment ul.payment_methods {
  list-style: none;
  margin: 0 0 0;
  padding: 0;
}

#payment ul.payment_methods li {
  margin: 0 0 8px;
  padding: 0;
}

/* Radio label tile */
#payment ul.payment_methods li label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 13px 16px;
  border: 1.5px solid #dce2ef;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a2e;
  background: #fbfcff;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  user-select: none;
}

#payment ul.payment_methods li label:hover {
  border-color: #013171;
  background: #eef3fc;
}

#payment ul.payment_methods li input[type="radio"] {
  accent-color: #013171;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* selected state */
#payment ul.payment_methods li:has(input[type="radio"]:checked) label {
  border-color: #013171;
  background: #eef3fc;
  box-shadow: 0 0 0 3px rgba(1, 49, 113, 0.08);
}

/* payment description box */
#payment .payment_box {
  background: transparent;
  padding: 4px 0 12px;
  margin: 0;
  font-size: 0.84rem;
  color: #6b7a99;
  line-height: 1.5;
}

/* ── Stripe card element ──────────────────────────────────── */
#stripe-card-element {
  padding: 12px 13px;
  border: 1.5px solid #dce2ef;
  border-radius: 8px;
  background: #fff;
  margin: 8px 0 4px;
  min-height: 46px;
  display: flex;
  align-items: center;
  transition: border-color 0.18s, box-shadow 0.18s;
}

/* Stripe iframe takes full width inside container */
#stripe-card-element > * {
  width: 100% !important;
  flex: 1;
}

#stripe-card-element.StripeElement--focus {
  border-color: #013171;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(1, 49, 113, 0.09);
}

#stripe-card-element.StripeElement--invalid {
  border-color: #e74c3c;
  background: #fff8f8;
}

#stripe-card-errors {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 5px;
  min-height: 16px;
  line-height: 1.4;
}

/* test mode badge */
#payment .payment_box p[style*="#fff3cd"],
#payment .payment_box p[style*="background:#fff3cd"] {
  border-radius: 6px;
  font-size: 0.78rem;
  margin-bottom: 0;
}

/* ── Place Order button ───────────────────────────────────── */
#payment .place-order {
  margin-top: 16px;
  padding: 0;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0;
}

#place_order {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #013171 !important;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: background 0.18s, transform 0.14s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(1, 49, 113, 0.28) !important;
  line-height: 1.3;
}

#place_order:hover {
  background: #01235a !important;
  box-shadow: 0 6px 18px rgba(1, 49, 113, 0.38) !important;
  transform: translateY(-1px);
}

#place_order:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(1, 49, 113, 0.22) !important;
}

#place_order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Privacy / terms note ─────────────────────────────────── */
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-privacy-policy-text {
  display: block !important;
  width: 100% !important;
  font-size: 0.72rem;
  color: #9aabc2;
  margin: 0 0 10px !important;
  padding: 0 !important;
  text-align: center;
  line-height: 1.5;
  order: 2;
}

#place_order {
  order: 1;
}

.woocommerce-terms-and-conditions-wrapper a,
.woocommerce-privacy-policy-text a {
  color: #013171;
  text-decoration: underline;
}

/* ── Coupon form ──────────────────────────────────────────── */
.woocommerce-checkout .woocommerce-form-coupon {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(1, 49, 113, 0.06);
  padding: 18px 22px;
  margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-form-coupon .button {
  background: #013171;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}

.woocommerce-checkout .woocommerce-form-coupon .button:hover {
  background: #01235a;
}

/* ── Thank-you / order received ───────────────────────────── */
.woocommerce-order-details,
.woocommerce-customer-details {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(1, 49, 113, 0.06);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.woocommerce-order-details h2,
.woocommerce-customer-details h2 {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #013171 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px !important;
  padding-bottom: 11px;
  border-bottom: 1.5px solid #eaeef5;
}

.woocommerce-thankyou-order-received {
  font-size: 1rem;
  font-weight: 700;
  color: #27ae60;
  margin-bottom: 22px;
  background: #eafaf1;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

/* ── Responsive — tablet ──────────────────────────────────── */
@media (max-width: 900px) {
  form.checkout.woocommerce-checkout {
    grid-template-columns: 1fr;
  }

  form.checkout.woocommerce-checkout #order_review {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Responsive — mobile ──────────────────────────────────── */
@media (max-width: 600px) {
  body.woocommerce-checkout .site-main,
  body.woocommerce-checkout main#primary {
    padding: 16px 0 52px !important;
  }

  .woocommerce-checkout .woocommerce {
    padding: 0 12px;
  }

  .woocommerce-billing-fields,
  .woocommerce-shipping-fields,
  .woocommerce-additional-fields {
    padding: 18px 16px;
    border-radius: 10px;
  }

  #order_review {
    padding: 18px 16px;
    border-radius: 10px;
  }

  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row.form-row-first,
  .form-row.form-row-last {
    grid-column: 1;
  }

  #place_order {
    font-size: 0.9rem;
    padding: 13px 16px;
  }
}

/* ── Checkout order-review: × remove item button ───────────── */
.co-remove-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0;
  background: #f0f2f7;
  color: #9aabc2;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.co-remove-item:hover {
  background: #ffe5e5;
  color: #c0392b;
  transform: scale(1.15);
}

.co-remove-item.co-removing {
  opacity: 0.45;
  pointer-events: none;
  animation: co-spin 0.6s linear infinite;
}

@keyframes co-spin {
  to { transform: rotate(360deg); }
}

/* make the product-name cell a flex row so name + × sit inline */
.woocommerce-checkout-review-order-table .cart_item .product-name {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: wrap;
}

.woocommerce-checkout-review-order-table .cart_item .product-name .product-quantity {
  flex-basis: 100%;
}

/* Checkout polish: flatter buttons and aligned billing rows */
.woocommerce-checkout #place_order,
.woocommerce-checkout .woocommerce-form-coupon .button,
.woocommerce-checkout .button,
.woocommerce-checkout button,
.woocommerce-checkout .co-remove-item {
  box-shadow: none !important;
}

.woocommerce-checkout #place_order:hover,
.woocommerce-checkout #place_order:active,
.woocommerce-checkout .woocommerce-form-coupon .button:hover,
.woocommerce-checkout .button:hover,
.woocommerce-checkout button:hover {
  box-shadow: none !important;
  transform: none !important;
}

.woocommerce-checkout .woocommerce-form-coupon {
  box-shadow: none !important;
  border: 1px solid #e2e8f0;
}

.woocommerce-checkout .woocommerce-form-coupon .button,
.woocommerce-checkout #place_order {
  border-radius: 8px;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.woocommerce-checkout .form-row,
.woocommerce-checkout .form-row.form-row-first,
.woocommerce-checkout .form-row.form-row-last,
.woocommerce-checkout .form-row.form-row-wide {
  display: grid !important;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  grid-column: 1 / -1 !important;
  margin: 0 !important;
}

.woocommerce-checkout .form-row label {
  margin: 0 !important;
  line-height: 1.25;
}

.woocommerce-checkout .form-row .woocommerce-input-wrapper {
  min-width: 0;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container {
  max-width: 100% !important;
}

.woocommerce-checkout #billing_email_field,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_phone_field,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_state_field {
  grid-template-columns: 160px minmax(0, 1fr);
}

@media (max-width: 700px) {
  .woocommerce-checkout .form-row,
  .woocommerce-checkout .form-row.form-row-first,
  .woocommerce-checkout .form-row.form-row-last,
  .woocommerce-checkout .form-row.form-row-wide {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}
