/*
Theme Name: StarterKitHub
Author: Bree Peterson
Version: 1.0
*/

/* Paste ALL your CSS below */

body, p {
	font-family: 'Open Sans', sans-serif;
}
a {color:#1A5B92}
.sidebar {
    width:100%;
    max-width:300px;
    display:flex;
    flex-direction:column;
    gap:25px;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Only Recent Posts sticky */
.sticky-widget {
    top: 20px;
}

/* Widget titles */
.sidebar .widget h3 {
    font-size:18px;
    margin-bottom:12px;
    border-bottom:2px solid #CC5500;
    padding-bottom:5px;
    color:#222;
}

/* Lists for Recent Posts & Categories */
.sidebar ul {
    list-style:none;
    padding-left:0;
    margin:0;
}
.sidebar ul li {
    margin-bottom:8px;
}
.sidebar ul li a {
    color:#CC5500;
    text-decoration:none;
    transition:0.3s;
}
.sidebar ul li a:hover {
    text-decoration:underline;
}

/* Top 8 Essentials Cards */
.sidebar .top8-sidebar .sidebar-card {
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom:12px;
    background:#fff;
    padding:8px;
    border-radius:8px;
    box-shadow:0 3px 8px rgba(0,0,0,0.08);
    transition:0.3s;
}
.sidebar .top8-sidebar .sidebar-card img {
    width:50px;
    height:50px;
    object-fit:cover;
    border-radius:6px;
}
.sidebar .top8-sidebar .sidebar-card a {
    font-weight:bold;
    color:#CC5500;
    text-decoration:none;
}
.sidebar .top8-sidebar .sidebar-card:hover {
    transform:translateX(4px);
}

/* Button styling */
.sidebar .button {
    display:inline-block;
    width:100%;
    padding:10px 0;
    background:#CC5500;
    color:white;
    font-weight:bold;
    text-align:center;
    border-radius:6px;
    margin-top:10px;
    text-decoration:none;
    transition:0.3s;
}
.sidebar .button:hover {
    background:#e68a00;
}

/* Start Here CTA */
.sidebar .start-here {
    text-align:center;
    background:#fffae6;
    padding:15px;
    border-left:4px solid #CC5500;
    border-radius:8px;
    box-shadow:0 3px 8px rgba(0,0,0,0.08);
}
.sidebar .start-here h3 {
    color:#222;
}
.sidebar .start-here p {
    font-size:14px;
    color:#555;
    margin:10px 0;
}

/* Mobile: disable sticky & stack sidebar */
@media(max-width:900px){
    .sticky-widget {
        top: auto;
    }
    .sidebar {
        max-width:100%;
        margin-top:20px;
    }
}


/* Sticky Recent Posts widget */
.sticky-widget {
    top: 20px;  /* distance from top */
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Heading style */
.sticky-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #CC5500;
    border-bottom: 2px solid #CC5500;
    padding-bottom: 5px;
}

/* List style */
.sticky-widget ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sticky-widget ul li {
    margin-bottom: 20px;
}

.sticky-widget ul li:last-child {
    margin-bottom: 0;
}

.sticky-widget ul li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.2s;
}

.sticky-widget ul li a:hover {
    color: #CC5500;
}



/* Mobile fallback */
@media(max-width:900px){
    .sticky-widget {
        top: auto;
        margin-bottom: 20px;
    }
}

.widget {margin-bottom:20px}
.post-header {padding:0}


/* ==========================
   General Typography & Layout
========================== */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #222;
    background: #f5f5f5;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: 1.2em; /* Adds space between paragraphs */
}

/* ==========================
   Grid Layout for Posts
========================== */
.homepage-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.homepage-posts .card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.homepage-posts .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.homepage-posts .card img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.homepage-posts .title {
    font-weight: 600;
    margin: 10px 0 5px;
    font-size: 1.1rem;
}

.homepage-posts .description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.view-link {
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
}

.view-link:hover {
    text-decoration: underline;
}

/* ==========================
   Top 8 Scrollable Section
========================== */
.top5 .top5-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-top: 20px;
}

.top5 .top5-row .card {
    flex: 0 0 180px; /* fixed width */
    min-width: 180px;
    position: relative;
}

.top5 .badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f39c12;
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 10;
}

.top5 .card img {
    height: 150px;
    object-fit: contain;
    border-radius: 6px;
}

.top5 .card .title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 8px;
}

/* ==========================
   Sidebar Sticky Recent Posts
========================== */
.widget_recent_entries {
    top: 100px; /* distance from top when scrolling */
}

.widget_recent_entries h2 {
    top: 100px;
    background: #fff; /* keeps the header readable */
    padding: 8px 0;
    z-index: 5;
}

/* Fix hover for multi-line links */
.widget_recent_entries li a {
    display: inline-block;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 768px) {
    .homepage-posts {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 500px) {
    nav {
        font-size: 0.85rem; /* smaller nav links */
    }
}

/* ==========================
   Global Typography & Layout
========================== */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #222;
    background: #f5f5f5;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1.2em; /* spacing between paragraphs */
}

/* ==========================
   Blog Cards
========================== */
#latest-posts .card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
	margin-bottom: 20px;

}

#latest-posts .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

#latest-posts .card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

#latest-posts .card h2 a {
    color: #222;
    text-decoration: none;
    font-size: 1.2rem;
}

#latest-posts .card h2 a:hover {
    color: #f39c12;
}

#latest-posts .card p {
    color: #555;
    font-size: 0.95rem;
}

#latest-posts .card a {
    color: #f39c12;
    font-weight: 600;
    text-decoration: none;
}

#latest-posts .card a:hover {
    text-decoration: underline;
}

/* ==========================
   Sidebar
========================== */
aside {
    flex: 1;
    min-width: 250px;
}

.widget {
    background: #fff;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Sticky Recent Posts */
.widget_recent_entries {
    top: 100px;
}

.widget_recent_entries h2 {
    top: 100px;
    background: #fff;
    padding: 8px 0;
    z-index: 5;
}

/* Fix multi-line link hover */
.widget_recent_entries li a {
    display: inline-block;
}

/* ==========================
   Pagination
========================== */
.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #e68a00;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.pagination a:hover {
    background: #e68a00;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 992px) {
    main#main-content {
        flex-direction: column;
    }

    aside {
        margin-top: 30px;
    }
}
#main-content {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

#latest-posts { flex: 3; }
aside { flex: 1; min-width: 250px; }
/* Styled Search Widget */
.search-widget {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-widget h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ff9900;
}

.search-widget .search-form {
    display: flex;
    gap: 5px;
}

.search-widget input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-widget input[type="search"]:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 5px rgba(255,153,0,0.5);
}

.search-widget button {
    background: #ff9900;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-widget button:hover {
    background: #e68a00;
}
/* Categories Widget */
.categories-widget {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.categories-widget h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ff9900;
}

.categories-widget ul {
    list-style: none;
    padding-left: 0;
}

.categories-widget li {
    margin-bottom: 8px;
}

.categories-widget li a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

.categories-widget li a:hover {
    color: #ff9900;
}
/* Recent Posts Sticky */
.recent-posts-widget {
    top: 20px; /* distance from top */
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.recent-posts-widget h2 {
    font-size: 16px;
    color: #ff9900;
    margin-bottom: 12px;
}

.recent-posts-widget ul {
    list-style: none;
    padding-left: 0;
}

.recent-posts-widget li {
    margin-bottom: 8px;
}

.recent-posts-widget li a {
    color: #222;
    text-decoration: none;
    line-height: 1.4;
}

.recent-posts-widget li a:hover {
    color: #ff9900;
}
.start-here {
  background: #ffffff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.start-here h2 {
  margin-bottom: 10px;
}

.start-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.start-links a {
  background: #f0f0f0;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  color: #222;
  transition: 0.2s;
  font-weight:600;
}

.start-links a:hover {
  background: #e0e0e0;
}
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('https://myrecoveryblog.com/wp-content/uploads/2026/04/recovery-blog-hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  border-radius: 12px;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px #000;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.6;
  text-shadow: 2px 2px 8px #000;
}

.hero-button {
  display: inline-block;
  background: #ffffff;
  color: #222;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

.hero-button:hover {
  background: #e68a00;
}
.book-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 5px;
  background-color: #4CAF50; /* forest green */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  font-weight: bold;
  margin-bottom:40px;
}

.book-button:hover {
  background-color: #45a049; /* slightly darker green on hover */
}
@media (max-width: 1200px) {
  .hero {
      margin-top:0;
	  border-radius:0;
  }
}
.post-content {
	font-family: 'Open Sans', sans-serif;
}
.blog-post {
	margin-bottom:40px;
}
.blog-post {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-bottom: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Image container */
.post-thumb {
  display: block;
  overflow: hidden;
  margin-bottom:20px;
}

.post-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-post:hover .post-thumb img {
  transform: scale(1.05);
}

/* Content */
.post-content {
  padding: 16px 18px 20px;
}

.post-content h2 {
  margin-bottom: 10px;
}

.post-content h2 a {
  text-decoration: none;
  color: #222;
  transition: 0.2s ease;
}

.post-content h2 a:hover {
  color: #CC5500; /* subtle green vibe for recovery theme */
	text-decoration:underline;
}


.blog-post {
	padding:20px;
}

.post-content{
	padding:0;
}

.category-header {
    margin-bottom: 30px;
    text-align: center;
}

.category-description {
    font-size: 1.1rem;
    color: #555;
    margin-top: 10px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px; /* space between posts */
}

.post-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    align-items: flex-start;
	background-color:#fff;
}

.post-image img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.post-content {
    flex: 1;
}

.post-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.post-excerpt {
    margin-bottom: 15px;
    color: #666;
}

.button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2d9cdb;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.button:hover {
    background-color: #2383c3;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .post-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .post-image img {
        width: 100%;
        max-width: 400px;
    }
}
h2 {font-size:normal}


.blog-header {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
  padding: 0 15px;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.blog-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Category Pills */
.category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.category-list a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eee;
  color: #333;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.category-list a:hover {
  background: #2383c3;
  color: #fff;
}

/* Dropdown */
.category-dropdown {
  display: none;
}

.category-dropdown select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

/* Responsive: switch to dropdown on small screens */
@media (max-width: 600px) {
  .category-list {
    display: none;
  }

  .category-dropdown {
    display: block;
  }
}
/* Logo image */
.site-logo img {
    max-height: 100px;
    width: auto;
	padding-bottom:0;
	margin-bottom:0;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 700px) {

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #111;
        margin-top: 10px;
        border-radius: 8px;
        padding: 10px 0;
    }

    .main-nav a {
        display: block;
        padding: 12px;
        text-align: center;
    }

    .main-nav.active {
        display: flex;
    }
}
.site-header{padding:0px 20px}
.site-logo img {
    display: block;
}