/**
 * Page Consistency Styles
 * Shared styles for consistent layout, spacing, and mobile responsiveness across all pages
 */

/* Standardized Breadcrumb Styling */
.breadcrumb-nav {
  margin-bottom: 1.5rem;
  z-index: 3;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
  margin-bottom: 0 !important;
}

.breadcrumb-item {
  font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding: 0 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #fd5631;
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}

/* Dark breadcrumb variant for light backgrounds */
.breadcrumb-nav.dark .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(0, 0, 0, 0.5);
}

.breadcrumb-nav.dark .breadcrumb-item a {
  color: rgba(0, 0, 0, 0.7);
}

.breadcrumb-nav.dark .breadcrumb-item.active {
  color: #333;
}

/* Standardized Related Links Section */
.related-links-section {
  background: linear-gradient(135deg, rgba(93, 60, 242, 0.05), rgba(253, 86, 49, 0.05));
  border: 1px solid rgba(93, 60, 242, 0.1);
}

.related-links-section a {
  transition: all 0.3s ease;
}

.related-links-section a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* Standardized Card Spacing */
.page-wrapper {
  padding-top: 80px;
}

section {
  padding: 3rem 0;
}

@media (max-width: 991px) {
  section {
    padding: 2rem 0;
  }
}

@media (max-width: 575px) {
  section {
    padding: 1.5rem 0;
  }
}

/* Standardized Mobile Spacing */
@media (max-width: 575px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card,
  .shadow-lg {
    border-radius: 16px !important;
    padding: 1.5rem !important;
  }

  .display-4,
  .display-5 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  .lead {
    font-size: 1rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .p-4,
  .p-md-5 {
    padding: 1.5rem !important;
  }

  .g-4 {
    gap: 1rem !important;
  }

  .g-5 {
    gap: 1.5rem !important;
  }
}

/* Standardized Heading Hierarchy */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.625rem;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* Improved Card Consistency */
.card,
.shadow-lg {
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover,
.shadow-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Better spacing utilities */
@media (max-width: 991px) {
  .mb-lg-5 {
    margin-bottom: 2rem !important;
  }

  .py-lg-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Improved text readability on mobile */
@media (max-width: 575px) {
  body {
    font-size: 15px;
    line-height: 1.6;
  }

  p {
    margin-bottom: 1rem;
  }

  .text-muted {
    font-size: 0.875rem;
  }
}

/* Consistent button styling */
.btn {
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.625rem 1.5rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: linear-gradient(135deg, #5d3cf2 0%, #fd5631 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(93, 60, 242, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 60, 242, 0.4);
}

/* Hover lift effect */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

/* Improved focus states for accessibility */
a:focus,
button:focus,
.btn:focus {
  outline: 2px solid #5d3cf2;
  outline-offset: 2px;
}

/* Better image responsiveness */
img {
  max-width: 100%;
  height: auto;
}

.img-fluid {
  width: 100%;
  height: auto;
}

/* Improved container max-widths */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

