@charset "UTF-8";
/*
 * Public CMS styles (marketing site: home, pages, blog, FAQ).
 * Extracted from the inline \3c style> blocks of templates/cms/_base.html.twig
 * and templates/cms/home.html.twig. Loaded as the "cms-style" Webpack entry.
 */
/* ---------------------------------------------------------------------------
 * Brand palette
 * ------------------------------------------------------------------------- */
:root {
  --kivi-primary: #1a7f9b;
  --kivi-primary-hover: #156a82;
  --kivi-light: #68adbd;
}

/* ---------------------------------------------------------------------------
 * Layout shell
 * ------------------------------------------------------------------------- */
html, body {
  height: 100%;
}

body {
  background: #f8f9fa;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 70px;
}

/* ---------------------------------------------------------------------------
 * Navbar
 * ------------------------------------------------------------------------- */
.cms-navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /*
   * The app stylesheet (main.scss) sets a global "nav { max-width: 222px }"
   * for the admin sidebar. Since this is a <nav>, neutralize that constraint
   * so the navbar spans the full width on pages that load app.css (auth).
   */
  max-width: none;
  width: auto;
}

/*
 * Self-contained layout so the navbar renders correctly even on pages that do
 * not load Bootstrap's utility CSS (e.g. the auth pages). These rules are
 * scoped under .cms-navbar so they never affect the rest of the page.
 */
.cms-navbar .container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.cms-navbar .d-flex {
  display: flex;
}

.cms-navbar .justify-content-between {
  justify-content: space-between;
}

.cms-navbar .align-items-center {
  align-items: center;
}

.cms-navbar .nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cms-navbar .nav-item {
  list-style: none;
}

.cms-navbar .navbar-brand {
  font-weight: bold;
  color: var(--kivi-light);
  font-size: 1.5rem;
  text-decoration: none;
}

.cms-navbar .navbar-brand:hover {
  color: var(--kivi-primary);
}

.cms-navbar .nav-link {
  color: #333;
  padding: 0.5rem 1rem;
}

.cms-navbar .nav-link:hover,
.cms-navbar .nav-link.active {
  color: var(--kivi-light);
}

/* Dropdown sub-menus */
.cms-navbar .nav-item.has-dropdown {
  position: relative;
}

.cms-navbar .dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cms-navbar .dropdown-toggle .caret {
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 2px;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.cms-navbar .has-dropdown.open > .dropdown-toggle .caret {
  transform: rotate(-135deg);
}

.cms-navbar .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  z-index: 1001;
}

.cms-navbar .nav-item.has-dropdown:hover > .dropdown-menu,
.cms-navbar .nav-item.has-dropdown.open > .dropdown-menu {
  display: block;
}

.cms-navbar .dropdown-menu .nav-link {
  display: block;
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
}

.cms-navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #333;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .cms-navbar {
    width: 100%;
  }
  .cms-navbar .container {
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .cms-navbar-toggler {
    display: block;
  }
  .cms-navbar .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
  }
  .cms-navbar .nav.open {
    display: flex;
  }
  .cms-navbar .nav-item {
    width: 100%;
  }
  .cms-navbar .nav-link {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #eee;
  }
  .cms-navbar .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  /* Dropdown becomes an inline, indented sub-list on mobile */
  .cms-navbar .nav-item.has-dropdown {
    position: static;
  }
  .cms-navbar .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: #f7f9fb;
  }
  .cms-navbar .nav-item.has-dropdown.open > .dropdown-menu {
    display: block;
  }
  .cms-navbar .nav-item.has-dropdown:hover > .dropdown-menu {
    display: none;
  }
  .cms-navbar .dropdown-menu .nav-link {
    padding-left: 2.5rem;
  }
}
/* ---------------------------------------------------------------------------
 * Main content area
 * ------------------------------------------------------------------------- */
.cms-main {
  padding: 2rem 0;
  flex: 1;
}

.cms-main.cms-main-fullwidth {
  padding: 0;
}

.cms-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cms-content h1 {
  margin-bottom: 1.5rem;
  color: #333;
}

.cms-content .content {
  line-height: 1.8;
  color: #1f2d33;
}

.cms-content .content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Generic page typography: clear heading hierarchy and readable line length. */
.cms-content h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cms-content .content h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  color: #1f2d33;
  margin: 2.5rem 0 1rem;
}

.cms-content .content h3 {
  font-size: 1.2rem;
  color: var(--kivi-primary);
  margin: 1.75rem 0 0.5rem;
}

/* Readable measure for running text on wide screens. */
.cms-content .content p,
.cms-content .content ul,
.cms-content .content ol {
  max-width: 70ch;
}

.cms-content .content hr {
  border: 0;
  border-top: 1px solid #e7edf0;
  margin: 2.5rem 0;
}

/* A paragraph holding only CTA buttons lays them side by side. */
.cms-content .cms-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: none;
  margin: 1.5rem 0;
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------- */
.cms-footer {
  background: #fff;
  padding: 1.5rem 0;
  border-top: 1px solid #e9ecef;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------- */
.cms-btn {
  background: var(--kivi-primary);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  border: 2px solid var(--kivi-primary);
  transition: all 0.2s ease;
}

.cms-btn:hover {
  background: var(--kivi-primary-hover);
  border-color: var(--kivi-primary-hover);
  color: white;
}

.cms-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cms-btn-outline:hover {
  background: white;
  color: var(--kivi-primary);
}

/* ---------------------------------------------------------------------------
 * Anchor offset + scroll-to-top
 * ------------------------------------------------------------------------- */
/* Offset for anchor links to account for fixed navbar */
[id] {
  scroll-margin-top: 80px;
}

#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--kivi-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-to-top:hover {
  background: var(--kivi-primary-hover);
}

/* ---------------------------------------------------------------------------
 * FAQ contextual help popup (from _base.html.twig second style block)
 * ------------------------------------------------------------------------- */
[data-help-context] {
  position: relative;
}

[data-help-context]:hover::after {
  content: "\f059";
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  margin-left: 5px;
  color: #6c757d;
}

.faq-popup-content {
  padding: 10px 0;
}

.faq-popup-title {
  margin-bottom: 15px;
  color: #333;
}

.faq-popup-body {
  line-height: 1.6;
  margin-bottom: 20px;
}

.faq-popup-footer {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* ---------------------------------------------------------------------------
 * Home page content (from home.html.twig style block)
 * ------------------------------------------------------------------------- */
.cms-home-content {
  background: #fff;
}

/* ---------------------------------------------------------------------------
 * Home page — visual layout (hero, CTA buttons, card grids, typography).
 * Applied to content processed by App\Service\Cms\CmsContentRenderer, which
 * wraps the leading block in .cms-hero, turns "[Label]" markers into .cms-btn
 * buttons and groups "<h3> + text" sequences into .cms-card-grid.
 * ------------------------------------------------------------------------- */
/* Constrain the home content and give sections consistent vertical rhythm. */
.cms-home-content {
  background: #fff;
  color: var(--cms-ink, #1f2d33);
}

.cms-home-content > * {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section headings and body inside the home content. */
.cms-home-content h2 {
  font-size: 2rem;
  line-height: 1.2;
  text-align: center;
  color: #1f2d33;
  margin: 0 auto 1.5rem;
  padding-top: 80px;
}

.cms-home-content h3 {
  color: var(--kivi-primary);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

/* Readable line length for running text. */
.cms-home-content p {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Separators only create rhythm; hide the rule itself. */
.cms-home-content hr {
  border: 0;
  margin: 0;
  max-width: none;
  padding: 0;
}

/* Real images inserted via CKEditor. */
.cms-home-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------- */
.cms-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 24px;
}

.cms-hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1f2d33;
  margin: 0 0 1.25rem;
}

.cms-hero h2 {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.4;
  color: #5b6b72;
  text-align: left;
  padding-top: 0;
  margin: 0 0 1.5rem;
}

.cms-hero p {
  font-size: 1.1rem;
  color: #5b6b72;
  margin-left: 0;
  margin-right: 0;
}

.cms-hero blockquote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

/* Full-width centered hero (no real image yet). */
.cms-hero--full {
  text-align: center;
}

.cms-hero--full .cms-hero__text {
  max-width: 760px;
  margin: 0 auto;
}

.cms-hero--full h2 {
  text-align: center;
}

.cms-hero--full p {
  margin-left: auto;
  margin-right: auto;
}

.cms-hero--full .cms-cta-group {
  justify-content: center;
}

/* Two-column split hero (a real image is present). */
.cms-hero--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.cms-hero__visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 58, 71, 0.18);
}

/* ---------------------------------------------------------------------------
 * CTA buttons
 * ------------------------------------------------------------------------- */
.cms-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: none;
  margin-top: 2rem;
}

/* Primary / outline buttons restyled for light backgrounds. */
.cms-home-content .cms-btn,
.cms-content .cms-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--kivi-primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid var(--kivi-primary);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cms-home-content .cms-btn:hover,
.cms-content .cms-btn:hover {
  background: var(--kivi-primary-hover);
  border-color: var(--kivi-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 127, 155, 0.25);
}

.cms-home-content .cms-btn:focus-visible,
.cms-content .cms-btn:focus-visible {
  outline: 3px solid var(--kivi-light);
  outline-offset: 2px;
}

.cms-home-content .cms-btn:active,
.cms-content .cms-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.cms-home-content .cms-btn-outline,
.cms-content .cms-btn-outline {
  background: transparent;
  color: var(--kivi-primary);
}

.cms-home-content .cms-btn-outline:hover,
.cms-content .cms-btn-outline:hover {
  background: rgba(26, 127, 155, 0.08);
  color: var(--kivi-primary-hover);
  box-shadow: none;
}

/* ---------------------------------------------------------------------------
 * Card grids ("Pour qui", "Ce qui change", "Comment ça marche")
 * ------------------------------------------------------------------------- */
.cms-card-grid {
  display: grid;
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto 1rem;
  padding: 0 24px;
  grid-template-columns: repeat(3, 1fr);
}

.cms-card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cms-card {
  background: #fff;
  border: 1px solid #e7edf0;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 58, 71, 0.12);
}

.cms-card h3 {
  margin-top: 0;
}

.cms-card p {
  max-width: none;
  margin: 0;
  color: #5b6b72;
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Photo markers / images inside cards keep the grid tidy. */
.cms-card blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .cms-hero {
    padding: 48px 20px;
  }
  .cms-hero--split {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .cms-hero h1 {
    font-size: 2.1rem;
  }
  .cms-hero h2 {
    font-size: 1.2rem;
    text-align: center;
  }
  .cms-home-content h2 {
    font-size: 1.6rem;
    padding-top: 48px;
  }
  .cms-cta-group {
    justify-content: center;
  }
  .cms-cta-group .cms-btn {
    width: 100%;
    justify-content: center;
  }
  .cms-card-grid,
  .cms-card-grid--4 {
    grid-template-columns: 1fr;
  }
}
/* ---------------------------------------------------------------------------
 * Tarifs page — price cards + scrollable comparison tables
 * Applied to content processed by CmsContentRenderer::renderTarifs(), which
 * transposes the forfait table into .cms-price-grid > .cms-price-card and
 * wraps wide comparison tables in .cms-table-scroll.
 * ------------------------------------------------------------------------- */
.cms-price-grid {
  display: grid;
  gap: 24px;
  max-width: 1140px;
  margin: 2rem auto;
  padding: 0 24px;
  grid-template-columns: repeat(3, 1fr);
}

.cms-price-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.cms-price-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7edf0;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 2px 6px rgba(15, 58, 71, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cms-price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 58, 71, 0.12);
}

/* Highlight the middle card as the recommended plan. */
.cms-price-grid--3 .cms-price-card:nth-child(2) {
  border-color: var(--kivi-primary);
  box-shadow: 0 12px 32px rgba(26, 127, 155, 0.18);
}

.cms-price-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--kivi-primary);
  margin-bottom: 0.5rem;
}

.cms-price-card__price {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: #1f2d33;
  margin-bottom: 1.25rem;
}

.cms-price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex: 1;
}

.cms-price-card__features li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0f4f6;
  font-size: 0.95rem;
  color: #5b6b72;
  line-height: 1.5;
}

.cms-price-card__features li:last-child {
  border-bottom: 0;
}

.cms-price-card__features strong {
  color: #1f2d33;
  font-weight: 600;
}

/* The CTA sits at the bottom of every card, full width. */
.cms-price-card__cta {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

/* Wide comparison tables: horizontal scroll on small screens. */
.cms-table-scroll {
  max-width: 1140px;
  margin: 1.5rem auto;
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cms-table-scroll table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.cms-table-scroll th,
.cms-table-scroll td {
  padding: 12px 16px;
  border-bottom: 1px solid #e7edf0;
  text-align: left;
  font-size: 0.95rem;
}

.cms-table-scroll thead th {
  background: #f0f5f7;
  color: #1f2d33;
  font-weight: 700;
  position: sticky;
  top: 0;
}

/* Generic small tables inside CMS content stay readable too. */
.cms-content .content table:not(.cms-table-scroll table) {
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.cms-content .content table:not(.cms-table-scroll table) th,
.cms-content .content table:not(.cms-table-scroll table) td {
  padding: 10px 14px;
  border: 1px solid #e7edf0;
}

@media (max-width: 768px) {
  .cms-price-grid,
  .cms-price-grid--2,
  .cms-price-grid--3 {
    grid-template-columns: 1fr;
  }
  .cms-price-grid--3 .cms-price-card:nth-child(2) {
    order: -1;
  }
}
/* ---------------------------------------------------------------------------
 * CMS support / ticket pages
 * Extracted from the inline \3c style> blocks of the anonymous support templates
 * (create / show). Shared by templates/cms/support/create.html.twig,
 * templates/cms/support/show.html.twig and the support/_conversation partial.
 * ------------------------------------------------------------------------- */
.guest-support-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.guest-support-header {
  background: linear-gradient(135deg, var(--kivi-primary), var(--kivi-light));
  color: white;
  padding: 2rem;
  border-radius: 12px 12px 0 0;
}

.guest-support-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.guest-support-body {
  background: white;
  padding: 2rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-hint {
  background: #e3f2fd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.faq-hint i {
  color: var(--kivi-primary);
}

.ticket-info-bar {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ticket-info-item {
  display: flex;
  flex-direction: column;
}

.ticket-info-item small {
  color: #6c757d;
  font-size: 0.75rem;
}

.ticket-info-item strong {
  font-size: 0.9rem;
}

.ticket-description {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.ticket-description h6 {
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.ticket-timeline {
  padding: 1rem 0;
}

.ticket-message {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  max-width: 85%;
}

.ticket-message.from-creator {
  background: #e3f2fd;
  margin-left: auto;
  border-bottom-right-radius: 0;
}

.ticket-message.from-admin {
  background: #f5f5f5;
  margin-right: auto;
  border-bottom-left-radius: 0;
}

.ticket-message.from-system {
  background: #fff3e0;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
  max-width: 60%;
}

.ticket-message-header {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.ticket-message-content {
  word-break: break-word;
  line-height: 1.6;
}

.ticket-reply-form {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------------------
 * Blog listing (sections by category + card grid)
 * ------------------------------------------------------------------------- */
.blog-section {
  margin-top: 2.5rem;
}

.blog-section__title {
  font-size: 1.4rem;
  color: var(--kivi-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--kivi-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e9ec;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 10px 24px rgba(26, 127, 155, 0.15);
  transform: translateY(-3px);
}

.blog-card__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eef3f5;
}

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

.blog-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--kivi-primary), var(--kivi-light));
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.1rem 1.25rem 1.25rem;
}

.blog-card__badge {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--kivi-primary);
  border-radius: 999px;
}

.blog-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__title a {
  color: #1f2933;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--kivi-primary);
}

.blog-card__meta {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: #7a8691;
}

.blog-card__author {
  margin-left: 0.4rem;
}

.blog-card__excerpt {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: #4a5560;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__link {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.88rem;
}

@media (max-width: 991.98px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  .blog-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
  }
}
