/* TallyPrime Case Studies — Bootstrap custom styles */

:root {
  --tally-blue: #149ec2;
  --tally-navy: #093b5b;
  --tally-deep: #253670;
  --tally-ink: #231f20;
  --tally-yellow: #fcaf1b;
  --tally-yellow-bright: #ffd827;
  --tally-paper: #fffbe5;
  --tally-sky: #dcf2fb;
  --tally-ocean: #006ea6;
  --color-light-cream: #fffbe5;
  --font-display: "Roboto", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--tally-ink);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
}

/* ── Hero ── */
.hero-section {
  background-color: var(--tally-sky);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tally-blue);
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--tally-navy);
}

@media (max-width: 575.98px) {
  .hero-section{
    padding-top: 3rem;
    overflow: hidden;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-section{
    padding-top: 4rem;
  }
  
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(35, 31, 32, 0.65);
  max-width: 36rem;
}

@media (min-width: 992px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

@media (min-width: 1200px) {
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* ── Outcome Marquee ── */
.outcome-marquee {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.outcome-marquee::before,
.outcome-marquee::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 96px;
  z-index: 10;
  pointer-events: none;
}

.outcome-marquee::before {
  top: 0;
  background: linear-gradient(to bottom, #fff, transparent);
}

.outcome-marquee::after {
  bottom: 0;
  background: linear-gradient(to top, #fff, transparent);
}

.outcome-card-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  transform: translate(-50%, -50%);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.outcome-card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 0 0 1px rgba(9, 59, 91, 0.1);
}

.outcome-card.is-center {
  box-shadow: 0 20px 50px -20px rgba(9, 59, 91, 0.25);
}

.outcome-card .quote-icon {
  position: absolute;
  top: -12px;
  left: 24px;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  color: rgba(9, 59, 91, 0.2);
}

.outcome-card.is-center .quote-icon {
  color: var(--tally-yellow);
}

.outcome-card p {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.375;
  color: rgba(9, 59, 91, 0.7);
  font-size: 1.25rem;
  margin: 0;
}

.outcome-card.is-center p {
  font-size: 1.5rem;
  color: var(--tally-navy);
}

.outcome-card .dialogue-tail {
  position: absolute;
  bottom: -8px;
  left: 40px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 1px 1px 0 0 rgba(9, 59, 91, 0.1);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* ── Story Library ── */
.section-title {
  font-weight: 600;
  line-height: 1.25;
  color: var(--tally-navy);
}

.filter-btn {
  color: var(--tally-navy);
  font-weight: 500;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
}

.filter-btn:hover,
.filter-btn:focus {
  color: var(--tally-blue);
}

.filter-btn .bi {
  font-size: 0.875rem;
}

.clear-filter-btn {
  color: rgba(35, 31, 32, 0.5);
  font-weight: 500;
  border: none;
  background: none;
  padding: 0;
}

.clear-filter-btn:hover {
  color: var(--tally-navy);
}

/* Features filter dropdown — scoped to .filterSelection so it doesn't
   affect other dropdowns elsewhere in the theme. */
.filterSelection .filter-btn::before,
.filterSelection .dropdown-toggle::before {
  content: none !important;
  display: none !important;
}

.filterSelection .dropdown-menu {
  min-width: 18rem;
  border: 1px solid rgba(9, 59, 91, 0.15);
  box-shadow: 0 8px 24px rgba(20, 158, 194, 0.2);
}

.filterSelection .dropdown-item {
  font-size: 0.95rem;
  color: var(--tally-ink);
  cursor: pointer;
  white-space: normal;
}

.filterSelection .dropdown-item:hover,
.filterSelection .dropdown-item:focus {
  background-color: var(--tally-sky);
  color: var(--tally-navy);
}

.filterSelection .dropdown-item input[type="checkbox"] {
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  text-indent: 0 !important;
  flex: 0 0 1rem !important;
  width: 1rem !important;
  height: 1rem !important;
}

.filterSelection .form-check-input:checked {
  background-color: var(--tally-ocean);
  border-color: var(--tally-ocean);
}

.filterSelection .form-check-input:focus {
  border-color: var(--tally-ocean);
  box-shadow: none;
}

.study-card {
  background-color: var(--tally-sky);
  color: var(--tally-navy);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s;
}

.study-card-image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.study-card-img-fallback {
  background-color: var(--color-light-cream);
}

.study-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.study-card:hover .study-card-image-wrap img {
  transform: scale(1.05);
}

.study-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.sector-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tally-ocean);
}

.study-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--tally-navy);
}

.metric-item {
  background-color: var(--tally-ocean);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

@media (min-width: 992px) {
  .metric-value {
    font-size: 1.25rem;
  }
}

.metric-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.8);
}

.no-results {
  padding: 4rem 0;
  text-align: center;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(35, 31, 32, 0.4);
}

/* Loading overlay */
#loading {
  background: url("/wp-content/themes/tally/assets/images/loader.gif") no-repeat center center;
  position: fixed;
  top: 0%;
  left: 0%;
  height: 100%;
  width: 100%;
  background-size: 50px 50px;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999999;
}

/* ===== Read Story Arrow ===== */
.cs-read-arrow {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.7);
}

/* ===== Pagination (from customer-stories.css) ===== */
#paginationList nav li {
  min-height: 33px !important;
}

.border-5px {
  border-radius: 5px;
}

.paginationPrevBtn,
.paginationNextBtn {
  border: 0px !important;
  background-color: #fff !important;
}

.pageLinkActive .page-link {
  background-color: #006ea6 !important;
  color: #fff;
}

.paginationPrev,
.paginationNext {
  width: 7px;
  margin-top: -3px;
}

.page-link {
  text-decoration: none !important;
}

.page-link:focus {
  background-color: #fff !important;
  box-shadow: rgba(13, 110, 253, 0.25) 0px 0px 0px 0rem !important;
}

/* ===== CTA Tabs (from single-casestudies.php) ===== */

.cip-text-primary {
  color: var(--tally-ocean) !important;
}

.tablinks {
  color: #000000;
  font-size: 0.9rem;
  border-bottom: 1.4px solid #dcdcdc;
  cursor: pointer;
}

.tabContentArea .tablinksActive {
  background: #7ec5ed;
  font-weight: 500;
}

.pricing-card {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.pricing-card ul {
  font-size: 1rem;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.pricing-card ul li {
  padding-left: 26px;
  background-size: 15px;
  line-height: 1.9rem;
  background: url("/wp-content/themes/tally/assets/images/product-demo-2025/black-tick-arrow.svg") no-repeat left 7px;
}

.backgroundShade-bottom {
  background: url("/wp-content/themes/tally/assets/images/product-demo-2025/bottom-shade.png") no-repeat;
  background-position: 100%;
  background-size: contain;
  background-position-y: bottom;
}

.formBottomBg {
  background: url("/wp-content/themes/tally/assets/images/product-demo-2025/form-bottom-bg.png") no-repeat;
  background-position: 100%;
  background-size: contain;
  background-position-y: bottom;
}

.form-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.advisorImg {
  width: 20rem;
  max-width: 100%;
}

.recommendPlanImg {
  margin-left: 0;
}

.cs-tab-col .tablinks {
  padding: 0.5rem 0.75rem;
}

.cs-content-area {
  min-height: 260px;
}

@media (min-width: 768px) {
  .cs-content-area {
    min-height: 270px;
  }
}

@media (min-width: 992px) {
  .cs-content-area {
    min-height: 320px;
  }

  .recommendPlanImg {
    margin-left: -9rem;
  }
}

@media (min-width: 1200px) {
  .cs-content-area {
    min-height: 310px;
  }

  .advisorImg {
    width: 20rem;
  }

  .recommendPlanImg {
    margin-left: -9rem;
  }
}

#userType.form-control {
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  appearance: auto;
  -webkit-appearance: menulist;
}