/* CSS Variables */
:root {
  --primary-color: #264A8B;
  --secondary-color: #B0C8F7;
  --white-color: #fff;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.1);
  --hover-color: #0856e7;
  --whitesmoke-color: whitesmoke;
  --black-color: #000;
  --heading-font: clamp(2rem, 2.5vw, 3rem);
  --lead-font: clamp(1rem, 1.2vw, 2rem);
  --lead-color: #555;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--whitesmoke-color);
  color: var(--black-color);
  line-height: 1.6;
}

/* =========================================================================
                                Top Bar 
=================================================================== */

.top-bar {
  background-color: var(--whitesmoke-color);
  font-size: 14px;
  transition: top 0.3s ease-in-out;
  height: 5vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#topBar i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.top-bar .info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
  font-size: 1.07rem;
}

.top-bar.hide {
  top: -50px;
}

header {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-navbar .navbar-nav .nav-link {
  color: var(--white-color);
}

.main-navbar .navbar-brand {
  color: var(--white-color);
  font-weight: bold;
}

.main-navbar .nav-link:hover {
  color: #ffc107;
}

.top-bar {
  position: relative;
  z-index: 1000;
}

/* =================================================================================
                                      NAVBAR 
 ==================================================================================== */
@media (max-width:768px) {
  #btn-hide {
    display: none;
  }
}

#brand-name {
  margin: 0 10px;
  font-weight: 500;
}

.nav-link {
  padding: 5px 25px;
  border-radius: 20px;
  margin: 0 5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--whitesmoke-color);
  font-weight: 600;
}

.custom-header {
  background: var(--primary-color);
  box-shadow: var(--shadow-soft);
  height: 13vh;
}

#rate-us {
  border-radius: 5px;
  border: 2px solid var(--secondary-color);
  padding: 5px 10px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--secondary-color);
}

#rate-us:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.navbar-brand,
.nav-link {
  color: var(--white-color) !important;
  font-weight: 500;
}

.return-btn {
  background-color: #4265a7;
  color: var(--primary-color);
  list-style: none;
  border-radius: 20px;
  padding: 0;
}

.return-btn:hover {
  background-color: var(--white-color);
  color: var(--primary-color) !important;
}

.dropdown-menu {
  background-color: var(--whitesmoke-color);
}

.dropdown-item {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  background-color: var(--secondary-color);
}

.title-text h1 {
  font-weight: bold;
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.title-text h2 {
  font-weight: bold;
  font-size: 3rem;
}

.spaced-row {
  padding: 40px 10px;
}

.welcome-text h3 {
  font-size: 2.5rem;
}

.welcome-text p {
  font-size: 1.5rem;
}

/* =====================================================================================
                                Footer 
 ===================================================================================== */

footer button {
  border-radius: 5px;
  border: 2px solid var(--secondary-color);
  padding: 5px 15px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--secondary-color);
  background-color: var(--primary-color);
}

footer button:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

footer textarea {
  border-radius: 2px;
  width: 100%;
  height: 10vh;
  color: var(--primary-color);
  border: none;
  outline: none;
  padding: 2px 10px;
}

footer input {
  border-radius: 2px;
  width: 100%;
  height: 4vh;
  color: var(--primary-color);
  border: none;
  outline: none;
  padding: 2px 10px;
}

.custom-footer {
  background-color: var(--primary-color) !important;
  color: var(--white-color);
  width: 100%;
}

.footer-links a {
  color: var(--white-color);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.map-container {
  height: 350px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.social-icons a {
  color: var(--white-color);
  font-size: 1.5rem;
  margin-right: 15px;
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

.elec-container {
  background-color: var(--whitesmoke-color);
  max-width: 100vw;
  overflow-x: hidden;
}

.elec-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px;
  flex-wrap: wrap;
}

.elec-logo {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.elec-logo-img {
  max-width: 200px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.elec-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.elec-title {
  font-size: 64px;
  font-weight: bold;
  color: var(--black-color);
  line-height: 1.1;
}

.elec-subtitle {
  font-size: 36px;
  color: var(--black-color);
  font-weight: normal;
  text-align: right;
  width: 100%;
}

/* ==============================================================================
                             BACK TO TOP BTN 
================================================================================== */
#backToTopBtn {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: none;
  z-index: 1000;
}

#backToTopBtn:hover {
  background-color: var(--hover-color);
  color: var(--white-color);
  transform: scale(1.1);
}

/* ============================================================================
                                        Container 
    ============================================================================= */

.services-container {
  margin: 40px 0;
  width: 100%;
  max-width: 100%;
  padding: 0 15px;
}

.pricing-container,
.faq-container {
  padding: 0 2rem 2rem 2rem;
}

.header-container {
  padding: 4rem 2rem 2rem 2rem;
  background-image:
    linear-gradient(rgba(78, 78, 78, 0.372), rgba(128, 128, 128, 0.18)),
    url("/static/images/background-dev-training.avif");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.feature-container {
  padding: 0 2rem 4rem 2rem;
}

.service-overview-container {
  padding: 0;
}

.tech-container {
  background-color: var(--secondary-color);
  padding: 1rem 2rem;
}

.process-container {
  padding: 4rem 2rem;
}

.pricing-container h2 {
  margin-bottom: 3rem;
}

/* --------------------------- Services Page Layout ----------------------- */



.services-sidebar {
  background: var(--white-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.services-sidebar h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

ol,
ul {
  padding: 0rem;
}

.service-nav {
  list-style: none;
  background: rgb(235, 235, 235);
  padding: 0.6rem;
  border-radius: 15px;
}

.service-nav li {
  margin-bottom: 8px;
}

.service-nav li:last-child {
  margin-bottom: 0px;
}

.service-nav a {
  display: block;
  color: var(--lead-color);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s;
  border-left: 4px solid transparent;
  font-weight: 500;

  background-color: var(--white-color);
  color: var(--lead-color);
  border-left-color: #999;
}

.service-nav a:hover,
.service-nav a.active {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

/* ---------------- Main Content --------------------------- */

.services-content {
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  min-height: 500px;
  width: 100%;
  max-width: 100%;
}

/* --------------------- Service Header ---------------------- */
.service-header {
  text-align: center;
  margin-bottom: 40px;
}

.service-title {
  font-size: var(--heading-font);
  color: var(--primary-color);
  color: var(--white-color);
  font-weight: 700;
  margin-bottom: 15px;
}

.service-subtitle {
  font-size: var(--lead-font);
  color: var(--lead-color);
  color: var(--white-color);
  margin: 0 auto;
  line-height: 1.5;
}

/* ------------------ Section Styles -------------------------- */

.service-section {
  margin-bottom: 40px;
}

.section-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  padding-top: 2rem;
}

.section-text {
  color: var(--lead-color);
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* ----------------------- Features Grid ------------------------- */
.section-container {
  padding: 0 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.feature-card {
  background-color: var(--white-color);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-soft);
}

.feature-card:hover .feature-icon {
  transform: rotate(15deg);
  transition: 0.3s ease-in-out all;
  background-color: var(--primary-color);
  color: var(--white-color);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.feature-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--lead-color);
  line-height: 1.6;
}

/* -------------------------- Process Steps --------------------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
  margin-top: 30px;
  padding: 0 1rem;
}

.process-step {
  text-align: center;
  position: relative;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 1rem;
  background-color: var(--white-color);
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease-in-out all;
}

.process-step:hover {
  border: 2px solid var(--secondary-color);
  transform: translateY(-8px)
}

.process-step:hover .step-number {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: 0.3s ease-in-out all;
}

.process-step h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.process-step p {
  color: var(--lead-color);
  line-height: 1.6;
}

/* ------------------------- Pricing Cards  -------------------------- */

.pricing-container {
  padding: 0 2rem 2rem 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.pricing-card {
  background: var(--white-color);
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.pricing-card.featured {
  border-color: var(--secondary-color);
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--secondary-color);
}

.plan-name {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.plan-price {
  color: var(--hover-color);
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.plan-period {
  color: var(--lead-color);
  margin-bottom: 25px;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
}

.plan-features li {
  color: var(--lead-color);
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
  position: relative;
}

.plan-features li:before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-color);
  margin-right: 10px;
}

.price-btn {
  color: var(--primary-color);
  background-color: var(--secondary-color);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.price-btn:hover {
  background-color: var(--hover-color);
  color: var(--white-color);
}

/* ------------------ Buttons --------------------- */
.btn-primary-custom {
  background: var(--primary-color);
  border: none;
  color: var(--secondary-color);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  background-color: var(--hover-color);
  color: var(--white-color);
  box-shadow: 0 8px 20px rgba(38, 74, 139, 0.3);
}

/* ------------------------ CTA Section ---------------- */
.cta-section {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 3rem;
  text-align: center;
  margin-top: 40px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* -------------------------- Technologies Section ---------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  margin-top: 30px;
  padding: 0 1rem;
}

.tech-item {
  background: var(--white-color);
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.tech-item:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

.tech-item:hover i {
  animation: rotation 0.8s linear 1;
}

@keyframes rotation {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

.tech-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.tech-item span {
  display: block;
  color: var(--primary-color);
  font-weight: 500;
}

/* -------------------------- FAQ Section ------------------------- */
.faq-item {
  background: var(--white-color);
  border: 1px solid #e9ecef;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  background: var(--whitesmoke-color);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: var(--primary-color);
}

.faq-question:hover {
  background: var(--secondary-color);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  font-size: 1.1rem;
}

.faq-answer.active {
  padding: 20px;
  max-height: 200px;
  background-color: ghostwhite;
  color: var(--primary-color);
}

/* ------------------------ Footer ----------------------- */
.custom-footer {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 0.5rem;
  margin-top: 60px;
}

.custom-footer h4,
.custom-footer h5 {
  color: var(--white-color);
  margin-bottom: 20px;
}

.custom-footer a {
  color: var(--secondary-color);
  text-decoration: none;
}

.custom-footer a:hover {
  color: var(--white-color);
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

/* =========================================================================
                               RESPONSIVENESS 
     ============================================================================== */

/* ====================================================================
                     Mobile First - Base styles for mobile
     ===================================================================== */

@media screen and (max-width: 992px) {
  .custom-header {
    height: auto;
    min-height: 10vh;
    padding: 10px 0;
  }
}


@media screen and (max-width: 576px) {

  /* Services Container */
  .services-container {
    margin: 20px 0;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }

  /* Navbar */


  #brand-name {
    font-size: 1rem;
    margin: 0 5px;
  }

  .nav-link {
    padding: 8px 15px;
    margin: 2px 0;
    border-radius: 10px;
    text-align: center;
  }

  .services-sidebar {
    position: static;
    margin-bottom: 20px;
    padding: 20px;
  }

  .services-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .service-nav a {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .services-content {
    width: 100%;
    max-width: 100%;
  }

  /* Header Container */
  .header-container {
    padding: 2rem 1rem;
  }

  .service-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .service-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
  }

  /* Content Containers */
  .service-section {
    padding: 2rem 0.3rem 0rem 0.3rem;
  }

  .feature-container,
  .process-container,
  .pricing-container,
  .faq-container {
    padding: 1rem;
  }

  .cta-container {
    padding: 0;
  }

  .tech-container {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    padding-top: 1rem;
  }

  .section-text {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* Grids */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card {
    padding: 25px;
  }

  .pricing-container {
    padding: 0 1rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .plan-price {
    font-size: 2.2rem;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 0;
  }

  .tech-item {
    padding: 15px 10px;
  }

  .tech-item i {
    font-size: 1.5rem;
  }

  .tech-item span {
    font-size: 0.9rem;
  }

  /* CTA Section */
  .cta-section {
    padding: 30px 20px;
    margin-top: 30px;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  /* FAQ */
  .faq-question {
    padding: 15px;
    font-size: 0.9rem;
  }

  .faq-answer {
    font-size: 1rem;
  }

  .faq-answer.active {
    padding: 15px;
  }

  /* Footer */
  .map-container {
    height: 250px;
  }

  footer input,
  footer textarea {
    height: auto;
    min-height: 40px;
    padding: 10px;
  }

  footer textarea {
    min-height: 80px;
  }

  .social-icons a {
    font-size: 1.3rem;
    margin-right: 10px;
  }

  /* Back to top button */
  #backToTopBtn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  /* Title text adjustments */
  .title-text h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .title-text h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .welcome-text h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .welcome-text p {
    font-size: clamp(1rem, 3vw, 1.3rem);
  }

  .sidebar-nav {
    display: none;
  }
}

/* =============================================================================
                             Tablet - Small tablets and large phones
     =================================================================================== */
@media screen and (min-width: 577px) and (max-width: 768px) {
  .services-container {
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
  }

  .services-sidebar {
    position: static;
    padding: 10px;
    margin-bottom: 30px;
  }

  .services-content {
    width: 100%;
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .header-container {
    padding: 3rem 1.5rem;
  }

  .feature-container,
  .process-container,
  .pricing-container,
  .faq-container {
    padding: 1.5rem;
  }

  .service-section {
    padding: 1rem 1.5rem 0 1.5rem;
  }


  .features-grid,
  .process-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =======================================================================================
                                 Large tablets and small desktops
     ================================================================================ */
@media screen and (min-width: 769px) and (max-width: 992px) {
  .services-container {
    padding: 0 30px;
    width: 100%;
    max-width: 100%;
  }

  .services-content {
    width: 100%;
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .pricing-card.featured {
    transform: scale(1.02);
  }

  .blank-div {
    display: none;
  }

  .services-sidebar {
    display: none;
  }


  .features-grid,
  .process-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 769px) and (max-width: 1025px) {
  .services-container {
    width: 100%;
    max-width: 100%;
    padding: 0 25px;
  }

  .blank-div {
    display: none;
  }
}

/* Desktop adjustments */
@media screen and (min-width: 993px) and (max-width: 1200px) {
  .services-container {
    padding: 0 40px;
    width: 100%;
    max-width: 100%;
  }

  .services-content {
    width: 100%;
    max-width: 100%;
  }
}

/* Large desktop */
@media screen and (min-width: 1201px) {
  .services-container {
    padding: 0 50px;
    width: 100%;
    max-width: 100%;
  }

  .services-content {
    width: 100%;
    max-width: 100%;
  }

  .services-sidebar {
    display: block !important;
  }
}

/* Additional responsive fixes */
@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
  }

  .services-sidebar {
    position: static;
    margin-bottom: 30px;
  }

  .service-title {
    font-size: 2rem;
  }

}

@media (min-width: 769px) {
  .navbar-nav li {
    display: none;
  }
}

@media (min-width: 576px) {
  .service-section {
    padding: 1rem 1.5rem 0 1.5rem;
  }
}

@media (max-width: 992px) {
  .services-sidebar {
    display: none;
  }
}

/* Fix for Bootstrap container override - but preserve sidebar above 992px */
@media (min-width: 577px) and (max-width: 992px) {
  .services-container.container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure full width on all screen sizes above mobile but below 993px */
@media (min-width: 577px) and (max-width: 992px) {
  .container.services-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .col-lg-9,
  .col-md-12 {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* Custom scrollbar for sidebar */
.services-sidebar::-webkit-scrollbar,
.service-nav::-webkit-scrollbar {
  width: 6px;
}

.services-sidebar::-webkit-scrollbar-track,
.service-nav::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.services-sidebar::-webkit-scrollbar-thumb,
.service-nav::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 10px;
}

.services-sidebar::-webkit-scrollbar-thumb:hover,
.service-nav::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Restore proper sidebar layout for desktop above 992px */
@media (min-width: 993px) {
  .services-container {
    padding: 0 2rem 0 1rem;
    width: 100%;
    max-width: 100%;
  }

  .services-content {
    width: 100%;
    max-width: 100%;
  }

  .services-sidebar {
    display: block !important;

  }

  /* Restore Bootstrap grid behavior for sidebar layout */
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-left: 15px;
    padding-right: 8px;
  }

  .col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
    padding-left: 8px;
    padding-right: 15px;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}