/* Base and Common Styles from gov.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    line-height: 1.6;
    color: #333;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
    border-bottom: 2px solid #4d94ff;
    padding-bottom: 10px;
    display: inline-block;
}

h2 {
    color: #0066cc;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4d94ff;
}

h3 {
    color: #0066cc;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

a {
    color: #0066cc;
    text-decoration: none;
}

/* Page Specific Styles */
.page-header {
    border-bottom: 2px solid #99ccff;
    color: #0066cc;
    text-align: center;
    padding: 25px 30px;
    margin: 20px auto;
    width: 100%;
}

.breadcrumb {
    font-size: 14px;
    color: #0066cc;
}

.gramsabha-content {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.gramsabha-intro {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
    margin-bottom: 30px;
}

.gramsabha-intro h2 {
    color: #0066cc;
    margin-bottom: 15px;
}

.gramsabha-functions {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
    margin-bottom: 30px;
}

.gramsabha-functions h2 {
    color: #0066cc;
    margin-bottom: 15px;
}

.functions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.function-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #e6f2ff;
    padding: 15px;
    border-radius: 6px;
    transition: transform 0.3s;
}

.function-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(77, 148, 255, 0.15);
}

.function-item i {
    font-size: 24px;
    color: #28a745;
    flex-shrink: 0;
    padding-top: 5px;
}

.function-item h3 {
    margin: 0;
    font-size: 18px;
}

.function-item p {
    margin: 0;
    color: #666;
}

.meeting-minutes-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
    margin-bottom: 30px;
}

.meeting-minutes-section h2 {
    color: #0066cc;
    margin-bottom: 15px;
}

.minutes-list {
    display: grid;
    gap: 20px;
}

.minutes-item {
    background: #e6f2ff;
    padding: 15px;
    border-left: 4px solid #4d94ff;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.minutes-item:hover {
    background-color: #b3d9ff;
}

.minutes-info h3 {
    margin: 0;
    font-size: 18px;
    color: #0066cc;
}

.minutes-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

.download-link {
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.download-link:hover {
    background-color: #004d99;
}

.forms-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
}

.forms-section h2 {
    color: #0066cc;
    margin-bottom: 15px;
}

.forms-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-item {
    background: #e6f2ff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.form-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(77, 148, 255, 0.15);
}

.form-item i {
    font-size: 40px;
    color: #4d94ff;
    margin-bottom: 10px;
}

.form-item h3 {
    margin-top: 0;
}

.form-download {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.form-download:hover {
    background-color: #218838;
}

.meeting-minutes {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
}

.meeting-minutes h2 {
    color: #0066cc;
    margin-bottom: 15px;
}

.minutes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.minute-item {
    background: #e6f2ff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.minute-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(77, 148, 255, 0.15);
}

.minute-icon i {
    font-size: 40px;
    color: #4d94ff;
    margin-bottom: 10px;
}

.minute-item h3 {
    margin-top: 0;
}

.minute-actions {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.minute-actions:hover {
    background-color: #218838;
}

.upcoming-meeting {
    background: white;
    border-radius: 8px;
    margin-top: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
}

.meeting-card {
    background: #b3d9ff;
    border-radius: 4px;
    padding: 5px;
}

.meeting-date {
    display: flex;
    padding: 10px;
}

.meeting-details {
    background: white;
    padding: 10px;
    border-radius: 3px;
}

.meeting-details i {
    font-size: 20px;
    color: #4d94ff;
    margin-bottom: 10px;
}

.agenda-btn {
    background: #28a745;
    border: none;
    height: 50px;
    width: 100%;
    border-radius: 4px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    transition: all 0.3s ease;
}

.meeting-actions {
    margin: 10px;
}

.reminder-btn {
    background: #0066cc;
    border: none;
    height: 50px;
    width: 100%;
    border-radius: 4px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.agenda-btn:hover, .reminder-btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.participation-guidelines {
    background: white;
    padding: 25px;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
    border-radius: 8px;
}

.important-forms {
    background: white;
    padding: 25px;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
    border-radius: 8px;
}

/* Additional styles for other sections */
.gramsabha-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gramsabha-intro {
    background-color: #e6f2ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.gramsabha-functions {
    margin-bottom: 30px;
}

.functions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.function-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: #e6f2ff;
    border-radius: 8px;
}

.function-item i {
    color: #28a745;
    font-size: 24px;
    margin-top: 5px;
}

.upcoming-meeting {
    margin-bottom: 30px;
}

.meeting-card {
    display: flex;
    background-color: #b3d9ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    gap: 20px;
}

.meeting-date {
    background-color: #004d99;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
}

.meeting-date .date {
    font-size: 24px;
    font-weight: bold;
}

.meeting-details {
    flex-grow: 1;
}

.meeting-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agenda-btn, .reminder-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.agenda-btn {
    background-color: #0066cc;
    color: white;
}

.reminder-btn {
    background-color: #4d94ff;
    color: white;
}

.participation-guidelines {
    margin-bottom: 30px;
}

.guidelines-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.guideline {
    background-color: #e6f2ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4d94ff;
}

.important-forms {
    margin-bottom: 30px;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.form-item {
    background-color: #e6f2ff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.form-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(77, 148, 255, 0.15);
}

.form-item i {
    font-size: 36px;
    color: #4d94ff;
    margin-bottom: 15px;
}

.form-download {
    display: inline-block;
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.form-download:hover {
    background-color: #218838;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #99ccff;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #666;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* All Gram Sabha Meetings Section */
.all-meetings {
    margin: 40px 0;
    padding: 20px;
    background-color: #e6f2ff;
    border-radius: 8px;
}

.all-meetings h2 {
    color: #0066cc;
    margin-bottom: 20px;
    border-bottom: 2px solid #4d94ff;
    padding-bottom: 10px;
}

.meetings-table-container {
    overflow-x: auto;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
    border-radius: 8px;
}

.meetings-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.meetings-table th {
    background-color: #0066cc;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.meetings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.meetings-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.meetings-table tr:hover {
    background-color: #eef5ff;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-upcoming {
    background-color: #28a745;
    color: white;
}

.status-past {
    background-color: #dc3545;
    color: white;
}

/* Additional styles for other sections */
.past-meeting {
    background-color: #b3d9ff;
    border-left: 4px solid #99ccff;
}

.meeting-status {
    background-color: #ffc107;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .functions-list,
    .forms-list,
    .minutes-list {
        grid-template-columns: 1fr;
    }

    .minutes-item,
    .minute-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .minute-actions {
        justify-content: center;
    }

    .meeting-card {
        flex-direction: column;
    }
    
    .meetings-table {
        font-size: 14px;
    }
    
    .meetings-table th,
    .meetings-table td {
        padding: 8px 10px;
    }
    
    .meetings-table-container {
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
}

@media (max-width: 480px) {
    h1, h2, h3 {
        text-align: center;
    }
    
    .agenda-btn, .reminder-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}