
/* KARKEE TOOLS - Main Styles */

:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --text-dark: #172033;
    --text-muted: #64748b;
    --background: #ffffff;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: var(--background);
    color: var(--text-dark);
    margin: 0;
}

/* Navbar */

.navbar-brand {
    color: var(--primary) !important;
    font-size: 23px;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Hero Section */

.hero-section {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    padding: 85px 15px;
}

.hero-section h1 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 28px;
}

.search-box {
    max-width: 600px;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.search-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Sections */

.section-title {
    font-size: 26px;
    font-weight: 750;
    margin-bottom: 28px;
}

/* Category Cards */

.category-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 18px;
    height: 100%;
    transition: 0.2s ease;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.category-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 22px;
    margin-bottom: 15px;
}

.category-card h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

/* Footer */

footer {
    color: var(--text-dark);
    margin-top: 30px;
}

/* Mobile */

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 23px;
    }
}


/* ==========================================
   TOOL THUMBNAIL DESIGN
========================================== */

.tool-card {
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.tool-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f3f5f9;
}

.tool-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tool-card-content {
    padding: 18px;
}

.tool-card-content h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.tool-card-content p {
    color: #6c757d;
    min-height: 48px;
}

.tool-card-content .btn {
    width: 100%;
}


/* ==========================================
   EXPLORE CATEGORIES SECTION
========================================== */

.categories-section {
    background: #f8faff;
}

.category-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.category-card {
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(30, 60, 100, 0.10);
    border-color: #dbe6ff;
}

.category-thumbnail {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #eef3ff;
}

.category-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-thumbnail img {
    transform: scale(1.06);
}

.category-card-content {
    padding: 20px;
}

.category-card-content h5 {
    margin-bottom: 9px;
    color: #202b3c;
    font-size: 18px;
    font-weight: 700;
}

.category-card-content p {
    min-height: 42px;
    margin-bottom: 15px;
    color: #778195;
    font-size: 14px;
    line-height: 1.6;
}

.category-explore {
    color: #0d6efd;
    font-size: 14px;
    font-weight: 600;
}

.category-card-link:focus-visible {
    outline: 3px solid #86b7fe;
    outline-offset: 4px;
    border-radius: 16px;
}

/* Mobile layout */

@media (max-width: 576px) {

    .category-thumbnail {
        height: 145px;
    }

    .category-card-content {
        padding: 15px;
    }

}

.site-footer {
    background: #f8faff;
    color: #263248;
    margin-top: 50px;
    border-top: 1px solid #e9edf5;
}

.footer-brand {
    font-weight: 800;
    color: #0d6efd;
}

.site-footer h5 {
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #687386;
    text-decoration: none;
}

.footer-links a:hover {
    color: #0d6efd;
}