<style>
/* General Table Styles */
.logo-custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 56px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: none;
}

.logo-custom-table td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
    text-align: center;
}

.logo-col-1,
.logo-col-3 {
    width: 15%;
}

.logo-col-2 {
    width: 70%;
}

.logo-custom-table img {
    max-width: 100%;
    height: auto;
}

/* Text Styling */
.logo-col-2 p {
    margin: 0.2rem 0;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

.main-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #006600;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

.sub-title {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #333;
}

/* Medium screens */
@media (max-width: 992px) {
    .main-title {
        font-size: clamp(1.3rem, 3vw, 2rem);
    }

    .sub-title {
        font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    }

    .logo-col-1,
    .logo-col-3 {
        width: 20%;
    }

    .logo-col-2 {
        width: 60%;
    }
}

/* Small screens - Stack items */
@media (max-width: 576px) {
    .logo-custom-table {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo-custom-table tbody,
    .logo-custom-table tr {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .logo-custom-table td {
        width: 100% !important;
        padding: 0.5rem;
        text-align: center !important;
    }

    .logo-col-2 {
        order: -1; /* Move title to top */
    }

    .main-title {
        font-size: 1.3rem;
        white-space: normal;
    }

    .sub-title {
        font-size: 1rem;
    }
}
</style>

<!-- Logo Section -->
<a href="index.php" style="display: block; text-decoration: none;">
    <table class="logo-custom-table">
        <tbody>
            <tr>
                <td class="logo-col-1">
                    <img src="images/Head_Logo1.png" alt="District Logo" loading="lazy">
                </td>
                <td class="logo-col-2">
                    <div class="main-title">DISTRICT SCHOOL'S INFORMATION SYSTEM</div>
                    <p class="sub-title"><strong>A Project of Elementary &amp; Secondary Education</strong></p>
                    <p class="sub-title">District Kotli AJ&amp;K</p>
                </td>
                <td class="logo-col-3">
                    <img src="images/Head_Logo2.png" alt="Government Logo" loading="lazy">
                </td>
            </tr>
        </tbody>
    </table>
</a>
