* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    padding: 20px;
    line-height: 1.6;
} */

.aitools-container {
    max-width: 1200px;
    margin: 0 auto;
}

.aitool-page-title-section {
    max-width: 1200px;
    margin: 0 auto 0px auto;
    text-align: center;
    padding: 20px 20px;
}

.aitool-page-title {
    font-size: 48px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    background: linear-gradient(135deg, #3a9241 0%, #1b5e20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.category-navigation {
    display: inline-block;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    margin-bottom: 40px;
    background-color: #d4f5d960;
}

.category-navigation #caption {
    color: #374151;
    margin-bottom: 5px;
}
.category-navigation .category-nav-item {
    display: inline-block;
    margin-top: 3px;
    margin-right: 10px;
    white-space: nowrap;
}

.aitools-category-section {
    margin-bottom: 50px;
}

.aitools-category-title {
    font-size: 25px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e5e7eb;
    position: relative;
}

.aitools-category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3a9241 0%, #1b5e20 100%);
}

.aitool-cards-container {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

/* Responsive grid */
@media (min-width: 640px) {
    .aitool-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .aitool-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .aitool-cards-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.aitool-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aitool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 146, 65, 0.15);
    border-color: #b0e9b9;
}

.aitool-card a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 15px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    min-height: 50px;
}

.aitoollist-title {
    font-size: 15.5px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    flex: 1;
    padding-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aitool-card span {
    font-size: 16px;
    font-weight: 600;
    color: #317835;
    background-color: #d4f5d983;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

.aitool-card a:hover .aitoollist-title {
    color: #111827;
}

.aitool-card a:hover span {
    background-color: #3a9241;
    color: white;
}

@media (max-width: 768px) {
    .aitool-page-title-section {
        padding: 20px 20px;
        /* margin-bottom: 20px; */
    }
    
    .aitool-page-title {
        font-size: 36px;
    }

    .aitools-category-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .aitools-category-section {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .aitool-page-title {
        font-size: 28px;
    }

    .aitools-category-title {
        font-size: 20px;
    }
}