/* Custom styles to supplement Tailwind */

/* Override for the hat class */
.hat {
    @apply text-white;
  }
  
  /* Custom styles for the search form */
  .search-form input {
    @apply pl-10;
  }
  
  .search-form .search-icon {
    @apply absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400;
  }
  
  /* Hover effects for cards */
  .news-card:hover {
    @apply shadow-lg transition-shadow duration-300;
  }
  
  .news-card:hover .card-title {
    @apply text-blue-600;
  }
  
  /* Pagination custom styles */
  .pagination .page-item.active .page-link {
    @apply bg-blue-600 border-blue-600 text-white;
  }
  
  .pagination .page-link {
    @apply text-blue-600 hover:bg-blue-100 transition-colors duration-200;
  }
  
  /* Custom styles for buttons */
  .primary-btn {
    @apply bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded transition-colors duration-200;
  }
  
  /* Card image hover effect */
  .card-image-container {
    @apply overflow-hidden;
  }
  
  .card-image-container img {
    @apply transition-transform duration-300;
  }
  
  .news-card:hover .card-image-container img {
    @apply transform scale-105;
  }





  /* Navigation Transitions and Animations */
.mobile-menu-transition {
  transition: all 0.3s ease-in-out;
}

/* Animation for mobile menu slide in/out */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s forwards;
}

.animate-fade-out {
  animation: fadeOut 0.3s forwards;
}

/* Hamburger menu hover effects */
.hamburger-hover:hover {
  color: #f59e0b;
}

/* Mobile dropdown animation */
.dropdown-transition {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.dropdown-open {
  max-height: 500px;
}

/* Active link styling */
.active-nav-link {
  position: relative;
}

.active-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
}



/* Navigation styles */

/* App-style buttons */
.btn-primary {
  @apply px-6 py-3 rounded-lg font-medium transition-colors duration-200;
  background-color: #008000;
  color: white;
}

.btn-primary:hover {
  @apply bg-blue-600;
}

/* Navigation Transitions and Animations */
.mobile-menu-transition {
    transition: all 0.3s ease-in-out;
  }
  
  /* Animation for mobile menu slide in/out */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateX(100%);
    }
  }
  
  .animate-fade-in {
    animation: fadeIn 0.3s forwards;
  }
  
  .animate-fade-out {
    animation: fadeOut 0.3s forwards;
  }
  
  /* Hamburger menu hover effects */
  .hamburger-hover:hover {
    color: #f59e0b;
  }
  
  /* Mobile dropdown animation */
  .dropdown-transition {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .dropdown-open {
    max-height: 500px;
  }
  
  /* Active link styling */
  .active-nav-link {
    position: relative;
  }
  
  .active-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
  }
  
  /* Mobile menu transitions */
  #mobile-menu {
    @apply transform transition-transform duration-300 ease-in-out;
  }

  #mobile-menu.hidden {
    @apply -translate-x-full;
  }

  #mobile-menu:not(.hidden) {
    @apply translate-x-0;
  }
  
  /* App-like touch feedback */
  @media (max-width: 1023px) {
    .mobile-nav-item {
      -webkit-tap-highlight-color: transparent;
      transition: background-color 0.15s ease;
    }
    
    .mobile-nav-item:active {
      background-color: rgba(0, 0, 0, 0.05);
    }
  }
  
  /* Custom scrollbar for mobile menu */
  .mobile-menu-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  }
  
  .mobile-menu-container::-webkit-scrollbar {
    width: 4px;
  }
  
  .mobile-menu-container::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .mobile-menu-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
  }
  
  /* Mobile menu app-like styling */
  .mobile-app-menu {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    overscroll-behavior: contain;
    -ms-overflow-style: none; /* Hide scrollbar on IE/Edge */
  }
  
  /* Bottom safe area for mobile devices */
  .mobile-safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }

/* Blog Post Styles */
.prose {
    @apply text-gray-700 leading-relaxed;
}

.prose h2 {
    @apply text-2xl font-bold mt-8 mb-4 text-gray-900;
}

.prose h3 {
    @apply text-xl font-semibold mt-6 mb-3 text-gray-900;
}

.prose p {
    @apply mb-4;
}

.prose a {
    @apply text-blue-600 hover:text-blue-800 transition-colors;
}

.prose img {
    @apply rounded-lg shadow-lg my-6;
}

.prose blockquote {
    @apply border-l-4 border-gray-300 pl-4 italic text-gray-600 my-4;
}

.prose code {
    @apply bg-gray-100 px-2 py-1 rounded text-sm font-mono;
}

.prose pre {
    @apply bg-gray-800 text-gray-100 p-4 rounded-lg overflow-x-auto my-6;
}

.prose pre code {
    @apply bg-transparent p-0;
}





#cookieConsentForm {
    color: #f4f5f7;
    background-color: rgba(18,20,26,.95);
    position: fixed;
    bottom: 0px;
    width: 100%;
    z-index: 120;
    cursor: pointer;
    border-radius: 0px;
    max-width: unset;
    font-size: 1.0rem;
}

.hide {
  display: none;
}
.show {
  display: block;
}