/* Cards of Fitness programs */
.fitness-programs {
  padding: 0 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  box-sizing: border-box;
}

.fitness-programs h1 {
  font-size: 2.6rem;
  margin-bottom: 40px;
  color: #333;
  position: relative;
}

.fitness-programs h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f4b400, #ff6f61);
  margin: 12px auto 0;
  border-radius: 2px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.program-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 60px 40px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.program-card.water { background: linear-gradient(135deg, #007cf0, #00dfd8); }
.program-card.gym { background: linear-gradient(135deg, #ff512f, #dd2476); }
.program-card.stretching { background: linear-gradient(135deg, #f7971e, #ffd200); }
.program-card.yoga { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.program-card.intensive { background: linear-gradient(135deg, #fc5c7d, #6a82fb); }
.program-card.martial_arts { background: linear-gradient(135deg, #11998e, #38ef7d); }
.program-card.dance { background: linear-gradient(135deg, #ff9a9e, #fad0c4);}
.program-card.team_sports { background: linear-gradient(135deg, #36d1dc, #5b86e5);}
.program-card.diff_activity { background: linear-gradient(135deg, #ff6a00, #ee0979);}

.program-card h2 {
  font-size: 1.6rem;
  margin: 0 0 12px;
  position: relative;
  z-index: 2;
}
.program-card p {
  font-size: 1.1rem;
  margin: 0 0 40px;
  z-index: 2;
  position: relative;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-20deg);
  transition: left 0.5s;
  z-index: 1;
}
.program-card:hover::before {
  left: 100%;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}



/* Searching bar */
.search-wrapper {
  position: relative;
  width: 80%;
  max-width: 600px;
  margin: 20px auto;
}

.search-bar {
  display: block;
  width: 100%;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: 0.3s ease;
}

.search-bar:focus {
  outline: none;
  border-color: #007cf0;
  box-shadow: 0 0 5px rgba(0, 124, 240, 0.3);
}

/* Suggestions */
.autocomplete-list {
  position: absolute;
  top: 100%; 
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 5px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 0;
  overflow: hidden;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: #007cf0;
  color: #fff;
}

/* Highlighting */
mark {
  background-color: yellow;
  color: #000000;
  padding: 0 2px;
  border-radius: 3px;
}

@media (max-width: 575px) {
  .program-card h2 { font-size: 1.4rem; }
  .program-card p { font-size: 1rem; }
}

/* _____________________________________ */
/* DARK THEME STYLES*/
/* Program Cards */
dark-theme .fitness-programs {
  background-color: #121212;
  color: #f1f1f1;
}

.dark-theme .fitness-programs h1 {
  color: #f5f5f5;
}

.dark-theme .program-card {
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.dark-theme .program-card.water { background: linear-gradient(135deg, #005b99, #00a0a0); }
.dark-theme .program-card.gym { background: linear-gradient(135deg, #b42e2e, #831a57); }
.dark-theme .program-card.stretching { background: linear-gradient(135deg, #c47c00, #e0b000); }
.dark-theme .program-card.yoga { background: linear-gradient(135deg, #5b1bb1, #2b0073); }
.dark-theme .program-card.intensive { background: linear-gradient(135deg, #b04560, #4b50a5); }
.dark-theme .program-card.martial_arts { background: linear-gradient(135deg, #0c7267, #2dbf71); }
.dark-theme .program-card.dance { background: linear-gradient(135deg, #803a4a, #b35a70); }
.dark-theme .program-card.team_sports { background: linear-gradient(135deg, #1d3b73, #2985a5); }
.dark-theme .program-card.diff_activity { background: linear-gradient(135deg, #8a1a00, #b82e7a); }


/* Search Bar */
.dark-theme .search-bar {
  background-color: #1e1e1e;
  color: #f1f1f1;
  border: 1px solid #444;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.dark-theme .search-bar::placeholder {
  color: #aaa;
}

.dark-theme .search-bar:focus {
  border-color: #4da3ff;
  box-shadow: 0 0 8px rgba(77, 163, 255, 0.5);
}

/*  Autocomplete List */
.dark-theme .autocomplete-list {
  background-color: #1e1e1e;
  border: 1px solid #444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.dark-theme .suggestion-item {
  color: #f1f1f1;
  background-color: #1e1e1e;
  transition: background 0.2s ease;
}

.dark-theme .suggestion-item:hover,
.dark-theme .suggestion-item.active {
  background-color: #333;
  color: #fff;
}
/* === Scroll Progress Bar (under header) === */
#scrollProgress {
  position: fixed;
  top: 73px;
  left: 0;
  height: 8px;
  width: 0%;
  background: linear-gradient(90deg, #003366, #004c99, #0066cc);
  box-shadow: 0 0 12px rgba(0, 51, 102, 0.6);
  transition: width 0.25s ease-out;
  z-index: 9999;
}


.dark-theme #scrollProgress {
  background: linear-gradient(90deg, #66a6ff, #007cf0, #00dfd8);
  box-shadow: 0 0 10px rgba(0, 124, 240, 0.6);
}
