/* assets/styles/page/category.css */

.tool-card-summary {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #4b5563;
    text-align: justify;
    text-justify: inter-word;
    height: calc(15px * 1.5 * 3);
    min-height: calc(15px * 1.5 * 3);
    max-height: calc(15px * 1.5 * 3);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.category-tools-page {
    padding-top: 8px;
}

.category-tools-page .row {
    align-items: flex-start !important;
}

.tool-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.tool-family-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.tool-family-section {
    min-width: 0;
    padding: 0;
    overflow: visible;
}

.tool-family-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.tool-family-heading h2 {
    margin: 0;
    color: #1f2937;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.tool-family-heading span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.tool-card-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.tool-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.tool-card-media {
    width: 100%;
    min-height: 176px;
    height: 176px;
    overflow: hidden;
}

.tool-card-image {
    width: 100%;
    height: 176px;
    object-fit: cover;
    display: block;
}

.tool-card-cover {
    min-height: 176px;
    height: 176px;
    background: linear-gradient(135deg, var(--cover-start), var(--cover-end));
    color: var(--cover-text);
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}

.tool-card-cover-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.95;
}

.tool-card-cover-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    line-height: 1;
    color: inherit;
}

.tool-card-cover-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
    margin: 0;
}

.tool-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.tool-card-taxonomy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.tool-card-taxonomy span + span::before {
    content: "/";
    margin-right: 8px;
    color: #cbd5e1;
}

.tool-card-title {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937;
}

.tool-card-meta {
    margin-top: auto;
    padding-top: 20px;
}

.tool-card-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tool-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.tool-card-author-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-card-author-name {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.tool-card-author-date {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    color: #6b7280;
}

.tool-card-empty {
    padding: 24px 0;
    color: #6b7280;
    font-size: 16px;
}

.category-tools-page .pagination-2 {
    padding: 28px 0 4px;
}

.category-tools-page .pagination-2 ul {
    margin: 0;
}

.category-tools-page .sidebar {
    position: sticky;
    top: 110px;
}

.category-tools-page .sidebar .widgets-container {
    margin-top: 0;
}





.tool-card-cover-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
    line-height: 1;
    color: inherit;
}

.tool-card-cover-icon::before,
.tool-card-cover-icon::after {
    content: none !important;
}

.tool-card-cover-icon i {
    display: inline-block;
    color: inherit;
    line-height: 1;
    will-change: transform, opacity;
}

.tool-card-icon-anim-spin {
    animation: toolIconSpinLoop 6s linear infinite;
}

.tool-card-icon-anim-bounce {
    animation: toolIconBounceLoop 2.4s ease-in-out infinite;
}

.tool-card-icon-anim-slide-left {
    animation: toolIconSlideLeftLoop 2.8s ease-in-out infinite;
}

.tool-card-icon-anim-slide-right {
    animation: toolIconSlideRightLoop 2.8s ease-in-out infinite;
}

.tool-card-icon-anim-fade {
    animation: toolIconFadeLoop 2.6s ease-in-out infinite;
}

.tool-card-icon-anim-flip {
    animation: toolIconFlipLoop 3.2s ease-in-out infinite;
    transform-style: preserve-3d;
}

.tool-card-icon-anim-pop {
    animation: toolIconPopLoop 2.2s ease-in-out infinite;
}

.tool-card-icon-anim-swing {
    animation: toolIconSwingLoop 2.8s ease-in-out infinite;
    transform-origin: top center;
}





.pagination-2 ul li span.disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    color: #cbd5e1;
    cursor: not-allowed;
}


.recent-tool-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.recent-tool-image,
.recent-tool-thumb {
    width: 92px;
    height: 92px;
    min-width: 92px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.recent-tool-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.recent-tool-content {
    flex: 1 1 auto;
    min-width: 0;
}

.recent-tool-content h4 {
    margin: 0 0 8px;
    line-height: 1.35;
}

.recent-tool-content h4 a {
    display: block;
}

.recent-tool-content time {
    display: block;
    font-size: 14px;
    color: #8b8b8b;
    line-height: 1.3;
}

.tool-card-meta {
    margin-top: auto;
    padding-top: 20px;
}

.tool-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-card-avatar-image {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.tool-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #374151;
    font-weight: 600;
    flex-shrink: 0;
}

.tool-card-author-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-card-author-name,
.tool-card-author-date {
    margin: 0;
}


@keyframes toolIconSpinLoop {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes toolIconBounceLoop {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-6px) scale(1.03);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    75% {
        transform: translateY(-3px) scale(1.01);
    }
}

@keyframes toolIconSlideLeftLoop {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-7px);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(-3px);
    }
}

@keyframes toolIconSlideRightLoop {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(7px);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(3px);
    }
}

@keyframes toolIconFadeLoop {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.78;
        transform: scale(1.08);
    }
}

@keyframes toolIconFlipLoop {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

@keyframes toolIconPopLoop {
    0%, 100% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.14);
    }
    60% {
        transform: scale(0.97);
    }
}

@keyframes toolIconSwingLoop {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(8deg);
    }
    50% {
        transform: rotate(-6deg);
    }
    75% {
        transform: rotate(4deg);
    }
}







@media (max-width: 1199px) {
    .tool-card-grid {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .tool-family-list {
        gap: 22px;
    }

    .tool-card-summary {
        text-align: left;
        text-justify: auto;
        word-spacing: normal;
    }

    .tool-family-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .tool-family-heading h2 {
        font-size: 20px;
    }

    .tool-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tool-card-media,
    .tool-card-image,
    .tool-card-cover {
        min-height: 168px;
        height: 168px;
    }

    .tool-card-cover {
        padding: 14px 16px 18px;
    }

    .tool-card-cover-title {
        font-size: 20px;
    }

    .tool-card-cover-icon {
        font-size: 28px;
    }

    .tool-card-body {
        padding: 16px 18px 18px;
    }
}
