body p {
  font-family: system-ui, sans-serif !important;
  font-weight: 400;
  width: 100% !important;
  height: auto !important;
}

/* === Base Reset === */
* {
  box-sizing: border-box;
}

/* === Headings === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.lcp-title {
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.5rem;
}

.patrick-wilson-main-content p {
  font-family: system-ui, sans-serif !important;
  font-weight: 400;
  font-size: 18px !important;
}

/* === Links === */
a {
  color: #007BFF;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === Main Layout === */
.patrick-content-wrapper {
  display: flex !important;
  flex-direction: row !important;
  gap: 2px !important;
  padding-top: 2px !important;
  padding-bottom: 50px;
  margin: 2px auto 0 auto !important;
  width: 100% !important;
  max-width: 1280px !important;
  min-width: 320px !important;
  min-height: 600px !important;
}

/* === Fixed Left Sidebar === */
.patrick-wilson-left-sidebar {
  position: fixed;
  top: 60px; /* Adjust to match header height */
  left: 0;
  width: 20%;
  min-width: 200px;
  max-width: 300px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  background: #fff;
  padding: 2px 15px;
  border-right: 1px solid #e1e1e1;
  box-shadow: 2px 0px 8px rgba(0, 0, 0, 0.05);
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  z-index: 9;
}

.patrick-wilson-left-sidebar::-webkit-scrollbar {
  width: 8px;
}
.patrick-wilson-left-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.patrick-wilson-left-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* === Fixed Right Sidebar === */
.patrick-wilson-right-sidebar {
  position: fixed;
  top: 60px; /* Adjust to match header height */
  right: 0;
  width: 20%;
  min-width: 200px;
  max-width: 300px;
  height: calc(100vh - 60px);
  overflow-x: hidden !important;
  overflow-y: auto;
  background: #fff;
  padding: 2px 15px;
  box-shadow: -2px 0px 8px rgba(0, 0, 0, 0.05);
  z-index: 8;
}

/* === Main Content (adjusted for fixed sidebars) === */
.patrick-wilson-main-content {
  margin-left: 20%;
  margin-right: 20%;
  flex-grow: 1;
  font-size: 18px;
  min-width: 0;
  min-height: 600px;
  height: auto;
  padding: 2px;
}

.patrick-wilson-main-content h1 {
  font-size: 30px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 1rem;
}

.patrick-wilson-main-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  aspect-ratio: 3 / 2;
}

/* === Articles === */
.single-article,
.article {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.single-article h1,
.article h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.article-meta {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 1rem;
  display: block;
}

.article-content p,
.article p,
.patrick-wilson-main-content p {
  font-size: 1rem;
  margin: 1rem 0;
  word-wrap: break-word;
}

/* === Images === */
.article-image-wrapper {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3 / 2;
  background-color: #f4f4f4;
  overflow: hidden;
  margin: 0 auto 1rem auto;
}

.article-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* === Read More Button === */
.read-more {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #0d6efd;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
  margin-top: 1rem;
}
.read-more:hover {
  background-color: #0a58ca;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
}

/* === Pagination === */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.page-link,
.prev,
.next {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  background: #fff;
  color: #007BFF;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.page-link:hover,
.prev:hover,
.next:hover {
  background-color: #007BFF;
  color: #fff;
  border-color: #007BFF;
}
.page-link.active {
  background: #007BFF;
  color: #fff;
  border-color: #007BFF;
}

/* === LCP Element Handling === */
.pfine-lcp {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 auto 1.5rem auto;
}

/* === Responsive Design === */
@media screen and (max-width: 768px) {
  .patrick-content-wrapper {
    flex-direction: column !important;
    padding: 10px !important;
  }

  .patrick-wilson-left-sidebar,
  .patrick-wilson-main-content,
  .patrick-wilson-right-sidebar {
    width: 100%;
    overflow-x: hidden !important;
    min-width: unset;
    position: static !important;
    margin: 0 !important;
    padding: 5px !important;
    box-shadow: none;
    border: none;
    height: auto !important;
  }
}

@media screen and (max-width: 480px) {
  .read-more {
    width: 100%;
    text-align: center;
  }
}

/* === Ads === */
.ad-box {
  max-width: 250px;
}

/* --- Widget Placeholders --- */
.search-box,
.category-widget,
.newsletter-box,
.ad-box,
.banner-container,
.link-block {
  display: block;
  min-height: 60px;
}

.search-box { min-height: 60px; }
.category-widget { min-height: 200px; }
.newsletter-box { min-height: 250px; }
.ad-box { min-height: 90px; }
.banner-container { min-height: 90px; }
.link-block { min-height: 50px; }
