.tutor-card {
  text-align: center;
  width: 320px;
  margin: 0 auto;
}
.tutor-image-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}
.tutor-image {
   width: 220px;      /* Increase this value */
  height: 220px;     /* Increase this value */
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: block;
  position: absolute;
  top: 20px;
  left: 20px;
}
.curve-text {
  position: absolute;
  top: -10px;
  left: -10px;
   width: 240px;      /* Make this slightly bigger as well */
  height: 110px;
  pointer-events: none;
}
.tutor-info {
  margin-top: 30px;
}
.tutor-title {
  font-weight: 600;
  margin-bottom: 0;
}
.tutor-subtitle {
  color: #ef68aa;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 1em;
  margin-bottom: 10px;
}
.tutor-desc {
  font-size: 1em;
  color: #222;
  margin: 0;
}

.curve-text {
  transition: transform 0.5s ease;
  transform-origin: center bottom;
}

.tutor-image-wrapper:hover .curve-text {
  transform: rotate(10deg); /* Adjust angle as needed */
}



.hover-zoom {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-zoom:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.portfolio-wrap {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px; /* 👈 smaller horizontal spacing */
  row-gap: 24px;
  align-items: stretch; /* important for equal heights */
  box-sizing: border-box;
}

.post-item {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc((100% - 48px) / 3); /* 2 gaps of 24px between 3 columns */
  max-width: calc((100% - 48px) / 3);
  box-sizing: border-box;
}

.post-item-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}

/* ✅ Make description flex so button can push to bottom */
.post-item-desc {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.post-image img {
  width: 100%;
  height: auto;
}

@media (max-width: 991.98px) {
  .post-item {
    flex: 1 1 calc((100% - 24px) / 2); /* 1 gap of 24px between 2 columns */
    max-width: calc((100% - 24px) / 2);
  }
}

/* Small (mobile) - 1 column */
@media (max-width: 628px) {
  .post-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


  .portfolio-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 30%; /* Ensures 3 per row in the grid with gap */
  box-sizing: border-box;
  }

  .portfolio-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  }


  .section-with-decor {
  position: relative;
}

.corner-decor {
  position: absolute;
  z-index: 2;          /* behind main content but above background */
  width: 120px;         /* adjust size as needed */
  opacity: 0.5;       /* slightly transparent for subtle effect */
  pointer-events: none;/* ignore mouse events, won’t block clicks */
}

/* Corner positions */
.decor-top-left    { top: 20px; left: 20px; }
.decor-top-right   { top: 20px; right: 20px; }
.decor-bottom-left { bottom: 20px; left: 20px; }
.decor-bottom-right{ bottom: 20px; right: 20px; }

/* Optional: subtle hover scale for style */
.section-with-decor:hover .corner-decor {
  transform: scale(1.06);
}

[id] {
        scroll-margin-top: 120px;
        }