/* --- Global Styles --- */

:root {
  --primary-color: #f7d24a; /* A professional, warm yellow */
  --secondary-color: #4a4a4a; /* A dark gray for text */
  --accent-color: #2c3e50; /* A dark blue for contrast and text */
  --light-gray: #f4f4f4; /* A light background color */
  --max-width: 1200px;
  --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --header-height: 60px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--secondary-color);
  line-height: 1.6;
  background-color: var(--light-gray);
  text-align: center;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

hr {
  border: none;
  height: 2px;
  background-color: var(--primary-color);
  margin: 40px auto;
  width: 80%;
  max-width: 600px;
}

main {
  max-width: var(--max-width);
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

section {
  margin-bottom: 40px;
}

h1, h2, h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

h2 {
  font-size: 2em;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

/* --- Header & Navigation --- */

.main-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px 0;
  border-bottom: 5px solid var(--accent-color);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.logo-image {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-bottom: 10px;
}

.main-header h1 {
  color: var(--accent-color);
  font-size: 2em;
  margin-bottom: 5px;
}

.main-header p {
  color: var(--accent-color);
  font-size: 0.9em;
  margin-bottom: 15px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.main-nav a {
  color: var(--accent-color);
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: bold;
  background-color: #fff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav a:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Main Content Sections --- */

.promo-section {
  text-align: center;
}

.promo-card {
  background-color: var(--light-gray);
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.promo-price {
  color: #d9534f; /* A strong red for emphasis */
  font-size: 2.5em;
  font-weight: bold;
}

.promo-detail {
  font-size: 1.2em;
  margin: 5px 0;
}

.promo-trial {
  font-size: 0.9em;
  color: var(--secondary-color);
  margin-top: 15px;
  font-style: italic;
}

.facilities-section .card-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.facility-card {
  background-color: var(--light-gray);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
}

.facility-card img {
  border-radius: 5px;
  margin-bottom: 10px;
}

.facility-card figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: var(--secondary-color);
  padding: 5px;
}

.cta-link {
  font-weight: bold;
  color: var(--accent-color);
  margin-top: 5px;
  display: inline-block;
}

.schedule-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.schedule-card {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  border: 1px solid #ccc;
  padding: 12px 8px;
  text-align: left;
}

thead th {
  background-color: var(--accent-color);
  color: #fff;
  text-transform: uppercase;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

.trainer-section .trainer-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.trainer-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.trainer-details {
  text-align: left;
}

.trainer-details figcaption {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.trainer-description {
  margin-bottom: 15px;
}

.trophy-list {
  list-style: none;
  padding-left: 0;
}

.trophy-list li {
  margin-bottom: 5px;
}

.location-section .map-link {
  display: block;
  margin: 20px auto;
  width: 100%;
  max-width: 400px;
}

.map-image {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.address-details {
  font-style: normal;
  margin-top: 15px;
}

.contact-section .contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.contact-list li {
  width: 100%;
  max-width: 300px;
}

.contact-list a {
  display: flex;
  align-items: center;
  background-color: var(--light-gray);
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.contact-text {
  font-size: 1.1em;
  font-weight: bold;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  background-color: var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* --- Footer --- */

.main-footer {
  background-color: var(--accent-color);
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.main-footer p {
  margin: 0;
}

/* --- Media Queries for larger screens --- */

@media (min-width: 768px) {
  .header-content,
  .main-nav {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }
  .site-title-container {
    text-align: left;
    margin-left: 20px;
  }

  .main-nav ul {
    justify-content: flex-end;
  }

  .facilities-section .card-grid,
  .schedule-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }

  .facility-card,
  .schedule-card {
    flex: 1;
  }

  .trainer-section .trainer-profile {
    flex-direction: row;
    text-align: left;
  }

  .trainer-photo {
    width: 200px;
    height: 200px;
  }

  .contact-list {
    flex-direction: row;
    justify-content: center;
  }

  .contact-list li {
    flex-grow: 0;
  }
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--accent-color);
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none; /* Hidden by default */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* Efek Hover untuk Peta Lokasi */
.map-link:hover .map-image {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efek Hover untuk Kontak */
.contact-list a:hover {
  background-color: var(--primary-color);
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-list a:hover .contact-icon {
  filter: brightness(0.9);
}
