:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #f59e0b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #06b6d4;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  height: 400px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -21112;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-white);
  max-width: 900px;
  width: 90%;
  padding: 0 1.5rem;
  animation: heroFadeIn 1s ease-out;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-text-line {
  display: block;
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
}

.hero-text-line:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-text-line:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
  animation: fadeIn .8s ease-out .6s forwards;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-bottom: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.hero {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero-search {
  display: flex;
  gap: 1rem;
  width: 90%;
  max-width: 560px;
  background: var(--bg-primary);
  padding: 0.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  animation: slideUp 0.911s ease-out 0.911s forwards;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  transition: 0.3s ease-in-out;
  justify-content: center;
}

.search-box,
.location-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0.75rem;
  color: var(--text-primary);
}

.search-box i,
.location-box i {
  color: var(--text-secondary);
}

.search-box input,
.location-box select {
  border: none;
  outline: none;
  background: none;
  flex: 1;
  font-size: 1rem;
}

.search-btn {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Main Content */
.main-content {
  padding-top: 2rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.section-title i {
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Companies Section */
.companies-section {
  padding: 4rem 0;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 0.95rem;
  padding: 0rem 0;
  justify-content: center;
}

.company-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.company-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.company-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--info-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.company-card:hover::before {
  transform: scaleX(1);
}

.company-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.company-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.company-info {
  flex: 1;
}

.company-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.company-industry {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.company-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

.company-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.company-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-view {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-view:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.load-more-btn.hidden {
  display: none;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000000000000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.company-modal {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 1000px;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .company-modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.company-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.company-info-modal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.company-info-modal img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.company-info-modal h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.company-meta-info {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.company-type,
.company-level {
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.company-type {
  background: var(--primary-color);
  color: var(--text-white);
}

.company-level {
  background: var(--success-color);
  color: var(--text-white);
}

/* Social Media Icons */
.social-media-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.social-media-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  font-family: "Inter", sans-serif;
  text-align: center;
}

.social-icons-container {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icons-container .social-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-icon i {
  font-size: 1.25rem;
  color: white;
}

.social-icon.whatsapp {
  background-color: #25D366;
}

.social-icon.linkedin {
  background-color: #0077B5 !important;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.facebook {
  background-color: #1877F2;
}

/* Responsive for social media icons */
@media (max-width: 768px) {
  .company-details-header {
    flex-direction: column;
    align-items: flex-start;
  }
 
  
  .social-media-icons {
    align-self: center;
    width: 100%;
  }
  
  .social-media-title {
    width: 100%;
  }
  
  .social-icons-container {
    justify-content: center;
    width: 100%;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
  }
  
  .social-icon i {
    font-size: 1.1rem;
  }
}

.company-full-description {
  margin-bottom: 2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
}

.company-full-description h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.company-full-description p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
}

#modal-company-description {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
}

.vacancy-description-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
}

.company-benefits ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.company-benefits li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: 600;
  flex-shrink: 0;
}

.company-stats-modal {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  margin-top: 15px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.stat i {
  color: var(--primary-color);
}

/* Vacancies Section in Modal */
.vacancies-section {
  margin-bottom: 2rem;
}

.vacancies-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.vacancies-grid {
  display: grid;
  gap: 1rem;
}

.vacancy-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgb(148, 148, 149);
}
    
.vacancy-card:hover {
  background: var(--bg-primary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(98, 136, 8, 0.913);
}

.vacancy-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.vacancy-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}



.site-footer {
  background: #1e293b;
  color: white;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding: 3rem 0;
  text-align: left;
}

.footer-section {
  text-align: left;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo i {
  color: var(--primary-color);
}

.footer-section p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  color: white;
  padding-left: 0.25rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.contact-info i {
  color: var(--primary-color);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding: 1.5rem 0;
  text-align: left;
  color: #94a3b8;
  font-size: 0.9rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--text-white);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease-in-out;
}

.carousel img:first-child {
  opacity: 1;
}

.company-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
}

.vacancy-details {
  padding: 0;
}

.vacancy-meta-detailed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.meta-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 150px;
  justify-content: flex-start;
}

.meta-label i {
  color: var(--primary-color);
  width: 20px;
}

.meta-value {
  color: var(--text-secondary);
  flex: 1;
  text-align: right;
}

.vacancy-card {
  cursor: pointer;
  transition: var(--transition);
}

.vacancy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .companies-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .companies-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-items: center;
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .hero-banner {
    height: 300px;
    min-height: 300px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .companies-section {
    padding: 2rem 0;
  }

  .companies-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* COMPACT MOBILE CARD DESIGN */
  .company-card {
    padding: 0.875rem;
    margin: 0 auto;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .company-card:hover {
    transform: translateY(-2px);
  }

  .company-header {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0px;
    gap: 0.75rem;
  }

  .company-header span {
   font-size: 12px;
   color: #9a9a9a;
  }


  .company-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
  }

  .company-info {
    flex: 1;
    min-width: 0;
  }

  .company-title {
    font-size: 1rem;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .company-industry {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .company-location {
    font-size: 0.8rem;
    margin: 0.375rem 0;
    gap: 0.375rem;
  }

  .company-location i {
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .company-description {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 2;
  }

  .company-stats {
    font-size: 0.8rem;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .company-stats span {
    gap: 0.3rem;
  }

  .company-stats i {
    font-size: 0.75rem;
  }

  .load-more-container {
    margin-top: 2rem;
  }

  .load-more-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  /* MOBILE MODAL OPTIMIZATION */
  .company-modal {
    width: 95%;
    max-height: 95vh;
    margin: 0.5rem;
    border-radius: var(--radius-lg);
  }

  .modal-header {
    padding: 1rem;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 100;
  }

  .modal-title {
    font-size: 1.125rem;
    line-height: 1.3;
  }

  .modal-close {
    font-size: 1.75rem;
    padding: 0.25rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .company-details-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .company-info-modal img {
    width: 64px;
    height: 64px;
  }

  .company-full-description {
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .company-full-description h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .company-full-description p {
    font-size: 0.875rem;
  }

  .company-unvan {
    margin-top: 1rem;
    padding: 0.875rem;
  }

  .company-unvan h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .company-unvan p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .company-stats-modal {
    padding: 0.875rem;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-direction: column;
  }

  .stat {
    font-size: 0.875rem;
  }

  .vacancies-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .vacancy-card {
    padding: 0.875rem;
    border-radius: 0.5rem;
  }

  .vacancy-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .vacancy-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .vacancy-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }

  .vacancy-description-full {
    font-size: 0.8rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden;
  }

  .company-image {
    margin-bottom: 0.875rem;
    border-radius: 0.5rem;
  }

  /* VACANCY MODAL OPTIMIZATION */
  .vacancy-meta-detailed {
    padding: 0.875rem;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .meta-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .meta-row:last-child {
    border-bottom: none;
  }

  .meta-label {
    min-width: auto;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    gap: 0.4rem;
  }

  .meta-label i {
    width: 16px;
    font-size: 0.875rem;
  }

  .meta-value {
    text-align: right;
    font-size: 0.875rem;
    word-break: break-word;
  }

  .modal-footer {
    padding: 0.875rem;
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    flex-direction: row;
    gap: 0.5rem;
  }

  .modal-footer .btn-primary,
  .modal-footer .btn-secondary {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    justify-content: center;
  }

  .apply-message {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-right: 0;
    margin-bottom: 0;
    border-radius: 0.5rem;
  }

  .applied-status {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    border-radius: 0.5rem;
  }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-content {
    padding: 0 0.75rem;
  }

  .hero-subtitle {
      font-size: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
  animation: fadeIn .8s ease-out .6s forwards;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .company-location{
    display: none;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* EXTRA COMPACT CARDS */
  .company-card {
    padding: 0.75rem;
    border-radius: 8px;
  }

  .company-logo {
    width: 44px;
    height: 44px;
  }

  .company-title {
    font-size: 0.95rem;
  }

  .company-industry {
    font-size: 0.75rem;
  }

  .company-location {
    font-size: 0.75rem;
    margin: 0.3rem 0;
  }

  .company-description {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }

  .company-stats {
    font-size: 0.75rem;
    gap: 0.75rem;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    flex-wrap: wrap;
  }

  /* FULL SCREEN MODAL FOR VERY SMALL DEVICES */
  .company-modal {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .modal-header {
    padding: 0.875rem;
  }

  .modal-title {
    font-size: 1rem;
  }

  .modal-close {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 0.875rem;
  }

  .company-info-modal img {
    width: 56px;
    height: 56px;
  }

  .company-full-description h4 {
    font-size: 0.95rem;
  }

  .company-full-description p {
    font-size: 0.8rem;
  }

  .company-unvan {
    padding: 0.75rem;
  }

  .company-unvan h4 {
    font-size: 0.95rem;
  }

  .company-unvan p {
    font-size: 0.8rem;
  }

  .company-stats-modal {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .stat {
    font-size: 0.8rem;
  }

  .vacancies-section h4 {
    font-size: 0.95rem;
  }

  .vacancy-card {
    padding: 0.75rem;
  }

  .vacancy-title {
    font-size: 0.9rem;
  }

  .vacancy-meta {
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .vacancy-description-full {
    font-size: 0.75rem;
  }

  /* VACANCY MODAL - EXTRA COMPACT */
  .vacancy-meta-detailed {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .meta-row {
    padding: 0.4rem 0;
    gap: 0.5rem;
  }

  .meta-label {
    font-size: 0.8rem;
    gap: 0.3rem;
  }

  .meta-label i {
    width: 14px;
    font-size: 0.8rem;
  }

  .meta-value {
    font-size: 0.8rem;
  }
  
  .modal-footer {
    padding: 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-footer .btn-primary,
  .modal-footer .btn-secondary {
    width: 100%;
    padding: 0.675rem 1rem;
    font-size: 0.8rem;
  }

  .apply-message {
    padding: 0.675rem 0.875rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    margin-right: 0;
  }

  .applied-status {
    padding: 0.675rem 0.875rem;
    font-size: 0.8rem;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}








        .search-container {
            position: relative;
            max-width: 550px;
            margin: 20px auto 0;
        }
        #search-input {
            width: 100%;
            height: 56px;
            padding: 0 20px 0 56px;
            font-size: 16px;
            font-family: 'Inter', sans-serif;
            border: 2px solid #e2e8f0;
            border-radius: 16px;
            background-color: #ffffff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            transition: all 0.3s ease;
            outline: none;
            color: #2d3748;
        }
        #search-input::placeholder {
            color: #a0aec0;
        }
        #search-input:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 4px rgba(0,123,255,0.15), 0 8px 24px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        .knife-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 20px;
            color: #718096;
            pointer-events: none;
            transition: color 0.3s ease;
        }
        #search-input:focus + .knife-icon,
        #search-input:not(:placeholder-shown) + .knife-icon {
            color: #007bff;
        }
        .clear-search {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            font-size: 20px;
            color: #a0aec0;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
        }
        #search-input:not(:placeholder-shown) ~ .clear-search {
            opacity: 1;
            visibility: visible;
        }
        .clear-search:hover {
            color: #718096;
        }


        .modal-overlay { z-index: 10000000000000; }
        .notification { position: fixed; bottom: 20px; left: 20px; background: #333; color: white; padding: 12px 16px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 10000000000001; max-width: 300px; display: flex; justify-content: space-between; align-items: center; animation: slideIn 0.3s ease; }
        .notification.success { background: #28a745; }
        .notification.error { background: #dc3545; }
        .notification button { background: none; border: none; color: white; font-size: 18px; cursor: pointer; margin-left: 10px; }
        @keyframes slideIn { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        .form-group { margin-bottom: 1rem; }
        .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-primary); }
        .form-group input, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 0.5rem; box-sizing: border-box; font-family: inherit; }
        .form-group small { color: #666; font-size: 0.875rem; }
        .form-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1.5rem; }
        .btn-primary, .btn-secondary { padding: 0.75rem 1.5rem; border: none; border-radius: 0.5rem; cursor: pointer; font-weight: 500; transition: background 0.2s; }
        .btn-primary { background: #007bff; color: white; }
        .btn-primary:hover { background: #0056b3; }
        .btn-primary:disabled { background: #28a745; cursor: not-allowed; opacity: 0.9; }
        .btn-secondary { background: #6c757d; color: white; }
        .btn-secondary:hover { background: #545b62; }
        .apply-message { background-color: #fff3cd; color: #856404; padding: 10px 20px; border-radius: 20px; text-align: center; font-weight: bold; margin-right: 10px; flex-grow: 1; }
        .apply-message a { color: #007bff; text-decoration: none; }
        .apply-message a:hover { text-decoration: underline; }
        .applied-status { background-color: #28a745; color: white; padding: 10px 20px; border-radius: 20px; text-align: center; font-weight: bold; margin-right: 10px; flex-grow: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .company-unvan { margin-top: 1.5rem; padding: 1rem; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #007bff; }
        .company-unvan h4 { margin-bottom: 0.5rem; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
        .company-unvan p { color: var(--text-secondary); line-height: 1.6; }
        
        /* Logo fallback styling */
        .logo-fallback {
            width: 60px; /* Match company-logo size */
            height: 60px; /* Match company-logo size */
            background-color: #007bff; /* Default background */
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-radius: 8px; /* Consistent with company-logo */
            font-size: 24px; /* Icon size */
            text-align: center;
            font-weight: normal;
        }
        .logo-fallback i {
            font-size: 24px;
        }
        .logo-fallback .fallback-text {
            line-height: 1.2;
        }
        .company-card .company-logo { /* Ensure the actual logo respects its container */
            object-fit: cover; /* Ensure image covers the area */
        }

@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-banner {
        height: 250px;
        min-height: 250px;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .company-card {
        padding: 0.65rem;
    }
    
    .company-logo {
        width: 40px;
        height: 40px;
    }
    
    .company-title {
        font-size: 0.9rem;
    }
    
    .company-industry {
        font-size: 0.7rem;
    }
    
    .company-description {
        font-size: 0.7rem;
    }
    
    .company-modal {
        width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-title {
        font-size: 0.95rem;
    }
    
    .modal-close {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .company-info-modal img {
        width: 50px;
        height: 50px;
    }
    
    .company-full-description h4 {
        font-size: 0.9rem;
    }
    
    .company-full-description p {
        font-size: 0.75rem;
    }
    
    .vacancy-title {
        font-size: 0.85rem;
    }
    
    .vacancy-meta {
        font-size: 0.7rem;
    }
    
    .meta-label {
        font-size: 0.75rem;
    }
    
    .meta-value {
        font-size: 0.75rem;
    }
    
    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        font-size: 0.75rem;
        padding: 0.6rem 0.875rem;
    }
    
    #search-input {
        height: 48px;
        padding: 0 16px 0 48px;
        font-size: 14px;
    }
    
    .knife-icon {
        left: 14px;
        font-size: 18px;
    }
}

/* Modal styles from vakansiyalar.css */
.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
  z-index: 1;
  line-height: 1;
  background: var(--bg-secondary);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.modal-section p {
  line-height: 2;
  font-size: 17px !important;
}
.close-modal:hover {
  background: var(--danger-color);
  color: #fff;
  transform: rotate(90deg);
}

.modal-details {
  padding: 28px;
}

.modal-details h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-details h2 i {
  color: var(--primary-color);
}

.modal-company-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-company-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.modal-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.modal-company-logo i {
  font-size: 20px;
  color: var(--primary-color);
}

.modal-company {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 500;
}
.premium-badge{
  font-weight: bold;
}
.premium-badge-modal {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
  padding: 18px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 14px;
}

.modal-info-grid strong {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-section {
  margin: 20px 0;
}

.modal-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}


.modal-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.modal-section ul li {
  margin-bottom: 8px;
  position: relative;
  color: #444;
  font-size: 15px;
  display: list-item;
}

.modal-section ul li::marker {
    color: #3498db;
}

.modal-section p[style="color: #453c3c"] {
  color: #453c3c !important;
}

.modal-views {
  padding: 14px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 100%);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  margin: 20px 0;
  font-weight: 600;
  color: #1e40af;
  font-size: 14px;
}

/* Role-based messages */
.login-message,
.biznes-message {
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-message {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #3b82f6;
  color: #1e40af;
}

.login-message a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}

.login-message a:hover {
  color: var(--primary-dark);
}

.biznes-message {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  color: #991b1b;
}

.biznes-message i {
  font-size: 16px;
}

.btn-apply,
.btn-applied,
.btn-login {
  width: 100%;
  padding: 13px 22px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: "Inter", sans-serif;
}

.btn-apply {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-applied {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: #fff;
  cursor: not-allowed;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-login {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #fff;
}
@media (max-width: 768px){
     .modal-section p {
  font-size: 14.5px !important;
}
.modal-details {
  padding: 10px !important;
}
.vacancy-description{
  padding: 10px !important;
}
}
