:root {
    --primary: #0000ff;
    --secondary: #4242da;
    --accent: #4776E6;
    --light: #f8f9fa;
    --dark: #212529;
    --gradient: linear-gradient(to right, var(--primary), var(--secondary));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    font-size: 18px;
    margin-top: 93px; /* Adjusted for fixed navbar height */
}

/* Common Style */
.theme-color {
    color: var(--primary);
}

.gradient-color {
    color: var(--gradient);
}

.btn-primary {
    border: none;
    font-weight: 600;
    background: var(--gradient);
    padding: 0.8rem 2rem !important;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-select,
.form-control {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

.form-select:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(110,72,170,0.25);
    border-color: var(--primary);
}

.error-message {
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: rgba(220, 53, 69, 0.1);
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.ellipsis-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-ai {
    font-size: 12px;
    font-weight: 400;
    border-radius: 4px;
    padding: 2px 5px 4px 5px;
}

.text-truncate-2 {
  display: -webkit-box;
    -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Navbar - Start */
.navbar {
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    position: fixed;
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
}

.navbar .nav-link {
    font-weight: 600;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--primary);
}

.logo {
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span:first-child {
    color: var(--primary);
    background: none;
}

.logo span:last-child {
    color: var(--accent);
    background: none;
}

@media (max-width: 991px) {
    .navbar .nav-link {
        margin-bottom: 12px;
        padding-left: 15px;
        border-radius: 8px;
        background: #0000ff17;
    }

    .navbar .nav-link.btn-primary {
        background: var(--gradient) !important;
        padding: 0.8rem 2rem !important;
    }
}
/* Navbar - End */

/* Hero - Start */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.2) 0%, rgba(66, 66, 218, 0.1) 100%);
    padding: 2.5rem 0;
    border-radius: 0 0 20px 20px;
}

.hero img {
    /* width: 640px; */
}
/* Hero - End */

/* Search - Start */
.search-section {
    padding: 3rem 0 0 0; 
}

.search-tabs .nav-link {
    color: var(--dark);
    font-weight: 500;
    border: none;
    padding: 0.75rem 1.5rem;
}

.search-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-bottom: 3px solid var(--primary);
}

.search-body .btn-primary:hover {
    transform: translateY(0);
}
/* Search - End */

/* Search - Browse All Tools - Start */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.search-input {
    opacity: 0;
    height: 38px;
    width: 0 !important;
    position: absolute;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

.search-input.active {
    opacity: 1;
    width: 200px !important;
    padding: 7px 15px;
    border-radius: 4px;
}

.search-container .form-group .btn,
.search-container .form-group {
    height: 38px;
}

.search-container.open .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

@media (max-width: 768px) {
    .search-input.active {
        width: 50% !important;
    }
}
/* Search - Browse All Tools - End */

/* Features - Start */
.features-section {
    padding: 2.5rem;
}

.feature-card {
    border: none;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}
/* Features - End */

/* AI Tools - Start */
.features-tool-section {
    background: linear-gradient(135deg, rgba(110,72,170,0.1) 0%, rgba(157,80,187,0.1) 100%);
    padding: 2.5rem 0;
    border-radius: 0 0 20px 20px;
}

.ai-tool-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
}

.ai-tool-header {
    background: var(--gradient);
    color: white;
    padding: 1.5rem;
}

.tool-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.tool-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.badge-ai {
    top: -3px;
    color: #ffffff;
    position: relative;
    background: var(--gradient);
}

.tool-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    background: white;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tool-img {
    width: 100%;
    height: 275px;
    min-height: 275px;
    object-fit: cover;
    object-position: center;
}

.result-card .tool-img {
    height: 200px;
    min-height: 200px;
}

.features-tool-section .btn-primary {
    padding: 0.5rem 1rem !important;
}

.tool-card h5 {
    font-size: 18px;
}
/* Features - End */

/* Find AI Tool - Start */
.ai-tools-section {
    padding: 3rem 0 0 0; 
}

.step-indicator {
    display: none;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: bold;
    color: #6c757d;
}

.step.active,
.step.completed {
    background: var(--gradient);
    color: white;
}

.question {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* Add these styles to your existing CSS */
.option-card {
    width: 100%;
    position: relative;
}

.option-card .option-content {
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    display: block;
    background: white;
}

.option-card .option-content:hover {
    border-color: var(--primary);
    background: rgba(110,72,170,0.05);
}

.option-card input[type="checkbox"],
.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card input:checked + .option-content {
    border-color: var(--primary);
    background: rgba(110,72,170,0.1);
    box-shadow: 0 0 0 1px var(--primary);
}

.option-content {
    padding: 0;
    transition: all 0.3s ease;
}

.option-card input:checked + .option-content:before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary);
    font-weight: bold;
}

.result-card {
    overflow: hidden;
}

.result-card .btn-primary {
    padding: 5px 10px !important;
}

.rank-badge {
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    display: flex;
    color: white;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid;
    border-radius: 50%;
    position: absolute;
    align-items: center;
    justify-content: center;
    background-image: var(--gradient);
}

.prev-step {
    min-width: 100px;
}
/* Find AI Tool - End */

/* Browse Tools - Start */
.browse-tools-section .tool-card {
    border-radius: 8px;
}

.browse-tools-section .tool-card:hover {
    box-shadow: none;
    transform: translateY(-5px);
}

.browse-tools-section .tool-img {
    height: 200px;
    min-height: 200px;
}

.browse-tools-section .btn-primary {
    padding: 7px 15px !important;
}
/* Browse Tools - End */

/* Sidebar Filter - Start */
.sidebar {
    top: 142px;
    position: sticky;
    height: fit-content;

    top: 142px;
    /* padding: 20px; */
    position: sticky;
    /* border-radius: 8px; */
    height: fit-content;
    /* box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px; */
}

.sidebar .card {
    border: 0;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
}

.sidebar .card-header {
    color: #ffffff;
    background-color: var(--primary);
}

.sidebar .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.sidebar label {
    top: -1px;
    position: relative;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-header {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.filter-toggle {
    display: none;
}
/* Sidebar Filter - End */

/* Sidebar Filter - Start */
.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination .page-link {
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    color: #ffffff;
}
/* Sidebar Filter - End */

/* Tool Details - Start */
.tool-header {
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.2) 0%, rgba(66, 66, 218, 0.1) 100%);
    border-radius: 15px;
}

.feature-list i {
    color: var(--primary);
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

.pricing-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 3px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 3px solid var(--primary);
}

.nav-tabs .nav-link {
    color: var(--dark);
    border: none;
    padding: 0.75rem 1.5rem;
}

.screenshot-carousel img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.similar-tool-card {
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.similar-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.similar-tool-card .btn-primary {
    padding: 5px 12px !important;
}

.similar-tool-card .btn-primary:hover {
    transform: translateY(0);
}

/* Swipper Slider */
.swiper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.swiper-slide {
    text-align: center;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.7);
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary);
}
/* Tool Details - End */

/* About US - Start */
.about-header {
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.2) 0%, rgba(66, 66, 218, 0.1) 100%);
    padding: 4rem 0;
    border-radius: 0 0 20px 20px;
}

/* Hero */
.hero-about {
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.2) 0%, rgba(66, 66, 218, 0.1) 100%);
    padding: 5rem 0;
    border-radius: 0 0 20px 20px;
}

/* Our Story */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline .timeline-item:last-child {
    margin-bottom: 0 !important;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -44px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}
/* About US - End */

/* Privacy Policy - Start */
 .privacy-header {
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.2) 0%, rgba(66, 66, 218, 0.1) 100%);
    padding: 4rem 0;
    border-radius: 0 0 20px 20px;
}

.privacy-policy .policy-section {
    margin-bottom: 3rem;
}

.privacy-policy .policy-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(110,72,170,0.2);
}

.privacy-policy .policy-section h3 {
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.privacy-policy .nav-pills .nav-link.active {
    background-color: var(--primary);
}

.privacy-policy .nav-pills .nav-link {
    color: var(--dark);
    text-align: left;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

.privacy-policy .nav-pills .nav-link:hover {
    background-color: rgba(110,72,170,0.1);
}

@media (max-width: 992px) {
    .privacy-policy .sticky-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}
/* Privacy Policy - End */

/* Terms Of Service - Start */
.legal-header {
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.2) 0%, rgba(66, 66, 218, 0.1) 100%);
    padding: 4rem 0;
    border-radius: 0 0 20px 20px;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.legal-section h3 {
    font-size: 1.4rem;
    margin: 1.8rem 0 1rem;
    color: var(--dark);
}

.legal-content .last-updated {
    background: rgba(66, 66, 218, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin-bottom: 2rem;
}
/* Terms Of Service - End */

/* Blog Section - Start */
.blog-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card .card-body {
    display: flex;
    flex-direction: column;
}

.blog-card .card-text {
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.875rem;
    color: #6c757d;
}
/* Blog Section - End */

/* Blog Start - Start */
.blogs-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.blogs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blogs-card img {
    height: 270px;
    object-fit: cover;
    width: 100%;
}

.blogs-grid .blogs-card img {
        height: 200px;
}

.blogs-card .card-body {
    display: flex;
    flex-direction: column;
}

.blogs-card .card-text {
    flex-grow: 1;
    color: #555;
}

.blog-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.blog-category {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.category-badge:hover, .category-badge.active {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.sidebar-card .popular-post:last-child {
    margin-bottom: 0 !important;
}

.popular-post {
    display: flex;
    margin-bottom: 1rem;
}

.popular-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.popular-post h6 {
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    background: rgba(110,72,170,0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.corner-ribbon {
    position: absolute;
    top: 25px;
    right: -50px;
    transform: rotate(45deg);
    width: 200px;
    background: #ffffff;
    color: var(--primary);
    text-align: center;
    padding: 5px 0;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    text-transform: uppercase;
    font-size: 14px;
}

.blogs-card .user-info img {
    height: 60px;
    width: 60px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .blogs-featured .btn-primary {
        padding: 0.5rem 1rem !important;
    }
}
/* Blog End - End */

/* Blog Details Section - Start */
.blog-header {
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.2) 0%, rgba(66, 66, 218, 0.1) 100%);
    padding: 4rem 0;
}

.author-card {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 2rem;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-post-card img {
    height: 175px;
    object-fit: cover;
}
/* Blog Details Section - End */

/* Similar Tools - Start */
.similar-tools .btn {
    padding: 6px 10px !important;
}

.similar-tools .sec-title {
    margin-bottom: -10px
}
/* Similar Tools - End */

/* Footer - Start */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0;
}

footer .input-group .btn-primary:hover {
    transform: translateY(0);
}

footer a,
footer .social-icons a i {
    color: #fff;
    transition: 0.3s all ease-in-out;
}

footer a:hover,
footer .social-icons a:hover i {
    color: var(--accent) !important;
}
/* Footer - End */