/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de colores */
  --primary-color: #3a7bd5;
  --primary-dark: #2a5d9c;
  --primary-light: #6fa1e8;
  --secondary-color: #f86b4f;
  --secondary-dark: #e55b41;
  --secondary-light: #ff8d75;
  --text-color: #333333;
  --text-light: #666666;
  --background-color: #ffffff;
  --background-light: #f7f9fc;
  --background-dark: #e8ecf4;
  --border-color: #dddddd;
  --success-color: #4caf50;
  --error-color: #f44336;
  --warning-color: #ff9800;
  
  /* Tipografía */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Lora', serif;
  
  /* Dimensiones */
  --header-height: 80px;
  --footer-height: auto;
  --container-width: 1200px;
  --border-radius: 6px;
  --section-spacing: 80px;
  --box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

ul, ol {
  margin: 0 0 1.5rem 1.5rem;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.btn-primary, .btn-secondary, .btn-outline {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
}

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

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

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

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

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

.btn-outline:hover {
  background-color: var(--background-light);
  border-color: var(--text-light);
}

.required {
  color: var(--error-color);
}

/* Header y navegación */
header {
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

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

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

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  padding: 10px 0;
  position: relative;
}

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

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

nav ul li a.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: var(--text-color);
  margin-bottom: 5px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero section */
.hero {
  padding: calc(var(--header-height) + 60px) 0 60px;
  background-color: var(--background-light);
}

.hero-content {
  max-width: 600px;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.hero-image {
  width: 45%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* Featured posts section */
.featured-posts {
  padding: var(--section-spacing) 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
  margin-bottom: 40px;
}

.post-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.post-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.cta-center {
  text-align: center;
}

/* Daily Selection section */
.daily-selection {
  padding: var(--section-spacing) 0;
  background-color: var(--background-light);
}

.selection-items {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.selection-item {
  flex-basis: calc(33.333% - 20px);
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.selection-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.selection-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.selection-item h3 {
  font-size: 1.1rem;
  margin: 15px 20px 10px;
}

.selection-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 20px 20px;
}

/* Testimonials section */
.testimonials {
  padding: var(--section-spacing) 0;
}

.testimonial-slider {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial {
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  max-width: 450px;
  position: relative;
}

.quote-icon {
  color: var(--primary-light);
  margin-bottom: 15px;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Newsletter section */
.newsletter {
  padding: var(--section-spacing) 0;
  background-color: var(--primary-color);
  color: white;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  color: white;
  margin-bottom: 15px;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

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

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: var(--font-primary);
  font-size: 16px;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--secondary-color);
  color: white;
  cursor: pointer;
  padding: 0 20px;
  border: none;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--secondary-dark);
}

/* Glossary section */
.glossary {
  padding: var(--section-spacing) 0;
  background-color: var(--background-light);
}

.glossary-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
}

.glossary-item {
  background-color: var(--background-color);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.glossary-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.glossary-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.glossary-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: var(--background-dark);
  padding: 60px 0 30px;
  margin-top: var(--section-spacing);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  flex-basis: 25%;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.footer-logo h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-links, .footer-contact, .footer-social {
  flex-basis: 20%;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

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

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--text-color);
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.footer-contact p svg {
  margin-right: 10px;
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--background-color);
  border-radius: 50%;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-links li {
  margin-left: 20px;
}

.legal-links li a {
  color: var(--text-color);
  transition: all 0.3s ease;
}

.legal-links li a:hover {
  color: var(--primary-color);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 1000;
  transition: all 0.5s ease;
}

.cookie-banner.active {
  bottom: 0;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.cookie-content p {
  flex: 1 1 100%;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-right: 15px;
}

.cookie-more {
  font-size: 0.9rem;
  text-decoration: underline;
}

/* Page Header */
.page-header {
  padding: calc(var(--header-height) + 60px) 0 60px;
  background-color: var(--background-light);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.page-header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
}

/* Blog Page Styles */
.blog-content {
  padding: var(--section-spacing) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.blog-grid {
  flex: 1;
  min-width: 0;
}

.blog-sidebar {
  flex: 0 0 320px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.blog-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.blog-date .day {
  font-size: 1.2rem;
}

.blog-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.blog-details {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-details h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.blog-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.blog-meta span {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.blog-meta svg {
  margin-right: 5px;
}

.blog-details p {
  font-size: 1rem;
  margin-bottom: 20px;
  flex: 1;
}

.sidebar-widget {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.sidebar-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-widget h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

.search-widget form {
  display: flex;
  position: relative;
}

.search-widget input {
  width: 100%;
  padding: 12px 15px;
  padding-right: 50px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 16px;
}

.search-widget button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
}

.search-widget button:hover {
  color: var(--primary-color);
}

.categories-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-widget ul li {
  margin-bottom: 12px;
}

.categories-widget ul li a {
  display: flex;
  justify-content: space-between;
  color: var(--text-color);
  padding: 8px 0;
  transition: all 0.3s ease;
}

.categories-widget ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popular-post {
  display: flex;
  align-items: flex-start;
}

.popular-post-image {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.popular-post-content span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.tag-cloud a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* CTA Section */
.cta-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: white;
  margin: 60px 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  color: white;
  margin-bottom: 15px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
}

.cta-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.cta-form input[type="email"] {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: var(--font-primary);
  font-size: 16px;
}

.cta-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--secondary-color);
  color: white;
  cursor: pointer;
  padding: 0 25px;
  border: none;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cta-form button:hover {
  background-color: var(--secondary-dark);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Services Page Styles */
.services-overview {
  padding: var(--section-spacing) 0;
}

.services-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.services-intro h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.services-intro p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.services-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-text {
  font-size: 1rem;
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
  margin-bottom: 60px;
}

.service-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-light);
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  width: 100%;
  text-align: left;
}

.service-features li {
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
  font-size: 0.95rem;
}

.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

.service-price {
  margin-top: auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-price span {
  font-size: 0.9rem;
  color: var(--text-light);
}

.service-price h4 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 5px 0;
}

.featured-service {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.featured-service:hover {
  transform: translateY(-10px) scale(1.05);
}

.service-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 5px 15px;
  border-radius: 20px;
}

/* Methodology Section */
.methodology {
  padding: var(--section-spacing) 0;
  background-color: var(--background-light);
}

.methodology-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.methodology-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.methodology-steps {
  flex: 1;
}

.step {
  display: flex;
  margin-bottom: 25px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* FAQ Section */
.faq {
  padding: var(--section-spacing) 0;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background-color: var(--background-color);
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  font-family: var(--font-primary);
}

.accordion-icon {
  transition: all 0.3s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  background-color: var(--background-light);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding: 15px 20px;
  margin-bottom: 0;
}

/* About Page Styles */
.about-intro {
  padding: var(--section-spacing) 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

/* Mission & Values Section */
.mission-values {
  padding: var(--section-spacing) 0;
  background-color: var(--background-light);
}

.mission-box, .vision-box {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--box-shadow);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mission-box h2, .vision-box h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.mission-box h2:after, .vision-box h2:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

.mission-box p, .vision-box p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
}

.value-item {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.value-icon {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.value-item h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.value-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Team Section */
.team-section {
  padding: var(--section-spacing) 0;
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: -15px auto 40px;
  font-size: 1.1rem;
  color: var(--text-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 30px;
}

.team-member {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-member h3 {
  font-size: 1.2rem;
  margin: 15px 20px 5px;
}

.team-member p {
  padding: 0 20px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.team-member p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 600;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 20px;
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--background-light);
  color: var(--text-color);
  transition: all 0.3s ease;
}

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

/* Credentials Section */
.credentials {
  padding: var(--section-spacing) 0;
  background-color: var(--background-light);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 30px;
}

.credential-item {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.credential-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.credential-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin: 0 auto 20px;
  border-radius: 50%;
}

.credential-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.credential-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Contact Page Styles */
.contact-section {
  padding: var(--section-spacing) 0;
}

.contact-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-form-wrapper {
  flex: 2;
}

.contact-form-wrapper h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-dark);
}

.contact-form {
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input, 
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.2);
}

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

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
}

.checkbox-group a {
  color: var(--primary-color);
  text-decoration: underline;
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-dark);
}

.info-item {
  display: flex;
  margin-bottom: 25px;
}

.info-icon {
  margin-right: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-content p, .info-content a {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 0;
  display: block;
}

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

.social-contact {
  margin-top: 40px;
}

.social-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.map-section {
  padding: var(--section-spacing) 0;
  background-color: var(--background-light);
}

.map-wrapper {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.map-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.map-overlay p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.map-frame {
  width: 100%;
  height: 100%;
}

.thank-you-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 40px;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: var(--box-shadow);
}

.thank-you-icon {
  color: var(--success-color);
  margin-bottom: 20px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* Blog Post Detail Styles */
.post-detail {
  padding: calc(var(--header-height) + 40px) 0 60px;
}

.post-header {
  margin-bottom: 40px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.post-category {
  color: var(--primary-color);
  font-weight: 600;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--text-color);
}

.post-header .post-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: auto;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 30px;
  font-weight: 500;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--primary-dark);
}

.post-content h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  color: var(--text-color);
}

.post-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-content ul, .post-content ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

.post-content ul li, .post-content ol li {
  margin-bottom: 10px;
}

blockquote {
  background-color: var(--background-light);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box {
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  padding: 25px;
  margin: 30px 0;
  box-shadow: var(--box-shadow);
}

.info-box h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.author-box {
  display: flex;
  align-items: center;
  background-color: var(--background-light);
  padding: 25px;
  border-radius: var(--border-radius);
  margin: 40px 0;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 25px;
  flex-shrink: 0;
}

.author-bio h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-light);
}

.author-bio h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.author-bio p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
  align-items: center;
}

.tag-label {
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

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

.post-share {
  display: flex;
  align-items: center;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.post-share span {
  margin-right: 15px;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
}

.share-button.facebook {
  background-color: #3b5998;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.share-button.linkedin {
  background-color: #0077b5;
}

.share-button.email {
  background-color: #ea4335;
}

.related-posts {
  margin: 50px 0;
}

.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 25px;
}

.related-post {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.related-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.related-image {
  display: block;
  height: 180px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.related-post:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 20px;
}

.related-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.related-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 50px 0;
}

.nav-previous, .nav-next {
  max-width: 48%;
}

.nav-previous span, .nav-next span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 5px;
}

.nav-previous h4, .nav-next h4 {
  font-size: 1.1rem;
  margin: 0;
  transition: color 0.3s ease;
}

.nav-previous a:hover h4, .nav-next a:hover h4 {
  color: var(--primary-color);
}

.nav-next {
  text-align: right;
}

.nav-previous.disabled, .nav-next.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.comments-section {
  margin: 60px 0;
}

.comments-section h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.comment {
  display: flex;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.comment-meta h4 {
  font-size: 1.1rem;
  margin: 0;
  display: flex;
  align-items: center;
}

.comment-author-label {
  font-size: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 10px;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.comment-actions {
  margin-top: 10px;
}

.comment-actions a {
  font-size: 0.9rem;
  color: var(--primary-color);
}

.comment-reply {
  margin-left: 80px;
}

.comment-form-container {
  margin-top: 40px;
}

.comment-form-container h3 {
  margin-bottom: 20px;
}

.comment-form {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 30px;
  }
  
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .credential-item img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    gap: 40px;
  }
  
  .hero-content, .hero-image {
    width: 100%;
    text-align: center;
  }
  
  .selection-items {
    flex-direction: column;
    gap: 25px;
  }
  
  .selection-item {
    flex-basis: 100%;
  }
  
  .footer-content {
    flex-wrap: wrap;
    gap: 40px;
  }
  
  .footer-logo, .footer-links, .footer-contact, .footer-social {
    flex-basis: 45%;
  }
  
  .blog-content {
    flex-direction: column;
  }
  
  .blog-sidebar {
    flex: 0 0 100%;
  }
  
  .about-content, .methodology-content, .contact-content {
    flex-direction: column;
  }
  
  .about-image, .about-text, .methodology-image, .methodology-steps {
    flex: 0 0 100%;
  }
  
  .values-grid, .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 60px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h2 {
    font-size: 2.2rem;
  }
  
  .posts-grid, .services-grid, .glossary-content, .related-grid {
    grid-template-columns: 1fr;
  }
  
  .hamburger {
    display: flex;
  }
  
  nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--background-color);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 20px;
    display: none;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: 15px;
  }
  
  nav ul li {
    margin-left: 0;
  }
  
  .footer-logo, .footer-links, .footer-contact, .footer-social {
    flex-basis: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .legal-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .legal-links li {
    margin-left: 0;
  }
  
  .values-grid, .credentials-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    margin-bottom: 15px;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .author-box {
    flex-direction: column;
  }
  
  .author-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  :root {
    --section-spacing: 50px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .hero {
    padding-top: calc(var(--header-height) + 30px);
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input[type="email"] {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
    width: 100%;
    padding: 12px;
  }
  
  .cta-form {
    flex-direction: column;
  }
  
  .cta-form input[type="email"] {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }
  
  .cta-form button {
    border-radius: var(--border-radius);
    width: 100%;
    padding: 12px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-previous, .nav-next {
    max-width: 100%;
    text-align: center;
  }
  
  .comment {
    flex-direction: column;
  }
  
  .comment-avatar {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .comment-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .comment-reply {
    margin-left: 0;
    padding-left: 15px;
    border-left: 2px solid var(--primary-light);
  }
}
