/* Hub Pages Styling */

.hub-header {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  color: white;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.hub-header .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.hub-header a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.hub-header a:hover {
  color: white;
  text-decoration: underline;
}

.hub-hero {
  margin: 3rem 0;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #1565C0;
}

.hub-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0D47A1;
}

.hub-hero .subtitle {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

/* Calculators Grid */
.calculators-grid-section {
  margin: 3rem 0;
}

.calculators-grid-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #0D47A1;
}

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

.calculator-card {
  padding: 2rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: white;
}

.calculator-card:hover {
  border-color: #1565C0;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
  transform: translateY(-2px);
}

.calculator-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.calculator-card h3 {
  font-size: 1.3rem;
  color: #0D47A1;
  margin-bottom: 0.5rem;
}

.calculator-card p {
  color: #999;
  margin-bottom: 1rem;
}

.calculator-card .cta {
  color: #1565C0;
  font-weight: bold;
  display: inline-block;
  margin-top: 1rem;
}

/* Use Cases */
.use-cases-section {
  margin: 3rem 0;
}

.use-cases-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #0D47A1;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.use-case-card {
  padding: 1.5rem;
  background: #f0f7ff;
  border-left: 4px solid #1565C0;
  border-radius: 4px;
}

.use-case-card h3 {
  font-size: 1rem;
  color: #0D47A1;
  margin-bottom: 0.5rem;
}

.use-case-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Featured Variants */
.featured-variants-section {
  margin: 3rem 0;
}

.featured-variants-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #0D47A1;
}

.featured-variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.variant-card {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-align: center;
  transition: all 0.3s ease;
}

.variant-card:hover {
  border-color: #1565C0;
  background: #f0f7ff;
}

.variant-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.variant-card strong {
  color: #0D47A1;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.variant-card .calculator-name {
  font-size: 0.8rem;
  color: #999;
  display: block;
}

/* Comparison Table */
.comparison-table-wrapper {
  margin: 3rem 0;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: bold;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:hover {
  background: #f8f9fa;
}

.comparison-table a {
  color: #1565C0;
  text-decoration: none;
}

.comparison-table a:hover {
  text-decoration: underline;
}

/* Related Articles */
.related-articles-section {
  margin: 3rem 0;
}

.related-articles-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #0D47A1;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-item a {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  color: #1565C0;
  transition: all 0.3s ease;
  display: block;
}

.article-item a:hover {
  background: #f0f7ff;
  border-color: #1565C0;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.1);
}

/* FAQ Section */
.faq-section {
  margin: 3rem 0;
}

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

.faq-section > div {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.faq-section h3 {
  color: #0D47A1;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.faq-section p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Hub Breadcrumb Link (in variants) */
.hub-breadcrumb-link {
  margin: 2rem 0;
  padding: 1rem;
  background: #e8f4f8;
  border-left: 4px solid #1565C0;
  border-radius: 4px;
}

.hub-breadcrumb-link p {
  margin: 0;
}

.hub-breadcrumb-link a {
  color: #1565C0;
  text-decoration: none;
  font-weight: bold;
}

.hub-breadcrumb-link a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hub-hero h1 {
    font-size: 1.8rem;
  }

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

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .featured-variants-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-table-wrapper {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }
}
