/* ==========================================================================
   RECENT BLOG SECTION — GMC Web
   Sequence Color: White (#ffffff) alternating with Blue (#f8faff) Testimonial
   Theme Tokens: #273437 (heading), #3478ed (primary accent), #667796 (body)
   ========================================================================== */

.gmc-blog-section,
.gmc-blog-section * {
  box-sizing: border-box;
}

.gmc-blog-section {
  width: 100%;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  font-family: "Poppins", Arial, sans-serif;
}

.gmc-blog-section::before {
  content: "";
  width: 600px;
  height: 600px;
  position: absolute;
  top: -360px;
  right: -230px;
  border-radius: 50%;
  pointer-events: none;
}

.gmc-blog-inner {
  position: relative;
  z-index: 2;
}

/* ==============================
   SECTION HEADING
============================== */

.gmc-blog-heading {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 45px;
  text-align: center;
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.gmc-blog-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid #d6e4ff;
  border-radius: 30px;
  background: #f1f6ff;
  color: #3478ed;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gmc-blog-eyebrow-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  display: block;
  border-radius: 50%;
  background: #6d9df5;
  box-shadow: 0 0 0 4px #dce9ff;
}

.gmc-blog-title {
  width: 100%;
  margin: 18px auto 0;
  color: #273437;
  font-size: clamp(26px, 3.2vw, 35px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.gmc-blog-title-accent {
  display: inline;
  margin: 0;
  color: #3478ed;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.gmc-blog-description {
  width: 100%;
  max-width: 760px;
  margin: 12px auto 0;
  color: #667796;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
  text-align: center;
}

/* ==============================
   BLOG GRID & SIZING
============================== */

.gmc-blog-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}

/* ==============================
   BLOG CARDS
============================== */

.gmc-blog-card {
  min-width: 0;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(52, 120, 237, 0.12);
  border-radius: 16px;
  box-shadow:
    0 8px 24px rgba(39, 52, 55, 0.05),
    0 2px 6px rgba(39, 52, 55, 0.02);
  transition:
    opacity 0.75s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.gmc-blog-card-link {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.gmc-blog-card-link:focus-visible {
  outline: 3px solid rgba(52, 120, 237, 0.45);
  outline-offset: -3px;
}

/* ==============================
   BLOG IMAGES
============================== */

.gmc-blog-image-wrap {
  width: calc(100% - 24px);
  margin: 12px 12px 0 12px;
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f5f9;
}

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

.gmc-blog-category {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(52, 120, 237, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #3478ed;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(39, 52, 55, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ==============================
   CARD CONTENT
============================== */

.gmc-blog-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px 20px;
}

.gmc-blog-card-title {
  margin: 0;
  color: #273437;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.015em;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

/* ==============================
   AUTHOR INFORMATION
============================== */

.gmc-blog-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f0f4f9;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gmc-blog-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(39, 52, 55, 0.08);
}

.gmc-blog-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gmc-blog-author-details {
  min-width: 0;
  text-align: left;
}

.gmc-blog-author {
  display: block;
  color: #273437;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}

.gmc-blog-date {
  display: block;
  margin-top: 2px;
  color: #718096;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
}

/* ==============================
   BUTTON
============================== */

.gmc-blog-action {
  margin-top: 45px;
  display: flex;
  justify-content: center;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.gmc-blog-button {
  min-width: 205px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border: 1.5px solid #3478ed;
  border-radius: 12px;
  background: #ffffff;
  color: #3478ed;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(52, 120, 237, 0.08);
  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gmc-blog-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  transition: transform 0.3s ease;
}

/* ==============================
   HOVER EFFECTS
============================== */

@media (hover: hover) {
  .gmc-blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 120, 237, 0.3);
    box-shadow:
      0 20px 45px rgba(39, 52, 55, 0.09),
      0 4px 14px rgba(39, 52, 55, 0.03);
  }

  .gmc-blog-card:hover .gmc-blog-image {
    transform: scale(1.04);
  }

  .gmc-blog-card:hover .gmc-blog-card-title {
    color: #3478ed;
  }

  .gmc-blog-button:hover {
    color: #ffffff;
    background: #3478ed;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(52, 120, 237, 0.22);
  }

  .gmc-blog-button:hover svg {
    transform: translateX(4px);
  }
}

/* ==============================
   SCROLL ANIMATION
============================== */

.gmc-blog-section.has-reveal .gmc-blog-heading {
  opacity: 0;
  transform: translateY(28px);
}

.gmc-blog-section.has-reveal .gmc-blog-card {
  opacity: 0;
  transform: translateY(45px);
}

.gmc-blog-section.has-reveal .gmc-blog-action {
  opacity: 0;
  transform: translateY(20px);
}

.gmc-blog-section.has-reveal.is-visible .gmc-blog-heading,
.gmc-blog-section.has-reveal.is-visible .gmc-blog-card,
.gmc-blog-section.has-reveal.is-visible .gmc-blog-action {
  opacity: 1;
  transform: translateY(0);
}

.gmc-blog-section.has-reveal.is-visible .gmc-blog-card:nth-child(1) {
  transition-delay: 0.1s;
}

.gmc-blog-section.has-reveal.is-visible .gmc-blog-card:nth-child(2) {
  transition-delay: 0.2s;
}

.gmc-blog-section.has-reveal.is-visible .gmc-blog-card:nth-child(3) {
  transition-delay: 0.3s;
}

.gmc-blog-section.has-reveal.is-visible .gmc-blog-action {
  transition-delay: 0.38s;
}

/* ==============================
   TABLET RESPONSIVENESS
============================== */

@media (max-width: 991px) {
  .gmc-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .gmc-blog-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    margin: 0 auto;
  }
}

/* ==============================
   MOBILE RESPONSIVENESS
============================== */

@media (max-width: 768px) {
  .gmc-blog-section {
    padding: 70px 0;
  }

  .gmc-blog-title {
    white-space: normal !important;
    font-size: clamp(24px, 6vw, 30px);
  }
}

@media (max-width: 640px) {
  .gmc-blog-heading {
    margin-bottom: 30px;
  }

  .gmc-blog-description {
    font-size: 14px;
    line-height: 1.65;
  }

  .gmc-blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gmc-blog-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .gmc-blog-card {
    border-radius: 14px;
  }

  .gmc-blog-image-wrap {
    margin: 10px 10px 0 10px;
    width: calc(100% - 20px);
    border-radius: 10px;
  }

  .gmc-blog-card-content {
    padding: 15px 16px 16px 16px;
  }

  .gmc-blog-card-title {
    font-size: 16px;
    min-height: auto;
  }

  .gmc-blog-action {
    margin-top: 30px;
  }

  .gmc-blog-button {
    width: 100%;
    max-width: 280px;
  }
}

/* ==============================
   REDUCED MOTION
============================== */

@media (prefers-reduced-motion: reduce) {
  .gmc-blog-heading,
  .gmc-blog-card,
  .gmc-blog-action,
  .gmc-blog-image,
  .gmc-blog-button,
  .gmc-blog-button svg {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
