/* ==========================================================================
   Blog Section Styles (Asymmetric Grid Layout & Glassmorphic Button Outer)
   ========================================================================== */

.section-blog-container {
  position: relative;
  width: 100%;
  padding: 80px 0;
  background-color: #ffffff;
}

.custom-padding {
  padding: 0 150px;
}

.blog-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* LEFT COLUMN */
.blog-section__left {
  display: flex;
  flex-direction: column;
}

/* HEADER: Slanted Italic Title + Bold Subtitle */
.blog-section__header {
  margin-bottom: 28px;
}

.blog-section__title {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 64px;
  line-height: 1.25;
  color: #000000;
  margin: 0 0 6px 0;
}

.blog-section__subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 64px;
  line-height: 1.25;
  color: #000000;
  max-width: 85%;
  margin: 0;
}

/* SMALL CARDS GRID (Left side, 2 cards side by side) */
.blog-section__small-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* CARD GENERAL STYLES */
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.blog-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.blog-card--large .blog-card__cover {
  aspect-ratio: 16 / 11;
  border-radius: 20px;
}

.blog-card__cover-link {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card__cover img,
.blog-card__cover svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card__cover img {
  transform: scale(1.05);
}

/* CATEGORY BADGE PILL OVERLAY (Separate Clickable Link) */
.blog-card__badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #080606;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 20px;
  border: 1px solid transparent;
  font-weight: 300;
  padding: 4px 12px;
  border-radius: 12px;
  z-index: 5;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.3s ease;
}

.blog-card__badge:hover {
  border-color: #fff;
}

/* CARD INFO */
.blog-card__info {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
}

.blog-card__date {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.43;
  color: #7B7B7B;
  font-weight: 500;
  margin-bottom: 6px;
}

.blog-card__title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.blog-card__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: calc(var(--body-font-size) * 1.125);
  line-height: 1.43;
  color: #000;
  margin: 0;
  display: -webkit-box;
  max-width: 50%;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  padding-bottom: 6px;
}

.blog-card__title--large {
  max-width: 100%;
}

/* Single underline at the very bottom of the h4 title container */
.blog-card__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 2.5px;
  background-color: #000000;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.25, 1);
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title--large {
  font-size: 22px;
  line-height: 1.3;
}

.blog-card:hover .blog-card__title::after {
  transform: scaleX(1);
}

.blog-card:hover .blog-card__title a {
  color: #000000;
}

.blog-card__arrow {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: visible;
  text-decoration: none;
}

/* Inner thin circle ring */
.blog-card__arrow-outer {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid #919191;
  pointer-events: none;
  overflow: visible;
}

/* Unhovered ::before (Arc 1): Centered at Top, rotated -45deg to TOP-LEFT */
.blog-card__arrow-outer::before {
  content: '';
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: #000000;
  transform: rotate(-45deg);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.25, 1);
}

/* Unhovered ::after (Arc 2): Centered at Bottom, rotated -45deg to BOTTOM-RIGHT */
.blog-card__arrow-outer::after {
  content: '';
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: #000000;
  transform: rotate(-45deg);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.25, 1);
}

/* Arrow Icon in center */
.blog-card__arrow-icon {
  position: relative;
  z-index: 2;
  width: 16px;
  height: 16px;
  color: #000000;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.25, 1);
}

/* HOVERED STATE:
   - Outer ring fades (border-color: transparent)
   - ::before rotates to MIDDLE-TOP (0deg)
   - ::after rotates to MIDDLE-BOTTOM (0deg)
   - Arrow icon translates right slightly */
.blog-card:hover .blog-card__arrow {
  border-color: transparent;
}

.blog-card:hover .blog-card__arrow-outer::before {
  transform: rotate(0deg);
}

.blog-card:hover .blog-card__arrow-outer::after {
  transform: rotate(0deg);
}

.blog-section__right {
  display: flex;
  margin-top: auto;
  flex-direction: column;
}

.blog-section__button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.section-blog-container .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 32px;
  background: #fff;
  color: #000;
  border: 1px solid rgb(145, 145, 145);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.section-blog-container .button:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

/* Outer Brackets & Ring (button__outer) Styling */
.section-blog-container .button__outer {
  position: absolute;
  inset: -8px;
  border-radius: 12px;
  border: 1.5px solid #d8d8d8;
  pointer-events: none;
  overflow: visible;
  transition: border-color 0.35s ease;
}

.section-blog-container .button:hover .button__outer {
  border-color: #d8d8d8;
}

.section-blog-container .button__outer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 24px;
  height: 24px;
  border-top: 2.5px solid #000000;
  border-left: 2.5px solid #000000;
  border-top-left-radius: 12px;
  transform: translate(0, 0);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.25, 1);
}

.section-blog-container .button__outer::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 24px;
  height: 24px;
  border-bottom: 2.5px solid #000000;
  border-right: 2.5px solid #000000;
  border-bottom-right-radius: 12px;
  transform: translate(0, 0);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.25, 1);
}

.section-blog-container .button:hover .button__outer::before {
  top: -1px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 18px;
  height: 0;
  border-left-color: transparent;
  border-top-left-radius: 0;
}

.section-blog-container .button:hover .button__outer::after {
  bottom: -1px;
  right: 50%;
  transform: translate(50%, 0);
  width: 18px;
  height: 0;
  border-right-color: transparent;
  border-bottom-right-radius: 0;
}

@media (max-width: 1024px) {
  .section-blog-container {
    padding: 60px 0;
  }

  .custom-padding {
    padding: 0 40px;
  }

  .blog-section__grid {
    grid-template-columns: auto;
    gap: 32px;
  }

  .blog-section__title {
    font-size: 38px;
    line-height: 1.2;
  }

  .blog-section__subtitle {
    font-size: 38px;
    line-height: 1.2;
    max-width: 100%;
  }

  .blog-section__header {
    margin-bottom: 20px;
  }

  .blog-section__small-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card__title {
    max-width: 100%;
    font-size: 15px;
  }

  .blog-card__title--large {
    font-size: 18px;
  }
}

/* Mobile Screens (< 749px) */
@media (max-width: 749px) {
  .section-blog-container {
    padding: 40px 0;
  }

  .custom-padding {
    padding: 0 16px;
  }

  .blog-section__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-section__title {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .blog-section__subtitle {
    font-size: 26px;
    line-height: 1.25;
    max-width: 100%;
  }

  .blog-section__header {
    margin-bottom: 16px;
  }

  .blog-section__small-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card__cover {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }

  .blog-card--large .blog-card__cover {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }

  .blog-card__badge {
    font-size: 12px;
    line-height: 16px;
    padding: 3px 10px;
    border-radius: 10px;
    bottom: 10px;
    left: 10px;
  }

  .blog-card__info {
    padding-top: 10px;
  }

  .blog-card__date {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .blog-card__title-row {
    gap: 10px;
    align-items: flex-end;
  }

  .blog-card__title {
    font-size: 15px;
    line-height: 1.35;
    max-width: 100%;
    -webkit-line-clamp: 3;
  }

  .blog-card__title--large {
    font-size: 17px;
    line-height: 1.35;
  }

  .blog-card__arrow {
    width: 38px;
    height: 38px;
  }

  .blog-card__arrow-icon {
    width: 14px;
    height: 14px;
  }

  .blog-section__button-wrapper {
    margin-top: 32px;
  }

  .section-blog-container .button {
    padding: 10px 24px;
    font-size: 14px;
    line-height: 20px;
  }
}