/* AI Directory - AI Nexus Premium Redesign */

:root {
    --primary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    --secondary-gradient: linear-gradient(135deg, #ff8e53 0%, #ff6b6b 100%);
    --bg-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);

    --primary-color: #ff6b6b;
    --secondary-color: #ff8e53;
    --text-color: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #666666;

    --bg-white: #ffffff;
    --bg-light: #fafbfc;
    --border-color: #e5e7eb;

    --card-radius: 20px;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Global Body Style */
.ai-directory-wrap {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Page Background Wrapper */
.ai-glass-wrapper {
    background: var(--bg-light);
    min-height: 100vh;
    padding-bottom: 60px;
}

.ai-glass-blobs {
    display: none;
    /* Hidden for pure white background */
}

.ai-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.08;
    animation: ai-float 25s infinite ease-in-out alternate;
}

.ai-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
    top: -200px;
    right: -100px;
}

.ai-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.25), rgba(0, 242, 254, 0.15));
    bottom: 5%;
    left: -150px;
    animation-delay: -8s;
}

.ai-blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.2), rgba(245, 87, 108, 0.15));
    top: 40%;
    right: 10%;
    animation-delay: -15s;
}

.ai-blob-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15), transparent);
    bottom: 30%;
    left: 25%;
    animation-delay: -20s;
}

@keyframes ai-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, 80px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 120px) scale(0.9);
    }
}

.ai-home-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Premium Grid Layout */
.ai-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Clean Modern Panel */
.ai-glass-panel {
    background: #ffffff;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.ai-glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

/* Section Common Styles */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 5%;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* AI Nexus Card System */
.card {
    background: white;
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.1);
    border-color: #ffd4d4;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.8rem;
}

.card-icon {
    width: 65px;
    height: 65px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.25);
    overflow: hidden;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-tag {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tag-new {
    background: #d1fae5;
    color: #065f46;
}

.tag-popular {
    background: #fef3c7;
    color: #92400e;
}

.tag-premium {
    background: #e0e7ff;
    color: #3730a3;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #1a1a1a;
}

.card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.card h3 a:hover {
    color: #ff6b6b;
}

.card-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.card-meta {
    display: flex;
    gap: 1.5rem;
    color: #999;
    font-size: 0.95rem;
    font-weight: 600;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-explore {
    padding: 0.7rem 1.6rem;
    background: #f9fafb;
    color: #1a1a1a !important;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none !important;
}

.btn-explore:hover {
    background: var(--primary-gradient);
    color: white !important;
    transform: scale(1.05);
}

/* Card Image/Thumbnail */
.ai-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    font-weight: 900;
    position: relative;
    overflow: hidden;
}

.ai-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

/* Card Content */
.ai-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Card Badge */
.ai-card-badge,
.ai-badge-featured {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Card Title */
.ai-directory-card h3,
.ai-card-title {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.3;
}

/* Card Description */
.ai-directory-card p,
.ai-card-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Card Meta */
.ai-card-meta,
.ai-meta-list {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.ai-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #888;
    background: rgba(0, 0, 0, 0.04);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Premium Button */
.ai-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.ai-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* Hero Section - AI Nexus Style */
.hero-section {
    padding: 100px 5% 60px;
    text-align: center;
    background: #fafbfc;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff4e6;
    color: #e67700;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(230, 119, 0, 0.1);
}

.hero-headline {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a !important;
    letter-spacing: -1px;
}

.hero-subheadline {
    font-size: 1.35rem;
    color: #666 !important;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    opacity: 1 !important;
}

.search-area {
    max-width: 750px;
    margin: 0 auto 3rem;
}

.search-box {
    display: flex;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:focus-within {
    border-color: #ff6b6b;
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.15);
    transform: translateY(-2px);
}

.search-box form {
    display: flex;
    width: 100%;
}

.hero-search-input {
    flex: 1;
    padding: 1.4rem 1.8rem !important;
    border: none !important;
    font-size: 1.05rem !important;
    outline: none !important;
    color: #1a1a1a !important;
    background: transparent !important;
}

.search-icon {
    padding: 0 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.quick-filters {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.filter-chip {
    padding: 0.6rem 1.4rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.filter-chip:hover,
.filter-chip.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

/* Enhanced Search Bar */
.ai-hero-search {
    max-width: 70%;
    margin: 0 auto;
    position: relative;
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 60px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.25), 0 5px 20px rgba(0, 0, 0, 0.15);
}

.ai-hero-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 28px;
    font-size: 1.1rem;
    outline: none;
    color: var(--text-color);
}

.ai-hero-search input::placeholder {
    color: #999;
}

.ai-hero-search .ai-btn {
    border-radius: 50px;
    padding: 14px 35px;
    box-shadow: none;
}

/* Enhanced Filter Bar */
.ai-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ai-filters-left {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.ai-filter-select {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-filter-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Enhanced Category Pills */
.ai-category-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 30px;
    scrollbar-width: none;
}

.ai-category-pills::-webkit-scrollbar {
    display: none;
}

.ai-pill {
    white-space: nowrap;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-pill:hover,
.ai-pill.active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ai-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #ff5252;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 82, 82, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.ai-clear-filters:hover {
    background: rgba(255, 82, 82, 0.2);
    transform: translateY(-2px);
}

.ai-results-count {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Feature Info Box - Enhanced */
.ai-info-box {
    margin: 60px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ai-info-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

.ai-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.ai-feature-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.ai-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ai-feature-item h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 12px;
}

.ai-feature-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: #666;
    line-height: 1.6;
}

/* Single Page Enhancements */
.ai-single-container {
    max-width: 900px;
    margin: 40px auto;
}

.ai-news-source {
    font-weight: bold;
    color: #666;
}

/* Responsive Design */
@media (max-width: 992px) {
    .ai-directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }

    .ai-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .ai-directory-grid {
        grid-template-columns: 1fr;
    }

    .ai-hero {
        padding: 60px 30px;
    }

    .ai-hero h1 {
        font-size: 2rem;
    }

    .ai-hero p {
        font-size: 1.1rem;
    }

    .ai-card-content {
        padding: 20px;
    }

    .ai-filter-bar {
        padding: 20px;
    }

    .ai-filters-left {
        width: 100%;
    }

    .ai-filter-select {
        width: 100%;
    }

    .ai-feature-list {
        grid-template-columns: 1fr;
    }

    .ai-home-wrapper {
        padding: 20px 15px;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {

    .ai-directory-card,
    .ai-glass-card {
        background: rgba(30, 30, 30, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .ai-directory-card h3,
    .ai-card-title {
        color: #fff;
    }

    .ai-directory-card p,
    .ai-card-excerpt {
        color: #ccc;
    }

    .ai-feature-item {
        background: rgba(30, 30, 30, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .ai-feature-item p {
        color: #ccc;
    }

    .ai-meta-item {
        background: rgba(255, 255, 255, 0.05);
        color: #aaa;
    }
}

/* ============================================================================
   SAAS-STYLE HOMEPAGE SECTION STYLES
   ============================================================================ */

/* Hero Section - Clean */

.ai-hero {
    padding: 100px 40px;
    text-align: center;
    background: #ffffff;
    backdrop-filter: none;
    border-radius: 16px;
    margin-bottom: 60px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.ai-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-shadow: none;
    line-height: 1.2;
}

.ai-hero p {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: none;
}

/* Gradient Blobs */
.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    animation: float-blob 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff6ec4, #7873f5);
    top: -150px;
    right: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #4facfe, #00f2fe);
    bottom: -100px;
    left: -100px;
    animation-delay: -8s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f5576c, #f093fb);
    top: 50%;
    right: 10%;
    animation-delay: -15s;
}

@keyframes float-blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 80px) scale(0.9);
    }
}

/* Stats Section */
.stats-section {
    margin: 60px 0;
    padding: 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card-new {
    padding: 40px 30px;
    text-align: center;
    background: var(--ui-card-bg);
    border-radius: var(--ui-card-radius);
    border: 1px solid var(--ui-card-border);
    box-shadow: var(--ui-card-shadow);
    transition: all 0.3s ease;
}

.stat-card-new:hover {
    background: var(--ui-card-hover-bg);
    transform: translateY(var(--ui-hover-lift));
    box-shadow: var(--ui-card-hover-shadow);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: none;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Featured Tools Section */
.featured-tools-section {
    margin: 80px 0;
    padding: 0 20px;
}

/* Redesigned AIxploria Card */
.tool-card-new {
    background: white;
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none !important;
}

.tool-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.tool-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    background: white;
}

.card-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.tool-logo-wrap {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.tool-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-featured {
    background: #ffd700;
    color: #333;
}

.badge-free {
    background: #28a745;
    color: white;
}

.badge-premium {
    background: #667eea;
    color: white;
}

.tool-title-new {
    font-size: 1.4rem !important;
    margin-bottom: 0.8rem !important;
    font-weight: 700 !important;
    color: #333 !important;
}

.tool-description-new {
    color: #666 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

.highlight-pill {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Card Action Footer */
.card-action-footer {
    margin-top: auto;
}

.visit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #f8faff;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.visit-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.visit-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.tool-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tool-card:hover .tool-image img {
    transform: scale(1.1);
}

.tool-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.tool-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tool-title a:hover {
    color: var(--primary-color);
}

.tool-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-badge,
.pricing-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.category-badge {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.pricing-badge {
    background: rgba(118, 75, 162, 0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(118, 75, 162, 0.3);
}

.tool-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.tool-cta {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.no-tools-message {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    padding: 40px;
}

/* Category Section - AI Nexus Style */
.category-section {
    background: white;
    padding: 60px 5%;
    margin: 40px 0;
    border-radius: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-item {
    background: linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.category-item:hover {
    background: white;
    border-color: #ff6b6b;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.1);
}

.category-emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.category-name {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.category-count {
    color: #999;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Latest News Section */
.latest-news-section {
    margin: 80px 0;
    padding: 0 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card-new {
    background: var(--ui-card-bg);
    border-radius: var(--ui-card-radius);
    border: 1px solid var(--ui-card-border);
    overflow: hidden;
    box-shadow: var(--ui-card-shadow);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-card-new:hover {
    background: var(--ui-card-hover-bg);
    transform: translateY(var(--ui-hover-lift));
    box-shadow: var(--ui-card-hover-shadow);
    border-color: rgba(102, 126, 234, 0.2);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
}

.news-date {
    color: var(--primary-color);
}

.news-category {
    color: #999;
}

.news-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.news-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.no-news-message {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    padding: 40px;
}

/* How It Works Section */
.how-it-works-section {
    margin: 80px 0;
    padding: 0 20px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .steps-container {
        grid-template-columns: 1fr;
    }
}

.step-card-new {
    padding: 40px 30px;
    background: var(--ui-card-bg);
    border-radius: var(--ui-card-radius);
    border: 1px solid var(--ui-card-border);
    box-shadow: var(--ui-card-shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.step-card-new:hover {
    background: var(--ui-card-hover-bg);
    transform: translateY(var(--ui-hover-lift));
    box-shadow: var(--ui-card-hover-shadow);
    border-color: rgba(102, 126, 234, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 15px 0;
}

.step-description {
    color: #000000;
    line-height: 1.6;
    margin: 0;
}

.step-arrow {
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

/* CTA Banner - AI Nexus Style */
.cta-section {
    background: var(--primary-gradient);
    border-radius: 30px;
    padding: 6rem 3rem;
    text-align: center;
    color: white;
    margin: 60px 5%;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -150px;
    left: -50px;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-headline {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    margin-bottom: 1.5rem !important;
    color: white !important;
}

.cta-subheadline {
    font-size: 1.4rem !important;
    margin-bottom: 3rem !important;
    opacity: 0.95 !important;
    color: white !important;
    display: block !important;
}

.btn-cta-white {
    padding: 1.2rem 3.5rem;
    background: white;
    color: #ff6b6b !important;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.btn-cta-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    background: #fffcfc;
}

/* Global Buttons Redesign */
.btn-primary-new {
    display: inline-block;
    background: var(--primary-gradient);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.btn-primary-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.btn-secondary-new {
    display: inline-block;
    background: white;
    color: var(--primary-color) !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none !important;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-secondary-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Responsive Design for New Sections */
@media (max-width: 992px) {
    .hero-headline {
        font-size: 2.8rem;
    }

    .tools-grid,
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-subheadline {
        font-size: 1.1rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .tools-grid,
    .news-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Stats Section */
    .stats-section {
        padding: 40px 20px;
    }

    .stats-grid {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}

/* Features Grid */
.features-section {
    padding: 100px 5%;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
}

.feature-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* ============================================================================
   ASTRA THEME INTEGRATION - HEADER & FOOTER STYLING
   ============================================================================ */

/* Astra Header Styling */
.site-header,
.ast-header-break-point .main-header-bar,
.ast-desktop .main-header-bar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Header Container */
.main-header-container {
    padding: 15px 0;
}

/* Logo Styling */
.site-branding,
.site-title,
.site-title a {
    color: #1a1a1a !important;
    font-weight: 900;
    text-decoration: none;
}

.site-description {
    color: #666 !important;
}

/* Main Navigation Menu */
.main-header-menu,
.ast-desktop .main-header-menu {
    background: transparent;
}

.main-header-menu .menu-item>a,
.ast-header-break-point .main-header-menu .menu-item>a {
    color: #1a1a1a !important;
    font-weight: 600;
    padding: 12px 18px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.main-header-menu .menu-item>a:hover,
.main-header-menu .current-menu-item>a {
    color: var(--primary-color) !important;
    background: rgba(102, 126, 234, 0.08);
}

/* Dropdown Menu */
.main-header-menu .sub-menu {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 8px;
}

.main-header-menu .sub-menu .menu-item>a {
    color: #1a1a1a !important;
    padding: 10px 20px;
}

.main-header-menu .sub-menu .menu-item>a:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary-color) !important;
}

/* Mobile Menu Toggle */
.ast-mobile-menu-buttons,
.ast-button-wrap,
.menu-toggle {
    color: #1a1a1a !important;
}

.menu-toggle:hover {
    color: var(--primary-color) !important;
}

/* Mobile Menu */
.ast-header-break-point .main-header-menu {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

/* Astra Footer Styling */
.site-footer,
.ast-footer-overlay,
.footer-adv .footer-adv-overlay {
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #666;
}

/* Footer Widgets */
.footer-adv .widget-title,
.site-footer .widget-title {
    color: #1a1a1a;
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-adv .widget,
.site-footer .widget {
    color: #666;
}

.footer-adv .widget a,
.site-footer .widget a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-adv .widget a:hover,
.site-footer .widget a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Footer Widget Lists */
.footer-adv .widget ul,
.site-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-adv .widget ul li,
.site-footer .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-adv .widget ul li:last-child {
    border-bottom: none;
}

/* Footer Bar (Copyright Area) */
.ast-small-footer,
.site-footer .ast-small-footer-wrap {
    background: #f8f9fa !important;
    padding: 25px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ast-small-footer .ast-footer-site-title,
.ast-small-footer-wrap .ast-footer-site-title {
    color: #1a1a1a;
    font-weight: 700;
}

.ast-small-footer-section-1,
.ast-small-footer-section-2 {
    color: #666;
}

.ast-small-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.ast-small-footer a:hover {
    text-decoration: underline;
}

/* Header Search Form */
.ast-search-menu-icon .search-field {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    padding: 10px 20px;
    color: #1a1a1a;
}

.ast-search-menu-icon .search-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Header Buttons */
.ast-header-button,
.ast-custom-button {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.ast-header-button:hover,
.ast-custom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Breadcrumbs */
.ast-breadcrumbs-wrapper {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ast-breadcrumbs-item,
.ast-breadcrumbs-wrapper a {
    color: #666;
    text-decoration: none;
}

.ast-breadcrumbs-wrapper a:hover {
    color: var(--primary-color);
}

/* Sticky Header */
.ast-header-sticked {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Transparent Header Override (if using transparent header) */
.ast-theme-transparent-header .main-header-bar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

/* Footer Social Icons */
.site-footer .ast-builder-social-element a {
    background: #f8f9fa;
    color: #666;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.site-footer .ast-builder-social-element a:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Responsive Adjustments for Astra */
@media (max-width: 921px) {

    /* Mobile Header */
    .ast-header-break-point .main-header-bar {
        padding: 15px 0;
    }

    /* Mobile Menu */
    .ast-header-break-point .main-header-menu {
        margin-top: 15px;
        border-radius: 12px;
    }

    /* Footer Widgets Stack */
    .footer-adv-layout-4 .ast-footer-adv {
        text-align: center;
    }
}