
a,
a:active{
    color: inherit;
    text-decoration: none;
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f8faff;
    color: #172033;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.tools-section {
    padding-top: 30px;
}


/* =========================================
   HERO
========================================= */

.tools-hero {
    position: relative;
    overflow: hidden;
    padding: 95px 0 75px;
    background:
        radial-gradient(circle at 10% 20%,
            rgba(71, 120, 255, 0.12),
            transparent 35%),
        radial-gradient(circle at 90% 80%,
            rgba(80, 180, 255, 0.13),
            transparent 35%),
        #f7faff;
}

.tools-hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(49, 100, 255, 0.05);
    top: -220px;
    left: -150px;
}

.tools-hero::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(36, 181, 255, 0.05);
    bottom: -220px;
    right: -100px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: #eef9f5;
    color: #15976f;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero-badge i {
    font-size: 14px;
}

.hero-content h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -2px;
    font-weight: 700;
    color: #111a32;
}

.hero-content h1 span {
    color: #15976f;
}

.hero-content p {
    max-width: 650px;
    margin: 20px auto 32px;
    color: #68738a;
    font-size: 17px;
}


/* SEARCH */

.search-box {
    width: min(650px, 100%);
    height: 58px;
    margin: auto;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e0e6f0;
    box-shadow: 0 12px 35px rgba(30, 66, 120, 0.08);
    transition: 0.3s ease;
}

.search-box:focus-within {
    border-color: #3164e9;
    box-shadow:
        0 0 0 4px rgba(49, 100, 233, 0.08),
        0 12px 35px rgba(30, 66, 120, 0.08);
}

.search-box>i {
    color: #8490a6;
    margin-right: 12px;
}

.search-box input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: #172033;
}

.search-box input::placeholder {
    color: #9ba4b5;
}

.search-box button {
    border: 0;
    background: transparent;
    color: #929bad;
    cursor: pointer;
    font-size: 16px;
    display: none;
}


/* =========================================
   TOOLS SECTION & LAYOUT
========================================= */

.tools-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

/* SIDE NAVIGATION (DESKTOP) */
.tools-sidebar {
    position: sticky;
    top: 24px;
    background: #ffffff;
    border: 1px solid #e7ebf2;
    border-radius: 16px;
    padding: 22px 16px;
    box-shadow: 0 4px 20px rgba(30, 45, 80, 0.03);
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 0 8px 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f4f9;
}

.sidebar-header h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #8c97ab;
}

.desktop-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.desktop-filter-wrapper .filter-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #59657b;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
}

.desktop-filter-wrapper .filter-btn i {
    font-size: 15px;
    width: 20px;
    text-align: center;
    color: #8896ab;
    transition: color 0.25s ease;
}

.desktop-filter-wrapper .filter-btn:hover {
    background: #f4f7fc;
    color: #3164e9;
}

.desktop-filter-wrapper .filter-btn:hover i {
    color: #3164e9;
}

.desktop-filter-wrapper .filter-btn.active {
    background: #3164e9;
    color: #ffffff;
    border-color: #3164e9;
    box-shadow: 0 6px 18px rgba(49, 100, 233, 0.22);
}

.desktop-filter-wrapper .filter-btn.active i {
    color: #ffffff;
}

/* Mobile elements hidden on desktop */
.mobile-pill-wrapper,
.mobile-filter-wrapper {
    display: none;
}

/* Responsive select dropdown box styling */
.mobile-filter-wrapper {
    margin-top: 16px;
    width: 100%;
}

.mobile-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1a202c;
    margin-bottom: 8px;
}

.select-box-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.mobile-filter-select {
    width: 100%;
    max-width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border-radius: 10px;
    border: 1px solid #dce3ee;
    background: #ffffff;
    color: #2c3e50;
    font-size: 14.5px;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-filter-select:focus {
    border-color: #3164e9;
    box-shadow: 0 0 0 3px rgba(49, 100, 233, 0.12);
}

.select-box-container .select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #68738a;
    font-size: 13px;
}

.tools-main {
    min-width: 0;
}

/* GRID */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
========================================= */

/* TABLET (769px - 992px) */
@media (max-width: 992px) {
    .tools-layout {
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* MOBILE (<= 768px) */
@media (max-width: 768px) {
    .tools-hero {
        padding: 60px 0 50px;
    }

    .hero-content h1 {
        font-size: clamp(30px, 7vw, 44px);
    }

    .hero-content p {
        font-size: 15.5px;
        margin: 16px auto 26px;
    }

    .search-box {
        height: 52px;
        padding: 0 14px;
    }

    .tools-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tools-sidebar {
        position: static;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    /* Hide Desktop Sidebar elements AND Mobile Pill buttons on Mobile view */
    .sidebar-header,
    .desktop-filter-wrapper,
    .mobile-pill-wrapper {
        display: none !important;
    }

    /* Show ONLY the Dropdown Select Filter on Mobile */
    .mobile-filter-wrapper {
        display: block !important;
        margin-bottom: 20px;
        width: 100%;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* SMALL MOBILE & PHONES (<= 576px) */
@media (max-width: 576px) {
    .container {
        width: calc(100% - 28px);
    }

    .tools-hero {
        padding: 45px 0 35px;
    }

    .hero-badge {
        padding: 6px 14px;
        font-size: 12px;
        margin-bottom: 16px;
    }

    .hero-content h1 {
        font-size: clamp(26px, 7.5vw, 36px);
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 14.5px;
        line-height: 1.55;
        margin: 12px auto 22px;
    }

    .search-box {
        height: 48px;
        padding: 0 14px;
        border-radius: 10px;
    }

    .search-box input {
        font-size: 14px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tool-card {
        padding: 18px;
        gap: 14px;
        min-height: auto;
        border-radius: 14px;
    }

    .card-icon {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        font-size: 17px;
        border-radius: 10px;
    }

    .card-content h3 {
        font-size: 15.5px;
        margin-bottom: 6px;
    }

    .card-content p {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 12px;
    }

    .card-content a {
        font-size: 12.5px;
    }

    .mobile-filter-select {
        height: 46px;
        font-size: 14px;
        padding: 0 36px 0 14px;
    }
}


/* CARD GRID OVERRIDE */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* CARD DESIGN MATCHING IMAGE */
.tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    min-height: auto;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(30, 66, 120, 0.08);
    border-color: #e0e7ff;
}

/* CIRCLE ICON */
.card-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 30%;
    color: #0f9f74; /* Mint Green icon color */
    font-size: 30px;
    margin-bottom: 10px;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
}

.card-content a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3164e9;
    font-size: 14px;
    font-weight: 600;
}

.card-content a i {
    font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .card-icon{
    margin-bottom: 0px;        
    }
}


/* =========================================
   NO RESULTS
========================================= */

.no-results {
    display: none;
    text-align: center;
    padding: 80px 20px;
}

.no-results.show {
    display: block;
}

.no-results>i {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    border-radius: 50%;
    background: #edf3ff;
    color: #3164e9;
    font-size: 23px;
}

.no-results h3 {
    margin-top: 20px;
    color: #1c263d;
}

.no-results p {
    color: #7a8497;
    margin-top: 5px;
}