.ai-tools-container,
.ai-tool-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ai-tools-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ai-tools-filters .search-title {
    color: #2c3e50;
    font-size: 1.5em;
    margin: 0 0 15px 0;
    text-align: center;
    width: 100%;
}

.ai-tools-filters select {
    padding: 8px;
    min-width: 300px;
}

.ai-tools-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-tool-row {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-tool-row-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.ai-tool-row-header .logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    flex-shrink: 0;
}

.ai-tool-row-header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-tool-row-title {
    flex-grow: 1;
}

.ai-tool-row-title h3 {
    margin: 0 0 5px 0;
    font-size: 1.5em;
}

.ai-tool-row-title .company {
    color: #666;
    margin-bottom: 5px;
}

.ai-tool-row-title .ranking {
    font-weight: bold;
    color: #2c3e50;
}

@media (max-width: 600px) {
    .ai-tool-row-header {
        flex-wrap: wrap;
    }

    .ai-tool-row-header .detail-link {
        margin-top: 1rem;
    }
}

.ai-tool-row-content {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: 20px;
}

.ai-tool-row-content h4 {
    font-size: 22px !important;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.ai-tool-row-content .summary {
/*    margin-bottom: 15px;*/
    line-height: 1.6;
}

.ai-tool-row-content .summary p:last-child {
    margin-bottom: 0;
}

.ai-tool-row-content .info-link {
    align-self: center;
    background: #3498db;
    border-radius: 4px;
    color: white;
    display: none;
    padding: 8px 15px;
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
}

.ai-tool-row-content .info-link:hover {
    background: #2980b9;
}

.ai-tool-row-content .use-cases {
    margin-bottom: 15px;
}

.ai-tool-row-content .use-cases h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.ai-tool-row-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.ai-tool-row-links a,
.ai-tool-row-header .detail-link,
.subcategory-title .info-link {
    display: inline-block;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.ai-tool-row-links a:hover,
.ai-tool-row-header .detail-link:hover,
.subcategory-title .info-link:hover {
    background: #2980b9;
}

.pricing {
    color: #666;
    font-style: italic;
}

/* AI Tools Grid */
.ai-tools-list-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-tools-list-grid .ai-tools-category-section {
    background: #fff;
    border-radius: 8px;
    display: flex;
    gap: 2rem;
    padding: 1rem;
}

.ai-tools-list-grid .ai-tools-category-section div {
    display: flex;
    flex-direction: column;
}

.ai-tools-list-grid .ai-tools-category-section div:first-child {
    min-width: 200px;
    width: 200px;
}

.ai-tools-list-grid .ai-tools-category-title {
    font-size: 18px;
    font-weight: 700;
}

.ai-tools-list-grid .ai-tools-category-section ul {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.ai-tools-list-grid .ai-tools-category-section li {
    margin-bottom: .25em;
}

@media (max-width: 600px) {
    .ai-tools-list-grid .ai-tools-category-section {
        flex-direction: column;
    }

    .ai-tools-list-grid .ai-tools-category-section div:first-child {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .ai-tools-list-grid {
        grid-template-columns: 1fr;
    }
}

/* Filter styles */
.ai-tool-row.hidden {
    display: none;
}

.ai-tools-filters {
    /*margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;*/
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
}

.ai-tools-filters select {
    /*padding: 8px 12px;
    min-width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;*/
    padding: 12px 16px;
    min-width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    width: 100%;
    max-width: 400px;
}

.ai-tools-filters select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.clear-filters-btn {
    /*padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;*/
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
    min-width: 150px;
}

.clear-filters-btn:hover {
    /*background: #5a6268;*/
    background: #2980b9;
}

/* Responsive filter layout */
@media (max-width: 768px) {
    /*.ai-tools-filters {
        flex-direction: column;
        align-items: stretch;
    }*/
    
    .ai-tools-filters select {
        min-width: auto;
        max-width: none;
    }
    
    .clear-filters-btn {
        min-width: auto;
        width: 100%;
    }
}

.ai-tools-search-filters {
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
}

.search-title {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.5em;
    text-align: center;
    width: 100%;
}

.ai-tools-search-filters select {
    padding: 12px 16px;
    min-width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    width: 100%;
    max-width: 400px;
}

.ai-tools-search-filters select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.search-submit-btn {
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
    min-width: 150px;
}

.search-submit-btn:hover {
    background: #2980b9;
}

.search-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Responsive search form layout */
@media (max-width: 768px) {
    /*.ai-tools-search-container {
        padding: 15px;
    }
    
    .ai-tools-search-form {
        padding: 15px;
    }*/
    
    .ai-tools-search-filters select {
        min-width: auto;
        max-width: none;
    }
    
    .search-submit-btn {
        width: 100%;
        min-width: auto;
    }
}

.category-section {
    margin-bottom: 40px;
/*    border: 1px solid #ddd;*/
    border-radius: 8px;
    overflow: hidden;
}

.category-title {
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #ddd;
    font-size: 1.5em;
    color: #2c3e50;
}

.subcategory-section {
    padding: 20px;
/*    border-bottom: 1px solid #eee;*/
    /*display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;*/
}

/*.subcategory-section:last-child {
    border-bottom: none;
}*/

.subcategory-title {
    align-items: center;
    color: #34495e;
    display: flex;
    font-size: 1.2em;
    grid-column-end: 3;
    grid-column-start: 1;
    justify-content: space-between;
    margin: 0 0 15px 0;
/*    border-bottom: 1px solid #eee;*/
/*    padding-bottom: 10px;*/
}
.subcategory-title .info-link {
    font-size: 1rem;
    line-height: var(--body_typography-line-height);
    font-weight: 400;
}

/* Reviews page */
.tax-ai_tools_category .ai-tool-row-content {
    display: block;
}
.tax-ai_tools_category .ai-tool-row-content h4 {
    font-size: 18px;
}

/* Detail Page */
.single-ai_tool #main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.single-ai_tool .ai-tool-short-video {
    margin-bottom: 1rem;
}
.single-ai_tool .ai-tool-short-video .wp-video {
    margin: 0 auto 1rem;
}
.single-ai_tool .ai-tool-logo {
    display: block;
    margin: 0 auto 1rem;
    max-width: 300px;
}
.single-ai_tool .ai-tool-short-summary {
    font-weight: 700;
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 62rem;
}
.single-ai_tool .post-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.single-ai_tool #ai-tool-prices-tabs {

}

.single-ai_tool #ai-tool-prices-tabs .tab-content {
    margin-bottom: 2rem;
    padding: 0;
}
.single-ai_tool #ai-tool-prices-tabs .nav-tabs {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #c5a46d !important;
    display: flex;
    gap: .25rem;
}
.single-ai_tool #ai-tool-prices-tabs .nav-tabs li {
    border: 1px solid #c5a46d;
    border-bottom: 0;
    border-radius: 5px 5px 0 0 !important;
    display: flex;
    width: max-content;
    overflow: hidden;
}

.single-ai_tool #ai-tool-prices-tabs .nav-tabs li:first-child {
    margin-left: -.25rem;
}
.single-ai_tool #ai-tool-prices-tabs .nav-tabs li:last-child {
    margin-right: -.25rem;
}

.single-ai_tool #ai-tool-prices-tabs .nav-tabs h3 {
    background: transparent;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    text-align: left;
    padding: 0 1rem;
}

.single-ai_tool #ai-tool-prices-tabs .nav-tabs li a {
    border: 0;
    color: #fff;
    margin: 0;
}

.single-ai_tool #ai-tool-prices-tabs .nav-tabs li.active {
    background: #c5a46d;
}

.single-ai_tool #ai-tool-prices-tabs .nav-tabs li.active h3 {
    color: #fff;
}

.single-ai_tool #ai-tool-prices-tabs .tab-pane {
    border: 1px solid #c5a46d !important;
    border-top: none !important;
}

@media (max-width: 480px) {
    .single-ai_tool #ai-tool-prices-tabs .nav-tabs h3 {
        font-size: .85rem;
        padding: 0 .5rem;
    }
}

@media (max-width: 1024px) {
    .single-ai_tool #ai-tool-prices-tabs .nav {
        display: block !important;
    }

    .single-ai_tool #ai-tool-prices-tabs .nav-tabs li:not(:first-child) {
        border-radius: 0;
    }
}

.single-ai_tool .ai-tool-prices {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.single-ai_tool .ai-tool-price2 {
    grid-template-columns: 1fr 1fr;
}

.single-ai_tool .ai-tool-price3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.single-ai_tool .ai-tool-prices div {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    padding: 1rem;
}

.single-ai_tool .ai-tool-prices div h3 {
    background: #e4e4e4;
    font-size: 20px;
    font-weight: 700;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-top: -1rem;
    padding: 1rem;
}

.single-ai_tool .ai-tool-program-link {
    display: inline-block;
    margin-bottom: 2rem;
}

.single-ai_tool .ai-tool-full-video .wp-video {
    margin: 0 auto 1rem;
}

.single-ai_tool .ai-tool-full-video .wp-video,
.single-ai_tool .ai-tool-full-video video.wp-video-shortcode,
.single-ai_tool .ai-tool-full-video .mejs-container,
.single-ai_tool .ai-tool-full-video .mejs-overlay.load {
    width: 100% !important;
    height: 100% !important;
}
.single-ai_tool .ai-tool-full-video .mejs-container {
    padding-top: 56.25%;
}
.single-ai_tool .ai-tool-full-video .wp-video,
.single-ai_tool .ai-tool-full-video video.wp-video-shortcode {
    max-width: 100% !important;
}
.single-ai_tool .ai-tool-full-video video.wp-video-shortcode {
    position: relative;
}
.single-ai_tool .ai-tool-full-video .mejs-mediaelement {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.single-ai_tool .ai-tool-full-video .mejs-overlay-play {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto !important;
    height: auto !important;
}

