/* ===== Mobile Header & Breadcrumb Fixes ===== */

/* Mobile Navigation - Hide "Get in touch" button on small screens */
@media (max-width: 991px) {
  .header .button.add-list-button {
    display: none;
  }

  .navbar-brand h3 {
    font-size: 20px !important;
  }
}

/* Fix Breadcrumb Title on Mobile */
@media (max-width: 767px) {
  .breadcrumbs {
    padding: 80px 0 30px !important;
  }

  .breadcrumbs .page-title {
    font-size: 22px !important;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .breadcrumbs .breadcrumb-nav {
    font-size: 13px;
    margin-top: 10px;
  }

  .breadcrumbs .breadcrumb-nav li {
    font-size: 13px;
  }

  /* Modern Section Mobile */
  .section-modern {
    padding: 40px 0 !important;
  }
}

/* ===== Mobile Typography - Sharp and Clear ===== */
@media (max-width: 767px) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* Sharper headings on mobile */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
  }

  .page-title {
    font-size: 28px !important;
    line-height: 1.2;
    font-weight: 800;
  }

  .section-title h2 {
    font-size: 24px !important;
    line-height: 1.3;
  }

  .section-title h3 {
    font-size: 16px !important;
    font-weight: 600;
  }

  .section-title p {
    font-size: 14px !important;
    line-height: 1.6;
  }

  /* Modern Card Mobile Typography */
  .modern-card h4 {
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .modern-card h5 {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 10px;
  }

  .modern-card p {
    font-size: 13px !important;
    line-height: 1.6;
    margin-bottom: 15px;
  }
}

/* Colorful Gradient Icons for Mobile */
.doc-icon-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.doc-icon-pdf {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  margin: 0 auto 15px;
}

.doc-icon-pdf.primary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}

.doc-icon-image {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
  margin: 0 auto 15px;
}

.doc-icon-pdf i,
.doc-icon-image i {
  font-size: 35px;
  color: #fff;
}

/* Mobile-Optimized Cards */
@media (max-width: 767px) {
  .modern-card {
    padding: 20px 15px !important;
    margin-bottom: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .modern-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
  }

  /* Icon Mobile */
  .icon-modern {
    width: 50px !important;
    height: 50px !important;
    border-radius: 12px !important;
    font-size: 20px !important;
    margin-bottom: 15px !important;
  }

  /* Button Mobile */
  .btn-modern {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    font-weight: 600;
    border-radius: 10px !important;
    margin: 0 !important;
    justify-content: center;
    min-height: 44px;
  }

  .btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(1, 116, 196, 0.3);
  }

  .btn-modern-secondary {
    background: #f8f9fa !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
  }

  /* Button Group Mobile */
  .d-flex.gap-2 {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* Image Grid Mobile Optimization */
@media (max-width: 767px) {
  .modern-card {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .modern-card .position-relative {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
  }

  .modern-card img {
    height: 180px !important;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
  }

  .modern-card:active img {
    transform: scale(1.02);
  }

  .modern-card .p-4 {
    padding: 20px 15px !important;
    background: #fff;
  }

  .modern-card h5 {
    font-size: 16px !important;
    font-weight: 700;
    margin-bottom: 12px;
    color: #081828;
  }

  .modern-card .btn-modern {
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 10px;
    min-height: 44px;
  }

  /* Badge Mobile */
  .badge {
    font-size: 10px !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
  }
}

/* Section Headers Mobile */
@media (max-width: 767px) {
  .row h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #081828;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .row h3 i {
    font-size: 20px;
    color: var(--primary-color);
  }

  .text-muted {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Section Title Mobile */
  .section-title {
    text-align: center !important;
    margin-bottom: 40px !important;
  }

  .section-title .badge {
    font-size: 11px !important;
    padding: 6px 12px !important;
    margin-bottom: 15px !important;
  }

  .section-title .lead {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-top: 10px !important;
  }
}

/* Alert Box Mobile */
@media (max-width: 767px) {
  .modern-card.bg-gradient {
    border-radius: 16px;
    padding: 20px 15px !important;
    margin-top: 30px;
  }

  .modern-card.bg-gradient h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .modern-card.bg-gradient p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .modern-card.bg-gradient .btn-modern {
    width: 100%;
    font-size: 13px;
    padding: 12px 16px;
    min-height: 44px;
  }
}

/* Breadcrumbs Mobile */
@media (max-width: 767px) {
  .breadcrumbs {
    padding: 80px 0 30px !important;
  }

  .breadcrumbs h1 {
    font-size: 24px !important;
    font-weight: 800;
  }

  .breadcrumb-nav {
    font-size: 13px;
  }
}

/* Enhance Touch Targets */
@media (max-width: 767px) {
  a.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .single-blog-grid {
    -webkit-tap-highlight-color: rgba(1, 116, 196, 0.1);
  }
}

/* Icon Badge for New/Updated */
.badge-new {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(245, 87, 108, 0.4);
}

/* PDF/Image Count Badge */
.count-badge {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-left: 10px;
}