/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f8ff;
    color: #333;
}

/* Header and Navigation */
header {
    background-color: #bb5380;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-top: 1rem;
}

header img {
    border-radius: 50%;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

/* Navigation Links */
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

/* Active Link Style */
nav ul li a.active {
    background-color: #4169e1; /* Different background for active page */
    color: #fff;
}

/* Hover and Focus Effect for Navigation Links */
nav ul li a:hover,
nav ul li a:focus {
    background-color: #4169e1; /* Change background on hover and focus */
    color: #fff; /* Ensure the text is clearly visible */
    outline: none; /* Remove default outline, you can add custom styles if necessary */
}

/* Focused Link Styling for Keyboard Navigation */
nav ul li a:focus {
    outline: 2px solid #fff; /* Provide a visible focus outline (optional) */
    outline-offset: 4px;
}

/* Skip to Main Content Link */
.skip-to-content {
    position: absolute;
    top: -9999px; /* Initially hide the link off-screen */
    left: -9999px; /
    background-color: #bb5380;
    color: #fff;
    padding: 0.8rem 1.2rem;
    font-weight: bold;
    text-decoration: none;
    z-index: 10;
    border-radius: 5px;
}

.skip-to-content:focus {
    top: 10px; /* Move the link into view when focused */
    left: 10px;
    outline: 2px dashed #fff;
    outline-offset: 4px;
    background-color: #4169e1;
}
.skip-to-content:hover{
    outline: 2px dashed #fff;
    outline-offset: 4px;
    background-color: #4169e1;
}

/* Main Content */
main {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

main img {
    width: 100%;
    border: 5px solid #333;
    /* 5px border for all images */
    border-radius: 5px;
}

main p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

main a {
    color: #4682b4;
    text-decoration: none;
    font-weight: bold;
}

main a:hover {
    text-decoration: underline;
}


/* Updated CSS for the image grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2-column grid layout */
    gap: 1rem; /* Space between the images */
    max-width: 100%; /* Ensure grid doesn't stretch too wide */
    padding: 1rem;
    max-width: 90%; /* Limit the width of the grid container */

}

.image-grid img {
    width: 100%; /* Make sure images fill their grid cell */
    border: 5px solid #333; /* 5px border around the images */
    border-radius: 5px; /* Optional: round the corners */
}

/* Responsive Design: Adjust the grid to 1 column on smaller screens */
@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: 1fr; /* Switch to a single column */
    }
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: #87cefa;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 1rem;
        grid-template-columns: 1fr;
        /* Switch to a single column on smaller screens */
    }
}