/* education.css - Styling for Education Page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Base font size for rem calculations */
}

body {
    font-family: Arial, sans-serif;
    background-color: #e6f2ff;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Common elements */
h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* Responsive font size */
    margin-bottom: 0.625rem;
    border-bottom: 2px solid #4d94ff;
    padding-bottom: 0.625rem;
    display: inline-block;
}

h2 {
    color: #0066cc;
    margin-bottom: 0.9375rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #4d94ff;
    font-size: clamp(1.3rem, 4vw, 2rem);
}

h3 {
    color: #0066cc;
    margin-bottom: 0.625rem;
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
}

p {
    margin-bottom: 0.9375rem;
    line-height: 1.8;
}

a {
    color: #0066cc;
    text-decoration: none;
}

/* Page Specific Styles */
.page-header {
    border-bottom: 2px solid #4d94ff;
    color: #0066cc;
    text-align: center;
    padding: 1.5625rem 1.875rem;
    margin: 1.25rem auto;
    width: 100%;
}

.breadcrumb {
    font-size: 0.875rem;
    color: #0066cc;
}
/* Main Content Area */
.education-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Introduction Section */
.education-intro {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.education-intro h2 {
    color: #0066cc;
    margin-bottom: 15px;
    border-bottom: 2px solid #4d94ff;
    padding-bottom: 10px;
    display: inline-block;
}

.education-intro p {
    margin-bottom: 0;
    line-height: 1.8;
}

/* Statistics Section */
.education-statistics {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.education-statistics h2 {
    color: #0066cc;
    margin-bottom: 20px;
    border-bottom: 2px solid #4d94ff;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-statistics h2 i {
    color: #4d94ff;
    font-size: 24px;
}

.education-table {
    margin-bottom: 30px;
}

.education-table h3 {
    color: #0066cc;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid #4d94ff;
}

.table-description {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.data-table th {
    background-color: #4d94ff;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.data-table tr:nth-child(even) {
    background-color: #f5f7fa;
}

.data-table tr:hover {
    background-color: #eef5ff;
}

/* Schemes Section */
.education-schemes {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.education-schemes h2 {
    color: #0066cc;
    margin-bottom: 20px;
    border-bottom: 2px solid #4d94ff;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-schemes h2 i {
    color: #4d94ff;
    font-size: 24px;
}

.schemes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.scheme-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #4d94ff;
}

.scheme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background-color: #e6f2ff;
}

.scheme-icon {
    font-size: 24px;
    color: #4d94ff;
    flex-shrink: 0;
    padding-top: 5px;
}

.scheme-details {
    flex-grow: 1;
}

.scheme-details h3 {
    margin: 0 0 10px;
    color: #0066cc;
}

.scheme-details p {
    margin: 0 0 10px;
    color: #555;
    font-size: 14px;
}

.scheme-meta {
    margin-bottom: 15px;
}

.scheme-date {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.scheme-link {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 14px;
}

.scheme-link:hover {
    background-color: #004d99;
    transform: scale(1.05);
}

/* Documents Section */
.education-documents {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.education-documents h2 {
    color: #0066cc;
    margin-bottom: 20px;
    border-bottom: 2px solid #4d94ff;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-documents h2 i {
    color: #4d94ff;
    font-size: 24px;
}

.documents-list {
    display: grid;
    gap: 15px;
}

.document-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #4d94ff;
}

.document-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #e6f2ff;
}

.document-icon {
    font-size: 24px;
    color: #4d94ff;
    flex-shrink: 0;
}

.document-details {
    flex-grow: 1;
}

.document-details h3 {
    margin: 0 0 8px;
    color: #0066cc;
}

.document-details p {
    margin: 0 0 8px;
    color: #555;
    font-size: 14px;
}

.document-date {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.document-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.view-btn, .download-btn {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 14px;
}

.view-btn {
    background-color: #4d94ff;
    color: white;
}

.view-btn:hover {
    background-color: #0066cc;
    transform: scale(1.05);
}

.download-btn {
    background-color: #28a745;
    color: white;
}

.download-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.view-btn[aria-disabled="true"], 
.download-btn[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.5;
}

/* Contact Section */
.education-contact {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.education-contact h2 {
    color: #0066cc;
    margin-bottom: 20px;
    border-bottom: 2px solid #4d94ff;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-contact h2 i {
    color: #4d94ff;
    font-size: 24px;
}

.contact-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.contact-info, .contact-hours {
    padding: 15px;
}

.contact-info h3, .contact-hours h3 {
    color: #0066cc;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4d94ff;
    display: inline-block;
}

.contact-info p, .contact-hours p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i, .contact-hours i {
    color: #4d94ff;
    width: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .education-content {
        padding: 0 15px;
    }

    .schemes-grid {
        grid-template-columns: 1fr;
    }

    .scheme-card {
        flex-direction: column;
        text-align: center;
    }

    .document-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .document-actions {
        justify-content: center;
        width: 100%;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scheme-card, .document-item {
    animation: fadeInUp 0.5s ease-out;
}

/* Stagger animation for items */
.schemes-grid .scheme-card:nth-child(2) {
    animation-delay: 0.1s;
}

.schemes-grid .scheme-card:nth-child(3) {
    animation-delay: 0.2s;
}

.schemes-grid .scheme-card:nth-child(4) {
    animation-delay: 0.3s;
}

.documents-list .document-item:nth-child(2) {
    animation-delay: 0.1s;
}

.documents-list .document-item:nth-child(3) {
    animation-delay: 0.2s;
}

.documents-list .document-item:nth-child(4) {
    animation-delay: 0.3s;
}