/* Base Styles */
:root {
  --primary-color: #4a7acd;
  --secondary-color: #6da0f2;
  --accent-color: #f5a742;
  --text-color: #333333;
  --text-light: #666666;
  --background-color: #ffffff;
  --background-alt: #f8f9fa;
  --border-color: #e1e4e8;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

a:hover {
  color: var(--secondary-color);
}

ul, ol {
  padding-left: 20px;
  margin: 1rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #222;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.2rem;
}

/* Buttons */
.btn, .btn-small, .btn-share {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn:hover, .btn-small:hover, .btn-share:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-share {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

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

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

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

.btn-share.whatsapp {
  background-color: #25d366;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 15px;
}

.logo img {
  max-height: 60px;
  width: auto;
}

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

nav li {
  margin: 0 15px;
}

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

nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

.font-size-control {
  display: flex;
  align-items: center;
}

#decrease-font {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#decrease-font:hover {
  background-color: #e0e0e0;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 5rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Statistics Section */
.statistics {
  padding: 3rem 0;
  background-color: var(--background-alt);
}

.statistics h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stat-box {
  background-color: white;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

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

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

.stat-description {
  font-size: 1.1rem;
}

/* Featured Posts Section */
.featured-posts, .blog-content {
  padding: 3rem 0;
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  background-color: white;
  border-radius: 8px;
  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.15);
}

.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3, .post-content h4 {
  margin-bottom: 1rem;
  min-height: 50px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

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

.post-date {
  color: var(--text-light);
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

.post-card.small img {
  height: 150px;
}

.post-card.small h4 {
  font-size: 1.1rem;
  min-height: 40px;
}

/* Newsletter Section */
.newsletter {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.newsletter h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

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

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.newsletter-form button {
  border-radius: 0 4px 4px 0;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-links h3, .footer-contact h3 {
  color: white;
  margin-bottom: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a, .footer-contact a {
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-links a:hover, .footer-contact a:hover {
  color: white;
}

.footer-contact p {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

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

/* Page Header */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/2.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

/* Blog Page */
.blog-categories {
  margin-bottom: 2rem;
}

.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.blog-categories li a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f0f0f0;
  border-radius: 20px;
  color: var(--text-color);
  transition: all 0.3s ease;
}

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

/* About Page */
.about-intro {
  padding: 3rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  margin-top: 0;
}

.about-text ul {
  margin-bottom: 2rem;
}

.about-image img {
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.team-section, .certifications {
  padding: 3rem 0;
  background-color: var(--background-alt);
}

.team-section h2, .certifications h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.team-card {
  background-color: white;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

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

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card h3 {
  margin: 1.5rem 0 0.5rem;
}

.team-card p {
  margin: 0 1.5rem 1.5rem;
}

.team-card .social-icons {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.certification-item img {
  max-height: 150px;
  width: auto;
  margin: 0 auto 1rem;
}

/* Contact Page */
.contact-section {
  padding: 3rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

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

.info-content h3 {
  margin: 0 0 0.3rem;
}

.social-media {
  margin-top: 2rem;
}

.contact-form h2, .contact-info h2 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

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

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

.checkbox-group label {
  margin: 0;
}

.form-button {
  text-align: right;
}

.map-section {
  padding: 3rem 0;
  background-color: var(--background-alt);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

/* Blog Post Content Page */
.post-content-page {
  padding: 3rem 0;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  margin: 0.5rem 0 1.5rem;
}

.post-author {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  margin: 0;
}

.author-title {
  color: var(--text-light);
  margin: 0;
}

.post-featured-image {
  margin-bottom: 2rem;
}

.post-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.post-body {
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.post-body h2 {
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.post-tags {
  margin-bottom: 2rem;
}

.post-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.post-tags li a {
  display: inline-block;
  padding: 5px 12px;
  background-color: #f0f0f0;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

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

.share-post {
  margin-bottom: 3rem;
}

.social-share {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.related-posts {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Modal Styles */
.thank-you-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  animation: modalOpen 0.4s;
}

@keyframes modalOpen {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

.modal-header {
  padding: 1.5rem;
  background-color: var(--primary-color);
  color: white;
  position: relative;
}

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

.modal-body {
  padding: 1.5rem;
  text-align: center;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(52, 58, 64, 0.95);
  color: white;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.cookie-content {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 280px;
}

.cookie-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-cookie {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#acceptCookies {
  background-color: var(--success-color);
  color: white;
}

#configureCookies {
  background-color: #6c757d;
  color: white;
}

#rejectCookies {
  background-color: var(--error-color);
  color: white;
}

.btn-cookie:hover {
  opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    order: -1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav li {
    margin: 5px 10px;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .posts-grid, .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .social-share {
    justify-content: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: 4px;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .font-size-control {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .post-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-image {
    margin: 0 auto 1rem;
  }
  
  .cookie-content {
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* Icons */
.icon-location, .icon-phone, .icon-email, .icon-reg {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.icon-location {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.icon-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.icon-reg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='9' y1='9' x2='15' y2='9'%3E%3C/line%3E%3Cline x1='9' y1='12' x2='15' y2='12'%3E%3C/line%3E%3Cline x1='9' y1='15' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
}
