/* ==========================================================================
   BLOG UBEZPIECZENIOWY & ARTYKUŁY (A&K WAWRO)
   Zgodność 1:1 z Design System: design_system_typography_rules.md
   ========================================================================== */

/* ==========================================================================
   SEKCJA BLOGA NA STRONIE GŁÓWNEJ (index.html)
   ========================================================================== */
.ak-blog-section {
  padding: 60px 0 70px;
  background-color: var(--ak-bg-white, var(--ak-bg-white));
  border-top: 1px solid rgba(86, 168, 168, 0.15);
}

.ak-blog-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.ak-blog-h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--ak-navy-dark);
  text-align: left;
  line-height: 1.3;
  margin: 0 0 18px 0;
  width: 100%;
  max-width: 100%;
  text-wrap: normal;
  -webkit-text-wrap: normal;
}

.ak-blog-h2 .ak-teal-highlight {
  color: var(--ak-teal-ink);
}

.ak-blog-desc {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ak-text-gray);
  width: 90%;
  max-width: 90%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  box-sizing: border-box;
  margin: 0 0 32px 0;
}

@media (min-width: 769px) {
  .ak-blog-desc {
    margin-left: 20px;
  }
}

.ak-blog-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}

.ak-btn-blog {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 390px;
  background: var(--ak-teal-action-gradient);
  color: var(--ak-text-inverse) !important;
  text-decoration: none;
  padding: 13px 22px 13px 15px;
  border-radius: 50px;
  box-shadow: 0 8px 20px -6px rgba(31, 95, 104, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}

.ak-btn-blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-200%) skewX(-25deg);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.ak-btn-blog:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px -6px rgba(31, 95, 104, 0.55);
  color: var(--ak-text-inverse) !important;
}

.ak-btn-blog:hover::before {
  transform: translateX(400%) skewX(-25deg);
}

.ak-btn-icon-blog {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  margin-right: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.ak-btn-icon-blog svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  fill: var(--ak-text-inverse);
  display: block;
}

.ak-btn-content-blog {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.ak-btn-title-blog {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ak-text-inverse);
}

.ak-btn-subtitle-blog {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 1;
  color: var(--ak-text-inverse);
  margin-top: 2px;
}

/* ==========================================================================
   SEKCJA PODSTRON BLOGA I POJEDYNCZYCH ARTYKUŁÓW
   ========================================================================== */

/* Kontener główny podstrony */
.ak-subpage-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Okruszki chleba (Breadcrumbs) */
.ak-breadcrumbs {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 13.5px;
  color: var(--ak-text-gray);
  margin-bottom: 24px;
  text-align: left;
}

.ak-breadcrumbs a {
  color: var(--ak-teal-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ak-breadcrumbs a:hover {
  text-decoration: underline;
}

.ak-breadcrumbs span {
  margin: 0 6px;
  opacity: 0.6;
}

/* Sekcja Hero / Intro */
.ak-blog-hero-section {
  padding: 40px 0 25px;
  background-color: var(--ak-bg-white, var(--ak-bg-white));
}

.ak-subpage-h1 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  color: var(--ak-text-dark);
  text-align: left;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  line-height: 1.25;
  margin: 0 0 20px 0;
  width: 100%;
  max-width: 100%;
}

.ak-subpage-h1 .ak-teal-highlight {
  color: var(--ak-teal-ink);
}

.ak-subpage-h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--ak-navy-dark);
  text-align: left;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  line-height: 1.35;
  margin: 28px 0 14px 0;
  width: 100%;
  max-width: 100%;
}

.ak-subpage-intro-p {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ak-text-gray);
  margin: 0 0 20px 0;
  width: 90%;
  max-width: 90%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .ak-subpage-intro-p {
    margin-left: 20px;
  }
}

/* Siatka artykułów na stronie głównej bloga */
.ak-blog-grid-section {
  padding: 20px 0 60px;
  background-color: var(--ak-bg-white, var(--ak-bg-white));
}

.ak-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 15px;
}

.ak-blog-card {
  background: var(--ak-bg-white);
  border-radius: 18px;
  border: 1px solid rgba(86, 168, 168, 0.2);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 59, 74, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ak-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 59, 74, 0.1);
}

.ak-blog-card-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background-color: var(--ak-surface-muted);
}

.ak-blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.ak-blog-card:hover .ak-blog-card-img {
  transform: scale(1.04);
}

.ak-blog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(37, 64, 89, 0.9);
  color: var(--ak-text-inverse);
  padding: 5px 12px;
  border-radius: 50px;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.ak-blog-card-content {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ak-blog-card-content h3 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ak-navy-dark);
  line-height: 1.35;
  margin: 0 0 12px 0;
}

.ak-blog-card-content h3 a {
  color: var(--ak-navy-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ak-blog-card-content h3 a:hover {
  color: var(--ak-teal-ink);
}

.ak-blog-card-content p {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #52525b;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.ak-blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ak-teal-ink);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  margin-top: auto;
}

.ak-blog-card-link:hover {
  color: var(--ak-navy-dark);
  transform: translateX(4px);
}

/* Strona Pojedynczego Artykułu (Single Post) */
.ak-article-container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.ak-article-header {
  margin-bottom: 28px;
}

.ak-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 13.5px;
  color: var(--ak-text-subtle);
  margin-bottom: 14px;
}

/* Link autora w nagłówku artykułu (do strony Poznajmy się) */
.ak-article-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ak-article-meta a:hover {
  color: var(--ak-teal-ink);
}

/* Wyróżniona infografika artykułu - pełna widoczność bez obcinania */
.ak-article-hero-img-wrap {
  width: 100%;
  max-height: none;
  height: auto;
  overflow: visible;
  border-radius: 18px;
  margin: 25px 0 35px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: var(--ak-bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

.ak-article-hero-img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  max-height: none;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

.ak-article-body {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ak-text-field);
  margin-bottom: 45px;
}

.ak-article-body h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--ak-navy-dark);
  margin: 36px 0 16px 0;
  line-height: 1.35;
}

.ak-article-body h3 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--ak-navy-dark);
  margin: 28px 0 12px 0;
  line-height: 1.35;
}

.ak-article-body p {
  margin: 0 0 18px 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.ak-article-body ul,
.ak-article-body ol {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
}

.ak-article-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.6;
}

.ak-article-body ul li::before {
  content: '•';
  color: var(--ak-teal-ink);
  position: absolute;
  left: 4px;
  top: 0;
  font-weight: bold;
  font-size: 20px;
  line-height: 1.4;
}

.ak-article-body strong {
  font-weight: 700;
  color: var(--ak-navy-dark);
}

.ak-article-body a {
  color: var(--ak-teal-ink);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.ak-article-body a:hover {
  color: var(--ak-navy-dark);
}

/* Callout Box w Artykule */
.ak-article-callout {
  background: rgba(31, 95, 104, 0.08);
  border-left: 4px solid var(--ak-teal-ink);
  border-radius: 0 16px 16px 0;
  padding: 22px 26px;
  margin: 28px 0;
}

.ak-article-callout p {
  margin: 0;
  font-weight: 500;
  color: var(--ak-navy-dark);
}

/* Sekcja CTA z 3 przyciskami (Zgodna z Design System: Rule 6 & 7) */
.ak-cta-wrapper-section {
  padding: 50px 0 65px;
  background-color: var(--ak-bg-white, var(--ak-bg-white));
  border-top: 1px solid rgba(86, 168, 168, 0.15);
}

.ak-cta-wrapper-section h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--ak-navy-dark);
  text-align: left;
  width: 100%;
  max-width: 100%;
  margin: 0 0 28px 0;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  line-height: 1.3;
}

.wawro-wrapper-x9 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
}

.wawro-btn-x9 {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
  background: var(--ak-teal-action-gradient);
  color: var(--ak-text-inverse) !important;
  text-decoration: none;
  padding: 13px 22px 13px 15px;
  border-radius: 50px;
  box-shadow: 0 8px 20px -6px rgba(31, 95, 104, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}

.wawro-btn-x9::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-200%) skewX(-25deg);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.wawro-btn-x9:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px -6px rgba(31, 95, 104, 0.55);
  color: var(--ak-text-inverse) !important;
}

.wawro-btn-x9:hover::before {
  transform: translateX(400%) skewX(-25deg);
}

.wawro-icon-x9 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  margin-right: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.wawro-icon-x9 svg {
  width: 22px;
  height: 22px;
  fill: var(--ak-text-inverse);
}

.wawro-text-x9,
.wawro-content-x9 {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.wawro-title-x9 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ak-text-inverse);
}

.wawro-sub-x9 {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.95;
  color: var(--ak-text-inverse);
  margin-top: 2px;
}

/* Responsywność dla Mobile */
@media (max-width: 768px) {
  .ak-blog-h2,
  .ak-subpage-h1,
  .ak-subpage-h2,
  .ak-article-body h2,
  .ak-article-body h3,
  .ak-cta-wrapper-section h2 {
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ak-blog-desc,
  .ak-subpage-intro-p {
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ak-blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ak-blog-card-img-wrap {
    height: 200px;
  }

  .ak-article-body p {
    font-size: 15.5px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .ak-article-body li {
    font-size: 15.5px;
    text-align: left;
  }
}

/* ==========================================================================
   RAMKA „KUP ONLINE” W ARTYKUŁACH (2026-10-02): link partnerski do zakupu polisy
   ========================================================================== */
.ak-buy-box {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  margin: 34px 0 6px;
  padding: 24px 26px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(155deg, #2f7482 0%, #1f5f68 55%, #1d4658 100%);
  box-shadow: 0 18px 36px -20px rgba(5, 20, 28, 0.55);
}

.ak-buy-box-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.ak-buy-box-icon svg {
  width: 26px;
  height: 26px;
  fill: #1f5f68;
}

.ak-buy-box p {
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
  margin: 0;
}

.ak-buy-box .ak-buy-box-title {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 8px;
}

.ak-buy-box .ak-buy-box-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.ak-buy-box-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 18px;
}

.ak-buy-box-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 50px;
  background: #ffffff;
  color: #1f5f68;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px -8px rgba(5, 20, 28, 0.55);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ak-buy-box-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ak-buy-box-cta:hover {
  transform: translateY(-3px);
}

.ak-buy-box .ak-buy-box-more {
  color: #ffffff;
  font-weight: 600;
  text-underline-offset: 4px;
}

.ak-buy-box-cta:focus-visible,
.ak-buy-box-more:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.ak-buy-box .ak-buy-box-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
  .ak-buy-box {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 18px;
  }

  .ak-buy-box-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ak-buy-box-cta {
    transition: none;
  }

  .ak-buy-box-cta:hover {
    transform: none;
  }
}
