/* ============================================================
   services.css — HSCOL Services Page Styles
   ============================================================ */

/* ── Globals & Shared Base ── */
html {
  overflow-y: scroll; /* Crucial: Prevents Windows horizontal jumping when scrollbar disappears on empty results */
}

.container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 5%;
  box-sizing: border-box;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  transition: all .2s;
  cursor: pointer;
  text-align: center;
}

.btn-primary { background: #F4D48C; color: #000; border: 1px solid #F4D48C; }
.btn-primary:hover { background: #E2BA56; border-color: #E2BA56; }
.btn-outline { background: transparent; color: #F4D48C; border: 1px solid #F4D48C; }
.btn-outline:hover { background: #F4D48C; color: #000; }
.btn-dark { background: #252467; color: #fff; border: 1px solid #252467; }
.btn-dark:hover { background: #1c185a; color: #fff; }


/* ── Hero Section ── */
.srv-hero {
  position: relative;
  height: 450px;
  background: url('../images/services-hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.hero-title {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 42px;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-title .highlight {
  font-size: 42px;
  color: #F4D48C;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 16px;
  color: #dddddd;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}


/* ── RFP Banner ── */
.rfp-banner {
  background: #f1efd9;
  padding: 60px 5%;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.rfp-banner h2 {
  font-size: 28px;
  color: #252467;
  font-weight: 700;
  margin-bottom: 16px;
}

.rfp-banner p {
  font-size: 15px;
  color: #666;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}


/* ── Main Layout Wrapper ── */
.services-wrapper {
  display: flex;
  flex-direction: row;
  gap: 40px;
  padding: 60px 5%;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start; /* Prevents sidebar from stretching or moving */
}


/* ── Sidebar ── */
.srv-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #F8F9FA;
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;
  position: sticky;
  top: 100px;          
}

.sidebar-header {
  background: #1C185A;
  color: #ffffff;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list > li {
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background .15s;
}

.category-list > li:last-child {
  border-bottom: none;
}

.category-list > li > a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s;
}

/* Hover state */
.category-list > li:hover > a {
  background: #1C185A;
  color: #fff;
}

/* Active state */
.category-list > li.active > a {
  background: #1C185A;
  color: #fff;
  font-weight: 600;
}

.category-list .icon {
  font-size: 10px;
  color: inherit;
  margin-right: 12px;
}

.sub-category-list {
  list-style: none;
  padding: 0 0 10px 45px;
  margin: 0;
}

.sub-category-list li a {
  display: block;
  padding: 10px 0;
  color: #666;
  font-size: 13px;
  text-decoration: none;
}

.sub-category-list li a:hover {
  color: #252467;
}


/* ── Main Content ── */
.srv-main {
  flex: 1;
  min-width: 0;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}


/* ── Services Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  flex: 1;
  min-height: 500px;    /* Holds space so sidebar never shifts when empty */
  align-content: start; /* Cards don't stretch to fill height */
}


/* ── No Results / Loading State ── */
.no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  min-height: 400px;
}

.no-results-icon {
  width: 90px;
  height: 90px;
  background: #f0f2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.no-results-icon svg {
  width: 40px;
  height: 40px;
  color: #1C185A;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 20px;
  font-weight: 700;
  color: #252467;
  margin: 0 0 10px;
}

.no-results p {
  font-size: 14px;
  color: #999;
  margin: 0 0 24px;
  max-width: 320px;
  line-height: 1.6;
}

.no-results .btn-reset {
  display: inline-block;
  background: #1C185A;
  color: #fff;
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}

.no-results .btn-reset:hover {
  background: #252467;
}


/* ── Service Card ── */
.service-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(28, 24, 90, .15);
}

.card-img {
  height: 200px;
  background-position: center;
  background-size: cover;
}

.card-content {
  padding: 20px;
}

.badge {
  display: inline-block;
  background: #fcf4e8;
  color: #000;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 12px;
  cursor: pointer;
}

.card-title {
  font-size: 18px;
  color: #111;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-content p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  cursor: pointer;
}

.author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.rating {
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  color: #F4D48C;
  font-size: 14px;
  letter-spacing: 1px;
}

.card-footer {
  border-top: 1px dashed #eee;
  padding-top: 16px;
  text-align: right;
}

.price-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.price-value {
  font-size: 18px;
  color: #252467;
  font-weight: 700;
}


/* ── Inline Ad Banner ── */
.inline-ad-banner {
  background: url('../images/services/ser.png') center/cover no-repeat;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.ad-overlay {
  padding: 60px 50px;
  display: flex;
  align-items: center;
}

.ad-content {
  max-width: 500px;
}

.ad-content h3 {
  font-size: 32px;
  color: #252467;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.ad-content p {
  font-size: 15px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.5;
}


/* ── Pagination ── */
.srv-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
}

.page-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #252467;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all .2s;
}

.page-link:hover {
  border-color: #252467;
  background: #f0f2f5;
}

.page-link.active {
  background: #1C185A;
  color: #fff;
  border-color: #1C185A;
}


/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-wrapper {
    flex-direction: column;
  }

  .srv-sidebar {
    width: 100%;
    position: static; /* Remove sticky on tablet/mobile */
  }

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

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-title .highlight { font-size: 24px; }

  .cards-grid {
    grid-template-columns: 1fr;
    min-height: 300px;
  }

  .ad-overlay {
    padding: 40px 20px;
    background: rgba(232, 228, 219, 0.9);
  }

  .ad-content h3 { font-size: 24px; margin-bottom: 12px; }
  .ad-content p { font-size: 14px; }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-buttons .btn { width: 100%; box-sizing: border-box; }

  .services-wrapper { padding: 40px 5%; }
  .rfp-banner { padding: 40px 5%; }
  .rfp-banner h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .srv-pagination .page-link { width: 35px; height: 35px; font-size: 14px; }
}