/* Custom styles for the blog details page */

/* General layout and structural styles - DO NOT include theme-specific colors here */

.blog-post-card {
    border-radius: 10px;
    margin-bottom: 20px; /* Adjusted margin-bottom */
    margin-top: 20px; /* Added margin-top */
    transition: transform 0.3s ease-in-out;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.blog-post-card .card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.blog-post-card .card-body {
    padding: 20px; /* Reduced padding */
}

.blog-post-card .card-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.blog-post-card .card-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-post-card .card-footer {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.author-bio {
    padding: 20px; /* Reduced padding */
    border-radius: 10px;
    margin-bottom: 20px; /* Added margin-bottom */
}


.share-link {
    padding: 20px; /* Reduced padding */
    border-radius: 10px;
    margin-bottom: 20px; /* Added margin-bottom */
}


.comment-section {
    margin-bottom: 20px; /* Consistent spacing */
}

.comment-section .card {
    border: none;
    padding: 15px; /* Added padding to the card itself */
    border-radius: 10px;
}

.comment-section textarea {
    width: 100%; /* Ensure full width */
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    margin-bottom: 10px; /* Add some space below textarea */
}

.comment-section textarea:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.comment-section form {
    display: flex;
    flex-direction: column;
    /*align-items: flex-end;*/ /* Align button to the right */
}

.comment-section .btn {
    margin-top: 10px; /* Adjust top margin for the button */
}

/* Image Gallery */
.gallery-container {
    margin-bottom: 2rem;
}

.main-image-container {
    margin-bottom: 1rem;
    text-align: center;
}

.main-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.thumbnail {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.widget-card {
    margin: 0.5rem;
}

.widget-card .card-header {
    padding: 0.5rem 1rem;
}

.widget-card .card-body {
    padding: 0.5rem;
}

/* Remove underlines from links in sidebar widgets */
.widget-card .list-unstyled a,
.widget-card .badge {
    text-decoration: none !important;
}

/* Smart and better searchbox input */
.widget-card .input-group .form-control {
    border-radius: 5px 0 0 5px; /* Rounded left corners */
    box-shadow: none;
    padding: 0.5rem 0.75rem;
    height: auto;
}

.widget-card .input-group .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.widget-card .input-group .btn-secondary {
    border-radius: 0 5px 5px 0; /* Rounded right corners */
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    padding: 0.5rem 0.75rem;
}

.widget-card .input-group .btn-secondary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}