/* =========================
  Root Variables & Base Styles
  ========================= */
:root {
  --color-emerald-50: #f0f4f9;
  --color-emerald-100: #e1e9f3;
  --color-emerald-200: #c3d3e7;
  --color-emerald-400: #012B61;
  --color-emerald-500: #012B61;
  --color-emerald-600: #012B61;
  --color-emerald-700: #012B61;
  --color-teal-500: #14b8a6;
  --color-teal-600: #0d9488;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9ca3af;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-white: #ffffff;
  --color-dark-blue: #181c32;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-gray-800);
  line-height: 1.5;
}

/* =========================
  Layout Containers
  ========================= */
.wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================
  Navbar
  ========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--color-emerald-100);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  width: auto;
}

.desktop-nav,
.desktop-cta {
  display: none;
}

.mobile-menu-btn {
  background: transparent;
  border: none;
  color: var(--color-gray-700);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 300px;
  background-color: var(--color-white);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.close-menu {
  background: transparent;
  border: none;
  color: var(--color-gray-700);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-menu-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  background: transparent;
  border: none;
  font-size: 13.33px;
  color: var(--color-gray-700);
  font-weight: 500;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  padding: 0.5rem 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav-link:hover,
.nav-link:hover {
  color: #012B61;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--color-gray-700);
  font-weight: 500;
  cursor: pointer;
  font-size: 13.33px;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.2s;
  text-decoration: none;
}

.mt-1 {
  margin-top: 1rem;
}

/* =========================
  Hero Section
  ========================= */
.hero,
.hero-section {
  position: relative;
  background: linear-gradient(to right, #012B61, var(--color-dark-blue));
  color: var(--color-white);
  padding-top: 4rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
}

.hero-container {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-emerald-100);
  line-height: 1.6;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

/* =========================
  Trainers Page
  ========================= */
.trainers-page .hero-section {
  background: linear-gradient(135deg, #012B61 0%, #1a4d8c 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  margin-bottom: 3rem;
}

.trainers-page .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.trainers-page .section-title {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.trainers-page .section-description {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================
  Carousel & Trainer Cards
  ========================= */
.trainers-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.trainer-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 2rem;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.trainer-card:hover {
  transform: translateY(-5px);
}

.trainer-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
}

.trainer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.3s ease;
}

.trainer-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trainer-info h3 {
  color: #012B61;
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.trainer-role {
  color: #666;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.trainer-expertise {
  color: #012B61;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.trainer-bio {
  color: #333;
  line-height: 1.6;
  font-size: 18px;
  text-align: justify;
}

.connect-btn {
  display: inline-block;
  background: #012B61;
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
  width: 25%;
}

.connect-btn:hover {
  background: #1a4d8c;
  transform: translateY(-2px);
}

/* Carousel Navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  color: var(--color-gray-700);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.carousel-btn:hover {
  background-color: var(--color-emerald-500);
  color: var(--color-white);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-gray-400);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.carousel-dot.active {
  background-color: var(--color-emerald-500);
}

/* =========================
  Buttons
  ========================= */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: #012B61;
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #012B61;
}

.btn-white {
  background-color: var(--color-white);
  color: #012B61;
}

.btn-white:hover {
  background-color: var(--color-emerald-50);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 0.75rem 3rem;
  font-size: 1.125rem;
}

/* =========================
  Sections & Cards
  ========================= */
.section {
  padding: 4rem 0;
}

.section-content {
  max-width: 1000px;
  margin: 0 auto;
}

.section-content h2 {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.container h2 {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.container.hero-container h2 {
  color: #fff; /* Keep hero section h2 white */
}

@media (max-width: 768px) {
  .container h2 {
    max-width: 100%;
    padding: 0 1rem;
  }
}

.section-content h2 {
  text-align: center;
}

.bg-light {
  background-color: var(--color-gray-50);
}

.bg-light-green {
  background-color: var(--color-emerald-50);
}

.about-description {
  font-size: 1.125rem;
  color: var(--color-gray-700);
  line-height: 1.7;
  text-align: justify;
}

.about-description p {
  margin-bottom: 1rem;
}

.card {
  background-color: var(--color-white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.card-content {
  padding: 0.75rem 1.5rem 1.5rem 1.5rem;
}

.card-center {
  text-align: center;
}

.card-border {
  border: 2px solid var(--color-emerald-200);
}

.card-border:hover {
  border-color: #012B61;
}

.accent {
  background-color: #012B61;
  color: var(--color-white);
}

.accent-gradient {
  background: linear-gradient(to right, #012B61, var(--color-dark-blue));
  color: var(--color-white);
}

.card-icon {
  margin: 0 auto 1rem;
  color: #012B61;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.daily-format {
  max-width: 600px;
  margin: 0 auto 3rem;
  border: 2px solid var(--color-emerald-200);
}

/* =========================
  Highlights & Sessions
  ========================= */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.highlight-icon {
  flex-shrink: 0;
  color: #012B61;
  margin-top: 0.25rem;
}

.session-times {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.session-time {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.session-label {
  font-weight: 500;
}

.session-hours {
  color: #012B61;
  font-weight: 600;
}

.break-time {
  color: var(--color-gray-600);
  font-weight: normal;
}

/* =========================
  Tabs
  ========================= */
.schedule-tabs {
  max-width: 1200px;
  margin: 0 auto;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  margin-bottom: 2rem;
  background-color: var(--color-emerald-50);
  padding: 0.25rem;
  border-radius: 0.5rem;
}

.tab-button {
  background: transparent;
  border: none;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  width: 100%;
}

.tab-button:hover {
  background-color: rgba(1, 43, 97, 0.1);
}

.tab-button.active {
  background-color: #012B61;
  color: var(--color-white);
  transform: none;
}

.tab-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tab-title {
  font-weight: 600;
}

.tab-subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
  font-family: 'Montserrat', sans-serif;
}

.tab-panels {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

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

.schedule-header p {
  color: var(--color-emerald-100);
  margin-bottom: 0;
}

.schedule-sessions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* =========================
  CTA Section & Footer
  ========================= */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(to right, #012B61, var(--color-dark-blue));
  color: var(--color-white);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-emerald-100);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-emerald-200);
}

footer {
  background-color: var(--color-gray-900);
  color: var(--color-white);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  color: var(--color-gray-400);
  margin-bottom: 0;
}

.back-home {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  background-color: #012B61;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-home:hover {
  background-color: #014CA1;
  transform: translateY(-1px);
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #012B61;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link:hover {
  transform: translateY(-2px);
  color: #1a4d8c;
}

/* =========================
  MEDIA QUERIES
  ========================= */

/* >= 640px */
@media (min-width: 640px) {
  .logo-text {
   display: block;
  }
  .btn-group {
   flex-direction: row;
  }
  .hero h1 {
   font-size: 3rem;
  }
}

/* >= 768px */
@media (min-width: 768px) {
  h2 {
   font-size: 2.5rem;
  }
  .card-grid-3 {
   grid-template-columns: repeat(3, 1fr);
  }
  .highlights-grid {
   grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
   font-size: 3.5rem;
  }
}

/* >= 1024px */
@media (min-width: 1024px) {
  .desktop-nav {
   display: flex;
   gap: 2rem;
  }
  .desktop-cta {
   display: flex;
   gap: 1rem;
  }
  .mobile-menu-btn {
   display: none;
  }
  .card-grid-4 {
   grid-template-columns: repeat(4, 1fr);
  }
  .highlights-grid {
   grid-template-columns: repeat(3, 1fr);
  }
}

/* Trainers section responsive layout */
@media (max-width: 1024px) {
  .trainer-card {
   grid-template-columns: 250px 1fr;
   gap: 1.5rem;
  }
  .trainer-image {
   height: 450px;
  }
  .desktop-nav {
   display: none;
  }
  .mobile-menu-btn {
   display: block;
  }
}

/* Trainers section mobile layout */
@media (max-width: 768px) {
  .hero,
  .hero-section {
   padding: 3rem 1rem;
  }
  .hero-content {
   width: 100%;
   max-width: 1000px;
  }
  .section-title {
   font-size: 2rem;
  }
  .section-description {
   font-size: 1rem;
  }
  .badge {
   font-size: 0.8rem;
   padding: 0.4rem 0.8rem;
  }
  h1, h2, h3 {
   word-wrap: break-word;
  }
  .trainers-section {
   padding: 1rem;
  }
  .trainer-card {
   grid-template-columns: 1fr;
   max-width: 500px;
  }
  .trainer-image {
   height: 500px;
  }
  .trainer-info {
   padding: 1.5rem;
  }
  .trainer-info h3 {
   font-size: 1.3rem;
  }
  .trainer-role {
   font-size: 0.9rem;
  }
  .trainer-bio {
   font-size: 0.9rem;
  }
  .connect-btn {
   width: 100%;
   text-align: center;
  }
  .carousel-btn {
   padding: 0.3rem;
  }
  .carousel-btn svg {
   width: 20px;
   height: 20px;
  }
  .tabs {
   grid-template-columns: repeat(4, 1fr);
   gap: 0.15rem;
   padding: 0.15rem;
  }
  .tab-button {
   padding: 0.75rem 0.5rem;
  }
  .tab-title {
   font-size: 0.875rem;
  }
  .tab-subtitle {
   font-size: 0.7rem;
  }
  .hero-title {
   font-size: 2rem;
  }
  .hero-description {
   font-size: 1rem;
  }
}

/* Trainers section extra small layout */
@media (max-width: 480px) {
  .trainer-image {
   height: 400px;
  }
  .trainer-info {
   padding: 1rem;
  }
  .tabs {
   grid-template-columns: repeat(4, 1fr);
   gap: 0.1rem;
   padding: 0.1rem;
  }
  .tab-button {
   padding: 0.5rem 0.25rem;
  }
  .tab-title {
   font-size: 0.75rem;
  }
  .tab-subtitle {
   font-size: 0.65rem;
  }
}
