/* Custom styles for Financial Tools Directory */

/* Line clamp utility for older browsers */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Card hover effects */
article {
    transition: transform 0.2s ease-in-out;
}

article:hover {
    transform: translateY(-2px);
}

/* Navigation dropdown animation */
.group:hover .group-hover\:visible {
    visibility: visible;
    opacity: 1;
}

/* Rating star color */
.text-yellow-500 {
    color: #eab308;
}

/* Table responsiveness */
@media (max-width: 640px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
