/* Consulting Page Styles */

/* Constrain the full layout to readable width */
.page-layout-full .quarto-container,
.page-layout-full #quarto-content,
.page-layout-full main.content {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Grid should use full available width */
.grid {
  max-width: 100% !important;
  width: 100% !important;
}

/* Ensure content columns are properly sized */
.column-page,
.column-body,
.column-screen {
  max-width: 100% !important;
}

/* Extra wide screens */
@media (min-width: 1600px) {
  .page-layout-full .quarto-container,
  .page-layout-full #quarto-content,
  .page-layout-full main.content {
    max-width: 1600px !important;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .page-layout-full .quarto-container,
  .page-layout-full #quarto-content,
  .page-layout-full main.content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

.consulting-intro {
  text-align: left;
  max-width: 100%;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.service-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: var(--bs-primary);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--bs-primary);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--bs-body-color);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-topics {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bs-border-color);
}

.service-topics h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bs-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-topics ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-topics li {
  padding: 0.25rem 0;
  color: var(--bs-body-color);
  font-size: 0.9rem;
}

.service-topics li::before {
  content: "→";
  color: var(--bs-primary);
  margin-right: 0.5rem;
  font-weight: bold;
}

.cta-section {
  background: var(--bs-primary-bg-subtle);
  border: 2px solid var(--bs-primary);
  border-radius: 0.75rem;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-primary-custom {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--bs-primary);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background: var(--bs-primary);
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: white;
}

.btn-secondary-custom {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--bs-primary);
  border: 2px solid var(--bs-primary);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
  background: var(--bs-primary);
  color: white;
  transform: translateY(-2px);
}

.student-note {
  background: var(--bs-info-bg-subtle);
  border-left: 4px solid var(--bs-info);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.25rem;
}

.student-note h3 {
  font-size: 1.25rem;
  color: var(--bs-info);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.student-note p {
  margin: 0;
  line-height: 1.6;
  color: var(--bs-body-color);
}

.student-note a {
  color: var(--bs-info);
  font-weight: 600;
}

.student-note a:hover {
  color: var(--bs-info);
  text-decoration: underline;
}

/* Dark mode specific adjustments for student note */
@media (prefers-color-scheme: dark) {
  .student-note {
    background: rgba(13, 110, 253, 0.15);
    border-left-color: #6ea8fe;
  }

  .student-note h3 {
    color: #6ea8fe;
  }

  .student-note p {
    color: var(--bs-body-color);
  }

  .student-note a {
    color: #6ea8fe;
  }
}

.logo-section {
  text-align: center;
  margin: 3rem 0;
}

.logo-section img {
  max-width: 500px;
  height: auto;
  opacity: 0.9;
}

.back-link {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bs-border-color);
}

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

  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    width: 100%;
  }
}
