.smooth-scroll {
  scroll-behavior: smooth;
}
 @keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 1s ease-out forwards;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .main-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* kb-header Styles */
.kb-header {
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem 1rem 0;
  margin-bottom: 2rem;
}

.kb-header-content {
  max-width: 1280px;
  margin: 0 auto;
}

.kb-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.kb-header-title h2{
  margin:0;
}
.kb-header-accent {
  width: 4px;
  height: 2.5rem;
  background-color: #32157D;
  border-radius: 2px;
}

.kb-header h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0;
}

.kb-header p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Article Card Styles */
.article-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}

.article-card:hover {
  transform: translateY(-2px);
}

.article-image {
  position: relative;
  height: 12rem;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gradient-bg {
  background: linear-gradient(to right, #fce7f3, #fed7aa);
}

.gradient-bg-blue {
  background: linear-gradient(to right, #dbeafe, #dcfce7);
}

.kb-article-content {
  padding: 1rem;
}

.kb-article-accent {
  width: 2rem;
  height: 4px;
  background-color: #32157D;
  margin-bottom: 0.75rem;
}

.kb-article-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.kb-article-description {
  font-size: 0.875rem;
  color: #6b7280;
}

/* More Articles Button */
.kb-more-articles {
  text-align: right;
  padding-top: 2rem;
}

.kb-more-articles a {
/*   background-color: #fdb913;
  color: #000;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s; */
}

.kb-more-articles a:hover {
/*   background-color: #f97316; */
}

.wave-one-card-cta-1 {
/*   background: linear-gradient(90deg,#685BC7 50%,#32157D 0);
  background-position: 100% 100%;
  background-size: 200% 100%; */
  background-color: rgba(75, 58, 166, 1.0);
  border: 2px solid rgba(75, 58, 166, 1.0);
  border-radius: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  padding: 14px 44px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all .4s ease;
}
.wave-one-card-cta-1:hover {
/*   background-position:0 100%; */
}
.wave-one-card-cta-1:hover, .wave-one-card-cta-1:focus, .wave-one-card-cta-1:active{
  background-color: rgba(255, 255, 255, 1.0);
  border: 2px solid rgba(75, 58, 166, 1.0);
  color: rgba(75, 58, 166, 1.0);
}
/* kb-sidebar Styles */
.kb-sidebar {
  position: sticky;
  top: 10rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kb-sidebar-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.kb-search-container {
  padding: 1rem;
}

/* Search Styles */
.kb-search-container {
  position: relative;
}

.kb-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  padding-right: 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  outline: none;
}

.kb-search-input:focus {
  ring: 2px solid #3b82f6;
  border-color: transparent;
}
.kb-search-container-inner {
  display: flex;
      gap: 10px;

}
.kb-search-button {
  align-items: center;
/*   background-color: #fdb913; */
  border: none;
  border-radius: 0.25rem;
/*   color: #000; */
  cursor: pointer;
  display: flex;
  justify-content: center;
  transition: background-color 0.2s;
  border: 2px solid #fff;
}

.kb-search-button:hover {
/*   background-color: #374151; */
}

.kb-search-icon {
  width: 1rem;
  height: 1rem;
}

/* Navigation Styles */
.kb-section-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-top-heading {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  border-radius: 0.25rem;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  border: 2px solid #fff;
}

.section-top-heading:hover {
  background-color: #f3f4f6;
  color: #2563eb;
}

.section-top-heading.active {
    background-color: #32157D;
    color: #fff;
}
/* Popular Section */
.popular-title {
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
}

.popular-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-image-container {
  position: relative;
}

.popular-image {
  width: 100%;
  height: 6rem;
  object-fit: cover;
  border-radius: 0.25rem;
}

.popular-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popular-overlay-text {
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
}

.popular-title-text {
  font-weight: 600;
  color: #1f2937;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
/*     padding: 1rem; */
  }
  .hs-content-id-190772998491 .dnd_area-row-0-padding{
    padding-bottom: 0px;
  }
  
  .kb-header {
    padding: 1rem;
    margin-bottom: 0px;
  }

    #latest-post .kb-header {
       padding: 1rem 1rem 1rem .0;
    }
  .kb-more-articles {
    text-align: center;
}
  .articles-grid {
    grid-template-columns: 1fr;
  }
}


/* Newsroom Section Styles */
.kb-pt-newsroom-section {*/
    padding: 50px 0;
}

.kb-pt-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.kb-pt-header-line {
    width: 30px; /* Adjust length of the orange line */
    height: 4px;
    background-color: #32157D; /* Orange color */
    margin-right: 10px;
}

.kb-pt-section-title {
    font-size: 2.5em; /* Adjust font size */
    color: #333;
    margin: 0;
}

.kb-pt-section-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
}

.kb-pt-news-articles {
    display: flex;
    flex-direction: column; /* Stacks articles vertically */
    gap: 30px; /* Space between articles */
}

.kb-pt-news-article {
    display: flex;
    align-items: flex-start; /* Align image and text at the top */
    gap: 25px; /* Space between image and content */
    padding: 20px 0 0px 0;
}

.kb-pt-article-image-wrapper {
    flex-shrink: 0; /* Prevent image from shrinking */
    width: 250px; /* Adjust image width */
    height: 150px; /* Adjust image height */
    overflow: hidden; /* Crop images if they exceed dimensions */
    border-radius: 5px; /* Slightly rounded corners for images */
}

.kb-pt-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
}

.kb-pt-article-content {
    flex-grow: 1; /* Allows content to take remaining space */
}

.kb-pt-article-title {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.kb-pt-article-date {
    font-size: 0.7em;
    color: #999;
    margin-bottom: 15px;
}

.kb-pt-article-summary {
    color: #555;
}

.kb-pt-article-divider {
    border: none;
    border-top: 1px solid #eee; /* Light grey line */
    margin: 0px 0; /* Space around the divider */
}

.kb-pt-load-more-wrapper {
    text-align: center;
    margin-top: 50px;
}

.kb-pt-load-more-button {
    background-color: #FF9900; /* Orange background */
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.kb-pt-load-more-button:hover {
    background-color: #e68a00; /* Slightly darker orange on hover */
}

/* Responsive adjustments (optional, but good practice) */
@media (max-width: 768px) {
    .kb-pt-news-article {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .kb-pt-article-image-wrapper {
        width: 100%; /* Full width for images on smaller screens */
        height: auto;
        max-width: 300px; /* Limit max width for images */
        margin-bottom: 15px;
    }
}

/* Tablet Layout Adjustments */

/* Grid layout for article cards: 2 columns on tablets */
@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive padding for containers and header */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .kb-header {
    padding: 1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Newsroom Section – Responsive adjustments */
@media (max-width: 768px) {
  .kb-pt-news-article {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .kb-pt-article-image-wrapper {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin-bottom: 15px;
  }
}
