/* =========================================================
   MITCHPATH LOGISTIC LLC
   MAIN WEBSITE CSS
========================================================= */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #2f2622;
  background: #ffffff;
}

/* ---------- CONTAINER ---------- */
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   HOME CARD EXPAND FEATURE
========================================================= */
.expandable-card {
  position: relative;
  cursor: pointer;
}

.expand-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #3b2c26;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(91, 62, 49, 0.12);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 38, 34, 0.30);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}

.card-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.expandable-card.expanded {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(720px, calc(100% - 40px)) !important;
  max-height: 78vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 100 !important;
  cursor: default !important;
  padding: 32px 28px 26px !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(171, 134, 110, 0.14) !important;
  box-shadow: 0 22px 55px rgba(91, 62, 49, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.expandable-card.expanded:hover {
  transform: translate(-50%, -50%) !important;
}

.expandable-card.expanded h3 {
  margin: 0 0 18px !important;
  padding-right: 56px !important;
}

.expandable-card.expanded p {
  margin: 0 !important;
  line-height: 1.85 !important;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .expandable-card.expanded {
    width: calc(100% - 24px) !important;
    max-height: 82vh !important;
    padding: 28px 20px 22px !important;
  }

  .expand-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}

/* =========================================================
   ABOUT PAGE
========================================================= */
body.about-page {
  margin: 0;
  padding: 0;
  color: #2f2622;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

body.about-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: -2;
}

body.about-page::after {
  content: "";
  position: fixed;
  top: calc(50% + 80px);
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: url("../assets/mitchpathlogo.png") no-repeat center center;
  background-size: contain;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

.about-page main,
.about-main,
.about-page .site-header,
.about-page .site-footer {
  position: relative;
  z-index: 2;
}

.about-main {
  padding-bottom: 24px;
}

.page-hero.about-hero {
  padding: 54px 0 34px;
}

.about-content {
  padding: 30px 0 100px;
}

.about-content .container {
  width: min(1320px, calc(100% - 60px));
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  column-gap: 60px;
  row-gap: 60px;
  align-items: stretch;
  margin-top: 20px;
}

.about-card {
  padding: 34px 30px;
  min-height: 250px;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-card h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #342722;
  font-weight: 700;
}

.about-card p {
  margin: 0;
  color: #5f4d46;
  line-height: 1.95;
  font-size: 1rem;
}

@media (max-width: 980px) {
  .about-content .container {
    width: min(100%, calc(100% - 30px));
  }

  .about-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 28px;
  }
}

@media (max-width: 768px) {
  body.about-page::after {
    width: 430px;
    height: 430px;
    top: calc(50% + 60px);
    opacity: 1;
  }

  .page-hero.about-hero {
    padding: 42px 0 26px;
  }

  .about-card {
    padding: 24px 20px;
    min-height: auto;
  }

  .about-card p {
    font-size: 0.97rem;
  }
}

@media (max-width: 480px) {
  body.about-page::after {
    width: 320px;
    height: 320px;
    top: calc(50% + 50px);
  }

  .about-card h3 {
    font-size: 1.2rem;
  }

  .about-card p {
    font-size: 0.94rem;
  }
}

/* =========================================================
   CAREER PAGE
========================================================= */
body.career-page {
  margin: 0;
  padding: 0;
  color: #2f2622;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

body.career-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: -2;
}

body.career-page::after {
  content: "";
  position: fixed;
  top: 54%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  transform: translate(-50%, -50%);
  background: url("../assets/mitchpathlogo.png") no-repeat center center;
  background-size: contain;
  opacity: 0.10;
  z-index: -1;
  pointer-events: none;
}

.career-page main,
.career-main,
.career-page .site-header,
.career-page .site-footer {
  position: relative;
  z-index: 1;
}

.career-hero {
  padding: 54px 0 34px;
}

.career-options {
  padding: 30px 0 100px;
}

.career-options .container {
  width: min(1320px, calc(100% - 60px));
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  column-gap: 36px;
  row-gap: 36px;
  align-items: stretch;
  margin-top: 20px;
}

.career-card {
  padding: 28px 26px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(171, 134, 110, 0.14);
  border-radius: 28px;
  box-shadow: 0 10px 24px rgba(91, 62, 49, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.career-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #7a5244;
  font-weight: 700;
}

.career-card p {
  margin: 0 0 14px;
  color: #5f4d46;
  line-height: 1.9;
  font-size: 1rem;
}

.career-card ul {
  margin: 0;
  padding-left: 18px;
}

.career-card ul li {
  margin-bottom: 10px;
  color: #5f4d46;
  line-height: 1.75;
  font-size: 0.98rem;
}

.career-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.career-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.25s ease;
}

.career-btn.secondary {
  background: rgba(255, 255, 255, 0.85);
  color: #6f4f42;
  border: 1px solid rgba(185, 125, 98, 0.3);
}

.career-btn.secondary:hover {
  background: rgba(248, 238, 232, 0.95);
}

@media (max-width: 980px) {
  .career-options .container {
    width: min(100%, calc(100% - 30px));
  }

  .career-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 28px;
  }

  .career-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  body.career-page::after {
    width: 520px;
    height: 520px;
    top: 56%;
    opacity: 0.10;
  }

  .career-card {
    padding: 24px 20px;
  }

  .career-card p,
  .career-card ul li {
    font-size: 0.97rem;
  }
}

@media (max-width: 480px) {
  body.career-page::after {
    width: 380px;
    height: 380px;
    top: 58%;
    opacity: 0.10;
  }

  .career-card h3 {
    font-size: 1.2rem;
  }

  .career-card p,
  .career-card ul li {
    font-size: 0.94rem;
  }
}

/* =========================================================
   CAREER DETAIL PAGE
========================================================= */
.career-content {
  padding: 18px 0 90px;
}

.career-content .container {
  width: min(1320px, calc(100% - 60px));
}

.career-content .career-section {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.career-content .career-section h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #342722;
  font-weight: 700;
}

.career-content .career-section p {
  margin: 0;
  color: #5f4d46;
  line-height: 1.55;
  font-size: 0.95rem;
}

.career-content .career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 14px;
  align-items: stretch;
}

.career-content .career-card {
  padding: 18px 20px;
  min-height: auto;
  display: block;
}

.career-content .career-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.25;
  color: #342722;
  font-weight: 700;
}

.career-content .career-card p {
  margin: 0;
  color: #5f4d46;
  line-height: 1.6;
  font-size: 0.95rem;
}

.career-content .career-label {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 500;
  color: #6f5a50;
  letter-spacing: 0.03em;
}

.career-content .career-list {
  margin: 0;
  padding-left: 18px;
  color: #5f4d46;
}

.career-content .career-list li {
  margin-bottom: 8px;
  line-height: 1.55;
  font-size: 0.94rem;
}

.career-content > .container > .career-card:last-child {
  padding: 18px 20px 20px;
}

.career-content .career-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.career-content .career-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  background: rgba(255, 255, 255, 0.85);
  color: #6f4f42;
  border: 1px solid rgba(185, 125, 98, 0.3);
}

.career-content .career-actions a:hover {
  background: rgba(248, 238, 232, 0.95);
}

@media (max-width: 980px) {
  .career-content .container {
    width: min(100%, calc(100% - 30px));
  }

  .career-content .career-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* =========================================================
   CDL / NON-CDL LEARN MORE PAGE FIX
========================================================= */
.learnmore-page {
  padding: 1.5rem 0 2.25rem;
}

.learnmore-hero {
  padding-top: 0.25rem;
  padding-bottom: 0.75rem;
}

.learnmore-page .container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.learnmore-hero-card,
.learnmore-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(185, 125, 98, 0.16);
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(62, 38, 28, 0.06);
}

.learnmore-hero-card {
  padding: 1.65rem 1.5rem 1.5rem;
}

.learnmore-hero-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.55rem, 4vw, 4.1rem);
  line-height: 1.05;
  font-weight: 700;
  color: #2f211c;
}

.learnmore-hero-card p {
  margin: 0;
  max-width: 1000px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #5f4c44;
}

.learnmore-content {
  padding-top: 0.25rem;
}

.learnmore-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.learnmore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.85rem;
  align-items: start;
}

.learnmore-full {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .learnmore-grid {
    grid-template-columns: 1fr;
  }

  .learnmore-full {
    grid-column: span 1;
  }
}

.learnmore-card {
  padding: 1rem 1rem;
  min-height: auto;
  overflow: hidden;
}

.learnmore-card {
  min-height: auto;
}

.learnmore-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 700;
  color: #2f211c;
}

.learnmore-hero-card p {
  margin: 0;
  max-width: 1000px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #5f4c44;
  max-width: 1050px;
}

.learnmore-card ul {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
}

.learnmore-card li {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5f4c44;
}

.learnmore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.85rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #8c5a45;
  color: #ffffff;
  border: 1px solid #8c5a45;
}

.btn-primary:hover {
  background: #744633;
  border-color: #744633;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: #6f4f42;
  border: 1px solid rgba(185, 125, 98, 0.3);
}

.btn-secondary:hover {
  background: rgba(248, 238, 232, 0.95);
}

@media (max-width: 900px) {
  .learnmore-page {
    padding: 2rem 0 3rem;
  }

  .learnmore-hero-card {
    padding: 1.8rem 1.35rem;
    border-radius: 24px;
  }

  .learnmore-card {
    padding: 1.3rem 1.2rem;
    border-radius: 24px;
  }

  .learnmore-hero-card h2 {
    font-size: 2.4rem;
  }

  .learnmore-card h3 {
    font-size: 1.45rem;
  }

  .learnmore-page .container {
    width: min(100%, calc(100% - 24px));
  }
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */
.site-header {
  position: relative;
  z-index: 20;
  padding: 24px 0 20px;
  background: #ffffff;
  border: none;
  box-shadow: none;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: nowrap;
}

.brand-text {
  flex: 0 0 auto;
  min-width: 0;
}

.brand-text h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  font-weight: 800;
  color: #2f2622;
}

.brand-text p {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #5d4b43;
  font-weight: 500;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 8px 0;
  color: #4e3b34;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  box-shadow: none;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover {
  color: #8a5d47;
  transform: translateY(-1px);
}

.main-nav a:focus,
.main-nav a:active,
.main-nav a:visited {
  text-decoration: none;
  outline: none;
}

.main-nav a.active {
  color: #8a5d47;
}

/* =========================================================
   SHARED GLASS BOX LOOK
========================================================= */
.glass-box {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(171, 134, 110, 0.14);
  border-radius: 28px;
  box-shadow: 0 10px 24px rgba(91, 62, 49, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* =========================================================
   HOME MAIN WRAP
========================================================= */
.home-main {
  padding-bottom: 24px;
}

/* =========================================================
   HERO SECTION
========================================================= */
.page-hero.home-hero {
  padding: 54px 0 34px;
}

.hero-box {
  max-width: 100%;
  padding: 34px 32px;
}

.hero-box h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  color: #2d221d;
}

.hero-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #5d4b43;
}

/* =========================================================
   HOME CONTENT GRID
========================================================= */
.home-content {
  padding: 30px 0 100px;
}

.home-content .container {
  width: min(1320px, calc(100% - 60px));
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  column-gap: 60px;
  row-gap: 60px;
  align-items: stretch;
  margin-top: 20px;
}

.home-card {
  padding: 34px 30px;
  min-height: 250px;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-card:hover {
  transform: translateY(-4px);
}

.home-card h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #342722;
  font-weight: 700;
}

.home-card p {
  margin: 0;
  color: #5f4d46;
  line-height: 1.95;
  font-size: 1rem;
}

/* =========================================================
   HOME CARD EXPAND FEATURE
========================================================= */
.expandable-card {
  position: relative;
  cursor: pointer;
}

.expand-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #3b2c26;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(91, 62, 49, 0.12);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 38, 34, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}

.card-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.expandable-card.expanded {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  width: min(760px, calc(100% - 40px)) !important;
  max-height: 82vh !important;
  padding: 42px 34px 34px !important;
  transform: translate(-50%, -50%) !important;
  z-index: 100 !important;
  overflow-y: auto !important;
  cursor: default;
  box-shadow: 0 20px 50px rgba(91, 62, 49, 0.18) !important;
}

.expandable-card.expanded:hover {
  transform: translate(-50%, -50%) !important;
}

.expandable-card.expanded .expand-close {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.expandable-card.expanded h3 {
  padding-right: 56px;
}

body.modal-open {
  overflow: hidden;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  padding: 0 0 34px;
}

.footer-box {
  padding: 18px 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
}

.footer-box p {
  margin: 0;
  color: #5f4d46;
  font-size: 0.96rem;
  line-height: 1.7;
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 980px) {
  .header-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
  }

  .main-nav ul {
    justify-content: center;
    gap: 18px;
  }

  .page-hero.home-hero {
    padding: 42px 0 26px;
  }

  .hero-box {
    padding: 30px 26px;
  }

  .home-content .container {
    width: min(100%, calc(100% - 30px));
  }

  .home-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 28px;
  }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  body.home-page::after {
    width: 430px;
    height: 430px;
    top: calc(50% + 60px);
    opacity: 1;
  }

  body.career-page::after {
    width: 430px;
    height: 430px;
    top: calc(50% + 60px);
    opacity: 0.05;
  }

  .site-header {
    padding: 20px 0 16px;
  }

  .brand-text h1 {
    font-size: 1.95rem;
  }

  .brand-text p {
    font-size: 0.95rem;
  }

  .main-nav ul {
    gap: 14px;
  }

  .main-nav a {
    font-size: 0.96rem;
  }

  .hero-box {
    padding: 26px 20px;
  }

  .hero-box h2 {
    font-size: 1.9rem;
  }

  .hero-box p,
  .home-card p {
    font-size: 0.97rem;
  }

  .home-card {
    padding: 24px 20px;
    min-height: auto;
  }

  .expandable-card.expanded {
    width: calc(100% - 24px) !important;
    padding: 40px 20px 24px !important;
  }

  .expand-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .footer-box {
    padding: 16px 18px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width: 480px) {
  body.home-page::after {
    width: 320px;
    height: 320px;
    top: calc(50% + 50px);
  }

  body.career-page::after {
    width: 320px;
    height: 320px;
    top: calc(50% + 50px);
    opacity: 0.05;
  }

  .brand-text h1 {
    font-size: 1.7rem;
  }

  .brand-text p {
    font-size: 0.92rem;
  }

  .main-nav ul {
    gap: 12px;
  }

  .main-nav a {
    font-size: 0.92rem;
  }

  .hero-box h2 {
    font-size: 1.65rem;
  }

  .hero-box p,
  .home-card p,
  .footer-box p {
    font-size: 0.94rem;
  }

  .home-card h3 {
    font-size: 1.2rem;
  }
}
/* =========================================================
   CDL / NON-CDL / RIDER LEARN MORE PAGE FIX
========================================================= */
body.learnmore-page {
  margin: 0;
  padding: 0;
  color: #2f2622;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

body.learnmore-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: -2;
}

body.learnmore-page::after {
  content: "";
  position: fixed;
  top: 58%;
  left: 50%;
  width: 980px;
  height: 980px;
  transform: translate(-50%, -50%);
  background: url("../assets/mitchpathlogo.png") no-repeat center center;
  background-size: contain;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.learnmore-page .site-header,
.learnmore-page main,
.learnmore-page .site-footer {
  position: relative;
  z-index: 2;
}

.learnmore-main {
  padding-bottom: 24px;
}

.learnmore-page {
  padding: 0 0 2.25rem;
}

.learnmore-hero {
  padding: 54px 0 24px;
}

.learnmore-content {
  padding: 10px 0 100px;
}

.learnmore-page .container {
  width: min(1320px, calc(100% - 60px));
  margin: 0 auto;
}

.learnmore-hero-card,
.learnmore-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(185, 125, 98, 0.16);
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(62, 38, 28, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.learnmore-hero-card {
  padding: 34px 32px;
}

.learnmore-hero-card h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  color: #2d221d;
}

.learnmore-hero-card p {
  margin: 0;
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #5d4b43;
}

.learnmore-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.learnmore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(420px, 1fr));
  column-gap: 22px;
  row-gap: 22px;
  align-items: stretch;
}

.learnmore-full {
  grid-column: 1 / -1;
}

.learnmore-card {
  padding: 28px 26px;
  min-height: 100%;
  overflow: hidden;
}

.learnmore-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: #342722;
}

.learnmore-card p {
  margin: 0;
  color: #5f4d46;
  line-height: 1.9;
  font-size: 1rem;
}

.learnmore-card ul {
  margin: 0;
  padding-left: 18px;
}

.learnmore-card li {
  margin-bottom: 10px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #5f4d46;
}

.learnmore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #8c5a45;
  color: #ffffff;
  border: 1px solid #8c5a45;
}

.btn-primary:hover {
  background: #744633;
  border-color: #744633;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: #6f4f42;
  border: 1px solid rgba(185, 125, 98, 0.3);
}

.btn-secondary:hover {
  background: rgba(248, 238, 232, 0.95);
}

@media (max-width: 980px) {
  .learnmore-page .container {
    width: min(100%, calc(100% - 30px));
  }

  .learnmore-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 22px;
  }

  .learnmore-full {
    grid-column: span 1;
  }

  body.learnmore-page::after {
    width: 520px;
    height: 520px;
    top: 60%;
    opacity: 0.08;
  }
}

@media (max-width: 768px) {
  .learnmore-hero {
    padding: 42px 0 20px;
  }

  .learnmore-content {
    padding: 8px 0 80px;
  }

  .learnmore-hero-card,
  .learnmore-card {
    border-radius: 24px;
  }

  .learnmore-hero-card {
    padding: 26px 20px;
  }

  .learnmore-card {
    padding: 24px 20px;
  }

  .learnmore-hero-card h2 {
    font-size: 1.9rem;
  }

  .learnmore-hero-card p,
  .learnmore-card p,
  .learnmore-card li {
    font-size: 0.97rem;
  }

  body.learnmore-page::after {
    width: 430px;
    height: 430px;
    top: calc(50% + 60px);
    opacity: 0.07;
  }
}

@media (max-width: 480px) {
  .learnmore-hero-card h2 {
    font-size: 1.65rem;
  }

  .learnmore-hero-card p,
  .learnmore-card p,
  .learnmore-card li {
    font-size: 0.94rem;
  }

  body.learnmore-page::after {
    width: 320px;
    height: 320px;
    top: calc(50% + 50px);
    opacity: 0.06;
  }
}

/* =========================================
   FINAL BOX CLARITY FIX (CAREER + LEARN PAGES)
========================================= */

.career-card,
.learnmore-card,
.learnmore-hero-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* =========================================
   HEADER LOGO (MAIN SITE MATCH APPLICATION)
========================================= */

.brand-with-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-brand-logo {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  font-weight: 800;
  color: #2f2622;
}

.brand-copy p {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #5d4b43;
  font-weight: 500;
}

/* MOBILE FIX */
@media (max-width: 980px) {
  .brand-with-logo {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .site-brand-logo {
    max-width: 140px;
    margin: 0 auto;
  }
}

/* =========================================
   FINAL BOX CLARITY FIX
========================================= */

.career-card,
.learnmore-card,
.learnmore-hero-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* =========================================
   FORCE BACKGROUND LOGO MATCH (ALL PAGES)
========================================= */

body.home-page::after,
body.about-page::after,
body.career-page::after,
body.resources-page::after,
body.contact-page::after {
  content: "" !important;
  position: fixed !important;
  top: calc(50% + 80px) !important;
  left: 50% !important;
  width: 900px !important;
  height: 900px !important;
  transform: translate(-50%, -50%) !important;
  background: url("../assets/mitchpathlogo.png") no-repeat center center !important;
  background-size: contain !important;
  opacity: 0.72 !important;
  z-index: -1 !important;
  pointer-events: none !important;
}
/* =========================================
   RIDER + CONTRACT LEARN MORE BACKGROUND
========================================= */

body.learnmore-page::after,
body.rider-page::after,
body.contract-page::after,
body.contract-learnmore-page::after {
  opacity: 0.72 !important;
}
/* =========================================
   LEARN MORE ACTION BUTTONS
========================================= */

.learnmore-actions .btn-primary,
.learnmore-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #6f4f42 !important;
  border: 1px solid rgba(185, 125, 98, 0.3) !important;
}

.learnmore-actions .btn-primary:hover,
.learnmore-actions .btn-secondary:hover {
  background: rgba(248, 238, 232, 0.95) !important;
  color: #6f4f42 !important;
  border-color: rgba(185, 125, 98, 0.3) !important;
}
/* =========================================================
   RESOURCES PAGE
========================================================= */

.home-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.home-card .resource-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  color: #6f4f42;
  border: 1px solid rgba(185, 125, 98, 0.3);
  transition: all 0.25s ease;
  margin-top: auto;
  align-self: flex-end;
}

.home-card .resource-btn:hover {
  background: rgba(248, 238, 232, 0.95);
  color: #6f4f42;
}

.resources-support-box {
  width: min(1180px, 100%);
  margin: 40px auto 0;
  padding: 26px 28px;
}

.resources-support-text {
  margin: 0;
  color: #5f4d46;
  line-height: 2;
  font-size: 1rem;
  text-align: left;
}

@media (max-width: 980px) {
  .resources-support-box {
    width: 100%;
  }

  .home-card {
    min-height: auto;
  }
}
/* =========================================
   CONTACT PAGE FIX (USES EXISTING STRUCTURE)
========================================= */

/* TIGHTEN TEXT SPACING */
.home-card p {
  margin: 0 0 14px;
  line-height: 1.8;
}

/* OWNER INFO BLOCK (GROUP IT TOGETHER) */
.owner-contact-info {
  margin-top: 22px;
}

.owner-contact-info p {
  margin: 0 0 8px;
  line-height: 1.7;
}

/* OPTIONAL: STRONG LABEL STYLE */
.owner-contact-info strong {
  color: #342722;
}
/* =========================================
   CONTACT PAGE IMAGE FIX
========================================= */

.owner-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin-top: 10px;
  display: block;
}

/* OPTIONAL: KEEP BOTH BOXES SAME HEIGHT */
.home-grid {
  align-items: stretch;
}

.home-card {
  height: 100%;
}
/* =========================================
   CONTACT PAGE FINAL PROFESSIONAL FIX
========================================= */

.contact-grid {
  align-items: stretch;
}

.contact-card {
  padding: 34px 30px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-card h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #342722;
  font-weight: 700;
}

.contact-card p {
  margin: 0 0 16px;
  color: #5f4d46;
  line-height: 1.9;
  font-size: 1rem;
}

.owner-contact-info {
  margin-top: auto;
}

.owner-contact-info p {
  margin: 0 0 10px;
  line-height: 1.7;
}

.owner-contact-info strong {
  color: #342722;
}

.image-card {
  justify-content: flex-start;
}

.owner-img {
  width: 100%;
  height: 660px;
  object-fit: cover;
  border-radius: 22px;
  margin-top: 10px;
  display: block;
}

@media (max-width: 980px) {
  .contact-card {
    padding: 24px 20px;
  }

  .contact-card p {
    font-size: 0.97rem;
  }
}

@media (max-width: 480px) {
  .contact-card h3 {
    font-size: 1.2rem;
  }

  .contact-card p {
    font-size: 0.94rem;
  }
}

/* =========================
   LOGO FIX
========================= */

.hero-logo,
.page-logo,
.home-logo {
  display: block;
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
  height: auto;
}

.logo-wrap {
  text-align: center;
  margin-bottom: 10px;
}

/* =========================================
   HOME PAGE LOCK FIX ONLY
   DOES NOT CHANGE OTHER PAGE STRUCTURE
========================================= */

/* keep home page nav aligned even if anchors are direct children */
.home-page .main-nav {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0 !important;
}

.home-page .main-nav a {
  display: inline-block !important;
  margin-left: 22px !important;
}

.home-page .main-nav a:first-child {
  margin-left: 0 !important;
}

/* keep hero in the right styled box */
.home-page .home-hero,
.home-page .page-hero.home-hero {
  padding: 54px 0 34px !important;
}

.home-page .hero-card,
.home-page .hero-box {
  max-width: 100% !important;
  padding: 34px 32px !important;
}

/* keep home cards on page normal */
.home-page .home-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(360px, 1fr)) !important;
  column-gap: 60px !important;
  row-gap: 60px !important;
  align-items: stretch !important;
  margin-top: 20px !important;
}

.home-page .home-card {
  display: block !important;
  height: auto !important;
  min-height: 250px !important;
  padding: 34px 30px !important;
  position: relative !important;
  cursor: pointer !important;
}

/* keep only home popup behavior structured */
.home-page .expandable-card.expanded {
  display: block !important;
  position: fixed !important;
  top: 50% !important;
  width: min(700px, calc(100% - 60px)) !important;
  max-height: 80vh !important;
  height: auto !important;
  min-height: unset !important;
  padding: 28px 28px 24px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 100 !important;
  cursor: default !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(171, 134, 110, 0.14) !important;
  box-shadow: 0 22px 55px rgba(91, 62, 49, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* left cards pop on left side */
.home-page .home-grid > .expandable-card:nth-child(1).expanded,
.home-page .home-grid > .expandable-card:nth-child(3).expanded {
  left: 34% !important;
  transform: translate(-50%, -50%) !important;
}

/* right cards pop on right side */
.home-page .home-grid > .expandable-card:nth-child(2).expanded,
.home-page .home-grid > .expandable-card:nth-child(4).expanded {
  left: 66% !important;
  transform: translate(-50%, -50%) !important;
}

/* keep popup title and text together */
.home-page .expandable-card.expanded h3 {
  margin: 0 0 18px !important;
  padding-right: 56px !important;
}

.home-page .expandable-card.expanded p {
  margin: 0 !important;
  line-height: 1.9 !important;
}

/* lock close button */
.home-page .expandable-card.expanded .expand-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* keep page cards from stretching popup text apart */
.home-page .expandable-card.expanded:hover {
  transform: translate(-50%, -50%) !important;
}

/* tablet/mobile keeps normal one-column layout */
@media (max-width: 980px) {
  .home-page .home-grid {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 28px !important;
  }

  .home-page .home-grid > .expandable-card:nth-child(1).expanded,
  .home-page .home-grid > .expandable-card:nth-child(2).expanded,
  .home-page .home-grid > .expandable-card:nth-child(3).expanded,
  .home-page .home-grid > .expandable-card:nth-child(4).expanded {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100% - 24px) !important;
    max-height: 82vh !important;
  }
}

@media (max-width: 768px) {
  .home-page .hero-card,
  .home-page .hero-box {
    padding: 26px 20px !important;
  }

  .home-page .home-card {
    padding: 24px 20px !important;
    min-height: auto !important;
  }

  .home-page .expandable-card.expanded {
    width: calc(100% - 24px) !important;
    padding: 28px 20px 22px !important;
  }
}
/* =========================================================
   MITCHPATH LOGISTIC LLC
   MAIN WEBSITE CSS
========================================================= */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #2f2622;
  background: #ffffff;
}

/* ---------- CONTAINER ---------- */
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   HOME CARD EXPAND FEATURE
========================================================= */
.expandable-card {
  position: relative;
  cursor: pointer;
}

.expand-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #3b2c26;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(91, 62, 49, 0.12);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 38, 34, 0.30);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}

.card-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.expandable-card.expanded {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(720px, calc(100% - 40px)) !important;
  max-height: 78vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 100 !important;
  cursor: default !important;
  padding: 32px 28px 26px !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(171, 134, 110, 0.14) !important;
  box-shadow: 0 22px 55px rgba(91, 62, 49, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.expandable-card.expanded:hover {
  transform: translate(-50%, -50%) !important;
}

.expandable-card.expanded h3 {
  margin: 0 0 18px !important;
  padding-right: 56px !important;
}

.expandable-card.expanded p {
  margin: 0 !important;
  line-height: 1.85 !important;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .expandable-card.expanded {
    width: calc(100% - 24px) !important;
    max-height: 82vh !important;
    padding: 28px 20px 22px !important;
  }

  .expand-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}

/* =========================================================
   ABOUT PAGE
========================================================= */
body.about-page {
  margin: 0;
  padding: 0;
  color: #2f2622;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

body.about-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: -2;
}

body.about-page::after {
  content: "";
  position: fixed;
  top: calc(50% + 80px);
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: url("../assets/mitchpathlogo.png") no-repeat center center;
  background-size: contain;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

.about-page main,
.about-main,
.about-page .site-header,
.about-page .site-footer {
  position: relative;
  z-index: 2;
}

.about-main {
  padding-bottom: 24px;
}

.page-hero.about-hero {
  padding: 54px 0 34px;
}

.about-content {
  padding: 30px 0 100px;
}

.about-content .container {
  width: min(1320px, calc(100% - 60px));
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  column-gap: 60px;
  row-gap: 60px;
  align-items: stretch;
  margin-top: 20px;
}

.about-card {
  padding: 34px 30px;
  min-height: 250px;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-card h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #342722;
  font-weight: 700;
}

.about-card p {
  margin: 0;
  color: #5f4d46;
  line-height: 1.95;
  font-size: 1rem;
}

@media (max-width: 980px) {
  .about-content .container {
    width: min(100%, calc(100% - 30px));
  }

  .about-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 28px;
  }
}

@media (max-width: 768px) {
  body.about-page::after {
    width: 430px;
    height: 430px;
    top: calc(50% + 60px);
    opacity: 1;
  }

  .page-hero.about-hero {
    padding: 42px 0 26px;
  }

  .about-card {
    padding: 24px 20px;
    min-height: auto;
  }

  .about-card p {
    font-size: 0.97rem;
  }
}

@media (max-width: 480px) {
  body.about-page::after {
    width: 320px;
    height: 320px;
    top: calc(50% + 50px);
  }

  .about-card h3 {
    font-size: 1.2rem;
  }

  .about-card p {
    font-size: 0.94rem;
  }
}

/* =========================================================
   CAREER PAGE
========================================================= */
body.career-page {
  margin: 0;
  padding: 0;
  color: #2f2622;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

body.career-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: -2;
}

body.career-page::after {
  content: "";
  position: fixed;
  top: 54%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  transform: translate(-50%, -50%);
  background: url("../assets/mitchpathlogo.png") no-repeat center center;
  background-size: contain;
  opacity: 0.10;
  z-index: -1;
  pointer-events: none;
}

.career-page main,
.career-main,
.career-page .site-header,
.career-page .site-footer {
  position: relative;
  z-index: 1;
}

.career-hero {
  padding: 54px 0 34px;
}

.career-options {
  padding: 30px 0 100px;
}

.career-options .container {
  width: min(1320px, calc(100% - 60px));
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  column-gap: 36px;
  row-gap: 36px;
  align-items: stretch;
  margin-top: 20px;
}

.career-card {
  padding: 28px 26px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(171, 134, 110, 0.14);
  border-radius: 28px;
  box-shadow: 0 10px 24px rgba(91, 62, 49, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.career-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #7a5244;
  font-weight: 700;
}

.career-card p {
  margin: 0 0 14px;
  color: #5f4d46;
  line-height: 1.9;
  font-size: 1rem;
}

.career-card ul {
  margin: 0;
  padding-left: 18px;
}

.career-card ul li {
  margin-bottom: 10px;
  color: #5f4d46;
  line-height: 1.75;
  font-size: 0.98rem;
}

.career-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.career-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.25s ease;
}

.career-btn.secondary {
  background: rgba(255, 255, 255, 0.85);
  color: #6f4f42;
  border: 1px solid rgba(185, 125, 98, 0.3);
}

.career-btn.secondary:hover {
  background: rgba(248, 238, 232, 0.95);
}

@media (max-width: 980px) {
  .career-options .container {
    width: min(100%, calc(100% - 30px));
  }

  .career-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 28px;
  }

  .career-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  body.career-page::after {
    width: 520px;
    height: 520px;
    top: 56%;
    opacity: 0.10;
  }

  .career-card {
    padding: 24px 20px;
  }

  .career-card p,
  .career-card ul li {
    font-size: 0.97rem;
  }
}

@media (max-width: 480px) {
  body.career-page::after {
    width: 380px;
    height: 380px;
    top: 58%;
    opacity: 0.10;
  }

  .career-card h3 {
    font-size: 1.2rem;
  }

  .career-card p,
  .career-card ul li {
    font-size: 0.94rem;
  }
}

/* =========================================================
   CAREER DETAIL PAGE
========================================================= */
.career-content {
  padding: 18px 0 90px;
}

.career-content .container {
  width: min(1320px, calc(100% - 60px));
}

.career-content .career-section {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.career-content .career-section h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #342722;
  font-weight: 700;
}

.career-content .career-section p {
  margin: 0;
  color: #5f4d46;
  line-height: 1.55;
  font-size: 0.95rem;
}

.career-content .career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 14px;
  align-items: stretch;
}

.career-content .career-card {
  padding: 18px 20px;
  min-height: auto;
  display: block;
}

.career-content .career-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.25;
  color: #342722;
  font-weight: 700;
}

.career-content .career-card p {
  margin: 0;
  color: #5f4d46;
  line-height: 1.6;
  font-size: 0.95rem;
}

.career-content .career-label {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 500;
  color: #6f5a50;
  letter-spacing: 0.03em;
}

.career-content .career-list {
  margin: 0;
  padding-left: 18px;
  color: #5f4d46;
}

.career-content .career-list li {
  margin-bottom: 8px;
  line-height: 1.55;
  font-size: 0.94rem;
}

.career-content > .container > .career-card:last-child {
  padding: 18px 20px 20px;
}

.career-content .career-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.career-content .career-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  background: rgba(255, 255, 255, 0.85);
  color: #6f4f42;
  border: 1px solid rgba(185, 125, 98, 0.3);
}

.career-content .career-actions a:hover {
  background: rgba(248, 238, 232, 0.95);
}

@media (max-width: 980px) {
  .career-content .container {
    width: min(100%, calc(100% - 30px));
  }

  .career-content .career-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* =========================================================
   CDL / NON-CDL LEARN MORE PAGE FIX
========================================================= */
.learnmore-page {
  padding: 1.5rem 0 2.25rem;
}

.learnmore-hero {
  padding-top: 0.25rem;
  padding-bottom: 0.75rem;
}

.learnmore-page .container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.learnmore-hero-card,
.learnmore-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(185, 125, 98, 0.16);
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(62, 38, 28, 0.06);
}

.learnmore-hero-card {
  padding: 1.65rem 1.5rem 1.5rem;
}

.learnmore-hero-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.55rem, 4vw, 4.1rem);
  line-height: 1.05;
  font-weight: 700;
  color: #2f211c;
}

.learnmore-hero-card p {
  margin: 0;
  max-width: 1000px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #5f4c44;
}

.learnmore-content {
  padding-top: 0.25rem;
}

.learnmore-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.learnmore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.85rem;
  align-items: start;
}

.learnmore-full {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .learnmore-grid {
    grid-template-columns: 1fr;
  }

  .learnmore-full {
    grid-column: span 1;
  }
}

.learnmore-card {
  padding: 1rem 1rem;
  min-height: auto;
  overflow: hidden;
}

.learnmore-card {
  min-height: auto;
}

.learnmore-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 700;
  color: #2f211c;
}

.learnmore-hero-card p {
  margin: 0;
  max-width: 1000px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #5f4c44;
  max-width: 1050px;
}

.learnmore-card ul {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
}

.learnmore-card li {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5f4c44;
}

.learnmore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.85rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #8c5a45;
  color: #ffffff;
  border: 1px solid #8c5a45;
}

.btn-primary:hover {
  background: #744633;
  border-color: #744633;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: #6f4f42;
  border: 1px solid rgba(185, 125, 98, 0.3);
}

.btn-secondary:hover {
  background: rgba(248, 238, 232, 0.95);
}

@media (max-width: 900px) {
  .learnmore-page {
    padding: 2rem 0 3rem;
  }

  .learnmore-hero-card {
    padding: 1.8rem 1.35rem;
    border-radius: 24px;
  }

  .learnmore-card {
    padding: 1.3rem 1.2rem;
    border-radius: 24px;
  }

  .learnmore-hero-card h2 {
    font-size: 2.4rem;
  }

  .learnmore-card h3 {
    font-size: 1.45rem;
  }

  .learnmore-page .container {
    width: min(100%, calc(100% - 24px));
  }
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */
.site-header {
  position: relative;
  z-index: 20;
  padding: 24px 0 20px;
  background: #ffffff;
  border: none;
  box-shadow: none;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: nowrap;
}

.brand-text {
  flex: 0 0 auto;
  min-width: 0;
}

.brand-text h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  font-weight: 800;
  color: #2f2622;
}

.brand-text p {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #5d4b43;
  font-weight: 500;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 8px 0;
  color: #4e3b34;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  box-shadow: none;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover {
  color: #8a5d47;
  transform: translateY(-1px);
}

.main-nav a:focus,
.main-nav a:active,
.main-nav a:visited {
  text-decoration: none;
  outline: none;
}

.main-nav a.active {
  color: #8a5d47;
}

/* =========================================================
   SHARED GLASS BOX LOOK
========================================================= */
.glass-box {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(171, 134, 110, 0.14);
  border-radius: 28px;
  box-shadow: 0 10px 24px rgba(91, 62, 49, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* =========================================================
   HOME MAIN WRAP
========================================================= */
.home-main {
  padding-bottom: 24px;
}

/* =========================================================
   HERO SECTION
========================================================= */
.page-hero.home-hero {
  padding: 54px 0 34px;
}

.hero-box {
  max-width: 100%;
  padding: 34px 32px;
}

.hero-box h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  color: #2d221d;
}

.hero-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #5d4b43;
}

/* =========================================================
   HOME CONTENT GRID
========================================================= */
.home-content {
  padding: 30px 0 100px;
}

.home-content .container {
  width: min(1320px, calc(100% - 60px));
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  column-gap: 60px;
  row-gap: 60px;
  align-items: stretch;
  margin-top: 20px;
}

.home-card {
  padding: 34px 30px;
  min-height: 250px;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-card:hover {
  transform: translateY(-4px);
}

.home-card h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #342722;
  font-weight: 700;
}

.home-card p {
  margin: 0;
  color: #5f4d46;
  line-height: 1.95;
  font-size: 1rem;
}

/* =========================================================
   HOME CARD EXPAND FEATURE
========================================================= */
.expandable-card {
  position: relative;
  cursor: pointer;
}

.expand-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #3b2c26;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(91, 62, 49, 0.12);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 38, 34, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}

.card-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.expandable-card.expanded {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  width: min(760px, calc(100% - 40px)) !important;
  max-height: 82vh !important;
  padding: 42px 34px 34px !important;
  transform: translate(-50%, -50%) !important;
  z-index: 100 !important;
  overflow-y: auto !important;
  cursor: default;
  box-shadow: 0 20px 50px rgba(91, 62, 49, 0.18) !important;
}

.expandable-card.expanded:hover {
  transform: translate(-50%, -50%) !important;
}

.expandable-card.expanded .expand-close {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.expandable-card.expanded h3 {
  padding-right: 56px;
}

body.modal-open {
  overflow: hidden;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  padding: 0 0 34px;
}

.footer-box {
  padding: 18px 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
}

.footer-box p {
  margin: 0;
  color: #5f4d46;
  font-size: 0.96rem;
  line-height: 1.7;
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 980px) {
  .header-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
  }

  .main-nav ul {
    justify-content: center;
    gap: 18px;
  }

  .page-hero.home-hero {
    padding: 42px 0 26px;
  }

  .hero-box {
    padding: 30px 26px;
  }

  .home-content .container {
    width: min(100%, calc(100% - 30px));
  }

  .home-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 28px;
  }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  body.home-page::after {
    width: 430px;
    height: 430px;
    top: calc(50% + 60px);
    opacity: 1;
  }

  body.career-page::after {
    width: 430px;
    height: 430px;
    top: calc(50% + 60px);
    opacity: 0.05;
  }

  .site-header {
    padding: 20px 0 16px;
  }

  .brand-text h1 {
    font-size: 1.95rem;
  }

  .brand-text p {
    font-size: 0.95rem;
  }

  .main-nav ul {
    gap: 14px;
  }

  .main-nav a {
    font-size: 0.96rem;
  }

  .hero-box {
    padding: 26px 20px;
  }

  .hero-box h2 {
    font-size: 1.9rem;
  }

  .hero-box p,
  .home-card p {
    font-size: 0.97rem;
  }

  .home-card {
    padding: 24px 20px;
    min-height: auto;
  }

  .expandable-card.expanded {
    width: calc(100% - 24px) !important;
    padding: 40px 20px 24px !important;
  }

  .expand-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .footer-box {
    padding: 16px 18px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width: 480px) {
  body.home-page::after {
    width: 320px;
    height: 320px;
    top: calc(50% + 50px);
  }

  body.career-page::after {
    width: 320px;
    height: 320px;
    top: calc(50% + 50px);
    opacity: 0.05;
  }

  .brand-text h1 {
    font-size: 1.7rem;
  }

  .brand-text p {
    font-size: 0.92rem;
  }

  .main-nav ul {
    gap: 12px;
  }

  .main-nav a {
    font-size: 0.92rem;
  }

  .hero-box h2 {
    font-size: 1.65rem;
  }

  .hero-box p,
  .home-card p,
  .footer-box p {
    font-size: 0.94rem;
  }

  .home-card h3 {
    font-size: 1.2rem;
  }
}
/* =========================================================
   CDL / NON-CDL / RIDER LEARN MORE PAGE FIX
========================================================= */
body.learnmore-page {
  margin: 0;
  padding: 0;
  color: #2f2622;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

body.learnmore-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: -2;
}

body.learnmore-page::after {
  content: "";
  position: fixed;
  top: 58%;
  left: 50%;
  width: 980px;
  height: 980px;
  transform: translate(-50%, -50%);
  background: url("../assets/mitchpathlogo.png") no-repeat center center;
  background-size: contain;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.learnmore-page .site-header,
.learnmore-page main,
.learnmore-page .site-footer {
  position: relative;
  z-index: 2;
}

.learnmore-main {
  padding-bottom: 24px;
}

.learnmore-page {
  padding: 0 0 2.25rem;
}

.learnmore-hero {
  padding: 54px 0 24px;
}

.learnmore-content {
  padding: 10px 0 100px;
}

.learnmore-page .container {
  width: min(1320px, calc(100% - 60px));
  margin: 0 auto;
}

.learnmore-hero-card,
.learnmore-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(185, 125, 98, 0.16);
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(62, 38, 28, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.learnmore-hero-card {
  padding: 34px 32px;
}

.learnmore-hero-card h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  color: #2d221d;
}

.learnmore-hero-card p {
  margin: 0;
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #5d4b43;
}

.learnmore-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.learnmore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(420px, 1fr));
  column-gap: 22px;
  row-gap: 22px;
  align-items: stretch;
}

.learnmore-full {
  grid-column: 1 / -1;
}

.learnmore-card {
  padding: 28px 26px;
  min-height: 100%;
  overflow: hidden;
}

.learnmore-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: #342722;
}

.learnmore-card p {
  margin: 0;
  color: #5f4d46;
  line-height: 1.9;
  font-size: 1rem;
}

.learnmore-card ul {
  margin: 0;
  padding-left: 18px;
}

.learnmore-card li {
  margin-bottom: 10px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #5f4d46;
}

.learnmore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #8c5a45;
  color: #ffffff;
  border: 1px solid #8c5a45;
}

.btn-primary:hover {
  background: #744633;
  border-color: #744633;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: #6f4f42;
  border: 1px solid rgba(185, 125, 98, 0.3);
}

.btn-secondary:hover {
  background: rgba(248, 238, 232, 0.95);
}

@media (max-width: 980px) {
  .learnmore-page .container {
    width: min(100%, calc(100% - 30px));
  }

  .learnmore-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 22px;
  }

  .learnmore-full {
    grid-column: span 1;
  }

  body.learnmore-page::after {
    width: 520px;
    height: 520px;
    top: 60%;
    opacity: 0.08;
  }
}

@media (max-width: 768px) {
  .learnmore-hero {
    padding: 42px 0 20px;
  }

  .learnmore-content {
    padding: 8px 0 80px;
  }

  .learnmore-hero-card,
  .learnmore-card {
    border-radius: 24px;
  }

  .learnmore-hero-card {
    padding: 26px 20px;
  }

  .learnmore-card {
    padding: 24px 20px;
  }

  .learnmore-hero-card h2 {
    font-size: 1.9rem;
  }

  .learnmore-hero-card p,
  .learnmore-card p,
  .learnmore-card li {
    font-size: 0.97rem;
  }

  body.learnmore-page::after {
    width: 430px;
    height: 430px;
    top: calc(50% + 60px);
    opacity: 0.07;
  }
}

@media (max-width: 480px) {
  .learnmore-hero-card h2 {
    font-size: 1.65rem;
  }

  .learnmore-hero-card p,
  .learnmore-card p,
  .learnmore-card li {
    font-size: 0.94rem;
  }

  body.learnmore-page::after {
    width: 320px;
    height: 320px;
    top: calc(50% + 50px);
    opacity: 0.06;
  }
}

/* =========================================
   FINAL BOX CLARITY FIX (CAREER + LEARN PAGES)
========================================= */

.career-card,
.learnmore-card,
.learnmore-hero-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* =========================================
   HEADER LOGO (MAIN SITE MATCH APPLICATION)
========================================= */

.brand-with-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-brand-logo {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  font-weight: 800;
  color: #2f2622;
}

.brand-copy p {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #5d4b43;
  font-weight: 500;
}

/* MOBILE FIX */
@media (max-width: 980px) {
  .brand-with-logo {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .site-brand-logo {
    max-width: 140px;
    margin: 0 auto;
  }
}

/* =========================================
   FINAL BOX CLARITY FIX
========================================= */

.career-card,
.learnmore-card,
.learnmore-hero-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* =========================================
   FORCE BACKGROUND LOGO MATCH (ALL PAGES)
========================================= */

body.home-page::after,
body.about-page::after,
body.career-page::after,
body.resources-page::after,
body.contact-page::after {
  content: "" !important;
  position: fixed !important;
  top: calc(50% + 80px) !important;
  left: 50% !important;
  width: 900px !important;
  height: 900px !important;
  transform: translate(-50%, -50%) !important;
  background: url("../assets/mitchpathlogo.png") no-repeat center center !important;
  background-size: contain !important;
  opacity: 0.72 !important;
  z-index: -1 !important;
  pointer-events: none !important;
}
/* =========================================
   RIDER + CONTRACT LEARN MORE BACKGROUND
========================================= */

body.learnmore-page::after,
body.rider-page::after,
body.contract-page::after,
body.contract-learnmore-page::after {
  opacity: 0.72 !important;
}
/* =========================================
   LEARN MORE ACTION BUTTONS
========================================= */

.learnmore-actions .btn-primary,
.learnmore-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #6f4f42 !important;
  border: 1px solid rgba(185, 125, 98, 0.3) !important;
}

.learnmore-actions .btn-primary:hover,
.learnmore-actions .btn-secondary:hover {
  background: rgba(248, 238, 232, 0.95) !important;
  color: #6f4f42 !important;
  border-color: rgba(185, 125, 98, 0.3) !important;
}
/* =========================================================
   RESOURCES PAGE
========================================================= */

.home-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.home-card .resource-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  color: #6f4f42;
  border: 1px solid rgba(185, 125, 98, 0.3);
  transition: all 0.25s ease;
  margin-top: auto;
  align-self: flex-end;
}

.home-card .resource-btn:hover {
  background: rgba(248, 238, 232, 0.95);
  color: #6f4f42;
}

.resources-support-box {
  width: min(1180px, 100%);
  margin: 40px auto 0;
  padding: 26px 28px;
}

.resources-support-text {
  margin: 0;
  color: #5f4d46;
  line-height: 2;
  font-size: 1rem;
  text-align: left;
}

@media (max-width: 980px) {
  .resources-support-box {
    width: 100%;
  }

  .home-card {
    min-height: auto;
  }
}
/* =========================================
   CONTACT PAGE FIX (USES EXISTING STRUCTURE)
========================================= */

/* TIGHTEN TEXT SPACING */
.home-card p {
  margin: 0 0 14px;
  line-height: 1.8;
}

/* OWNER INFO BLOCK (GROUP IT TOGETHER) */
.owner-contact-info {
  margin-top: 22px;
}

.owner-contact-info p {
  margin: 0 0 8px;
  line-height: 1.7;
}

/* OPTIONAL: STRONG LABEL STYLE */
.owner-contact-info strong {
  color: #342722;
}
/* =========================================
   CONTACT PAGE IMAGE FIX
========================================= */

.owner-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin-top: 10px;
  display: block;
}

/* OPTIONAL: KEEP BOTH BOXES SAME HEIGHT */
.home-grid {
  align-items: stretch;
}

.home-card {
  height: 100%;
}
/* =========================================
   CONTACT PAGE FINAL PROFESSIONAL FIX
========================================= */

.contact-grid {
  align-items: stretch;
}

.contact-card {
  padding: 34px 30px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-card h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #342722;
  font-weight: 700;
}

.contact-card p {
  margin: 0 0 16px;
  color: #5f4d46;
  line-height: 1.9;
  font-size: 1rem;
}

.owner-contact-info {
  margin-top: auto;
}

.owner-contact-info p {
  margin: 0 0 10px;
  line-height: 1.7;
}

.owner-contact-info strong {
  color: #342722;
}

.image-card {
  justify-content: flex-start;
}

.owner-img {
  width: 100%;
  height: 660px;
  object-fit: cover;
  border-radius: 22px;
  margin-top: 10px;
  display: block;
}

@media (max-width: 980px) {
  .contact-card {
    padding: 24px 20px;
  }

  .contact-card p {
    font-size: 0.97rem;
  }
}

@media (max-width: 480px) {
  .contact-card h3 {
    font-size: 1.2rem;
  }

  .contact-card p {
    font-size: 0.94rem;
  }
}

/* =========================
   LOGO FIX
========================= */

.hero-logo,
.page-logo,
.home-logo {
  display: block;
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
  height: auto;
}

.logo-wrap {
  text-align: center;
  margin-bottom: 10px;
}

/* =========================================
   HOME PAGE LOCK FIX ONLY
   DOES NOT CHANGE OTHER PAGE STRUCTURE
========================================= */

/* keep home page nav aligned even if anchors are direct children */
.home-page .main-nav {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0 !important;
}

.home-page .main-nav a {
  display: inline-block !important;
  margin-left: 22px !important;
}

.home-page .main-nav a:first-child {
  margin-left: 0 !important;
}

/* keep hero in the right styled box */
.home-page .home-hero,
.home-page .page-hero.home-hero {
  padding: 54px 0 34px !important;
}

.home-page .hero-card,
.home-page .hero-box {
  max-width: 100% !important;
  padding: 34px 32px !important;
}

/* keep home cards on page normal */
.home-page .home-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(360px, 1fr)) !important;
  column-gap: 60px !important;
  row-gap: 60px !important;
  align-items: stretch !important;
  margin-top: 20px !important;
}

.home-page .home-card {
  display: block !important;
  height: auto !important;
  min-height: 250px !important;
  padding: 34px 30px !important;
  position: relative !important;
  cursor: pointer !important;
}

/* keep only home popup behavior structured */
.home-page .expandable-card.expanded {
  display: block !important;
  position: fixed !important;
  top: 50% !important;
  width: min(700px, calc(100% - 60px)) !important;
  max-height: 80vh !important;
  height: auto !important;
  min-height: unset !important;
  padding: 28px 28px 24px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 100 !important;
  cursor: default !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(171, 134, 110, 0.14) !important;
  box-shadow: 0 22px 55px rgba(91, 62, 49, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* left cards pop on left side */
.home-page .home-grid > .expandable-card:nth-child(1).expanded,
.home-page .home-grid > .expandable-card:nth-child(3).expanded {
  left: 34% !important;
  transform: translate(-50%, -50%) !important;
}

/* right cards pop on right side */
.home-page .home-grid > .expandable-card:nth-child(2).expanded,
.home-page .home-grid > .expandable-card:nth-child(4).expanded {
  left: 66% !important;
  transform: translate(-50%, -50%) !important;
}

/* keep popup title and text together */
.home-page .expandable-card.expanded h3 {
  margin: 0 0 18px !important;
  padding-right: 56px !important;
}

.home-page .expandable-card.expanded p {
  margin: 0 !important;
  line-height: 1.9 !important;
}

/* lock close button */
.home-page .expandable-card.expanded .expand-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* keep page cards from stretching popup text apart */
.home-page .expandable-card.expanded:hover {
  transform: translate(-50%, -50%) !important;
}

/* tablet/mobile keeps normal one-column layout */
@media (max-width: 980px) {
  .home-page .home-grid {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 28px !important;
  }

  .home-page .home-grid > .expandable-card:nth-child(1).expanded,
  .home-page .home-grid > .expandable-card:nth-child(2).expanded,
  .home-page .home-grid > .expandable-card:nth-child(3).expanded,
  .home-page .home-grid > .expandable-card:nth-child(4).expanded {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100% - 24px) !important;
    max-height: 82vh !important;
  }
}

@media (max-width: 768px) {
  .home-page .hero-card,
  .home-page .hero-box {
    padding: 26px 20px !important;
  }

  .home-page .home-card {
    padding: 24px 20px !important;
    min-height: auto !important;
  }

  .home-page .expandable-card.expanded {
    width: calc(100% - 24px) !important;
    padding: 28px 20px 22px !important;
  }
}