/* Reset and basic styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Header styles */
#SiteHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #333;
    color: white;
    z-index: 1000;
    overflow: visible;
    box-sizing: border-box;
}

/* Header container holds logo and text */
#SiteHeader .header-container {
    display: flex;
    align-items: center;
    padding: 20px;
    height: 256px;
    transition: height 0.3s ease, padding 0.3s ease;
    box-sizing: border-box;
}

/* Logo */
#SiteLogo {
    height: 128px;
    margin-right: 20px;
    transition: height 0.3s ease;
}

/* Title and tagline */
#SiteTitle {
    margin: 0;
    font-size: 3rem;
    transition: font-size 0.3s ease;
}

#SiteTagline {
    margin: 0;
    font-size: 1.25rem;
    transition: font-size 0.3s ease;
}

/* Shrinked header */
#SiteHeader.shrink .header-container {
    height: 80px;
    padding: 5px 10px;
}

#SiteHeader.shrink #SiteLogo {
    height: 64px;
}

#SiteHeader.shrink #SiteTitle {
    font-size: 1.5rem;
}

#SiteHeader.shrink #SiteTagline {
    font-size: 0.8rem;
}

/* Navigation inside header */
#SiteNav {
    position: absolute; /* inside header */
    bottom: 0;
    left: 0;
    width: 100%;
    background: #555;
    z-index: 1010;
    transition: top 0.3s ease;
}

/* Nav list styles */
#SiteNav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#SiteNav ul li {
    position: relative;
}

#SiteNav ul li a {
    display: block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

#SiteNav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #444;
    flex-direction: column;
}

#SiteNav ul li:hover ul {
    display: block;
}

#SiteNav ul li ul li a {
    padding: 10px 20px;
}

/* Body padding to avoid content under fixed header */
body {
    padding-top: 336px; /* 256px header + 80px nav approx */
    transition: padding-top 0.3s ease;
}

#SiteHeader.shrink ~ body {
    padding-top: 160px; /* Adjust if necessary */
}
