/*------------------------------------------------------------------------
# Custom Foundry Theming
# ------------------------------------------------------------------------
    1.   SVGs
    2.   Footer components
    3.   Typography
    4.   Buttons
    5.   Views
    6.   Webform
    7.   Feature boxes
    8.   Spacing
    9.   Netflix style slider
    10.  Navigation fixes
    11.  Stats (for Cards)
--------------------------------------------------------------------------------*/

/* 01. SVGs
 --------------------------------------------------------------------------------*/
#flourish-top {
  fill: #7fbfaf;
  stroke-width: 0px;
  width: 86px;
  height: 84px;
}

#flourish-bot {
  fill: #7fbfaf;
  stroke-width: 0px;
  width: 86px;
  height: 66px;
}

#flourish-top.white, #flourish-bot.white {
  fill: #fff;
}

@media (max-width: 767px) {
    #flourish-top {
        width: 43px;
        height: 42px;
    }
    #flourish-bot {
        width: 43px;
        height: 33px;
    }
}
.cls-1 {
    stroke-width: 0px;
}
.cls-1, .cls-2 {
    fill: none;
}
.cls-2 {
    stroke: #7fbfaf;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.75px;
}
/* 02. Footer components
 --------------------------------------------------------------------------------*/
.social-inline li {
    display: inline-block;
    margin: 0 10px;
}

/* 03. Typography
 --------------------------------------------------------------------------------*/
h1.title-container {
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 0px;
    background-color: rgba(127, 191, 175, 0.7);
    padding: 20px;
    position: relative;
}
@media (max-width: 767px) {
    h1.title-container {
        letter-spacing: 1px;
        padding: 10px;
    }
}
@media all and (max-width: 767px) {
    h1.uppercase {
        letter-spacing: 1px !important;
    }
}
p.intro {
    font-size: 32px !important;
    font-weight: 400;
    line-height: 42px;
}
@media (max-width: 767px) {
    p.intro {
        font-size: 21px !important;
        line-height: 26px;
        margin-right: 15px;
        margin-left: 15px;
    }
}
p.tagline {
    font-size: 28px;
    line-height: 34px;
    font-weight: 400;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px 10px 20px;
    margin: 0;
}
@media (max-width: 767px) {
    p.tagline {
        line-height: 28px;
        padding: 6px 10px 6px 10px;
    }
}
.pressquote {
    margin-bottom: 24px;
    border-left: 3px solid #7fbfaf;
    padding-left: 12px;
}
/* 04. Buttons
 --------------------------------------------------------------------------------*/
.rmore {
  padding: 6px;
  display: block;
  width: 100%;
  line-height: 36px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  background: #E5F2EF;
  color: #20302C;
  text-align: center;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
}
.rmore:hover {
  background: #5f8f83;
  color: #fff;
}
.btn-filled {
    background: #ff566a;
    color: #fff;
}
.btn-rounded-md {
    border-radius: 6px !important;
    margin-bottom: 0px !important;
}
/* 05. Views
 --------------------------------------------------------------------------------*/
.path-volunteers .main-container {
  background: #f8f8f8;
  padding: 48px 0px 96px 0px !important;
}
#edit-submit-roles {
    margin-left: 8px; /* adds spacing to filter button on volunteer page */
}

/* 06. Webform
 --------------------------------------------------------------------------------*/
.paragraph--type--paragraph-webform-block {
  padding: 0px 0px 96px 0px !important;
}
.form-control {
    background-color: #e5f2ef;
}
.progress-tracker {
    margin: 36px auto;
}
.progress-step.is-active .progress-marker::before {
    background-color: #b1e3cd;
    color: #406058;
    font-weight: 700;
}
.webform-progress-tracker .progress-step:not(.is-active) .progress-marker::before, .webform-progress-tracker .progress-step:hover .progress-marker::before, .webform-progress-tracker .progress-step .progress-marker::after {
    background-color: #406058;
}
.webform-progress-tracker .progress-step .progress-text {
    color: #406058;
}
.webform-options-display-buttons .webform-options-display-buttons-wrapper .radio, .webform-options-display-buttons .webform-options-display-buttons-wrapper .form-check {
    height: 100%;
}
.webform-options-display-buttons .form-check-label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 5px 10px 5px;
    border: none;
    border-radius: 6px;
    background-color: #e5f2ef;
    padding: 10px;
    width: 100%;
    height: 100%;
}
.webform-options-display-buttons .form-check-input:checked ~ .form-check-label {
    border-color: none;
    color: #fff;
    background-color: #5f8f83;
}
.webform-element-description {
    font-size: 16px;
    margin-bottom: 24px;
    border-left: 3px solid #7fbfaf;
    padding-left: 12px;
}

.table {
    --bs-table-color: var(--bs-body-color);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
    --bs-table-active-color: var(--bs-body-color);
    --bs-table-active-bg: rgba(0, 0, 0, 0.1);
    --bs-table-hover-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
    width: 100%;
    margin-bottom: 1rem;
    color: var(--bs-table-color);
    vertical-align: top;
    border-color: var(--bs-table-border-color);
}
tr {
    border-bottom: none;
    padding: 0.1em 0.6em;
    background: none;
}
tr.odd {
    background: none;
}
.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: none;
}

/* 07. Feature boxes
 --------------------------------------------------------------------------------*/
.feature.boxed.white {
  background: #fff;
  border-radius: 6px;
}
.feature.boxed.darkgreen {
  background: #406058;
  border-radius: 6px;
  color: #fff !important;
  margin-bottom: 0px;
}
.feature.boxed.bg-pink {
  background: #f3c0bb;
  border-radius: 6px;
  color: #fff !important;
}
.feature.boxed.bg-cream {
  background: #f4e5c5;
  border-radius: 6px;
}
.feature.boxed.bg-darkpink {
  background: #d56c5d;
  border-radius: 6px;
  color: #fff !important;
}
.feature.bordered-white {
  padding: 32px;
  border: 1px solid #fff;
}
.feature.boxed.usecase {
  padding: 16px !important;
}
.rounded-top {
  border-top-left-radius: 6px; /* Rounds top corners of images  */
  border-top-right-radius: 6px;
}
.rounded-bottom {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}
.rounded {
  border-radius: 6px;
}
/* 08. Spacing
 --------------------------------------------------------------------------------*/
.page-node-type-article #main-container {
    padding: 0;
}

#sm-strategy {
    padding: 0; /* Custom padding for this section */
}
#sm-strategy .inner-title:before {
  background: none;
}


.overlay-gradient:before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

/* Global Equal Height Utility */

/* Desktop and above */
@media (min-width: 768px) {
  .row.equal-height {
    display: flex;
    flex-wrap: wrap;
  }

  .row.equal-height > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }

  .row.equal-height > [class*="col-"] > * {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Child elements inside, optional polish */
  .row.equal-height > [class*="col-"] > * > * {
    flex-grow: 0;
  }

  .row.equal-height > [class*="col-"] > * > *:last-child {
    margin-top: auto;
  }
}

/* Mobile: natural stacking (no fixed height) */
@media (max-width: 767.98px) {
  .row.equal-height {
    display: block;
  }

  .row.equal-height > [class*="col-"] {
    display: block;
  }

  .row.equal-height > [class*="col-"] > * {
    display: block;
    height: auto;
  }
}


/* 09. Netflix style slider
 --------------------------------------------------------------------------------*/

.card-scroller-container {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 96px 0px 96px 36px;
  background: url('/sites/dunfagency/files/images/hero/dunf360-hero-top.jpg') no-repeat center center;
}

.card {
  flex: 0 0 auto;
  width: 250px;
}

.card img {
  max-width: 100%;
  border-radius: 0.5rem;
}

.card-scroller {
  display: flex;
  z-index: 2;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem; /* Space for scrollbar */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #7fbfaf #ddd; /* Firefox */
}

.card-scroller::-webkit-scrollbar {
  height: 8px; /* Height of the scroll bar */
}

.card-scroller::-webkit-scrollbar-track {
  background: #ddd; /* Scrollbar track */
  border-radius: 4px;
}

.card-scroller::-webkit-scrollbar-thumb {
  background: #555; /* Scrollbar thumb color */
  border-radius: 4px;
}

.card-scroller::-webkit-scrollbar-thumb:hover {
  background: #333; /* Scrollbar thumb on hover */
}

/* 10. Navigation fixes
 --------------------------------------------------------------------------------*/
.navbar-nav {
    flex-direction: inherit;
}

/* 11. Stats Bar (for Cards)
 --------------------------------------------------------------------------------*/

 .stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    color: #555;
}
