/* Base font sizes */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Button and form control focus styles */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Body positioning and margin */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Badge styling */
.badge {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
}

    .badge:hover {
        opacity: 0.8;
    }

/* Background color for dark elements */
.bg-dark {
    background-color: #343a40;
}

/* Styling for social links */
.social-link {
    display: inline-block;
    margin-right: 10px;
    color: #333;
    text-decoration: none;
}

    .social-link:hover {
        color: #007bff;
    }

    .social-link i {
        margin-right: 5px;
    }

/* Card styling */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-body {
    padding: 20px;
    overflow: hidden;
}

/* Adjust image styling within blog details */
.blog-details-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

/* Button transition on hover */
.register-button {
    transition: background-color 0.3s ease;
}

    .register-button:hover {
        color: #fff;
        background-color: #6c757d;
        border-color: #6c757d;
    }

/* Styling for access denied container */
.access-denied-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-top: 50px;
}

    .access-denied-container h1 {
        color: #dc3545;
    }

/* Pagination styling */
.pagination {
    font-size: 16px;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    color: #007bff;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 10px 20px;
    transition: all 0.3s;
}

    .page-link:hover {
        background-color: #f8f9fa;
        border-color: #ddd;
    }

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: not-allowed;
    background-color: #ffffff;
    border-color: #dee2e6;
}

.pagination justify-content-center {
    display: flex;
    justify-content: center;
}

/* Comment section styling */
.comment-section {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* Modal styling */
.modal-content {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 20px;
    max-width: 400px;
}

.modal-header {
    border-bottom: 1px solid #ddd;
}

.modal-title {
    font-weight: bold;
}

.modal-body {
    text-align: center;
}

/* Liked class styling */
.liked {
    color: #0d6efd;
}

/* Normal link styling */
.normal-link {
    color: inherit;
    text-decoration: none;
}

/* Sidebar footer styling */
.sidebar-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

    .sidebar-footer a {
        color: #ffffff;
        text-decoration: none;
        font-size: 1.2rem;
        transition: color 0.2s ease-in-out;
    }

        .sidebar-footer a:hover {
            color: #f00;
        }

/* User name styling */
.user-name {
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

/* Custom Toast notification styling */
.custom-success-toast {
    background-color: #00ff00 !important;
}

.custom-error-toast {
    background-color: #ff0000 !important;
}

/* Tags container styling */
.tags-container {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .tags-container .badge {
        font-size: 14px;
        padding: 10px 15px;
        border-radius: 20px;
        transition: transform 0.2s;
        margin: 8px;
    }

        .tags-container .badge:hover {
            transform: scale(1.1);
            background-color: #343a40;
            color: #fff;
        }
.custom-card {
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.custom-card-img {
    width: 100%;
    height: 220px; /* You can adjust this value as needed */
    object-fit: cover;
}

.card-title a {
    color: inherit; /* Inherit text color from card title */
}

.card-text small {
    color: #999; /* Grayish text for author and publish date */
}

.tags .badge {
    font-size: 0.8rem; /* Smaller font size for tags */
}

.scroll-up-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Ensure the button is above other content */
}
.tag-slider {
    display: flex;
    white-space: nowrap;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    position: relative;
}

    .tag-slider::-webkit-scrollbar {
        display: none; /* Hide scrollbar for WebKit browsers */
    }

.tag-slider-item {
    position: relative;
    flex: 0 0 auto;
    height: 200px;
    scroll-snap-align: start;
    margin-right: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .tag-slider-item:hover {
        transform: scale(1.05);
    }

    .tag-slider-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px; /* Keep the same border-radius as the container */
    }

.tag-name {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem 0;
    margin-top: 5px;
    font-size: 1rem;
}

@media (min-width: 769px) {
    .tag-slider-item {
        width: calc(100% / 6 - 1rem); /* Show up to 6 tags on desktop */
    }
}

@media (max-width: 768px) {
    .tag-slider-item {
        width: 100%; /* Show one tag at a time on mobile */
    }
}

.tag-slider.no-scroll {
    overflow-x: hidden;
}

.tag-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1;
}

.tag-slider-nav-prev {
    left: 0;
}

.tag-slider-nav-next {
    right: 0;
}

.tag-slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}



/* General Box Styling */
.our-processbox {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 270px; /* Set minimum height */
    width: 100%; /* Full width for each column */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* Space between boxes */
}

    /* Headings and Text Styling */
    .our-processbox h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .our-processbox p {
        font-size: 1rem;
        line-height: 1.5;
    }

/* Section Title Styling */
.section_tittle h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section_tittle p {
    font-size: 1.1rem;
    color: #666;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .our-processbox {
        min-height: 280px; /* Slightly smaller height for mobile */
        padding: 15px; /* Adjust padding for mobile */
    }

        .our-processbox h2 {
            font-size: 1.3rem; /* Smaller heading for mobile */
        }

        .our-processbox p {
            font-size: 0.9rem; /* Smaller paragraph text for mobile */
        }

    .section_tittle h2 {
        font-size: 2rem; /* Smaller title size for mobile */
    }
}

.text-black {
    color: black !important; /* Ensure the text becomes black */
}
/* Style for the logo image with smoother corners */


/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    .logo-image {
        max-width: 150px; /* Reduce logo size for tablets and smaller screens */
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-width: 120px; /* Further reduce logo size for mobile devices */
    }
}

.logo-image:hover {
    transform: scale(1.05); /* Slight zoom effect when hovered */
    transition: transform 0.3s ease; /* Smooth transition */
}
