/* Blogs Section */
.blogs-section {
    margin-top: 120px;
}

/* Blog Card Styling */
.blog-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.blog-card .card-img-top {
    border-bottom: 2px solid rgb(14, 50, 59);
}

.blog-card .btn1 {
    background-color: rgb(14, 50, 59);
    color: #fff;
    border-radius: 25px;
    height: 40px;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.blog-card .btn1:hover {
    background-color: rgb(10, 40, 50);
}

/* Modal Styling */
.modal-xl {
    max-width: 90%; /* Wide modal */
    margin: auto;
    z-index: 1050; /* Ensure it stays above other elements */
}

/* Custom Scrollbar for Modal Body */
.custom-scroll {
    max-height: 70vh; /* Control height of content */
    overflow-y: auto; /* Allow smooth scrolling */
    scrollbar-width: thin; /* Customize scrollbar in Firefox */
    scrollbar-color: #ccc transparent; /* Color customization in Firefox */
}

.custom-scroll::-webkit-scrollbar {
    width: 6px; /* Thin scrollbar width */
}

.custom-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc; /* Scrollbar color */
    border-radius: 4px; /* Rounded scrollbar */
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #aaa; /* Darker color on hover */
}

/* Modal Close Behavior */
.modal-dialog {
    pointer-events: none; /* Prevent outer clicks from interacting */
}

.modal-content {
    pointer-events: auto; /* Allow clicks inside content */
    border-radius: 15px; /* Smooth rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Improved shadow for depth */
    background-color: #fff;
}

/* Modal Header Styling */
.modal-header {
    border-bottom: 1px solid #ddd;
    padding: 20px;
    background-color: #f8f9fa;
}

.modal-title {
    font-weight: bold;
    font-size: 1.6rem;
    color: #333;
}

.modal-header .close {
    font-size: 1.2rem;
    color: #666;
    border: none;
    background: none;
    cursor: pointer;
}

/* Modal Body Styling */
.modal-body img {
    border-radius: 10px;
    margin-bottom: 15px;
    max-width: 100%;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* Overlay Styling */
.modal {
    background: rgba(0, 0, 0, 0.7); /* Dark transparent overlay */
}

/* Adjust Z-index Levels */
.modal-backdrop {
    z-index: 1040; /* Match the modal z-index for proper layering */
}

.modal {
    z-index: 1050; /* Higher than backdrop */
}
