/* Public Disclosure Page Styles */
:root {
    --mountain-darker: #553231;
    --mountain: #6A3E3D;
    --mountain-lighter: #886564;
    --water-darker: #26496B;
    --water: #305B86;
    --water-lighter: #597C9E;
    --sun-darker: #B77A0A;
    --sun: #E5990C;
    --sun-lighter: #EAAD3D;
    --plant-darker: #5A6D28;
    --plant: #718832;
    --plant-lighter: #8DA05B;
    --monotone-dark: #1A112E;
    --monotone-light: #F3E8D3;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

.disclosure-section {
    margin-bottom: 3rem;
}

.disclosure-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.disclosure-table th, 
.disclosure-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.disclosure-table th {
    background-color: var(--water);
    color: #fff;
    font-weight: 600;
}

.disclosure-table tr:nth-child(even) {
    background-color: rgba(89, 124, 158, 0.05);
}

.disclosure-table tr:hover {
    background-color: rgba(89, 124, 158, 0.1);
}

.disclosure-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    height: 100%;
}

.disclosure-nav {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    
    z-index: 1000;
    top: 20px;
}

.disclosure-nav h5 {
    color: var(--mountain-darker);
    font-family: var(--font-heading);
    font-weight: 600;
}

.disclosure-nav h6 {
    color: var(--mountain-darker);
    font-weight: 600;
}

.disclosure-nav .nav-link {
    color: var(--monotone-dark);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.disclosure-nav .nav-link:hover,
.disclosure-nav .nav-link.active {
    background-color: var(--water-lighter);
    color: #fff;
}

.download-link {
    color: var(--water);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.download-link:hover {
    color: var(--sun);
    text-decoration: underline;
}

.download-link i {
    margin-right: 8px;
}

.category-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
}

.category-badge.mandatory {
    background-color: rgba(234, 173, 61, 0.2);
    color: var(--sun-darker);
}

.category-badge.optional {
    background-color: rgba(141, 160, 91, 0.2);
    color: var(--plant-darker);
}

.last-updated {
    font-size: 0.85rem;
    color: var(--mountain-lighter);
    margin-top: 0.5rem;
}

/* PDF Document Gallery Styles */
.pdf-gallery-section {
    background-color: var(--monotone-light);
    padding: 3rem 0;
    margin-top: 3rem;
}

.document-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.document-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #eee;
}

.document-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.document-card:hover .document-thumbnail img {
    transform: scale(1.05);
}

.document-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.document-card:hover .document-overlay {
    opacity: 1;
}

.document-preview-btn {
    background: rgba(255,255,255,0.9);
    color: var(--monotone-dark);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.document-preview-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.document-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mountain-darker);
    margin-bottom: 0.5rem;
}

.document-meta {
    font-size: 0.85rem;
    color: var(--mountain-lighter);
    margin-bottom: 1rem;
}

.document-tag {
    display: inline-block;
    background: rgba(89, 124, 158, 0.1);
    color: var(--water);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.document-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

.document-actions a {
    display: inline-flex;
    align-items: center;
    color: var(--water);
    font-size: 0.85rem;
    gap: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.document-actions a:hover {
    color: var(--sun);
    text-decoration: underline;
}

.pdf-filter-tabs {
    margin-bottom: 2rem;
    justify-content: center;
}

.pdf-filter-tabs .nav-link {
    color: var(--mountain-darker);
    border-radius: 0;
    padding: 10px 20px;
    border: none;
    position: relative;
    font-weight: 500;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.pdf-filter-tabs .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--sun-lighter);
    transition: width 0.3s;
}

.pdf-filter-tabs .nav-link.active {
    color: var(--sun);
    background-color: transparent;
}

.pdf-filter-tabs .nav-link.active:after,
.pdf-filter-tabs .nav-link:hover:after {
    width: 100%;
}

/* PDF Viewer Modal Styles */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(26, 17, 46, 0.85);
    overflow: hidden;
}

.pdf-modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--water);
    border-bottom: 1px solid #dee2e6;
    color: #fff;
}

.pdf-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-heading);
}

.pdf-modal-close {
    font-size: 1.5rem;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.pdf-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.pdf-modal-body {
    height: calc(100% - 120px);
    overflow: hidden;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--monotone-light);
    border-top: 1px solid #dee2e6;
}

.pdf-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--monotone-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.pdf-control-btn:hover {
    background: var(--water);
    color: #fff;
    border-color: var(--water);
}

.pdf-page-info {
    font-size: 0.9rem;
    color: var(--mountain);
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sun-lighter);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.pdf-download-btn:hover {
    background: var(--sun);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--mountain);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.empty-state p {
    color: var(--mountain-lighter);
    max-width: 500px;
    margin: 0 auto;
}

/* Custom Tab Styles */
.nav-tabs {
    border-bottom: none;
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    border: none;
    background: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--mountain-darker);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: rgba(234, 173, 61, 0.1);
}

.nav-tabs .nav-link.active {
    background: var(--sun-lighter);
    color: white;
}

/* Alert Styling */
.alert-info {
    background-color: rgba(48, 91, 134, 0.1);
    border-color: rgba(48, 91, 134, 0.2);
    color: var(--water-darker);
}

.alert-info i {
    color: var(--water);
}

/* List Group Styling */
.list-group-item {
    border-color: rgba(89, 124, 158, 0.1);
}

.badge.bg-primary {
    background-color: var(--water) !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .disclosure-nav {
        position: relative;
        margin-bottom: 2rem;
    }
    
    .disclosure-table {
        font-size: 0.9rem;
    }
    
    .disclosure-table th, 
    .disclosure-table td {
        padding: 8px 10px;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
    
    .pdf-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
        -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
        scrollbar-width: none;  /* Hide scrollbar for Firefox */
    }
    
    .pdf-filter-tabs::-webkit-scrollbar {
        display: none;  /* Hide scrollbar for Chrome, Safari and Opera */
    }
    
    .pdf-filter-tabs .nav-item {
        flex: 0 0 auto;
    }
    
    .document-card {
        margin-bottom: 20px;
    }
    
    .document-thumbnail {
        height: 180px;
    }
    
    .document-title {
        font-size: 1rem;
    }
    
    .document-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .pdf-modal-content {
        width: 95%;
        height: 95%;
    }
    
    .pdf-modal-header {
        padding: 0.75rem 1rem;
    }
    
    .pdf-modal-title {
        font-size: 1.1rem;
    }
    
    .pdf-modal-footer {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pdf-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pdf-page-info {
        flex-basis: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .pdf-download-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .disclosure-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tab-content {
        overflow-x: auto;
    }
    
    .document-card {
        height: auto;
    }
    
    .document-thumbnail {
        height: 160px;
    }
    
    .pdf-filter-tabs .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
        margin: 2px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .breadcrumb-custom {
        flex-wrap: wrap;
    }
}

/* Enhanced CTA Section styling for the public disclosure page */

.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/school-building.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    position: relative;
    margin-top: 50px;
}

.cta-content {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-content h2 {
    color: #333;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    color: #666;
    font-size: 18px;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-premium {
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 115, 223, 0.4);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

/* Email link styling */
.cta-content a.text-decoration-underline {
    color: #4e73df;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-content a.text-decoration-underline:hover {
    color: #224abe;
}

/* Button gap for mobile responsiveness */
@media (max-width: 576px) {
    .gap-3 {
        gap: 1rem !important;
    }
    
    .btn-premium {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}
