.div1 {
    max-width: 85%; /* Increased to give text more room */
    margin: 0 auto;
}

.main-logo {
    width: 140px; 
    height: auto;
}

.span0 {
    font-size: 0.65rem; 
    font-weight: 700;
    color: #000;
    line-height: 1.1;
    white-space: nowrap;
}

.span1 {
    color: #676767;
    font-size: 0.6rem;
    line-height: 1.1;
    display: block;
    white-space: nowrap; /* Forces text to stay in one line */
}

/* Specific rule for the complaint subtitle to ensure it shows completely */
.full-text {
    min-width: 110px; /* Ensures the container expands for this text */
}

.topbox button {
    background-color: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: max-content; /* Box grows to fit the text */
}

.topbox button:hover {
    background-color: #b7e4c0 !important;
    border-color: #b7e4c0 !important;
    transform: translateY(-2px);
}

/* Responsive adjustment to keep everything on one line if possible */
@media (max-width: 992px) {
    .main-logo { width: 100px; }
    .span0 { font-size: 0.6rem; }
    .span1 { font-size: 0.55rem; }
    .div1 { max-width: 100%; padding: 0 5px; }
}
.div1 {
    max-width: 85%; /* Increased for better UX on smaller laptops */
    margin: 0 auto;
}
.topbox {
    border-radius: 8px;
    transition: transform 0.2s;
}
.topbox:hover {
    transform: translateY(-2px); /* Slight lift on hover for better UX */
}
.bg-light-blue {
    background-color: #f0f7ff;
}
.submit{
    font-size: 13px;
}

/* Container sizing */
.category-section {
    width: 100%;
    margin: 30px 0;
}

.category-wrapper {
    max-width: 90%;
    margin: 0 auto;
    position: relative; /* Essential for arrow positioning */
}

/* The Scrollable Row */
.category-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    gap: 20px;
    padding: 10px 0;
}

/* Hide Scrollbar */
.category-scroll-container::-webkit-scrollbar { display: none; }
.category-scroll-container { -ms-overflow-style: none; scrollbar-width: none; }

/* Item Design */
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer; /* Cursor Pointer */
    flex: 0 0 auto;
    text-align: center;
    transition: transform 0.2s ease;
}

/* Specific Image Style */
.cat-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

/* Hover: Text Red and Pointer already handled by .category-item */
.category-item:hover .category-text {
    color: red !important;
}

.category-text {
    font-size: 0.90rem;
    margin-top: 8px;
    color: #333;
    transition: color 0.2s ease;
}

/* Arrows - Pure CSS Positioning */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex; /* Centers the icon */
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    pointer-events: none; /* Allows clicks to pass through to items below */
}

.left-arrow { left: -20px; }
.right-arrow { right: -20px; }

/* Responsive logic for Small Screens (sm) */
@media (max-width: 768px) {
    .category-wrapper {
        max-width: 100%; /* Fit to screen width */
    }
    
    .category-scroll-container {
        justify-content: flex-start !important; /* Force left-align for scrolling */
        padding: 10px 40px; /* Space so icons don't sit under arrows */
    }

    .left-arrow { left: 5px; }
    .right-arrow { right: 5px; }
    
    .cat-img {
        width: 55px; /* Slightly smaller icons for mobile */
    }
}

.search-container {
            max-width: 800px;
            margin-top: 50px;
        }

        .custom-search-bar {
            border-radius: 50px; /* Makes it pill-shaped */
            border: 2px solid #dee2e6;
            padding: 10px 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
            background: white;
        }

        .custom-search-bar input {
            border: none;
            outline: none;
            width: 100%;
            margin-left: 10px;
            font-size: 1.1rem;
            color: #6c757d;
        }

        .search-icon {
            color: #6c757d;
            font-size: 1.2rem;
        }

        .arrow-button {
            background-color: #e61e2a; /* Red color from the image */
            color: white;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            transition: 0.3s;
        }

        .arrow-button:hover {
            background-color: #c41923;
        }