/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #f9f9f9;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background-color: #ffffff;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-block;
}

.logo img {
  height: 60px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #006633;
}

.header-actions {
  display: flex;
  align-items: center;
}

.search-btn, .cart-btn {
  background: none;
  border: none;
  font-size: 20px;
  margin-left: 20px;
  cursor: pointer;
  color: #333333;
  transition: color 0.3s ease;
}

.search-btn:hover, .cart-btn:hover {
  color: #006633;
}

/* Hero Section */
.hero {
  position: relative;
  margin-bottom: 50px;
  cursor: pointer;
  overflow: hidden;
}

.hero-background {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.primary-button, .secondary-button {
  padding: 12px 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.primary-button {
  background-color: #ffcc00;
  color: #006633;
  border: none;
}

.primary-button:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
}

.secondary-button {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.secondary-button:hover {
  background-color: white;
  color: #006633;
  transform: translateY(-2px);
}

/* Featured Products */
.featured-products {
  margin-bottom: 60px;
}

.featured-products h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #006633;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #006633;
}

.product-info p {
  color: #666666;
  margin-bottom: 15px;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #333333;
}

/* Customer Reviews */
.customer-reviews {
  background-color: #f0f7f4;
  padding: 60px 0;
  margin-bottom: 60px;
}

.customer-reviews h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #006633;
}

.review-content {
  display: flex;
  justify-content: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.review-stars {
  margin-bottom: 20px;
}

.review-stars i {
  color: #ffcc00;
  font-size: 24px;
  margin: 0 2px;
}

.review-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  font-size: 16px;
  font-weight: bold;
  color: #006633;
}

.review-content img {
  max-width: 100%;
  height: auto;
}

/* CTA Section */
.cta-section {
  background-color: #006633;
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 60px;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background-color: #333333;
  color: white;
  padding: 40px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ffcc00;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #ffcc00;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #555555;
  text-align: center;
}

/* Blog Page Styles */
.blog-hero {
  background-color: #1a365d;
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.blog-articles {
  padding: 2rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-post {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post:hover .blog-image {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1a365d;
}

.post-meta {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.post-content p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #004c99;
  text-decoration: underline;
}

/* Newsletter Section Styles */
.newsletter {
  background-color: #f7f9fc;
  padding: 3rem 0;
  text-align: center;
  margin: 2rem 0;
}

.newsletter h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #1a365d;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: #555;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

/* Privacy Policy Page */
.privacy-policy {
  padding: 60px 0;
}

.privacy-policy h1 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #006633;
}

.privacy-policy h2 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: #006633;
}

.privacy-policy p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Article Page */
.article-page {
  padding: 40px 0;
}

.article-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.article-main {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-sidebar {
  position: sticky;
  top: 100px;
}

.floating-cta {
  background-color: #006633;
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.floating-cta h3 {
  margin-bottom: 15px;
}

.floating-cta a {
  display: inline-block;
  background-color: #ffcc00;
  color: #006633;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.floating-cta a:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
}

/* CSS Optimization Techniques */
/* 1. Minimize CSS redundancy */
/* 2. Use efficient selectors */
/* 3. Optimize font loading */
/* 4. Ensure responsive design */
/* 5. Prioritize critical CSS */
/* 6. Optimize performance */

/* Responsive Styles */
@media (max-width: 992px) {
  .article-content {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .product-card {
    padding: 1rem;
  }
  
  .review-card {
    padding: 1.5rem;
  }
}