/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #333;
  background: #f5f7fa;
  line-height: 1.6;
}
a { color: #06B6D4; text-decoration: none; }
a:hover { color: #0891b2; text-decoration: underline; }
img { max-width: 100%; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar {
  background: #1E3A5F;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}
.navbar-brand:hover { color: #06B6D4; text-decoration: none; }
.navbar-brand .globe-icon { font-size: 1.5rem; }
.navbar-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.navbar-nav a {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: #06B6D4;
  border-bottom-color: #06B6D4;
}
.navbar-search {
  display: flex;
  align-items: center;
}
.navbar-search input {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  width: 200px;
  outline: none;
}
.navbar-search input:focus { box-shadow: 0 0 0 2px #06B6D4; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1E3A5F 0%, #0d2544 100%);
  color: #fff;
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero h1 span { color: #06B6D4; }
.hero p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-search {
  display: flex;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-search input,
.hero-search select {
  padding: 14px 16px;
  border: none;
  font-size: 1rem;
  outline: none;
  flex: 1;
}
.hero-search select { min-width: 150px; }
.hero-search input { min-width: 200px; }
.hero-search .btn {
  padding: 14px 28px;
  background: #06B6D4;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.hero-search .btn:hover { background: #0891b2; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: #fff;
  padding: 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #1E3A5F;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: #64748b;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 4rem 0;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: #64748b;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ===== VISA TYPE CARDS ===== */
.visa-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.visa-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}
.visa-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.visa-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.visa-card h3 {
  font-size: 1.3rem;
  color: #1E3A5F;
  margin-bottom: 0.5rem;
}
.visa-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.visa-card .visa-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: #06B6D4;
}
.visa-card-h1b { border-top: 4px solid #2563eb; }
.visa-card-gc { border-top: 4px solid #16a34a; }
.visa-card-opt { border-top: 4px solid #ea580c; }

/* ===== TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.data-table thead { background: #1E3A5F; color: #fff; }
.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}
.data-table tbody tr:hover { background: #f0f9ff; }
.data-table .rank {
  font-weight: 700;
  color: #06B6D4;
  width: 50px;
}
.data-table .company-name { font-weight: 600; color: #1E3A5F; }
.data-table .rate-good { color: #16a34a; font-weight: 600; }
.data-table .rate-ok { color: #ca8a04; font-weight: 600; }

/* ===== JOB CARDS ===== */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}
.job-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}
.job-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.job-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1E3A5F;
}
.job-card-title a { color: #1E3A5F; text-decoration: none; }
.job-card-title a:hover { color: #06B6D4; }
.job-card-company {
  font-size: 0.95rem;
  color: #06B6D4;
  margin-bottom: 0.5rem;
}
.job-card-location {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}
.job-card-salary {
  font-size: 1rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 0.75rem;
}
.job-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.job-card-date {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ===== VISA TYPE TAGS ===== */
.visa-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.visa-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.visa-tag-h1b { background: #dbeafe; color: #1d4ed8; }
.visa-tag-gc { background: #dcfce7; color: #15803d; }
.visa-tag-opt { background: #ffedd5; color: #c2410c; }
.visa-tag-cpt { background: #fef3c7; color: #a16207; }
.visa-tag-remote {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ===== GUIDE CARDS ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.guide-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}
.guide-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.guide-card-category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #06B6D4;
  margin-bottom: 0.5rem;
}
.guide-card h3 {
  font-size: 1.1rem;
  color: #1E3A5F;
  margin-bottom: 0.5rem;
}
.guide-card h3 a { color: #1E3A5F; text-decoration: none; }
.guide-card h3 a:hover { color: #06B6D4; }
.guide-card p {
  font-size: 0.9rem;
  color: #64748b;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}
.blog-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.blog-card-category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #06B6D4;
  margin-bottom: 0.5rem;
}
.blog-card h3 {
  font-size: 1.1rem;
  color: #1E3A5F;
  margin-bottom: 0.5rem;
}
.blog-card h3 a { color: #1E3A5F; text-decoration: none; }
.blog-card h3 a:hover { color: #06B6D4; }
.blog-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}
.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #06B6D4 0%, #0e7490 100%);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 16px;
  margin: 2rem 0;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: #1E3A5F;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary:hover { background: #f0f9ff; text-decoration: none; transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: #06B6D4;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid #06B6D4;
}
.btn-secondary:hover { background: transparent; color: #06B6D4; text-decoration: none; }

/* ===== FILTERS SIDEBAR ===== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.sidebar { position: sticky; top: 80px; }
.filter-group {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}
.filter-group h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.filter-group label {
  display: block;
  font-size: 0.9rem;
  color: #475569;
  padding: 4px 0;
  cursor: pointer;
}
.filter-group label:hover { color: #06B6D4; }
.filter-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 0.5rem;
}
.filter-group select:focus { border-color: #06B6D4; }

/* ===== JOB DETAIL ===== */
.job-detail { padding: 2rem 0; }
.job-detail-header {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}
.job-detail-header h1 {
  font-size: 2rem;
  color: #1E3A5F;
  margin-bottom: 0.5rem;
}
.job-detail-company {
  font-size: 1.2rem;
  color: #06B6D4;
  margin-bottom: 1rem;
}
.job-detail-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.job-detail-meta span::before {
  content: '';
  display: inline-block;
  margin-right: 6px;
}
.job-detail-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.job-detail-body {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}
.job-detail-body h2 {
  font-size: 1.4rem;
  color: #1E3A5F;
  margin-bottom: 1rem;
}
.job-detail-body p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.job-detail-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* ===== SPONSOR DETAIL ===== */
.sponsor-detail-header {
  background: linear-gradient(135deg, #1E3A5F 0%, #0d2544 100%);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 0 0 16px 16px;
  margin-bottom: 2rem;
}
.sponsor-detail-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.sponsor-detail-header .industry-tag {
  display: inline-block;
  background: rgba(6, 182, 212, 0.2);
  color: #06B6D4;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
}
.sponsor-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.sponsor-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e2e8f0;
}
.sponsor-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #1E3A5F;
}
.sponsor-stat-card .stat-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ===== GUIDE/BLOG DETAIL ===== */
.article-detail { padding: 2rem 0; }
.article-detail-header {
  margin-bottom: 2rem;
}
.article-detail-header h1 {
  font-size: 2rem;
  color: #1E3A5F;
  margin-bottom: 0.5rem;
}
.article-detail-content {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}
.article-detail-content h2 {
  font-size: 1.4rem;
  color: #1E3A5F;
  margin: 2rem 0 1rem;
}
.article-detail-content h3 {
  font-size: 1.15rem;
  color: #1E3A5F;
  margin: 1.5rem 0 0.75rem;
}
.article-detail-content p {
  margin-bottom: 1rem;
  color: #475569;
}
.article-detail-content ul, .article-detail-content ol {
  margin: 1rem 0 1rem 2rem;
  list-style: disc;
}
.article-detail-content ol { list-style: decimal; }
.article-detail-content li {
  margin-bottom: 0.5rem;
  color: #475569;
}
.article-detail-content strong { color: #1E3A5F; }
.article-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.article-detail-content th, .article-detail-content td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
  font-size: 0.95rem;
}
.article-detail-content th {
  background: #1E3A5F;
  color: #fff;
  font-weight: 600;
}
.article-detail-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #94a3b8;
}
.breadcrumb a { color: #64748b; }
.breadcrumb a:hover { color: #06B6D4; }
.breadcrumb span { margin: 0 8px; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
}
.pagination a {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1E3A5F;
}
.pagination a:hover { background: #f0f9ff; border-color: #06B6D4; }
.pagination .active {
  background: #1E3A5F;
  color: #fff;
  border: 1px solid #1E3A5F;
}
.pagination .disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

/* ===== RESULTS COUNT ===== */
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.results-count {
  font-size: 0.95rem;
  color: #64748b;
}
.results-count strong { color: #1E3A5F; }
.sort-select {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 3px 0;
  text-decoration: none;
}
.footer-col a:hover { color: #06B6D4; }
.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-brand .globe-icon { color: #06B6D4; }
.footer-tagline {
  font-size: 0.9rem;
  color: #64748b;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
  color: #64748b;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 404 ===== */
.error-page {
  text-align: center;
  padding: 6rem 2rem;
}
.error-page h1 {
  font-size: 4rem;
  color: #1E3A5F;
  margin-bottom: 1rem;
}
.error-page p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, #1E3A5F 0%, #0d2544 100%);
  color: #fff;
  padding: 3rem 2rem;
}
.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: #94a3b8;
  font-size: 1.05rem;
}

/* ===== SALARY SECTION ===== */
.salary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.salary-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.salary-card .salary-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #06B6D4;
}
.salary-card .salary-label {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem;
    gap: 0.5rem;
  }
  .navbar-nav { gap: 1rem; flex-wrap: wrap; }
  .navbar-search { width: 100%; }
  .navbar-search input { width: 100%; }
  .hero h1 { font-size: 1.8rem; }
  .hero-search { flex-direction: column; }
  .hero-search input,
  .hero-search select { min-width: 100%; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats-bar { gap: 1.5rem; }
  .job-detail-sidebar { grid-template-columns: 1fr; }
  .job-grid { grid-template-columns: 1fr; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
