/**
 * Good Practice Single Page Styles
 *
 * @package Goz
 */

/* Main Good Practice Single Page Styles */
.good-practice-single {
  background-color: #fff;
}

.good-practice-content {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 60px var(--container-padding);
}

.good-practice-header {
  margin-bottom: 40px;
}

.good-practice-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Practice Description Section */
.practice-description h2,
.practice-strategies h2,
.practice-contact h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--goz-primary);
  margin-bottom: 24px;
}

.description-content {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.description-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--goz-primary);
  margin: 24px 0 16px 0;
}

.description-content p {
  margin-bottom: 16px;
}

.description-content ul,
.description-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.description-content li {
  margin-bottom: 8px;
}

/* Strategy Buttons Section */
.strategies-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.strategy-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--goz-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid var(--goz-primary);
}

.strategy-button:hover {
  background: var(--goz-primary-button);
  color: #ffffff;
  text-decoration: none;
}

.strategy-button:active {
  transform: translateY(1px);
}

.strategy-button-disabled {
  background: var(--goz-gray-bg);
  color: var(--goz-secondary);
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}

.strategy-button-disabled:hover {
  transform: none;
  box-shadow: none;
  background: var(--goz-gray-bg);
}

/* Contact Icons Section */
.practice-contact-icons {
  margin-bottom: 32px;
}

.contact-icons-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px;
  background-color: var(--goz-gray-bg);
  border-radius: 12px;
  border: 1px solid rgba(106, 118, 148, 0.1);
}

.contact-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--goz-secondary);
  transition: all 0.3s ease;
  padding: 12px;
  border-radius: 8px;
  min-width: 80px;
}

.contact-icon-link:hover {
  color: var(--goz-accent);
  background-color: rgba(4, 108, 181, 0.05);
  transform: translateY(-2px);
  text-decoration: none;
}

.contact-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.contact-icon-link:hover .contact-icon {
  stroke: var(--goz-accent);
  transform: scale(1.1);
}

.contact-label {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: inherit;
  transition: color 0.3s ease;
}

/* Read More Button */
.practice-read-more {
  text-align: center;
  margin-top: 24px;
}

.read-more-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--goz-primary-button);
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(199, 71, 231, 0.25);
  border: none;
  cursor: pointer;
}

.read-more-button:hover {
  background: var(--goz-primary-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(199, 71, 231, 0.35);
  color: #ffffff;
  text-decoration: none;
}

.read-more-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(199, 71, 231, 0.25);
}

.read-more-icon {
  transition: transform 0.3s ease;
}

.read-more-button:hover .read-more-icon {
  transform: translateX(2px);
}

/* Related Practices Section */
.related-practices {
  background-color: var(--goz-gray-bg);
  padding: 60px 0;
}

.related-practices h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--goz-primary);
  text-align: center;
  margin-bottom: 40px;
}

.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.practice-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.practice-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.practice-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.practice-card:hover .practice-thumbnail img {
  transform: scale(1.05);
}

.practice-content {
  padding: 24px;
}

.practice-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.practice-content h3 a {
  color: var(--goz-primary);
  text-decoration: none;
}

.practice-content h3 a:hover {
  color: var(--goz-accent);
}

.practice-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 16px;
}

.practice-meta-small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.practice-meta-small .company {
  font-weight: 500;
  color: var(--goz-secondary);
}

.practice-meta-small .year {
  font-weight: 500;
}

/* Alternative Related Practices Section */
.related-practices .container {
  max-width: 1456px;
  margin: 0 auto;
  padding: 0 24px;
}

.related-practices h2 {
  font-family: "Inter", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #213361;
  margin-bottom: 40px;
  text-align: center;
}

/* Post Cards Grid for Related Practices */
.post-cards-grid {
  display: grid;
  gap: 35px;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  max-width: 1456px;
  margin: 0 auto;
}

/* Post card image fix for related practices */
.related-practices .post-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.related-practices .post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .good-practice-content {
    padding: 40px var(--container-padding);
  }

  .good-practice-body {
    gap: 32px;
  }

  .practice-description h2,
  .practice-strategies h2,
  .practice-contact h2 {
    font-size: 24px;
  }

  .related-practices h2 {
    font-size: 28px;
  }

  .practices-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .read-more-button {
    padding: 12px 24px;
    font-size: 15px;
  }

  .contact-icons-container {
    gap: 16px;
    padding: 20px;
  }

  .contact-icon-link {
    min-width: 70px;
    padding: 10px;
  }

  .contact-icon {
    width: 20px;
    height: 20px;
  }

  .contact-label {
    font-size: 11px;
  }

  /* Related practices responsive */
  .related-practices {
    padding: 40px 0;
  }

  .related-practices .container {
    padding: 0 20px;
  }

  .related-practices h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .post-cards-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  /* Responsive strategy buttons */
  .strategies-buttons {
    gap: 10px;
  }

  .strategy-button {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .good-practice-content {
    padding: 30px var(--container-padding);
  }

  .practice-content {
    padding: 20px;
  }

  .practice-content h3 {
    font-size: 16px;
  }

  .contact-icons-container {
    gap: 12px;
    padding: 16px;
  }

  .contact-icon-link {
    min-width: 60px;
    padding: 8px;
  }

  .contact-icon {
    width: 18px;
    height: 18px;
  }

  .contact-label {
    font-size: 10px;
  }

  /* Responsive strategy buttons */
  .strategies-buttons {
    gap: 8px;
  }

  .strategy-button {
    padding: 6px 14px;
    font-size: 12px;
  }
}

/* --- New Sections: Action, Effects, Innovation, Takeaways --- */

.goz-practice-section {
  margin-bottom: 60px;
}

.goz-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--goz-primary);
  margin-bottom: 32px;
}

/* Wyzwanie - Aesthetic Simple Card */
.goz-challenge-section {
  margin-bottom: 40px;
}

.goz-challenge-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Softer shadow */
  border: none; /* No borders */
  overflow: hidden;
  position: relative;
  /* Clean, simple look */
}

.goz-challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 32px 0; /* No bottom padding, flows into content */
  border-bottom: none; /* No separator */
  background-color: #fff;
}

.goz-challenge-header .goz-section-title {
  margin: 0;
  font-size: 24px;
  color: var(--goz-primary);
}

.goz-challenge-icon-wrapper {
  width: 24px; /* Slightly smaller, more elegant */
  height: 24px;
  color: var(--goz-primary);
  opacity: 1;
}

.goz-challenge-card .goz-section-content {
  padding: 16px 32px 32px; /* Less top padding to sit close to header */
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

.goz-challenge-card p {
  margin-bottom: 1.5em;
}

.goz-challenge-card p:last-child {
  margin-bottom: 0;
}

.goz-challenge-card ul,
.goz-challenge-card ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.goz-challenge-card li {
  margin-bottom: 0.5em;
}

@media (max-width: 768px) {
  .goz-challenge-header,
  .goz-challenge-card .goz-section-content {
    padding: 20px;
  }
}

/* Opis działania */
.goz-action-description .goz-section-content {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.goz-action-description p {
  margin-bottom: 1.5em;
}

.report-content .goz-action-description .goz-section-content p:last-child {
  margin-bottom: 0;
}

/* Efekty - Cards with Icons */
.goz-effects-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.goz-effect-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px; /* Reduced from 32px to 20px */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: row; /* Horizontal layout for full width */
  align-items: center;
  gap: 20px;
}

.goz-effect-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(4, 108, 181, 0.1); /* goz-primary with opacity */
  border-radius: 50%;
  color: var(--goz-primary);
}

.goz-effect-icon img,
.goz-effect-icon svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.goz-effect-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--goz-primary);
  line-height: 1.3;
}

.goz-effect-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 768px) {
  .goz-effect-card {
    flex-direction: column;
  }
}

/* Innowacyjność - Aesthetic Simple Card */
.goz-innovation-section {
  margin-bottom: 40px;
}

.goz-innovation-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: none;
  overflow: hidden;
  position: relative;
}

.goz-innovation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 32px 0;
  border-bottom: none;
  background-color: #fff;
}

.goz-innovation-header .goz-section-title {
  margin: 0;
  font-size: 24px;
  color: var(--goz-primary);
}

.goz-innovation-icon-wrapper {
  width: 24px;
  height: 24px;
  color: var(--goz-primary);
  opacity: 1;
}

.goz-innovation-card .goz-section-content {
  padding: 16px 32px 32px;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

.goz-innovation-card p {
  font-size: 18px;
  line-height: 1.8;
  color: #213361;
  margin-bottom: 1em;
}

.goz-innovation-card p:last-child {
  margin-bottom: 0;
}

/* Insulate cards from global report styles */
.report-content .goz-effect-card p,
.report-content .goz-takeaway-card p {
  margin-bottom: 12px; /* reduced from global 24px */
}

.report-content .goz-effect-card p:last-child,
.report-content .goz-takeaway-card p:last-child {
  margin-bottom: 0;
}

/* Kluczowe Wnioski - Distinct Cards */
.goz-takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  counter-reset: takeaway-counter;
}

.goz-takeaway-card {
  background-color: var(--goz-primary);
  color: #fff;
  border-radius: 12px;
  padding: 24px; /* Reduced padding from 32px to 24px */
  position: relative;
  overflow: hidden;
  counter-increment: takeaway-counter;
  border: none;
  z-index: 1;
}

/* Stylish Numbering Background */
.goz-takeaway-card::before {
  content: counter(takeaway-counter);
  position: absolute;
  bottom: -25px;
  right: 10px;
  font-size: 140px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  pointer-events: none;
  z-index: -1;
  font-family: var(--font-headings, sans-serif);
}

.goz-takeaway-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  position: relative;
  z-index: 2;
}

.goz-takeaway-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .goz-section-title {
    font-size: 24px;
  }

  .goz-innovation-box {
    padding: 24px;
  }

  .goz-innovation-box p {
    font-size: 16px;
  }
}
