/* styles.css */

/* Base */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "PT Sans", Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
main {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 85vh;
}

/* Navigation */
.site-nav {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-brand:hover {
  color: #3498db;
  text-decoration: none;
}

.nav-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu li a {
  display: block;
  padding: 0.8rem 1rem;
  color: #2c3e50;
  font-weight: bold;
  border-radius: 6px;
}

.nav-menu li a:hover {
  background-color: #34495e;
  color: #ffffff;
}

.nav-menu li a.active {
  background-color: #eaf2f8;
  color: #2c3e50;
}

.nav-menu li a.active:hover {
  background-color: #34495e;
  color: #ffffff;
}

/* Header */
header {
  text-align: center;
  padding: 2rem 1rem;
  background: url("header-bg.jpg") no-repeat center center / cover;
  color: black;
}

header h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

header p {
  margin-top: 0;
  font-size: 1.2rem;
}

/* Sections */
section {
  width: 100%;
  margin-top: 40px;
  padding: 3rem 1rem;
}

section > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero section */
.hero-section {
  background-color: #eaf2f8;
  margin-top: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: "Archivo Black", Arial, sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #2c3e50;
}

.hero-lead {
  font-size: 1.35rem;
  font-weight: bold;
  color: #3498db;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.05rem;
  color: #333;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  object-fit: cover;
}

/* Breeder list */
.breeder-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.breeder-list > h2,
.breeder-list > h3 {
  width: 100%;
  max-width: 1200px;
  font-family: "Archivo Black", Arial, sans-serif;
  font-weight: 400;
  color: #2c3e50;
  line-height: 1.1;
}

/* Provider cards */
.breeder-item {
  width: 100%;
  max-width: 1200px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.breeder-item h2 {
  margin-top: 0;
  color: #2c3e50;
}

.breeder-item p {
  margin: 0.5rem 0;
}

.breeder-item ul {
  padding-left: 1.2rem;
}

.breeder-item a {
  display: inline-block;
  margin-top: 1rem;
  color: #3498db;
  font-weight: bold;
}

.breeder-item a:hover {
  text-decoration: underline;
}

.imgWrapper {
  margin-bottom: 1rem;
}

.breeder-logo {
  max-width: 160px;
  max-height: 58px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.titelWrapper h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge {
  background-color: #eaf2f8;
  color: #2c3e50;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.beskrivningWrapper {
  margin-bottom: 1rem;
}

/* Keep description same height when collapsed */
.breeder-item .description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 5rem;
  max-height: 5rem;
}

/* Hide detailed content by default */
.breeder-item .fordelarWrapper,
.breeder-item .villkorWrapper,
.breeder-item .ansokningWrapper {
  display: none;
}

.fordelarWrapper,
.villkorWrapper,
.ansokningWrapper {
  margin-top: 1rem;
}

.fordelarWrapper h4 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.perks,
.conditions {
  margin-bottom: 0;
}

/* Read more button */
.read-more-btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: #2c3e50;
  color: #ffffff;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.read-more-btn:hover {
  background-color: #3498db;
  transform: translateY(-1px);
}

.read-more-btn:focus {
  outline: 3px solid rgba(52, 152, 219, 0.35);
  outline-offset: 2px;
}

/* Expanded provider card state */
.breeder-item.is-expanded {
  min-height: auto;
}

.breeder-item.is-expanded .fordelarWrapper,
.breeder-item.is-expanded .villkorWrapper,
.breeder-item.is-expanded .ansokningWrapper {
  display: block;
}

.breeder-item.is-expanded .description {
  display: block;
  overflow: visible;
  min-height: 0;
  max-height: none;
}

.breeder-item.is-expanded .read-more-btn {
  margin-top: 1.25rem;
}

/* Details */
details {
  background-color: #f7fbfd;
  border: 1px solid #dcebf3;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: #2c3e50;
}

/* Bottom content sections */
.tips {
  margin-top: 0;
  padding: 4rem 1rem;
  border-left: none;
  border-radius: 0;
}

.tips1 {
  background-color: #eaf2f8;
}

.tips2,
.tip2 {
  background-color: #ffffff;
}

.tips > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tips h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-family: "Archivo Black", Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #2c3e50;
}

.tips p {
  max-width: 1200px;
  font-size: 1.05rem;
  color: #333;
}

.tips ul,
.tips ol {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.15rem;
}

.tips li {
  padding-left: 0.25rem;
  margin-bottom: 1.25rem;
}

.tips li p {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.tips a {
  color: #3498db;
  font-weight: 700;
}

.tips a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #2c3e50;
  color: #ecf0f1;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}
/* Featured pick card */
.featured-pick {
  width: 100%;
  max-width: 1200px;
  position: relative;
  background-color: #ffffff;
  color: #2c3e50;
  border: 1px solid #dcebf3;
  border-left: 8px solid #2c3e50;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 10px 26px rgba(44, 62, 80, 0.10);
  overflow: hidden;
}

.featured-pick::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.06), rgba(44, 62, 80, 0.02));
  pointer-events: none;
}

.featured-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f7fbfd;
  color: #2c3e50;
  border: 1px solid #dcebf3;
  font-weight: 800;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.featured-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.featured-logo-card {
  flex: 0 0 170px;
  min-height: 120px;
  background-color: #ffffff;
  border: 1px solid #e5edf2;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-logo {
  max-width: 135px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.featured-text {
  flex: 1;
  max-width: 680px;
}

.featured-text h2 {
  margin: 0 0 1rem;
  font-family: "Archivo Black", Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #2c3e50;
}

.featured-lead {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: #333;
}

.featured-list {
  margin: 0;
  padding-left: 1.2rem;
}

.featured-list li {
  margin-bottom: 0.4rem;
}

.featured-actions {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.featured-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2c3e50;
  color: #ffffff;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.featured-button:hover {
  background-color: #3498db;
  color: #ffffff;
  text-decoration: none;
}

.featured-note {
  font-size: 0.95rem;
  color: #667784;
}

/* Blog page */
.blog-hero .hero-content {
  justify-content: flex-start;
}

.blog-hero .hero-text {
  max-width: 850px;
}

.blog-list-section {
  background-color: #f9f9f9;
  margin-top: 0;
  padding: 4rem 1rem;
}

.blog-list-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.blog-list-inner h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-family: "Archivo Black", Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #2c3e50;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

/* Blog article boxes */
.blog-card {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #dcebf3;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 8px 22px rgba(44, 62, 80, 0.08);
  min-height: 330px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 7px;
  width: 100%;
  background: linear-gradient(90deg, #2c3e50, #3498db);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: #3498db;
  box-shadow: 0 14px 32px rgba(44, 62, 80, 0.16);
}

.blog-card-content {
  flex: 1;
}

.blog-category {
  display: inline-flex;
  align-self: flex-start;
  background-color: #eaf2f8;
  color: #2c3e50;
  border: 1px solid #cfe4f0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.blog-card h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.45rem;
  line-height: 1.18;
  color: #2c3e50;
}

.blog-card h2 a {
  color: #2c3e50;
}

.blog-card h2 a:hover {
  color: #3498db;
  text-decoration: none;
}

.blog-card p {
  color: #465461;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.blog-button {
  margin-top: 1.25rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2c3e50;
  color: #ffffff;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.blog-button:hover {
  background-color: #3498db;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}
/* Blog article pages */
.article-section {
  background-color: #ffffff;
  margin-top: 0;
  padding: 4rem 1rem;
}

.article-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background-color: #ffffff;
  border: 1px solid #dcebf3;
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 8px 22px rgba(44, 62, 80, 0.08);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: #667784;
  font-weight: 700;
}

.article-meta a {
  color: #3498db;
}

.article-meta a:hover {
  text-decoration: underline;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: "Archivo Black", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #2c3e50;
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content p {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.25rem;
}

.article-content a {
  color: #3498db;
  font-weight: 700;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-cta {
  margin-top: 3rem;
  background-color: #eaf2f8;
  border-radius: 16px;
  padding: 1.5rem;
}

.article-cta h2 {
  margin-top: 0;
}

.article-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.article-cta-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2c3e50;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.article-cta-links a:hover {
  background-color: #3498db;
  color: #ffffff;
  text-decoration: none;
}

/* About page */
.about-hero .hero-content {
  justify-content: flex-start;
}

.about-hero .hero-text {
  max-width: 900px;
}

.about-section {
  background-color: #f9f9f9;
  margin-top: 0;
  padding: 4rem 1rem;
}

.about-content {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-card {
  background-color: #ffffff;
  border: 1px solid #dcebf3;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 8px 22px rgba(44, 62, 80, 0.08);
}

.about-label {
  display: inline-flex;
  background-color: #eaf2f8;
  color: #2c3e50;
  border: 1px solid #cfe4f0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-card h2,
.about-cta h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: "Archivo Black", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #2c3e50;
}

.about-card p,
.about-card li {
  font-size: 1.05rem;
  color: #333;
}

.about-card a {
  color: #3498db;
  font-weight: 700;
}

.about-card a:hover {
  text-decoration: underline;
}

.about-steps {
  margin: 0;
  padding-left: 1.2rem;
}

.about-steps li {
  margin-bottom: 1.25rem;
}

.about-steps li:last-child {
  margin-bottom: 0;
}

.about-steps p {
  margin: 0.35rem 0 0;
}

.about-contact {
  margin-bottom: 0;
}

.about-cta {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 12px 28px rgba(44, 62, 80, 0.18);
}

.about-cta h2 {
  color: #ffffff;
}

.about-cta p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.92);
}

.about-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #2c3e50;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  margin-top: 0.75rem;
}

.about-cta a:hover {
  background-color: #eaf2f8;
  color: #2c3e50;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  section {
    padding: 2rem 1rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-lead {
    font-size: 1.15rem;
  }

  .hero-image img {
    max-width: 100%;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-menu {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .nav-menu li a {
    white-space: nowrap;
  }

  .breeder-item {
    min-height: 340px;
  }

  .labels {
    align-items: flex-start;
  }

  .featured-pick {
    padding: 1.5rem;
  }

  .featured-content {
    flex-direction: column;
  }
  
   .featured-logo-card {
    width: 100%;
    flex: none;
    min-height: 100px;
  }

  .featured-text h2 {
    font-size: 1.8rem;
  }

   .featured-actions {
    width: 100%;
    flex: none;
  }

  .featured-button {
    width: 100%;
  }

  .article-section {
    padding: 2rem 1rem;
  }

  .article-content {
    padding: 1.4rem;
  }

  .article-content h2 {
    font-size: 1.45rem;
  }

  .article-content p {
    font-size: 1rem;
  }

  .article-cta-links {
    flex-direction: column;
  }

  .article-cta-links a {
    width: 100%;
  }

  .about-section {
    padding: 2rem 1rem;
  }

  .about-card,
  .about-cta {
    padding: 1.4rem;
  }

  .about-card h2,
  .about-cta h2 {
    font-size: 1.55rem;
  }

  .about-cta a {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    min-height: auto;
  }
}