/* Custom styles extracted from app.blade.php inline <style> */
:root {
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --secondary-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --success-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.navbar {
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section {
  background: var(--primary-gradient);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
}

.search-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.card {
  /* border: none; */
  border-radius: 20px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
  overflow: hidden;
}

.logo {
  width: 80px;
}

.main-drop-down .show {
  border: none;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.price-tag {
  background: var(--success-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.featured-badge {
  background: var(--secondary-gradient);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.category-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 200px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
  text-decoration: none;
  border-color: rgba(16, 185, 129, 0.2);
}

.category-icon {
  font-size: 3.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.stats-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section {
  background: var(--primary-gradient);
  color: white;
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M0 0h40v40H0z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.dropdown-menu {
  border: none;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
}

.dropdown-header {
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
  margin: 0.5rem;
}

.badge {
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-weight: 600;
}

/* ================================
   PREMIUM SITE FOOTER
   ================================ */

.site-footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
  color: #e5e7eb;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.site-footer .container {
  display: block !important;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--home-gradient-primary);
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(5,150,105,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrid)"/></svg>');
  pointer-events: none;
}

.site-footer .container {
  padding: 4rem 15px 2rem;
  position: relative;
  z-index: 2;
}

/* Footer Sections */
.footer-section {
  height: 100%;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  /* background: var(--home-gradient-primary); */
  border-radius: 2px;
}

.footer-section h6.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section h6.footer-title::after {
  width: 25px;
  height: 2px;
}

.footer-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(5, 150, 105, 0.1);
  border: 2px solid rgba(5, 150, 105, 0.2);
  border-radius: 12px;
  color: var(--home-primary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--home-transition);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--home-primary);
  border-color: var(--home-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--home-transition-fast);
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--home-primary);
  transition: var(--home-transition-fast);
}

.footer-links a:hover {
  color: var(--home-primary);
  padding-left: 1rem;
}

.footer-links a:hover::before {
  width: 8px;
}

/* Contact Info */
.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--home-transition);
}

.contact-item:hover {
  background: rgba(5, 150, 105, 0.05);
  border-color: rgba(5, 150, 105, 0.2);
  transform: translateX(5px);
}

.contact-item i {
  color: var(--home-primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.contact-item span {
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Newsletter */
.newsletter {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 1.5rem;
}

.newsletter-text {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.95rem;
  transition: var(--home-transition);
  backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
  color: #9ca3af;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--home-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.newsletter-btn {
  background: var(--home-gradient-primary);
  border: none;
  border-radius: 10px;
  padding: 0.875rem 1.25rem;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--home-transition);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-legal a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--home-transition-fast);
  position: relative;
}

.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--home-primary);
  transition: var(--home-transition-fast);
}

.footer-legal a:hover {
  color: var(--home-primary);
}

.footer-legal a:hover::after {
  width: 100%;
}

/* ================================
   FOOTER RESPONSIVE DESIGN
   ================================ */

@media (max-width: 991.98px) {
  .site-footer .container {
    padding: 3rem 15px 1.5rem;
  }

  .footer-section {
    margin-bottom: 2.5rem;
  }

  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .site-footer .container {
    padding: 2.5rem 15px 1.5rem;
  }

  .footer-title {
    font-size: 1.25rem;
  }

  .footer-section h6.footer-title {
    font-size: 1rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .contact-item {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .newsletter {
    padding: 1.25rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter-input {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .newsletter-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .footer-bottom {
    border-top: none;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .footer-copyright {
    font-size: 0.85rem;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-legal a {
    font-size: 0.85rem;
  }
}

/* Extra small footer adjustments */
@media (max-width: 575.98px) {
  .site-footer .container {
    padding: 2rem 10px 1.25rem;
  }

  .footer-title {
    font-size: 1.1rem;
  }

  .footer-section h6.footer-title {
    font-size: 0.95rem;
  }

  .footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .contact-item {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .newsletter {
    padding: 1rem;
  }

  .newsletter-input {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .newsletter-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  .footer-legal a {
    font-size: 0.8rem;
  }
}

.page-link {
  color: #059669;
}

.page-link.active,
.active>.page-link {
  background-color: #059669;
  border-color: #059669;
}

@media (max-width: 768px) {
  #mobileSidebar.show .nav .nav-item:last-child {
    padding-bottom: 80px;
  }

  .hero-section {
    padding: 60px 0;
  }

  .search-box {
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content .lead {
    font-size: 1rem;
  }

  .stats-card {
    padding: 1.5rem 0.5rem;
  }

  .stats-number {
    font-size: 2rem;
  }

  .stats-card h5 {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .card-img-top {
    height: 150px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-text {
    font-size: 0.8rem;
  }

  .price-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .featured-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }

  .category-card {
    padding: 1.5rem !important;
  }

  .category-icon {
    font-size: 2rem;
  }

  .category-card h5 {
    font-size: 0.9rem;
  }

  .newsletter-icon i {
    font-size: 2rem !important;
  }

  .newsletter-section h3 {
    font-size: 1.25rem;
  }

  .newsletter-section .lead {
    font-size: 0.9rem;
  }

  .newsletter-benefit h6 {
    font-size: 0.85rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .cta-section .lead {
    font-size: 1rem;
  }

  /* Mobile layout improvements */
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  /* Navbar mobile fixes */
  .navbar-brand .logo {
    max-height: 35px;
    width: auto;
  }

  .navbar-toggler {
    border: none;
    padding: 4px 8px;
  }

  .navbar-collapse {
    margin-top: 1rem;
  }

  /* Card mobile optimizations */
  .card {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
  }

  .card-body {
    padding: 1rem;
  }

  /* Form improvements */
  .form-control {
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  /* Table responsive */
  .table-responsive {
    font-size: 0.9rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive table {
    margin-bottom: 0;
    white-space: nowrap;
  }

  .table-responsive th,
  .table-responsive td {
    padding: 0.5rem;
    min-width: 120px;
  }

  /* Mobile-friendly tables */
  .mobile-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .mobile-table thead {
    display: none;
  }

  .mobile-table tbody,
  .mobile-table tr,
  .mobile-table td {
    display: block;
    width: 100%;
  }

  .mobile-table tr {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
  }

  .mobile-table td {
    border: none;
    padding: 0.25rem 0;
    text-align: left;
  }

  .mobile-table td:before {
    content: attr(data-label) ": ";
    font-weight: bold;
    display: inline-block;
    width: 100px;
  }

  /* Modal improvements */
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-content {
    border-radius: 0.5rem;
  }

  /* Spacing adjustments */
  .mb-3 {
    margin-bottom: 1rem !important;
  }

  .p-3 {
    padding: 1rem !important;
  }

  .px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Text sizing */
  .small {
    font-size: 0.85rem;
  }

  /* Overflow prevention */
  body {
    overflow-x: hidden;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .col,
  .col-1,
  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-10,
  .col-11,
  .col-12 {
    padding-left: 5px;
    padding-right: 5px;
  }

  /* Image responsive */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Responsive images with aspect ratio */
  .img-responsive {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
  }

  .img-thumbnail {
    max-width: 100%;
    height: auto;
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
  }

  /* Ad image containers */
  .ad-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #f8f9fa;
  }

  .ad-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Gallery images */
  .gallery-image {
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .gallery-image:hover {
    transform: scale(1.05);
  }

  /* Flexbox mobile adjustments */
  .d-flex {
    flex-wrap: wrap;
  }

  .justify-content-between {
    gap: 0.5rem;
  }

  /* Mobile ads layout */
  .mobile-header {
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
  }

  .mobile-search-input {
    border-radius: 1.5rem;
    padding-right: 3rem;
  }

  .search-btn-inside {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #059669;
    padding: 0.375rem 0.75rem;
  }

  .mobile-filter-btn {
    border-radius: 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Categories mobile layout */
  .categories-trigger {
    border-radius: 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Card mobile improvements */
  .ad-card {
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
  }

  .ad-card .card-body {
    padding: 1rem;
  }

  .ad-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .ad-card .card-text {
    font-size: 0.9rem;
  }

  /* Mobile grid adjustments */
  .ads-grid .col-md-6 {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 1rem;
  }

  /* Footer mobile */
  .site-footer {
    text-align: center;
  }

  .footer-section {
    margin-bottom: 1.5rem;
  }

  .footer-links {
    justify-content: center;
  }

  /* Mobile offcanvas improvements */
  .offcanvas {
    border-radius: 1rem 1rem 0 0;
  }

  .offcanvas-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
  }

  .offcanvas-body {
    padding: 1rem;
  }

  /* Touch improvements */
  .btn,
  .card,
  .form-control,
  .nav-link {
    -webkit-tap-highlight-color: transparent;
  }

  /* Improved touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Mobile extra small screens */
@media (max-width: 576px) {
  .container-fluid {
    padding-left: 5px;
    padding-right: 5px;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .modal-dialog {
    margin: 0.25rem;
  }

  .navbar-brand .logo {
    max-height: 30px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 1.75rem !important;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Landscape mobile improvements */
@media (max-width: 768px) and (orientation: landscape) {
  .navbar-collapse {
    max-height: 200px;
    overflow-y: auto;
  }

  .hero-section {
    padding: 40px 0;
  }

  .modal-dialog {
    margin: 0.5rem auto;
    max-width: 90%;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .logo,
  .navbar-brand img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}