/* ==========================================
   STYLE PSYCHOLOG ILONA PRZYBYŁA
   ========================================== */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f9f7f4;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4, .btn-primary {
  font-family: 'Fredoka', sans-serif;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   HEADER (wspólny dla wszystkich stron)
   ========================================== */
header {
  background: linear-gradient(135deg, #e7ddd1 0%, #d4c4b5 100%);
  padding: 40px 0 50px;
  text-align: center;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 4px 20px rgba(92, 75, 58, 0.1);
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 100px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

header h1 {
  font-size: 2.2rem;
  color: #5c4b3a;
  font-weight: 600;
  margin-bottom: 0;
}

header h2 {
  font-size: 1.1rem;
  color: #7a6652;
  font-weight: 400;
  max-width: 600px;
}

/* ==========================================
   PRZYCISKI
   ========================================== */
.btn-primary {
  display: inline-block;
  background: #7a6652;
  color: #fff;
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(122, 102, 82, 0.3);
}

.btn-primary:hover {
  background: #5c4b3a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 102, 82, 0.4);
}

/* ==========================================
   SEKCJE STRONY GŁÓWNEJ
   ========================================== */

/* Section headings */
section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
  color: #7a6652;
  line-height: 1.2;
}

/* About Section */
.about {
  padding: 60px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-photo {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.benefit-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  object-fit: contain;
}

.benefit-card h3 {
  color: #7a6652;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* Experience */
.experience {
  padding: 60px 0;
}

.experience ul {
  max-width: 800px;
  margin: 0 auto;
  list-style-type: disc;
  padding-left: 20px;
}

.experience li {
  margin-bottom: 15px;
}

/* Reviews */
.reviews {
  background: #ece2d9;
  padding: 60px 0;
  text-align: center;
}

.review-card {
  background: #fff;
  padding: 30px;
  margin: 20px auto;
  max-width: 700px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-style: italic;
  color: #5c4b3a;
  font-size: 1.05rem;
}

/* Blog / Porady */
.blog-section {
  padding: 60px 0;
  background: #f9f7f4;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e7ddd1;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: #d4c4b0;
}

.blog-card h3 {
  color: #5c4b3a;
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-card p {
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.7;
}

.blog-card a {
  display: inline-flex;
  align-items: center;
  color: #7a6652;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  margin-top: auto;
}

.blog-card a:hover {
  color: #5c4b3a;
  transform: translateX(5px);
}

.blog-card a::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s;
}

.blog-card a:hover::after {
  transform: translateX(3px);
}

/* Hero / CTA */
.hero-cta {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  padding: 60px 20px;
  margin: 50px auto 0 auto;
  max-width: 1200px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero-text {
  width: 100%;
  max-width: 800px;
  z-index: 2;
}

.hero-cta h2.white-text {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.hero-cta .hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-cta .btn-primary {
  padding: 15px 35px;
  border-radius: 12px;
  font-size: 1.1rem;
  margin-bottom: 15px;
  border: 2px solid transparent;
}

.hero-cta .btn-primary:hover {
  border-color: #fff;
}

.hero-cta .hero-info {
  font-size: 0.95rem;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   STYLE ARTYKUŁÓW (podstrony /porady/)
   ========================================== */

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  color: #7a6652;
  margin-bottom: 30px;
  opacity: 0.8;
}

.breadcrumbs a {
  color: #7a6652;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: #5c4b3a;
  text-decoration: underline;
}

/* Article page wrapper */
.article-page {
  padding: 40px 0 60px;
}

/* Article container */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e7ddd1;
}

.article-title {
  font-size: 2.5rem;
  color: #5c4b3a;
  line-height: 1.2;
  margin-bottom: 15px;
}

.article-meta {
  color: #7a6652;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Article content */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.article-content .lead {
  font-size: 1.25rem;
  color: #5c4b3a;
  line-height: 1.7;
  margin-bottom: 30px;
}

.article-content h3 {
  font-size: 1.8rem;
  color: #7a6652;
  margin: 40px 0 20px;
  padding-top: 20px;
}

.article-content h4 {
  font-size: 1.4rem;
  color: #5c4b3a;
  margin: 25px 0 15px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul {
  margin: 20px 0;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 10px;
  position: relative;
}

.article-content li::before {
  content: "•";
  color: #7a6652;
  font-weight: bold;
  position: absolute;
  left: -20px;
}

/* Highlight boxes */
.highlight-box {
  background: #f9f7f4;
  border-left: 4px solid #7a6652;
  padding: 25px;
  margin: 30px 0;
  border-radius: 10px;
}

.highlight-box h4 {
  margin-top: 0;
  color: #5c4b3a;
}

.highlight-box h4:first-child {
  margin-top: 0;
}

.highlight-box h4:not(:first-child) {
  margin-top: 20px;
}

.highlight-box p {
  margin-bottom: 15px;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* CTA box */
.cta-box {
  background: #e7ddd1;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  margin: 40px 0;
}

.cta-box h3 {
  color: #5c4b3a;
  margin-bottom: 15px;
}

.cta-box p {
  margin-bottom: 20px;
}

/* Article footer */
.article-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e7ddd1;
  text-align: center;
}

.article-tags {
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  background: #7a6652;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin: 5px;
}

/* ==========================================
   FOOTER (wspólny)
   ========================================== */
footer {
  background: #5c4b3a;
  color: #e7ddd1;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

footer p {
  font-size: 0.9rem;
}



/* ==========================================
   KLIKALNE KAFELKI W SEKCJI PORADY — POPRAWIONE
   ========================================== */

.blog-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  height: 100%;
  cursor: pointer; /* pokazuje, że to klikalne */
  text-underline-offset: 0;
  text-decoration-skip-ink: none;
}

/* WYŁĄCZ PODKREŚLENIE DLA KAŻDEGO ELEMENTU WEWNĄTRZ */
.blog-card-link * {
  text-decoration: none !important;
}

/* Styl kafelka */
.blog-card-link .blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Efekt hover */
.blog-card-link:hover .blog-card {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: #d4c4b0;
}

/* Styl "Czytaj dalej" */
.read-more {
  display: inline-flex;
  align-items: center;
  color: #7a6652;
  font-weight: 700;
  font-size: 1rem;
  margin-top: auto;
  text-decoration: none;
  transition: all 0.3s;
}

.read-more:hover {
  color: #5c4b3a;
  text-decoration: underline; /* opcjonalnie — możesz też dać none */
}

.read-more::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s;
}

.read-more:hover::after {
  transform: translateX(3px);
}



/* ZnanyLekarz logo pod przyciskiem */
.znanylekarz-logo {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.znanylekarz-logo img {
  max-width: 240px !important;
  width: 100%;
  height: auto;
  opacity: 0.95;
  transition: transform 0.3s ease;
}

.znanylekarz-logo img:hover {
  transform: scale(1.05);
}



/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
  header h1 {
    font-size: 1.8rem;
  }
  
  header h2 {
    font-size: 1rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-photo {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .article-container {
    padding: 30px;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .hero-cta h2.white-text {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  header {
    padding: 30px 0 40px;
    border-radius: 0 0 25px 25px;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  header h2 {
    font-size: 0.9rem;
  }
  
  .logo {
    height: 100px;
  }
  
  .article-page {
    padding: 20px 0 40px;
  }
  
  .article-container {
    padding: 25px;
    border-radius: 15px;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-content h3 {
    font-size: 1.5rem;
  }
  
  .breadcrumbs {
    font-size: 0.8rem;
  }
  
  .btn-primary {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  /* Strona główna */
  .hero-cta {
    min-height: auto;
    padding: 60px 20px;
    margin-top: 30px;
    border-radius: 0;
  }
  
  .hero-cta h2.white-text {
    font-size: 1.8rem;
  }
  
  .hero-cta .hero-description {
    font-size: 1rem;
  }
  
  .blog-card {
    padding: 25px;
  }
  
  .blog-card h3 {
    font-size: 1.2rem;
  }
  
  .benefit-card img {
    width: 60px;
    height: 60px;
  }
}