/* Base Styles & Variables */
:root {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #6282fa;
  --secondary-color: #ff6b6b;
  --secondary-dark: #e85858;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #e9ecef;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --border-color: #dee2e6;
  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-increased: 18px;
  --header-height: 80px;
  --container-width: 1200px;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

body.font-increased {
  font-size: var(--font-size-increased);
}

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

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

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

ul {
  list-style: none;
}

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

/* Typography */
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;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

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

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

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

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

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

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

nav ul {
  display: flex;
  gap: 30px;
}

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

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

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

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

.font-size-control button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.font-size-control button:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.features h2 {
  text-align: center;
  margin-bottom: 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
  display: flex;
  justify-content: center;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
}

.feature-card h3 {
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Latest Posts Section */
.latest-posts {
  padding: 80px 0;
}

.latest-posts h2 {
  text-align: center;
  margin-bottom: 50px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

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

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

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

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

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

.post-content {
  padding: 20px;
}

.post-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

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

.center {
  text-align: center;
}

/* Fun Fact Section */
.fun-fact {
  background-color: var(--primary-light);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.fun-fact h3 {
  color: white;
  margin-bottom: 10px;
}

.fun-fact p {
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: #292f36;
  color: white;
  padding: 60px 0 30px;
}

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

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-light);
}

.footer-col p, .footer-col address p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

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

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-links 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: white;
  transition: var(--transition);
}

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

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Blog Content */
.blog-content {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.blog-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.blog-image {
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.blog-info {
  padding: 20px 20px 10px;
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.9rem;
}

.blog-category {
  color: var(--primary-color);
  font-weight: 500;
}

.blog-card h2 {
  padding: 0 20px;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.blog-card h2 a {
  color: var(--text-color);
  transition: var(--transition);
}

.blog-card h2 a:hover {
  color: var(--primary-color);
}

.blog-card p {
  padding: 0 20px;
  color: var(--text-light);
  flex-grow: 1;
}

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

.read-more span {
  transition: var(--transition);
  margin-left: 5px;
}

.read-more:hover span {
  transform: translateX(5px);
}

/* Post Content */
.post-content {
  padding: 80px 0;
}

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

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

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

.post-header h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.post-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

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

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 600;
  display: block;
}

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

.post-featured-image {
  margin-bottom: 40px;
  border-radius: var(--border-radius);
  overflow: hidden;
  max-height: 500px;
}

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

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

.post-body h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.post-body h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.post-body ul {
  list-style-type: disc;
}

.post-body ol {
  list-style-type: decimal;
}

.post-body li {
  margin-bottom: 10px;
}

.post-cta {
  margin-top: 50px;
  padding: 30px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  text-align: center;
}

.post-cta h3 {
  margin-bottom: 15px;
}

.post-cta p {
  margin-bottom: 20px;
}

.post-navigation {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.post-navigation-prev, .post-navigation-next {
  max-width: 45%;
}

.post-navigation-next {
  text-align: right;
}

.post-nav-link {
  display: block;
  color: var(--text-color);
}

.post-nav-label {
  display: block;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 5px;
}

.post-nav-title {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* About Content */
.about-content {
  padding: 80px 0;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 60px;
}

.team-section, .values-section {
  margin-bottom: 60px;
}

.team-section h2, .values-section h2 {
  text-align: center;
  margin-bottom: 50px;
}

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

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

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

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

.team-card h3 {
  margin: 15px 0 5px;
  padding: 0 15px;
}

.team-card p {
  color: var(--text-light);
  padding: 0 15px;
  margin-bottom: 15px;
}

.team-card p:first-of-type {
  color: var(--primary-color);
  font-weight: 500;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-bottom: 20px;
}

.team-social a {
  color: var(--text-light);
  transition: var(--transition);
}

.team-social a:hover {
  color: var(--primary-color);
}

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

.value-card {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.value-icon svg {
  width: 40px;
  height: 40px;
}

.value-card h3 {
  margin-bottom: 15px;
}

.value-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Contact Content */
.contact-content {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.contact-info {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: var(--border-radius);
}

.contact-info h2 {
  margin-bottom: 30px;
}

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

.info-icon {
  color: var(--primary-color);
  margin-right: 20px;
  margin-top: 5px;
}

.info-text h3 {
  margin-bottom: 5px;
}

.info-text p, .info-text address {
  color: var(--text-light);
  font-style: normal;
}

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

.social-contact h3 {
  margin-bottom: 20px;
}

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

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

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

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

.contact-form h2 {
  margin-bottom: 30px;
}

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

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

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

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

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.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: normal;
}

.form-submit {
  margin-top: 30px;
}

.map-section {
  margin-top: 60px;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

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

.modal h2 {
  margin-bottom: 15px;
}

.modal p {
  margin-bottom: 25px;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content h4 {
  margin-bottom: 10px;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.btn-accept {
  background-color: var(--success-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-accept:hover {
  background-color: #27ae60;
}

.btn-customize, .btn-reject {
  background-color: transparent;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-customize {
  border: 1px solid var(--text-light);
  color: var(--text-light);
}

.btn-customize:hover {
  background-color: var(--bg-light);
}

.btn-reject {
  border: 1px solid var(--error-color);
  color: var(--error-color);
}

.btn-reject:hover {
  background-color: #fef2f2;
}

.cookie-more-info {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .post-header h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 70px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  header {
    height: auto;
    padding: 15px 0;
  }
  
  header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  nav ul {
    gap: 15px;
  }
  
  .feature-grid, .post-grid, .blog-grid, .team-grid, .values-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .post-navigation-prev, .post-navigation-next {
    max-width: none;
  }
  
  .post-navigation-next {
    text-align: left;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .post-header h1 {
    font-size: 1.8rem;
  }
  
  .contact-form {
    padding: 25px;
  }
  
  .contact-info {
    padding: 25px;
  }
}
