/* Base Styles */
:root {
  --primary-color: #3a71ff;
  --secondary-color: #6c63ff;
  --accent-color: #4facfe;
  --dark-color: #21295c;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --border-color: #e0e0e0;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
}

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

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

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

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

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

ul {
  list-style: none;
}

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

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

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

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

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

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

nav ul {
  display: flex;
}

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

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

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

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

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

.spell-check {
  display: flex;
  align-items: center;
}

#spell-check-btn {
  padding: 8px 16px;
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-color);
}

#spell-check-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

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

/* Featured Posts */
.featured-posts {
  padding: 80px 0;
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  position: relative;
}

.featured-posts h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

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

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

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

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-content {
  padding: 20px;
}

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

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

.read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover::after {
  margin-left: 10px;
}

/* Blog Page */
.blog-posts {
  padding: 60px 0;
}

.post-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  margin: 5px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  border-radius: 20px;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.blog-grid .post-card {
  display: flex;
  flex-direction: column;
}

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

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

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.pagination a {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: var(--border-radius);
  background-color: var(--light-color);
  color: var(--text-color);
  transition: var(--transition);
}

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

.pagination .next {
  padding: 8px 20px;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background-color: var(--light-color);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  position: relative;
}

.testimonials h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

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

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.quote {
  color: var(--primary-color);
  opacity: 0.2;
  font-size: 2rem;
  margin-bottom: 15px;
}

.testimonial-card p {
  margin-bottom: 20px;
  color: var(--text-color);
  font-style: italic;
}

.author {
  display: flex;
  flex-direction: column;
}

.author strong {
  color: var(--dark-color);
}

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

/* Newsletter */
.newsletter {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 15px;
  font-size: 2rem;
}

.newsletter p {
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.newsletter input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--dark-color);
  padding: 0 25px;
}

.newsletter button:hover {
  background-color: var(--text-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

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

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
}

.footer-links h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

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

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

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

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 10px;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px 0;
  z-index: 9999;
  display: none;
}

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

.cookie-content p {
  flex: 1;
  min-width: 300px;
}

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

.btn-cookie {
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-cookie.accept {
  background-color: var(--success-color);
  color: white;
}

.btn-cookie.customize {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.btn-cookie.decline {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.7);
}

.btn-cookie:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.cookie-policy-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  margin-left: 10px;
}

.cookie-policy-link:hover {
  color: white;
}

/* About Page */
.about-mission {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}

.about-content h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

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

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

.about-values {
  padding: 80px 0;
  background-color: var(--light-color);
}

.about-values h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  position: relative;
}

.about-values h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

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

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

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

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

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

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

.team-section {
  padding: 80px 0;
}

.team-section h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2rem;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--text-light);
}

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

.team-member {
  text-align: center;
  margin-bottom: 30px;
}

.team-member img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  box-shadow: var(--box-shadow);
}

.team-member h3 {
  margin-bottom: 5px;
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

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

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

.join-team {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
}

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

.join-content h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.join-content p {
  margin-bottom: 30px;
}

/* Contact Page */
.contact-section {
  padding: 80px 0;
}

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

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}

.contact-info h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

.contact-info p {
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.info-icon {
  margin-right: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.info-content h3 {
  margin-bottom: 10px;
}

.info-content p, .info-content a {
  color: var(--text-light);
}

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

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

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
}

.contact-form h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

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

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

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

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

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

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

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

.map-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px 15px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  color: var(--text-light);
}

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

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

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

.thank-you-message {
  text-align: center;
}

.thank-you-message svg {
  margin-bottom: 20px;
}

.thank-you-message h2 {
  margin-bottom: 15px;
}

.thank-you-message p {
  margin-bottom: 25px;
  color: var(--text-light);
}

.close-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

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

/* Blog Post Page */
.post-content {
  padding: 60px 0;
}

.post-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.featured-image {
  margin-bottom: 40px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.featured-image img {
  width: 100%;
  height: auto;
}

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

.post-body h2 {
  margin: 40px 0 20px;
  font-size: 1.8rem;
}

.post-body h3 {
  margin: 30px 0 15px;
  font-size: 1.5rem;
}

.post-body h4 {
  margin: 25px 0 15px;
  font-size: 1.2rem;
}

.post-body p, .post-body ul, .post-body ol {
  margin-bottom: 20px;
  color: var(--text-light);
}

.post-body ul, .post-body ol {
  padding-left: 30px;
}

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

.post-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  font-style: italic;
  color: var(--text-lighter);
  margin: 20px 0;
}

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

.info-box h4 {
  color: var(--primary-color);
  margin-top: 0;
}

.info-box p {
  margin-bottom: 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.tag {
  background-color: var(--light-color);
  color: var(--text-light);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

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

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 20px;
}

.author-info h3 {
  margin-bottom: 5px;
  font-size: 1rem;
  color: var(--text-lighter);
}

.author-info h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.author-info p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.author-social a {
  color: var(--text-lighter);
  margin-right: 15px;
}

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

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

.post-nav-prev, .post-nav-next {
  max-width: 300px;
}

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

.post-navigation span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-lighter);
  margin-bottom: 5px;
}

.post-navigation a {
  font-weight: 600;
}

.related-posts {
  margin-bottom: 60px;
}

.related-posts h3 {
  margin-bottom: 30px;
  font-size: 1.5rem;
  position: relative;
}

.related-posts h3::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image {
    order: -1;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 15px 0;
  }
  
  header .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  nav ul {
    margin-bottom: 15px;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .newsletter form {
    flex-direction: column;
  }
  
  .newsletter input {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }
  
  .newsletter button {
    border-radius: var(--border-radius);
    width: 100%;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .author-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .post-nav-next {
    text-align: left;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .featured-posts, .testimonials, .about-mission, .about-values, .team-section, .contact-section {
    padding: 50px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .post-header h1 {
    font-size: 1.8rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 5px;
  }
}
