/* Year Four ePortfolio Styles */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    color: #222831;
}

header {
    background: linear-gradient(90deg, #4b9988 0%, #6c5b7b 100%);
    color: #fff;
    padding: 32px 0 24px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    position: relative;
}

.menu-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    cursor: pointer;
}

nav {
    margin-top: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 10px 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
}

.hidden {
    display: none;
}

h1, h2, h3, h4 {
    margin: 0 0 16px 0;
    font-weight: 600;
}

h2 {
    color: #355c7d;
    border-left: 4px solid #6c5b7b;
    padding-left: 12px;
    margin-top: 32px;
}

main {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 20px;
}

section {
    background: #fff;
    margin-bottom: 32px;
    padding: 28px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
    transition: box-shadow 0.2s;
}

section:hover {
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.13);
}

ul, ol {
    padding-left: 24px;
}

a {
    color: #6c5b7b;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #355c7d;
    text-decoration: underline;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reduced-size-1 {
    width: 50%;
    height: auto;
}

figure {
    margin: 0 0 32px 0; /* 32px space below each figure, adjust as needed */
    text-align: center;
}

figcaption {
    font-size: 0.95em;
    color: #888;
    margin-top: 8px;
}

footer {
    background: #222831;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
    font-size: 1em;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 8px rgba(44, 62, 80, 0.08);
}

#PPG_figure-2 img {
    width: 40%;
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#PPG_figure-3 img {
    width: 80%;      /* Increase as needed */
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#PPG_figure-5 img {
    width: 80%;      /* 60% larger than the default 50% */
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#PPG_figure-7 img {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#PPG_figure-9 img {
    width: 90%;      /* Takes up 90% of the container width */
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Dropdown submenu styles */
.has-submenu {
    position: relative;
}

.has-submenu > a:after {
    content: " ▼";
    font-size: 0.7em;
}

.submenu {
    display: none;
    position: static; /* Changed from absolute */
    left: auto;       /* Reset positioning */
    top: auto;        /* Reset positioning */
    background: transparent; /* Changed to transparent */
    padding: 0;
    margin: 10px 0 0 60px; /* Increased left margin for more indent */
    min-width: auto;  /* Auto width */
    border-radius: 4px; /* Subtle border radius */
    box-shadow: none; /* Remove shadow for inline appearance */
    z-index: auto;    /* Reset z-index */
}

.submenu li {
    margin: 5px 0; /* Smaller margins for compact look */
}

.submenu li a {
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    padding: 8px 12px; /* Smaller padding */
    display: block;
    text-align: center; /* Changed from left to center */
    font-size: 0.9em; /* Slightly smaller font */
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
    border-radius: 3px;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: block;
}

@media (max-width: 700px) {
    main {
        padding: 0 8px;
    }
    section {
        padding: 16px 8px;
    }
    .reduced-size-1 {
        width: 80%;
    }
    .submenu {
        position: static;
        box-shadow: none;
        min-width: 0;
        border-radius: 0;
        margin-left: 20px; /* Adjusted indent for mobile */
    }
}