/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: linear-gradient(to right, #f7f9fc, #e3edf7);
    padding: 20px;
    color: #222;
}

/* ===== Headings ===== */
h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #0a3d62;
}

h2 {
    margin-bottom: 10px;
    color: #1e3799;
    border-left: 5px solid #1e3799;
    padding-left: 10px;
}

/* ===== Image ===== */
img {
    display: block;
    margin: 10px auto;
    border-radius: 50%;
    border: 4px solid #1e3799;
    width: 120px;
    max-width: 100%;
    height: auto;
}

/* ===== Sections ===== */
div {
    background: #ffffff;
    padding: 15px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #1e3799;
    color: white;
    text-align: left;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    word-wrap: break-word;
}

tr:nth-child(even) {
    background-color: #f2f6ff;
}

/* ===== HR ===== */
hr {
    border: none;
    height: 2px;
    background: #1e3799;
    margin: 20px auto;
    max-width: 800px;
}

/* ===== Links ===== */
a {
    color: #1e3799;
    text-decoration: none;
    font-weight: bold;
    word-break: break-all;
}

a:hover {
    text-decoration: underline;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }

    div {
        padding: 12px;
        margin: 15px auto;
    }

    /* ===== CONTACT SECTION (First Table) ===== */
    div:nth-of-type(1) table tr {
        display: block;
        margin-bottom: 12px;
        background: #f9fbff;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    div:nth-of-type(1) table td {
        display: block;
        border: none;
        padding: 4px 0;
    }

    div:nth-of-type(1) table td:first-child {
        font-weight: bold;
        color: #1e3799;
    }

    /* ===== OTHER TABLES ===== */
    div:not(:nth-of-type(1)) table,
    div:not(:nth-of-type(1)) thead,
    div:not(:nth-of-type(1)) tbody,
    div:not(:nth-of-type(1)) th,
    div:not(:nth-of-type(1)) td,
    div:not(:nth-of-type(1)) tr {
        display: block;
        width: 100%;
    }

    div:not(:nth-of-type(1)) thead,
    div:not(:nth-of-type(1)) th {
        display: none;
    }

    div:not(:nth-of-type(1)) tr {
        margin-bottom: 12px;
        background: #f9fbff;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    div:not(:nth-of-type(1)) td {
        border: none;
        padding: 6px 0;
        font-size: 14px;
    }
}
