.smart-writing-wrapper {
  padding: 0rem 0;
}

.smart-writing-title {
  text-align: center;
  font-weight: 700;
  font-size: 2rem;
  color: #000000;
  margin-bottom: 1rem;
  margin-top: 0rem;
}

/* Outer Sky Blue Box */
.sky-blue-box {
  background-color: rgba(0, 113, 227, 0.09);
  border-radius: 1.5rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Inner White Containers */
.white-inner-box {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
}

.smart-writing-impact-title {
  text-align: center;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1.5rem;
}

.smart-writing-impact-box {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #dee2e6;
}

.smart-writing-toolbar-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.smart-writing-toolbar-icons img {
  width: 28px;
}

.smart-writing-video {
  width: 100%;
  max-height: 380px;
  border-radius: 10px;
}

/* Card container layout */
.card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* [YES] This centers the row if <3 cards */
  gap: 1.5rem;
}

/* Blue card container */
.blue-card {
  background-color: rgba(0, 113, 227, 0.09);
  border-radius: 0.75rem;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: 210px;
  flex: 1 1 calc(33.33% - 1rem); /* For 3 per row */
  max-width: calc(66.66% - 1rem);
  box-sizing: border-box;
}

/* Text container */
.blue-card > div {
  flex-grow: 1;
}

/* Card title */
.blue-card h5 {
  font-weight: 900;
  color: #000;
  margin-bottom: 0.5rem;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card description limited to 2 lines */
.blue-card p {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 90%;
}

/* Button */
.smart-writing-btn {
  background-color: #0071E3;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 65px;
}

.smart-writing-btn:hover {
  background-color: #005bb5;
  text-decoration: none;
}

/* Card icon */
.smart-writing-card-icon {
  height: 65px;
  align-self: flex-end;
  margin-top: -4rem;
}

@media (max-width: 991px) {
  .blue-card {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 576px) {
  .blue-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}





/* Impact Section Title */
.smart-writing-impact-title {
  text-align: center;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1.5rem;
}

/* Toolbar with icons */
.smart-writing-toolbar-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 113, 227, 0.09);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Each icon tab */
.icon-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.icon-tab img {
  width: 28px;
}

.icon-tab span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #000000;
}

.icon-tab.active {
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

/* Video Container */
.smart-writing-video-preview {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f9f9f9;
  box-shadow: inset 0 0 0 2px #f0f0f0;
  padding: 1.25rem;
}

.smart-writing-video {
  width: 100%;
  max-height: 380px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.icon-tab:hover {
  background-color: #e2efff;
}

.smart-writing-impact-title {
  text-align: center;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1.5rem;
}

.smart-writing-impact-carousel {
  text-align: center;
}

.smart-writing-toolbar-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 113, 227, 0.09);
  /* border-radius: 1rem; */
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border-bottom-left-radius: 0rem;
  border-bottom-right-radius: 0rem;
  margin-bottom: 0rem;
  flex-wrap: wrap;
}

.icon-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.icon-tab.active {
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.icon-tab img {
  width: 28px;
}

.icon-tab span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #000000;
}

/* Tool Name */
.active-tool-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
  background-color: rgba(0, 113, 227, 0.09);
  /* border-radius: 1rem; */
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  padding-bottom: 10px;
}

/* Video */
.smart-writing-video-preview {
  border-radius: 12px;
  overflow: hidden;
  background: #f9f9f9;
  box-shadow: inset 0 0 0 2px #f0f0f0;
  padding: 0rem;
}

.smart-writing-video {
  width: 100%;
  max-height: 380px;
  border-radius: 10px;
  transition: opacity 0.4s ease;
}

.smart-writing-video {
  pointer-events: none;
}
