@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Helvetica+Neue:wght@400;700&display=swap');

/* Improve touch handling and prevent text selection issues on Safari */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

a, button {
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  -webkit-touch-callout: default;
}

/* Improve font rendering specifically for Safari */
h1, h2, h3, h4, h5, h6 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* CSS Reset for better cross-browser compatibility */
*, *::before, *::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  image-rendering: -webkit-optimize-contrast;
  /* Force GPU acceleration for images */
  transform: translateZ(0);
  will-change: auto;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  /* Optimize button interactions */
  transform: translateZ(0);
}

/* Reset and base styles */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%; /* Prevent iOS text size changes */
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Bebas Neue', 'Arial Black', 'Impact', sans-serif; /* Add fallbacks */
  background-color: #e8e8e0;
  color: #333;
  font-size: 1rem;
  letter-spacing: 1px; /* Add letter spacing for Bebas Neue */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Improve touch scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Prevent zooming on form focus in Safari */
  -webkit-text-size-adjust: 100%;
}

header {
  background: #e8e8e0;
  /* Fallback for browsers that don't support backdrop-filter */
  background: rgba(232, 232, 224, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  padding: 1.5rem 3rem; /* Reduced padding */
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between; /* Change to space-between */
  -webkit-align-items: center;
  align-items: center; /* Center all items vertically */
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  /* Performance optimizations */
  will-change: backdrop-filter;
  transform: translateZ(0);
  /* Reduce repaints on scroll */
  contain: layout style paint;
}

/* For browsers that support backdrop-filter, use transparent background */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  header {
    background: #e8e8e0;
  }
}

.header-inner {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 2rem; /* Add gap between logo and menu toggle */
  /* Fallback for older Safari versions that don't support gap */
  margin-right: 2rem;
}

.header-inner > * + * {
  margin-left: 2rem; /* Fallback spacing */
}

.logo {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo img:hover {
  opacity: 0.8;
}

.nav-wrapper {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center; /* Center nav items vertically */
}

nav {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center; /* Center nav items */
  gap: 2rem; /* Use gap instead of margin */
  /* Fallback for Safari gap support */
}

nav > * + * {
  margin-left: 2rem; /* Fallback spacing for nav items */
}

nav a {
  text-decoration: none;
  color: #111;
  font-size: 1.3rem;
  font-family: 'Bebas Neue', 'Arial Black', 'Impact', sans-serif; /* Add fallbacks */
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
  -webkit-transition: color 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap; /* Prevent text wrapping */
  -webkit-font-smoothing: antialiased;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: #333;
  transition: width 0.3s ease;
  -webkit-transition: width 0.3s ease;
}

nav a:hover {
  color: #555;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #111;
}

@media (max-width: 768px) {
  header {
    padding: 1rem 2rem;
    -webkit-flex-direction: column;
    flex-direction: column; /* Stack on mobile */
    -webkit-align-items: stretch;
    align-items: stretch;
  }

  .header-inner {
    -webkit-justify-content: space-between;
    justify-content: space-between;
    width: 100%;
    margin-right: 0; /* Reset margin for mobile */
  }

  .header-inner > * + * {
    margin-left: 0; /* Reset fallback spacing for mobile */
  }

  .nav-wrapper {
    display: none;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
    -webkit-align-items: center;
    align-items: center;
  }
  
  .nav-wrapper.show {
    display: -webkit-flex;
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 1rem;
  }

  nav > * + * {
    margin-left: 0; /* Reset fallback spacing for mobile nav */
  }
  
  nav a {
    display: block;
    text-align: center;
    padding: 0.8rem 0;
  }
}

.hero {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1500932334442-8761ee4810a7?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Better Safari performance */
  height: 90vh;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  text-align: center;
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  /* Reduce repaints */
  contain: layout style paint;
}

.hero img {
  max-width: 500px; /* Maximum size on desktop */
  width: 80%; /* Responsive width */
  height: auto; /* Maintain aspect ratio */
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
  -webkit-transition: opacity 0.3s ease;
  image-rendering: -webkit-optimize-contrast; /* Better image rendering on Safari */
}

.hero img:hover {
  opacity: 0.9;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(0,0,0,0.2) 0%, 
    rgba(0,0,0,0.1) 50%, 
    rgba(0,0,0,0.3) 100%
  );
  z-index: 1;
}

.hero h1 {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 1.2;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

.hero .buttons {
  position: relative;
  z-index: 2;
}

.hero .buttons a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 400;
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.hero .buttons a:hover {
  background: #fff;
  color: #333;
  border-color: #fff;
}

.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 2.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 3rem;
  color: #2c2c2c;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-family: 'Bebas Neue', cursive; /* Keep body text readable */
}

.courses {
  display: -webkit-flex;
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  
}

/* Fallback for Safari gap support in flex */
.courses > * + * {
  margin-left: 0; /* Remove fallback margin on mobile */
}

/* Add fallback margin only on desktop */
@media (min-width: 769px) {
  .courses > * + * {
    margin-left: 2rem;
  }
}

.course {
  -webkit-flex: 1 1 300px;
  flex: 1 1 300px;
  background-color: transparent;
  padding: 3rem 2rem;
  box-shadow: none;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0;
  overflow: visible;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  text-align: center;
  /* Performance optimizations */
  will-change: background-color, border-color;
  transform: translateZ(0);
}

.course:hover {
  transform: none;
  background-color: #e8e8e0;
  border-color: rgba(0,0,0,0.2);
}

.course img {
  display: none; /* Hide images */
}
.course h3 {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 1.5rem 0;
  color: #2c2c2c;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.course .course-links {
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.cards {
  display: block;
  margin-top: 2rem;
}

.card {
  background: transparent;
  padding: 2rem 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 2rem;
}

/* Safari fallback for gap */
.card > * + * {
  margin-left: 2rem;
}

.card:last-child {
  border-bottom: none;
}

.card:hover {
  background: rgba(255,255,255,0.8);
  padding: 2rem 1.5rem;
  transform: none;
}

.card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card h3 {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #2c2c2c;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

@media (max-width: 768px) {
  .card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .section {
    padding: 3rem 0;
    position: relative;
    padding-bottom: 4rem; /* Extra space for dots */
  }

  .courses {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 calc(50vw - 160px) 1rem 1rem; /* Left padding to center first item */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: 0;
    justify-content: flex-start; /* Keep flex-start for proper scrolling */
  }

  .courses::-webkit-scrollbar {
    display: none;
  }

  /* Gradient fade indicator on right */
  .section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to left, rgba(232,232,224,0.9), transparent);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
  }

  /* Hide gradient after scrolling */
  .section.scrolled::before {
    opacity: 0;
  }

  .course {
    flex: 1 1 300px;
    background-color: transparent;
    padding: 3rem 2rem;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0;
    overflow: visible;
    transition: all 0.3s ease;
    text-align: center;
    
    min-width: 280px;
    max-width: 320px;

  }

  .course:hover {
    transform: none;
    background-color: #e8e8e0;
    border-color: rgba(0,0,0,0.2);
  }

  /* Navigation dots for courses */
  .course-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
  }

  .course-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(44,44,44,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .course-dot.active {
    background: rgba(44,44,44,0.8);
    transform: scale(1.2);
  }

  .course h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    color: #2c2c2c;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .course a {
    font-size: 1rem;
  }
}

/* Add credentials navigation dots styling */
.credentials-nav {
  display: none; /* Hidden by default, shown only on mobile */
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
}

.credential-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(44,44,44,0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.credential-dot.active {
  background: rgba(44,44,44,0.8);
  transform: scale(1.2);
}

/* Show credentials navigation dots only on mobile */
@media (max-width: 768px) {
  .credentials-nav {
    display: flex;
  }
  
  /* Ensure section-featured has relative positioning for absolute dots */
  body.about-page .section-featured {
    position: relative;
    padding-bottom: 4rem; /* Extra space for dots */
  }
  
  /* Improve credentials grid positioning */
  body.about-page .credentials-grid {
    margin-bottom: 1rem; /* Space for dots */
  }
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: #999;
}
#golf a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #111; /* Same as the primary menu */
  font-size: 1rem;
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease; /* Smooth transition for hover effect */
}

#golf a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: #333; /* Same underline color as the primary menu */
  transition: width 0.3s ease;
}

#golf a:hover {
  color: #555; /* Change text color on hover */
}

#golf a:hover::after {
  width: 100%; /* Expand underline on hover */
}

.section h2 {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 2.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 3rem;
  color: #2c2c2c;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-family: 'Bebas Neue', cursive; /* Keep body text readable */
}

.section.unique-gatherings {
  background-color: #e8e8e0;
  padding: 5rem 2rem;
  position: relative;
}

.section.unique-gatherings::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.02), rgba(139, 195, 74, 0.02));
  z-index: -1;
}

.about.me {
  background-color: #fff;
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-image {
  flex: 0 0 100px;
  margin-bottom: 0;
}

.about-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #2c2c2c;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
  text-align: left;
}

.about-btn {
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: #2c2c2c;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  text-transform: uppercase;
}

.about-btn:hover {
  border-color: #2c2c2c;
  transform: translateY(-1px);
}

.contact-me {
  position: relative;
  background-image: url('https://res.cloudinary.com/dadvi4vtn/image/upload/v1750655861/CONTACT_IMAGE_s8vwod.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Better performance than fixed */
  padding: 4rem 2rem;
  margin: 0rem 0;
  border: none; /* Remove the existing borders */
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  contain: layout style paint;
}

.contact-me::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.contact-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-image {
  flex: 0 0 100px;
  margin-bottom: 0;
}

.contact-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 3px solid rgba(255,255,255,0.2); /* Add subtle border */
}

.contact-text {
  flex: 1;
}

.contact-text h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #fff; /* Change to white for contrast */
  letter-spacing: 2px;
  text-align: left;
  text-transform: uppercase;
}

.contact-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff; /* Change to white for contrast */
  margin-bottom: 1.5rem;
  text-align: left;
  font-family: 'Bebas Neue', cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-btn {
  font-size: 1rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-family: 'Bebas Neue', cursive;
  text-transform: uppercase;
}

.contact-btn:hover {
  background: #fff;
  color: #333;
  transform: translateY(-2px);
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.4;
  color: #fff; /* Change to white for contrast */
  margin: 0.8rem 0;
  text-align: left;
  font-family: 'Bebas Neue', cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info strong {
  color: #fff;
  font-weight: 400;
}

@media (max-width: 768px) {
  .contact-me {
    padding: 3rem 1.5rem;
    background-position: center;
  }

  .contact-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    max-width: 90%;
  }
  
  .contact-image {
    flex: none;
  }
  
  .contact-image img {
    width: 80px;
    height: 80px;
  }
  
  .contact-text h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .contact-text p,
  .contact-info p {
    text-align: center;
    font-size: 0.9rem;
  }

  .contact-btn {
    align-self: center;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

.section-standard {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-featured {
  background-color: #fff;
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}

.btn-primary {
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: #2c2c2c;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  text-transform: uppercase;

}

.btn-primary:hover {
  border-color: #2c2c2c;
  transform: translateY(-1px);
}

.card-horizontal {
  background: transparent;
  padding: 2rem 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.card-horizontal:last-child {
  border-bottom: none;
}

.card-horizontal:hover {
  background: rgba(255,255,255,0.8);
  padding: 2rem 1.5rem;
  transform: none;
}

.card-horizontal img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.card-horizontal .card-content {
  flex: 1;
}

.card-horizontal h3 {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #2c2c2c;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-horizontal p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* Responsive card layout */
@media (max-width: 768px) {
  .card-horizontal {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* About page specific styles */
.about-profile {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.profile-image {
  flex: 0 0 350px;
}

.profile-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.profile-content {
  flex: 1;
}

.profile-content h3 {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #2c2c2c;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.profile-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1.5rem;
  text-align: left;
}

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

.credential-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.credential-card h4 {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #2c2c2c;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.credential-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 3rem;
  font-weight: 400;
  color: #2c2c2c;
  display: block;
  letter-spacing: 2px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
}

.philosophy-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-quote {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 1.5rem;
  font-style: normal; /* Remove italic for Bebas Neue */
  color: #2c2c2c;
  margin: 2rem 0;
  line-height: 1.6;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.timeline-year {
  flex: 0 0 80px;
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 1.2rem;
  font-weight: 400;
  color: #2c2c2c;
  letter-spacing: 1px;
}

.timeline-content h4 {
  font-family: 'Bebas Neue', cursive; /* Changed to Bebas Neue */
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  color: #2c2c2c;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Keep body text readable with Helvetica Neue */
.about-text p, 
.contact-text p, 
.card-horizontal p, 
.credential-card p, 
.timeline-content p,
.profile-content p,
.contact-info p {
  font-family: 'Bebas Neue', cursive;
}

/* Pricing card styles */


.instructor-content h3 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #2c2c2c;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.club-content h3 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #2c2c2c;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Keep existing packages styles */
.packages-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  color: #333;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Modern packages section */
.packages-modern {
  padding: 3rem 2rem;
  background-color: #e8e8e0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  min-height: 10vh;
}

.packages-container {
  max-width: 1400px;
  margin: 0 auto;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 6rem 1fr; /* IE/Edge fallback */
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  /* Safari fallback for gap */
  grid-column-gap: 6rem;
  grid-row-gap: 6rem;
  -webkit-align-items: center;
  align-items: start;
  width: 100%;
  position: relative;
  /* Ensure proper alignment in Safari */
  place-items: center;
}

/* Add the vertical line */
.packages-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 2px;
  height: 100%;
  background-color: #999;
  z-index: 1;
}

.packages-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  color: hsl(0, 0%, 20%);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  z-index: 2;
  /* Ensure proper positioning in Safari */
  justify-self: end;
  text-align: right;
  padding-right: 1rem;
  padding-top: 0.5rem;
}

.packages-list {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 3rem;
  /* Safari fallback for gap */
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
  /* Ensure proper positioning in Safari */
  justify-self: start;
  padding-left: 1rem;
}

.packages-list > * + * {
  margin-top: 0rem; /* Fallback for gap */
}

.package-item {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  padding: 0rem 0; /* Add padding for better spacing */
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
}

.package-item::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #999;
  transition: background-color 0.3s ease;
  -webkit-transition: background-color 0.3s ease;
  will-change: background-color;
}

.package-item:hover::after {
  background-color: #333;
}

.package-item h3 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: #666;
  margin: 0 0 0.5rem 0; /* Add small bottom margin */
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  -webkit-transition: color 0.3s ease;
}

.package-item:hover h3 {
  color: #333;
}

.package-item p {
  font-size: 1rem;
  color: #888;
  margin: 0.5rem 0 0 0;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  font-family: 'Helvetica Neue', sans-serif;
}

.package-item:hover p {
  opacity: 1;
  max-height: 100px;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .packages-container {
    -ms-grid-columns: 1fr; /* IE/Edge fallback */
    grid-template-columns: 1fr;
    gap: 3rem;
    grid-column-gap: 3rem;
    grid-row-gap: 3rem;
    text-align: center;
    place-items: center;
  }
  
  /* Hide vertical line on mobile */
  .packages-container::before {
    display: none;
  }
  
  .packages-title {
    font-size: clamp(3rem, 12vw, 6rem);
    justify-self: center;
    text-align: center;
    padding-right: 0;
  }
  
  .packages-list {
    gap: 2rem;
    margin-top: 0;
    justify-self: center;
    padding-left: 0;
  }

  .packages-list > * + * {
    margin-top: 2rem; /* Adjust fallback for mobile */
  }
  
  .package-item h3 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
}

/* Hero-style About Me section */
.about-me-hero {
  position: relative;
  background-image: url('https://res.cloudinary.com/dadvi4vtn/image/upload/v1750655860/ABOUT_ME_IMAGE_nusm3z.png');
  background-size: cover;
  background-position:left; /* Focus on Marcus on the left */
  height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center; /* Center the content horizontally */
  padding: 0 4rem;
  margin: 0rem 0;
}

.about-hero-content {
  position: absolute;
  z-index: 2;
  max-width: 50vw; /* Use viewport width instead of fixed pixels */
  color: #fff;
  text-align: left;
  right: 5vw; /* Use viewport units instead of percentage */
  max-width: 45vw;
  top: 22.5vh; /* Use viewport height */
  transform: translateY(-50%);
  padding-left: 2rem;
}

.about-hero-content h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3rem, 6vw, 4.5rem); /* Smaller heading - desktop only */
  margin-bottom: 2.5rem; /* Less spacing - desktop only */
  letter-spacing: 4px; /* Tighter spacing - desktop only */
  margin-bottom: 4rem;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}

.about-hero-content p {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(1.1rem, 2vw, 1.4rem); /* Smaller text - desktop only */
  letter-spacing: 1px; /* Tighter spacing - desktop only */
  letter-spacing: 2px;
  margin-bottom: 0;
  color: #fff;
  text-transform: uppercase;
  font-weight: 400;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .about-me-hero {
    height: 50vh; /* Increase height to contain content better */
    padding: 2rem 1rem; /* Reduce horizontal padding */
    justify-content: center; /* Center content */
    background-position: left;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent content overflow */
    margin-bottom: 2rem; /* Add space before next section */
  }
  
  .about-hero-content {
    position: relative;
    text-align: center;
    max-width: 90%; /* Reduce width for better fit */
    right: auto;
    top: auto;
    transform: none;
    padding: 1rem;
    margin: auto; /* Center both vertically and horizontally */
    z-index: 2;
  }
  
  .about-hero-content h2 {
    font-size: clamp(2.5rem, 8vw, 4rem); /* Reduce font size */
    margin-bottom: 1rem; /* Reduce margin */
    letter-spacing: 2px; /* Reduce letter spacing */
    line-height: 0.9;
    margin-right: 0; /* Remove right margin */
    transform: none; /* Remove transform */
  }
  
  .about-hero-content p {
    font-size: clamp(0.9rem, 3vw, 1.2rem); /* Smaller text */
    letter-spacing: 1px;
    line-height: 1.4;
    max-width: 100%;
    padding: 0;
    margin: 0; /* Remove margins that cause overflow */
  }
}

/* About page mobile optimizations - only applies to about.html */
@media (max-width: 768px) {
  /* About page specific mobile styles */
  body.about-page .about-profile {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  body.about-page .profile-image {
    flex: none;
    order: 1;
  }
  
  body.about-page .profile-image img {
    width: 250px;
    height: 300px;
    margin: 0 auto;
  }
  
  body.about-page .profile-content {
    order: 2;
  }
  
  body.about-page .profile-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  body.about-page .profile-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
    padding: 0 1rem;
  }
  
  /* Improve credentials grid on mobile */
  body.about-page .credentials-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem 2rem;
  }
  
  body.about-page .credentials-grid::-webkit-scrollbar {
    display: none;
  }
  
  body.about-page .credential-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    min-height: 200px;
  }
  
  body.about-page .credential-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  
  body.about-page .credential-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Timeline mobile optimization */
  body.about-page .timeline-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
  }
  
  body.about-page .timeline-year {
    flex: none;
    font-size: 1.4rem;
    color: #2c2c2c;
    font-weight: bold;
  }
  
  body.about-page .timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  body.about-page .timeline-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
  }
  
  /* Philosophy section mobile */
  body.about-page .philosophy-quote {
    font-size: 1.2rem;
    line-height: 1.5;
    padding: 0 1rem;
    margin: 1.5rem 0;
  }
  
  body.about-page .philosophy-section p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 1rem;
    text-align: left;
  }
  
  /* Button improvements */
  body.about-page .btn-primary {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto !important;
    padding: 1rem 2rem;
    text-align: center;
  }
  
  /* Section spacing improvements */
  body.about-page .section-standard,
  body.about-page .section-featured {
    padding: 2rem 1rem;
  }
  
  body.about-page .section-standard h2,
  body.about-page .section-featured h2 {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
}

/* HOME PAGE SPECIFIC STYLES - Update this section */
@media (max-width: 768px) {
  /* Home page hero optimizations - only when body has home-page class */
  body.home-page .hero img {
    max-width: 350px;
    width: 90%;
  }
  
  body.home-page .hero .buttons {
    flex-direction: column;
    gap: 2rem; /* Increased gap */
    width: 100%;
    max-width: 300px;
    padding: 0 1rem;
    margin: 0 auto;
  }
  
  body.home-page .hero .buttons a {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0; /* Add vertical margin between buttons */
    box-sizing: border-box;
    font-size: 0.9rem;
    display: block;
  }
  
  /* Force spacing between first and second button specifically */
  body.home-page .hero .buttons a:first-child {
    margin-bottom: 1rem;
  }
  
  /* Home page packages section */
  body.home-page .packages-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  body.home-page .packages-container::before {
    display: none;
  }
  
  body.home-page .about-hero-content {
    padding: 0 1rem;
  }
  
  body.home-page .about-hero-content h2 {
    margin-right: 0;
    text-align: left;
  }
}

/* LESSONS PAGE SPECIFIC STYLES */
@media (max-width: 768px) {
  /* Lessons page instructor profile */
  body.lessons-page .instructor-profile {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  body.lessons-page .instructor-image {
    flex: none;
  }
  
  body.lessons-page .instructor-image img {
    height: 250px;
    width: 200px;
    margin: 0 auto;
  }
  
  /* Lessons page hero */
  body.lessons-page .hero {
    height: 60vh;
  }
  
  body.lessons-page .hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  
  body.lessons-page .hero p {
    font-size: 1rem;
    padding: 0 2rem;
    line-height: 1.5;
  }
}

/* CLUB PAGE SPECIFIC STYLES */
@media (max-width: 768px) {
  /* Club page intro section */
  body.club-page .club-intro {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  body.club-page .club-image img {
    height: 250px;
  }
  
  body.club-page .club-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  body.club-page .club-content p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 1rem;
  }
  
  /* Club page hero */
  body.club-page .hero {
    height: 60vh;
  }
  
  body.club-page .hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  
  /* Fix section-featured overlap issue on mobile */
  body.club-page .section-featured {
    padding: 3rem 1rem; /* Increase padding */
    text-align: center;
  }
  
  body.club-page .section-featured h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    padding: 0 0.5rem;
  }
  
  body.club-page .section-featured p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem; /* Add more space before button */
    padding: 0 1rem;
    max-width: 100%;
  }
  
  body.club-page .btn-primary {
    display: inline-block;
    width: auto;
    max-width: 280px;
    padding: 1rem 2rem;
    margin: 1rem auto;
    font-size: 0.9rem;
    white-space: nowrap; /* Prevent button text from wrapping */
  }
}
