/* Set up a flexbox container that spans the full viewport height */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}
/* Main content should take available space */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Custom Breadcrumb Styling */
.breadcrumb {
    margin-top: 70px; /* Adjusted to prevent overlap with fixed navbar */
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    justify-content: center; /* Center the breadcrumb */
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 5px;
    color: #6c757d;
}

.carousel {
    margin-top: 60px; /* Adjust as needed */
}
.section {
    padding: 50px 0;
}
.line-through {
    display: flex;
    color: #168141;
    text-align: center;
    letter-spacing: 2px;
}
.line-through::before, .line-through::after {
    content: "";
    flex: 1;
    align-self: center;
    border-bottom: 2px solid #d8d8d8;
}

.animated-text {
    animation: fadeInUp 1s ease-in-out;
    text-align: justify;
}

h2,h3,h4,h5  {
    color:rgba(51, 103, 214, 1);
}
.title_txt{
    margin-top: -3.5em;
    padding-top: 3.5em;
    padding-bottom: 0.5em;
}

.title_txt_h3{
    margin-top: -3.5em;
    padding-top: 3.5em;
    padding-bottom: 0.5em;
}
.title_txt::before {
    content: "";
    margin-right: .5em;
    border-left: .25em solid #5467ae;
    top: 0;
    left: 0;
}

.title_txt_h3::before {
    content: "";
    margin-right: .5em;
    border-left: .25em solid #5467ae;
    top: 0;
    left: 0;
}

.animated-card {
    animation: fadeInUp 1.5s ease-in-out;
}
@keyframes fadeInUp {
    from {
        transform: translate3d(0, 40px, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.library-aside-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.library-aside-txt{
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}
/*
.library-aside-img:hover {
    transform: scale(1.1); 
}
*/

/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #db3b3b; /* Button color */
    color: white; /* Icon color */
    border: none;
    border-radius: 50%; /* Circular button */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow */
    font-size: 20px; /* Icon size */
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Initially hidden */
    z-index: 9999; /* Ensures it's on top */
}

.back-to-top.show {
    opacity: 1; /* Show button when scrolled */
    visibility: visible; /* Show button when scrolled */
}

.back-to-top:hover {
    background-color: #970000;
    transform: scale(1.1);
}

.back-to-top i {
    margin: 0;
}

#backtop{
    position: relative;
    top: 4px;
    left: 10px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
    }
}




@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.animated-button {
    display: block;
    width: 258px; /* Adjust width as needed */
    margin: 0 auto; /* Center align horizontally */
    text-align: center; /* Center align text */
    border: none; /* Remove border */
    border-radius: 0; /* Square corners */
    text-decoration: none; /* Remove default link underline */
    padding: 12px 20px; /* Adjust padding as needed */
    transition: background-color 0.3s ease; /* Smooth transition on hover */
    animation: pulse 1.5s infinite;
}

.animated-button:hover {
    background-color: #0c2e8a; /* Darker color on hover */
    color: white; /* Text color on hover */
}

.animated-button:focus {
    outline: none; /* Remove focus outline */
}

@media (max-width: 576px) {
    .animated-button {
        width: 100%; /* Full width on smaller screens */
    }
}

/* Custom Footer Styling */
.footer {
    background-color: #1a4f1b;
    padding: 2rem 0;
    margin-top: auto; /* Ensure the footer is pushed to the bottom */
    color: #fff;
}
.footer h4 {
    margin-bottom: 10px;
}
.footer p {
    margin-bottom: 5px;
}

/* Media Queries */
@media (max-width: 768px) {
    .footer p {
        font-size: 0.875rem; /* Adjust font size for smaller screens */
    }
}
@media (max-width: 576px) {
    .footer h5 {
        font-size: 1.25rem; /* Slightly smaller font size for very small screens */
    }
    .footer p {
        font-size: 0.75rem; /* Smaller font size for very small screens */
    }
}
.title_txt_d2 {
    padding: 10px 20px;
    position: relative;
    display: inline-block; /* Ensures element size is based on content */
    font-weight: bold;
    font-size: 18px;
}

.title_txt_d2::after, .title_txt_d2::before {
    content: "";
    width: 20px; /* Increase width to cover text */
    height: 20px; /* Increase height to cover text */
    position: absolute;
    transition: all 1s;
}

.title_txt_d2::before {
    top: 0;
    left: 0;
    border-top: 2px solid #007bff; /* Adjust border thickness */
    border-left: 2px solid #007bff; /* Adjust border thickness */
    transform: rotate(360deg); /* Rotate for top-left corner */
}

.title_txt_d2::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid #007bff; /* Adjust border thickness */
    border-right: 2px solid #007bff; /* Adjust border thickness */
}

.social-icons a {
    color: #333;
    margin: 0 10px;
    transition: color 0.3s ease;
    font-size: 24px;
}
.social-icons a:hover {
    color: #007bff;
}
.nav-link.text-danger:hover {
    color: #ff6b6b !important; /* Hover color for Logout link */
    transform: scale(1.1); /* Slightly enlarge on hover */
}
.navbar-nav .nav-link-active {
    color: #970000;
    font-weight: 600;
}