/* ASTRA rebuild — clean base stylesheet.
   No Bootstrap / jQuery dependency. Mirrors the original visual structure
   (centred wrapper, logo+nav header, grey gradient content bands, sidebar).
   Edit freely — this is the base to iterate on. */

:root {
    --astra-blue: #00baf2;
    --ink: #333;
    --wrapper-max: 981px;
    --radius: 7px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    margin: 0;
    padding-bottom: 2em;
    background: #fff;
}

a {
    color: var(--astra-blue);
}

/* --- LAYOUT --- */

#wrapper {
    position: relative;
    margin: 0 auto;
    max-width: var(--wrapper-max);
    padding: 0 15px;
    z-index: 5;
}

/* --- HEADER --- */

.site-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1em;
    padding: 2.5% 0 2.2%;
}

.site-header ul {
    display: flex;
    gap: 0.4rem;
}

.site-header .logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    display: block;
    padding: 0 0.7rem;
}

.main-nav a {
    color: #000;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
    text-decoration: underline;
}

/* --- PANEL (content card) --- */

.panel {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 16px 1px rgba(50, 50, 52, 0.35);
    margin-bottom: 2em;
}

.panel-head {
    background: linear-gradient(to bottom, #b3b3b3 0%, #b0b0b0 100%);
    padding: 1px 0;
}

.panel-head h1 {
    color: #333;
    font-weight: 600;
    margin: 0;
    padding: 4rem 4rem 2rem;
}

.panel-body {
    background: linear-gradient(to bottom, #c6c6c6 0%, #ffffff 8rem);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 4rem 2rem;
}

.content-col {
    flex: 1 1 50%;
    min-width: 260px;
}

.article-content {
    font-size: 0.95rem;
    line-height: 1.7em;
}

.article-content h2 {
    font-size: 110%;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- HOME hero + copy --- */

.hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 0 16px 1px rgba(50, 50, 52, 0.35);
    margin-bottom: 1.5em;
}

.home-copy {
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.6em;
}

.home-copy small {
    color: #555;
    font-size: 80%;
}

/* --- SIDEBAR sub-nav --- */

.sidebar {
    flex: 1 1 28%;
    min-width: 200px;
    background: linear-gradient(to bottom, #d0d0d0 0%, #dddddd 21%, #f0f0f0 100%);
    border: 1px solid #b2b4b4;
    border-radius: var(--radius);
    padding: 5%;
    align-self: flex-start;
}

.sidebar h2 {
    border-bottom: 1px solid #000;
    font-size: 150%;
    margin: 0;
    padding: 0 2% 5%;
}

.sidebar ul {
    list-style: none;
    padding: 1em 0 0;
    margin: 0;
}

.sidebar li {
    font-size: 90%;
    line-height: 1.7em;
    padding-left: 20px;
    position: relative;
}

.sidebar li.active {
    font-weight: 700;
}

.sidebar li.active::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.65em;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent var(--astra-blue);
}

.sidebar li a {
    color: #222;
    text-decoration: none;
}

.sidebar li a:hover,
.sidebar li a:focus {
    text-decoration: underline;
}

/* --- FOOTER --- */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    align-items: flex-start;
    padding-top: 1em;
}

.site-footer .logo img {
    max-width: 100%;
    height: auto;
}

.site-footer nav ul {
    list-style: none;
    border-left: 1px solid #ccc;
    margin: 1em 0 0;
    padding: 0 0 0 1em;
}

.site-footer nav li {
    font-size: 85%;
}

.site-footer nav a {
    color: #222;
}

/* --- RESPONSIVE --- */

@media screen and (max-width: 767px) {
    .panel-body {
        flex-direction: column;
    }
    .panel-body > * {
        margin-left: 6%;
        margin-right: 6%;
    }
    .main-nav {
        text-align: left;
    }
}
