/* Style the image */
.inline-image {
    float: right;             /* Float the image to the right */
    max-height: 400px;       /* Limit the image height */
    max-width: 200px;        /* Limit the image width */
    margin-left: 15px;       /* Space between the text and the image */
    margin-top: 0;           /* Optional: Adjust top margin if needed */
    border-radius: 60%;      /* Optional: Makes the image circular */
    vertical-align: middle;   /* Align the image with the middle of the text */
}

/* Ensure the text wraps around the image correctly */
p {
    overflow: hidden;         /* Clear the float */
    margin: 0;               /* Reset default margin to avoid extra spacing */
}

/* Contact Section Styling */
h2 {
    font-size: 36px;
    color: #003366; /* UB Blue color */
    margin-top: 20px;
    margin-bottom: 10px;
}

ul {
    margin-top: 0;
}

ul li {
    font-size: 18px;
    margin-top: 0;
}

ul li a {
    color: #005bbb; /* Link color */
    text-decoration: none;
    font-weight: bold;
}

ul li a:hover {
    text-decoration: underline;
    color: #003366; /* Darker shade on hover */
}

/* General Layout */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    line-height: 1.6;
}

h1 {
    color: #00274c;
    font-size: 36px;
}

a {
    color: #005bbb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    margin-top: 30px;
}

/* For screens that are less than or equal to 768px (tablets and mobile phones) */
@media (max-width: 768px) {
    .inline-image {
        float: none;         /* Remove float on small screens */
        display: block;      /* Make it a block element */
        margin: 10px auto;   /* Center the image */
        max-width: 120px;    /* Reduce image size */
        height: auto;        /* Maintain aspect ratio */
    }

    h1, h2 {
        text-align: center;  /* Center-align the headings */
    }

    p {
        font-size: 16px;     /* Reduce font size for readability */
    }

    ul {
        padding-left: 20px;  /* Add some padding to the list */
    }
}

/* Additional styling for very small screens (mobile phones) */
@media (max-width: 480px) {
    p {
        font-size: 14px;     /* Reduce font size further */
    }

    .inline-image {
        max-width: 100px;    /* Make image smaller on very small screens */
        height: auto;        /* Maintain aspect ratio */
    }

    ul {
        padding-left: 15px;  /* Adjust list padding for smaller screens */
    }
}
