/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Font */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    color: #3b3b3b;
    background-color: #ffffff;
}

/* HEADER */
header {
    background-color: #e05555;
    min-height: 150px;
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* LOGO */
.logo {
    background-color: #c0392b;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    flex-shrink: 0;
}

.logo span {
    color: #ffffff;
    font-weight: bold;
    font-size: 16pt;
    font-family: Arial, Helvetica, sans-serif;
}

/* NAVIGATION */
nav {
    background-color: #f4a7a7;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* removes bullet points from the nav list */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: #3b3b3b;
    text-decoration: none;
    font-weight: bold;
    font-size: 11pt;
    font-family: Arial, Helvetica, sans-serif;
    padding: 5px 0;
}

/* underline appears on hover so user knows it's clickable */
nav ul li a:hover {
    text-decoration: underline;
}

/* focus style for keyboard navigation - accessibility requirement */
nav ul li a:focus {
    outline: 2px solid #3b3b3b;
    outline-offset: 3px;
}

/* MIDDLE SECTION */
.middle-section {
    background-color: #888888;
    padding: 15px;
    width: 100%;
}

/* CONTENT WRAPPER */
.content-wrapper {
    background-color: #ffffff;
    display: flex;
    align-items: flex-start;
    /* align-items: flex-start stops sidebar stretching to match main content height */
    gap: 15px;
    padding: 15px;
    width: 100%;
}

/* MAIN CONTENT AREA (LEFT)
   flex: 1 makes it responsive - grows and shrinks with the browser window */
main {
    flex: 1;
    /* flex: 1 means it takes up all available space left over after sidebar */
    background-color: #ffffff;
    min-width: 0;
}

/* CONTENT INNER (invisible containers) */
.content-inner {
    background-color: #ffffff;
    padding: 20px;
    min-height: 400px;
}

/* MAIN PAGE HEADING */
main h1 {
    font-size: 16pt;
    font-weight: bold;
    color: #3b3b3b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b3b3b;
    font-family: Arial, Helvetica, sans-serif;
}

/* NEWS SECTION HEADING */
main h2 {
    font-size: 13pt;
    font-weight: bold;
    color: #3b3b3b;
    margin-bottom: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

/* ARTICLE */
article {
    border-bottom: 1px solid #cccccc;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* removes border from the last article */
article:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* ARTICLE DATE STAMP
   shows the day number big and the month below it */
.article-date-stamp {
    float: left;
    text-align: center;
    background-color: #e05555;
    color: #ffffff;
    padding: 8px 12px;
    margin-right: 15px;
    margin-bottom: 5px;
    border-radius: 3px;
    min-width: 55px;
}

.article-day {
    display: block;
    font-size: 20pt;
    font-weight: bold;
    line-height: 1;
}

.article-month {
    display: block;
    font-size: 9pt;
    text-transform: uppercase;
}

/* ARTICLE TITLE
   h3 sits under h2 - correct heading hierarchy */
.article-title {
    font-size: 12pt;
    font-weight: bold;
    color: #3b3b3b;
    margin-bottom: 5px;
    font-family: Arial, Helvetica, sans-serif;
}

/* ARTICLE META (date and author) */
.article-meta {
    font-size: 9pt;
    color: #666666;
    margin-bottom: 8px;
}

/* email hyperlink on author name */
.article-meta a {
    color: #3b3b3b;
    text-decoration: underline;
}

.article-meta a:hover {
    color: #e05555;
}

/* ARTICLE CONTENT */
.article-content {
    font-size: 11pt;
    line-height: 1.6;
    color: #3b3b3b;
    clear: both;
    /* clear: both makes sure content sits below the date stamp float */
    margin-bottom: 10px;
}

/* READ MORE LINK */
.read-more {
    display: inline-block;
    font-size: 10pt;
    color: #e05555;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

.read-more:focus {
    outline: 2px solid #3b3b3b;
    outline-offset: 2px;
}

/* SIDEBAR (RIGHT) */
aside {
    width: 250px;
    /* fixed width - does not grow or shrink with the window */
    flex-shrink: 0;
    background-color: #ffffff;
}

/* SIDEBAR INNER (purple container) */
.sidebar-inner {
    background-color: #ffffff;
    padding: 15px;
    min-height: 400px;
}

/* sidebar headings - h2 used for each sidebar section */
aside h2 {
    font-size: 11pt;
    font-weight: bold;
    color: #3b3b3b;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #3b3b3b;
    font-family: Arial, Helvetica, sans-serif;
}

aside p {
    font-size: 10pt;
    color: #555555;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* FOOTER
   responsive - stretches full width of the browser window */
footer {
    background-color: #555555;
    height: 300px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    padding: 20px;
}

.footer-inner p {
    color: #ffffff;
    font-size: 10pt;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 8px;
}