/* Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, #78b6df, #be7ed9);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 20px;
}

.secondary-button {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 50%;
}

.secondary-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Info Section Styles */
.info-section {
  padding: 3rem 2rem;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.info-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #2c3e50;
}

.info-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.info-card {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

.info-icon {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 1rem;
}

.info-card h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.info-card p {
  color: #7f8c8d;
  line-height: 1.6;
}

/* Converter Section Styles */
.converter-section {
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.converter-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #2c3e50;
}

.section-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #7f8c8d;
  line-height: 1.6;
}

/* Updated Converter Card Styles */
.converter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
  margin: 0 auto;
}

.converter-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: #1f2937;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 200px;
}

.converter-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #3498db;
}

.converter-card h3 {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.converter-card p {
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* How To Use Section Styles */
.how-to-section {
  padding: 3rem 2rem;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.how-to-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #2c3e50;
}

.steps-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.step {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  position: relative;
}

.step-number {
  background-color: #3498db;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.step p {
  color: #7f8c8d;
  line-height: 1.6;
}

/* Educational Resources Section Styles */
.resources-section {
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.resources-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #2c3e50;
}

.article-preview-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.article-preview {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  text-align: left;
}

.article-preview h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.article-preview h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-preview h3 a:hover {
  color: #3498db;
}

.article-preview p {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.read-more {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #2980b9;
}

.view-all-container {
  margin-top: 2rem;
}

.view-all-button {
  background-color: #3498db;
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.view-all-button:hover {
  background-color: #2980b9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .info-card, .step, .article-preview {
    min-width: 100%;
  }
}

/* FAQ Section Styles */
.faq-section {
  padding: 3rem 2rem;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.faq-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #2c3e50;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
}

.faq-toggle {
  color: #3498db;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 1000px;
}

.faq-answer p {
  color: #7f8c8d;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Adjustments for FAQ */
@media (max-width: 768px) {
  .faq-question h3 {
    font-size: 1.1rem;
  }
}

/* Fix for main layout on home page */
body[data-page-category="home"] main {
  display: block;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

body[data-page-category="home"] main > div {
  width: 100%;
  max-width: 100%;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
  body[data-page-category="home"] main {
    padding: 1rem;
  }
  
  .converter-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .converter-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section, .info-section, .converter-section,
  .how-to-section, .resources-section, .faq-section {
    padding: 2rem 1rem;
  }
}