/* --- OKURU KNOWLEDGE BASE: GIFTUP EXACT MATCH --- */

/* 1. Global Reset & Typography (GiftUp uses clean system fonts) */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background-color: #f9fafb !important;
    color: #1f2937 !important;
    -webkit-font-smoothing: antialiased;
}

/* 2. Header & Search Bar */
#search-form {
    max-width: 640px;
    margin: 60px auto 70px auto;
}

#search-form input[type="text"] {
    width: 100% !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

#search-form input[type="text"]:focus {
    border-color: #00bcd4 !important; /* Okuru Brand Color */
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15) !important;
    outline: none !important;
}

/* 3. Category Grid - GiftUp Spacing */
#category-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 24px !important;
    max-width: 1050px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 4. Category Cards */
#category-list .category {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0 !important; /* Padding moved to the <a> tag for full-card clicking */
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

#category-list .category:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-color: #d1d5db !important;
}

/* Make the whole card a clickable flexbox container */
#category-list .category > a {
    display: flex !important;
    align-items: flex-start !important;
    padding: 24px !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100%;
    box-sizing: border-box;
}

/* 5. Left-Aligned Icons */
#category-list .category > a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 22px; /* Smaller, refined size */
    color: #00bcd4; /* Okuru Brand Color */
    margin-right: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

/* Map specific category IDs below (Replace 0001, etc. with your HelpScout IDs) */
#category-0001 > a::before { content: "\f06b"; } /* Buying & Gifting */
#category-0002 > a::before { content: "\f5a2"; } /* Affiliate & Rewards */
#category-0003 > a::before { content: "\f059"; } /* General Queries */
#category-0004 > a::before { content: "\f2b6"; } /* Contact Details */
#category-0005 > a::before { content: "\f56d"; } /* Legal Documents */
#category-0006 > a::before { content: "\f02a"; } /* Receiving & Redeeming */

/* 6. Typography Inside Cards */
/* Wrap text so it sits nicely next to the icon */
#category-list .category > a > div, 
#category-list .category h3 {
    flex-grow: 1;
}

.category h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
}

.category p {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* 7. Custom Footer Overrides (Keeps your previous footer structure intact) */
.okuru-custom-footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 20px;
    margin-top: 80px;
    text-align: center;
}

.footer-content { max-width: 1050px; margin: 0 auto; }
.footer-links { margin-top: 16px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #6b7280; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #00bcd4; }
.contact-btn { background-color: #00bcd4; color: white !important; padding: 8px 16px; border-radius: 6px; font-weight: 600; margin-left: 8px; }
.contact-btn:hover { background-color: #0097a7; }
#footer { display: none !important; }