@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #ffffff;
    margin: 0;
    padding: 0px;
    line-height: 1.6;
}

/* Header */
header {
    background: #cc2127;
    padding: 1.5em 0;
    box-shadow: none;
    text-align: center;
}

header h1 {
    font-size: 2.75em;
    font-weight: 600;
    color: #1a1a40;
    margin: 0;
}

/* Navigation */
.navbar .nav li {
    display: inline-block;
    margin: 0 50px;
}

.navbar .nav li a {
    font-size: 15px;
    font-weight: 500;
    color: #3a3a3a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar .nav li a:hover {
    color: #b83d3d;
}
header, .navbar {
  background-color: white;
  margin: 0;
  padding: 10px 0 0 0;
}

/* Search Bar */
#docsSearch h1 {
    font-size: 52px;
    font-weight: 700;
}
#docsSearch {
    background: #cc2127;
    padding: 2em 1em;
    border-top: none;
    Border-bottom:none;
    text-align: center;
}

input.search-query {
    width: 50%;
    max-width: 500px;
    padding: 12px 20px;
    border: 0px solid #ccc;
    border-radius: 6px 0 0 6px; /* left side rounded, right side sharp */
    font-size: 16px;
    transition: none
    height: 44px;
    box-sizing: border-box;
}

input.search-query:focus {
    outline: none;
    box-shadow: none;
}

/* Search Button */
#searchBar button {
    background: #2591c8 url('https://cdn-icons-png.flaticon.com/512/622/622669.png') no-repeat center;
    background-size: 20px 20px;  /* adjust size */
    border-top: 0px solid #ccc;
    border-right: 0px solid #ccc;
    border-bottom: 0px solid #ccc;
    border-left: none;  /* remove left border only */
    padding: 5px 32px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    margin-left: 0px;
    box-sizing: border-box;
    text-indent: -9999px; /* hides button text */
    transition: background-color 0.3s ease;
    color: transparent;  /* hide text */
}

#searchBar button:hover {
    background-color: #2a57a0;
    background-image: url('https://cdn-icons-png.flaticon.com/512/622/622669.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

/* Category Cards */
.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    padding: 2em 1em;
}

.category-list .category {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2em 1.5em;
    width: 300px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.category-list .category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.category-list h3 {
    font-size: 20px;
    color: #1a1a40;
    margin-bottom: 0.5em;
}

.category-list .category p {
    font-size: 14px;
    color: #6c6f7c;
}

/* Links */
a {
    color: #b83d3d;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a02a2a;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    .navbar .nav li {
        display: block;
        text-align: center;
        margin: 0.5em 0;
    }
    input.search-query {
        width: 80%;
    }
    .category-list {
        flex-direction: column;
        align-items: center;
    }
    .category-list .category {
        width: 90%;
    }
}