/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Sticky Header */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: #007bff !important;
}

.navbar-nav .nav-link {
    color: #333333 !important;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

/* Forms */
form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

form input, form select, form button {
    width: 100%;
    margin: 30px 0;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

form button {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666666;
}

footer a {
    text-decoration: none;
    color: #007bff;
    font-size: 0.9rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Authentication Page */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.auth-container h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333333;
}

.auth-container form {
    margin-bottom: 30px;
}

.auth-container .btn {
    padding: 10px;
    font-size: 1rem;
}

/* Input Group Styling */
.input-group {
    position: relative;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Success/Error Messages */
.alert {
    margin-top: 20px;
}

/* Field Headings */
label {
    font-weight: bold;
    font-size: 1rem;
    color: #333333;
}

/* Placeholder Text */
input::placeholder,
select::placeholder,
textarea::placeholder {
    font-size: 0.9rem !important;
    color: #999999 !important;
    opacity: 1; /* Ensures consistent visibility */
}

/* Input Fields */
input,
select,
textarea {
    font-size: 1rem;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

/* Buttons */
button {
    font-size: 1rem;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Cards for Search Results */
.card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

.card p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555555;
}

/* Admin Section */
.admin-section {
    margin-top: 30px;
    text-align: center;
}

/* Blog Image Styling */
.blog-image {
    max-width: 100%; /* Ensures the image fits within the card */
    height: auto; /* Maintains aspect ratio */
    margin-bottom: 15px; /* Adds space below the image */
    border-radius: 10px; /* Adds rounded corners */
    float: left; /* Floats the image to the left */
    margin-right: 15px; /* Adds space between the image and text */
}

.card-body {
    overflow: hidden; /* Prevents text from wrapping around the image incorrectly */
}
