/* ===== SMART EARNING GUIDE — MAIN STYLESHEET ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body { font-family: 'Poppins', sans-serif; background: #f0fdf9; color: #111827; overflow-x: hidden; width: 100%; max-width: 100vw; position: relative; }
a { text-decoration: none; }
button { font-family: 'Poppins', sans-serif; cursor: pointer; }
img { max-width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  background: #fff;
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d1fae5;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(13,148,136,0.06);
  width: 100%;
  max-width: 100%;
}
.brand { font-size: 22px; font-weight: 700; color: #134e4a; }
.brand span { color: #0d9488; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; color: #374151; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: #0d9488; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger div { width: 22px; height: 2px; background: #0d9488; border-radius: 2px; transition: all 0.3s; }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  position: fixed;
  top: 65px; left: 0; right: 0;
  padding: 20px 5%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border-bottom: 2px solid #d1fae5;
  z-index: 999;
  gap: 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; color: #374151; font-weight: 500; padding: 4px 0; border-bottom: 1px solid #f0fdf9; }
.mobile-menu a:last-child { border-bottom: none; }

/* ===== HERO ===== */
.hero {
  background: #fff;
  padding: 48px 5% 36px;
  text-align: center;
  border-bottom: 1px solid #d1fae5;
  width: 100%;
  overflow: hidden;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ccfbf1;
  border-radius: 99px;
  padding: 6px 16px;
  margin-bottom: 14px;
}
.hero-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #0d9488; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.8);} }
.hero-pill-text { font-size: 13px; font-weight: 600; color: #0f766e; }
.hero h1 { font-size: clamp(28px, 5vw, 58px); font-weight: 700; color: #134e4a; line-height: 1.15; margin-bottom: 16px; }
.hero h1 span { color: #0d9488; }
.hero p { font-size: clamp(14px, 2vw, 17px); color: #6b7280; margin: 0 auto 24px; line-height: 1.6; max-width: 520px; }

/* Search */
.search-wrap {
  display: flex;
  gap: 10px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto 24px;
  background: #f0fdf9;
  border: 2px solid #99f6e4;
  border-radius: 18px;
  padding: 12px 16px;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap:focus-within { border-color: #0d9488; box-shadow: 0 0 0 4px rgba(13,148,136,0.1); }
.search-input {
  flex: 1; border: none; background: transparent;
  font-family: 'Poppins', sans-serif; font-size: 15px; color: #134e4a; outline: none;
  min-width: 0; width: 100%;
}
.search-input::placeholder { color: #9ca3af; }
.search-btn { display: none; }

/* Filter chips */
.chips {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; max-width: 100%; margin: 0 auto;
  padding: 0 2px;
}
.chip {
  background: #fff; border: 1.5px solid #99f6e4; border-radius: 99px;
  padding: 8px 14px; font-size: 13px; font-weight: 500; color: #0f766e;
  white-space: nowrap; transition: all 0.15s; flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
}
.chip.on { background: #0d9488; color: #fff; border-color: #0d9488; }
.chip:hover:not(.on) { background: #ccfbf1; }

/* ===== TRUST BAR ===== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px 5%;
  background: #fff;
  border-bottom: 1px solid #d1fae5;
}
.trust-item { background: #f0fdf9; border-radius: 14px; padding: 16px; text-align: center; }
.trust-num { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: #0d9488; }
.trust-label { font-size: 13px; color: #6b7280; margin-top: 4px; }

/* ===== FEED ===== */
.feed { padding: 24px 5%; }
.feed-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.feed-title { font-size: 20px; font-weight: 600; color: #134e4a; }
.feed-count { font-size: 13px; color: #6b7280; background: #f0fdf9; padding: 6px 14px; border-radius: 99px; border: 1px solid #d1fae5; }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ===== JOB CARD ===== */
.jcard {
  background: #fff; border-radius: 22px; padding: 24px;
  border: 1.5px solid #d1fae5; cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  display: flex; flex-direction: column; gap: 14px;
}
.jcard:hover { border-color: #0d9488; box-shadow: 0 8px 28px rgba(13,148,136,0.12); transform: translateY(-3px); }
.jcard { will-change: transform; }
.jcard-head { display: flex; align-items: flex-start; gap: 14px; }
.jcard-logo {
  width: 52px; height: 52px; border-radius: 15px;
  background: #ccfbf1; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #0f766e;
  flex-shrink: 0; border: 1px solid #99f6e4;
}
.jcard-info { flex: 1; min-width: 0; }
.jcard-title { font-size: 16px; font-weight: 600; color: #111827; margin-bottom: 4px; line-height: 1.3; }
.jcard-company { font-size: 13px; color: #6b7280; }

/* Badges */
.badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; flex-shrink: 0; }
.badge-new { background: #0d9488; color: #fff; }
.badge-hot { background: #f59e0b; color: #fff; }
.badge-govt { background: #6366f1; color: #fff; }
.badge-fresher { background: #10b981; color: #fff; }
.badge-it { background: #0ea5e9; color: #fff; }
.badge-finance { background: #8b5cf6; color: #fff; }
.badge-marketing { background: #f97316; color: #fff; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 12px; padding: 5px 12px; border-radius: 99px; font-weight: 500; }
.tag-loc { background: #f0fdf9; color: #0f766e; }
.tag-type { background: #fef3c7; color: #92400e; }
.tag-exp { background: #ede9fe; color: #5b21b6; }

/* Card footer */
.jcard-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid #f0fdf9; margin-top: auto;
  gap: 8px; flex-wrap: nowrap;
}
.jcard-sal { font-size: 17px; font-weight: 700; color: #0d9488; white-space: nowrap; flex-shrink: 0; }
.jcard-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.jcard-date { font-size: 11px; color: #9ca3af; }
.view-btn {
  background: #f0fdf9; color: #0d9488; border: 1.5px solid #99f6e4;
  border-radius: 10px; padding: 8px 16px; font-size: 12px; font-weight: 600;
  transition: all 0.15s;
}
.view-btn:hover { background: #0d9488; color: #fff; border-color: #0d9488; }

/* Empty / Loading */
.empty-state { font-size: 15px; color: #9ca3af; padding: 48px 0; text-align: center; grid-column: 1/-1; }
.loading-state { text-align: center; padding: 48px 0; color: #0d9488; font-size: 15px; font-weight: 500; grid-column: 1/-1; }

/* ===== DETAIL PAGE ===== */
.detail-page { display: none; background: #f0fdf9; min-height: 100vh; }
.detail-page.open { display: block; }
.detail-navbar {
  background: #fff; padding: 16px 5%;
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid #d1fae5;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(13,148,136,0.06);
}
.back-btn {
  width: 40px; height: 40px; border-radius: 99px;
  background: #f0fdf9; border: 1.5px solid #d1fae5;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #0d9488; transition: background 0.15s; flex-shrink: 0;
}
.back-btn:hover { background: #ccfbf1; }
.detail-nav-title { font-size: 17px; font-weight: 600; color: #134e4a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-body { max-width: 820px; margin: 0 auto; padding: 36px 5% 140px; display: flex; flex-direction: column; gap: 18px; }
.detail-top { background: #fff; border-radius: 22px; padding: 28px; border: 1.5px solid #d1fae5; }
.detail-logo-row { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-logo {
  width: 68px; height: 68px; border-radius: 20px;
  background: #ccfbf1; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #0f766e;
  border: 1px solid #99f6e4; flex-shrink: 0;
}
.detail-title { font-size: clamp(20px, 4vw, 28px); font-weight: 700; color: #111827; margin-bottom: 5px; line-height: 1.25; }
.detail-company { font-size: 15px; color: #6b7280; }
.sal-box {
  background: #ccfbf1; border-radius: 20px; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid #99f6e4; gap: 16px; flex-wrap: wrap;
}
.sal-label { font-size: 13px; color: #0f766e; margin-bottom: 5px; font-weight: 500; }
.sal-val { font-size: clamp(22px, 4vw, 32px); font-weight: 700; color: #0d9488; }
.sal-note { font-size: 12px; color: #0f766e; margin-top: 4px; }

.detail-section { background: #fff; border-radius: 20px; padding: 24px 28px; border: 1.5px solid #d1fae5; }
.detail-section-label { font-size: 12px; font-weight: 700; color: #0d9488; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.detail-section-text { font-size: 15px; color: #374151; line-height: 1.8; }

/* Apply Bar */
.apply-bar {
  background: #fff; border-top: 1px solid #d1fae5;
  padding: 20px 5%; position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; flex-direction: column; gap: 10px; z-index: 50;
  box-shadow: 0 -4px 20px rgba(13,148,136,0.08);
}
.apply-btn {
  display: block; background: #0d9488; color: #fff; border: none;
  border-radius: 16px; padding: 18px; font-size: 16px; font-weight: 700;
  text-align: center; width: 100%; max-width: 820px; margin: 0 auto;
  transition: background 0.15s;
}
.apply-btn:hover { background: #0f766e; color: #fff; }
.apply-verify {
  text-align: center; font-size: 12px; color: #0f766e;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.verify-dot { width: 7px; height: 7px; border-radius: 50%; background: #0d9488; }

/* ===== ADSENSE SLOTS ===== */
.ad-slot { background: #f9fafb; border: 1px dashed #d1fae5; border-radius: 12px; padding: 16px; text-align: center; color: #9ca3af; font-size: 12px; margin: 8px 0; min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* ===== FOOTER ===== */
.footer { background: #134e4a; color: #fff; padding: 48px 5% 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.footer-brand span { color: #0d9488; }
.footer-desc { font-size: 13px; color: #99f6e4; line-height: 1.7; }
.footer-col-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: #ccfbf1; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: #99f6e4; }

/* ===== INNER PAGES ===== */
.page-hero { background: #fff; padding: 48px 5% 40px; border-bottom: 1px solid #d1fae5; }
.page-hero h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 700; color: #134e4a; margin-bottom: 8px; }
.page-hero p { font-size: 15px; color: #6b7280; }
.page-content { max-width: 820px; margin: 0 auto; padding: 40px 5%; }
.page-content h2 { font-size: 20px; font-weight: 600; color: #134e4a; margin: 28px 0 12px; }
.page-content p { font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 16px; }
.page-content ul { padding-left: 20px; margin-bottom: 16px; }
.page-content ul li { font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 28px 4% 24px; }
  .hero h1 { font-size: 28px; line-height: 1.2; }
  .hero p { font-size: 14px; margin-bottom: 18px; }
  .hero-pill { margin-bottom: 12px; }

  /* Search — fixed for mobile */
  .search-wrap { 
    padding: 8px 12px; 
    border-radius: 14px; 
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
  }
  .search-input { font-size: 14px; min-width: 0; flex: 1; }
  .search-btn { padding: 9px 12px; font-size: 12px; flex-shrink: 0; white-space: nowrap; }

  /* Chips */
  .chips { gap: 8px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { padding: 7px 14px; font-size: 12px; flex-shrink: 0; }

  /* Trust bar */
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 16px 4%; }
  .trust-item { padding: 14px 10px; border-radius: 12px; }
  .trust-num { font-size: 20px; }
  .trust-label { font-size: 12px; }

  /* Feed */
  .feed { padding: 16px 4%; }
  .feed-header { margin-bottom: 14px; }
  .feed-title { font-size: 18px; }
  .feed-count { font-size: 12px; padding: 5px 12px; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .jcard { padding: 16px; border-radius: 18px; gap: 12px; }
  .jcard-logo { width: 44px; height: 44px; font-size: 13px; border-radius: 12px; }
  .jcard-title { font-size: 15px; }
  .jcard-company { font-size: 12px; }
  .badge { font-size: 10px; padding: 3px 9px; }
  .tag { font-size: 11px; padding: 4px 10px; }
  .jcard-sal { font-size: 15px; }
  .jcard-date { font-size: 10px; }
  .view-btn { padding: 7px 14px; font-size: 11px; }
  .jcard-footer { padding-top: 12px; }

  /* Ad slot */
  .ad-slot { min-height: 70px; font-size: 11px; }

  /* Detail page */
  .detail-navbar { padding: 12px 4%; }
  .detail-nav-title { font-size: 14px; }
  .detail-body { padding: 16px 4% 140px; gap: 12px; }
  .detail-top { padding: 18px; border-radius: 18px; }
  .detail-logo { width: 52px; height: 52px; font-size: 16px; border-radius: 14px; }
  .detail-title { font-size: 20px; }
  .detail-company { font-size: 13px; }
  .sal-box { flex-direction: column; align-items: flex-start; padding: 18px; border-radius: 16px; gap: 12px; }
  .sal-val { font-size: 24px; }
  .detail-section { padding: 16px 18px; border-radius: 16px; }
  .detail-section-text { font-size: 14px; }
  .apply-bar { padding: 14px 4% 24px; }
  .apply-btn { padding: 15px; font-size: 15px; border-radius: 14px; }

  /* Footer — smaller on mobile, same layout */
  .footer { padding: 24px 4% 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .footer-brand { font-size: 16px; margin-bottom: 6px; }
  .footer-desc { font-size: 12px; }
  .footer-col-title { font-size: 13px; margin-bottom: 8px; }
  .footer-links a { font-size: 12px; }
  .footer-copy { font-size: 11px; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1101px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== OVERFLOW FIX ===== */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
@media (max-width: 768px) {
  #list-view, #detail-view, .hero, .navbar, 
  .trust-bar, .feed, .footer, .mobile-menu {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .chips {
    max-width: 100% !important;
    overflow-x: auto !important;
    flex-wrap: wrap !important;
  }
}

/* ===== SOURCE TAGS ===== */
.source-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.source-direct { background: #ECFDF5; color: #065f46; border: 1px solid #6ee7b7; }
.source-indirect { background: #EFF6FF; color: #1e40af; border: 1px solid #bfdbfe; }
/* ===== CARD OVERFLOW FIX ===== */
.jcard { box-sizing: border-box; width: 100%; overflow: hidden; }
.jcard-footer { flex-wrap: wrap; }
.jcard-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jcard-company { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 768px) {
  .jcard-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .jcard-right { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; }
  .jcard-sal { font-size: 15px; }
  .jcard-title { max-width: calc(100vw - 140px); }
}
