:root {
  --primary-color: #377fe3;
  --primary-dark: #1d4ed8;
  --bg-primary: rgba(255, 255, 255, 0.95);
  --bg-secondary: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-white: #fff;
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --radius-lg: .75rem;
  --radius-xl: 1rem;
  --radius-md: .5rem;
  --radius-sm: .25rem;
  --transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
}

* {
  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: var(--bg-secondary);
  overflow-x: hidden;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-banner {
  position: relative;
  height: 400px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video,
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -2;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: -1;
}

.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;
}

.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-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-search {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 80%;
  border-radius: var(--radius-xl);
  opacity: 0;
  animation: slideUp .9s ease-in-out .9s forwards;
  position: relative;
  margin: 0 auto;
  z-index: 100;
  transition: var(--transition);
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 25px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-box,
.location-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  padding: 0.6rem;
  color: var(--text-primary);
  min-width: 200px;
  background: rgba(255, 255, 255, 0.996);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.search-box:hover,
.location-box:hover {
  transform: translateY(-2px);
}

.search-box i,
.location-box i {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.search-box input,
.location-box select {
  border: none;
  outline: none;
  background: none;
  flex: 1;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-primary);
  padding: 0.3rem;
}

.search-box input::placeholder {
  color: var(--text-secondary);
}

.search-btn {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: .75rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  min-width: 120px;
  justify-content: center;
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.premium-jobs-section {
  padding: 3rem 0;
  max-width: 100%;
}

.premium-jobs-section .one {
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.86rem;
  font-weight: 640;
  margin-bottom: 1px;
  color: var(--text-primary);
}

.premium-jobs-section .one i {
  color: rgba(1, 148, 254, 1);
}

.premium-jobs-section .two {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  opacity: 0.6;
  font-weight: normal;
  color: var(--text-primary);
}

.premium-carousel {
  top: 20px;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.premium-track {
  display: flex;
  transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.carousel-dots::-webkit-scrollbar {
  height: 4px;
}

.carousel-dots::-webkit-scrollbar-track {
  background: transparent;
}

.carousel-dots::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.carousel-dots::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.dot {
  min-width: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
  min-width: 14px;
  width: 14px;
  height: 14px;
}

.dot:hover {
  background: var(--primary-color);
  transform: scale(1.2);
}

.dot.active:hover {
  transform: scale(1.3);
}

.clear-box {
  cursor: pointer;
  width: 420px;
  height: 160px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  flex-shrink: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.custom-job-card .like-btn {
  margin-bottom: 15px !important;
}

.clear-box:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
  border-color: #10b981;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.image-container {
  width: 65px;
  height: 65px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #0194fe;
  font-size: 14px;
}

.job-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  margin-right: 1px;
  max-width: 240px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.company-name,
.location {
  color: #6b7280;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.company-name i,
.location i {
  color: #10b981;
  font-size: 14px;
}

.premium-badge {
  position: relative;
  bottom: 42px;
  right: -15px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 0px 12px 0px 8px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  letter-spacing: 0.5px;
}

.job-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Simplified and smaller heart icon */
.like-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  bottom: 9px;
  right: 16px;
  font-size: 1rem;

}


.heart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all .2s ease;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: all .2s ease;
}

.like-btn i {
  font-size: 26px;
  color: #999;
  transition: all .2s ease;
}

.like-btn.liked i {
  color: #e63946;
}

.like-btn.liked i::before {
  content: "\f004";
  font-weight: 900;
}

.like-btn:not(.liked) i::before {
  content: "\f08a";
}

.like-btn.liked {
  animation: heartPulse .3s ease;
}

@keyframes heartPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

/* </CHANGE> */

.over_btn {
  position: absolute;
  bottom: 3px;
  right: 2px;
  z-index: 1000;
}

.like-btn:focus {
  outline: none;
}

.main-content-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
  margin-right: 119px;
}

.non-premium-section {
  width: 100%;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  align-items: center;
  gap: .5rem;
}

.section-title i {
  color: var(--primary-color);
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.job-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 5px .65rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.job-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.company-logo {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary-color), #00d4ff);
  color: white;
}

.job-details {
  flex: 1;
  min-width: 0;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.company-name,
.job-location {
  font-size: .9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.job-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.job-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
  color: var(--text-secondary);
}

.views {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.time-posted {
  background: var(--bg-secondary);
  padding: .25rem .5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.wishlist-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: .5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.wishlist-btn:hover {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
}

.wishlist-btn.liked {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
}

.wishlist-btn i {
  font-size: 1rem;
}


/* Full-width responsive bottom ad that behaves like a "cover" banner */
.card-bottom-ad {
  width: 100%;
  margin: 10px 0;
  /* Vertical spacing between job cards and ads */
  padding: 0;
  /* Remove any default padding */
  box-sizing: border-box;
  overflow: hidden;
  /* Ensures child content doesn't overflow */
  border-radius: 12px;
  /* Modern rounded corners - matches most job card designs */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* Subtle elevation */
  background: #ffffff;
  /* Fallback background */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Make the ad container fully responsive */
.card-bottom-ad>* {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Specifically for images inside the ad (most common case) */
.card-bottom-ad img {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  /* Keep rounded corners on image */
  object-fit: fill;
  /* Ensures image covers area nicely if needed */
}



.ads-header {
  margin-top: 173px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1rem;
  border-bottom: none;
}

.ads-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.ads-header i {
  color: var(--primary-color);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000000000000000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 1000px;
  max-height: 100vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  scrollbar-width: none;
  animation: modalSlideIn .3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: var(--bg-secondary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.modal-header {
  padding: 2rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(to bottom, white, var(--bg-secondary));
}

.modal-logo {
  width: 85px;
  height: 85px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--border-light);
}

.modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-logo .logo-placeholder {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  background: #0CC3FA !important;
}

.modal-info {
  flex: 1;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .6rem;
  line-height: 1.3;
}

.modal-company {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.modal-company::before {
  content: "🏢";
  font-size: 1rem;
}

.modal-location {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  padding: .4rem .8rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.modal-location i {
  color: var(--primary-color);
}

.modal-body {
  padding: 2rem;
  background: var(--bg-secondary);
}

.modal-section {
  margin-bottom: 1rem;
  padding: .8rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.modal-section .section-title {
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.modal-section .section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: .98rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
  white-space: pre-wrap;
  padding: .5rem 0;
}

#modalDescription,
.tesvir_section {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: white;
  border-radius: var(--radius-sm);
  padding: .2rem 0;
}

.requirements-list li {
  padding: .5rem .8rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  line-height: 1.5;
  word-wrap: break-word;
  border-bottom: 1px solid var(--border-light);
  transition: background .2s ease;
}

.requirements-list li:last-child {
  border-bottom: none;
}

.requirements-list li:hover {
  background: var(--bg-secondary);
}

.requirements-list li:before {
  content: "✓";
  color: white;
  background: var(--primary-color);
  font-weight: bold;
  font-size: .85rem;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}

.modal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  align-items: center;
  justify-content: space-around;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-secondary);
  font-size: .95rem;
  padding: .5rem .8rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  transition: transform .2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.modal-stats .stat-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.social-share-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px auto;
  padding: 0 10px;
  transition: all .3s ease;
  max-width: 100%;
  flex-wrap: wrap;
}

.social-share-text-container {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.social-share-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.social-share-label i {
  font-size: 16px;
}

.social-share-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.social-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transition: left .3s ease;
}

.social-btn:hover::before,
.social-btn:active::before {
  left: 0;
}

.social-btn:hover,
.social-btn:active {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-btn:focus {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.social-btn.facebook {
  background: linear-gradient(135deg, #4267b2, #2a4373);
}

.social-btn.facebook:hover,
.social-btn.facebook:active {
  background: linear-gradient(135deg, #5278c3, #3b5998);
}

.social-btn.twitter {
  background: linear-gradient(135deg, #1da1f2, #0a84d1);
}

.social-btn.twitter:hover,
.social-btn.twitter:active {
  background: linear-gradient(135deg, #3ab0f5, #1da1f2);
}

.social-btn.linkedin {
  background: linear-gradient(135deg, #0077b5, #005582);
}

.social-btn.linkedin:hover,
.social-btn.linkedin:active {
  background: linear-gradient(135deg, #1a91d0, #0077b5);
}

.social-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #20a854);
}

.social-btn.whatsapp:hover,
.social-btn.whatsapp:active {
  background: linear-gradient(135deg, #34e075, #25d366);
}

.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.instagram:hover {
  opacity: 0.9;
}

.apply-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  padding: .9rem 2.5rem;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: .8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.apply-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left .5s;
}

.apply-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.apply-btn:hover::before {
  left: 100%;
}

.apply-btn:active {
  transform: translateY(-1px);
}

.auth-notice {
  padding: 1rem;
  background: #fef3cd;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  color: #92400e;
  text-align: center;
}

.auth-notice a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-notice a:hover {
  text-decoration: underline;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.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;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-logo {
  display: inline;
  align-items: center;
  gap: .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;
}

.footer-section ul li {
  margin-bottom: .75rem;
}

.footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
  font-size: .95rem;
}

.footer-section ul li a:hover {
  color: white;
  padding-left: .25rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  color: #cbd5e1;
  font-size: .95rem;
}

.contact-info i {
  color: var(--primary-color);
  width: 16px;
  display: grid;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding: 1.5rem 0;
  text-align: center;
  color: #94a3b8;
  font-size: .9rem;
}



.ads-sidebar {
  position: relative;
  top: 175px;
  width: 300px;
}

.ads-sidebar img {
  width: 100%;
  max-height: 250px;
  width: 300px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.ads-sidebar .ad-item {
  background: white;
  border: 1px solide var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.ads-sidebar .ad-item:hover {
  transform: translateY(-2px);
}

.ads-sidebar .ad-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 0;
}

.ads-sidebar .ad-content {
  padding: 1rem;
}

.ads-sidebar .ad-content h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.ads-sidebar .ad-content p {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}


.right-ads-index .ad-image-wrapper img {
  width: 400px !important;
  margin-top: 40px !important;
  height: 300px !important;
  border-radius: 10px;
  margin-left: 0px;
}

.right-ads-index > .ad-container:first-child .ad-image-wrapper img,
.right-ads-index .ad-container:first-of-type .ad-image-wrapper img {
  margin-top: 175px !important;
}


.card-bottom-ad  img{
  width: 100% ;
  height: 100px !important;
  border-radius: 10px
}

#popupNotification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  min-width: 250px;
  max-width: 420px;
  padding: 15px 20px;
  border-radius: 8px;
  color: #fff;
  z-index: 3000000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.4; 
  font-weight: normal;
  word-wrap: break-word;
}
.ad-wrapper a{
  width: 260px;
}
#popupNotification.show {
  opacity: 1;
  transform: translateY(0);
}

#popupNotification.success {
  background: linear-gradient(135deg, #28a745, #20c997);
  border-left: 4px solid #28a745;
}

#popupNotification.error {
  background: linear-gradient(135deg, #e63946, #dc3545);
  border-left: 4px solid #e63946;
}

.filter-section {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group label i {
  color: #4a90e2;
}

.filter-group input,
.filter-group select {
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all .3s ease;
  font-family: "Inter", sans-serif;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-results i {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.no-results p {
  font-size: 16px;
}

#applicationModal .modal-content {
  max-width: 600px;
  margin: 2% auto;
}

#applicationModal .form-group {
  margin-bottom: 20px;
}

#applicationModal .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

#applicationModal .form-group label i {
  margin-right: 8px;
  color: #4a90e2;
}

#applicationModal .form-group input[type="text"],
#applicationModal .form-group input[type="email"],
#applicationModal .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .3s;
  box-sizing: border-box;
}

#applicationModal .form-group input[disabled] {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #666;
}

#applicationModal .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

#applicationModal .form-group input:focus,
#applicationModal .form-group textarea:focus {
  outline: none;
  border-color: #4a90e2;
}

.cv-upload-options {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.cv-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cv-option label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
}

#applicationModal input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  box-sizing: border-box;
}

#applicationModal input[type="file"]:hover {
  border-color: #4a90e2;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-cancel,
.btn-submit {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cancel {
  background-color: #f5f5f5;
  color: #666;
}

.btn-cancel:hover {
  background-color: #e0e0e0;
}

.btn-submit {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.premium-job-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  height: 320px;
  /* MOOOOOOOOOOOORE HEIGHT */
  transition: transform 0.2s, box-shadow 0.2s;
}

.job-card {
  position: relative;
  opacity: 1;
  transition: all .3s ease;
}

.premium-job-card:hover .like-btn svg,
.job-card:hover .like-btn svg {
  stroke: #ff0000;
  transform: scale(1.1);
}

.premium-job-card:hover .job-info,
.job-card:hover .job-details {
  opacity: 1;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  .like-btn i {
  font-size: 26px !important;
  color: #999;
  margin-right:5px;
  transition: all .2s ease;
}
  .main-content-wrapper{
    margin-right:auto;
  }
  .right-ads-index{
      display:none;
  }
  .hero-banner {
    height: 50vh;
    min-height: 300px;
  }

  .hero-content {
    width: 95%;
    padding: 0 1rem;
  }

  .hero-subtitle {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    margin-bottom: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .hero-search {
    display: flex;
    gap: .5rem;
    width: 100%;
    max-width: 700px;
    flex-wrap: nowrap;
  }

  .search-box,
  .location-box {
    min-width: 150px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
  }

  .search-box input,
  .location-box select {
    font-size: 0.95rem;
  }

  .search-btn {
    padding: 0.75rem 1.5rem;
    font-size: .95rem;
    min-width: 100px;
  }

  .premium-jobs-section {
    padding: 1.5rem 0;
  }

  .premium-jobs-section .one {
    font-size: 1.8rem;
    margin-bottom: .3rem;
  }

  .premium-jobs-section .two {
    font-size: .95rem;
    margin-bottom: 1rem;
  }

  .clear-box {
    width: 100%;
    height: auto;
    min-height: 140px;
    padding: 16px;
    border-radius: 12px;
  }

  .image-container {
    width: 60px;
    height: 60px;
    font-size: 14px;
  }

  .title {
    font-size: 17px;
    margin-bottom: 6px;
    white-space: normal;
    -webkit-line-clamp: 2;
    max-width: 100%;
  }

  .company-name,
  .location {
    font-size: 13px;
  }

  .premium-badge {
    font-size: 10px;
    padding: 6px 12px;
    bottom: 38px;
    right: -10px;
  }

  .like-btn {
    bottom: 10px;
    right: 10px;
  }

  .heart-icon {
    width: 26px;
    height: 26px;
  }

  .like-btn i {
    font-size: 14px;
  }

  .carousel-dots {
    gap: .5rem;
    margin-top: 1rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  
  .main-content-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem .75rem;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
  }

  .job-card {
    padding: .85rem;
    border-radius: 10px;
  }

  .job-card-header {
    flex-direction: column;
    gap: .75rem;
  }

  .company-logo {
    width: 55px;
    height: 55px;
  }

  .job-title {
    font-size: 1.05rem;
    margin-bottom: .3rem;
  }

  .job-card-right {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }

  .job-stats {
    gap: .6rem;
    font-size: .8rem;
  }

  .wishlist-btn {
    width: 36px;
    height: 36px;
  }

  .ads-sidebar {
    width: 100%;
    position: static;
    margin-top: 1.5rem;
  }

  .ads-sidebar img {
    max-height: 140px;
  }

  .ads-sidebar .ad-item img {
    height: 100px;
  }

  .modal-content {
    width: 100%;
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
    animation: modalSlideUp .3s ease-out;
  }

  @keyframes modalSlideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .modal-close {
    width: 36px;
    height: 36px;
    right: .75rem;
    top: .75rem;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .modal-header {
    padding: 1.2rem;
    background: white;
    border-bottom: 1px solid var(--border-light);
    flex-direction: row;
    gap: 1rem;
  }

  .modal-logo {
    width: 55px;
    height: 55px;
    border-radius: 8px;
  }

  .modal-logo .logo-placeholder {
    font-size: 1.2rem;
  }

  .modal-title {
    font-size: 1.15rem;
    margin-bottom: .3rem;
    line-height: 1.25;
  }

  .modal-company {
    font-size: .95rem;
    margin-bottom: .3rem;
  }

  .modal-location {
    font-size: .85rem;
    padding: .3rem .6rem;
  }

  .modal-body {
    padding: .75rem;
    background: white;
  }

  .modal-section {
    margin-bottom: .75rem;
    padding: .65rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: none;
  }

  .modal-section .section-title {
    font-size: 1rem;
    margin-bottom: .4rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--primary-color);
  }

  .modal-section .section-title::before {
    width: 3px;
    height: 16px;
  }

  .section-content {
    font-size: .88rem;
    line-height: 1.3;
  }

  .requirements-list {
    padding: .15rem 0;
    background: transparent;
  }

  .requirements-list li {
    padding: .45rem .6rem;
    gap: .5rem;
    line-height: 1.45;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    background: white;
    margin-bottom: 2px;
    border-radius: 6px;
  }

  .requirements-list li:last-child {
    margin-bottom: 0;
  }

  .requirements-list li:before {
    width: 18px;
    height: 18px;
    font-size: .8rem;
    margin-top: 0;
  }

  .modal-stats {
    padding: .75rem;
    gap: .6rem;
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .stat-item {
    width: 100%;
    justify-content: flex-start;
    font-size: .85rem;
    padding: .45rem .7rem;
  }

  .social-share-container {
    margin: 1rem auto;
    padding: .6rem;
    gap: .6rem;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .social-share-text-container {
    padding: 8px 12px;
    border-radius: 8px;
  }

  .social-share-label {
    font-size: 11px;
    gap: 6px;
  }

  .social-share-buttons {
    gap: 8px;
  }

  .social-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
    border-radius: 10px;
  }

  .apply-btn {
    padding: .75rem 1.5rem;
    font-size: 1rem;
    letter-spacing: .5px;
  }

  #popupNotification {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    min-width: auto;
    font-size: 13px;
    padding: 12px 16px;
  }

  .filter-section {
    padding: 15px;
    margin-bottom: 20px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #applicationModal .form-actions {
    flex-direction: column;
  }

  .btn-cancel,
  .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
    text-align: center;
  }

  .footer-section ul li a:hover {
    padding-left: 0;
  }

  .inline-ad-container {
    margin: 12px 0;
  }

  .inline-ad {
    max-height: 80px;
    height: 80px;
    border-radius: 6px;
  }

  .inline-ad img {
    max-height: 80px;
  }

  .ad-placeholder {
    max-height: 80px;
    padding: 12px;
  }

  .ad-placeholder i {
    font-size: 24px;
    margin-bottom: 4px;
  }

  .ad-placeholder p {
    font-size: 12px;
  }

  .ad-label {
    font-size: 8px;
    padding: 2px 6px;
  }
}

@media (max-width: 576px) {
  .hero-banner {
    height: 45vh;
    min-height: 280px;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 5vw, 1.5rem);
    margin-bottom: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .hero-search {
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
  }

  .search-box,
  .location-box {
    min-width: 100%;
    padding: 0.6rem;
  }

  .search-box input,
  .location-box select {
    font-size: 0.9rem;
  }

  .search-btn {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.9rem;
    min-width: 100%;
  }

  .clear-box {
    min-height: 100px;
    padding: 10px;
  }

  .image-container {
    width: 50px;
    height: 50px;
  }

  .title {
    font-size: 14px;
  }

  .company-name,
  .location {
    font-size: 11px;
  }

  .premium-badge {
    font-size: 7px;
    padding: 2px 6px;
    bottom: 34px;
  }

  .main-content-wrapper {
    padding: 1rem .5rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .job-card {
    padding: .7rem;
  }

  .company-logo {
    width: 50px;
    height: 50px;
  }

  .job-title {
    font-size: 1rem;
  }

  .modal-header {
    padding: 1rem;
    gap: .85rem;
  }

  .modal-logo {
    width: 50px;
    height: 50px;
  }

  .modal-title {
    font-size: 1.05rem;
  }

  .modal-company {
    font-size: .9rem;
  }

  .modal-location {
    font-size: .8rem;
    padding: .25rem .5rem;
  }

  .modal-body {
    padding: .6rem;
  }

  .modal-section {
    margin-bottom: .6rem;
    padding: .55rem;
  }

  .modal-section .section-title {
    font-size: .95rem;
    margin-bottom: .35rem;
    padding-bottom: .25rem;
  }

  .section-content {
    font-size: .84rem;
    line-height: 1.3;
  }

  .requirements-list li {
    padding: .4rem .55rem;
    gap: .45rem;
    line-height: 1.45;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    background: white;
    margin-bottom: 2px;
    border-radius: 6px;
  }

  .requirements-list li:before {
    width: 16px;
    height: 16px;
    font-size: .75rem;
  }

  .modal-stats {
    padding: .6rem;
    gap: .5rem;
  }

  .stat-item {
    font-size: .82rem;
    padding: .4rem .6rem;
  }

  .social-share-container {
    padding: .5rem;
    gap: .5rem;
  }

  .social-btn {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .apply-btn {
    padding: .65rem 1.2rem;
    font-size: .95rem;
  }

  .filter-section {
    padding: 12px;
  }

  .filter-group label {
    font-size: 13px;
  }

  .filter-group input,
  .filter-group select {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .hero-subtitle {
    font-size: clamp(1.45rem, 6vw, 1.3rem);
    margin-bottom: 1rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.3;
  }

  .clear-box {
    min-height: 95px;
    padding: 8px;
  }

  .image-container {
    width: 50px;
    height: 50px;
    font-size: 10px;
  }

  .title {
    font-size: 13px;
  }

  .company-name,
  .location {
    font-size: 10px;
    gap: 4px;
  }

  .premium-badge {
    font-size: 7px;
    padding: 2px 5px;
    bottom: 30px;
    left: 8.39px;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .job-card {
    padding: .6rem;
  }

  .search-box,
  .location-box {
    min-width: 100%;
    padding: 0.6rem;
    margin-left: 10px;
    margin-right: 10px;
  }

  .premium-jobs-section .one {
    font-size: 1.42rem;
    margin-bottom: .3rem;
  }

  .premium-jobs-section .two {
    font-size: .75rem;
    margin-bottom: 1rem;
  }

  .company-logo {
    width: 48px;
    height: 48px;
  }

  .job-title {
    font-size: .95rem;
  }

  .ads-sidebar img {
    max-height: 250px;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    right: .6rem;
    top: .6rem;
  }

  .modal-header {
    padding: .85rem;
    gap: .75rem;
  }

  .modal-logo {
    width: 45px;
    height: 45px;
  }

  .modal-logo .logo-placeholder {
    font-size: 1rem;
  }

  .modal-title {
    font-size: 1rem;
  }

  .modal-company {
    font-size: .85rem;
  }

  .modal-location {
    font-size: .75rem;
    padding: .2rem .45rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-section {
    margin-bottom: .5rem;
    padding: .5rem;
    border-radius: 6px;
  }

  .modal-section .section-title {
    font-size: .9rem;
    margin-bottom: .3rem;
    padding-bottom: .2rem;
  }

  .modal-section .section-title::before {
    width: 2.5px;
    height: 14px;
  }

  .section-content {
    font-size: .8rem;
    line-height: 1.3;
  }

  .requirements-list li {
    padding: .35rem .5rem;
    font-size: .78rem;
    gap: .4rem;
    border-radius: 4px;
  }

  .requirements-list li:before {
    width: 15px;
    height: 15px;
    font-size: .7rem;
  }

  .modal-stats {
    padding: .5rem;
    gap: .45rem;
  }

  .stat-item {
    font-size: .78rem;
    padding: .35rem .55rem;
  }

  .social-share-container {
    padding: .1rem;
  }

  .social-share-text-container {
    padding: 6px 10px;
  }

  .social-share-label {
    font-size: 10px;
    gap: 5px;
  }

  .social-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
  }

  .apply-btn {
    padding: .6rem 1rem;
    font-size: .9rem;
    letter-spacing: .4px;
  }

  /* Carousel Dots Responsive */
  .carousel-dots {
    gap: 0.4rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.5rem;
    max-width: 100%;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .carousel-dots::-webkit-scrollbar {
    height: 2px;
  }

  .dot {
    min-width: 7px;
    width: 7px;
    height: 7px;
  }

  .dot.active {
    min-width: 9px;
    width: 9px;
    height: 9px;
    transform: scale(1.15);
  }

  .dot:hover {
    transform: scale(1.1);
  }

  .dot.active:hover {
    transform: scale(1.15);
  }

  /* Carousel Controls Responsive */
  .carousel-controls {
    gap: 10px;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 36px;
    height: 36px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 16px;
    height: 16px;
  }

  /* Premium Section Spacing */
  .premium-jobs-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .custom-job-card {
    margin: 4px;
  }


  .premium-carousel {
    margin: 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .main-content-wrapper {
    grid-template-columns: 1fr 260px;
    padding: 2rem 1rem;
  }

  .ads-sidebar {
    width: 260px;
  }

  .ads-sidebar img {
    max-height: 170px;
  }

  .ads-sidebar .ad-item img {
    height: 130px;
  }
}




/* ============================================================= */
/*  PREMIUM (TALL) CARD – 320 px height, modern look            */
/* ============================================================= */
.custom-job-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 320px;
  border-radius: 20px;
  display: flex;
  padding: 1px;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

/* ---------- HEADER (logo + crown) ---------- */
.custom-header {
  display: flex;
  justify-content: flex-start;
}

.custom-logo-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
}

.custom-logo-wrapper img,
.custom-logo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: contain;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
}

.custom-logo-placeholder {
  background: linear-gradient(135deg, #e91e63, #f44336);
}

.custom-crown {
  position: absolute;
  top: 0px;
  right: 1%;
  font-size: 25px;
  color: #ffc107;
  border-radius: 40px;
  padding: 6px;
}

/* ---------- CONTENT ---------- */
.custom-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.company-line {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

.custom-title {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.custom-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #555;
}

.custom-location i {
  color: #4285f4;
}

/* ---------- APPLY SECTION (bottom) ---------- */
.custom-apply-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  /* pushes it to the bottom */
}

.custom-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: #777;
  margin-bottom: 6px !important;
}

.custom-meta i {
  color: #999;
}

/* ---------- HEART ICON (absolute) ---------- */
.custom-heart {
  position: absolute;
  right: 4px;
  bottom: 4px;
}

.custom-heart .like-btn {
  background: none;
  border: none;
  font-size: 33px;
  color: #e91e63;
  cursor: pointer;
  transition: transform .2s;
}

.custom-heart .like-btn.liked i {
  color: #e91e63;
}

.custom-heart .like-btn:hover {
  transform: scale(1.2);
}



.social-share-text-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f0f0f0;
  border-radius: 12px;
  transition: all 0.2s ease;
  user-select: none;
}

.social-share-text-container:hover {
  transform: scale(1.1);
  background-color: #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-share-label {
  color: white;
  font-size: 18px;
}

.social-share-label i {
  pointer-events: none;
}








/* BOTTOM OF JOB CARD ADS – MODERN & RESPONSIVE */
.card-bottom-ad {
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card-bottom-ad .ad-item {
  height: 90px;
  max-height: 90px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-bottom-ad .ad-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Covers full area */
  object-position: center;
  display: block;
}

.card-bottom-ad .ad-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  font-size: 0.85rem;
  text-align: left;
}

.card-bottom-ad .ad-content h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-bottom-ad .ad-content p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-bottom-ad .ad-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}










.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.carousel-control-prev,
.carousel-control-next {
  position: static;
  transform: none;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 30px;
  height: 30px;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 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;
}

.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-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 p {
  line-height: 1.7;
  font-size: 15px;
}

.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-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-details {
  padding: 10px;
}
.section-content{
    padding: 10px !important;
}
    
}
