body.preloader-site {
    overflow: hidden;
}

.preloader-wrapper {
    height: 100%;
    width: 100%;
    background-color: #000 !important;
    background-image: linear-gradient(0deg, rgba(0,0,0,0.1) 10%, rgba(0,0,0,0.2) 90%), url(/bundles/project/images/backgrounds/back1.webp); 
    background-size: cover; 
    background-position: bottom;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999999;
}

.preloader-wrapper .preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 120px;
}

.grecaptcha-badge { visibility: hidden; }


html, body, p {
  font-family: 'Open Sans', sans-serif;
}

input, textarea, select, button, .btn, h1, h2, h3, h4, h5, h6, .h6, a, .badge {
  font-family: 'Quicksand', sans-serif;
}

.font-read {
  font-family: 'Open Sans', sans-serif;
}

.font-design {
  font-family: 'Quicksand', sans-serif;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 30em;
  }
}

.animated-container {
  transition: all 1s ease;
}

.col-pad {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.row-pad2 {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.col-pad2 {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

/*.row > .col-pad2:not(:first-child) {
    padding-left: 5px; /*
}
.row > .col-pad2:not(:last-child) {
    padding-right: 5px; /*
}*/

.row-pad3 {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.col-pad3 {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

/*.row > .col-pad3:first-of-type {
    padding-left: 15px !important;
}
.row > .col-pad3:last-of-type {
    padding-right: 15px !important;
}*/

.grid-item {
  padding-right: 5px !important;
  padding-left: 5px !important;
}

@media (min-width: 1200px) {
    .grid-sizer,
    .grid-item { width: 20%; }
    
    /* List page specific grid sizing - 7 items per row */
    .list-grid .grid-sizer,
    .list-grid .grid-item { width: 14.28%; }
}

@media (min-width: 960px) and (max-width: 1199px) {
    .grid-sizer,
    .grid-item { width: 20%; }
    
    /* List page specific grid sizing - 6 items per row for slightly smaller screens */
    .list-grid .grid-sizer,
    .list-grid .grid-item { width: 16.66%; }
}

@media (min-width: 768px) and (max-width: 959px) {
    .grid-sizer,
    .grid-item { width: 25%; }
    
    /* List page specific grid sizing - 5 items per row */
    .list-grid .grid-sizer,
    .list-grid .grid-item { width: 20%; }
}

@media (min-width: 600px) and (max-width: 767px) {
    .grid-sizer,
    .grid-item { width: 25%; }
    
    /* List page specific grid sizing - 4 items per row */
    .list-grid .grid-sizer,
    .list-grid .grid-item { width: 25%; }
}

@media (min-width: 480px) and (max-width: 599px) {
    .grid-sizer,
    .grid-item { width: 33%; }
    
    /* List page specific grid sizing - 3 items per row */
    .list-grid .grid-sizer,
    .list-grid .grid-item { width: 33%; }
}

@media (min-width: 320px) and (max-width: 479px) {
    .grid-sizer,
    .grid-item { width: 50%; }
    
    /* List page specific grid sizing - same as home for smallest screens */
    .list-grid .grid-sizer,
    .list-grid .grid-item { width: 50%; }
}

@media (max-width: 319px) {
    .grid-sizer,
    .grid-item { width: 50%; }
    
    /* List page specific grid sizing - same as home for smallest screens */
    .list-grid .grid-sizer,
    .list-grid .grid-item { width: 50%; }
}

.card-body-home {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Other styles for your content */
}

.card-hover-article {
  width: 100%; /* e.g., 200px, 50%, etc. */
  position: relative;
}

.card-hover-article .aspect-ratio-wrapper {
  position: relative;
  width: 100%;
  padding-top: 50%; /* 2:1 aspect ratio */
  overflow: hidden;
}

.card-body-article img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: calc(.25rem - 1px);
}

.overlay-article {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10%;
  border-radius: calc(.25rem - 1px);
}

.background-article {
  background: rgba(0, 0, 0, 0.4); /* Optional: to make text stand out more */
}

/* Default styles */
.responsive-text {
  font-size: 1.5rem;
  padding: 10px;
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
  .responsive-text {
    font-size: 1.1rem;
    padding: 8px;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 576px) {
  .responsive-text {
    font-size: 0.9rem;
    padding: 6px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 400px) {
  .responsive-text {
    font-size: 0.7rem;
    padding: 4px;
  }
}

.navbar {
  padding: 0.25rem 1rem !important;
}

.navbar-dark .nav-link {
    color: rgba(255,255,255,1) !important;
}

.navbar-dark .nav-link:hover, .navbar-dark .nav-link:focus, .navbar-dark .nav-link.active {
    color: rgba(255,255,255,0.8) !important;
}

.navbar-light .nav-link {
    color: rgba(0,0,0,0.7) !important;
}

.navbar-light .nav-link:hover, .navbar-light .nav-link:focus, .navbar-light .nav-link.active {
    color: rgba(0,0,0,1) !important;
}

.footer-link {
    color: rgba(255,255,255,1) !important;
}

.footer-link:hover, .footer-link:focus, .footer-link.active {
    color: rgba(255,255,255,0.8) !important;
}

.link-logo:hover {
  text-decoration: none;
}

.control-label {
  color: rgba(0,0,0,0.7) !important;
  text-transform: none;
  font-weight: 400 !important;
  margin-bottom: .125rem;
}

.text-label {
  color: rgba(0,0,0,0.7) !important;
  text-transform: none;
  font-weight: 400 !important;
  margin-bottom: .125rem;
}

.p-content {
  white-space: pre-wrap !important;
}

main {
  min-height: 80vh !important;
}

.tooltip {
  z-index: 3000 !important;
}

.tooltip .tooltip-inner { 
  background-color: #F4F2E9 !important; 
  color: #000 !important; 
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; 
  border: 1px solid #D7DCE1 !important; /* Border around the tooltip */
  max-width: 300px !important; /* Increase max width for better readability */
}

/* Prioritize left/right placement by making them more opaque */
.tooltip.bs-tooltip-auto[x-placement^=left] .arrow::before, 
.tooltip.bs-tooltip-left .arrow::before {
    border-left-color: #F4F2E9 !important;
    opacity: 1;
}

.tooltip.bs-tooltip-auto[x-placement^=right] .arrow::before, 
.tooltip.bs-tooltip-right .arrow::before {
    border-right-color: #F4F2E9 !important;
    opacity: 1;
}

/* Keep these but with lower priority */
.tooltip.bs-tooltip-auto[x-placement^=top] .arrow::before, 
.tooltip.bs-tooltip-top .arrow::before {
    border-top-color: #F4F2E9 !important;
}

.tooltip.bs-tooltip-auto[x-placement^=bottom] .arrow::before, 
.tooltip.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #F4F2E9 !important;
}

.tooltip.show {
    opacity: 1 !important;
} 

input,select,.form-control {
  background-color: rgba(0,0,0,0.025) !important;
  color: rgba(0,0,0,0.7) !important;
}

.form-control-white {
  background-color: rgba(255,255,255,0.075) !important;
  color: rgba(255,255,255,0.7) !important;
  border: 1px solid rgba(255,255,255,0.075) !important;
}

.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active {
  background-color: rgba(0,0,0,0.075) !important;
  color: #464646 !important;
}

.nohover:hover, .nohover:focus, .nohover.active {
  background-color: transparent !important;
}


.text-title {
  font-size: 1.8rem !important;
}

.text-subtitle {
  font-size: 1.4rem !important;
}

.text-logo {
  font-size: 1.3rem !important;
}

.navbar-brand {
  font-size: 1.3rem !important;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-3px);
}

.navbar-brand:hover .text-gradient {
  opacity: 0.9;
}

.text-main {
  color: #464646 !important;
}

.text-secondary {
  color: #F4F2E9 !important;
}


a .text-main:hover {
  color: #0A0A0A !important;
}

.text-nav {
    color: #464646 !important;
    text-decoration: none;
    font-weight: 400;
}

.text-nav:hover, .text-nav:focus, .text-nav.active {
    color: #464646 !important;
    text-decoration: none;
    font-weight: 700 !important;
}

.nav-pill {
    color: #464646 !important;
    text-decoration: none;
    font-weight: 400;
    background-color: #fff !important;
    border-radius: 25px !important;
    padding: .25rem 1rem !important;
    border: 1px solid #D7DCE1 !important;
}

.nav-pill:hover, .nav-pill:focus, .nav-pill.active {
    color: #fff !important;
    text-decoration: none;
    font-weight: 400 !important;
    background-color: #464646 !important;
    border: 1px solid #464646 !important;
}

.text-black {
  color: #000 !important;
}

.text-light {
  color: #fff !important;
}

.text-light-85 {
  color: rgba(255,255,255,0.85) !important;
}

.text-black-50 {
  color: rgba(0,0,0,0.7) !important;
}

.text-black-30 {
  color: rgba(0,0,0,0.5) !important;
}

.text-black-70 {
  color: #343a40 !important;
}

.text-white-50 {
  color: rgba(255,255,255,0.5) !important;
}

.text-white-70 {
  color: rgba(255,255,255,0.7) !important;
}

.text-white-85 {
  color: rgba(255,255,255,0.85) !important;
}


.bg-background {
  background-color: #f8f9fa !important;
}

.bg-feedback {
  background-color: #E6F4F0 !important;
}

.bg-gradient {
  color: #fff; 
  background-color: #00635D !important;
}

.media-logo {
  width: 100%; /* Adjust the size of the logos */
  height: auto;
  padding: 10px; /* Space around the logos */
}

.bg-img {
  background-color: #464646 !important;
  background-image: linear-gradient(0deg, rgba(0,0,0,0.1) 10%, rgba(0,0,0,0.2) 90%), url(/bundles/project/images/backgrounds/back1.webp); 
  background-size: cover; 
  background-position: bottom;
}

.bg-main {
  background-color: #464646 !important;
}

/*.bg-media {
  background-color: #DFE0E1 !important;
}*/

.bg-black {
  background-color: #191919 !important;
}

.bg-black2 {
  background-color: #000 !important;
}

.bg-trans {
  background-color: rgba(255,255,255,.1) !important;
}

.fixed-badge {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Prevent shrinking */
}
.fixed-icon {
  font-size: 1.4rem;
}

.home-badge {
  width: 50px;
  height: 50px;
  display: flex;  /* Use flexbox to align items */
  align-items: center;  /* Center items vertically */
  justify-content: center;  /* Center items horizontally */
  flex-shrink: 0; /* Prevent shrinking */
}
.home-icon {
  font-size: 1.8rem;
}

.stats-badge {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stats-icon {
  font-size: 1.1rem;
}
.d-inline-flex {
  display: inline-flex;
  align-items: center;
}

/*languages section*/
.language-cloud {
  min-height: 300px;
}

.language-item {
  transition: transform 0.3s ease;
}

.language-item:hover {
  transform: scale(1.1);
}

.language-word {
  font-weight: 600;
}

.language-word small {
  font-size: 0.6em;
  opacity: 0.7;
}

/* Language font size classes - Home page only */
.language-cloud .language-word.h1 .text-main {
  font-size: 2.5rem !important;
}

.language-cloud .language-word.h2 .text-main {
  font-size: 2rem !important;
}

.language-cloud .language-word.h3 .text-main {
  font-size: 1.75rem !important;
}

.language-cloud .language-word.h4 .text-main {
  font-size: 1.5rem !important;
}

.language-cloud .language-word.h5 .text-main {
  font-size: 1.25rem !important;
}

/* Features pages - uniform language label size */
.languages-grid .language-word .text-main {
  font-size: 1.5rem !important;
}

/*.language-item {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
}

.language-item:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
    color: inherit;
}

.language-item:hover .text-main {
    color: inherit;
}

.language-item .fa-pen-nib {
    margin-right: 8px;
}*/

.list-group-item-bar {
    display: flex;
    align-items: right;
}

.rating {
    display: inline-block;
    margin-left: 4px;
}
.full-bar, .empty-bar {
    width: 8px;
    height: 18px;
    display: inline-block;
    margin: 0 2px;
    border-radius: 2px;
}
.full-bar {
    background-color: #464646;
}
.empty-bar {
    background-color: #f8f9fa;
    border: 1px solid #464646;
}

.border-main {
  border-color: #464646 !important;
}

.badge-main { 
  color: #fff; 
  background-color: #464646; 
}

.border-secondary {
  border-color: #F4F2E9 !important;
}

.badge-secondary { 
  color: #000; 
  background-color: #DCDAD2; 
}

.badge-list {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.badge-trans {
  background-color: rgba(255,255,255,0.25) !important;
}

.imageLogo-container {
  position: relative;
  display: inline-block;
}

.imageLogo-container img {
  display: block;
}

.imageLogo-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(248, 249, 250, 1) 0%,
    rgba(248, 249, 250, 0.8) 2.5%,
    rgba(248, 249, 250, 0) 10%,
    rgba(248, 249, 250, 0) 90%,
    rgba(248, 249, 250, 0.8) 97.5%,
    rgba(248, 249, 250, 1) 100%
  ), linear-gradient(
    to bottom,
    rgba(248, 249, 250, 1) 0%,
    rgba(248, 249, 250, 0.8) 2.5%,
    rgba(248, 249, 250, 0) 10%,
    rgba(248, 249, 250, 0) 90%,
    rgba(248, 249, 250, 0.8) 97.5%,
    rgba(248, 249, 250, 1) 100%
  );
  pointer-events: none;
}

.loading-video-container {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
}

.loading-video-container video,
.loading-video-container img {
  display: block;
  border-radius: 12px;
}

.imageHero-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.imageHero-container img {
  display: block;
}

.imageHero-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(248, 249, 250, 1) 0%,
    rgba(248, 249, 250, 0.8) 2%,
    rgba(248, 249, 250, 0) 8%,
    rgba(248, 249, 250, 0) 92%,
    rgba(248, 249, 250, 0.8) 98%,
    rgba(248, 249, 250, 1) 100%
  ), linear-gradient(
    to bottom,
    rgba(248, 249, 250, 1) 0%,
    rgba(248, 249, 250, 0.8) 4%,
    rgba(248, 249, 250, 0) 16%,
    rgba(248, 249, 250, 0) 84%,
    rgba(248, 249, 250, 0.8) 96%,
    rgba(248, 249, 250, 1) 100%
  );
  pointer-events: none;
}

.imgContainer {
  position: relative;
}

.imgContainer button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.imgContainer a {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.image-container {
  position: relative;
  display: flex; /* set display property to flex */
  align-items: center; /* align items vertically in center */
  justify-content: center; /* justify content horizontally in center */
}

.logo-caption {
    position: absolute;
    bottom: 30px; 
    left: 60px;   
    right: 60px;  
    transform: translateY(0%);
}

.height-1 {
  height: 10% !important;
}

.height-2 {
  height: 45% !important;
}

.height-3 {
  height: 35% !important;
}

.height-4 {
  height: 10% !important;
}

.hover-buttons-text {
  font-size: 1rem !important;
}

.hover-buttons-image {
  position: absolute;
  /*top: 5px;
  right: 5px;*/
  font-size: 1rem !important;
}

.btnTopLeft {
 position: absolute;
 top: 10px;
 left: 10px;
 z-index: 100;
}

.btnTopRight {
 position: absolute;
 top: 10px;
 right: 10px;
 z-index: 100;
}

.btnUser {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%); 
  z-index: 100;
  width: 90%;
}

.text-shadow {
  text-shadow: 0px 0px 1px rgba(0,0,0,1), 0px 0px 3px rgba(0,0,0,.7);
}

.title-shadow {
  text-shadow: 0px 0px 2px rgba(0,0,0,1), 0px 0px 5px rgba(0,0,0,.7);
}

.shadow-light {
  box-shadow: 0 .5rem 1rem rgba(255,255,255,.15);
}

.badge-light {
  background-color: rgba(255,255,255,0.85) !important;
}

.badge-outline-light {
  background-color: rgba(255,255,255,0.85) !important;
  border: 1px solid #464646 !important;
}

.badge-light2 {
  background-color: rgba(0,0,0,0.05) !important;
  border: 1px solid rgba(0,0,0,0.3) !important;
}

.alert {
  padding: 0.25rem 1.25rem;
}

.text-gradient {
  background: linear-gradient(90deg, #00635D, #009688);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline;  /* to ensure that the text remains inline */
}

.text-gradient:hover {
  background: linear-gradient(90deg, #00706F, #00A89B);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline;  /* to ensure that the text remains inline */
}

.btn-gradient-home { 
  color: #000; 
  background: linear-gradient(90deg, #00635D, #009688);
  border: 1px solid #00635D;
  /*border: none;*/
  transition: all 0.3s ease;
} 

.btn-gradient-home:hover,
.btn-gradient-home:active, 
.btn-gradient-home.active, 
.open .dropdown-toggle.btn-gradient-home { 
  color: #000; 
  background: linear-gradient(90deg, #00706F, #00A89B);
  /*border-color: #00706F; */
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
} 

.btn-gradient { 
  color: #fff; 
  background: linear-gradient(90deg, #00635D, #009688);
  border: 1px solid #00635D; 
} 

.btn-gradient:hover,
.btn-gradient:active, 
.btn-gradient.active, 
.open .dropdown-toggle.btn-gradient { 
  color: #fff; 
  background: linear-gradient(90deg, #00706F, #00A89B);
  border-color: #00706F; 
} 

.badge-gradient {
  color: #fff; 
  background: linear-gradient(90deg, #00635D, #009688);
  font-size: 0.9rem;
}

.badge-gradient-dark {
  color: #000; 
  background: linear-gradient(90deg, #00635D, #009688);
}

.text-success {
  color: #059669 !important;
}

.alert-success {
  color: #059669; 
  background-color: transparent; 
  border-color: #059669; 
}

.badge-success { 
  color: #fff; 
  background-color: #059669; 
}

.btn-success { 
  color: #fff; 
  background-color: #059669; 
  border: #059669; 
} 
 
.btn-success:hover,
.btn-success:active, 
.btn-success.active, 
.open .dropdown-toggle.btn-success { 
  background-color: #047B58; 
  border-color: #047B58; 
} 

.btn-outline-success { 
  border-width: 1.5px !important;
} 


.text-danger {
  color: #DC2626 !important;
}

.badge-danger { 
  color: #fff; 
  background-color: #DC2626; 
}

.alert-danger {
  color: #DC2626; 
  background-color: transparent; 
  border-color: #DC2626; 
}

.btn-danger { 
  color: #fff; 
  background-color: #DC2626; 
  border-color: #DC2626; 
} 
 
.btn-danger:hover,
.btn-danger:active, 
.btn-danger.active, 
.open .dropdown-toggle.btn-danger {  
  background-color: #C62222; 
  border-color: #C62222; 
} 

.btn-outline-danger { 
  border-width: 1.5px !important;
  background-color: #fff; 
} 

.btn-outline-danger-trans { 
  border-width: 1.5px !important;
  background-color: transparent; 
} 

.btn {
  text-transform: uppercase !important;
  font-weight: 700 !important;
  border-radius: 25px !important;
}

.btn-xs {
  padding: 0.2rem 0.4rem;
  font-size: .8rem;
  line-height: 1.2;
  border-radius: 0.15rem;
}

.btn-width {
  padding: 0.375rem 2rem !important;
}

.btn-main { 
  color: #fff; 
  background: linear-gradient(135deg, #262626 0%, #2C2C2C 100%);
  border: 1.5px solid #262626; 
} 
 
.btn-main:hover, 
.btn-main:active, 
.btn-main.active, 
.open .dropdown-toggle.btn-main { 
  color: #fff; 
  background: linear-gradient(135deg, #464646 0%, #000 100%);
  border-color: #464646; 
} 
 
.btn-main:active, 
.btn-main.active, 
.open .dropdown-toggle.btn-main { 
  background-image: none; 
} 
 
.btn-main.disabled, 
.btn-main[disabled], 
fieldset[disabled] .btn-main, 
.btn-main.disabled:hover, 
.btn-main[disabled]:hover, 
fieldset[disabled] .btn-main:hover, 
.btn-main.disabled:focus, 
.btn-main[disabled]:focus, 
fieldset[disabled] .btn-main:focus, 
.btn-main.disabled:active, 
.btn-main[disabled]:active, 
fieldset[disabled] .btn-main:active, 
.btn-main.disabled.active, 
.btn-main[disabled].active, 
fieldset[disabled] .btn-main.active { 
  background-color: #252525; 
  border-color: #252525; 
} 

.btn-outline-main { 
  color: #464646; 
  background-color: #fff; 
  border: 1.5px solid #464646; 
} 
 
.btn-outline-main:hover, 
.btn-outline-main:active, 
.btn-outline-main.active, 
.open .dropdown-toggle.btn-outline-main { 
  color: #fff; 
  background-color: #464646; 
  border: 1.5px solid #464646; 
} 

.btn-light { 
  color: #464646; 
  background-color: rgba(255,255,255,1); 
  border-color: rgba(255,255,255,1);
} 
 
.btn-light:hover, 
.btn-light:active, 
.btn-light.active, 
.open .dropdown-toggle.btn-light { 
  color: #464646; 
  background-color: rgba(255,255,255,0.8); 
  border-color: rgba(255,255,255,0.8);
} 
 
.btn-light:active, 
.btn-light.active, 
.open .dropdown-toggle.btn-light { 
  background-image: none; 
} 
 
.btn-light.disabled, 
.btn-light[disabled], 
fieldset[disabled] .btn-light, 
.btn-light.disabled:hover, 
.btn-light[disabled]:hover, 
fieldset[disabled] .btn-light:hover, 
.btn-light.disabled:focus, 
.btn-light[disabled]:focus, 
fieldset[disabled] .btn-light:focus, 
.btn-light.disabled:active, 
.btn-light[disabled]:active, 
fieldset[disabled] .btn-light:active, 
.btn-light.disabled.active, 
.btn-light[disabled].active, 
fieldset[disabled] .btn-light.active { 
  background-color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.7);
} 

.btn-outline-light { 
  color: rgba(255,255,255,1);
  background-color: transparent; 
  border: 1.5px solid rgba(255,255,255,1);
} 
 
.btn-outline-light:hover, 
.btn-outline-light:active, 
.btn-outline-light.active, 
.open .dropdown-toggle.btn-outline-light { 
  color: #464646; 
  background-color: rgba(255,255,255,1); 
  border: 1.5px solid rgba(255,255,255,1);
} 

.btn-outline-light2 { 
  color: #464646;
  background-color: rgba(0,0,0,0.025);
  border: 1px solid #DCDAD2;
} 
 
.btn-outline-light2:hover, 
.btn-outline-light2:active, 
.btn-outline-light2.active, 
.open .dropdown-toggle.btn-outline-light2 { 
  color: #464646; 
  background-color: #DCDAD2;
  border: 1px solid #DCDAD2;
} 

.btn-icon {
  background-color: rgba(0,0,0,0.025) !important;
  color: rgba(0,0,0,0.7) !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.25rem !important;
}

.btn-icon:hover, .btn-icon:focus .btn-icon.active  {
  background-color: rgba(0,0,0,0.075) !important;
}

.break {
  word-break: break-all !important;
}

.no-break {
  white-space:nowrap !important;
}

.modal-header {
  border-bottom: 2px solid #D7DCE1 !important;
}

.modal-content {
  border: 0px !important;
  /*border-radius: 1rem !important;*/
  border-radius: 12px !important;
}

.modal-xl {
  max-width: 1100px;  /* or any other width you prefer */
}

/* Image studio modal: wider than default modal-xl (Bootstrap 4 class stays on .modal-dialog) */
#modalImage .modal-dialog.modal-xl {
  max-width: min(96vw, 1320px);
}

.list-group-item-sm {
  padding: 0.5rem 0.75rem;
  border-left: 0;
  border-right: 0;
  border-radius: 0 !important;
  background-color: transparent;
  border-color: rgba(0,0,0,0.05);
}

.list-group-item-sm:first-child {
  border-top: 0;
}

.list-group-item-sm:last-child {
  border-bottom: 0;
}

.list-group-item-stars {
  padding: 0.5rem 1rem !important;
  font-size: 90% !important;
  background-color: transparent !important;
  border: 0px !important;
}

.list-group-item-trans {
  border-bottom: 0px !important;
  border-left: 0px !important;
  border-right: 0px !important;
  background-color: transparent !important;
}

.card-img {
    width: 100% !important;
    height: auto !important;
}

.img-white {
  -webkit-filter: invert(100%); /* Safari */
  filter: invert(100%);
}

.img-grey {
  -webkit-filter: grayscale(100%); /* Safari */
  filter: grayscale(100%);
}

.img-filter1 {
  -webkit-filter: brightness(110%); /* Safari */
  filter: brightness(110%);
}

.img-filter2 {
  -webkit-filter: brightness(60%); /* Safari */
  filter: brightness(60%);
}

.shadow-container {
  display: inline-block;
  position: relative;
  width: 100%;
}

.shadow-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow: 0px 0px 15px rgba(255,255,255,0.3) inset;
}

.shadow-container {
  display: inline-block;
  position: relative;
}

.dropdown-menu {
  border: 1px solid #D7DCE1;
  /*border-radius: 10px !important;*/
  border-radius: 12px !important;
  z-index: 2000 !important;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.bg-secondary {
  background-color: #F4F2E9 !important;
}

.card {
  border: 0;
  border-radius: 12px !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  transition: all 0.2s ease-in-out;
  margin-bottom: 1rem !important;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    /*background-color: #F4F2E9 !important;*/
    background-color: #fff;
}

.card-footer {
    border-radius: 0 0 12px 12px !important;
    background-color: #fff;
}

.card-header-faq:first-child {
    border-radius: 12px !important;
}

.no-border-top-left {
  border-top-left-radius: 0px !important;
  border-top: 0px !important;
}

.card-pad {
  padding: 1.25rem 1.75rem 1rem 1.75rem!important;
}

.card-pad2 {
  padding: 1rem !important;
}

.card-pad3 {
  padding: .5rem !important;
}

.card-pad0 {
  padding: 0rem !important;
}

.cardStory {
  /*border-radius: 10px !important;*/
  border-radius: 12px !important;
  position: relative;
}

.card-link-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1; /* To ensure the link is above the other card content but below any nested links */
}

/*.card-height {
  min-height: 290px !important;
}*/

/*.imgClick { 
  transition: all .2s ease-in-out; 
}

.imgClick:hover{
  transform:scale(1.03); 
  cursor: pointer;
} */

.btnExpand:hover {
  cursor: pointer;
}

.cursor:hover {
  cursor: pointer;
}

.text-1-lines {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.font-lg {
  font-size: 110%;
}

.font-100 {
  font-size: 100%;
}

.font-95 {
  font-size: 92%;
}

.font-90 {
  font-size: 86%;
}

.font-sm {
  font-size: 80%;
}

.font-xs {
  font-size: 60%;
}

.strong {
  font-weight: 700;
}

.regular {
  font-weight: 400;
}

.light {
  font-weight: 300;
}

.stars {
  font-size: 20px; /* Adjust this value as needed */
  line-height: 1;  /* Ensures that the stars are vertically aligned */
}

.container {
    width: auto;
    padding: 0 15px;
}

/* dataTables */
.dataTables_wrapper {
  position: static;
}

.dataTables_length, .dataTables_info {
  color: rgba(0,0,0,0.5) !important;
  display: block !important;
  float: left !important;
}

.dataTables_length label select{
  border-radius: 5px !important;
  background-color: rgba(0,0,0,0.025) !important;
  border: 1px solid #ced4da;
  outline: 0 !important;
}

.dataTables_filter {
  display: block !important;
  float: right !important;
  margin-left: 0 !important;
  text-align: right !important;
  margin-bottom: 5px !important;
}

.dataTables_filter label{
  display: inline-block !important;
}

.dataTables_filter input{
  position: relative !important;
  background-color: rgba(0,0,0,0.025) !important;
  border: 1px solid #ced4da;
  border-radius: 5px !important;
  margin-bottom: 5px !important;
  padding: 0px 10px 0px 10px !important;
  outline: 0 !important;
}

.paginate_button{
  background-color: transparent !important;
  color: rgba(0,0,0,0.7) !important;
  border: 1px solid rgba(0,0,0,0.7) !important;
  padding: 0px 10px  !important;
  border-radius: 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button:hover,.dataTables_wrapper .dataTables_paginate .paginate_button:active{
  background: rgba(0,0,0,0.7) !important;
  background-color: rgba(0,0,0,0.7) !important;
  color: #fff !important;
  border: 1px solid rgba(0,0,0,0.7) !important;
  padding: 0px 10px !important;
  border-radius: 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
  color: rgba(0,0,0,0.5) !important;
  border: 0px !important;
  background-color: transparent !important;
}

.dataTables_paginate {
  color: rgba(0,0,0,0.7) !important;
}

table.dataTable thead th, table.dataTable tfoot th {
    font-weight: 400 !important;
}

table.dataTable thead th, table.dataTable thead td {
  border-bottom: 1px solid #D7DCE1 !important;
}

.th-borderless {
  border-top: 0px !important;
}

.btnTop {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 98;
    border-radius: 20px !important;
}

.btn-radio1 {
  border-radius: 25px 0px 0px 25px !important;
}

.btn-radio2 {
  border-radius: 0px 25px 25px 0px !important;
}

.btn-no-radius {
  border-radius: 5px !important;
}

@media (min-width: 768px) {
    .h-md-100 {
        height: 100% !important;
    }
}

@media (min-width: 992px) {
    .h-lg-100 {
        height: 100% !important;
    }
} 

/* Enhanced form controls */
.form-control {
  border: 1px solid #ced4da;
  border-radius: 8px !important;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-control-custom {
  background-color: rgba(0,0,0,0.025) !important;
  color: rgba(0,0,0,0.7) !important;
  border: 1px solid #ced4da !important;
  text-transform: none !important;
  font-weight: 400 !important;
  border-radius: .25rem !important;
}

/*switch*/
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: black;
  border-color: black;
}

/* Responsive typography */
.text-md {
    font-size: 1rem;
}

.display-4-md {
    font-size: 2.5rem;
}

.h5-md {
    font-size: 1.15rem;
}

/* Media queries for larger screens */
@media (min-width: 768px) {
    .text-md {
        font-size: 1.1rem;
    }
    
    .display-4-md {
        font-size: 3.5rem;
    }
    
    .h5-md {
        font-size: 1.25rem;
    }
}

@media (min-width: 992px) {
    .text-md {
        font-size: 1.2rem;
    }
    
    .display-4-md {
        font-size: 3.8rem;
    }
    
    .h5-md {
        font-size: 1.35rem;
    }
}

.content-wrapper {
    min-height: 500px; /* Ajusta segons les teves necessitats */
    /* Això evitarà salts de contingut */
}

/* Per elements que es carreguen dinàmicament */
.placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16/9; /* Ajusta segons les teves necessitats */
}

/* Progress indicator */
.progress-wrapper {
  margin-top: 30px;
  margin-bottom: 50px;
}

/* Remove these styles for the horizontal progress bar */
.step-progress-container,
.step-progress-bar,
.step-progress-track,
.step-progress-fill,
.step-indicators,
.step-item,
.step-dot,
.step-label {
    /* These can be removed */
}

/* Vertical Progress Path - Fix for step visibility */
.vertical-progress-container {
  position: relative;
  padding: 0 0 20px 0;
}

/* Fix for the vertical progress track - don't extend too far below */
.vertical-progress-track {
  position: absolute;
  left: 15px;
  top: 15px;
  /* Calculate exact height to stop at the last step */
  height: calc(100% - 60px);
  width: 2px;
  background-color: #e9ecef;
  transform: translateX(-50%);
}

/* Fix for the vertical progress fill to match track exactly */
.vertical-progress-fill {
  position: absolute;
  left: 15px;
  top: 15px;
  width: 2px;
  background-color: #464646;
  transform: translateX(-50%);
  transition: height 0.3s ease;
  height: 0; /* Start with 0 height, will be set by JavaScript */
}

/* Ensure the last step doesn't extend the progress line below it */
.vertical-step-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0; /* Remove padding to prevent line extension */
}

/* Add a more subtle endpoint to the track */
.vertical-steps {
  position: relative;
}

.vertical-steps::after {
  display: none; /* Keep this disabled */
}

/* Improve active step styling */
.vertical-step-item.active .vertical-step-dot {
  background-color: #464646 !important;
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  color: #fff !important;
}

.vertical-step-item.completed .vertical-step-dot {
  background-color: #464646 !important;
  cursor: pointer;
}

.vertical-step-item.completed .vertical-step-dot i {
  color: #fff !important;
  font-size: 0.8rem;
}

/* Card styles */
.shadow-hover {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.shadow-hover:hover {
  transform: translateY(-3px);
}

.btnCategory, .btnType, .btnCreation, .btnModel, .btnInfinite {
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  border-radius: 8px !important;
}

.btnCategory.active, .btnType.active, .btnCreation.active, .btnModel.active, .btnInfinite.active {
  transform: translateY(-1px);
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  background-color: rgba(70, 70, 70, 0.05);
}

/* File upload area */
.file-drop-area {
  position: relative;
  transition: all 0.2s ease;
}

.file-drop-area:hover {
  background-color: rgba(var(--primary-rgb), 0.05);
}

.file-input {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.border-dashed {
  border: 2px dashed #dee2e6;
}

/* Improved form section styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 500;
  /*margin-bottom: 0.5rem;*/
  color: #464646;
}

/* Help card styling */
#cardHelp, #cardSteps {
  border: 0;
  border-radius: 12px !important;
}

#cardHelp .card-body, #cardSteps .card-body {
  padding: 1.25rem;
}

/* Step content styling */
.step {
  padding: 1rem 0;
}

/* Custom select styling */
.bootstrap-select .dropdown-toggle {
  border-radius: 8px !important;
  padding: 0.75rem 1rem;
  background-color: rgba(0,0,0,0.025) !important;
}

.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select .dropdown-toggle:active {
  /*border-color: #464646 !important;*/
  box-shadow: 0 0 0 0.2rem rgba(70, 70, 70, 0.15) !important;
}

/* Option grid for better button layouts */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Enhanced option buttons for categories and modes */
.btn-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 8px !important;
  background-color: #fff;
  transition: all 0.2s ease;
  height: 100%;
  text-align: center;
}

.btn-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
  border-color: #464646;
}

.btn-option.active {
  background-color: rgba(70, 70, 70, 0.05);
  border-color: #464646;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.option-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #464646;
}

.option-label {
  font-weight: 600;
  color: #464646;
  margin-bottom: 0.25rem;
}

/* Responsive adjustments for option buttons */
@media (max-width: 767.98px) {
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn-option {
    padding: 1rem 0.75rem;
  }
  
  .option-icon {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }
  
  .option-label {
    font-size: 0.9rem;
  }
  
  .btn-option small {
    font-size: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .option-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-option {
    text-align: center;
    padding: 0.75rem 0.5rem;
  }
  
  .option-icon {
    margin-bottom: 0.4rem;
  }
}

/* Next/Prev buttons */
.btn-step {
  /*padding: 0.75rem 1.5rem;*/
  font-weight: 500;
  min-width: 140px;
}

.btn-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}

/* Input groups */
.input-group {
  border-radius: 8px;
  overflow: hidden;
}

.input-group .form-control {
  border-radius: 8px 0 0 8px !important;
}

.input-group .btn {
  border-radius: 0 8px 8px 0 !important;
}

/* Custom file input */
.custom-file-label {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  height: auto;
}

.custom-file-label::after {
  height: auto;
  padding: 0.75rem 1rem;
}

/* Help card enhancements */
#textHelp table {
  background-color: rgba(255,255,255,0.5);
  border-radius: 8px;
}

/* Make model detail rows slightly smaller than main description text */
#textHelp table td {
  font-size: 0.9rem;
}

/* Form section spacing */
.step {
  padding: 1rem 0;
}

/* Improved form section headers */
.form-section-header {
  color: #464646;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  #cardHelp {
    position: sticky;
    top: 1rem;
    z-index: 100;
  }
} 

.slide-in {
  animation: slideInDown 0.3s ease-out forwards;
}

@keyframes slideInDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Step transitions */
.step {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button hover effects */
.btn {
  transition: all 0.2s ease;
}

.btn:not(.btn-no-hover):hover {
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}

.btn:not(.btn-no-hover):active {
  transform: translateY(0);
}

/* Form control focus effects */
.form-control, .bootstrap-select .dropdown-toggle {
  transition: all 0.2s ease;
}

.form-control:focus, .bootstrap-select.show .dropdown-toggle {
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1) !important;
}

/* Accessibility improvements */
:focus {
  /* Remove this rule or comment it out */
  /* outline: 2px solid #464646 !important;
  outline-offset: 2px !important; */
}

/* Add this instead - only shows outline for keyboard navigation */
:focus-visible {
  outline: 2px solid #464646 !important;
  outline-offset: 2px !important;
}

/* For browsers that don't support :focus-visible */
:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* Keep the focus shadow for form elements */
.btn:focus, .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(70, 70, 70, 0.25) !important;
}

/* Remove focus outline for mouse clicks but keep for keyboard */
.btn:focus:not(:focus-visible) {
  box-shadow: none !important;
}

/* Improved contrast for text */
.text-black-70 {
  color: #464646 !important; /* Ensuring sufficient contrast */
}

.text-black-50 {
  color: #555555 !important; /* Darker than default for better contrast */
}

/* Skip to content link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #464646;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Improved focus visibility for interactive elements */
.btn-option:focus-visible {
  outline: 3px solid #464646;
  outline-offset: 2px;
}

/* Ensure text has sufficient contrast against backgrounds */
.option-label, .step-label {
  color: #333333;
}

.btn-option.active .option-label {
  color: #000000;
}

/* Responsive optimizations */
.main-content-container {
  padding-bottom: 2rem;
}

.sidebar-container {
  position: relative;
}

/* Option grid responsive adjustments */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
  .card-body {
    padding: 1rem !important;
  }
  
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn-option {
    padding: 1rem 0.75rem;
  }
  
  .option-icon {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }
  
  /* Improve step progress on mobile */
  .step-label {
    display: none;
  }
  
  .step-dot {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
  
  /* Make help card sticky on mobile */
  #cardHelp {
    position: sticky;
    top: 1rem;
    z-index: 100;
  }
  
  /* Adjust button sizes for better touch targets */
  .btn {
    padding: 0.625rem 1rem;
  }
  
  /* Improve form spacing on mobile */
  .form-group {
    margin-bottom: 1rem;
  }
}

/* Small mobile optimizations */
@media (max-width: 575.98px) {
  .option-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    text-align: left;
  }
  
  .option-icon {
    margin-bottom: 0;
    margin-right: 1rem;
  }
  
  /* Simplify step progress on very small screens */
  .step-progress-container {
    padding: 0;
  }
  
  .step-dot {
    width: 20px;
    height: 20px;
  }
  
  /* Adjust form controls for small screens */
  .form-control, .bootstrap-select .dropdown-toggle {
    font-size: 16px; /* Prevent iOS zoom on focus */
  }
}

/* Ensure touch targets are large enough */
@media (pointer: coarse) {
  .btn-option {
    min-height: 60px;
  }
} 

/* Improve form spacing */
.form-group:not(:last-child) {
  margin-bottom: 1.5rem;
}

/* Fix for very small screens */
@media (max-width: 400px) {
  .step-progress-bar {
    margin: 10px 0;
  }
  
  .step-dot {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
} 

/* Make completed steps appear clickable */
.step-item.completed {
  cursor: pointer;
}

.step-item.completed:hover .step-dot {
  transform: scale(1.15);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
}

/* Adaptive progress bar */
.step-progress-bar {
  position: relative;
}

.step-item {
  position: absolute;
  transition: all 0.5s ease;
}

/* Vertical Progress Path */
.vertical-progress-container {
  position: relative;
  padding: 0 0 20px 0;
}

.vertical-progress-track {
  position: absolute;
  left: 15px;
  top: 15px;
  /* Calculate exact height to stop at the last step */
  height: calc(100% - 60px);
  width: 2px;
  background-color: #e9ecef;
  transform: translateX(-50%);
}

.vertical-progress-fill {
  position: absolute;
  left: 15px;
  top: 15px;
  width: 2px;
  background-color: #464646;
  transform: translateX(-50%);
  transition: height 0.3s ease;
  height: 0; /* Start with 0 height, will be set by JavaScript */
}

.vertical-steps {
  position: relative;
}

.vertical-step-item {
  display: flex;
  margin-bottom: 25px;
  position: relative;
}

.vertical-step-dot {
  width: 30px;
  height: 30px;
  min-width: 30px;
  font-size: 0.9rem;
  margin-right: 15px;
  z-index: 1;
  transition: all 0.3s ease;
}

.vertical-step-content {
  padding-top: 5px;
}

.vertical-step-label {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.vertical-step-selections {
  font-size: 0.8rem;
  color: #6c757d;
}

.vertical-step-item.completed .vertical-step-dot {
  background-color: #464646 !important;
  cursor: pointer;
}

.vertical-step-item.completed:hover .vertical-step-dot {
  transform: scale(1.15);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
}

.vertical-step-item.active .vertical-step-dot {
  background-color: #464646 !important;
}

.vertical-step-selections .selection-item {
  display: block;
  margin-bottom: 5px;
  padding: 5px 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #464646;
}

/* 2-column option grid for type and mode selections */
.option-grid-2col {
  grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 575.98px) {
  .option-grid-2col {
    grid-template-columns: 1fr !important;
  }
} 

/* Inline tooltips - Updated for consistency with bg-secondary */
.inline-tooltip {
  border: 0;
  border-radius: 12px !important;
  background-color: #F4F2E9 !important; /* bg-secondary color */
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
  font-size: 0.9rem;
  color: #000;
  max-width: 400px;
  width: auto;
  z-index: 1050;
  position: absolute;
}

/* Adjust arrow positioning for left/right tooltips with bg-secondary color */
.inline-tooltip.tooltip-left:before {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #F4F2E9; /* Match bg-secondary */
}

.inline-tooltip.tooltip-right:before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #F4F2E9; /* Match bg-secondary */
}

/* Keep the top arrow for cases where we need it */
.inline-tooltip.tooltip-top:before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #F4F2E9; /* Match bg-secondary */
}

/* Improve table styling in tooltips */
.inline-tooltip .table {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.inline-tooltip .table td {
  padding: 0.25rem 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.inline-tooltip .table tr:first-child td {
  border-top: none;
}

/* Make the model description text slightly smaller */
.inline-tooltip p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Ensure consistent styling for all tooltips */
.has-tooltip .inline-tooltip {
  background-color: #F4F2E9 !important;
  color: #000;
}

/* Add this to your existing CSS file */
.option-grid-1col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Update the btnModel styling to match other option buttons */
.btnModel {
  text-align: center;
  padding: 1rem 0.75rem;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btnModel .option-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.btnModel.active {
  background-color: rgba(70, 70, 70, 0.05);
  border-color: #464646;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .btnModel {
    padding: 0.75rem 0.5rem;
  }
  
  .btnModel .option-label {
    font-size: 0.9rem;
  }
  
  .btnModel small {
    font-size: 0.75rem;
  }
} 

/* Add styles for labels with tooltips */
.has-tooltip {
  cursor: help;
  position: relative;
}

.has-tooltip:hover {
  color: #000;
}

.has-tooltip .fa-info-circle {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.has-tooltip:hover .fa-info-circle {
  opacity: 1;
}

/* Enhance the existing tooltip styles */
.inline-tooltip {
  border: 0;
  border-radius: 12px !important;
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
  font-size: 0.9rem;
  color: #464646;
  max-width: 400px;
  width: auto;
  z-index: 1050;
  position: absolute;
}

.inline-tooltip .card-body {
  padding: 0.75rem 1rem !important;
}

/* Improve tooltip appearance for form fields */
.inline-tooltip.form-tooltip {
  max-width: 300px;
}

.inline-tooltip.form-tooltip .card-body {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Inspiration info section styling */
.inspiration-info {
  /*border-left: 3px solid #059669;*/
  background-color: rgba(5, 150, 105, 0.05) !important;
}

.inspiration-info h6 {
  color: #059669;
}

.inspiration-info ul {
  list-style-type: none;
}

.inspiration-info ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.25rem;
}

.inspiration-info ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #059669;
}

/* Improve file input styling */
.custom-file {
  position: relative;
  display: inline-block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  margin-bottom: 0;
}

.custom-file-input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  margin: 0;
  opacity: 0;
}

.custom-file-label {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6c757d;
  background-color: rgba(0,0,0,0.025);
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-file-label::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  height: calc(1.5em + 0.75rem);
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
  color: #464646;
  content: "Browse";
  background-color: #fff;
  border-left: inherit;
  border-radius: 0 0.25rem 0.25rem 0;
}

.custom-file-input:focus ~ .custom-file-label {
  box-shadow: 0 0 0 0.2rem rgba(70, 70, 70, 0.15);
}

/* Fix for Firefox which doesn't respect the opacity on the file input */
.custom-file-input::-webkit-file-upload-button {
  visibility: hidden;
}

.custom-file-input::before {
  content: '';
  display: inline-block;
  white-space: nowrap;
}

.placeholder-card {
  background-color: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: 4px;
  overflow: hidden;
}
.placeholder-image-container {
  position: relative;
}
.placeholder-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem;
}
.progress-container {
  width: 100%;
  text-align: center;
}
.progress {
  height: 10px;
  margin-bottom: 5px;
}
.option-grid-1col .btn-option {
  margin-bottom: 0.5rem;
}

/* Voice table styling */
.tableVoices .voice-row {
    transition: background-color 0.2s ease;
}

.tableVoices .voice-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.tableVoices .voice-name {
    font-weight: 500;
}

.tableVoices .voice-player {
    border-radius: 4px;
    height: 36px;
}

/* Improve the back button styling */
.btn-back-to-models {
    color: #6c757d;
    transition: color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f8f9fa;
}

.btn-back-to-models:hover {
    color: #495057;
    background-color: #e9ecef;
    text-decoration: none;
}

/* Voice table styling - additional rules */
.tableVoices .btn-group {
    display: inline-flex;
    align-items: center;
}

.tableVoices .voice-row:hover .btnShowVoice {
    display: inline-flex !important;
}

/* Make sure the buttons don't wrap */
.tableVoices td.text-right {
    white-space: nowrap;
}

/* Add this new section to standardize select heights */
.selectpicker, .bootstrap-select .dropdown-toggle {
  height: calc(1.5em + 0.75rem + 2px) !important; /* Standard Bootstrap form-control height */
}

.bootstrap-select > .dropdown-toggle.bs-placeholder, 
.bootstrap-select > .dropdown-toggle {
  height: calc(1.5em + 0.75rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
}

/* Ensure consistent styling for all selects in the filter section */
.card .selectpicker, 
.card .bootstrap-select .dropdown-toggle {
  height: calc(1.5em + 0.75rem + 2px) !important;
  line-height: 1.5 !important;
}

/* Ensure form-control-sm selectpicker matches input height in modals */
.form-control-sm.selectpicker,
.bootstrap-select.form-control-sm .dropdown-toggle {
  height: calc(1.5em + 0.5rem + 2px) !important;
  min-height: calc(1.5em + 0.5rem + 2px) !important;
  line-height: 1.5 !important;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

/* Ensure image gallery empty state stays inside the card */
.grid-images {
  min-height: 180px;
}

/* Layout dropdown styling */
.dropdown-menu-center {
  left: 50%;
  transform: translateX(-50%);
}

.layout-option {
  padding: 8px 16px;
}

.layout-option i {
  margin-right: 5px;
  width: 16px;
  text-align: center;
}

.layout-option.active {
  background-color: rgba(70, 70, 70, 0.05);
  color: #464646;
  font-weight: bold;
}

/* Remove media queries for auto-responsive since we're using Bootstrap classes now */

/* Small device overrides - only apply to auto-adapt layout */
@media (max-width: 575.98px) {
  /* For extra small devices, stack everything in full-width layout */
  #layout-auto-adapt.active ~ #colLeft,
  #layout-auto-adapt.active ~ #colCenter,
  #layout-auto-adapt.active ~ #colRight {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Hide sidebars completely on smallest screens in auto-adapt */
  #layout-auto-adapt.active ~ #colLeft,
  #layout-auto-adapt.active ~ #colRight {
    display: none !important; 
  }
}

/* Add floating toggle buttons for small screen sidebar access */
.sidebar-toggle {
  position: fixed;
  bottom: 20px;
  z-index: 100;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background-color: white;
  color: #464646;
}

.sidebar-toggle-left {
  left: 20px;
}

.sidebar-toggle-right {
  right: 20px;
}

/* Only show toggle buttons in smallest screens for auto-adapt layout */
@media (max-width: 767.98px) {
  /* Only show toggle buttons in auto-adapt mode */
  #layout-auto-adapt.active ~ .sidebar-toggle {
    display: flex;
  }
}

/* Fixed layout classes */
.col-fixed-25 {
    display: block !important;
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
}

.col-fixed-50 {
    display: block !important;
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

.col-fixed-75 {
    display: block !important;
    width: 75% !important;
    flex: 0 0 75% !important;
    max-width: 75% !important;
}

.col-fixed-100 {
    display: block !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Modern Login/Register Page Styles */
.bg-gradient-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-card {
  transition: all 0.3s ease;
}

.scale-effect {
  transform: scale(1.02);
}

.story-description {
  border-left: 3px solid #009688;
}

.features-bar {
  margin-top: 1rem;
}

.badge {
  /*font-weight: 500;*/
  transition: all 0.2s ease;
}

.badge:hover {
  transform: translateY(-2px);
}

.animated {
  animation-duration: 0.8s;
}

.fadeIn {
  animation-name: fadeIn;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Additional styles */
.logo-height {
  max-height: 34px;
}

.min-vh-100 {
  min-height: 100vh;
}

.pt-5 {
  padding-top: 5vh;
}

/* Story card component */
.story-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.story-card .card-img-container {
  flex: 0 0 auto; /* This prevents the image container from growing/shrinking */
}

.story-card .card-body {
  flex: 1 1 auto; /* This allows the text area to grow as needed */
  background-color: #fff;
  /*min-height: 180px;*/
}

.card-img-container {
  position: relative;
  overflow: hidden;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

.story-card img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Image container for consistent styling across pages */
.image-container-styled {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.175);
  display: inline-block;
  transition: all 0.3s ease;
}

.image-container-styled:hover {
  transform: translateY(-5px);
}

.image-container-styled img {
  display: block;
  width: 100%;
}

/* Text overlay for story images */
.text-overlay {
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    min-height: 50%;
}

/* New Login Page Styles */
.bg-image-full {
  background-color: #000 !important;
  background-image: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%), url(/bundles/project/images/backgrounds/back1.webp);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.overlay-card {
  background-color: rgba(0, 0, 0, 0.85); /* Darker overlay */
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.story-preview {
  color: #fff;
}

.story-image-container {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.story-text {
  margin-top: 1.5rem;
  line-height: 1.6;
}

.typewriter-text {
  border-left: 3px solid #009688;
  padding-left: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  text-shadow: 0px 0px 2px rgba(0,0,0,1); /* Add text shadow for better readability */
}

.features-bar {
  margin-top: 2rem;
}

.rounded-right {
  border-top-right-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.rounded-left {
  border-top-left-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
}

@media (max-width: 767.98px) {
  .overlay-card {
    background-color: transparent;
    box-shadow: none;
  }
  
  .col-md-4.bg-white { /* Updated selector to col-md-4 */
    border-radius: 12px !important;
    margin-top: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
  
  .story-text {
    background-color: rgba(0, 0, 0, 0.85); /* Darker background for text on mobile */
    padding: 1.5rem;
    border-radius: 8px;
  }
}

/* Enhanced Home Page Styles */
.text-gradient-home {
    background: linear-gradient(90deg, #00635D, #009688);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    display: inline;
    text-shadow: none;
}

.text-gradient-home:hover {
  color: #009688;
}

.text-gradient-home-2 {
  color: #009688 !important;
}

.text-gradient-home-2:hover {
  color: #00635D !important;
}

.hero-card {
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-text {
    text-shadow: 0px 0px 2px rgba(0,0,0,1);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

.card-hover-home {
  width: 100%; /* e.g., 200px, 50%, etc. */
  position: relative;
}

.card-hover-home .aspect-ratio-wrapper {
  padding-top: 150%; /* This gives you a height that's 1.5 times the width */
  position: relative;
}

@media (max-width: 767.98px) {
    .hero-card {
        background-color: transparent;
    }
    
    .hero-text {
        background-color: rgba(0, 0, 0, 0.85);
        padding: 1.5rem;
        border-radius: 8px;
    }
}

/* Add scale effect to error and hero images */
.scale-on-hover {
  transition: transform 0.5s ease;
}

.scale-on-hover:hover {
  transform: scale(1.03);
}

.scale-container:hover .scale-on-hover {
  transform: scale(1.03);
}

/* Article page specific overlay */
.article-overlay {
  background: linear-gradient(to bottom, 
    rgba(0,0,0,0.7) 0%, 
    rgba(0,0,0,0.5) 30%, 
    rgba(0,0,0,0.5) 70%, 
    rgba(0,0,0,0.7) 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10%;
}

/* Enhance text shadow for better readability on image overlays */
.enhanced-text-shadow {
  text-shadow: 0px 0px 10px rgba(0,0,0,0.8), 0px 0px 20px rgba(0,0,0,0.6);
}

/* Add these new styles at the end of your CSS file */

/* Account pages common styling */
.account-header {
  margin-bottom: 0.2rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.account-card {
  transition: all 0.3s ease;
  border-radius: 12px !important;
  overflow: hidden;
}

.account-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

.move-card {
  transition: all 0.3s ease;
}

.move-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

.account-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  color: #464646;
}

.account-section-title {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.account-form-control {
  background-color: rgba(0,0,0,0.025) !important;
  border: 1px solid #ced4da;
  border-radius: 8px !important;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.account-form-control:focus {
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1) !important;
  border-color: #464646;
}

.account-form-label {
  font-weight: 500;
  color: #464646;
  margin-bottom: 0.5rem;
}

.account-btn {
  border-radius: 25px !important;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

.account-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.account-table {
  border-radius: 8px;
  overflow: hidden;
}

.account-table thead th {
  background-color: rgba(0,0,0,0.025);
  border-top: none;
  font-weight: 600 !important;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #464646;
}

.account-table tbody tr {
  transition: all 0.2s ease;
}

.account-table tbody tr:hover {
  background-color: rgba(0,0,0,0.02);
}

.account-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.account-tabs .nav-link {
  padding: 0.75rem 1.5rem;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
}

.account-tabs .nav-link.active {
  background-color: #fff;
}

/* Responsive improvements */
@media (max-width: 767.98px) {
  .account-card {
    margin-bottom: 1.5rem;
  }
  
  .account-section-title {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .account-icon {
    margin-bottom: 0.5rem;
  }
}

.model-tooltip {
  text-align: left;
  max-width: 300px;
}

.model-tooltip .model-name {
  font-weight: bold;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 5px;
}

.model-tooltip .model-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.model-tooltip .model-desc {
  font-size: 0.9em;
  opacity: 0.9;
  margin-top: 8px;
}

/* Enhanced image generation placeholder styles for multiple concurrent generations */
.image-placeholder {
  transition: all 0.3s ease;
}

.image-placeholder .placeholder-card {
  border: 2px dashed #e9ecef;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.image-placeholder .placeholder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer-placeholder 2s infinite;
}

@keyframes shimmer-placeholder {
  0% { left: -100%; }
  100% { left: 100%; }
}

.image-placeholder .placeholder-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}

.image-placeholder .placeholder-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
}

.image-placeholder .spinner-container {
  animation: pulse-placeholder 1.5s ease-in-out infinite;
}

@keyframes pulse-placeholder {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.image-placeholder .progress-container {
  margin-top: 10px;
  width: 100%;
}

.image-placeholder .progress {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.image-placeholder .progress-bar {
  transition: width 0.3s ease;
}

/* Stagger animation for multiple placeholders */
.image-placeholder:nth-child(2n) .placeholder-card::before {
  animation-delay: 0.5s;
}

.image-placeholder:nth-child(3n) .placeholder-card::before {
  animation-delay: 1s;
}

.image-placeholder:nth-child(4n) .placeholder-card::before {
  animation-delay: 1.5s;
}



/* Novel writing page specific styles */
.novel-genre-carousel {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.novel-genre-carousel:hover {
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.2);
}

.novel-genre-image-container {
  position: relative;
  overflow: hidden;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.novel-genre-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.novel-genre-image:hover {
  transform: scale(1.05);
}

.novel-genre-overlay {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
}

.novel-genre-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
  color: white;
  padding: 2rem;
  min-height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.novel-genre-text {
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8), 0px 0px 10px rgba(0,0,0,0.6);
}

/* Use Bootstrap 4 default carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.6;
  color: #333;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  color: #000;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: transparent;
  background-image: none;
  border-radius: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.carousel-control-prev-icon::before {
  content: '\f104';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 24px;
  color: #333;
}

.carousel-control-next-icon::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 24px;
  color: #333;
}

/* Use Bootstrap 4 default carousel indicators */
.carousel-indicators {
  margin-bottom: -30px;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.carousel-indicators .active {
  background-color: #464646;
}

/* Spacing between carousel and button below */
#genreCarousel {
  margin-bottom: 2rem;
}

/* Languages grid layout */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

.language-item-grid {
  text-align: center;
  transition: transform 0.3s ease;
}

.language-item-grid:hover {
  transform: scale(1.1);
}

.language-word {
  font-weight: 600;
}

.language-word .text-main {
  font-size: 1.75rem !important;
}

.language-word small {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Section consistency */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.section-icon {
  margin-right: 1rem;
}

.section-spacing {
  padding: 4rem 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .novel-genre-image-container {
    height: 320px;
  }
  
  .languages-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
  
  .section-spacing {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .novel-genre-image-container {
    height: 280px;
  }
  
  .novel-genre-text-overlay {
    padding: 1.5rem;
  }
  
  .languages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .language-word .text-main {
    font-size: 1.5rem !important;
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
  }
  
  .section-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .section-spacing {
    padding: 2rem 0;
  }
}

@media (max-width: 576px) {
  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .language-word .text-main {
    font-size: 1.25rem !important;
  }
} 

.btn-gradient-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  border: none;
  transition: all 0.3s ease;
}
.btn-gradient-secondary:hover {
  background: linear-gradient(135deg, #5a6268 0%, #383d42 100%);
  color: white;
  transform: translateY(-1px);
}

/* News section specific styles */
.news-card-hover {
  transition: all 0.3s ease;
  border-radius: 12px !important;
}

.news-card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.2) !important;
}

.news-card-overlay {
  transition: opacity 0.3s ease;
}

.news-card-hover:hover .news-card-overlay {
  opacity: 0.9;
}

/* Improved text readability on news images */
.news-text-shadow {
  text-shadow: 
    0px 1px 3px rgba(0,0,0,0.8),
    0px 0px 10px rgba(0,0,0,0.6),
    1px 1px 0px rgba(0,0,0,0.8);
}

/* News article content styling */
.article-content p {
  margin-bottom: 1.2rem;
}

.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #464646;
}

.article-content ul, 
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid #009688;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: rgba(0, 150, 136, 0.05);
  font-style: italic;
}

/* News page header improvements */
.news-header-icon {
  background: linear-gradient(135deg, #009688, #00635D);
  color: white;
}

/* Modal fixes for feedback modal */
#modalFeed {
  z-index: 1060 !important;
}

#modalFeed .modal-dialog {
  z-index: 1061 !important;
}

#modalFeed .modal-content {
  z-index: 1062 !important;
}

/* Modal fixes for audio modal */
#modalAudio {
  z-index: 1060 !important;
}

#modalAudio .modal-dialog {
  z-index: 1061 !important;
}

#modalAudio .modal-content {
  z-index: 1062 !important;
}

/* Ensure feedback modal is visible when shown (scoped to modalFeed only) */
#modalFeed.modal.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure audio modal is visible when shown (scoped to modalAudio only) */
#modalAudio.modal.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure select dropdowns overlay adjacent cards (e.g., Create Your Story) */
.bootstrap-select .dropdown-menu,
.dropdown-menu.show {
  z-index: 2500 !important;
}

