/* University / units and departments */
.welcome .welcome-image {
    display: none;
}
.welcome .welcome-content {
    display: none;
}
div.welcome {
    padding: 0 !important;
}


.downloads-info {
    text-align: center;
}

.downloads-count {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    display: inline-block;
}

.count-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.count-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Search and Filter */
.search-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.search-box .input-group-text {
    background: #f8f9fa;
    border-right: none;
}

.search-box .form-control {
    border-left: none;
    /* border-right: none; */
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.form-control{
    padding: .375rem .75rem !important;
    color: var(--bs-body-color) !important;
    background-color: var(--bs-body-bg) !important;
    border-radius: 0px 5px 5px 0px !important;
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
}

/* Accordion Styles */
.bylaws-accordions .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.17);
}

.bylaws-accordions .accordion-button {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 1.5rem;
    border: none;
    box-shadow: none;
}

.bylaws-accordions .accordion-button:not(.collapsed) {
    background: var(--primary);
    color: white;
}

.bylaws-accordions .accordion-button:not(.collapsed) .accordion-icon {
    color: white;
}

.accordion-icon {
    margin-right: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Documents List */
.documents-list {
    padding: 0;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.document-item:hover {
    background-color: var(--light);
}

.document-item:last-child {
    border-bottom: none;
}

.document-icon {
    width: 50px;
    height: 50px;
    background: #ffeaea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.document-icon i {
    color: #e74c3c;
    font-size: 1.5rem;
}

.document-info {
    flex-grow: 1;
}

.document-info h5 {
    color: #002d58;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.document-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

/* View More Section */
.view-more-section {
    padding-top: 1rem;
    text-align: center;
}

.view-more-btn {
    color: #002d58;
    text-decoration: none;
    font-weight: 500;
}

.view-more-btn:hover {
    color: #194c44;
}

.view-more-btn.collapsed .fa-chevron-down {
    transform: rotate(0deg);
}

.view-more-btn .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Help Section */
.help-card {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
}

.help-card h4 {
    margin-bottom: 0.5rem;
}
.help-card .btn {
    background: var(--accent);
    color: white;
    border-radius: 20px;
}
.help-card .btn:hover {
    background: rgba(255, 255, 255, 0.175);
    border-color: white;
    color: white;
    border-radius: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .document-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .document-info {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .document-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .intro-section .row {
        text-align: center;
    }
    
    .downloads-count {
        margin-top: 1rem;
    }
}

.download-btn{
    color: white;
    background-color: var(--accent);
}

.badge {
    background-color: var(--accent);
}
.badge:hover {
    background-color: var(--accent);
}

.download-btn:hover{
    color: var(--accent);
    border-color: var(--accent);
    background-color: transparent;
}



@media (max-width: 576px) {
    .search-section .row {
        flex-direction: column;
    }
    
    .search-section .col-md-4 {
        margin-top: 1rem;
    }
    
    .accordion-button {
        padding: 1rem;
    }
    
    .accordion-button .badge {
        display: none;
    }
}


/* Default chevron arrow (visible on white background) */
.bylaws-accordions .accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23002d58' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

/* When expanded (white arrow on dark background) */
.bylaws-accordions .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.bylaws-accordions .accordion-button .badge {
    margin-left: auto !important;
    margin-right: 0.5rem;
}

/* Make sure the accordion button uses flexbox correctly */
.bylaws-accordions .accordion-button {
  display: flex;
  align-items: center;
}

/* Push the badge to the right but keep it before the chevron */
.bylaws-accordions .accordion-button .badge {
  margin-left: auto; /* pushes it to the right side */
  order: 2; /* place it before the ::after chevron */
}

/* Make sure the Bootstrap arrow stays at the very end */
.bylaws-accordions .accordion-button::after {
  order: 3;
  margin-left: 0.5rem;
}


.form-select{
    border-radius: 6px;
}

.filter-section select:hover {
  border-color: var(--primary); 
}

.filter-section select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 5px var(--accent);
  background-color: #ffffff;
  color: #222;
}
