.case-study-container {
  max-width: 1240px;
  margin: 40px auto;
  padding: 0px 0px;
  line-height: 1.6;
}

.case-study-container h3 {
  color: #170644;
  margin-bottom: 10px;
  font-size: 2.1rem;
}
.case-study-container p {
  margin: 0 0 1em 0;
  font-size: 16px;
  color: #494949;
  font-weight: 500;
}

.case-study-container li {
  margin: 0 0 5px 18px;
  font-size: 16px;
  color: #494949;
  font-weight: 500;
}

@media (max-width: 768px) {
  .case-study-container {
    padding: 20px;
    margin: 20px 0px;
  }
  .case-study-container h3 {
    font-size: 20px;
    text-align: justify;
  }

  .case-study-container p {
    font-size: 14px;
    /* text-align: justify; */
    font-weight: 500;
  }
}

.project-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap: 20px; */
  max-width: 1200px;
  margin: 40px 20px;
}

.project-info {
  font-size: 16px;
  flex: 1;
}

.project-info-colon {
  margin-right: 12px;
  font-weight: 600;
  color: #170644;
}

.project-info-name-of-project {
  color: #170644;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.project-info div {
  font-size: 20px;
  margin-bottom: 10px;
  flex-direction: row;
  display: flex;
}

.project-info div a {
  text-decoration: none;
  color: #f80035;
}

.project-info div a:hover {
  color: #000;
}

.project-info strong {
  display: inline-block;
  width: 180px;
}

.case-header {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-header img {
  height: 252px;
  max-width: 100%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

@media (max-width: 768px) {
  .project-container {
    flex-direction: column-reverse;
    align-items: center;
    margin: 0px;
    gap: 20px;
    margin-bottom: 40px;
    /* text-align: center; */
  }

  .case-header {
    justify-content: center;
    margin-bottom: 20px;
  }

  .project-info strong {
    width: auto;
    font-size: 18px;
    text-align: left;
  }

  .project-info div {
    font-size: 18px;
  }
}

.section {
  margin: 30px 0;
}

.Results-Achieved li {
  margin: 0 0 5px 18px;
  font-size: 16px;
  color: #494949;
  font-weight: 500;
}

@media (max-width: 768px) {
  .Results-Achieved li {
    font-size: 14px;
    font-weight: 500;
  }
}
/* Table Styles */

.table-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
}

.seo-table thead {
  background: #170644;
  color: white;
}

.seo-table th,
.seo-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.seo-table th {
  font-weight: 500;
  font-size: 14px;
}

.seo-table tbody tr:hover {
  background: #f7fafc;
}

.seo-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.ranking-cell {
  font-weight: 500;
  color: #170644;
}

.search-term {
  text-align: left;
  font-weight: 500;
}

.view-icon {
  color: #170644;
  cursor: pointer;
  transition: color 0.3s ease;
}

.view-icon:hover {
  color: #f80035;
}

.scroll-indicator {
  text-align: right;
  padding: 8px;
  font-size: 0.9rem;
  color: #555;
}

@media (max-width: 768px) {
  /* Make the container horizontally scrollable on small screens */
  .table-container {
    background: white;
    border-radius: 8px;
    overflow-x: auto; /* enable horizontal scroll */
    overflow-y: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    -webkit-overflow-scrolling: touch; /* smooth scroll on mobile */
  }

  /* Ensure the table doesn't squish on smaller screens */
  .seo-table {
    min-width: 820px; /* or more, depending on your columns */
    width: 100%;
    border-collapse: collapse;
  }

  /* Make scroll indicator stay visible and styled */
  .scroll-indicator {
    text-align: right;
    padding: 8px;
    font-size: 0.9rem;
    color: #555;
    background: #f9f9f9;
    border-top: 1px solid #eee;
  }
}

/* More Results Section */
.more-results {
  margin-top: 4rem;
  /* background-color: #f5f5f5;
  padding: auto 20px ; */
  margin-bottom: 70px;
}

.more-results h2 {
  text-align: center;
  color: #170644;
  margin-bottom: 60px;
  font-size: 2rem;
}

.case-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.case-study {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.case-study:hover {
  transform: translateY(-5px);
}

.case-study-image {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
}

.case-study-date {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.case-study-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #170644;
}

.case-study-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.case-study-tags span {
  background: #f80035;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 14px;
}

/* Overlay only on hover */
.case-study-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.case-study:hover .case-study-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox popup */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  display: none;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

/* Custom VIEW cursor */
.case-study-image {
  cursor: none;
  position: relative;
}

.view-cursor {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  /* background-color: #07ffca; 
  color: #e8f9bb; */

  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
  display: none;
}

/* Lightbox Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  padding: 10px;
}
#prevBtn {
  left: 30px;
}
#nextBtn {
  right: 30px;
}

/* .scroll-frame {
  height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 10px;
  scrollbar-width: thin;
  cursor: none; 
}

.scroll-frame img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none; 
} */


/* Scrollable Lightbox Fix for Tall Images */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: flex-start; /* Start from top if image is tall */
  justify-content: center;
  overflow-y: auto; /* ✅ allows scrolling for tall images */
  z-index: 9999;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Lightbox Image */
.lightbox img {
  max-width: 90%;
  height: auto; /* ✅ auto height for scroll */
  max-height: none; /* ✅ remove max-height so it can scroll */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  display: block;
  margin: auto;
}

