/* ==========================================================================
   Robert J. McCarter - Static Site Stylesheet
   rjm-static.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
   :root {
    /* Brand & Neutral Colors */
    --color-primary: #2240b3;
    --color-primary-dark: #162a75;
    --color-accent: #3b5998;
    --color-accent-hover: #0056b3;
    --color-text: #555;
    --color-text-dark: #0c1115;
    --color-text-muted: #718096;
    --color-bg: #ffffff;
  
    /* Navigation Theme Colors */
    --color-nav-bg: #eff0fb;
    --color-nav-hover-bg: #1d4ed8;
    --color-nav-hover-text: #bfdbfe;
    --color-nav-dropdown-bg: #d6d9fa;
    --color-nav-dropdown-hover: #ffffff;
  
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
  
    /* Layout */
    --container-max-width: 1080px;
  }
  
  /* --------------------------------------------------------------------------
     GLOBAL STYLES & TYPOGRAPHY
     -------------------------------------------------------------------------- */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.7;
  }
  
  p {
    margin-bottom: 24px;
  }
  
  /* Headings */
  h1,
  h2,
  h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
    color: var(--color-primary);
  }
  
  h1 {
    font-size: 35px;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 12px;
    margin-bottom: 25px;
  }
  
  h2 {
    font-size: 27px;
    margin-top: 15px;
    margin-bottom: 5px;
  }
  
  h3 {
    font-size: 22px;
    margin-top: 15px;
    margin-bottom: 3px;
  }
  
  /* Paragraph Links */
  p a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color var(--transition-normal);
  }
  
  p a:hover {
    color: var(--color-primary-dark);
  }
  
  /* --------------------------------------------------------------------------
     LAYOUT STRUCTURE
     -------------------------------------------------------------------------- */
  #wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    min-height: 100vh;
  }
  
  #content {
    margin: 0 15px;
    position: relative;
    flex: 1 0 auto;
  }
  
  .main-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
  }
  
  /* Grid Layout / Rows and Columns */
  .responsive-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* --------------------------------------------------------------------------
     NAVIGATION MENU
     -------------------------------------------------------------------------- */
  .gen-nav,
  #gen-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-nav-bg);
    min-height: 52px;
    border-radius: 8px;
    border: 0 solid #1e3a8a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    padding: 0 16px;
    margin-bottom: 0;
    position: relative;
    flex-wrap: nowrap;
    font-family: var(--font-sans);
  }
  
  .gen-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-right: auto;
    height: 36px;
  }
  
  .gen-logo-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
  }
  
  /* Author Branding inside Nav */
  .gen-author-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-right: auto;
    margin-left: 15px;
    font-family: var(--font-sans);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: .5px;
  }
  
  .gen-author-name a,
  .gen-author-name a:visited {
    color: #0101fb !important;
    text-decoration: none;
  }
  
  .gen-author-name a:hover {
    text-decoration: underline;
  }
  
  /* Hamburger Icon (Mobile Trigger) */
  .gen-hamburger,
  #gen-ham {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
  }
  
  .gen-hamburger span,
  #gen-ham span {
    display: block;
    background: var(--color-text-dark);
    transition: all var(--transition-slow);
    width: 22px;
    height: 3px;
    border-radius: 2px;
    margin: 2.5px 0;
  }
  
  /* Menu List Layout */
  .gen-nav>ul,
  #gen-menu {
    display: flex;
    justify-content: center;
    flex: 1;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .gen-nav>li,
  #gen-menu li {
    position: relative;
    padding: 0;
    padding-inline-start: 0 !important;
    margin-left: 0 !important;
  }
  
  .gen-nav>ul>li,
  #gen-menu>li {
    position: relative;
  }
  
  /* Navigation Links */
  .gen-nav>ul>li>a,
  #gen-menu>li>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    height: 52px;
    color: var(--color-text-dark);
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
    text-decoration: none;
    transition: background var(--transition-normal), color var(--transition-normal);
    white-space: nowrap;
  }
  
  .gen-nav>ul>li>a:hover,
  .gen-nav>ul>li:hover>a,
  #gen-menu>li>a:hover,
  #gen-menu>li:hover>a {
    background: var(--color-nav-hover-bg);
    color: var(--color-nav-hover-text) !important;
    border-radius: 4px;
    transition: background-color var(--transition-normal);
  }
  
  .gen-arrow {
    font-size: .7em;
    opacity: .8;
    vertical-align: middle;
  }
  
  /* Navigation Dropdown List */
  .gen-nav>ul>li>ul,
  #gen-menu li>ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-nav-dropdown-bg);
    min-width: 170px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    z-index: 1000;
    overflow: hidden;
    
    /* Drop list item dots and remove default browser left indent */
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
  }

  .gen-nav>ul>li:hover>ul,
  #gen-menu li:hover>ul {
    display: block;
  }
  
  .gen-nav>ul>li>ul>li>a,
  #gen-menu li>ul>li>a {
    display: block;
    padding: 10px 18px;
    color: var(--color-text-dark);
    font-size: 14px;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
  }
  
  .gen-nav>ul>li>ul>li>a:hover,
  #gen-menu li>ul>li>a:hover {
    background: var(--color-nav-hover-bg);
    color: var(--color-nav-dropdown-hover) !important;
  }
  
  .gen-nav>ul>li>ul>li:last-child,
  .gen-nav>ul>li>ul>li:last-child>a,
  #gen-menu li>ul>li:last-child,
  #gen-menu li>ul>li:last-child>a {
    border-radius: 0 0 6px 6px;
    overflow: hidden;
  }
  
  /* --------------------------------------------------------------------------
     FOOTER
     -------------------------------------------------------------------------- */
  .rjm-footer {
    background-color: var(--color-nav-bg);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, .18);
    margin: 0 !important;
    margin-top: auto !important;
    padding: 15px 16px !important;
    flex-shrink: 0;
    width: 100%;
  }
  
  .rjm-footer p {
    padding-top: 5px;
    padding-bottom: 0;
    font-size: 16px;
    margin: 0;
    text-align: center;
  }
  
  /* --------------------------------------------------------------------------
     CONTENT LIST STYLING
     -------------------------------------------------------------------------- */
  .main-container ul,
  .main-container ol {
    margin: 0 0 1rem 0 !important;
    padding-left: 1.75rem !important;
    list-style-position: outside !important;
    display: block !important;
  }
  
  .main-container li {
    margin-top: 0 !important;
    margin-bottom: .35rem !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    height: auto !important;
  }
  
  .main-container ul {
    list-style-type: disc !important;
  }
  
  .main-container ol {
    list-style-type: decimal !important;
  }
  
  .main-container li a,
  .main-container li a:link,
  .main-container li a:visited {
    font-size: 1rem !important;
    display: inline !important;
    color: var(--color-accent) !important;
    text-decoration: underline !important;
  }
  
  .main-container li a:hover {
    color: var(--color-accent-hover) !important;
  }
  
  /* --------------------------------------------------------------------------
     CONTACT FORM COMPONENT
     -------------------------------------------------------------------------- */
  .contact-form {
    max-width: 550px;
    margin: 2rem 0;
    font-family: var(--font-sans);
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
  }
  
  .form-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #333;
  }
  
  .form-input,
  .form-textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: var(--color-bg);
    box-sizing: border-box;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  }
  
  .form-textarea {
    resize: vertical;
  }
  
  .form-input:focus,
  .form-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
  }
  
  .form-submit {
    display: inline-block;
    background-color: #0201FF;
    color: var(--color-bg);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition-normal);
  }
  
  .form-submit:hover {
    background-color: #111;
  }
  
  .form-submit:active {
    transform: translateY(1px);
  }
  
  /* --------------------------------------------------------------------------
     BOOK PROMO & STORIES PORTAL COMPONENTS
     -------------------------------------------------------------------------- */
  .story-header h1 {
    margin-bottom: 0;
  }
  
  .promo-content-layout {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
    align-items: flex-start;
  }
  
  .promo-cover-wrapper {
    flex: 0 0 120px;
  }
  
  .promo-cover-art {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }
  
  .promo-text-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .book-blurb {
    margin: 0;
    line-height: 1.5;
    color: #4a4a4a;
  }
  
  .story-by {
    padding-top: 4px;
    font-size: 18px;
  }
  
  .publish-date {
    margin-top: 4px;
    font-size: 13px;
    color: #4e7fb4;
    padding-top: 5px;
    padding-bottom: 4px;
  }
  
  .story-by,
  .publish-date {
    margin: 0;
    border-left: 20px solid var(--color-nav-bg);
    padding-left: 5px;
  }
  
  /* Scrollable Stories Portal List */
  .stories-portal-component {
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: var(--color-bg);
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .portal-header {
    display: flex;
    align-items: center;
    background-color: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 1rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    box-sizing: border-box;
    height: 38px;
  }
  
  .portal-scroll-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 380px;
    overflow-y: auto !important;
    overflow-x: hidden;
  }
  
  .portal-item-row {
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 !important;
    margin: 0 !important;
    list-style-type: none !important;
    box-sizing: border-box;
    background-color: var(--color-bg);
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
  }
  
  .portal-item-row:last-child {
    border-bottom: none;
  }
  
  .hdr-title,
  .cell-title {
    flex: 0 0 55%;
    width: 55%;
    padding-left: 1rem;
  }
  
  .hdr-date,
  .cell-date {
    flex: 0 0 25%;
    width: 25%;
    padding-left: 1rem;
  }
  
  .hdr-status,
  .cell-status {
    flex: 0 0 20%;
    width: 20%;
    padding-left: 1rem;
  }
  
  .item-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: inherit;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    height: 100%;
  }
  
  .cell-date {
    color: var(--color-text-muted);
  }
  
  .story-portal-link {
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
    color: #2b6cb0;
  }
  
  .story-portal-link:hover {
    text-decoration: underline;
  }
  
  /* Portal Badges */
  .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1;
    font-family: inherit;
  }
  
  .badge.status-full {
    background-color: #c6f6d5 !important;
    color: #22543d !important;
  }
  
  .badge.status-excerpt {
    background-color: #feebc8 !important;
    color: #744210 !important;
  }
  
  .no-stories {
    display: block;
    text-align: center;
    color: #a0aec0;
    padding: 2rem !important;
    height: auto !important;
  }
  
  /* --------------------------------------------------------------------------
     PRAISE & TESTIMONIAL WIDGET
     -------------------------------------------------------------------------- */
  .praise-section {
    max-width: 1100px !important;
    margin: 2.5rem auto !important;
    padding: 2.5rem 2rem !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    font-family: var(--font-sans) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 4px 6px -4px rgba(0, 0, 0, 0.02) !important;
  }
  
  .praise-heading {
    text-align: center !important;
    margin: 0 0 1.5rem 0 !important;
    letter-spacing: -0.025em !important;
    text-transform: uppercase !important;
  }
  
  /* Individual Cards */
  html body .praise-section blockquote.testimonial-card {
    position: relative !important;
    display: block !important;
    background: var(--color-bg) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: 4px solid #2563eb !important;
    padding: 2rem !important;
    margin: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.02) !important;
  }
  
  html body .praise-section blockquote.featured-card {
    border-left-color: #10b981 !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Card Typography */
  .praise-section .testimonial-text {
    font-family: var(--font-sans) !important;
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    margin: 0 0 1.25rem 0 !important;
    padding: 0 !important;
  }
  
  .praise-section .featured-card .testimonial-text {
    font-size: 1.35rem !important;
    font-weight: 500 !important;
    color: #111827 !important;
  }
  
  .praise-section .testimonial-attribution {
    display: block !important;
    font-family: var(--font-sans) !important;
    font-style: normal !important;
    font-size: 0.95rem !important;
    color: #6b7280 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* --------------------------------------------------------------------------
   HISTORICAL READER COMMENTS SECTION
   -------------------------------------------------------------------------- */
.comment-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 3rem 0 2rem 0;
}

.historical-comments {
  margin-top: 2rem;
  margin-bottom: 3rem;
  font-family: var(--font-sans);
}

.historical-comments h3 {
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Specificity override chain to lift comments out of global list styling */
html body #wrapper #content .main-container ul.comment-thread-list,
html body #wrapper #content .main-container ol.comment-thread-list {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

html body #wrapper #content .main-container ol.comment-thread-list li.comment-node {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 1.25rem 1.5rem !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  list-style-type: none !important;
  display: block !important;
  height: auto !important;
  line-height: inherit !important;
}

.comment-metadata {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #4a5568;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: #2d3748;
}

.comment-timestamp {
  color: #718096;
  margin-left: 0.25rem;
}

.comment-body {
  font-size: 1rem;
  line-height: 1.6;
  color: #2d3748;
}

.comment-body p {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */
.alignleft {
  float: left;
  margin-right: 15px;
  margin-bottom: 10px;
}

.alignright {
  float: right;
  margin-left: 15px;
  margin-bottom: 10px;
}

/* ==========================================================================
   POST FEEDS, CARDS & UTILITY POST LAYOUTS
   ========================================================================== */
.post-content .alignright,
.post-content figure.alignright {
  float: right;
  margin: 0 0 1.5rem 1.5rem;
}

.post-content .alignleft,
.post-content figure.alignleft {
  float: left;
  margin: 0 1.5rem 1.5rem 0;
}

.post-content .aligncenter,
.post-content figure.aligncenter {
  display: block;
  margin: 1.5rem auto;
  text-align: center;
}

.post-content img {
  max-width: 100% !important;
  height: auto !important;
}

.post-content::after {
  content: "";
  display: table;
  clear: both;
}

.post-meta {
  font-size: 1rem;
  margin-top: 5px;
  color: grey;
}

.post-header-group {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.post-title {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.post-meta-panel {
  background-color: #f7fafc;
  border-left: 4px solid #cbd5e0;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.5;
}

.meta-line {
  margin-bottom: 0.35rem;
}

.meta-author {
  font-weight: 600;
  color: #2d3748;
}

.meta-taxonomies {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.meta-label {
  font-weight: 600;
  color: #718096;
  margin-right: 0.25rem;
}

.meta-separator {
  color: #e2e8f0;
  margin: 0 0.5rem;
  font-weight: 300;
}

.meta-link-item {
  color: #2b6cb0;
  text-decoration: none;
  font-weight: 500;
}

.meta-link-item:hover {
  text-decoration: underline;
  color: #1a4373;
}

/* ==========================================================================
   POST FEEDS, CARDS & UTILITY POST LAYOUTS
   ========================================================================== */

/* Post Cards Grid Structure */
.post-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 1rem;
}

.post-card-item {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important; /* Prevents columns from wrapping or squishing */
  gap: 2.5rem !important;
  align-items: center !important;
  padding-bottom: 0rem;
  border-bottom: 1px solid #edf2f7;
  width: 100% !important;
}

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

/* 1. Rigidly lock the cover image frame dimension requirements */
.card-image-wrapper {
  display: block !important;
  flex: 0 0 280px !important;       /* Strict allocation: Do not grow, do not shrink, stay 280px */
  width: 280px !important;
  min-width: 280px !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 140px !important;
  max-height: 100% !important;
  overflow: hidden !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

/* 2. Anchor box sizing compliance link */
.card-image-wrapper > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* 3. Direct image node rules targeting inside the card context */
.card-image-wrapper img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;     /* Crops and fills the 280x140 boundary box perfectly */
  object-position: center center !important;
  transition: transform 0.25s ease !important;
}

.card-image-wrapper img:hover {
  transform: scale(1.03) !important;
}

/* 4. Allow text column to scale out across the remaining width */
.card-content-wrapper {
  flex: 1 1 auto !important;
  min-width: 0 !important;          /* Keeps text nodes inside safe boundaries */
}

.card-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.card-title a {
  text-decoration: none;
}

.card-title a:hover {
  color: #2b6cb0;
}

.card-meta {
  font-size: 0.9rem;
  color: #647794;
  margin-bottom: 0.85rem;
  line-height: 1.4;
  background-color: #f7fafc;
  padding: 5px;
}

.card-read-more a {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  font-weight: 700;
  border-top: 1px solid grey;
  border-bottom: 1px solid grey;
  padding-top: 3px;
  padding-bottom: 3px;
}

.card-read-more a:hover {
  text-decoration:none;
  font-weight: 900;
}

/* --- Clean Pagination Navbar Layout Overrides --- */
.pagination-nav {
  margin-top: 0.5rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
}

/* Enhanced Specificity Chain to absolutely force inline horizontal row tracking */
html body #wrapper #content .main-container ul.pagination-list {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

html body #wrapper #content .main-container ul.pagination-list li.pagination-item {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  height: auto !important;
  line-height: normal !important;
}

.pagination-link {
  display: inline-block !important;
  padding: 0.5rem 1rem;
  background-color: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #2b6cb0 !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.9rem !important;
}

.pagination-link:not(.disabled):hover {
  background-color: #edf2f7;
  color: #1a4373 !important;
}

.pagination-link.disabled {
  color: #a0aec0 !important;
  background-color: #edf2f7;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.page-counter {
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
  display: inline-block;
}


/* --------------------------------------------------------------------------
   TWO-COLUMN SIDEBAR LAYOUT STYLES
   -------------------------------------------------------------------------- */
   .layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    width: 100%;
    align-items: flex-start;
  }
  
  .sidebar-main-content {
    min-width: 0; /* Prevents long text elements or images from blowing out column widths */
  }
  
  .sidebar-panel {
    width: 300px;
    margin-top: 1rem;
    box-sizing: border-box;
    /* Optional: You can add padding or border-left properties here if you want an explicit divider line */
  }
  
  /* Responsive adjustment for Mobile and Tablets */
  @media (max-width: 850px) {
    .layout-with-sidebar {
      grid-template-columns: 1fr; /* Drops into a single stream stack on smaller screens */
      gap: 2rem;
    }
    
    .sidebar-panel {
      width: 100%;
    }
  }





  /* ==========================================================================
   NAVIGATION LOGO / IMAGE HEIGHT ALIGNMENT FIX
   ========================================================================== */

/* 1. Target the flex div container inside your navbar */
.gen-nav div,
#gen-menu div {
  display: flex !important;
  align-items: center !important;
}

/* 2. Force the parent anchor link to scale to 100% height of the container */
.gen-nav div > a,
#gen-menu div > a {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

/* 3. Force the image to scale perfectly within that link footprint */
.gen-nav div a img,
#gen-menu div a img {
  height: 100% !important;
  width: auto !important;      /* Maintain correct natural aspect ratio */
  object-fit: cover !important; /* Prevent squishing or distortion */
  display: block !important;
}

/***********************************
 * COMMENT FORM
 ***********************************/

.comment-form-container
{
  margin-bottom: 1rem;;
}