/* custom.css */

/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f8fa;
    color: #333;
}

/* Navbar Styles */
.navbar {
    border-bottom: 1px solid #eee;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    color: #333 !important;
    font-size: 1rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff !important;
}

.navbar-toggler {
    border: none;
}

.dropdown-menu {
    border: 1px solid #ddd;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Advanced Search Styles */
.form-select {
    width: auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Footer Styles */
footer {
    background: #9ca59c;
    color: #0c0c0c;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

footer .fab {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

footer .fab:hover {
    color: #007bff;
}

/* Cards and Buttons */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.btn-primary, .btn-success {
    border: none;
    font-size: 1rem;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover, .btn-success:hover {
    background-color: #0056b3;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        margin: 0;
        padding: 10px 15px;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    .form-select, .form-control {
        width: 100%;
    }

    .input-group {
        flex-direction: column;
    }
}


/* custom.css */

/* custom.css */

/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Blog Card Small Styling */
.blog-card-sm {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #fff;
}

.blog-card-sm:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.blog-card-sm .card-img-container-sm {
    position: relative;
    height: 150px; /* Smaller image height */
}

.blog-card-sm img {
    object-fit: cover;
    height: 100%;
}

.blog-card-sm .overlay-sm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card-sm:hover .overlay-sm {
    opacity: 1;
}

.blog-card-sm .overlay-text-sm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

/* Card Titles */
.card-title {
    font-weight: bold;
    font-size: 1rem;
}

/* Card Text */
.card-text {
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-title {
        font-size: 0.9rem;
    }

    .card-text {
        font-size: 0.8rem;
    }

    .overlay-text-sm {
        font-size: 0.9rem;
    }
}



/* custom.css */

/* Placeholder Styling for No Image */
.no-image-placeholder {
    height: 150px; /* Same height as the image container */
    background: linear-gradient(135deg, #007bff, #00b8d8); /* Dynamic gradient background */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    overflow: hidden;
}

/* Other CSS */
.blog-card-sm .card-img-container-sm {
    position: relative;
    height: 150px; /* Consistent height for all cards */
}

.blog-card-sm img,
.blog-card-sm .no-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-sm .overlay-sm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card-sm:hover .overlay-sm {
    opacity: 1;
}

.blog-card-sm .overlay-text-sm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}


/* custom.css */

/* Card Styling */
.card {
    border-radius: 15px;
}

.card-header {
    background: linear-gradient(135deg, #007bff, #00b8d8);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

.card-header i {
    margin-right: 10px;
}

.card-body form .mb-3 label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.card-body .form-control {
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-footer p {
    font-size: 0.9rem;
}

.card-footer a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.card-footer a:hover {
    color: #0056b3;
}

/* Button Styling */
.btn-primary {
    background-color: #007bff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .card-header h3 {
        font-size: 1.2rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 10px 0;
    }
}



#preview-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}


    .ad-image-container {
        height: 20px; /* Slim height similar to a menu bar */
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #f8f9fa; /* Optional background color */
    }

    .ad-banner-img {
        max-height: 100%;
        width: auto; /* Adjust the width dynamically to fit the height */
        object-fit: contain; /* Ensures image fits nicely within the container without being cut off */
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 10px;
        height: 10px;
    }

    .carousel-indicators [data-bs-target] {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #000;
    }

    @media (max-width: 768px) {
        .ad-image-container {
            height: 10px; /* Slightly reduce height for smaller screens */
        }
    }
