/* Campus Pages Styling */
.campus-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.campus-image img:hover {
    transform: scale(1.02);
}

.campus-details {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.campus-details .row {
    margin-bottom: 15px;
}

.campus-details .fw-bold {
    color: #003264;
}

h1.campus-title {
    color: #003264;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

h1.campus-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #F4C430;
}

/* Facility Buttons */
.facility-btn {
    background-color: #003264;
    color: #FFFFFF;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.facility-btn:hover {
    background-color: #F4C430;
    color: #003264;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.board-buttons .btn {
    background-color: #003264;
    color: #FFFFFF;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.board-buttons .btn:hover {
    background-color: #F4C430;
    color: #003264;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* MODAL FIX - PROPER SIZE AND POSITIONING */

/* Hide all modal backdrops */
.modal-backdrop {
    display: none !important;
}

/* Modal positioning - below header */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999 !important;
    display: none !important;
    padding: 120px 15px 15px 15px !important;
    overflow-y: auto !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative !important;
    width: auto !important;
    max-width: 700px !important;
    margin: 20px auto !important;
    pointer-events: none !important;
}

.modal-dialog-centered {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-height: auto !important;
}

.modal-dialog-centered .modal-content {
    width: 100% !important;
    margin-top: 0 !important;
}

.modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    pointer-events: auto !important;
    background-color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    max-height: 85vh !important;
    overflow: hidden !important;
}

.modal-header {
    background-color: #003264;
    color: #FFFFFF;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    flex-shrink: 0;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 120px);
}

.circle-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #F4C430;
    border-radius: 50%;
    margin-right: 10px;
}

.pdf-link {
    color: #374151;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    background-color: #F9FAFB;
}

.pdf-link:hover {
    color: #003264;
    background-color: #F4C430;
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    h1.campus-title {
        font-size: 2.4rem;
        margin-top: 25px;
    }
    
    .campus-details {
        font-size: 1rem;
    }
    
    /* Modal Responsive - Tablet */
    .modal-dialog {
        width: 90vw !important;
        max-width: 500px !important;
    }
}

@media (max-width: 768px) {
    h1.campus-title {
        font-size: 2rem;
    }
    
    .facility-btn {
        margin-bottom: 15px;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Modal Responsive - Mobile */
    .modal-dialog {
        width: 95vw !important;
        max-width: 400px !important;
        top: 10% !important;
        transform: translate(-50%, 0) !important;
        max-height: 85vh !important;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 15px;
        max-height: calc(85vh - 100px);
    }
    
    .pdf-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    h1.campus-title {
        font-size: 1.8rem;
    }
    
    .campus-details .row {
        margin-bottom: 10px;
    }
    
    /* Modal Responsive - Small Mobile */
    .modal-dialog {
        width: 98vw !important;
        max-width: 350px !important;
        top: 5% !important;
        max-height: 90vh !important;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 12px;
        max-height: calc(90vh - 90px);
    }
    
    .pdf-link {
        padding: 6px 10px;
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .circle-bullet {
        width: 6px;
        height: 6px;
        margin-right: 8px;
    }
}
