/* Base Styles */
:root {
  --primary-color: #4c6ef5;
  --primary-dark: #3b5bdb;
  --primary-light: #748ffc;
  --secondary-color: #ff922b;
  --secondary-dark: #f76707;
  --text-color: #212529;
  --text-light: #495057;
  --background-color: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #e9ecef;
  --border-color: #dee2e6;
  --success-color: #37b24d;
  --warning-color: #f59f00;
  --danger-color: #f03e3e;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: var(--text-color);
}

h1 {
  font-size: 4.2rem;
}

h2 {
  font-size: 3.2rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

p {
  margin-bottom: 2rem;
}

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

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

ul, ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.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;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--background-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

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

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

.logo img {
  height: 4rem;
  width: auto;
}

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

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

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

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

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

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

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 15rem 0 8rem;
  background-color: var(--background-light);
}

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

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

.hero h1 {
  margin-bottom: 2rem;
  color: var(--text-color);
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text-light);
}

.hero-image {
  flex: 1;
}

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

/* Story Introduction */
.story-intro {
  padding: 8rem 0;
  background-color: var(--background-color);
}

.story-intro h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.story-content {
  max-width: 80rem;
  margin: 0 auto;
  font-size: 1.8rem;
}

/* Featured Posts */
.featured-posts {
  padding: 8rem 0;
  background-color: var(--background-light);
}

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

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

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

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

.post-image {
  position: relative;
  height: 20rem;
  overflow: hidden;
}

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

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

.post-content {
  padding: 2rem;
}

.post-category {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.post-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

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

.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
}

.read-more:hover {
  color: var(--primary-dark);
}

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

.read-more:hover::after {
  margin-left: 1rem;
}

.center-button {
  text-align: center;
  margin-top: 4rem;
}

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

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

.newsletter p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 60rem;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1.5rem 2rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1.6rem;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--secondary-color);
  padding: 0 3rem;
}

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

/* Footer */
footer {
  background-color: #212529;
  color: #f8f9fa;
  padding: 6rem 0 3rem;
}

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

.footer-logo img {
  height: 5rem;
  margin-bottom: 2rem;
}

.footer-logo p {
  color: #adb5bd;
}

.footer-links h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

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

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

.footer-links a {
  color: #adb5bd;
  transition: color 0.3s ease;
}

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

.footer-social h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

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

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

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

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

.footer-bottom p {
  color: #adb5bd;
  margin-bottom: 1rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(33, 37, 41, 0.95);
  color: white;
  padding: 2rem;
  z-index: 1000;
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

.cookie-consent.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 90rem;
}

.cookie-content p {
  margin-bottom: 2rem;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-link {
  color: var(--primary-light);
  text-decoration: underline;
  margin-top: 1rem;
  display: inline-block;
}

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

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 12rem 0 6rem;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 2rem;
  max-width: 60rem;
  margin: 0 auto;
}

/* Blog Posts Page */
.blog-posts {
  padding: 6rem 0;
}

.blog-filter {
  margin-bottom: 4rem;
}

.blog-filter h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  padding: 0.8rem 1.6rem;
  background-color: var(--background-light);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1.4rem;
  transition: var(--transition);
}

.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: 1.5rem;
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Single Blog Post */
.blog-post {
  padding: 12rem 0 6rem;
}

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

.post-featured-image {
  margin: 3rem 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

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

.blog-post h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.post-content {
  font-size: 1.8rem;
  line-height: 1.8;
  max-width: 80rem;
  margin: 0 auto;
}

.post-content h2 {
  font-size: 3rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.post-content h3 {
  font-size: 2.4rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 3rem;
}

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

.post-quote {
  border-left: 4px solid var(--primary-color);
  padding: 2rem;
  background-color: var(--background-light);
  margin: 3rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.post-quote p {
  font-style: italic;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.post-quote cite {
  font-weight: 600;
  font-style: normal;
}

.highlighted-box {
  background-color: var(--primary-light);
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 3rem 0;
}

.post-image {
  margin: 3rem 0;
}

.image-caption {
  font-size: 1.4rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 1rem;
}

.post-footer {
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.post-tags span {
  font-weight: 600;
}

.post-tags a {
  background-color: var(--background-light);
  padding: 0.5rem 1rem;
  border-radius: 3rem;
  font-size: 1.4rem;
  transition: var(--transition);
}

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

.post-share {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.post-share span {
  font-weight: 600;
}

.post-share a {
  color: var(--text-light);
  transition: var(--transition);
}

.post-share a:hover {
  color: var(--primary-color);
}

.post-author-bio {
  display: flex;
  align-items: center;
  background-color: var(--background-light);
  padding: 3rem;
  border-radius: var(--border-radius);
  margin: 5rem 0;
}

.post-author-bio img {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 3rem;
}

.author-details h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.author-details h4 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.author-details p {
  margin-bottom: 0;
}

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

.related-posts .posts-grid {
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
}

.related-posts .post-card h4 {
  font-size: 1.8rem;
}

/* About Page */
.about-section {
  padding: 6rem 0;
}

.about-content {
  display: flex;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

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

.team-section {
  padding: 6rem 0;
  background-color: var(--background-light);
}

.team-section h2 {
  text-align: center;
  margin-bottom: 5rem;
}

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

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

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

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

.team-member h3 {
  margin: 2rem 0 0.5rem;
  font-size: 2.2rem;
}

.team-member p {
  padding: 0 2rem;
  margin-bottom: 1.5rem;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.testimonials {
  padding: 6rem 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 5rem;
}

.testimonials-slider {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  padding-bottom: 2rem;
}

.testimonial {
  flex: 0 0 calc(50% - 1.5rem);
  min-width: 30rem;
}

.testimonial-content {
  background-color: var(--background-light);
  padding: 3rem;
  border-radius: var(--border-radius);
  position: relative;
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 30px;
  width: 30px;
  height: 30px;
  background-color: var(--background-light);
  transform: rotate(45deg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 3rem;
  padding-left: 2rem;
}

.testimonial-author img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 2rem;
}

.testimonial-author h4 {
  margin-bottom: 0.5rem;
}

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

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

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 5rem;
}

.contact-info h2 {
  margin-bottom: 3rem;
}

.contact-info p {
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  margin-bottom: 3rem;
}

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

.info-text h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

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

.social-connect {
  margin-top: 4rem;
}

.social-connect h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.contact-form-container h2 {
  margin-bottom: 3rem;
}

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

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

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

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

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

.map-section {
  margin-top: 6rem;
}

.map-container {
  width: 100%;
  height: 40rem;
  overflow: hidden;
}

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

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  padding: 4rem;
  border-radius: var(--border-radius);
  max-width: 50rem;
  width: 90%;
  text-align: center;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.4rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--danger-color);
}

.modal-icon {
  width: 8rem;
  height: 8rem;
  background-color: var(--success-color);
  color: white;
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal h2 {
  margin-bottom: 1.5rem;
}

.modal p {
  margin-bottom: 3rem;
}

/* Media Queries */
@media (max-width: 992px) {
  html {
    font-size: 60%;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 4rem;
    text-align: center;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-text {
    order: 2;
  }
  
  .about-image {
    order: 1;
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  .nav-links {
    position: absolute;
    right: 0;
    top: 8rem;
    background-color: white;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.5s ease;
    z-index: 10;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: 1.5rem 0;
  }
  
  .burger {
    display: block;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
    width: 100%;
  }
  
  .post-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .post-author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .post-author-bio img {
    margin-right: 0;
    margin-bottom: 2rem;
  }
  
  .testimonial {
    flex: 0 0 100%;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 50%;
  }
  
  h1 {
    font-size: 3.6rem;
  }
  
  h2 {
    font-size: 2.8rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .info-item {
    flex-direction: column;
  }
  
  .info-icon {
    margin-bottom: 1.5rem;
    margin-right: 0;
  }
  
  .info-text {
    text-align: center;
  }
}
