/* Variables */
:root {
  --primary-color: #2c7be5;
  --secondary-color: #6c757d;
  --accent-color: #12b886;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --gray-color: #e9ecef;
  --text-color: #333;
  --text-light: #6c757d;
  --white: #ffffff;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --border-radius: 6px;
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-primary: 'Nunito', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Lora', Georgia, 'Times New Roman', serif;
  --container-width: 1140px;
  --header-height: 80px;
  --font-size-base: 16px;
  --font-size-decreased: 14px;
  --line-height: 1.6;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height);
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-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: var(--transition);
}

a:hover {
  color: #1c5eb9;
  text-decoration: underline;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

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

/* Font size toggle */
.font-size-decreased {
  font-size: var(--font-size-decreased) !important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: #1c5eb9;
  color: var(--white);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: #5a6268;
  color: var(--white);
  text-decoration: none;
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
}

/* Custom List */
.custom-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.custom-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.75rem;
}

.custom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 18px;
  height: 18px;
  background-color: var(--primary-color);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

/* Header */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

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

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-color);
  position: relative;
}

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

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

.nav-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.font-size-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  margin-left: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.font-size-button svg {
  margin-right: 0.5rem;
}

.font-size-button:hover {
  background-color: var(--gray-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f5f7fa, #e8eaee);
  padding: 5rem 0;
}

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

.hero-content {
  flex: 1;
  padding-right: 3rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

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

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Featured Posts */
.featured-posts {
  padding: 5rem 0;
}

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

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

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

.post-image {
  width: 100%;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

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

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.post-content p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.see-more {
  text-align: center;
  margin-top: 3rem;
}

/* Newsletter */
.newsletter {
  background-color: var(--primary-color);
  padding: 4rem 0;
  color: var(--white);
  text-align: center;
  border-radius: 10px;
  margin: 5rem 0;
}

.newsletter .container {
  max-width: 700px;
}

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

.newsletter p {
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  max-width: 400px;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--border-radius);
  outline: none;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding-top: 4rem;
}

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

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

.footer-links h3,
.footer-legal h3,
.footer-contact h3,
.footer-social h3 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer-contact li,
.footer-links li,
.footer-legal li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-contact svg,
.footer-links svg,
.footer-legal svg {
  margin-right: 0.75rem;
}

.footer-contact a,
.footer-links a,
.footer-legal a {
  color: var(--light-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover {
  color: var(--primary-color);
}

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookies Banner */
.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--white);
  z-index: 9999;
  display: none;
}

.cookies-banner.active {
  display: block;
}

.cookies-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookies-content p {
  margin-bottom: 1rem;
}

.cookies-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.cookies-policy {
  color: var(--primary-color);
  text-decoration: underline;
  font-size: 0.9rem;
}

/* Blog Page */
.blog-header {
  background: linear-gradient(135deg, #2c7be5, #12b886);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

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

.blog-header p {
  max-width: 600px;
  margin: 0 auto;
}

.blog-posts {
  padding: 5rem 0;
}

.search-bar {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.search-bar form {
  display: flex;
  border: 1px solid var(--gray-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
}

.search-bar button {
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
  padding: 0 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-bar button:hover {
  background-color: #1c5eb9;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.post-item {
  display: flex;
  gap: 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.post-item .post-image {
  flex: 0 0 300px;
}

.post-item .post-content {
  flex: 1;
  padding: 2rem;
}

.post-item h2 {
  margin-bottom: 0.5rem;
}

.post-item h2 a {
  color: var(--dark-color);
}

.post-item h2 a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.post-category {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* Contact Page */
.contact-header {
  background: linear-gradient(135deg, #2c7be5, #12b886);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.contact-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-info {
  padding: 5rem 0 3rem;
}

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

.contact-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

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

.contact-icon {
  margin-bottom: 1.25rem;
  color: var(--primary-color);
}

.contact-card h3 {
  margin-bottom: 1rem;
}

.contact-form-section {
  padding: 3rem 0 5rem;
}

.contact-form-section .container {
  display: flex;
  gap: 3rem;
}

.form-wrapper {
  flex: 1;
}

.map-wrapper {
  flex: 1;
}

.map {
  margin-bottom: 2rem;
}

.map img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
}

.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: 0.75rem;
  border: 1px solid var(--gray-color);
  border-radius: var(--border-radius);
  outline: none;
  transition: var(--transition);
}

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

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-checkbox input {
  width: auto;
  margin: 0;
}

.form-checkbox label {
  margin: 0;
  font-weight: normal;
}

.social-contact h3 {
  margin-bottom: 1.25rem;
}

.social-contact .social-icons a {
  background-color: var(--primary-color);
  gap: 0.5rem;
  width: auto;
  height: auto;
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
}

.social-contact .social-icons a span {
  display: inline-block;
}

/* About Page */
.about-header {
  background: linear-gradient(135deg, #2c7be5, #12b886);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.about-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.about-mission {
  padding: 5rem 0;
}

.about-mission .container {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.mission-content {
  flex: 1;
}

.mission-image {
  flex: 1;
}

.mission-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-values {
  padding: 5rem 0;
  background-color: var(--gray-color);
}

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

.value-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

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

.value-icon {
  margin-bottom: 1.25rem;
  color: var(--primary-color);
}

.team-section {
  padding: 5rem 0;
}

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

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

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

.team-member img {
  width: 100%;
  height: auto;
}

.team-member h3 {
  margin: 1.25rem 0 0.5rem;
}

.team-member p {
  color: var(--text-light);
  padding: 0 1.25rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--gray-color);
  color: var(--text-color);
  transition: var(--transition);
}

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

.history-section {
  padding: 5rem 0;
  background-color: var(--gray-color);
}

.history-section .container {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.history-content {
  flex: 1;
}

.history-image {
  flex: 1;
}

.history-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Blog Post */
.post-content-wrapper {
  padding: 5rem 0;
}

.blog-post .container {
  max-width: 900px;
}

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

.post-header h1 {
  margin-bottom: 1.25rem;
}

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

.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: var(--gray-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.post-content blockquote p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.post-content blockquote cite {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: normal;
  text-align: right;
}

.post-image {
  margin: 2rem 0;
  text-align: center;
}

.post-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.post-image figcaption {
  margin-top: 0.75rem;
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
}

.post-tags {
  margin: 3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

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

.post-tags a {
  display: inline-block;
  background-color: var(--gray-color);
  color: var(--text-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.post-navigation {
  border-top: 1px solid var(--gray-color);
  border-bottom: 1px solid var(--gray-color);
  padding: 2rem 0;
  margin-bottom: 3rem;
}

.post-navigation-links {
  display: flex;
  justify-content: space-between;
}

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

.nav-subtitle {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.nav-title {
  font-weight: 600;
  color: var(--dark-color);
}

.post-author-bio {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--gray-color);
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
}

.author-avatar {
  flex: 0 0 100px;
}

.author-avatar img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.author-info {
  flex: 1;
}

.author-info h3 {
  margin-bottom: 0.5rem;
}

.author-social {
  margin-top: 1rem;
}

.author-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--text-color);
  margin-right: 0.75rem;
  transition: var(--transition);
}

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

.related-posts {
  margin-bottom: 3rem;
}

.related-posts h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-color);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.related-post a {
  display: block;
  color: var(--dark-color);
  text-decoration: none;
}

.related-post img {
  width: 100%;
  height: auto;
}

.related-post h4 {
  padding: 1rem;
  margin-bottom: 0;
}

/* Thank You Modal */
.thank-you-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.thank-you-modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

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

.modal-icon {
  color: var(--success);
  margin-bottom: 1.5rem;
}

.modal-content h2 {
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  :root {
    --font-size-base: 15px;
  }

  .hero .container,
  .about-mission .container,
  .history-section .container,
  .contact-form-section .container {
    flex-direction: column;
  }

  .hero-content,
  .mission-content,
  .history-content,
  .form-wrapper,
  .map-wrapper {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .post-item {
    flex-direction: column;
  }

  .post-item .post-image {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    max-width: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto 1rem;
  }

  .footer-contact li,
  .footer-links li,
  .footer-legal li {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  header .container {
    padding: 0 10px;
  }

  .logo img {
    height: 50px;
  }

  .nav-links {
    display: none;
  }

  .font-size-button {
    margin-left: 0;
  }

  .cookies-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookies-buttons button {
    width: 100%;
  }
}
