.document-bank-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap:20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

article#post-1821 .entry-title, article#post-1823 .entry-title {
    display: none;
}



.document-category-card {
    position: relative;
    padding:22px 15px;
    border-radius: 0;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    text-decoration: none !important;
    border-radius: 14px 14px 0 0;
    /* border: 1px solid #000; */
}

.document-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #fff !important;
}

.document-category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.document-category-card h2 {
    font-size: 25px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    color: white;
    line-height: 1.2;
    min-height:60px;
}

.document-icon {
    width: 104px;
    height: 66px;
    margin: 11px 0;
    /* border-radius: 50%; */
    /* background: red; */
    border: 1px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 30px;
    /* background: #000; */
    border-radius: 12px 12px 0 0;
    border-top: none;
}

.document-icon svg {
    width: 76px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    position: relative;
    top: -23px;
    left: 0;
}

.document-icon.custom-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.document-icon.custom-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}


/*.document-count {
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
    opacity: 0.9;
}*/

.document-count {
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
    opacity: 1;
    position: absolute;
    bottom: 0;
    height: 36px;
    background: #000;
    width: 97.1%;
    padding: 9px 4px 1px;
    left: 0;
}


.document-upload-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.document-upload-form-container h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}



@media (max-width:1299px) {
	
	.document-bank-container {
		grid-template-columns: repeat(3, 1fr);		
	}
	
	.document-count {
		 width: 97.7%;
		
	}
	
}




@media (max-width: 968px) {
    .document-bank-container {
        grid-template-columns: repeat(2, 1fr);
    }
	

}

@media (max-width:767px) {
	
	.document-count {
    	width: 97.5%;
	}
	
	.document-category-card{
		overflow:hidden;
	}
}


@media (max-width: 640px) {
    .document-bank-container {
        grid-template-columns: 1fr;
    }
	.document-count {
    	width: 98.6%;
	}
}



.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.submit-button {
    background :#0073aa !important;
    width: 100%;
    padding: 14px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background :#0073aa !important;
    width: 100%;
    padding: 14px !important;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#upload-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

#upload-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#upload-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.document-bank-login-message,
.document-bank-error {
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
}

.document-bank-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.document-bank-login-message a,
.document-bank-error a {
    color: inherit;
    font-weight: 600;
}

.no-documents-message {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
}

/* Category Documents Page Styles */
.category-documents-page {
    max-width: 1200px;
    margin: 0 auto;
}

.category-header {
    padding: 40px 30px;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.category-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 20px 0 10px 0;
    letter-spacing: 2px;
    color: white;
}

.category-count {
    font-size: 18px;
    opacity: 0.9;
    margin: 10px 0 0 0;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    position: absolute;
    left: 30px;
    top: 30px;
    text-decoration:none !important;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: white;
}

.documents-list-container {
    padding: 0 30px 40px 30px;
}

.documents-table-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.documents-table thead {
    background-color: #f8f9fa;
}

.documents-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.documents-table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

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

.documents-table tbody tr:hover {
    background-color: #f8f9fa;
}

.documents-table td {
    padding: 20px;
    vertical-align: top;
    color: #495057;
}

.doc-name-col {
    width: 25%;
    font-weight: 600;
}

.doc-desc-col {
    width: 40%;
}

.doc-desc-col p {
    margin: 0;
    line-height: 1.6;
}

.doc-date-col {
    width: 15%;
    color: #6c757d;
    font-size: 14px;
}

.doc-action-col {
    width: 20%;
    text-align: center;
}

.file-name {
    color: #6c757d;
    font-weight: normal;
    font-size: 12px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.2s;
}

.download-btn:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.download-icon {
    font-size: 16px;
}

.no-file {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

.no-documents {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-documents p {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
}


/* css start 12-11-25 */


.documents-list-container h2.subcategory-title{
    font-weight: normal;
    font-size: 22px;
}
.documents-list-container h3.subcategory-title{
    color: #2e6da4;
    font-size: 25px;
    margin: 28px 0 22px;
}

.documents-list-container .documents-table .download-btn{
    text-decoration:none;
    font-weight:none;
}

.documents-list-container .documents-table{
    margin-bottom:0px;
}

/* css end 12-11-25 */


@media (max-width: 968px) {
    .category-header h1 {
        font-size: 32px;
    }
    
    .back-button {
        position: static;
        margin-bottom: 20px;
    }
    
    .documents-table-wrapper {
        overflow-x: auto;
    }
    
    .documents-table {
        min-width: 800px;
    }
}

@media (max-width: 640px) {
    .category-header {
        padding: 30px 20px;
    }
    
    .category-header h1 {
        font-size: 28px;
    }
    
    .documents-list-container {
        padding: 0 20px 30px 20px;
    }
    
    .documents-table th,
    .documents-table td {
        padding: 15px;
    }
}
