* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
  overflow-y: scroll; /* Forces vertical scrollbar only */
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
}

a:link, 
a:visited {
    color: #1a365d;
    text-decoration: none;
}

a:hover {
    color: #3182ce;
    text-decoration: underline;
}

header {
    background-color: #1a365d;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
/* Base navigation styling */
.nav-menu, .submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Dropdown container */
.has-submenu {
    position: relative;
}

/* Hidden by default */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    z-index: 1000;
    padding: 0.5rem 0;
}

.submenu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333333;
    text-decoration: none;
    white-space: nowrap;
}

.submenu li a:hover,
.submenu li a.active {
    background-color: #f1f1f1;
    color: #0056b3;
}

/* Show submenu when hovering over parent item */
.has-submenu:hover > .submenu {
    display: block;
}

/* Arrow indicator */
.arrow {
    font-size: 0.7em;
    margin-left: 4px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo a:link,
.logo a:visited {
    color: #ffffff !important; 
    text-decoration: none;
}

.logo a:hover {
    color: #cbd5e1 !important;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a:link,
nav a:visited {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

nav a:hover {
    color: #cbd5e1 !important;
    text-decoration: none;
}

nav a.active:link,
nav a.active:visited,
nav a.active:hover {
    background-color: #ffffff !important;
    color: #1a365d !important;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: default;
}

main {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    margin-bottom: 1rem;
    color: #1a365d;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto;
    border-radius: 4px;
}

.cta-container {
    text-align: center; 
    margin-top: 1rem;
}

.listen-link:link,
.listen-link:visited {
    color: #1a365d !important;
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.listen-link:hover {
    color: #3182ce !important;
    text-decoration: underline;
}

footer {
    background-color: #f1f5f9;
    color: #64748b;
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    nav ul {
        gap: 1rem;
    }
}
