/* Media Queries */
@media all and (max-width: 480px) {
  .hero-heading {
    font-size: 2.5rem;
  }
  .hero-subheading {
    font-size: 1.5rem;
  }
  .section-margin {
    margin: 30px;
  }
  .feature-card {
    min-height: 300px;
  }
  .btn-block-xs-only {
    width: 100%;
    display: block;
    margin-top: 20px !important;
  }
  .btn-block-med-down {
    width: 100%;
    display: block;
    margin-top: 20px !important;
  }
  .brand {
    position: absolute;
    left: 50%;
    margin-left: -150px !important;
    display: block;
  }
  .special_text_color_responsive_2 {
    color: #333;
    text-align: center !important;
  }
  .index-subheadings, .index-content {
    text-align: center !important;
  }
  body .container-fixed {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 25px;
  }
  .bigger-text-for-small-screens {
    font-size: 110%;
  }
  .container-fixed {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 25px;
  }
  .special_text_color_responsive_white {
    color: white !important;
  }
  .small-screen-padding {
    padding: 0 1em 0 .75em;
  }
  .large-screen-padding {
    padding-top: 60px !important;
    padding-bottom: 30px !important;
  }
  .index_heading_margin {
    margin-top: 10px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-heading {
    font-size: 3rem;
  }
  .hero-subheading {
    font-size: 1.75rem;
  }
  .section-margin {
    margin: 50px;
  }
  .text-special-align-sm {
    text-align: center;
  }
  .special_text_color_responsive {
    color: #111;
  }
  .special_text_color_responsive_white {
    color: white !important;
  }
  .btn-block-med-down {
    width: 100%;
    display: block;
    margin-top: 20px !important;
  }
  .small-screen-padding {
    padding: 0 2em;
  }
  .bigger-text-for-small-screens {
    font-size: 110%;
  }
  .large-screen-padding {
    padding-top: 80px;
  }
  .index_heading_margin {
    margin-top: 40px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero-heading {
    font-size: 3.5rem;
  }
  .hero-subheading {
    font-size: 2rem;
  }
  .section-margin {
    margin: 70px;
  }
  .text-special-align-sm-md {
    text-align: center;
  }
  .special_text_color_responsive {
    color: white;
    text-shadow: 1px 2px #000;
  }
  .btn-block-med-down {
    width: 100%;
    display: block;
    margin-top: 20px !important;
  }
  .special_text_color_responsive_2 {
    color: #333;
    font-size: 90%;
  }
  .full-width-background-2,
  .full-width-background-2a {
    background-color: #ccc;
    min-height: 75vh;
    background-size: cover;
    text-align: center;
  }
  .full-width-background-3 {
    background-image: url("/images/csm_wide_background2b.jpg");
    background-color: #e4eff7;
    min-height: 75vh;
    background-size: cover;
    background-position: center center;
    text-align: center;
  }
  .special_text_color_responsive_white {
    color: white !important;
  }
  .top_margin_fullwidth {
    margin-top: -555px;
  }
  .custom-index-padding {
    padding-top: 80px;
    padding-left: 0;
  }
  .bigger-text-for-small-screens {
    font-size: 110%;
  }
  .large-screen-padding {
    padding-top: 120px;
  }
  .large_screen_side_padding {
    padding-left: 60px;
  }
  .index_heading_margin {
    margin-top: 0;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .hero-heading {
    font-size: 4rem;
  }
  .hero-subheading {
    font-size: 2rem;
  }
  .section-margin {
    margin: 70px;
  }
  .custom-index-padding {
    padding-top: 50px;
    padding-left: 50px;
  }
  .full-width-background-2 {
    background-image: url("/images/csm_shop_image_c_wide.png");
    min-height: 420px;
    max-height: 421px;
    background-size: cover;
    text-align: center;
    opacity: 25%;
  }
  .full-width-background-2b {
    background-image: url("/images/csm_shop_image_c_wide.png");
    background-size: cover;
    opacity: 0.25;
    height: 600px;
    position: relative;
  }
  .full-width-background-2a {
    background-color: #95aea8;
    min-height: 520px;
    max-height: 521px;
    background-size: cover;
    text-align: center;
    opacity: 20%;
  }
  .full-width-background-3 {
    background-image: url("/images/csm_wide_background2b.jpg");
    background-color: #e4eff7;
    min-height: 75vh;
    background-size: cover;
    background-position: center center;
    text-align: center;
  }
  .large_screen_side_padding {
    padding-left: 60px;
  }
  .optional-negative-margin {
    margin-top: -150px;
  }
  .text-speical-align-sm-lg {
    text-align: left;
  }
  .special_text_color_responsive {
    color: white;
  }
  .special_text_color_responsive_2 {
    color: #333;
  }
  .special_text_color_responsive_white {
    color: #fff;
  }
  .top_margin_fullwidth {
    margin-top: -500px;
  }
  .large-screen-padding {
    padding-top: 80px;
  }
  .large-screen-half-padding {
    padding-top: 50px;
  }
  .large-screen-quarter-padding {
    padding-top: 50px;
  }
  .index_heading_margin {
    margin-top: 0;
  }
}

@media (min-width: 1400px) {
  .hero-heading {
    font-size: 4rem;
  }
  .hero-subheading {
    font-size: 2rem;
  }
  .section-margin {
    margin: 70px;
  }
  .custom-index-padding {
    padding-top: 50px;
    padding-left: 50px;
  }
  .full-width-background-2 {
    background-image: url("/images/csm_shop_image_c_wide.png");
    min-height: 420px;
    max-height: 421px;
    background-size: cover;
    text-align: center;
    opacity: 25%;
  }
  .full-width-background-2b {
    background-image: url("/images/csm_shop_image_c_wide.png");
    background-size: cover;
    opacity: 0.25;
    height: 600px;
    position: relative;
  }
  .full-width-background-2a {
    background-color: #95aea8;
    min-height: 520px;
    max-height: 521px;
    background-size: cover;
    text-align: center;
    opacity: 20%;
  }
  .full-width-background-3 {
    background-image: url("/images/csm_wide_background2b.jpg");
    background-color: #e4eff7;
    min-height: 75vh;
    background-size: cover;
    background-position: center center;
    text-align: center;
  }
  .large_screen_side_padding {
    padding-left: 60px;
  }
  .optional-negative-margin {
    margin-top: -150px;
  }
  .text-speical-align-sm-lg {
    text-align: left;
  }
  .special_text_color_responsive {
    color: white;
  }
  .special_text_color_responsive_2 {
    color: #333;
  }
  .special_text_color_responsive_white {
    color: #fff;
  }
  .top_margin_fullwidth {
    margin-top: -500px;
  }
  .large-screen-padding {
    padding-top: 80px;
  }
  .large-screen-half-padding {
    padding-top: 50px;
  }
  .large-screen-quarter-padding {
    padding-top: 50px;
  }
  .index_heading_margin {
    margin-top: 0;
  }
}

/* Global Styles */

.clip-background {
  min-height: 50vh;
  margin-top: 20px;
  background-color: transparent;
  z-index: -1;
}

.header-spacing {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .clip-background {
    margin-top: 100px;
  }
  .header-spacing {
    margin-top: 8rem;
  }
}

.play-icon {
  margin-left: 10px;
}

.trial-note {
  margin-top: 20px;
}

.gradient-background {
  min-height: 85vh;
  margin-top: 30px;
  background: linear-gradient(180deg, rgba(244, 244, 244, 0) 0%, #eeedea 100%);
  z-index: -1;
}

.image-container {
  padding-left: 0;
  margin-top: 65px;
}

.content-section {
  min-height: 35vh;
  margin-top: 0;
  background: linear-gradient(180deg, rgba(244, 244, 244, 0) 0%, #eeedea 100%);
  z-index: -1;
}

.subtitle {
  font-size: 100%;
  margin-top: 15px;
}

.section-margin {
  margin: 70px;
}

.section-spacing {
  margin: 3rem 0;
}

.feature-card {
  min-height: 355px;
  background-color: #fff;
}

.feature-row {
  margin-bottom: 5rem;
  padding-bottom: 5rem;
}
.feature-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.feature-link {
  text-decoration: none;
  color: inherit;
}

.demo-link {
  text-decoration: none;
  color: #222;
  font-weight: bold;
}

.cta-section {
  padding-bottom: 40px;
  padding-right: 20px;
}

.cta-content {
  margin-top: 3rem;
}

.cta-description {
  margin: 25px 0;
}

.brand-highlight {
  color: #333;
}

.pricing-panel {
  margin-top: 3rem;
}

/* Body */
body {
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #555;
  background-image: linear-gradient(#efefef 1px, transparent 1px),
    linear-gradient(90deg, #efefef 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Cross grid on colored sections */
.dot-grid-light {
  background-image: linear-gradient(#efefef 1px, transparent 1px),
    linear-gradient(90deg, #efefef 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
}

.dot-grid-dark {
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
}

/* Architect heading font */
h1, h1 strong, h1 *,
h2, h2 strong, h2 * {
  font-family: 'Architects Daughter', cursive !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
h1, h1 strong, h1 * {
  font-size: 3.2rem;
}
h2, h2 strong, h2 * {
  font-size: 2.5rem;
}
.card h3, .card h3 strong, .card h3 * {
  font-family: 'Roboto', sans-serif !important;
  letter-spacing: normal;
}
.btn, .btn * {
  font-family: 'Roboto', sans-serif !important;
  letter-spacing: normal;
}
.fa, .fa * {
  font-family: FontAwesome !important;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }

/* Readability overrides */
.text-muted {
  color: #444 !important;
}

.card-body p {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Blog/article content line length */
.container-fixed p {
  max-width: 700px;
}
.text-center p {
  max-width: none;
}

/* Navbar */
.navbar {
  padding: 0.5rem 0;
}

.navbar .nav-link {
  font-size: 1rem;
  color: #555;
  padding: 0.5rem 0.75rem;
  margin-top: 20px;
  text-decoration: none;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #1288a9;
  text-decoration: none;
}

.navbar .navbar-brand {
  text-decoration: none;
  padding: 0.25rem 0;
}

.navbar .navbar-brand:hover {
  text-decoration: none;
}

.navbar .btn-success {
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
}

@media (max-width: 991.98px) {
  .navbar .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0;
  }
}

/* Buttons */
.btn-danger {
  color: #fff;
  background-color: #9e1311;
  border-color: #9e1311;
}

.btn-gray {
  color: #333;
  background-color: #f3f2ef;
  border-color: #ccc;
}

.btn-gray2 {
  color: #333;
  background-color: #5a5a5a;
  border-color: #9FCC9F;
}

.btn-lightgreen {
  color: #333;
  background-color: #DFF2DF;
  border-color: #4CAE4C;
}

.btn-lightyellow {
  color: #333;
  background-color: #F3EBBE;
  border-color: #999;
}

.btn-outline-secondary {
  color: #333;
  background-color: #f3f2ef;
  border-color: #777;
}

.btn-outline-success {
  color: #28a745;
  background-color: #fff;
  border-color: #28a745;
}

.btn-success {
  color: #fff;
  background-color: #399653;
  border-color: #399653;
}

.btn-white {
  color: #333;
  background-color: #fff;
  border-color: #fff;
}

.btn-special {
  text-align: left;
  color: #848282;
  margin-left: 12px;
}

.btn-special-pressed {
  color: #8b0000;
  text-align: left;
  margin-left: 15px;
}

/* Containers */
.container-fixed {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.container-fixed-mobile {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0px 5px;
}

/* Form Controls */
.form-control {
  height: 35px;
  font-size: 16px;
  color: #555;
}

/* Footer */
.footer_csm {
  margin-top: 60px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  color: #333;
  line-height: 1.2;
}
h1 {
  margin-top: 2rem;
}

.hero-heading {
  line-height: 0.6;
}
.hero-heading * {
  font-size: 2.5rem !important;
}
@media (min-width: 768px) {
  .hero-text-overhang {
    margin-left: -2rem;
  }
}

.section-padding {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) {
  .section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  .image-container {
    padding-left: 4rem;
  }
}

.badge-pill {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 1.125rem;
  font-weight: 500;
  color: #666;
}

/* HTML */
html {
  position: relative;
  min-height: 100%;
}

/* Jumbotron (removed in BS5, kept as custom class) */
.jumbotron {
  margin-bottom: 30px;
  margin-top: 35px;
  color: inherit;
  background-color: #f9f9f9;
}

/* Labels */
label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: normal;
}

/* Links */
a {
  color: #222;
  text-decoration: underline;
  transition: all 0.4s ease-in-out;
}

a:hover,
a:active {
  text-decoration: underline;
  color: #1288a9;
}

a:focus {
  text-decoration: none;
  color: #1288a9;
  outline: none;
}

/* Panels (kept as custom classes, similar to BS5 cards) */
.panel-primary,
.panel-primary2,
.panel-userguides,
.panel-form,
.panel-warning,
.panel-info,
.panel-success,
.panel-default2 {
  border-color: #bbb;
  box-shadow: 0px 0px 6px 2px #B0B2AB;
  text-align: center;
}

.panel-rounded {
  min-height: 40vh;
  border-radius: 1em;
  padding: 2em;
}

.panel-title {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 24px;
  color: #8b0000;
  font-weight: 600;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 160px;
  bottom: 0;
  left: 4em;
  z-index: 100;
  padding: 0;
  padding-right: 2em;
}

.sidebar-sticky {
  position: sticky;
  top: 48px;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar .nav-link {
  font-weight: 500;
  color: #999;
  margin-right: 4px;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/* Text */
.text-gray {
  color: #b5b7b2;
}

.text-special-align-sm {
  text-align: center;
}

.text-special-align-sm-md {
  text-align: center;
}

/* Wells (removed in BS5, kept as custom classes) */
.well {
  background-color: #DBDADA;
}

.well-light {
  background-color: whitesmoke;
}

.well3 {
  min-height: 800px;
  padding: 18px;
  background-color: #fff;
  color: #333;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
}

.well3_autoheight {
  min-height: auto;
  padding: 18px;
  background-color: #fff;
  color: #333;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
}

/* Dark Footer Styles */
.site-footer-dark {
  background: #555555a8;
  color: #fff;
  padding: 0;
  margin-top: auto;
}

.site-footer-dark .footer-main {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer-dark .footer-brand-section {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .site-footer-dark .footer-brand-section {
    margin-bottom: 0;
  }
}

.site-footer-dark .footer-logo-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.site-footer-dark .footer-logo-wrapper .footer-logo {
  height: 70px;
  width: auto;
  margin-right: 1rem;
}

.site-footer-dark .footer-logo-wrapper .footer-brand-text {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.site-footer-dark .footer-login-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1.125rem;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.5rem 0;
}

.site-footer-dark .footer-login-link:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-dark .footer-column {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .site-footer-dark .footer-column {
    margin-bottom: 0;
  }
}

.site-footer-dark .footer-heading {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: none;
}

.site-footer-dark .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-dark .footer-links li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1.0625rem;
  line-height: 1.6;
  transition: color 0.3s ease;
  display: inline-block;
}

.site-footer-dark .footer-links li a:hover {
  color: #fff;
  transform: translateX(2px);
}

/* Footer Bottom Bar */
.site-footer-dark .footer-bottom {
  padding: 2rem 0;
}

.site-footer-dark .footer-bottom .footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .site-footer-dark .footer-bottom .footer-legal {
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
  }
}

.site-footer-dark .footer-bottom .footer-legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
}

.site-footer-dark .footer-bottom .footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-dark .footer-bottom .footer-legal .copyright {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.site-footer-dark .footer-bottom .footer-social {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .site-footer-dark .footer-bottom .footer-social {
    justify-content: center;
  }
}

.site-footer-dark .footer-bottom .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-footer-dark .footer-bottom .footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-3px);
}

.site-footer-dark .footer-bottom .footer-social a i {
  font-size: 1.25rem;
}

.site-footer-dark.no-cta .footer-cta {
  display: none;
}

@media (min-width: 1200px) {
  .site-footer-dark .footer-heading {
    font-size: 1.375rem;
  }
  .site-footer-dark .footer-links li a {
    font-size: 1.125rem;
  }
}
