/* ######### OPŠTE ######### */

body {
    font-family: "Karla", sans-serif;
    font-size: 1.2rem;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

h1 {
    font-family: "Judson", sans-serif;
}

p {
    font-family: "Karla", sans-serif;
}

/* ######### NAV BAR ######### */

.navbar-logo {
  height: 8.5vh; /* Adjust height as needed */
  width: auto; /* Maintain aspect ratio */
  max-height: 100%; /* Ensure it doesn't exceed navbar height */
}

/* Skrivanje focus ringa na hamburger menu */

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Smenjivanje hamburgera i X */

.navbar-toggler-icon,
.navbar-close-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-close-icon {
    font-size: 2.8rem;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* ######### BACK-TO-TOP ARROW ######### */

#backToTop {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0,0,0,0.1);
}

#backToTop.show {
    opacity: 1 !important;
    display: block !important;
}

#backToTop:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255,193,7,0.4) !important;
}

/* ######### ACCOUNT PAGE ######### */

.card {
    width: 100%;
}

.fs-6 {
    font-size: 0.9rem !important;
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .fs-6 {
        font-size: 0.85rem !important;
    }
}

/* ######### LOGIN PAGE ######### */

/* Responsive input boxes */

input, select, textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

form .mb-3 input {
    display: block;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: white;
}

/* ######### HOME PAGE ######### */

/* =====================Text + card carousel (obe sekcije)===================== */

/* General Styles */
.visuallyhidden {
  position: absolute;
  z-index: -1;
  right: 0;
  opacity: 0;
}

/* Regulisanje background-a na Home page */

.position-relative.bg-1 {
  position: relative;
  z-index: 1;
  overflow: hidden; /* Retain if needed for other content */
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.bg-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* Matches the parent’s full width */
  height: 100%;
  z-index: 0;
}

.bg-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. Container adjustments - keep original Bootstrap spacing */
.container-fluid {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* 4. Your existing fan-section styles */
.fan-section {
  position: relative;
  z-index: 1;
  background-color: transparent; /* Ensure background shows through */
}

/* 5. Ensure row content stays contained */
.fan-section .row {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px; /* Or your preferred max width */
}

/* Fan Carousel Styles */
.fan-section h1 {
  color: white;
  text-align: center;
  margin-top: 1em;
}

.fan-section h2 {
  padding: 1em;
  margin-top: 1em;
  text-align: center;
  color: white;
  border-radius: 0.2em;
  display: inline-block;
}

.fan-carousel {
  --fan-card-width: 90%;
  --fan-card-max-width: 220px;
  --fan-card-height: 350px;

  position: relative;
  width: 100%;
  height: var(--fan-card-height);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.fan-carousel.smooth-return {
  transition: all 0.2s ease;
}

.fan-card {
  position: absolute;
  background: whitesmoke;
  width: var(--fan-card-width);
  max-width: var(--fan-card-max-width);
  text-align: center;
  padding: 0;
  min-width: 200px;
  height: var(--fan-card-height);
  margin: 0 auto;
  color: rgba(0, 0, 0, 0.5);
  transform-origin: center center;
  transition: transform 0.3s ease;
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.3);
  border-radius: 1em;
  filter: brightness(0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  border: 2px solid #ffb800;
  overflow: hidden;
}

.fan-card.highlight {
  filter: brightness(1);
}

.fan-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  display: block;
}

.fan-card-image::after {
  display: none;
}

.fan-carousel-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
  margin-top: 1rem;
}

.fan-arrow-btn {
  background-color: #ffb800;
  color: #000;
  border: none;
  padding: 0.5em 1em;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 0.5em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fan-arrow-btn:hover {
  background-color: #e6a700;
}

@media screen and (max-width: 991.98px) {
  .fan-carousel {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    margin: 0 auto !important;
    padding: 0 15px;
  }
}

.about-us-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Optional: add some vertical spacing */
    margin: 1rem 0;
}

.video-exercises-heading {
      display: flex;
    justify-content: center;
    align-items: center;
    /* Optional: add some vertical spacing */
    margin-bottom: 1rem;
}

/* =====================Exercise Categories Section===================== */

/* Category buttons text color fix */
.category-btn {
    color: #212529 !important; /* Force dark text on all states */
}

/* Active state background */
.category-btn.active {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
}

/* Outline state border color */
.category-btn.btn-outline-warning {
    border-color: #ffc107 !important;
}

/* Hover state */
.category-btn.btn-outline-warning:hover {
    background-color: #ffc107 !important;
}

/* ====================="What we offer" sekcija===================== */

.custom-section {
  position: relative;
  z-index: 1;
  overflow: hidden; /* Retain for consistency with Intro sekcija */
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.custom-heading {
  color: #FFC107;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.custom-text {
  color: #f8f9fa;
  font-size: 1.2rem;
  line-height: 1.65;
}

.custom-image {
  border: 2px solid #ffb800;
  border-radius: 1em;
}

.custom-text-column-2 {
  text-align: right;
}

@media (max-width: 768px) {
  .custom-text-column-2 {
    text-align: left;
  }
}

/* ######### PAYMENT PAGE ######### */

/* =====================Stripe===================== */

.stripe-input {
  padding: 12px 16px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stripe-input.StripeElement--focus {
  border-color: #ffc439;
  box-shadow: 0 0 0 0.25rem rgba(255, 196, 57, 0.25);
}

.stripe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: #ffc439;
  color: black;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stripe-btn:hover {
  background-color: #ffb347;
  transform: translateY(-1px);
}

#card-errors {
  font-size: 14px;
}

/* ######### VEŽBE ######### */

/* =====================Video materijali/exercise_detail.html===================== */

.exercise-description {
    border: 1px solid rgba(0,0,0,0.1);
    background: #f8f9fa !important;
}

.video-js {
    border-radius: 0.5rem;
    overflow: hidden;
}

.vjs-big-play-button {
    background-color: rgba(255,193,7,0.8) !important;
    border-color: rgba(0,0,0,0.3) !important;
}

.vjs-control-bar {
    background: rgba(0,0,0,0.7) !important;
}

.vjs-play-progress {
    background-color: #ffc107 !important;
}

@media (min-width: 768px) {
  .my-custom-player {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 85vh;
    max-width: 90vw;
    aspect-ratio: 610 / 1080;
    width: auto;
    height: auto;
    background: #000 !important;
  }
  .my-custom-player video,
  .my-custom-player .vjs-tech {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
  }
}

/* =====================Exercise page and Section page===================== */

.card-header h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Progress Bar Enhancements */
.progress-bar-bg {
    background-color: #e9ecef;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.progress {
    height: 1.75rem;
    background-color: transparent;
}

.progress-bar {
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0.35rem;
}

/* List Group Items */
.list-group-item {
    border-radius: 0.75rem !important;
    margin-bottom: 0.5rem;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Disabled State */
.list-group-item.disabled {
    opacity: 0.65;
    background-color: #f8f9fa;
}

/* =====================detail.html===================== */

.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.card-header {
    padding: 0.75rem 1rem;
}

.exercise-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.bi {
    font-size: 1.1rem;
    vertical-align: -0.125em;
}

/* =====================exercises/list.html===================== */

.object-fit-cover {
    object-fit: cover;
    object-position: center;
}

.card-img-top {
    border-radius: 0.5rem 0.5rem 0 0;
}

.card-body {
    padding: 1rem;
}

.btn-warning {
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-warning:hover {
    transform: translateY(-1px);
}

/* =====================blogs/list.html===================== */

.blog-thumb-frame {
  width: 100%;
  height: 160px;                      /* Set your desired thumbnail height */
  background: #f8f9fa;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background: transparent;
}

@media (max-width: 768px) {
  .blog-thumb-frame {
    height: 100px;
  }
}
