body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif Malayalam', 'Roboto', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #80deea);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 10px;
}

.header-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-wrapper:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.logo-holder img {
    max-width: 60px;
    height: 60px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.title_head h1 {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    color: #00695c;
    margin: 0;
    text-align: center;
    flex: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #004d40;
    cursor: pointer;
    padding: 10px;
}

.nav-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(to right, #bbdefb, #90caf9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 10px;
}

.nav-wrapper:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.nav-link-wrapper2 a {
    padding: 8px 12px;
    text-decoration: none;
    color: #004d40;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.nav-link-wrapper2 a:hover {
    background-color: #26a69a;
    color: #ffffff;
}

.nav-wrapper3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(to right, #b2dfdb, #80cbc4);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 10px;
	margin-top: 10px;
}

.nav-wrapper3:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.nav-link-wrapper3 a {
    padding: 8px 12px;
    text-decoration: none;
    color: #53031e;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.nav-link-wrapper3 a:hover {
    background-color: #26a69a;
    color: #ffffff;
}

.nav-wrapper4 {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(to right, #b2dfdb, #80cbc4);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 10px;
	margin-top: 10px;
}

.nav-wrapper4:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.nav-link-wrapper4 a {
    padding: 8px 12px;
    text-decoration: none;
    color: #53031e;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.nav-link-wrapper4 a:hover {
    background-color: #26a69a;
    color: #ffffff;
}

.section-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.left-section {
    flex: 1 1 250px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.left-section:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.nav-link-wrapper a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #004d40;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.nav-link-wrapper a:hover {
    background-color: #26a69a;
    color: #ffffff;
}

.middle-section {
    flex: 3 1 600px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.middle-section h3 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #00695c;
}

.middle-section p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #37474f;
}

.middle-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.table-title {
	text-align: center;
	font-size: 18px;
	color: #333;
	margin: 20px 0 10px;
	font-weight: 600;
}
table {
	width: 100%;
	max-width: 800px;
	margin: 20px auto;
	border-collapse: collapse;
	background-color: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow: hidden;
}
th, td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}
th {
	background-color: #007bff;
	color: white;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 14px;
}
td {
	font-size: 14px;
	color: #333;
}
tr:nth-child(even) {
	background-color: #f8f9fa;
}
tr:hover {
	background-color: #e9ecef;
	transition: background-color 0.2s;
}
.error {
	color: #dc3545;
	text-align: center;
	font-weight: bold;
}
		
footer {
    background: linear-gradient(135deg, #00695c, #004d40);
    color: #ffffff;
    padding: 20px 10px;
    text-align: center;
    margin-top: 20px;
    border-radius: 12px 12px 0 0;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

footer ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(0.8rem, 2vw, 1rem);
    transition: color 0.3s;
}

footer ul li a:hover {
    color: #80deea;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;                    /* space between items */
    padding: 20px;
    justify-content: center;      /* center items if fewer than 2 in last row */
}

.gallery-item {
    flex: 0 0 calc(50% - 10px);   /* 50% width - half of gap */
    max-width: 600px;             /* optional: limit maximum size */
    box-sizing: border-box;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (max-width: 768px) {
	body:not(.home-page) .nav-wrapper {
            display: none;
        }
	
	body.home-page .nav-wrapper4 {
            display: flex !important;
        }
		
	.left-section {
        display: none;        
    }

	.title_head {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .section-container {
        flex-direction: column;
    }

    .nav-link-wrapper2 a {
        text-align: center;
        padding: 12px;
    }
	
	.logo-holder img {
		max-width: 50px;
	}

	.middle-section {
		width: 100%;
		margin-left: 0;
	}

	.section-container {
		display: block;
	}
	
	.header-wrapper {
                padding: 10px 15px; /* Reduced padding */
                min-height: auto;   /* Allow it to shrink */
                flex-direction: column; /* Stack logo and title vertically for better mobile fit */
                text-align: center;
    }


	.title_head h1 {
		font-size: 1.4em;   /* Smaller title text */
		margin: 10px 0 0 0;
	}
	
	table {
		max-width: 100%;
	}
	th, td {
		padding: 8px;
		font-size: 12px;
	}
	th {
		font-size: 12px;
	}
	.gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        height: 250px;
    }

}