/* =========================================================
   Downhome Mississippi Modern CSS (Full Replacement)
   Designed for Bootstrap 5 + PHP 5.6 legacy markup support
   ========================================================= */

/* Use HTTPS for fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

/* ---------------------------------------------------------
   Modern Reset (lighter than the old mega reset)
   --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  color: #1b1b1b;
  background: #111 url(../images/main/bg.jpg) no-repeat center center fixed;
  background-size: cover;
}

img { max-width: 100%; height: auto; display: inline-block; }
a { color: inherit; }
a:hover { text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------
   Theme Variables
   --------------------------------------------------------- */
:root{
  --dh-green:   #1C4406;
  --dh-green-2: #74A235;
  --dh-red:     #B1060E;

  --dh-text:    #1b1b1b;
  --dh-muted:   #6b7280;

  --dh-card:    rgba(255,255,255,.96);
  --dh-line:    rgba(0,0,0,.10);
  --dh-shadow:  0 10px 30px rgba(0,0,0,.18);

  --dh-radius:  16px;
  --dh-radius-sm: 12px;

  --dh-max:     1140px; /* overall site width */
  --dh-pad:     16px;
}

/* ---------------------------------------------------------
   Site Layout
   You had: #container as table with width 990px
   Now: centered responsive wrapper using max-width
   --------------------------------------------------------- */

/* If pages still wrap content with .confine_div, keep it centered */
.confine_div{
  max-width: var(--dh-max);
  margin: 0 auto;
  padding-left: var(--dh-pad);
  padding-right: var(--dh-pad);
  position: relative;
}

/* Main container (your legacy wrapper) */
#container{
  width: 100%;
  min-height: 100%;
  display: block;
}

/* Legacy rows */
#container > div{
  width: 100%;
  display: block;
}

/* Header/Footer spacer divs (kept) */
#header > div,
#footer > div{
  height: 0;
}

/* Your old white box was #content > div.
   Make it a modern card-like panel centered on the page. */
#content{
  width: 100%;
}

#content > div{
  max-width: var(--dh-max);
  margin: 0 auto;
  padding-left: var(--dh-pad);
  padding-right: var(--dh-pad);
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

/* If you used #content_wrapper inside, keep it responsive */
#content_wrapper{
  width: 100%;
}

/* ---------------------------------------------------------
   Modern Topbar + Header band helpers (used in your updated header.php)
   --------------------------------------------------------- */
.dh-topbar{
  background: rgba(0,0,0,.60);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.dh-headerband{
  background: rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.dh-logo{
  max-height: 64px;
}

.dh-adwrap{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ---------------------------------------------------------
   Bootstrap Navbar Styling (primary navigation)
   Works with .navbar + .dh-navbar
   --------------------------------------------------------- */
.dh-navbar{
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--dh-line);
  backdrop-filter: blur(10px);
}

.dh-navbar .navbar-brand{
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: .3px;
}

.dh-navbar .nav-link{
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #1b1b1b;
  border-radius: 10px;
  padding: .55rem .85rem;
}

.dh-navbar .nav-link:hover,
.dh-navbar .nav-link:focus{
  color: #fff;
  background: linear-gradient(90deg, var(--dh-green), var(--dh-green-2));
}

/* Make toggler icon visible on light background */
.navbar-toggler{
  border: 1px solid rgba(0,0,0,.18);
}
.navbar-toggler:focus{
  box-shadow: 0 0 0 .2rem rgba(28,68,6,.15);
}

/* ---------------------------------------------------------
   Fallback: Old navigation #page-header-nav
   If any pages still output it, make it responsive.
   --------------------------------------------------------- */
#page-header-nav{
  width: 100%;
  background: linear-gradient(90deg, var(--dh-green), var(--dh-green-2));
  border-bottom: 1px solid rgba(0,0,0,.18);
}

#page-header-nav ul{
  max-width: var(--dh-max);
  margin: 0 auto;
  padding: 0 var(--dh-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

#page-header-nav li{
  display: block;
}

#page-header-nav li a{
  display: block;
  padding: 10px 14px;
  line-height: 1;
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: background .2s ease, transform .1s ease;
}

#page-header-nav li:hover > a{
  background: rgba(255,255,255,.18);
}

a.activemenu:link,
a.activemenu:visited{
  background: rgba(0,0,0,.25) !important;
  color: #fff !important;
}

/* Mobile: nav items become full width */
@media (max-width: 575.98px){
  #page-header-nav ul{
    flex-direction: column;
    align-items: stretch;
  }
  #page-header-nav li a{
    width: 100%;
    text-align: center;
  }
}

/* Remove the old tooltip arrow rules (they break responsive menus) */
#page-header-nav ul:after,
#page-header-nav ul:before{
  content: none !important;
}

/* ---------------------------------------------------------
   Cards and Panels (general)
   --------------------------------------------------------- */
.dh-card{
  background: var(--dh-card);
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow);
  overflow: hidden;
}

.dh-card-header{
  background: linear-gradient(90deg, var(--dh-green), var(--dh-green-2));
  color: #fff;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------------------------------------------------------
   Sidebar (legacy classes still used)
   --------------------------------------------------------- */
.sidebar_header{
  margin: 0;
  padding: 12px 14px;
  background: linear-gradient(90deg, var(--dh-green), var(--dh-green-2));
  color: #fff;
  font-weight: 900;
  text-align: center;
  font-size: 18px;
  text-transform: uppercase;
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: .5px;
  border-radius: var(--dh-radius-sm) var(--dh-radius-sm) 0 0;
}

.sidebar_stats{
  padding: 12px 14px;
  font-size: 14px;
  color: var(--dh-text);
  text-align: center;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--dh-line);
  border-top: 0;
  border-radius: 0 0 var(--dh-radius-sm) var(--dh-radius-sm);
}

/* Stats lines used in your sidebar */
.statline{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,.10);
}
.statline:last-child{
  border-bottom: 0;
}

/* Sidebar RSS list */
.sidebar_news li{
  padding: 10px 0 0 0;
}
.sidebar_news a:link,
.sidebar_news a:visited{
  text-decoration: none;
  color: var(--dh-green);
  font-weight: 800;
  font-size: 14px;
}
.sidebar_news a:hover,
.sidebar_news a:active{
  color: #111;
}
.sidebar_news div{
  padding: 6px 0 10px 0;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

/* ---------------------------------------------------------
   Champs / Arcade blocks (legacy support)
   --------------------------------------------------------- */
.champs{
  font-size: 13px;
  text-align: center;
}
.champs a:link,
.champs a:visited{
  text-decoration: none;
  color: var(--dh-green);
  font-weight: 900;
}
.champs a:hover,
.champs a:active{
  color: #111;
}

.champsbox{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius-sm);
  padding: 10px 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  min-width: 180px;
}

.latestscores{
  font-size: 13px;
}
.latestscores a:link,
.latestscores a:visited{
  text-decoration: none;
  color: var(--dh-green);
  font-weight: 900;
}
.latestscores a:hover,
.latestscores a:active{
  color: #111;
}

/* ---------------------------------------------------------
   Latest posts styling (legacy class support)
   --------------------------------------------------------- */
.posts_holder{
  min-height: 80px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius-sm);
  padding: 12px 12px 14px 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.posts_title a:link,
.posts_title a:visited{
  text-decoration: none;
  color: #111;
  font-weight: 900;
  font-size: 18px;
}
.posts_title a:hover,
.posts_title a:active{
  color: var(--dh-green);
}

.posts_post{
  font-size: 14px;
  color: #333;
  padding: 6px 0 10px 0;
}

.posts_stats{
  font-size: 13px;
  color: var(--dh-muted);
  padding: 8px 0 0 0;
  border-top: 1px solid rgba(0,0,0,.10);
}
.posts_stats a:link,
.posts_stats a:visited{
  text-decoration: none;
  color: var(--dh-green);
  font-weight: 900;
}
.posts_stats a:hover,
.posts_stats a:active{
  color: #111;
}

/* Date box legacy */
.date-box{
  font-weight: 900;
  background: linear-gradient(180deg, var(--dh-green), #133104);
  width: 62px;
  border-radius: 12px;
  float: left;
  margin-right: 12px;
  margin-top: 0;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
.date-box p{
  margin: 0;
  padding: 8px 0 10px 0;
  font-size: 22px;
  text-align: center;
  color: #fff;
}
.date-box p span{
  font-size: 14px;
  color: rgba(255,255,255,.92);
  text-transform: uppercase;
  display: block;
  letter-spacing: .6px;
}

/* ---------------------------------------------------------
   User navigation legacy (IPBWI header bits)
   Keep it stable and readable if any old markup still exists
   --------------------------------------------------------- */
#user_navigation{
  color: rgba(255,255,255,.85);
  font-size: 12px;
}

#user_navigation a{
  color: #fff;
  text-decoration: none;
}

#user_navigation .ipsList_inline li{ margin: 0; }

#user_navigation.not_logged_in{
  height: auto;
  padding: 6px 0;
}

#user_navigation.logged_in{
  height: auto;
  padding: 6px 0;
}

/* Old register button */
#user_navigation #register_link{
  background: #16a34a;
  color: #fff;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
}

/* Notification badges */
.ipsHasNotifications{
  padding: 0 6px;
  height: 16px;
  line-height: 16px;
  background: #cf2020;
  color: #fff !important;
  font-size: 10px;
  font-weight: 900;
  border-radius: 6px;
  position: absolute;
  top: 4px;
  left: 3px;
}

/* ---------------------------------------------------------
   Pagination
   Your old pagination was UL based. Bootstrap now uses .pagination.
   Keep both looking decent.
   --------------------------------------------------------- */
.pagination{
  font-size: 13px;
}

.pagination ul li{
  display: inline-block;
  padding: 0 3px;
  color: var(--dh-muted);
  font-weight: 900;
}

.pagination ul li a:link,
.pagination ul li a:visited{
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.92);
  color: var(--dh-green);
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
}

.pagination ul li a:hover{
  border-color: var(--dh-green);
  background: rgba(28,68,6,.06);
}

/* ---------------------------------------------------------
   View more section
   --------------------------------------------------------- */
.viewmore{
  padding: 10px 0;
  text-align: center;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius-sm);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.viewmore a:link,
.viewmore a:visited{
  text-decoration: none;
  color: var(--dh-green);
  font-weight: 700;
  font-size: 13px;
}
.viewmore a:hover,
.viewmore a:active{
  color: #111;
}

/* ---------------------------------------------------------
   Footer "Designed By" ribbon
   --------------------------------------------------------- */
.designedby{
  float: right;
  padding: 90px 0 0 0;
  color: #fff;
  font-size: 13px;
  opacity: .75;
  font-weight: 900;
  text-shadow: 2px 4px 4px rgba(0,0,0,.45);
}
.designedby:hover{ opacity: 1; }
.designedby a:link,
.designedby a:visited{
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}
.designedby div{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 10px;
  width: 200px;
  text-align: center;
  border-radius: 12px 0 0 12px;
  backdrop-filter: blur(8px);
}

/* ---------------------------------------------------------
   Utility classes (legacy)
   --------------------------------------------------------- */
.right{ float: right; }
.left{ float: left; }

/* ---------------------------------------------------------
   Responsive improvements for legacy float layouts
   --------------------------------------------------------- */
@media (max-width: 991.98px){
  .right, .left{ float: none; }
  .date-box{ float: none; width: 100%; margin-right: 0; }
}

/* Add a little breathing room around the main content when using Bootstrap container */
@media (min-width: 576px){
  #content > div{
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Optional: soften the white panel look on very large screens */
@media (min-width: 1200px){
  #content > div{
    padding-left: 24px;
    padding-right: 24px;
  }
}


/* Sidebar Mississippi News: reduce title size + tighten spacing */
#newsscroller li h1{
  margin: 0;
  padding: 0;
  font-size: 14px;      /* was inheriting big heading sizing */
  line-height: 1.25;
  font-weight: 800;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

#newsscroller li h1 a{
  display: block;
  text-decoration: none;
  color: var(--dh-green);
}

#newsscroller li h1 a:hover{
  color: #111;
  text-decoration: underline;
}

#newsscroller li{
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

#newsscroller li div{
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #333;
}

/* Extra small screens: slightly smaller */
@media (max-width: 575.98px){
  #newsscroller li h1{ font-size: 13px; }
  #newsscroller li div{ font-size: 12px; }
}

/* =========================================================
   Bootstrap 5 Pagination – Downhome Mississippi Green
   Targets: .pagination .page-item .page-link + active state
   ========================================================= */

.pagination{
  font-size: 13px;
}

.pagination .page-item{
  margin: 0 3px;
}

/* Normal page links */
.pagination .page-link{
  border: 1px solid rgba(28,68,6,.35);
  background: rgba(255,255,255,.96);
  color: var(--dh-green);
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: none;
  transition: background .15s ease-in-out, color .15s ease-in-out, border-color .15s ease-in-out;
}

/* Hover */
.pagination .page-link:hover{
  background: linear-gradient(90deg, var(--dh-green), var(--dh-green-2));
  color: #fff;
  border-color: transparent;
}

/* Focus ring (Bootstrap adds one) */
.pagination .page-link:focus{
  box-shadow: 0 0 0 .2rem rgba(28,68,6,.18);
}

/* Active page */
.pagination .page-item.active .page-link{
  background: linear-gradient(90deg, var(--dh-green), var(--dh-green-2));
  color: #fff;
  border-color: transparent;
}

/* Disabled (if you ever output it) */
.pagination .page-item.disabled .page-link{
  opacity: .45;
  pointer-events: none;
  background: rgba(255,255,255,.85);
  border-color: rgba(0,0,0,.10);
  color: #777;
}

/* Optional: tighten spacing on very small screens */
@media (max-width: 575.98px){
  .pagination .page-link{
    padding: 6px 10px;
  }
}
