/* ==========================================================================
   Trabajando Bolivia - Front Page Styles
   ========================================================================== */

/* ---------- Light header (homepage only) ---------- */
@media (min-width: 768px) {
  .desktop-header--light,
  .desktop-header--light .navbar-collapse,
  .desktop-header--light div#navbar-collapse {
    background: #fff !important;
    background-color: #fff !important;
  }

  .desktop-header--light .header-top {
    border-bottom: none;
  }

  .desktop-header--light .header-menu {
    border-top: 1px solid #e9edf1;
  }

  .desktop-header--light .header-menu .menu > li > a,
  .desktop-header--light .header-menu .pull-right a {
    color: #0f172a;
    font-weight: 600;
    padding: 12px 0;
    transition: color 0.2s;
  }

  .desktop-header--light .header-menu .menu > li > a:hover,
  .desktop-header--light .header-menu .pull-right a:hover {
    color: #00659b;
  }

  .desktop-header--light .header-menu .menu > li,
  .desktop-header--light .pull-right a {
    border-bottom: 2px solid transparent;
  }

  .desktop-header--light .header-menu .menu > li:hover,
  .desktop-header--light .pull-right a:hover {
    border-bottom-color: #00659b;
  }

  .desktop-header--light .employer-link {
    fill: #475569;
  }

  .desktop-header--light .header-menu .pull-right a:hover .employer-link {
    fill: #00659b;
  }

  /* User menu colors on white header */
  .desktop-header--light .user-menu-toggle__name {
    color: #0f172a;
  }

  .desktop-header--light .user-menu-toggle__chevron {
    color: #64748b;
  }

  .desktop-header--light .user-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .desktop-header--light .user-menu-toggle__avatar {
    border-color: #e2e8f0;
  }

  .desktop-header--light .user-menu-toggle:hover .user-menu-toggle__avatar {
    border-color: #94a3b8;
  }

  .desktop-header--light.is-open .user-menu-toggle {
    background: rgba(0, 0, 0, 0.08);
  }

  .desktop-header--light .trabajando-user-menu.is-open .user-menu-toggle__chevron {
    color: #0f172a;
  }

}

.btn-outline-dark {
  background-color: transparent !important;
  color: #00659b !important;
  border: 1px solid #00659b !important;
}

.btn-outline-dark:hover {
  background-color: #00659b !important;
  color: #fff !important;
}

/* ---------- Light mobile header (homepage only) ---------- */
.navbar-mobile--light {
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0;
}

.navbar-mobile--light .mobile-search-btn {
  color: #00659b !important;
}

.navbar-mobile--light .mobile-menu-btn__bar {
  background-color: #00659b;
}

/* ---------- Full-width main wrapper ---------- */
.front-main {
  margin: 0;
  padding: 0;
}

.has-pp-bottom-nav .front-main {
  padding-top: 0;
  min-height: auto;
}

/* ---------- General Section Styles ---------- */
.tf-section {
  padding: 56px 0;
}

.tf-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.tf-section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
  padding-bottom: 18px;
  position: relative;
}

.tf-section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #059669;
  border-radius: 2px;
}

.tf-section-header h2 .sh-accent {
  color: #00659b;
}

.tf-section-header p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

.tf-section-cta {
  text-align: center;
  margin-top: 32px;
}

.tf-seo-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-top: 24px;
  text-align: center;
}

.tf-seo-text a {
  color: #00659b;
  text-decoration: none;
}

.tf-seo-text a:hover {
  text-decoration: underline;
}

/* ---------- Featured Jobs ---------- */
.tf-featured-jobs {
  background: #fff;
  border-bottom: 1px solid #e9edf1;
}

/* Hide view's own header and footer (we provide ours) */
.tf-featured-jobs .view-header,
.tf-featured-jobs .view-footer {
  display: none;
}

/* ---------- Cities ---------- */
.tf-cities {
  background: #f6f7f9;
}

.tf-cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tf-city-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.tf-city-card:hover {
  border-color: #00659b;
  box-shadow: 0 4px 12px rgba(0, 101, 155, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: #0f172a;
}

.tf-city-name {
  font-size: 15px;
  font-weight: 700;
  color: #00659b;
  margin-bottom: 4px;
}

.tf-city-count {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
}

/* Featured cities (top 3) */
.tf-city-card--featured {
  border-left: 3px solid #059669;
}

.tf-city-card--featured .tf-city-name {
  font-size: 16px;
}

/* ---------- Categories ---------- */
.tf-categories {
  background: #fff;
}

.tf-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tf-category-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tf-category-card:hover {
  border-color: #00659b;
  box-shadow: 0 2px 8px rgba(0, 101, 155, 0.1);
  text-decoration: none;
  color: #0f172a;
}

.tf-category-hidden {
  display: none;
}

.tf-category-name {
  font-size: 13px;
  font-weight: 600;
}

.tf-category-count {
  font-size: 12px;
  color: #fff;
  background: #059669;
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
  margin-left: 8px;
  min-width: 28px;
  text-align: center;
}

/* ---------- Popular Searches ---------- */
.tf-popular {
  background: #f6f7f9;
}

.tf-popular-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tf-popular-link {
  display: inline-block;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tf-popular-link:hover {
  background: #00659b;
  border-color: #00659b;
  color: #fff;
  text-decoration: none;
}

.tf-popular-link--top {
  background: #004e78;
  border-color: #004e78;
  color: #fff;
}

.tf-popular-link--top:hover {
  background: #00659b;
  border-color: #00659b;
}

.tf-popular-hidden {
  display: none;
}

/* ---------- Companies ---------- */
.tf-companies {
  background: #fff;
}

.tf-companies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tf-company-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.tf-company-card:hover {
  border-color: #00659b;
  box-shadow: 0 4px 12px rgba(0, 101, 155, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: #0f172a;
}

.tf-company-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 12px;
}

.tf-company-initial {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3f2fd;
  color: #00659b;
  font-size: 20px;
  font-weight: 700;
  border-radius: 8px;
  margin-bottom: 12px;
}

.tf-company-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tf-company-count {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.tf-company-cta {
  font-size: 12px;
  color: #059669;
  font-weight: 600;
}

/* ---------- Stats / Social Proof ---------- */
.tf-stats {
  background: #004e78;
  padding: 48px 0;
}

.tf-stats-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.tf-stat {
  text-align: center;
  min-width: 140px;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tf-stat:last-child {
  border-right: none;
}

.tf-stat-icon {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.tf-stat-value {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #34d399;
  line-height: 1.1;
  margin-bottom: 6px;
}

.tf-stat-label {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- FAQ ---------- */
.tf-faq {
  background: #fff;
}

.tf-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* Reset Bootstrap panel styles — high specificity overrides */
.tf-faq .tf-faq-list.panel-group {
  margin-bottom: 0 !important;
}

.tf-faq .panel-group .tf-faq-item.panel {
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.tf-faq .panel-group .tf-faq-item.panel-default > .panel-heading {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: inherit !important;
}

.tf-faq .panel-group .panel-heading + .panel-collapse > .panel-body,
.tf-faq .panel-default > .panel-heading + .panel-collapse > .panel-body {
  border-top: none !important;
}

.tf-faq .tf-faq-item .panel-collapse {
  border: none !important;
}

.tf-faq .tf-faq-item .panel-body {
  border: none !important;
  padding: 0 !important;
}

/* Modern FAQ styles */
.tf-faq-item {
  border-bottom: 1px solid #e9edf1;
}

.tf-faq-question h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.tf-faq-question a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  gap: 16px;
}

.tf-faq-question a::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.3s ease;
}

.tf-faq-question a[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.tf-faq-question a:hover {
  color: #00659b;
  text-decoration: none;
}

.tf-faq-answer {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  padding: 0 0 20px;
  max-width: 700px;
}

.tf-faq-answer a {
  color: #00659b;
  text-decoration: underline;
}

/* ---------- CTA Split ---------- */
.tf-cta-split {
  background: #f6f7f9;
}

.tf-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tf-cta-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  border: 1px solid #e2e8f0;
}

.tf-cta-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.tf-cta-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.tf-cta-card li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.tf-cta-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300659b'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
}

.tf-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
}

.tf-cta-postulante {
  border-top: 3px solid #059669;
}

.tf-cta-postulante li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23059669'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center !important;
}

.tf-cta-postulante .tf-cta-btn {
  background: #059669;
  border-color: #059669;
}

.tf-cta-postulante .tf-cta-btn:hover {
  background: #047857;
  border-color: #047857;
}

.tf-cta-empresa {
  border-top: 3px solid #004e78;
}

.tf-cta-empresa .tf-cta-btn {
  background: #004e78;
  border-color: #004e78;
}

.tf-cta-empresa .tf-cta-btn:hover {
  background: #00659b;
  border-color: #00659b;
}

/* ---------- SEO Footer Content ---------- */
.tf-seo-footer {
  background: #fff;
  padding: 40px 0;
}

.tf-seo-footer .tf-section-header h2::after {
  left: 0;
  transform: none;
}

.tf-seo-prose {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  max-width: 900px;
}

.tf-seo-prose a {
  color: #00659b;
  text-decoration: none;
}

.tf-seo-prose a:hover {
  text-decoration: underline;
}

.tf-seo-prose p {
  margin-bottom: 12px;
}

.tf-seo-details {
  margin-top: 24px;
}

.tf-seo-details summary {
  cursor: pointer;
  color: #00659b;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0;
}

.tf-seo-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.tf-seo-links-col h3 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.tf-seo-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tf-seo-links-col li {
  margin-bottom: 4px;
}

.tf-seo-links-col a {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
}

.tf-seo-links-col a:hover {
  color: #00659b;
  text-decoration: underline;
}

/* ---------- Outline button ---------- */
.btn.btn-outline-primary {
  color: #00659b;
  border: 1px solid #00659b;
  background: transparent;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus {
  background: #00659b;
  color: #fff !important;
  text-decoration: none;
}

/* ---------- Show more toggle ---------- */
.tf-show-more {
  cursor: pointer;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .tf-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .tf-stats-grid {
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .tf-section {
    padding: 48px 0;
  }

  .tf-section-header {
    margin-bottom: 28px;
  }

  .tf-section-header h2 {
    font-size: 22px;
    letter-spacing: -0.2px;
  }

  .tf-categories-grid {
    grid-template-columns: 1fr;
  }

  .tf-cities-grid {
    grid-template-columns: 1fr;
  }

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

  .tf-cta-grid {
    grid-template-columns: 1fr;
  }

  .tf-cta-card {
    padding: 28px 24px;
  }

  .tf-stats {
    padding: 40px 0;
  }

  .tf-stats-grid {
    gap: 24px;
  }

  .tf-stat {
    border-right: none;
    padding: 0;
  }

  .tf-stat-value {
    font-size: 28px;
  }

  .tf-popular-grid {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .tf-popular-link {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .tf-seo-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tf-seo-footer h2 {
    font-size: 20px;
  }
}

@media (max-width: 575px) {
  .tf-section {
    padding: 40px 0;
  }

  .tf-companies-grid {
    grid-template-columns: 1fr;
  }

  .tf-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
