body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #1a3d6b; /* Dark navy blue text */
}

header {
    color: #1a3d6b; /* Dark navy blue text */
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 0 auto; /* Centers the header */
    background-color: #f4f4f4; /* Light grey background for sidebar */
    border-radius: 8px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: black; /* Black logo */
    width: 100%;
    display: flex;
    align-items: center; /* Vertically center the text with the image */
    justify-content: space-between; /* Push image left, text right */
    width: 100%;
    
}

.text-with-image {
            float: left; /* Makes the image float to the left */
            margin-right: 15px; /* Adds space between image and text */
            margin-bottom: 15px; /* Adds space below the image */
            width: 500px; /* Sets the image width (adjust as needed) */
        }

.center-wrapper {
  display: flex;
  justify-content: center; /* Horizontal */
  align-items: center;     /* Vertical */
  height: 300px;           /* Or 100vh for full screen */
}

nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;

}

nav a {
    color: #1a3d6b; /* Dark navy blue text */
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s, text-decoration 0.3s;
}

/* Hover effect */
nav a:hover {
    color: #2980b9; /* Lighter blue on hover */
    text-decoration: underline; /* Underline effect on hover */
}

.main-content {
    width: 75%;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 40px 0;
}

.content-left {
    width: 75%;
}

.content-right {
    width: 25%;
    padding: 20px;
    background-color: #f4f4f4; /* Light grey background for sidebar */
    border-radius: 8px;
}

.main-content h1 {
    font-size: 48px;
    color: #1a3d6b;
}

.main-content p {
    font-size: 20px;
    color: #7f8c8d; /* Grey text for the paragraph */
}

.sidebar h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2980b9; /* Lighter blue for sidebar headings */
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #1a3d6b;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #2980b9; /* Lighter blue on hover */
}

/* Center image */
.center-image {
    text-align: center;
    margin: 20px 0; /* Adds space above and below the image */
}

.center-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: gives image rounded corners */
}

img.shadow {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px; /* Optional: rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


img.shadow2 {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px; /* Optional: rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.shadow2:hover {
    transform: scale(1.02); /* Slight zoom */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {

    /* Prevent horizontal scrolling */
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    /* Header layout */
    header {
        width: 95%;
        flex-direction: column;
        align-items: center; /* center all header content */
        gap: 12px;
    }

    /* Logo styling */
    .logo {
        flex-direction: column;
        align-items: center; /* center logo on mobile */
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .logo img {
        width: auto;           /* keep natural width */
        max-width: 100px;      /* prevents stretching */
        height: auto;          /* preserve aspect ratio */
        display: block;
    }

    /* Navigation styling */
    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    nav a {
        font-size: 16px;
    }

    /* Main content layout */
    .main-content {
        flex-direction: column;
        width: 95%;
        padding: 20px 15px; /* horizontal padding to avoid edges */
        box-sizing: border-box;
    }

    .content-left,
    .content-right {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    /* Right sidebar adjustments */
    .content-right {
        margin-top: 20px;
        padding-right: 20px; /* extra right padding for breathing space */
    }

    /* Images responsive */
    img,
    img.shadow,
    img.shadow2 {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        transform: none !important; /* stop hover scaling on touch */
    }

    /* Prevent iframes from breaking layout */
    iframe {
        max-width: 100%;
    }

    /* Typography scaling */
    .main-content h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .main-content p {
        font-size: 18px;
    }
}

