body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
}

header {
  background-color: #a8d5a2;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 15px;
  border-top: 3px solid #d2e8c4;
  height: 75px;
  position: relative;
  z-index: 10;
  box-shadow: 0 3px 6px rgba(0,0,0,0.35);
}


.logo img {
    height: 75px;
}

nav {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes first child up, last child down */
    align-items: flex-end;
    height: 100%; /* fill header height */
}

.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.menu li a {
    text-decoration: none;
    color: #333;
    background-color: #f7f7a1;
    padding: 6px 12px;
    border-radius: 8px; /* curved corners */
    border: 1px solid #ccc;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu li a:hover {
    background-color: #e0e07a; /* subtle hover change */
    color: #006600;
}

/* site search box styling */
.site-search {
    margin-top: 15px;
    display: flex;
    gap: 6px;
}

.site-search input[type="text"] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.site-search button {
    padding: 6px 12px;
    border: none;
    background-color: #006600;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.site-search button:hover {
    background-color: #004d00;
}

main {
    display: flex;
    flex-direction: row;
    align-items: stretch;   /* make children stretch to equal height */
    min-height: calc(100vh - 100px); /* adjust based on header+footer height */
}

.content {
    flex: 1;
    padding: 0 20px 20px 20px;
    background-color: #ffffff;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    background-color: #f9f9f9;
    border: 1px solid #d0e6c0;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-card h2 {
    margin: 0 0 10px;
}

.article-card a {
    color: #006600;
    text-decoration: none;
}

.breadcrumb {
    font-size: 14px;
    margin: 10px 0 20px;
    color: #555;
}

.breadcrumb a {
    color: #006600;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-body img.article-image {
    float: left;
    margin: 0 15px 10px 0;
    max-width: 200px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.next-articles {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #d0e6c0;
}

.next-articles h3 {
    margin-bottom: 10px;
    color: #006600;
}

.next-articles ul {
    list-style: none;
    padding: 0;
}

.next-articles li {
    margin-bottom: 6px;
}

.next-articles a {
    color: #006600;
    text-decoration: underline;
}

.next-articles a:hover {
    color: #333;
    text-decoration: none;
}

.article-card {
    position: relative; /* allow absolute positioning inside */
}

.article-label {
    position: absolute;
    bottom: 8px;   /* anchor to bottom */
    right: 10px;   /* anchor to right */
    background-color: #f7f7a1;
    color: #333;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}


.sidebar {
    width: 335px;
    flex-shrink: 0;
    background-color: #D8ECD7;
    padding: 15px;
    box-sizing: border-box;
    border-left: 5px solid #d2e8c4;
}

.ad-placeholder {
    background-color: #f7f7a1;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px dashed #999;
}

.extra-links {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;   /* light background to distinguish */
    border: 1px solid #d0e6c0;
    border-radius: 6px;
}

.extra-links p {
    margin: 0 0 10px;
    font-weight: bold;
    color: #006600;
}

.extra-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.extra-links li {
    margin-bottom: 9px;
}

.extra-links a {
    color: #006600;
    text-decoration: underline;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.extra-links a:hover {
    color: #333;
    text-decoration: none;
}

footer {
    background-color: #a8d5a2;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

.banner-image {
    display: block;
    margin: 20px auto;
    max-width: 600px;
    width: 100%;
    height: auto;
}

.article-inline-image {
    float: left;
    margin: 10px 15px 10px 0;
    max-width: 300px;
    height: auto;
}



/* responsive adjustments */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background-color: #a8d5a2;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 10px;
    }

    #menu-toggle:checked + .menu-icon + .menu {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-top: 20px;
    }

    /* search box full width under header in mobile */
    .site-search {
        width: 100%;
        margin-top: 10px;
        flex-direction: row;
        padding: 0 10px;
    }

    .site-search input[type="text"] {
        flex: 1;
    }
    .banner-image {
        width: 98%;
        max-width: 98%;
    }
    .article-inline-image {
        float: none;
        display: block;
        margin: 15px auto;
        width: 98%;
        max-width: 98%;
        height: auto;
    }
}