/* ------------------------------------------------
  GŁÓWNE STYLE I RESET
------------------------------------------------ */
:root {
  /* Główna paleta kolorów */
  --primary-color: #2c5282;
  --primary-dark: #1e3a5f;
  --primary-light: #4a69bb;
  --secondary-color: #f0f4f8;
  --accent-color: #eab308;
  
  /* Neutralne kolory */
  --dark: #1a202c;
  --medium-dark: #4a5568;
  --medium: #718096;
  --medium-light: #a0aec0;
  --light: #e2e8f0;
  --white: #ffffff;
  
  /* Funkcjonalne kolory */
  --success: #38a169;
  --error: #e53e3e;
  --warning: #dd6b20;
  --info: #3182ce;
  
  /* Typografia */
  --font-primary: 'Roboto', 'Segoe UI', sans-serif;
  --font-secondary: 'Open Sans', Arial, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  
  /* Box shadow */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transition */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
}

/* Reset & podstawowe style */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Section */
section {
  padding: var(--space-xxl) 0;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.section-header h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--medium);
}

/* ------------------------------------------------
  BUTTONS
------------------------------------------------ */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ------------------------------------------------
  HEADER & NAVIGATION
------------------------------------------------ */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: var(--space-lg);
}

nav ul li a {
  font-weight: 500;
  color: var(--medium-dark);
  position: relative;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

nav ul li a:hover:after, nav ul li a.active:after {
  width: 100%;
}

nav ul li a.btn-primary {
  color: var(--white);
}

nav ul li a.btn-primary:after {
  display: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

/* ------------------------------------------------
  HERO SECTION
------------------------------------------------ */
.hero {
  background-color: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  min-height: 500px;
}

.hero-content {
  flex: 1;
  padding-right: var(--space-xl);
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: var(--space-lg);
  color: var(--primary-dark);
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  color: var(--medium-dark);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
}

.hero-image {
  flex: 1;
}

.hero-image img {
  max-height: 400px;
  margin-left: auto;
}

/* ------------------------------------------------
  SERVICES SECTION
------------------------------------------------ */
.services {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  margin-bottom: var(--space-lg);
  display: flex;
  justify-content: center;
}

.service-icon img {
  width: 60px;
  height: 60px;
}

.service-card h3 {
  margin-bottom: var(--space-md);
  color: var(--primary-dark);
}

.service-card p {
  color: var(--medium);
  margin-bottom: 0;
}

/* ------------------------------------------------
  ABOUT SECTION
------------------------------------------------ */
.about {
  background-color: var(--secondary-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: var(--space-xxl);
}

.about-text {
  flex: 1;
}

.about-text .section-header {
  text-align: left;
  margin-left: 0;
}

.about-text .section-header h2:after {
  left: 0;
  transform: none;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  max-height: 350px;
}

.about-stats {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
}

.stat {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

.stat-text {
  color: var(--medium);
  font-size: 0.9rem;
}

/* ------------------------------------------------
  TEAM SECTION
------------------------------------------------ */
.team {
  background-color: var(--white);
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.team-member {
  text-align: center;
  transition: transform var(--transition-normal);
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-lg);
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  margin-bottom: var(--space-xs);
  color: var(--primary-dark);
}

.team-title {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.team-member p {
  color: var(--medium);
}

/* ------------------------------------------------
  TESTIMONIALS SECTION
------------------------------------------------ */
.testimonials {
  background-color: var(--secondary-color);
  position: relative;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-item {
  padding: var(--space-md);
}

.testimonial-content {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: center;
}

.testimonial-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.testimonial-text {
  font-style: italic;
  color: var(--medium-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.author-name {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0;
}

.author-title {
  font-size: 0.9rem;
  color: var(--medium);
  margin-bottom: 0;
}

.testimonials-navigation {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
  gap: var(--space-md);
}

.testimonial-prev, .testimonial-next {
  width: 40px;
  height: 40px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.testimonial-prev:hover, .testimonial-next:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ------------------------------------------------
  BLOG SECTION
------------------------------------------------ */
.blog-preview {
  background-color: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  height: 200px;
  background-color: var(--light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image img {
  width: 100px;
  height: 100px;
}

.blog-content {
  padding: var(--space-xl);
}

.blog-content h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.blog-content h3 a {
  color: var(--primary-dark);
  transition: color var(--transition-fast);
}

.blog-content h3 a:hover {
  color: var(--primary-color);
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--medium);
  margin-bottom: var(--space-md);
}

.blog-excerpt {
  color: var(--medium-dark);
  margin-bottom: var(--space-lg);
}

.read-more {
  font-weight: 500;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
}

.read-more:hover {
  color: var(--primary-dark);
}

.blog-cta {
  text-align: center;
  margin-top: var(--space-xxl);
}

/* ------------------------------------------------
  CONTACT SECTION
------------------------------------------------ */
.contact {
  background-color: var(--secondary-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
}

.contact-form {
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--medium-dark);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
}

.form-checkbox input {
  width: auto;
  margin-right: var(--space-sm);
  margin-top: 3px;
}

.form-checkbox label {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-item {
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.contact-icon img {
  width: 40px;
  height: 40px;
}

.contact-info h3 {
  margin-bottom: var(--space-md);
  color: var(--primary-dark);
}

.contact-info p {
  margin-bottom: var(--space-md);
  color: var(--medium-dark);
}

.social-media {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light);
  border-radius: 50%;
  color: var(--primary-color);
  transition: all var(--transition-fast);
}

.social-media a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ------------------------------------------------
  FOOTER
------------------------------------------------ */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--space-xxl) 0 var(--space-md);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-column p {
  color: var(--medium-light);
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  position: relative;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  bottom: -8px;
  left: 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column ul li a {
  color: var(--medium-light);
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover, .footer-column ul li a.active {
  color: var(--white);
}

.footer-form {
  display: flex;
  margin-top: var(--space-md);
}

.footer-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.footer-form button {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.75rem 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--medium-light);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ------------------------------------------------
  COOKIE CONSENT
------------------------------------------------ */
.cookie-consent {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 0 auto;
  transform: translateY(150%);
  transition: transform var(--transition-slow);
  opacity: 0;
}

.cookie-consent.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-content {
  padding: var(--space-xl);
}

.cookie-content h3 {
  margin-bottom: var(--space-md);
}

.cookie-content p {
  margin-bottom: var(--space-lg);
  color: var(--medium-dark);
}

.cookie-settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.cookie-settings {
  display: none;
  margin-bottom: var(--space-lg);
}

.cookie-settings.show {
  display: block;
}

.cookie-option {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--light);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option input {
  margin-right: var(--space-sm);
}

.cookie-option label {
  font-weight: 700;
  margin-right: var(--space-md);
  flex: 1;
}

.cookie-option p {
  flex-basis: 100%;
  margin-top: var(--space-xs);
  margin-bottom: 0;
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-buttons button {
  flex: 1;
}

.hide {
  display: none;
}

/* ------------------------------------------------
  BLOG PAGE STYLES
------------------------------------------------ */
.blog-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--space-xxl) 0;
  text-align: center;
}

.blog-header h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.blog-header p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.blog-articles {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

.blog-search {
  display: flex;
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.blog-search input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--light);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.blog-search button {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.blog-filter {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.blog-categories h3 {
  margin-bottom: var(--space-md);
  text-align: center;
}

.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  gap: var(--space-sm);
}

.blog-categories ul li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--light);
  border-radius: var(--radius-full);
  color: var(--medium-dark);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.blog-categories ul li a:hover, .blog-categories ul li a.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.blog-article {
  display: grid;
  /* grid-template-columns: 1fr 2fr; */
  gap: var(--space-xl);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
  transition: transform var(--transition-normal);
}

.blog-article:hover {
  transform: translateY(-5px);
}

.blog-article-image {
  height: 100%;
  min-height: 200px;
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-article-image img {
  width: 100px;
  height: 100px;
}

.blog-article-content {
  padding: var(--space-xl);
}

.blog-article-content h2 {
  margin-bottom: var(--space-xs);
}

.blog-article-content h2 a {
  color: var(--primary-dark);
}

.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xxl);
  gap: var(--space-sm);
}

.blog-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  color: var(--medium-dark);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.blog-pagination a:hover, .blog-pagination a.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.blog-pagination a.next {
  width: auto;
  padding: 0 1rem;
}

.newsletter {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--space-xxl) 0;
}

.newsletter-content {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-content h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.newsletter-content p {
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.newsletter-form button {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.75rem 1.5rem;
}

/* ------------------------------------------------
  BLOG POST STYLES
------------------------------------------------ */
.blog-post {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

.blog-post-header {
  margin-bottom: var(--space-xl);
}

.blog-post-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.blog-post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}

.blog-post-date {
  color: var(--medium);
  font-size: 0.9rem;
}

.blog-post-header h1 {
  margin-bottom: var(--space-xl);
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.blog-post-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-post-author-image img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.blog-post-author-name {
  font-weight: 700;
  margin-bottom: 0;
}

.blog-post-author-title {
  font-size: 0.9rem;
  color: var(--medium);
  margin-bottom: 0;
}

.blog-post-content {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
}

.blog-post-image {
  margin-bottom: var(--space-xl);
  display: flex;
  justify-content: center;
}

.blog-post-image img {
  max-height: 300px;
  border-radius: var(--radius-md);
}

.blog-post-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--primary-dark);
}

.blog-post-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.blog-post-content ul, .blog-post-content ol {
  margin-bottom: var(--space-lg);
}

.blog-post-content li {
  margin-bottom: var(--space-sm);
}

.blog-post-cta {
  background-color: var(--light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-xxl);
  text-align: center;
}

.blog-post-cta h3 {
  margin-bottom: var(--space-md);
}

.blog-post-cta p {
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xxl);
}

.blog-post-share {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.blog-post-share span {
  margin-right: var(--space-sm);
  color: var(--medium-dark);
}

.blog-post-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--light);
  border-radius: 50%;
  color: var(--medium-dark);
  transition: all var(--transition-fast);
}

.blog-post-share a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.blog-post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.blog-post-tags span {
  margin-right: var(--space-sm);
  color: var(--medium-dark);
}

.blog-post-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--light);
  color: var(--medium-dark);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.blog-post-tags a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.blog-related-posts {
  margin-bottom: var(--space-xxl);
}

.blog-related-posts h3 {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.blog-related-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

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

.blog-related-image {
  height: 120px;
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-related-image img {
  width: 60px;
  height: 60px;
}

.blog-related-card h4 {
  padding: var(--space-md) var(--space-md) 0;
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.blog-related-card h4 a {
  color: var(--primary-dark);
}

.blog-related-card .blog-meta {
  padding: 0 var(--space-md) var(--space-md);
  margin-bottom: 0;
}

.formula {
  background-color: var(--light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  text-align: center;
  font-weight: bold;
}

/* ------------------------------------------------
  LEGAL PAGES
------------------------------------------------ */
.legal-page {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

.legal-content {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  box-shadow: var(--shadow-md);
}

.legal-date {
  color: var(--medium);
  margin-bottom: var(--space-xl);
}

.legal-section {
  margin-bottom: var(--space-xxl);
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin-bottom: var(--space-lg);
  color: var(--primary-dark);
}

.legal-section h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0 var(--space-xl);
}

.cookies-table th, .cookies-table td {
  border: 1px solid var(--light);
  padding: var(--space-md);
  text-align: left;
}

.cookies-table th {
  background-color: var(--secondary-color);
  font-weight: 700;
}

.cookies-table tr:nth-child(even) {
  background-color: var(--secondary-color);
}

/* ------------------------------------------------
  THANK YOU PAGE
------------------------------------------------ */
.thank-you {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

.thank-you-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  box-shadow: var(--shadow-md);
}

.thank-you-icon {
  margin-bottom: var(--space-xl);
}

.thank-you-icon svg {
  width: 80px;
  height: 80px;
  color: var(--success);
  margin: 0 auto;
}

.thank-you-content h1 {
  margin-bottom: var(--space-lg);
  color: var(--primary-dark);
}

.thank-you-content p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
}

.thank-you-details {
  text-align: left;
  margin-bottom: var(--space-xl);
  background-color: var(--secondary-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.thank-you-details h2 {
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.thank-you-details ol {
  margin-bottom: 0;
}

.thank-you-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* ------------------------------------------------
  RESPONSIVE STYLES
------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
    margin-bottom: var(--space-xl);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Header & Navigation */
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    transition: left var(--transition-normal);
    padding: var(--space-xxl) var(--space-lg);
  }
  
  nav.show {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  nav ul li {
    margin-left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
    z-index: 1200;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  .overlay.show {
    opacity: 1;
    visibility: visible;
  }
  
  /* Hero Section */
  .hero .container {
    flex-direction: column;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
  
  .hero-content {
    padding-right: 0;
    text-align: center;
    margin-bottom: var(--space-xl);
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image img {
    margin: 0 auto;
  }
  
  /* Services, Team, Blog */
  .services-grid, .team-members, .blog-grid, .blog-related-grid {
    grid-template-columns: 1fr;
  }
  
  /* About Section */
  .about-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  /* Blog Article */
  .blog-article {
    grid-template-columns: 1fr;
  }
  
  .blog-article-image {
    height: 200px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-form {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .footer-form input, .footer-form button {
    border-radius: var(--radius-md);
  }
  
  /* Blog Post */
  .blog-post-footer {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .blog-post-share, .blog-post-tags {
    justify-content: center;
  }
  
  /* Thank You */
  .thank-you-cta {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Hero */
  .hero-content h1 {
    font-size: 2rem;
  }
  
  /* Cookie Consent */
  .cookie-buttons {
    flex-direction: column;
  }
  
  /* Blog */
  .blog-pagination a {
    width: 32px;
    height: 32px;
  }
}
