/* ==================================================== 
Pronghorn Land — custom.css Purpose: site overrides + blog polish in a controlled, readable order. TABLE OF CONTENTS 
1) Header + Navigation 
2) Global Typography + Color Safety 
3) Buttons + Focus Ring Hygiene 
4) Home Page Sections (Hero, Sliver, Video, Parallax) 
5) Components (Tabs, Social Icons, Testimonials) 
6) Blog (Layout, Breadcrumb/Header, Sidebar, Tags, Typography) 
==================================================== */

/* ==================================================== 
1) Header + Navigation 
==================================================== */
html.sticky-header-active #header .header-body {
  box-shadow: none !important;
}

.header-dark .header-body {
  background-color: #212529 !important;
}

.header-dark .nav-link {
  color: #fff !important;
}

.header-dark .nav-link.active,
.header-dark .nav-link:hover {
  color: var(--primary) !important;
}

/* Logo image sizing */
.header-logo-img {
  width: 200px !important;
  height: 46px !important;
  object-fit: contain;
}

/* Mobile nav overrides (below 991px) */
@media (max-width: 991px) {
  #header .header-nav-main:not(.header-nav-main-mobile-dark) nav > ul > li > a {
    color: #fff !important;
  }
  #header
    .header-nav-main:not(.header-nav-main-mobile-dark)
    nav
    > ul
    > li
    > a.active,
  #header
    .header-nav-main:not(.header-nav-main-mobile-dark)
    nav
    > ul
    > li
    > a:hover {
    color: var(--primary) !important;
  }
}

/* ==================================================== 
2) Global Typography + Color Safety 
==================================================== */
/* body {
  color: #212529 !important;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    "Noto Sans",
    "Liberation Sans",
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji"; 
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
} */

/* Porto/Bootstrap sometimes forces low-contrast grays */
p,
li,
small,
.text-muted,
.text-color-grey,
.text-color-grey-lighten,
.text-color-default,
.text-color-dark {
  color: #212529 !important;
}

/* Ensure sidebar/widget blocks don't keep the low-contrast gray */
#sidebar p,
#sidebar li,
aside p,
aside li,
.widget p,
.widget li {
  color: #212529 !important;
}

/* ==================================================== 
3) Buttons + Focus Ring Hygiene 
==================================================== */

/* Kill focus rings / box shadows across Bootstrap/Porto button variants */
.btn:focus,
.btn:focus-visible,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-check:focus + .btn,
.btn-check:focus-visible + .btn,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus {
  outline: 0 !important;
  box-shadow: none !important;
}

a.btn:focus,
a.btn:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}

/* Ensure primary/outline-primary match brand green */
.btn-primary {
  border-color: var(--primary) !important;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary.active,
.btn-primary:disabled,
.btn-primary.disabled {
  border-color: var(--primary) !important;
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  color: #fff !important;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
  box-shadow: none !important;
}

/* ==================================================== 
4) Home Page Sections (Hero, Sliver, Video, Parallax) 
==================================================== */

/* Home hero */
#home {
  height: 100vh;
}

#home .position-absolute {
  max-width: 80%;
}

/* Sliver banner height adjustments */
.section-height-3 {
  min-height: 500px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .section-height-3 {
    min-height: 200px;
  }
}

.section-height-3 .overlay::before {
  display: none !important;
}

.home-stats-banner {
  min-height: 660px;
}

.home-stats-banner .container {
  min-height: 660px;
  display: flex;
  align-items: center;
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.home-stats-banner .counters {
  align-items: flex-start;
  width: 100%;
  row-gap: 2rem;
}

.home-stats-banner .counters i {
  font-size: 66px !important;
  margin-bottom: 1rem !important;
  opacity: 0.72;
}

.home-stats-banner .counter strong {
  margin-bottom: 0.35rem;
}

.home-stats-banner .counter label {
  letter-spacing: 0.04em;
}

@media (max-width: 991px) {
  .home-stats-banner {
    min-height: auto;
  }

  .home-stats-banner .container {
    min-height: 520px;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}

@media (max-width: 575px) {
  .home-stats-banner .container {
    min-height: auto;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .home-stats-banner .counters i {
    font-size: 48px !important;
    margin-bottom: 0.75rem !important;
  }
}

/* Video background (shared) */
.video-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  pointer-events: none;
}

.video-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Video overlay */
.video-overlay-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
  pointer-events: none;
}

/* Team card images should display at a consistent height with cover cropping */
.team-card-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 767px) {
  .team-card-img {
    height: 260px;
    object-position: center top;
  }
}

.team-popup-content p {
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.team-popup-content p:last-child {
  margin-bottom: 0;
}

/* Allow in-page links to #our-team to land below the sticky header */
#our-team {
  scroll-margin-top: 120px;
}

/* Parallax: remove hover darkening */
.parallax:hover::after {
  background-color: transparent !important;
}

.parallax .overlay {
  pointer-events: none !important;
}

.parallax .container {
  padding-top: 150px !important;
  padding-bottom: 150px !important;
}

/* ==================================================== 
5) Components (Tabs, Social Icons, Testimonials) 
==================================================== */

/* Social icons hover micro-lift */
.social-icons a {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Vertical tabs (.custom-tabs-lg) */
.custom-tabs-lg {
  border-radius: 0 !important;
  overflow: hidden !important;
  border: none !important;
}

.custom-tabs-lg .nav-item .nav-link {
  padding: 35px 25px !important;
  font-size: 0.9rem !important;
  font-weight: normal !important;
  color: #000 !important;
  background-color: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 0 !important;
  margin-bottom: -1px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.custom-tabs-lg .nav-item:last-child {
  border-bottom: 1px solid #dee2e6 !important;
}

.custom-tabs-lg .nav-item:last-child .nav-link {
  border-bottom: 1px solid #dee2e6 !important;
}

.custom-tabs-lg .nav-link.active {
  background-color: #ffffff !important;
  font-weight: bold !important;
  color: #000 !important;
  border-right-color: #ffffff !important;
  border-left: 4px solid var(--primary) !important;
  padding-left: 14px !important;
  margin-left: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.custom-tabs-lg .nav-link:not(.active) {
  border-left: 4px solid #dee2e6 !important;
  position: relative !important;
  z-index: 1 !important;
}

.custom-tabs-lg .nav-link:hover {
  cursor: pointer !important;
}

.tab-content {
  border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.04);
  background-color: #fff;
  border: 1px solid #eee;
  border-top: 0;
  padding: 15px;
}

.tabs.tabs-vertical.tabs-left {
  border-top: none !important;
}

/* Testimonials carousel flex alignment */
#testimonials-carousel.owl-carousel .owl-stage {
  display: flex !important;
}

#testimonials-carousel.owl-carousel .owl-item {
  display: flex !important;
  height: auto !important;
}

#testimonials-carousel.owl-carousel .owl-item > div {
  flex: 1 !important;
}

/* ==================================================== 
6) Blog (Layout, Breadcrumb/Header, Sidebar, Tags, Typography) 
==================================================== */

/* ---------- Blog page: footer separation ---------- */
.page-blog #footer > :first-child {
  border-top: 1px solid var(--grey-300);
}

/* ---------- Shared footer ---------- */
#footer .footer-branding {
  gap: 0.75rem 1.5rem;
}

#footer .footer-branding p {
  margin-bottom: 0;
}

#footer .footer-veteran-logo {
  flex: 0 0 auto;
  height: auto;
  max-width: 24vw;
  width: 58px;
}

/* ---------- Blog listing: sticky footer (blog.html only) ---------- */
body.blog-layout,
body.blog-layout > .body {
  min-height: 100vh;
}

body.blog-layout > .body {
  display: flex;
  flex-direction: column;
}

body.blog-layout > .body > .main {
  flex: 1;
}

/* ---------- Blog post: share icons (scoped to .post-share) ---------- */
.post-share .social-icons li a {
  color: #fff !important;
}

.post-share .social-icons li.social-icons-facebook a {
  background: #3b5a9a !important;
}

.post-share .social-icons li.social-icons-linkedin a {
  background: #0073b2 !important;
}

.post-share .social-icons li.social-icons-instagram a {
  background: #7c4a3a !important;
}

.post-share .social-icons li.social-icons-copy a {
  background: #6c757d !important;
}

.post-share .social-icons li a:hover {
  filter: brightness(0.9);
}

/* ---------- Blog breadcrumbs/header ---------- */
.page-header .blog-breadcrumb {
  font-size: 0.95rem;
}

.page-header .blog-breadcrumb li,
.page-header .blog-breadcrumb a {
  letter-spacing: 0.02em;
}

.page-header.blog-page-header {
  padding-top: 2.25rem !important;
  padding-bottom: 2.25rem !important;
}

/* Blog breadcrumbs: keep centered, truncate only the final crumb */
.page-header .breadcrumb {
  white-space: nowrap;
}

.page-header .breadcrumb li:last-child {
  white-space: nowrap;
}

.page-header .breadcrumb li:last-child .breadcrumb-title {
  display: inline-flex;
  max-width: 35ch;
  white-space: nowrap;
  text-overflow: ellipsis;

  /* Important: avoid baseline/clip weirdness in this theme */
  overflow: visible;
  line-height: normal;
  vertical-align: middle;
}

/* ---------- Blog sidebar: Popular/Recent list thumbnails ---------- */
#popularPosts .post-image,
#recentPosts .post-image {
  display: none;
}

/* ---------- Blog meta alignment ---------- */
.post-meta {
  line-height: 1.6;
}

.post-meta-categories {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Soft tag badge utility */
.badge-tag {
  background-color: rgba(32, 178, 170, 0.15);
  color: #20b2aa;
  border: 1px solid rgba(32, 178, 170, 0.35);
}

/* ---------- Sidebar tag pills (blog-post.html) ---------- */
#publicBlogSidebarTags .badge {
  background-color: rgba(32, 178, 170, 0.15);
  color: #20b2aa;
  border: 1px solid rgba(32, 178, 170, 0.35);
  white-space: normal;
  max-width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  text-align: center;
  line-height: 1.2;
  display: inline-block;
}

#publicBlogSidebarTags a.publicBlogTagPill {
  display: inline-block;
  max-width: 100%;
}

/* Blog sidebar: clean tab + panel connection */
.sidebar .tabs .tab-content {
  margin-top: -1px; /* pull panel up to meet tab border */
  border-left: 1px solid #dee2e6 !important;
}

/* ---------- Blog "Load More" disabled state ---------- */
#blogLoadMore:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Blog post typography (wins over theme-blog/theme-elements) ---------- */
article.post-large .post-content {
  color: #212529 !important;
}

article.post-large .post-content p {
  color: #212529 !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

article.post-large .post-content h1 {
  color: #000 !important;
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  margin: 0 0 0.5rem 0 !important;
  letter-spacing: -0.01em !important;
}

article.post-large .post-content h2 {
  color: #000 !important;
  font-size: 2rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  margin: 1.5rem 0 0.5rem 0 !important;
  letter-spacing: -0.01em !important;
}

article.post-large .post-content h3 {
  color: #000 !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  margin: 1.5rem 0 0.5rem 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* ---------- Blog citations / sources (Wikipedia-style) ---------- */

/* Superscript reference links in article body */
article.post-large .post-content sup a {
  text-decoration: none;
  font-size: 0.75em;
  vertical-align: super;
  margin-left: 2px;
  color: var(--primary);
}

article.post-large .post-content sup a:hover {
  text-decoration: underline;
}

/* Sources list styling */
article.post-large .post-content .related-reading ul,
article.post-large .post-content .related-reading ol {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

article.post-large .post-content .related-reading li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Backlink caret (↩︎) */
article.post-large .post-content .source-backlink {
  margin-left: 6px;
  text-decoration: none;
  font-size: 0.85em;
  opacity: 0.6;
}

article.post-large .post-content .source-backlink:hover {
  opacity: 1;
  text-decoration: underline;
}

/* SOURCES list: keep numbering snug/left for reference-style readability */
#publicBlogContent ol:has(.source-backlink) {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}

/* ---------- Blog post: mobile spacing between sidebar + article ---------- */
@media (max-width: 991px) {
  .sidebar {
    margin-bottom: 2rem;
  }
}

/* Mobile: breathing room between end of post + start of sidebar stack */
@media (max-width: 991px) {
  .sidebar {
    margin-top: 2rem;
  }
}

/* Mobile: tighten sidebar internal spacing */
@media (max-width: 991px) {
  .sidebar h5 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .sidebar ul,
  .sidebar p {
    margin-bottom: 1rem;
  }

  /* Tabs: remove internal gap between tabs and panel */
  /* .sidebar .tabs {
    border-radius: 4px;
    margin-bottom: 20px;
  } */

  .nav-tabs {
    margin: 0;
    padding: 0;
    border-bottom-color: #eee;
  }

  /* .sidebar form {
    margin-bottom: 1.25rem;
  } */
}

/* Mobile: subtle divider between article and sidebar tools */
@media (max-width: 991px) {
  .sidebar {
    padding-top: 1.25rem;
    border-top: 1px solid #dee2e6;
  }
}

/* Hub pages: keep footer from floating too high on short lists */
.page-blog .main {
  min-height: 70vh;
}

.blog-card-fade {
  opacity: 0;
  transform: translateY(12px);
  animation: blogFadeUp 0.5s ease-out forwards;
}

@keyframes blogFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
