/* Global Styles */
:root {
  --primary-color: #ff69b4;
  --secondary-color: #333;
  --text-color: #666;
  --light-color: #fff;
  --dark-color: #222;
  --gray-color: #f4f4f4;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--secondary-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.btn-primary:hover {
  background-color: #ff4d94;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--light-color);
  border: 2px solid var(--light-color);
}

.btn-secondary:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: 1000;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--light-color);
  transition: color 0.3s ease;
}

.header.scrolled .logo a {
  color: var(--secondary-color);
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light-color);
  line-height: 1;
  transition: color 0.3s ease;
}

.header.scrolled .logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--light-color);
  font-weight: 500;
  transition: var(--transition);
}

.header.scrolled .nav-links a {
  color: var(--secondary-color);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color) !important;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--light-color);
  margin: 5px;
  transition: var(--transition);
}

.header.scrolled .burger div {
  background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("images/mrcgym.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-color);
  padding: 0 20px;
  transition: background-image 1s ease-in-out;
  position: relative;
}

/* Loading state for hero */
.hero.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 3;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Background layers for seamless slideshow */
.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.bg-layer-1 {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--gray-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* Programs Section */
.programs {
  padding: 100px 0;
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.program-card {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-10px);
}

.card-image {
  height: 300px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.program-card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 2rem;
}

.card-content h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.program-features {
  list-style: none;
  margin: 1.5rem 0;
}

.program-features li {
  margin-bottom: 0.5rem;
}

.program-features i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
  background-color: var(--gray-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Calculator Section */
.calculator {
  padding: 100px 0;
  background-color: var(--light-color);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.calculator-card {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.calculator-card:hover {
  transform: translateY(-10px);
}

.calculator-header {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 1.5rem;
  text-align: center;
}

.calculator-header i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.calculator-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.calculator-form {
  padding: 2rem;
}

.calculator-form .form-group {
  margin-bottom: 1.5rem;
}

.calculator-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.calculator-form input,
.calculator-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.calculator-form select {
  background-color: var(--light-color);
  cursor: pointer;
}

.calculator-result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 5px;
  background-color: var(--gray-color);
  text-align: center;
  font-weight: 500;
  display: none;
}

.calculator-result.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Section */
.contact {
  padding: 100px 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.info-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.info-card i.fa-whatsapp {
  color: #25d366;
}

.info-card h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.info-card a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.info-card a:hover {
  color: var(--primary-color);
}

.info-card a[href*="wa.me"]:hover {
  color: #25d366;
}

.info-card a i {
  margin: 0 10px;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.info-card a i:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.map-container {
  height: 100%;
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: var(--light-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  z-index: 999;
  text-decoration: none;
  border: 2px solid transparent;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  border-color: #25d366;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo a {
  text-decoration: none;
  color: var(--light-color);
  display: block;
}

.footer-logo img {
  height: 100px;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: var(--light-color);
  margin: 0;
}

.footer-links h3,
.footer-social h3 {
  margin-bottom: 1.5rem;
  color: var(--light-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--light-color);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--light-color);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 100px;
  background-color: var(--primary-color);
  color: var(--light-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  z-index: 999;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  background-color: #ff4d94;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .about-content,
  .program-cards,
  .gallery-grid,
  .calculator-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .map-container {
    min-height: 350px;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    top: 70px;
    background-color: var(--light-color);
    height: calc(100vh - 70px);
    width: 50%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    transform: translateX(100%);
    transition: var(--transition);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    color: var(--secondary-color) !important;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    display: block;
    width: 100%;
    border-radius: 5px;
    transition: var(--transition);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary-color) !important;
  }

  .burger {
    display: block;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .features,
  .contact-info {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .map-container {
    min-height: 300px;
  }
}

@media screen and (max-width: 480px) {
  .nav-links {
    width: 70%;
    padding: 1.5rem;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.7rem 0.8rem;
  }

  .program-cards,
  .gallery-grid,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

/* Calculator Results */
.calories-summary,
.protein-summary,
.bmi-summary {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.macros-summary {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.macro-bars {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.5rem;
}

.macro-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.8rem;
  border-bottom: 1px solid #dee2e6;
}

.macro-bar:last-child {
  border-bottom: none;
}

.bar-label {
  width: 120px;
  font-weight: 500;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  font-size: 0.85rem;
}

.bar-label:contains("Karbonhidrat") {
  font-size: 0.75rem;
}

.bar-container {
  flex: 1;
  min-width: 0;
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.bar-value {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-top: 0.5rem;
  text-align: right;
}

/* Remove protein sources related styles */
.protein-sources,
.protein-sources-grid,
.protein-source-item,
.protein-source-item:hover,
.protein-source-item.animal,
.protein-source-item.dairy,
.protein-source-item.plant,
.protein-source-item strong,
.protein-source-item p,
.protein-tips,
.protein-tips ul,
.protein-tips li,
.protein-tips li:last-child,
.goal-message {
  display: none;
}

@media (max-width: 480px) {
  .bmi-result-container {
    padding: 1rem;
  }
  .bmi-value {
    font-size: 2.5rem;
  }
  .bmi-category {
    font-size: 1.2rem;
  }
  .bar-label {
    font-size: 0.8rem;
  }
  .bar-label:contains("Karbonhidrat") {
    font-size: 0.7rem;
  }
  .bar-value {
    font-size: 0.8rem;
  }
  /* Remove protein sources grid from media query */
  .protein-sources-grid {
    display: none;
  }
}

/* BMI Calculator Styles */
.bmi-result-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: fadeIn 0.5s ease;
  max-width: 380px;
  margin: 0 auto;
  padding: 0 0.6rem;
  overflow: hidden;
}

.bmi-summary {
  background: linear-gradient(135deg, var(--primary-color), #ff8cc6);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.bmi-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff69b4, #ff8cc6);
  border-radius: 4px 4px 0 0;
}

.bmi-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  position: relative;
}

.bmi-header i {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem;
  border-radius: 8px;
}

.bmi-header h3 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.bmi-main {
  text-align: center;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.bmi-value {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0.2rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
  letter-spacing: -1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bmi-category {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bmi-description {
  font-size: 0.85rem;
  opacity: 0.95;
  max-width: 100%;
  margin: 0 auto;
  line-height: 1.3;
  padding: 0 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -moz-box;
  -moz-box-orient: vertical;
  -moz-line-clamp: 2;
  display: box;
  box-orient: vertical;
  line-clamp: 2;
}

.bmi-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.6rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 0;
  width: 100%;
}

.detail-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.85rem;
}

.detail-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.detail-content span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-content strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bmi-recommendations {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
}

.bmi-recommendations::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  border-radius: 4px 4px 0 0;
}

.recommendation-section h4 {
  color: var(--secondary-color);
  margin-bottom: 0.6rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.3px;
}

.recommendation-section h4 i {
  color: var(--primary-color);
  font-size: 1rem;
  background: rgba(255, 77, 77, 0.1);
  padding: 0.4rem;
  border-radius: 6px;
}

.recommendation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommendation-list li {
  padding: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.recommendation-list li:hover {
  background-color: #f8f9fa;
  transform: translateX(4px);
}

.recommendation-list li:last-child {
  border-bottom: none;
}

.recommendation-list li i {
  color: #2ecc71;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  background: rgba(46, 204, 113, 0.1);
  padding: 0.3rem;
  border-radius: 4px;
}

.recommendation-list li span {
  flex: 1;
  line-height: 1.3;
  font-size: 0.8rem;
  color: #555;
}

/* BMI Indicator Styles */
.bmi-indicator {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.bmi-scale {
  display: flex;
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
}

.bmi-category {
  flex: 1;
  text-align: center;
  padding: 8px;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
}

.bmi-progress-bar {
  position: relative;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  margin: 15px 0;
}

.bmi-progress {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71, #f1c40f, #e74c3c);
  border-radius: 4px;
  width: 100%;
}

.bmi-marker {
  position: absolute;
  width: 4px;
  height: 16px;
  background: #2c3e50;
  top: -4px;
  transform: translateX(-50%);
  transition: left 0.3s ease;
}

.bmi-labels {
  display: flex;
  justify-content: space-between;
  color: #6c757d;
  font-size: 0.8rem;
  margin-top: 5px;
}

.bmi-labels span {
  position: relative;
  left: -50%;
}

.bmi-labels span:last-child {
  left: 0;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  right: 35px;
  top: 15px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}

.modal-close:hover {
  color: #bbb;
}

.gallery-item img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Modal Navigation Styles */
.modal-navigation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 16px 12px;
  border: none;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  z-index: 2001;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  max-width: 80%;
  max-height: 80vh;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .detail-content span {
    font-size: 0.7rem;
  }

  .detail-content strong {
    font-size: 0.8rem;
  }

  .detail-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 0.8rem;
  }
}
