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

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  transition: var(--transition);
}

body.dark-theme {
  --primary-color: #1a252f;
  --text-color: #e0e0e0;
  --light-bg: #2c3e50;
  --white: #34495e;
  --border-color: #445566;
  background-color: #1a1a2e;
}

.main-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navigation-bar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: block;
}

.site-logo {
  height: 50px;
  width: auto;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
}

.main-content {
  min-height: calc(100vh - 200px);
}

.hero-section {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(231,76,60,0.4);
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.intro-section,
.featured-posts,
.why-section,
.cta-section {
  padding: 80px 20px;
}

.section-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.intro-text {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

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

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

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

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

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

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

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.post-excerpt {
  margin-bottom: 1rem;
  color: #666;
}

.read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

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

.feature-box {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-description {
  color: #666;
}

.cta-section {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white);
  text-align: center;
}

.cta-heading {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--white);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

.main-footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-heading {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-text {
  line-height: 1.8;
  opacity: 0.9;
}

.footer-reg {
  margin-top: 1rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 5px;
}

.footer-contact {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

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

.cookie-banner {
  position: fixed;
  bottom: -500px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.2);
  padding: 2rem;
  z-index: 10000;
  transition: bottom 0.5s ease;
}

.cookie-banner.show {
  bottom: 0;
}

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

.cookie-title {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.cookie-text {
  margin-bottom: 1rem;
  color: #666;
}

.cookie-link {
  color: var(--secondary-color);
}

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

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

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

.cookie-accept:hover {
  background: #2980b9;
}

.cookie-settings {
  background: var(--light-bg);
  color: var(--text-color);
}

.cookie-decline {
  background: transparent;
  color: #666;
  border: 1px solid var(--border-color);
}

.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.cookie-settings-modal.show {
  display: flex;
}

.modal-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
}

.modal-title {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.cookie-option {
  margin-bottom: 1.5rem;
}

.cookie-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}

.cookie-description {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  padding-left: 1.5rem;
}

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

.page-hero {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.blog-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

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

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.meta-separator {
  opacity: 0.5;
}

.blog-excerpt {
  margin-bottom: 1rem;
  color: #666;
  line-height: 1.6;
}

.blog-read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.blog-read-more:hover {
  color: var(--accent-color);
}

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

.team-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.team-position {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  color: #666;
  line-height: 1.6;
}

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

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

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.value-description {
  color: #666;
}

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

.stat-box {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 1.1rem;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info-block,
.contact-form-block {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.info-heading,
.form-heading {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  font-size: 1.5rem;
}

.info-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.info-text {
  color: #666;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form-submit {
  padding: 1rem;
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background: #2980b9;
}

.faq-grid {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.faq-question {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.faq-answer {
  color: #666;
  line-height: 1.6;
}

.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.success-modal.show {
  display: flex;
}

.success-modal-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.success-icon {
  font-size: 4rem;
  color: #27ae60;
  margin-bottom: 1rem;
}

.success-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.success-text {
  color: #666;
  margin-bottom: 2rem;
}

.success-close {
  padding: 0.75rem 2rem;
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.post-article {
  padding: 3rem 0;
}

.post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-meta-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.post-category {
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.post-date,
.post-reading-time {
  color: #666;
  font-size: 0.9rem;
}

.post-main-title {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
}

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

.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-intro {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: #555;
}

.post-subheading {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.post-text {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.post-quote {
  border-left: 4px solid var(--secondary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--light-bg);
  font-style: italic;
}

.post-quote p {
  margin: 0;
  font-size: 1.1rem;
}

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

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

.tag-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.post-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--light-bg);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 20px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.back-to-blog {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
}

.back-to-blog:hover {
  background: #2980b9;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-heading {
    font-size: 2rem;
  }

  .posts-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .post-main-title {
    font-size: 1.8rem;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .page-title {
    font-size: 2rem;
  }
}