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

:root {
  --primary-color: #1a365d;
  --secondary-color: #2c5282;
  --accent-color: #d4af37;
  --text-color: #2d3748;
  --text-light: #718096;
  --background: #ffffff;
  --background-alt: #f7fafc;
  --border-color: #e2e8f0;
  --success-color: #38a169;
  --error-color: #e53e3e;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body.dark-theme {
  --primary-color: #4a90e2;
  --secondary-color: #357abd;
  --accent-color: #f0c14b;
  --text-color: #e2e8f0;
  --text-light: #a0aec0;
  --background: #1a202c;
  --background-alt: #2d3748;
  --border-color: #4a5568;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.main-header {
  background-color: var(--background);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

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

.logo-section img {
  border-radius: 8px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

body.dark-theme .icon-sun {
  display: inline;
}

body.dark-theme .icon-moon {
  display: none;
}

body:not(.dark-theme) .icon-sun {
  display: none;
}

body:not(.dark-theme) .icon-moon {
  display: inline;
}

.hero-banner {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 4rem;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
}

.hero-banner h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

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

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.features-grid,
.courses-overview,
.testimonials-section,
.stats-showcase,
.latest-posts,
.glossary-section {
  padding: 4rem 0;
}

.features-grid h2,
.courses-overview h2,
.testimonials-section h2,
.latest-posts h2,
.glossary-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.feature-cards,
.courses-list,
.testimonial-grid,
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item,
.course-card,
.testimonial-card,
.blog-preview-card {
  background-color: var(--background-alt);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover,
.course-card:hover,
.blog-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.feature-item h3,
.course-details h3,
.blog-preview-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.course-card img,
.blog-preview-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.course-details {
  padding: 1rem 0;
}

.course-duration,
.course-level {
  display: inline-block;
  margin-right: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-card {
  font-style: italic;
}

.testimonial-card footer {
  margin-top: 1.5rem;
  font-style: normal;
  text-align: right;
}

.testimonial-card strong {
  display: block;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.stats-showcase {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
}

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

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
}

.read-more,
.secondary-button {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: color 0.3s ease;
}

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

.view-all-posts {
  text-align: center;
  margin-top: 3rem;
}

.secondary-button {
  padding: 0.8rem 2rem;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  transition: all 0.3s ease;
}

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

.glossary-list {
  display: grid;
  gap: 1.5rem;
}

.glossary-term {
  background-color: var(--background-alt);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.glossary-term dt {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.glossary-term dd {
  color: var(--text-light);
}

.main-footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

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

.footer-links a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

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

.footer-section a[href^="tel"],
.footer-section a[href^="mailto"] {
  color: white;
  text-decoration: none;
}

.footer-section a[href^="tel"]:hover,
.footer-section a[href^="mailto"]:hover {
  color: var(--accent-color);
}

.company-reg {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background-alt);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

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

.cookie-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.cookie-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

.cookie-btn.decline {
  background-color: var(--border-color);
  color: var(--text-color);
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cookie-policy-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.page-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

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

.articles-grid {
  display: grid;
  gap: 3rem;
}

.article-card {
  background-color: var(--background-alt);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-image {
  position: relative;
}

.article-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.article-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.article-content {
  padding: 2rem;
}

.article-content h2 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-content h2 a:hover {
  color: var(--secondary-color);
}

.article-meta {
  margin: 1rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.article-meta span {
  margin-right: 1rem;
}

.read-article-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-article-btn:hover {
  background-color: var(--secondary-color);
  transform: translateX(5px);
}

.blog-categories {
  background-color: var(--background-alt);
  padding: 3rem 0;
  margin: 4rem 0;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.category-tag {
  padding: 0.6rem 1.2rem;
  background-color: var(--background);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.mission-section,
.values-section,
.team-section,
.achievements-section {
  padding: 4rem 0;
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.mission-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.value-item,
.achievement-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--background-alt);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

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

.value-item h3,
.achievement-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

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

.team-member-card {
  background-color: var(--background-alt);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.team-member-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  color: var(--primary-color);
  font-size: 1.4rem;
}

.member-position {
  padding: 0 1.5rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-member-card p {
  padding: 0 1.5rem 1.5rem;
  line-height: 1.7;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin: 3rem 0;
}

.contact-info-panel,
.contact-form-panel {
  background-color: var(--background-alt);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-info-panel h2,
.contact-form-panel h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  font-size: 1.8rem;
  min-width: 40px;
}

.contact-text h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-hours {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.company-registration {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--background);
  color: var(--text-color);
  transition: border-color 0.3s ease;
}

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

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
}

.checkbox-label input {
  margin-top: 0.2rem;
}

.checkbox-label a {
  color: var(--primary-color);
}

.submit-button {
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.faq-section {
  background-color: var(--background-alt);
  padding: 4rem 0;
  margin: 4rem 0;
}

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

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

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

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

.modal-content {
  background-color: var(--background);
  padding: 3rem;
  border-radius: 12px;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.modal-close-btn {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.post-article {
  max-width: 900px;
  margin: 0 auto;
}

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

.post-meta-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-category {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.post-date,
.post-reading-time {
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-author {
  color: var(--text-light);
  font-style: italic;
}

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

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

.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.post-body .lead-paragraph {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.post-body h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

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

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tag {
  background-color: var(--background-alt);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-color);
}

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

.share-btn {
  padding: 0.6rem 1.2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.related-posts {
  margin-top: 4rem;
  padding: 3rem;
  background-color: var(--background-alt);
  border-radius: 12px;
}

.related-posts h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

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

.related-post-card {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  background-color: var(--background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.related-post-card h4 {
  padding: 1rem;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-banner h1 {
    font-size: 2rem;
  }

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

  .mission-content,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .post-body {
    font-size: 1rem;
  }
}