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

:root {
  --primary-color: #1a5490;
  --secondary-color: #2d7ec7;
  --accent-color: #f39c12;
  --dark-color: #1a1a1a;
  --light-color: #f4f4f4;
  --text-color: #333;
  --border-color: #ddd;
  --success-color: #27ae60;
  --danger-color: #e74c3c;
}

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

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

.main-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.primary-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 25px;
}

.primary-nav .nav-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.hero-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
}

.hero-banner .container-wrap {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  animation: fadeInUp 1.3s ease;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  animation: fadeInUp 1.6s ease;
}

.cta-button:hover {
  background-color: #e67e22;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typewriter-effect {
  overflow: hidden;
  border-right: 3px solid var(--accent-color);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-color); }
}

.intro-section,
.features-section,
.latest-posts-section,
.glossary-section,
.about-mission,
.values-section,
.team-section,
.blog-section,
.contact-section {
  padding: 60px 0;
}

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

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

.intro-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.intro-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.intro-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.feature-card {
  background: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

.post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.post-content p {
  margin-bottom: 15px;
  color: #666;
}

.read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

.glossary-item {
  background: var(--light-color);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.glossary-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.main-footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 40px 0 20px;
}

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

.footer-col h3,
.footer-col h4 {
  margin-bottom: 15px;
  color: var(--accent-color);
}

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

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.registration-info {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #888;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #888;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.95);
  color: #fff;
  padding: 20px;
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

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

.cookie-content h3 {
  margin-bottom: 10px;
  color: var(--accent-color);
}

.cookie-content a {
  color: var(--accent-color);
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cookie-btn.accept-all {
  background-color: var(--success-color);
  color: #fff;
}

.cookie-btn.accept-all:hover {
  background-color: #229954;
}

.cookie-btn.customize {
  background-color: var(--secondary-color);
  color: #fff;
}

.cookie-btn.customize:hover {
  background-color: var(--primary-color);
}

.cookie-btn.reject {
  background-color: #666;
  color: #fff;
}

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

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

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

.modal-content-wrapper {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content-wrapper h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.cookie-option {
  margin-bottom: 20px;
  padding: 15px;
  background: var(--light-color);
  border-radius: 5px;
}

.cookie-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  cursor: pointer;
}

.cookie-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.cookie-option p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.page-subtitle {
  font-size: 1.2rem;
  margin-top: 10px;
}

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

.mission-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.mission-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.value-card {
  background: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

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

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

.team-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.team-card h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-position {
  color: var(--accent-color);
  font-weight: bold;
  margin-bottom: 10px;
}

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

.blog-grid-full {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-post-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 30px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

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

.post-details {
  padding: 30px;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.post-category {
  color: var(--accent-color);
  font-weight: bold;
}

.post-details h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.post-excerpt {
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.btn-read-full {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-read-full:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

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

.contact-info-panel {
  background: var(--light-color);
  padding: 30px;
  border-radius: 10px;
}

.contact-info-panel h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
}

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

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

.info-content h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.info-content a {
  color: var(--secondary-color);
  text-decoration: none;
}

.contact-form-panel {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-form-panel h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-color);
}

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

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

.btn-submit {
  background-color: var(--success-color);
  color: #fff;
  padding: 12px 40px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #229954;
  transform: translateY(-2px);
}

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

.map-container iframe {
  width: 100%;
  border-radius: 10px;
}

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

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

.modal-box {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
}

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

.modal-box h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.modal-close-btn {
  margin-top: 25px;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.post-article {
  padding: 60px 0;
}

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

.article-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 0.9rem;
  color: #666;
}

.article-featured-image {
  margin-bottom: 40px;
}

.article-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.9;
}

.article-content h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-content p {
  margin-bottom: 20px;
}

.lead-paragraph {
  font-size: 1.3rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 30px;
}

.article-tags {
  max-width: 800px;
  margin: 40px auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background-color: var(--light-color);
  color: var(--primary-color);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.article-navigation {
  max-width: 800px;
  margin: 40px auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.btn-back,
.btn-next {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-back:hover,
.btn-next:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .main-header .container-wrap {
    flex-direction: column;
    gap: 15px;
  }

  .primary-nav .nav-list {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

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

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

  .intro-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-card {
    grid-template-columns: 1fr;
  }

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

  .article-header h1 {
    font-size: 1.8rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
  }

  .typewriter-effect {
    white-space: normal;
    border-right: none;
    animation: none;
  }

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