@charset "utf-8";
/* MASTER CSS: Resilient Life Hacks - Navigation at Top */

body {
    background-color: #F8F9FA; 
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

/* --- Navigation at the Absolute Top --- */
nav {
    font-size: 14px;
    background: #4A5D4E; /* Sage Green */
    margin: 0; /* Removed side margins to span the top */
    padding: 0;
    width: 100%;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li a {
    display: inline-block;
    color: #f2f2f2;
    padding: 12px 20px;
    text-decoration: none;
}

/* --- Logo placed below Navigation --- */
.logo {
    text-align: center;
    padding: 20px 0;
    background-color: #F8F9FA;
}

.logo img {
    width: auto;
    max-width: 500px;
    height: auto;
}

/* --- Main Content with Original Indentation --- */
main {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    /* This padding creates the horizontal indent for all content */
    padding: 20px 40px; 
}

/* --- Typography: Normal Weight & Steel Blue Links --- */
h2 {
    font-size: 24px;
    font-weight: normal; /* Restored to normal weight */
    color: #000000;
    margin: 25px 0 10px 0;
}

h3 {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin: 10px 0;
}

p {
    text-align: left;
    margin-bottom: 15px;
    /* Extra left padding if you want the text indented further than the headers */
    padding-left: 0; 
}

/* --- Typography: indent a para --- */
.tab { margin-left: 40px; }

/* Unified Link Styling: Steel Blue */
a {
    color: #3D5A80;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    /*color: #4A5D4E;*/
    color: lightblue;
}

/* --- Resource Grid --- */
.resource-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.resource-grid article {
    background: #ffffff;
    border: 1px solid #eee;
    border-left: 5px solid #3D5A80;
    padding: 15px;
    border-radius: 4px;
}

/* --- Footer --- */
.nav2 {
    font-size: 14px;
    background: #4A5D4E;
    margin: 40px 0 0 0;
    padding: 15px 0;
}

.nav2 p {
    text-align: center;
    color: #f2f2f2;
    margin: 0;
}

/* --- Back to Top Button --- */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #3D5A80;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    z-index: 99;
}

/* Responsive Grid */
@media (min-width: 768px) {
    .resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .resource-grid { grid-template-columns: repeat(3, 1fr); }
}

/* added to resources */
/* --- Resource Page Specifics --- */
.resource-list {
    margin-top: 30px;
}

.resource-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee; /* Clear separation without a table */
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-thumb {
    float: left;
    margin: 5px 15px 10px 0;
    width: 150px;
    height: auto;
}

.resource-thumb-border {
    float: left;
    margin: 5px 15px 10px 0;
    width: 125px;
    border: 1px solid gray;
    height: auto;
}


.cattrax-banner {
    display: block;
    margin: 15px 0;
    max-width: 360px;
    height: auto;
}

/* Clearfix for floating images */
.resource-item::after {
    content: "";
    display: table;
    clear: both;
}

/* center image */
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}