body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-bottom: 50px;
}

h1 {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.container-fluid {
    padding: 0 15px;
}

.accordion-item {
    margin-bottom: 0 auto;
    width: 85%;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-left: auto;
    margin-right: auto;  
    
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}
.accordion-header .accordion-button{
    background-color: #86b7fe;
    /* color:#0000; */
    font-size: large;
}

.subsection {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.subsection:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
    padding-left: 5px;
    border-left: 3px solid #0d6efd;
}

.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0.5rem 0.65rem;
    height: 100%;
    white-space: normal;
    word-wrap: break-word;
    font-size: 1rem; /* Updated font size */
    margin-bottom: 10px;
    width: 100%;
    text-decoration: none;
}

.btn i {
    margin-right: 8px;
    font-size: 1.4em; /* Make all Font Awesome icons larger */
    min-width: 16px;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-red {
    color: #fff;
    background-color: #ff0000;
    border-color: #ff0000;
}

.btn-red:hover {
    color: #fff;
}

.image-button {
    color: #fff;
    background-color: #6610f2;
    border-color: #6610f2;
}

.image-button:hover {
    color: #fff;
}

.btn-primary:hover, .btn-success:hover, .btn-info:hover, 
.btn-warning:hover, .btn-danger:hover, .btn-secondary:hover, 
.btn-dark:hover {
    color: #fff;
}

/* Responsive button layout */
@media (min-width: 992px) {
    /* Desktop: 5 buttons per row */
    .row-cols-5 > .col {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    .btn {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tablet: 3 buttons per row */
    .row-cols-5 > .col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .btn {
        font-size: 0.9375rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Small tablet: 2 buttons per row */
    .row-cols-5 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .btn {
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    /* Mobile: 1 button per row */
    .row-cols-5 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Make buttons taller for easier touch on mobile */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Search Highlight Styles */
.search-highlight {
    border: 3px solid #ffc107 !important;  /* Yellow border */
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Search Results Count */
#searchResults {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
}

/* Make accordion sections expand when they have search results */
.has-search-results {
    display: block !important;
}

.toast-container {
    z-index: 1100;
}

.toast {
    opacity: 1;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Search box styling */
#searchBox {
    display: flex;
    width: 100%;
    height: 38px;
    margin-bottom: 10px;
}

#searchInput {
    flex: 3;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

#searchButton {
    flex: 1;
    background-color: #0d6efd;
    color: white;
    border: 1px solid #0d6efd;
    border-radius: 0;
    cursor: pointer;
    padding: 6px 12px;
}

#clearButton {
    flex: 1;
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    padding: 6px 12px;
}

/* Search results styling */
#searchResults {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
}

/* Search highlight styling */
.search-highlight {
    border: 3px solid #ffc107 !important;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Base themed button styling */
.btn-themed {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.65rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    width: 100%;
    border: none;
    position: relative;
    transition: all 0.3s ease;
}

/* Icon image left of text */
.btn-themed::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Ensure text and icons are visible */
.btn-themed > * {
    position: relative;
    z-index: 2;
}

/* Hover effect (base) */
.btn-themed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Layout inside button */
.btn-themed .btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-themed .btn-text {
    text-align: center;
    flex: 0 1 auto;
}

.btn-themed i {
    font-size: 1.25rem;
    margin-right: 8px;
}

.accordion-body-note {
    color: #6c757d;          /* Bootstrap gray-600 */
    font-size: 0.875rem;     /* smaller text */
    margin-bottom: 0.75rem;  /* spacing below the line */
    text-align: right;       /* right-align the text */
}