/* Elementor Blog Filter Widget Styles */

.ebfw-widget {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Add subtle background pattern */
.ebfw-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    135deg,
    rgba(0, 124, 186, 0.02) 0%,
    rgba(255, 107, 53, 0.02) 100%
  );
  border-radius: 20px;
  z-index: -1;
}

/* ===== CATEGORY TABS STYLING ===== */
.ebfw-category-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 0;
}

/* Fallback for browsers without gap support */
.ebfw-category-tabs > * {
  margin-right: 12px;
  margin-bottom: 12px;
}

.ebfw-category-tabs > *:last-child {
  margin-right: 0;
}

.ebfw-tab-button {
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  outline: none;
  position: relative;
  overflow: hidden;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  border-right-width:0;
  border-left-width:0;
  border-top-width:0;
}

.ebfw-tab-button:hover {
  
  color: #475569;
  transform: translateY(-3px);
  
}

.ebfw-tab-button.active {
 
  border-bottom: 3px solid #FC0D2B;

}

.ebfw-tab-button.active:hover {
  border-color: #005a87;
  transform: translateY(-4px);
}

.ebfw-tab-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.ebfw-tab-button:focus {
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.25);
}

/* ===== POSTS GRID LAYOUT ===== */
.ebfw-posts-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(320px, 1fr)) [auto-fit];
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  margin-top: 2rem;
}

/* Fallback for browsers without grid support */
.no-cssgrid .ebfw-posts-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: -1rem;
}

.no-cssgrid .ebfw-post-card {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 300px;
  flex: 1 1 300px;
  margin: 1rem;
  max-width: calc(50% - 2rem);
}

.ebfw-posts-grid.ebfw-transitioning {
  opacity: 0.3;
  transform: translateY(10px);
}

.ebfw-posts-grid.ebfw-loading-state {
  pointer-events: none;
}

/* Staggered animation for post cards */
.ebfw-post-card {
  animation: ebfw-fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.ebfw-post-card:nth-child(1) {
  animation-delay: 0.1s;
}
.ebfw-post-card:nth-child(2) {
  animation-delay: 0.2s;
}
.ebfw-post-card:nth-child(3) {
  animation-delay: 0.3s;
}
.ebfw-post-card:nth-child(4) {
  animation-delay: 0.4s;
}
.ebfw-post-card:nth-child(5) {
  animation-delay: 0.5s;
}
.ebfw-post-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes ebfw-fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== POST CARD STYLING ===== */
.ebfw-post-card {
  background: #ffffff;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  -moz-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  -webkit-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -o-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  align-items: stretch;
  min-height: 180px;
  max-height: 200px;
}

.ebfw-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 124, 186, 0.1);
}

/* ===== CIRCULAR DATE BADGE ===== */
.ebfw-post-date {
  position: absolute;
  left: -50px;
  color: #ffffff;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px;
  flex-shrink: 0;
}

 .ebfw-post-date-month{
    font-size: 0.5em;
  }



/* ===== POST CONTENT ===== */
.ebfw-post-content {
  padding: 20px 25px 20px 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
  justify-content: center;
}

.ebfw-post-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2c3e50;
}

.ebfw-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.ebfw-post-title a:hover {
  color: #007cba;
}

.ebfw-post-excerpt {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  
}

/* ===== POST FOOTER & READ MORE BUTTON ===== */
.ebfw-post-footer {
  margin-top: auto;
}

.ebfw-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e53e3e;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 36px;
  align-self: flex-start;
}

.ebfw-read-more:hover {
  background: linear-gradient(135deg, #c53030 0%, #c05621 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
}

.ebfw-read-more:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.25);
}

.ebfw-read-more:active,
.ebfw-read-more.ebfw-clicking {
  background: linear-gradient(135deg, #9c2626 0%, #9c4221 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.ebfw-read-more::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s ease;
  font-size: 16px;
}

.ebfw-read-more:hover::after {
  transform: translateX(4px);
}

/* Enhanced link accessibility and feedback */
.ebfw-post-title a:active,
.ebfw-post-title a.ebfw-clicking {
  color: #004a73;
  transform: scale(0.98);
}



/* ===== LOADING STATES ===== */
.ebfw-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.ebfw-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ebfw-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007cba;
  border-radius: 50%;
  animation: ebfw-spin 1s linear infinite;
}

@keyframes ebfw-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ebfw-loading-text {
  color: #6c757d;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.ebfw-loading-progress {
  width: 200px;
  height: 4px;
  background: #f3f3f3;
  border-radius: 2px;
  overflow: hidden;
}

.ebfw-loading-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #007cba, #005a87);
  border-radius: 2px;
  animation: ebfw-loading-progress 2s ease-in-out infinite;
}

@keyframes ebfw-loading-progress {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ===== ERROR MESSAGE ===== */
.ebfw-error-message,
.ebfw-network-error,
.ebfw-timeout-error {
  background: #f8d7da;
  color: #721c24;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  text-align: center;
  border: 1px solid #f5c6cb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ebfw-network-error {
  background: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.ebfw-timeout-error {
  background: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

.ebfw-error-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.ebfw-error-text {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

.ebfw-retry-button {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.ebfw-retry-button:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.ebfw-retry-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.ebfw-retry-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

/* ===== NO POSTS MESSAGE ===== */
.ebfw-no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #dee2e6;
  margin: 2rem 0;
}

.ebfw-no-posts-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.ebfw-no-posts-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin: 0 0 1rem 0;
}

.ebfw-no-posts-message {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.ebfw-no-categories {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
  font-style: italic;
}

/* ===== NOSCRIPT GRACEFUL DEGRADATION ===== */
.ebfw-noscript-message {
  background: #fff3cd;
  color: #856404;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #ffeaa7;
  text-align: center;
}

.ebfw-noscript-message p {
  margin: 0;
  font-weight: 500;
}

.ebfw-noscript-category-section {
  margin-bottom: 3rem;
}

.ebfw-noscript-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #007cba;
}

.ebfw-noscript-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1200px) {
  .ebfw-posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .ebfw-category-tabs {
    margin-bottom: 3.5rem;
  }

  .ebfw-tab-button {
    padding: 18px 36px;
    font-size: 16px;
    min-height: 56px;
  }

  .ebfw-post-content {
    padding: 2.25rem 2rem 2rem;
  }

  .ebfw-post-title {
    font-size: 1.45rem;
    margin-bottom: 1.5rem;
  }

  .ebfw-post-excerpt {
    font-size: 16px;
    margin-bottom: 2rem;
  }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1199px) {
  .ebfw-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .ebfw-category-tabs {
    margin-bottom: 3rem;
  }

  .ebfw-tab-button {
    padding: 16px 32px;
    font-size: 15px;
  }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 991px) {
  .ebfw-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .ebfw-category-tabs {
    margin-bottom: 1.75rem;
  }

  .ebfw-tab-button {
    padding: 11px 22px;
    font-size: 14px;
  }


}

/* Tablet Portrait */
@media (max-width: 768px) {
  .ebfw-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .ebfw-category-tabs {
    justify-content: center;
    margin-bottom: 2rem;

  }

  .ebfw-tab-button {
    padding: 14px 24px;
    font-size: 14px;
    min-height: 48px; /* Minimum touch target size */
  }

  .ebfw-post-content {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .ebfw-post-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .ebfw-post-excerpt {
    font-size: 14px;
    margin-bottom: 1.5rem;
  }

  .ebfw-post-date {
    width: 60px;
    height: 60px;
    font-size: 10px;
    top: 16px;
    left: 16px;
  }


  .ebfw-read-more {
    min-height: 48px; /* Minimum touch target size */
    padding: 14px 24px;
    font-size: 13px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .ebfw-widget {
    margin: 0 -5px;
  }

  .ebfw-category-tabs {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding: 0 5px 10px;
    -webkit-overflow-scrolling: touch;
  }

  .ebfw-category-tabs::-webkit-scrollbar {
    height: 4px;
  }

  .ebfw-category-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }

  .ebfw-category-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
  }

  .ebfw-tab-button {
    text-align: center;
    padding: 12px 20px;
    min-height: 48px; /* Larger touch target for mobile */
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .ebfw-posts-grid,
  .ebfw-noscript-posts-grid {
    gap: 1.25rem;
    padding: 0 5px;
    margin-top: 1rem;
  }



  .ebfw-post-content {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .ebfw-post-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .ebfw-post-excerpt {
    font-size: 14px;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  .ebfw-read-more {
    padding: 14px 20px;
    font-size: 13px;
    min-height: 48px; /* Larger touch target for mobile */
    width: 100%;
    justify-content: center;
  }

  .ebfw-post-date {
    width: 55px;
    height: 55px;
    font-size: 9px;
    top: 12px;
    left: 12px;
  }

  .ebfw-noscript-category-title {
    font-size: 1.25rem;
  }

  .ebfw-no-posts {
    padding: 2rem 1rem;
  }

  .ebfw-no-posts-icon {
    font-size: 2rem;
  }

  .ebfw-no-posts-title {
    font-size: 1.25rem;
  }

  .ebfw-error-message,
  .ebfw-network-error,
  .ebfw-timeout-error {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
  }

  .ebfw-loading-content {
    gap: 8px;
  }

  .ebfw-loading-progress {
    width: 150px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .ebfw-widget {
    margin: 0 -5px;
  }

  .ebfw-posts-grid,
  .ebfw-noscript-posts-grid {
    padding: 0 5px;
  }

  .ebfw-post-content {
    padding: 0.75rem;
  }

  .ebfw-post-title {
    font-size: 0.95rem;
  }

  .ebfw-post-excerpt {
    font-size: 12px;
  }

  .ebfw-read-more {
    padding: 10px 14px;
    font-size: 13px;
  }

  .ebfw-tab-button {
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* ===== ACCESSIBILITY ===== */

/* Screen reader only content */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link for keyboard navigation */
.ebfw-skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #007cba;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
  transition: top 0.3s ease;
}

.ebfw-skip-link:focus {
  top: 6px;
}

/* Enhanced focus styles for keyboard navigation */
.ebfw-tab-button:focus {
  outline: 3px solid #007cba;
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.ebfw-post-card:focus-within {
  outline: 2px solid #007cba;
  outline-offset: 2px;
  border-radius: 12px;
}

.ebfw-post-title a:focus,
.ebfw-read-more:focus,
.ebfw-retry-button:focus {
  outline: 3px solid #007cba;
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Focus visible for modern browsers */
.ebfw-tab-button:focus-visible,
.ebfw-post-title a:focus-visible,
.ebfw-read-more:focus-visible,
.ebfw-retry-button:focus-visible {
  outline: 3px solid #007cba;
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
.ebfw-tab-button:focus:not(:focus-visible),
.ebfw-post-title a:focus:not(:focus-visible),
.ebfw-read-more:focus:not(:focus-visible),
.ebfw-retry-button:focus:not(:focus-visible) {
  outline: none;
}

/* Improved hover states for better user feedback */
.ebfw-post-title a:hover {
  transition: all 0.2s ease;
}

.ebfw-post-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Loading state for links */
.ebfw-read-more.loading {
  opacity: 0.7;
  pointer-events: none;
}

.ebfw-read-more.loading::after {
  content: "⟳";
  animation: ebfw-spin 1s linear infinite;
}

/* Error state for invalid post cards */
.ebfw-post-card-error {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #f5c6cb;
  font-style: italic;
}

/* Smooth transitions for all interactive elements */
.ebfw-post-title a,
.ebfw-read-more,
.ebfw-tab-button,
.ebfw-retry-button {
  transition: all 0.2s ease-in-out;
}

/* Enhanced visual feedback for clicking state */
.ebfw-clicking {
  transform: scale(0.98) !important;
  transition: transform 0.1s ease-in-out !important;
}

/* Widget loading state */
.ebfw-widget-loading {
  position: relative;
}

.ebfw-widget-loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  pointer-events: none;
}

.ebfw-widget-loading .ebfw-loading {
  position: relative;
  z-index: 11;
}

/* Improved button states */
.ebfw-read-more:disabled,
.ebfw-tab-button:disabled,
.ebfw-retry-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Better focus indicators for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .ebfw-post-title a:focus,
  .ebfw-read-more:focus,
  .ebfw-tab-button:focus,
  .ebfw-retry-button:focus {
    animation: ebfw-focus-pulse 2s infinite;
  }
}

@keyframes ebfw-focus-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.15);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .ebfw-post-card {
    border: 2px solid #000;
    background: #fff;
  }

  .ebfw-tab-button {
    border: 2px solid #000;
    background: #fff;
    color: #000;
  }

  .ebfw-tab-button.active {
    background: #000;
    color: #fff;
  }

  .ebfw-read-more {
    border: 2px solid #000;
    background: #000;
    color: #fff;
  }

  .ebfw-post-title a {
    color: #000;
  }

  .ebfw-post-title a:hover {
    background: #000;
    color: #fff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .ebfw-post-card,
  .ebfw-tab-button,
  .ebfw-read-more,
  .ebfw-posts-grid,
  .ebfw-retry-button {
    transition: none;
    animation: none;
  }

  .ebfw-loading-spinner,
  .ebfw-loading-bar {
    animation: none;
  }

  .ebfw-focus-pulse {
    animation: none;
  }
}



/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .ebfw-tab-button,
  .ebfw-read-more,
  .ebfw-retry-button {
    min-height: 44px;
    min-width: 44px;
  }

  .ebfw-post-title a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Remove hover effects on touch devices */
  .ebfw-post-card:hover,
  .ebfw-tab-button:hover,
  .ebfw-read-more:hover,
  .ebfw-post-title a:hover {
    transform: none;
    box-shadow: initial;
  }
}
