/* ============================================================================
   BPMSOFT SITE - CSS STYLESHEET
   Responsive design for public-facing pages
   Bootstrap 5 base with custom enhancements
   ========================================================================== */

/* ============================================================================
   1. BASE & TYPOGRAPHY
   ========================================================================== */

html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Focus states for accessibility */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============================================================================
   2. NAVIGATION
   ========================================================================== */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* ============================================================================
   3. BORDERS & SHADOWS
   ========================================================================== */

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

/* ============================================================================
   4. BUTTONS
   ========================================================================== */

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Blog header styles */
.blog-header-logo {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  text-decoration: none;
}

.blog-header-logo:hover {
  text-decoration: none;
}

.blog-header {
  border-bottom: 1px solid #e5e5e5;
}

/* ============================================================================
   5. BLOG POST STYLES
   ========================================================================== */

.blog-post {
  margin-bottom: 4rem;
}

.blog-post-title {
  margin-bottom: 0.25rem;
  font-size: 2.5rem;
  color: #343a40;
  margin-top: 2rem;
}

.blog-post-meta {
  margin-bottom: 1.25rem;
  color: #727272;
}

.blog-post p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.blog-post blockquote {
  margin: 2rem 0;
  padding: 1rem 2rem;
  background-color: #f8f9fa;
  border-left: 4px solid #0077cc;
}

.blog-pagination {
  margin-bottom: 4rem;
}

.blog-pagination > .btn {
  border-radius: 2rem;
}

/* ============================================================================
   6. CARD & LAYOUT ENHANCEMENTS
   ========================================================================== */

.card,
.row.g-0 {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover,
.row.g-0:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.card-img-right {
  height: 100%;
  border-radius: 0 3px 3px 0;
}

.flex-auto {
  flex: 0 0 auto;
}

.h-250 {
  height: 250px;
}

@media (min-width: 768px) {
  .h-md-250 {
    height: 250px;
  }
}

/* Enhanced jumbotron */
.bg-dark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Typography utilities */
.fst-italic {
  font-style: italic;
}

.fw-bold {
  font-weight: bold;
}

/* Sidebar styling */
.position-sticky {
  top: 2rem !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* ============================================================================
   7. NAVIGATION SCROLLER
   ========================================================================== */

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-scroller .nav-link {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
}

/* Dropdown on hover for desktop (Bootstrap 5) */
@media (min-width: 992px) {
  .nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .nav .dropdown-toggle::after {
    margin-left: 0.25rem;
  }

  .nav-scroller {
    overflow: visible;
    height: auto;
  }
}

/* ============================================================================
   8. FOOTER STYLES
   ========================================================================== */

.blog-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 0 1rem;
  border-top: none;
}

.blog-footer h5 {
  color: #3498db;
  font-weight: 600;
  font-size: 1.1rem;
}

.blog-footer h6 {
  color: #ecf0f1;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.blog-footer .text-muted {
  color: #95a5a6 !important;
  font-size: 0.9rem;
}

.blog-footer a.text-muted:hover {
  color: #3498db !important;
  transition: color 0.3s ease;
}

.blog-footer .list-unstyled {
  padding-left: 0;
}

.blog-footer .list-unstyled li {
  line-height: 1.8;
}

.blog-footer .border-top {
  border-color: #34495e !important;
}

.blog-footer .footer-links a {
  font-size: 0.85rem;
}

.blog-footer .small {
  font-size: 0.875rem;
  line-height: 1.6;
}

.blog-footer i.fa-heart {
  color: #e74c3c;
}

.blog-footer i.fa-mug-hot {
  color: #e67e22;
}

/* ============================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */

.display-4 {
  font-size: 2.5rem;
}

@media (min-width: 768px) {
  .display-4 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .blog-post-title {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .nav-scroller .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .blog-footer {
    padding: 2rem 0 1rem;
  }

  .blog-footer .footer-links {
    flex-direction: column;
  }

  .blog-footer .footer-links a {
    display: block;
    margin-bottom: 0.5rem;
  }
}

