/* MPD Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mpd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Page Title */
.mpd-title {
    text-align: center;
    color: #003366;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.mpd-title span {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.school-name {
    text-align: center;
    color: #0066cc;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Section Styles */
.mpd-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mpd-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.section-header {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    color: white;
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.section-header:hover {
    background: linear-gradient(135deg, #002244 0%, #0055aa 100%);
}

.section-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.section-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.section-content {
    padding: 30px;
    display: none;
}

.section-content.active {
    display: block;
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 15px 20px;
    vertical-align: top;
}

.info-table td:first-child {
    font-weight: 600;
    color: #003366;
    width: 40%;
}

.info-table td:last-child {
    color: #333;
}

.info-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Document List */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.document-item span {
    font-weight: 500;
    color: #333;
}

.doc-btn {
    background: #0066cc;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.doc-btn:hover {
    background: #0055aa;
    transform: scale(1.05);
}

/* Button Group */
.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    background: #003366;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Result Tables */
.table-title {
    color: #003366;
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-table thead {
    background: #003366;
    color: white;
}

.result-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.result-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.result-table tbody tr:nth-child(odd) {
    background: #f8f9fa;
}

.result-table tbody tr:hover {
    background: #e9ecef;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.staff-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    transition: all 0.3s ease;
}

.staff-card:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.staff-card strong {
    color: #003366;
    display: block;
    margin-bottom: 8px;
}

/* Infrastructure Grid */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.infra-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.infra-card:hover {
    border-color: #0066cc;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.infra-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.infra-card strong {
    display: block;
    color: #003366;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.infra-card p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mpd-title {
        font-size: 1.8rem;
    }

    .mpd-title span {
        font-size: 1rem;
    }

    .school-name {
        font-size: 1.5rem;
    }

    .section-header h3 {
        font-size: 1.1rem;
    }

    .section-content {
        padding: 20px;
    }

    .info-table td {
        display: block;
        width: 100%;
        padding: 10px;
    }

    .info-table td:first-child {
        background: #f0f0f0;
        font-weight: 700;
    }

    .document-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .result-table {
        font-size: 0.9rem;
    }

    .result-table th,
    .result-table td {
        padding: 10px 8px;
    }

    .staff-grid,
    .infra-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mpd-container {
        padding: 20px 10px;
    }

    .section-header {
        padding: 15px 20px;
    }

    .result-table {
        font-size: 0.8rem;
    }

    .result-table th,
    .result-table td {
        padding: 8px 5px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .section-header {
        background: #003366 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .mpd-section {
        page-break-inside: avoid;
    }
}
