:root {
  --light-purple: #f3e8ff;
  --main-title-color: #480866;
  --accent-purple: #5b21b6;
  --text-gray: #6b7280;
}

* {
  font-family: "Poppins", sans-serif;
  letter-spacing: normal;
}

/* 1. Main Card Container */

.card-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link-wrapper:hover .card {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card {
  width: 380px;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 2. Top Section with Image */
.header-section {
  background-color: var(--light-purple);
  padding: 20px;
}

.read-time {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #480866;
  background-color: rgba(255, 255, 255, 0);
  border: 1px solid #480866;
  border-radius: 20px;
  font-weight: 400;
}

.title-and-image {
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
}

.main-blogtitle {
  flex: 1;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--main-title-color);
}

.image-box {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.image-box img {
  width: 171px;
  height: 131px;
  border-radius: 8px;
  object-fit: cover;
}

/* 3. Bottom Content Section */
.content-section {
  padding: 20px;
  padding-top: 15px;
}

.date-tag-row {
  display: none;
}

.category-tag2 {
  display: inline-block;
  background-color: #f4e9f9;
  color: #333333;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 17px;
}

.category-tag {
  display: none;
}

.article-headline {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #333333;
  line-height: 1.3;
}

.excerpt {
  color: #858585;
  font-size: 14px;
  margin-bottom: 25px;
  font-weight: 400;
}

/* 4. Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.publish-date2 {
  display: inline-block;
  color: var(--text-gray);
  font-weight: 500;
}

.publish-date {
  display: none;
}

.read-more-link {
  color: #480866;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.read-more-link svg {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

/* 
   MOBILE STYLES
    */

@media (max-width: 767px) {
  body,
  #blog-container,
  .container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .card {
    width: auto;
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
    display: flex;
    flex-direction: row;
    min-height: 120px;
    box-shadow: none;
    box-sizing: border-box;
    width: calc(100% + 50px);
  }
  .header-section {
    flex-shrink: 0;
    width: 35%;
    padding: 15px 8px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .read-time {
    display: none;
  }

  .title-and-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
  }

  .main-blogtitle {
    font-size: 11px;
    line-height: 1.1;
    margin-bottom: 3px;
    flex: none;
  }
  .main-title-container {
    margin-left: -2px;
    align-items: center;
    text-align: center;
  }
  .image-box {
    width: 100%;
    justify-content: right;
    overflow: hidden;
  }

  .image-box img {
    width: 85px;
    height: auto;
    border-radius: 0;
    max-width: 100%;
  }

  .content-section {
    flex-grow: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
  }

  /* MOBILE: Show date-tag-row */
  .date-tag-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
    order: 1;
  }

  /* MOBILE: Show elements inside date-tag-row */
  .publish-date {
    display: inline-block;
    color: #858585;
    font-size: 12px;
    font-weight: 400;
  }

  .category-tag {
    display: inline-block;
    background-color: var(--light-purple);
    color: #333333;
    font-size: 12px;
    font-weight: 400;
    padding: 3px 8px;
    border-radius: 6px;
  }

  /* MOBILE: Hide desktop-only elements */
  .category-tag2 {
    display: none;
  }

  .publish-date2 {
    display: none;
  }

  .excerpt {
    display: none;
  }

  .article-headline {
    order: 2;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 6px;
    white-space: normal;
    word-wrap: break-word;
  }

  .read-more-link {
    font-weight: 500;
    color: #480866;
  }

  .card-footer {
    order: 3;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
    border-top: none;
  }
}

/*
   TABLET STYLES (768px to 1024px)
 */
@media (min-width: 768px) and (max-width: 1024px) {
  #blog-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    justify-items: center;
  }

  .card {
    width: 100%;
    max-width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
  }

  /* desktop-style internal layout */
  .header-section {
    width: 100%;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
  }

  .title-and-image {
    flex-direction: row;
    text-align: left;
    width: 100%;
    justify-content: space-between;
  }

  .main-blogtitle {
    font-size: 18px;
    margin-bottom: 0;
  }

  .image-box {
    width: 40%;
    justify-content: flex-end;
  }

  .image-box img {
    width: 130px;
    height: auto;
  }

  .content-section {
    padding: 20px;
  }

  .read-time,
  .excerpt,
  .publish-date2,
  .category-tag2 {
    display: inline-block;
  }

  .date-tag-row {
    display: none;
  }
}

.faq-accordion {
  width: 100%;
  padding: 22px 0;
  border-bottom: 1px solid #e0e0e0;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question {
  font-size: 22px;
  font-weight: 400;
  color: #111;
}

.faq-arrow {
  width: 20px;
  height: auto;
  transition: transform 0.25s ease;
}

.faq-arrow.rotate {
  transform: rotate(180deg);
}

.faq-content p {
  margin-top: 12px;
  padding-right: 28px;
  font-size: 18px;
  line-height: 1.6;
  color: #505050;
}

.faq-heading-container {
  margin-bottom: 65px;
  margin-top: 70px;
  display: flex;
  justify-content: center;
}

.sub-paragraph-heading-faq {
  font-size: 36px;
  font-weight: 500;
  color: black;
  margin-bottom: 12px;
  margin-top: 10px;
}

@media (max-width: 767px) {
  .faq-question {
    font-size: 16px;
  }
  .faq-content p {
    font-size: 14px;
  }

  .faq-arrow {
    width: 11px;
    height: auto;
    transition: transform 0.25s ease;
  }
  .faq-accordion {
    padding: 18px 0;
  }
  .sub-paragraph-heading-faq {
    font-size: 18px;
    margin-bottom: 12px;
    margin-top: 10px;
  }

  .faq-heading-container {
    margin-bottom: 40px;
    margin-top: 35px;
    display: flex;
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
}
