body {
    background-color: rgb(45, 71, 62);
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(26, 195, 251);
}

.index-header {
    text-align: center;
    width: 100%;
    border: none;
    background-color: none;
    margin: auto;
}

h1 {
    display: inline-block;
    text-align: center;
    font-size: 32pt;
    color: rgba(0, 0, 255, 0.589);
    background-color: rgb(35, 175, 126);
    padding: 10px 50px 5px;
    border: 4px darkgreen solid;
    border-radius: 12px;
}

.h1p {
    display: block;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: var(--muted);
    margin: 0.35rem 0 0 0; /* ensure it sits below the H1 */
}


nav {
    border: 4px rgb(6, 6, 113) outset;
    border-radius: 12px;
    background-color: rgb(6, 6, 113);
    padding: 4px;
    color: rgb(6, 189, 6);
    font-size: 14pt
}

nav a {
    display: inline-block;
    padding: 4px;
    text-decoration: none;
}

nav a:visited {
    color: inherit;
}

nav a:hover {
    color: blue;
    transform: scale(1.2);
    transition: transform 0.2 ease-in-out;
}

a {
    color: rgb(6, 189, 6);
}

/* these rules are to be adjusted as the specific class rules per div are written */
div {
    border-left: 4px darkgreen solid;
    border-bottom: 2px darkgreen solid;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 25px;
    /* width: 80%; */
}

.index-intro {
    text-align: center;
    font-size: 14pt;
    color: rgb(26, 195, 251);
    background-color: rgb(20, 87, 59);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Banner and layout improvements */
.site-banner {
    width: 100%;
    display: block;
    padding: 2.25rem 0;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.site-banner .banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.site-banner .banner-inner .h1p { margin-top: 0.5rem; }

.site-banner h1 {
    margin: 0;
    padding: 0;
    font-size: 3.1rem; /* large centered text */
    color: var(--text);
    background: none;
    border: none;
}

.site-banner::before {
    /* subtle animated gradient background */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10,40,30,0.6), rgba(26,195,251,0.06), rgba(10,10,30,0.6));
    filter: blur(30px);
    transform: scale(1.15);
    animation: banner-pan 12s linear infinite;
    z-index: 1;
}

@keyframes banner-pan {
    0% { transform: translateX(-6%) scale(1.15); }
    50% { transform: translateX(6%) scale(1.18); }
    100% { transform: translateX(-6%) scale(1.15); }
}

/* Clearer default div style for content sections */
div {
    border-left: none;
    border-bottom: none;
    padding: 12px;
    margin-top: 12px;
    margin-bottom: 18px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Left / right section helpers for layout */
.section-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
}

.section-left { grid-column: 1 / 2; }
.section-right { grid-column: 2 / 3; }

@media (max-width: 880px) {
    .section-row { grid-template-columns: 1fr; }
    .section-left, .section-right { grid-column: auto; }
    .site-banner h1 { font-size: 2.4rem; }
}

/* Theme variables and utility components */
:root {
    --bg: rgb(45, 71, 62);
    --text: rgb(26, 195, 251);
    --accent: rgba(26, 195, 251, 1);
    --card-bg: rgba(255,255,255,0.02);
    --card-border: rgba(255,255,255,0.06);
    --muted: rgba(200,230,240,0.9);
    --nav-glow: 0 10px 30px rgba(26,195,251,0.18);
}

/* Card grid (responsive) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.card {
    background: linear-gradient(180deg, var(--card-bg), rgba(0,0,0,0.06));
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    color: inherit;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45), var(--nav-glow);
}

.card h3 { margin-top: 0; font-size: 1.1rem; color: var(--text); }
.card p { margin: 0.5rem 0; color: var(--muted); font-size: 0.95rem; }

/* Adaptive container: stretches to available width while keeping internal padding */
.adaptive {
    background: rgba(255,255,255,0.02);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    width: 100%;
    box-sizing: border-box;
}

/* Nav buttons with glow and accessible focus */
.nav-button {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(26,195,251,0.12);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(26,195,251,0.18);
}

.nav-button:focus,
.nav-button:focus-visible {
    outline: 3px solid rgba(26,195,251,0.12);
    box-shadow: var(--nav-glow);
}

/* Utility small button styles */
.btn { cursor: pointer; }
.btn-primary {
    background: linear-gradient(180deg, var(--accent), rgba(0,150,200,0.9));
    color: #042029;
    border: none;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
}

/* Minor responsive tweaks */
@media (max-width: 480px) {
    .nav-button { padding: 0.35rem 0.5rem; font-size: 0.95rem; }
    h1 { font-size: 24pt; }
}

/* Helpful utility classes */
.muted { color: var(--muted); }
.accent { color: var(--accent); }