/* CJH Main Stylesheet v1.0 */

:root {
  --color-primary: #1a2744;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-verified: #16a34a;
  --color-bg: #f1f5f9;
  --color-card: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --container-width: 1200px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* 1. Reset / Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* 2. Typography */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

/* 3. Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 4. Header & Nav */
.site-header {
  background-color: #fff;
  color: var(--color-primary);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #f1f5f9;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  height: 72px;
}

@media (max-width: 768px) {
  .site-logo {
    height: 65px;
  }
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.site-nav ul,
.main-nav ul {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a,
.main-nav a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0.85;
}

.site-nav a:hover,
.site-nav a.active,
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
}

.nav-btn,
.btn-hr-portal {
  background: linear-gradient(135deg, var(--color-accent), #d97706);
  color: #fff !important;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1 !important;
}

.nav-btn:hover,
.btn-hr-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.4);
}

@media (max-width: 992px) {
  .nav__toggle {
    display: block;
  }

  .site-nav,
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 1.5rem;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .site-nav.active,
  .main-nav.active {
    display: block;
  }

  .site-nav ul,
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 5. Hero Section */
.hero {
  background-color: var(--color-primary);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 0 1.5rem;
  }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
    padding: 0 1rem;
  }
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 600px) {
  .hero-btns {
    flex-direction: column;
  }
}

/* 6. Section Headings */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  border-left: 5px solid var(--color-accent);
  padding-left: 1rem;
  margin-bottom: 0;
}

.view-all {
  color: var(--color-accent);
  font-weight: 600;
}

/* 7. Jobs Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

/* 8. Job Card */
.job-card {
  background: var(--color-card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  height: 100%;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.job-card__badge {
  display: inline-block;
  background-color: #f0fdf4;
  color: var(--color-verified);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.job-card__position {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.job-card__company {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.job-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.job-card__footer {
  margin-top: auto;
}

/* 9. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), #f59e0b);
  color: #fff;
  box-shadow: 0 6px 20px -5px rgba(245, 158, 11, 0.4);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.5);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--secondary:hover {
  background-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn--white {
  background-color: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn--white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
}

.btn--outline-white {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn--outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 6px 20px -5px rgba(37, 211, 102, 0.4);
}

.btn--whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(18, 140, 126, 0.5);
}

.btn--danger {
  background-color: #ef4444;
  color: #fff;
}

.btn--danger:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.15rem;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn--full {
  width: 100%;
}

/* 10. WhatsApp CTA */
.whatsapp-cta {
  background-color: var(--color-primary);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 20px;
  margin: 2rem 0;
}

.whatsapp-cta h2 {
  margin-bottom: 1rem;
}

.whatsapp-cta p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.whatsapp-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 600px) {
  .whatsapp-btns {
    flex-direction: column;
  }
}

/* 11. Knowledge Hub */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .knowledge-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card__content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.article-card__link {
  color: var(--color-accent);
  font-weight: 700;
  margin-top: auto;
}

.knowledge-cta-btn {
  padding: 1rem 3rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.knowledge-article-wrap {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.knowledge-article-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

.knowledge-article-breadcrumb {
  font-size: 0.85rem;
  opacity: 0.7;
}

.knowledge-article-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.knowledge-article-meta {
  margin-bottom: 1.5rem;
}

.knowledge-article-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.knowledge-article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  word-break: break-word;
  overflow-wrap: break-word;
}

.knowledge-article-body > *:first-child {
  margin-top: 0;
}

.knowledge-article-body p,
.knowledge-article-body li {
  line-height: 1.85;
}

.knowledge-article-body p,
.knowledge-article-body ul,
.knowledge-article-body ol,
.knowledge-article-body blockquote,
.knowledge-article-body h2,
.knowledge-article-body h3,
.knowledge-article-body h4 {
  margin-bottom: 1.2rem;
}

.knowledge-article-body ul,
.knowledge-article-body ol {
  padding-left: 1.35rem;
}

/* Prevent wide content from breaking mobile layout */
.knowledge-article-body img,
.knowledge-article-body video,
.knowledge-article-body iframe {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.knowledge-article-body table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.knowledge-article-body table th,
.knowledge-article-body table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.knowledge-article-body pre {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.9em;
  border: 1px solid var(--color-border);
}

.knowledge-article-body code {
  background: #f8fafc;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.9em;
  border: 1px solid var(--color-border);
}

.knowledge-article-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.knowledge-article-body blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 0 0 1.2rem 0;
  padding: 0.75rem 1.25rem;
  background: #fffcf5;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.knowledge-article-divider {
  margin: 3rem 0;
  border-color: var(--color-border);
}

.knowledge-article-share h4 {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .knowledge-cta-btn {
    width: 100%;
    max-width: 100%;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    white-space: normal;
  }

  .knowledge-article-wrap {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .knowledge-article-card {
    padding: 1.25rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  }

  .knowledge-article-breadcrumb {
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .knowledge-article-title {
    font-size: 1.7rem;
    margin-bottom: 0.9rem;
  }

  .knowledge-article-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .knowledge-article-image {
    margin-bottom: 1.1rem;
  }

  .knowledge-article-body {
    font-size: 1rem;
    line-height: 1.75;
  }

  .knowledge-article-body p,
  .knowledge-article-body ul,
  .knowledge-article-body ol,
  .knowledge-article-body blockquote,
  .knowledge-article-body h2,
  .knowledge-article-body h3,
  .knowledge-article-body h4 {
    margin-bottom: 1rem;
  }

  .knowledge-article-body h2,
  .knowledge-article-body h3 {
    line-height: 1.3;
  }

  .knowledge-article-divider {
    margin: 1.75rem 0;
  }
}

/* 12. HR Teaser */
.hr-teaser {
  background-color: var(--color-accent);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  margin: 4rem 0;
}

/* 14. Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* 15. Footer */
.site-footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 90px;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer-social-btn {
  display: inline-block;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0;
  width: 48px;
  height: 48px;
  margin: 0 0.25rem 0.5rem 0;
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: center;
  vertical-align: middle;
}
.footer-social-btn .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: none;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0;
}
.footer-social-btn:hover {
  box-shadow: 0 4px 16px rgba(245,158,11,0.18);
  transform: translateY(-2px) scale(1.08);
}
.footer-social-btn .fa-facebook-f { color: #1877f3; }
.footer-social-btn .fa-instagram { color: #e1306c; }
.footer-social-btn .fa-youtube { color: #ff0000; }
.footer-social-btn .fa-linkedin-in { color: #0a66c2; }

.footer-col div.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.footer-col div.footer-links span {
  opacity: 0.5;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* 16. Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
}

.badge--verified {
  background: #dcfce7;
  color: #166534;
}

.badge--pending {
  background: #fef3c7;
  color: #92400e;
}

.badge--rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* 17. Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-link {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-weight: 600;
}

.page-link:hover,
.page-link.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* 18. Alerts */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.alert--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* 21. Filter Bar */
.filter-bar {
  background: var(--color-card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.filter-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.filter-group--keyword {
  flex-grow: 2;
}

.filter-group--location,
.filter-group--experience {
  flex-grow: 1;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clear-filters {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: underline;
}

.results-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-actions {
    flex-direction: column;
    margin-top: 1rem;
  }
}

/* 22. Home Search Bar (Inside Hero) */
.home-search-form {
  display: flex;
  gap: 0;
  max-width: 900px;
  margin: 2.5rem auto 0;
  background: #fff;
  padding: 8px;
  border-radius: 100px;
  /* Pill shape for desktop */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.home-search-input {
  flex: 1;
  padding: 0 30px 0 50px;
  /* Space for icon */
  border: none;
  border-right: 1px solid #eee;
  font-size: 1.05rem;
  outline: none;
  height: 60px;
  background: transparent;
  color: var(--color-text);
  background-repeat: no-repeat;
  background-position: 20px center;
  background-size: 18px;
}

.home-search-input[name="keyword"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' /%3E%3C/svg%3E");
}

.home-search-input[name="location"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z' /%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z' /%3E%3C/svg%3E");
}

.home-search-input::placeholder {
  color: #94a3b8;
}

.home-search-input:last-of-type {
  border-right: none;
}

.home-search-btn {
  background: linear-gradient(135deg, var(--color-accent), #d97706);
  color: #fff;
  padding: 0 45px;
  border: none;
  border-radius: 100px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 60px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-search-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

@media (max-width: 768px) {
  .home-search-form {
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 20px;
    gap: 15px;
    box-shadow: none;
    margin-top: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .home-search-input {
    background-color: #fff;
    border-radius: 12px !important;
    border: none;
    width: 100% !important;
    height: 56px !important;
    /* Taller for mobile */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0 20px 0 50px !important;
    /* Fixed padding for icon space */
    font-size: 1.1rem;
    color: #1a2744;
  }

  .home-search-btn {
    width: 100%;
    border-radius: 12px !important;
    height: 56px !important;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
  }
}

/* 20. Utilities */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

/* Main styles for the new 3-column homepage layout */
.home-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.home-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

.home-column {
  background: #ffffff;
  border-top: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.home-column__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job-card-mini {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.job-card-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.job-card-mini h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.job-card-mini .meta {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-card-mini .btn-view {
  display: block;
  width: 100%;
  text-align: center;
  background: #2563eb;
  color: white;
  padding: 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: background 0.2s;
}

.job-card-mini .btn-view:hover {
  background: #1d4ed8;
}

/* 23. New Responsive Utilities */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Dashboard Specifics */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.submission-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: 0.3s;
}

/* 24. Table Responsiveness */
@media (max-width: 768px) {
  .table-responsive {
    border: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    display: block;
    border: 1px solid #eee;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
  }

  .admin-table td {
    display: block;
    text-align: right;
    padding: 0.75rem;
    border-bottom: 1px solid #f1f1f1;
    position: relative;
    padding-left: 50%;
  }

  .admin-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 1rem;
    font-weight: bold;
    text-align: left;
    color: var(--color-text-muted);
  }
}

/* 23. Premium UI Components (Added for Redesign) */
.premium-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-5px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-hero {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #1a2744, #2a3a5f);
  color: #fff;
  text-align: center;
  border-radius: 0 0 40px 40px;
  margin-bottom: 4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--color-accent);
  background: #fffcf5;
}

.faq-question {
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-whatsapp-premium {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.contact-whatsapp-premium::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

/* Job Content Formatter */
.job-content-formatted {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
}

.job-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.job-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.job-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.job-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.exp-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.job-section {
  margin-bottom: 1.5rem;
}

.job-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.job-contact-section {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.25rem;
}

.job-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.job-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.job-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #374151;
}

.job-list li::before {
  content: "\2713";
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
}

.job-content-formatted p {
  margin-bottom: 0.75rem;
  color: #4b5563;
}

.job-disclaimer {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  font-style: italic;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 3px solid #e2e8f0;
}

/* Job Card Preview Text */
.job-card-preview {
  font-size: 0.825rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Walk-in Detail Alert */
.walkin-alert-box {
  background: linear-gradient(135deg, #fff3cd, #fff8e1);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.walkin-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #92400e;
  letter-spacing: 0.05em;
}

.walkin-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #78350f;
  margin-top: 0.2rem;
}

@media (max-width: 768px) {
  .job-info-grid,
  .job-contact-grid,
  .job-list {
    grid-template-columns: 1fr;
  }

  .walkin-alert-box {
    gap: 1rem;
    padding: 1rem;
  }
}

/* Pan India Job Cards */
.pan-india-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  border-left: 4px solid #f39c12 !important;
}

.pan-india-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.pan-india-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.pan-india-card .job-position {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2744;
  margin: 0;
  flex: 1;
}

.badge-pan {
  background: #fff3cd;
  color: #856404;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.job-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.meta-item {
  font-size: 0.85rem;
  color: #555;
  background: #f8f9fa;
  padding: 3px 10px;
  border-radius: 20px;
}

.meta-item.exp {
  color: #7b2d9e;
  background: #f3e8ff;
}

.meta-item.benefit {
  color: #2d7a2d;
  background: #e8f8e8;
}

.card-footer {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-contact-phone {
  background: #25d366;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-contact-phone:hover {
  background: #1da854;
}

.btn-contact-email {
  background: #f0f4ff;
  color: #1a2744;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #d0d9f0;
}

@media (max-width: 768px) {
  .pan-india-card .card-header {
    flex-direction: column;
    gap: 0.4rem;
  }

  .btn-contact-phone,
  .btn-contact-email {
    width: 100%;
    justify-content: center;
  }
}

/* ──────── Pan India Card Styles (Compact & Premium) ──────── */
.pan-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 1.1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.pan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
  border-color: #f39c12;
}

.pan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #f39c12;
  opacity: 0.8;
}

.pan-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.pan-position {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0;
  text-transform: capitalize;
}

.pan-badge {
  background: #fffbeb;
  color: #92400e;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

.pan-card-meta {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.pan-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #475569;
  font-weight: 500;
}

.pan-meta i {
  width: 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

.pan-meta.exp {
  color: #7b2d9e;
  background: #f3e8ff;
  padding: 4px 10px;
  border-radius: 8px;
  width: fit-content;
  font-size: 0.8rem;
}

.pan-meta.benefit {
  color: #166534;
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 8px;
  width: fit-content;
  font-size: 0.8rem;
}

.pan-card-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.pan-btn-call {
  background: #16a34a;
  color: #ffffff !important;
  flex: 1.5;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 10px;
}

.pan-btn-call:hover {
  background: #15803d;
  transform: scale(1.02);
}

.pan-btn-email {
  background: #ffffff;
  color: #1e293b !important;
  border: 1.5px solid #e2e8f0;
  flex: 1;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 10px;
}

.pan-btn-email:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.pan-no-contact {
  width: 100%;
  text-align: center;
  padding: 8px;
  background: #f8fafc;
  border-radius: 8px;
  color: #94a3b8;
  font-style: italic;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pan-card {
    padding: 1rem;
  }

  .pan-card-actions {
    flex-direction: column;
  }

  .pan-btn-call,
  .pan-btn-email {
    width: 100%;
    height: 44px;
    flex: none;
  }
}
