@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap');

:root {
  --deep-blue: #1e3a8a;
  --black: #111;
  --white: #fff;
  --gray: #666;
  --light-blue: #8ca3ce;
  --gold: #c49b66;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f9f9f9;
  color: var(--black);
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

.practice-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.practice-title {
    font-size: clamp(1.5rem, 2.5vw + 1rem, 2rem);
  color: var(--black);
  font-weight: 700;
  position: relative;
  display: inline-block;      /* shrink to text width */
  padding-bottom: 8px;        /* space for underline */
  text-align: left;           /* text remains left-aligned */
}

.practice-title::after {
  content: "";
  display: block;
  width: 100px;                 /* 50% of text width */
  height: 6px;
  background-color: var(--deep-blue);

 margin: 8px auto 0; /* 'auto' centers the underline */
}



.view-all-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--deep-blue);
  color: var(--deep-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 9999px;
  transition: all 0.3s ease;
  background-color: transparent;
}

.view-all-btn:hover {
  background-color: var(--deep-blue);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.practice-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.practice-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.12);
}

.practice-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.practice-item:hover img {
  transform: scale(1.1);
}

.practice-item-title {
  font-size: 22px;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 12px;
}

.practice-description {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .practice-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

 

  .practice-title::after {
    width: 150px;
  }
}

@media (max-width: 768px) {
  .practice-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .practice-section {
    padding: 0 16px;
  }


}

@media (max-width: 576px) {
  .practice-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

 

  .practice-title::after {
    width: 120px;
  }

  .view-all-btn {
    padding: 10px 22px;
    font-size: 13px;
  }

  .practice-item img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 350px) {
  

  .practice-item-title {
    font-size: 20px;
  }

  .practice-description {
    font-size: 14px;
  }
}
