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

:root {
  --primary-color: #1a472a;
  --secondary-color: #2d5f3f;
  --accent-color: #4a7c5e;
  --text-color: #333;
  --light-bg: #f5f7f6;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

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

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

.logo-img {
  height: 60px;
  width: auto;
}

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

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

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

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

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary-color);
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.welcome-section,
.services-overview,
.featured-posts,
.admin-preview,
.company-info,
.blog-listings,
.newsletter-signup,
.contact-section,
.company-story,
.our-values,
.team-section,
.mission-vision,
.why-trust,
.map-section {
  padding: 60px 0;
}

.welcome-section {
  background-color: var(--light-bg);
}

.content-wrapper h2,
.services-overview h2,
.featured-posts h2,
.admin-preview h2,
.company-info h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

.content-wrapper p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.feature-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

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

.service-card:hover {
  transform: translateY(-5px);
}

.icon-wrapper {
  font-size: 3rem;
  margin-bottom: 20px;
}

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

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

.post-card,
.blog-item {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.post-card:hover,
.blog-item:hover {
  transform: translateY(-5px);
}

.post-card img,
.blog-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-info,
.blog-content {
  padding: 25px;
}

.post-info h3,
.blog-content h2 a {
  color: var(--primary-color);
  margin-bottom: 15px;
  text-decoration: none;
}

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

.read-more,
.read-article {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

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

.admin-frame {
  text-align: center;
}

.admin-frame img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.info-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

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

.info-block h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

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

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

.newsletter-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 50px;
  border-radius: 10px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

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

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 12px 30px;
  background-color: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: var(--light-bg);
}

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

.contact-info,
.contact-form-container {
  background-color: var(--light-bg);
  padding: 40px;
  border-radius: 10px;
}

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

.info-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.hours,
.response-time {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

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

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--primary-color);
}

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

.contact-form textarea {
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 40px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

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

.company-story,
.our-values,
.mission-vision {
  background-color: var(--light-bg);
}

.story-content,
.team-intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.story-content img {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: var(--shadow);
}

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

.value-item,
.trust-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

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

.value-item h3,
.trust-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

.team-member {
  text-align: center;
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 5px solid var(--light-bg);
}

.team-member h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.position {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.mission-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.mission-block {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.mission-block h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: left;
}

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

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

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

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

.article-featured-image {
  max-width: 1200px;
  margin: 0 auto 40px;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

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

.article-content h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.article-footer {
  max-width: 800px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

.share-section {
  text-align: center;
  margin-bottom: 40px;
}

.share-section h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.author-bio {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
}

.author-bio h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

.related-posts h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

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

.related-item {
  text-decoration: none;
  color: var(--text-color);
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.related-item:hover {
  transform: translateY(-5px);
}

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

.related-item h4 {
  padding: 20px;
  color: var(--primary-color);
}

.site-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 60px;
}

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

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-col a:hover {
  opacity: 1;
}

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(26, 71, 42, 0.98);
  color: var(--white);
  padding: 25px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  z-index: 2000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

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

.cookie-content h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

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

.cookie-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
}

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

.decline-btn {
  background-color: #666;
  color: var(--white);
}

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

.cookie-link {
  color: var(--white);
  text-decoration: underline;
  padding: 12px 20px;
  display: inline-block;
}

.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
}

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

.modal-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
  }

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

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

  .hero-content p {
    font-size: 1.1rem;
  }

  .content-wrapper h2,
  .services-overview h2 {
    font-size: 2rem;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

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

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

  .article-content {
    font-size: 1rem;
  }
}