/* General Reset */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}


.spacer {
    height: 60px; /* Adjust the height as needed */
    width: 100%; /* Ensure it spans the full width */
    background: transparent; /* Make it invisible */
}

.spacer2 {
    height: 20px; /* Adjust the height as needed */
    width: 100%; /* Ensure it spans the full width */
    background: transparent; /* Make it invisible */
}


.spacer3 {
    height: 15px; /* Adjust the height as needed */
    width: 100%; /* Ensure it spans the full width */
    background: transparent; /* Make it invisible */
}

.spacer4 {
    height: 10px; /* Adjust the height as needed */
    width: 100%; /* Ensure it spans the full width */
    background: transparent; /* Make it invisible */
}

/* Apply the new font globally */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Optional: Customize headers and other elements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* Semi-bold headers */
}

p, a, button {
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* Regular weight for text */
}



/* Header */
/* Header Links */
/* Header Links Styling */
.nav-link.header-link {
    background-color: #4169e1; /* Blue background */
    color: #fff; /* White text */
    font-weight: bold;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid #fff; /* white border */
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link.header-link:hover {
    background-color:  #fff; /* White text */
    color: #4169e1; /* Blue background */
}

/* Ensure buttons look good in the navbar */
.navbar-nav .nav-item {
    margin: 5px 0; /* Small margin between buttons in dropdown */
}

.navbar-nav .nav-link {
    display: block;
    text-align: center;
}

/* Adjust the navbar toggler button on mobile */
.navbar-toggler {
    border: none;
    outline: none;
}

/* Ensure alignment for larger screens */
@media (min-width: 992px) {
    .navbar-nav .nav-item {
        margin: 0; /* Reset margin on larger screens */
    }
}



/* Buttons */
button, .btn {
    background-color: #4169e1; /* Royal Blue */
    color: #fff; 
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
       font-size: 16px; /* Fallback */
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

button:hover, .btn:hover {
    background-color: #27408b; /* Darker Royal Blue */
    color: #fff;
}

/* Container for the Search Section */
.search-section {
    padding: 20px 0;
    background-color: #f9f9f9; /* Light background for contrast */
}

/* Flexbox Row */
.search-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Space between the columns */
}

/* Left Column: Title Styling */
.search-title h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Right Column: Search Box Styling */
.search-box form {
    display: flex;
    align-items: left;
    gap: 10px;
}

.search-box input {
    padding: 10px;
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-box button {
    padding: 10px 15px;
    background-color: #4169e1; /* Royal Blue */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #27408b; /* Darker Royal Blue */
}

/* Responsive Design: Stack Columns for Smaller Screens */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        text-align: center;
    }

    .search-box form {
        justify-content: center;
    }

    .search-box input {
        width: 100%; /* Full width on smaller screens */
    }
}


.categories-section h4 {
    text-align: center;
    font-size: 1.5rem; /* Optional: Adjust font size */
    color: #333; /* Optional: Set a specific color */
    margin-bottom: 20px; /* Add space below the heading */
}


/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 20px; /* Space between items */
    justify-items: center; /* Center the items horizontally */
    align-items: center; /* Center the items vertically */
    margin: 20px auto; /* Center the grid in the container */
}

.category-item {
    text-align: center;
    background-color: #f9f9f9; /* Light background (optional) */
    border: 1px solid #ddd; /* Optional border for better visuals */
    padding: 10px;
    border-radius: 8px; /* Rounded corners */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */
}

.category-item:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-item img {
    width: 80px; /* Icon size */
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-item p {
    font-size: 1rem;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr); /* Switch to 3 columns on smaller screens */
    }

    .category-item img {
        width: 70px; /* Adjust icon size */
        height: 70px;
    }

    .category-item p {
        font-size: 0.9rem; /* Adjust text size */
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns on very small screens */
    }

    .category-item img {
        width: 60px; /* Further reduce icon size */
        height: 60px;
    }

    .category-item p {
        font-size: 0.8rem;
    }
}




/* Forms */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form input:focus, form select:focus, form textarea:focus {
    border-color: #4169e1;
    outline: none;
}

/* Homepage Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin: 20px;
    text-align: center;
}

.category-grid img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: auto;
}

.category-grid h3 {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #4169e1;
}

/* Floating Post Item Button */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4169e1;
    color: #fff;
    font-size: 1rem;
    padding: 15px 20px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s;
}

.floating-btn:hover {
    background-color: #27408b;
}

/* Footer */
footer {
    background-color: #4169e1;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}




.notification-item.unread {
    background-color: #f5f5f5;
    font-weight: bold;
}

.notification-item.read {
    background-color: #fff;
    font-weight: normal;
}


.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #4a90e2; /* Pale Blue */
    color: white;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    line-height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.floating-button:hover {
    background-color: #357ABD; /* Darker Blue */
    transform: scale(1.1);
}

.floating-button:active {
    transform: scale(0.9);
}


.featured-ads {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    background: #f8f8f8;
    white-space: nowrap;
}

.featured-ad-item {
    width: 200px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.featured-ad-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.view-ad {
    display: inline-block;
    padding: 5px 10px;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 5px;
}
