/* css styles */

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  text-align: center;
}

.hero-banner h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  border-bottom: none;
}

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

/* Content Grid for Cards */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Content Cards */
.content-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.content-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.content-card code {
  background: #e9ecef;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  color: #667eea;
  font-weight: 500;
}

/* Math Preface */
.math-preface {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  font-style: italic;
}

/* Section Blocks */
.section-block {
  background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.section-block:hover {
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.section-block h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.5rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.section-count {
  font-size: 0.75rem;
  font-weight: 500;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  margin-left: 0.75rem;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.section-block > p {
  color: #6c757d;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* See All Button */
.see-all-button {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.see-all-button a {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.see-all-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}

/* Footer Section */
.footer-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

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

.footer-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
}

.footer-card h3 {
  margin-top: 0;
  color: #667eea;
  font-size: 1.2rem;
}

.footer-card ul {
  list-style: none;
  padding-left: 0;
}

.footer-card li {
  margin-bottom: 0.5rem;
}

/* Scrollable Navbar Dropdowns */
.navbar .dropdown-menu {
  max-height: 70vh;
  overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-banner p {
    font-size: 1rem;
  }
}
