/* Store buy row and inline controls for new layout */
.store-buy-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}
.store-buy-form {
  width: 100%;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}
.store-qty-inline {
  width: 48px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-align: center;
}
.store-code-inline {
  width: 110px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.store-buy-btn-inline {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.store-buy-btn-inline:hover {
  background: #c32020;
}
/* Store grid and card styles for new layout */
.store-grid {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin: 0px 0;
  align-items: center;
}
.store-card {
  margin-bottom: 0;
}
.store-card {
  width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 18px 12px 12px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.store-card {
  width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 18px 12px 12px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.store-image {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
.store-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #222;
}
.store-price {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #c32020;
}
.store-buy-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}
.store-buy-form {
  width: 100%;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}
.store-qty-inline {
  width: 36px;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 0.95rem;
}
.store-code-inline {
  width: 80px;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}
.store-buy-btn-inline {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.store-buy-btn-inline:hover {
  background: #c32020;
}
.store-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 24px 18px 18px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.store-image {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
.store-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}
.store-price {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #c32020;
}
.store-buy-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.store-qty {
  width: 60px;
  margin-bottom: 8px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.store-code {
  width: 120px;
  margin-bottom: 8px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.store-buy-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.store-buy-btn:hover {
  background: #c32020;
}
/* Store grid and card styles */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));
  gap: 30px;
  margin:0;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-left: 50px;
}
.store-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 18px 18px 18px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 500px;
  gap: 20;
}
.store-image {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
.store-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}
.store-price {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #c32020;
}
.store-rating {
  margin-bottom: 8px;
}
.star {
  color: #ccc;
  font-size: 1.1rem;
  margin: 0 1px;
}
.star.filled {
  color: #f5b301;
}
.store-buy-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.store-qty {
  width: 60px;
  margin-bottom: 8px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.store-buy-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.store-buy-btn:hover {
  background: #c32020;
}
/* Popup notification for flash messages */
.popup-notice {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 9999;
  background: #222;
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  font-size: 1.1rem;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.popup-notice.success {
  background: #2e7d32;
  color: #fff;
}
.popup-notice.error {
  background: #c32020;
  color: #fff;
}
/* TSHEN Global Styles - Premium Edition */
:root {
  /* Premium theme tokens */
  --bg: #ffffff;
  --surface: #f8f8f8;
  --card: #ffffff;
  --hero: transparent;
  --text: #111111;
  --muted: #6e6e73;
  --border: #e5e5e7;
  --bg-invert: #000000;
  --text-invert: #ffffff;
  --accent: #c32020; /* subtle red accent for CTAs */
  --accent-light: rgba(195, 32, 32, 0.1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --anim-dur: .6s;
  --anim-stagger-step: 90ms;
}

.cta-btn, .gallery img {
        transition: none;
        margin-bottom: 60px;
}

* {
   box-sizing: border-box;
   }
/* GTSectraFine-Book font */
@font-face {
  font-family: 'GTSectraFine-Book';
  src: url('fonts/GTSectraFine-Book.woff2') format('woff2'),
       url('fonts/GTSectraFine-Book.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body { 
  margin:0; 
  font-family: 'GTSectraFine-Book', Georgia, serif; 
  background:var(--bg-invert); 
  color:var(--text); 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top:80px; /* Added padding to account for fixed header */
}
/* Site Header (black background with navigation) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: #000;
  z-index: 1000;
  box-shadow: var(--shadow);
}

/* Profile Dropdown Styles */
.profile-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: var(--shadow);
  z-index: 1001;
  border-radius: 8px;
  overflow: hidden;
}

.dropdown-content a {
  color: var(--text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: var(--accent-light);
  color: var(--accent);
}

.profile-dropdown:hover .dropdown-content {
  display: block;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

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

.logo {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
  background-color: #8b0000;
  padding: 5px 10px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 15px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.main-nav a:hover, 
.main-nav a.active {
  color: #e63946;
}

.auth-container {
  display: flex;
  align-items: center;
}

.auth-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

/* Inspiring Classes Section - Third Space London Style */
.inspiring-classes-section {
     width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(40% - 40vw);
  padding: 80px 0;
  background-color: transparent;
  text-align: left;
  
}

.inspiring-classes-header {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
   
}

.inspiring-classes-header h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  text-transform: lowercase;
  letter-spacing: -0.5px;
}

.inspiring-classes-header p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--bg);
}

.class-slider-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.class-cards-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 80%;
  margin: 0 auto;
}

.class-cards-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.class-card-horizontal {
  position: relative;
  height: 450px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 0;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.class-card-horizontal.animate-in {
  animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.class-card-horizontal:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.class-card-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.class-card-horizontal:hover img {
  transform: scale(1.05);
}

.class-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  transform: translateY(0);
  transition: transform 0.4s ease;
  height: 100%;
}

.class-info {
  max-width: 80%;
  transform: translateY(calc(100% - 40px));
  transition: transform 0.5s ease;
}

.class-card-horizontal:hover .class-info {
  transform: translateY(0);
}

.class-card-horizontal:hover .class-card-overlay {
  transform: translateY(-5px);
}

.class-card-overlay h3 {
  color: white;
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.class-description {
  color: white;
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.5s ease;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.class-card-horizontal:hover .class-description {
  opacity: 1;
  max-height: 200px;
}

.class-card-horizontal:hover .class-card-overlay h3 {
  transform: translateY(-5px);
}

.class-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  color: black;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: scale(1);
  align-self: flex-end;
  z-index: 2;
}

.class-card-btn:hover {
  background-color: var(--accent);
  color: white;
  transform: scale(1.1);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.slider-nav:hover {
  background-color: white;
  color: black;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

@media (max-width: 992px) {
  .class-card-horizontal {
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  .class-card-horizontal {
    min-width: 250px;
    height: 250px;
  }
  
  .class-info {
    max-width: 70%;
  }
  
  .class-description {
    font-size: 0.8rem;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .class-card-horizontal {
    width: 100%;
  }
}

/* Contact Form Styles */
.contact-section {
  padding: 60px ;
}

.black-overlay {
  background-color: var(--bg-invert);
  color: white;
  position: relative;
  padding: 100px 0;
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
}
.contact-form { 
  background: var(--card); 
  padding: 40px; 
  border-radius: 4px; 
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, 
.form-group select,
.form-group textarea { 
  width: 100%; 
  padding: 16px; 
  border: 1px solid var(--border); 
  border-radius: 2px; 
  background: var(--bg);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease;
}
.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .cta-btn { 
  margin-top: 20px; 
  width: 100%; 
  background: var(--accent);
  color: var(--text-invert);
  border: none;
  padding: 16px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border-radius: 30px;
  transition: background 0.2s ease;
}
.contact-form .cta-btn:hover {
  background: var(--bg-invert);
  color:#fff;
  border-radius: 30px;
}
.primary-nav { display:flex; gap:22px; justify-content:start; margin-left: 100px; color:var(--accent);}
.primary-nav a { color:var(--text-invert); font-weight:600; transition: color 0.2s ease; }
.primary-nav a:hover { color:var(--accent); opacity:.9; }
.primary-nav a.active { color:var(--accent); font-weight:500; }
.header-actions { display:flex; justify-content:flex-end; align-items:center; }
.login-btn { color:var(--text-invert); font-weight:600; }
.login-btn:hover { color:var(--accent); opacity:.9; }
a {
  color:var(--text);
  text-decoration:none; 
  margin-right:15px;
  transition: color 0.2s ease;
}
a:hover { color:var(--bg-invert); }
a.active {
  color: var(--accent);
  font-weight: 500;
}
/* Premium Typography Scale */
h1 { font-size: clamp(2.4rem, 2.2rem + 1vw, 3.2rem); line-height:1.1; letter-spacing:-.02em; font-weight:700; margin-bottom:1rem; }
h2 { font-size: clamp(1.8rem, 1.6rem + 0.5vw, 2.4rem); line-height:1.15; letter-spacing:-.01em; font-weight:600; margin-bottom:0.8rem; color: var(--surface); }
h3 { font-size: clamp(1.3rem, 1.2rem + 0.25vw, 1.6rem); line-height:1.2; letter-spacing:-.005em; font-weight:600; margin-bottom:0.6rem; }
p { font-size:1.05rem; line-height:1.7; color:var(--text); margin-bottom:1.2rem; }
.small { font-size:.9rem; opacity:.85; }
.p2 {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}
/* Small nav icon next to Login */
.nav-icon { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; margin-right:6px; vertical-align:middle; }
   
.container { 
  max-width:1400px; 
  margin:20px auto; 
  background:var(--hero); 
  padding:20px; 
  border-radius:8px;
 }

/* Sidebar layout for logged-in users */
.main-with-sidebar {
  display: flex;
  min-height: 100vh;
  z-index: 99;
}

.container-with-sidebar {
  flex: 1;
  padding: 20px;
  margin-left: 250px; /* Width of sidebar */
  z-index: 99;
}

.container2 { 
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(40% - 40vw);
 
  background:var(--hero); 
  padding:20px; 
  border-radius:8px;
 }

button { 
  background:var(--accent);
   color:#fff; 
   border:none; 
   padding:8px 12px; 
   border-radius:30px; 
   font-size: .9rem;
   cursor:pointer; 
   font-weight:600;
  }

  .contact-section {
    background-image: url('coach.jpg');
    background-blend-mode: darken;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50px;
    padding: 100px;
    text-align: center;
    background-color: #0000004d;
    opacity: 1;
  }
input, select, textarea { 
  padding:8px; 
  margin-right:6px; 
}
table { 
  width:100%; 
  border-collapse:collapse; 
}
th, td { 
  border-bottom:1px solid #eee; 
  padding:8px; 
}
.logo img { 
  height:40px; 
  display:block; 
}
.notice { 
  padding:8px; 
  border-radius:4px; 
  background:#f7efef; 
  border:1px solid #e1c5c5; 
}
/* Sidebar Layout */
.layout { 
  display:flex; 
  min-height:100vh; 
}
.sidebar { 
  width:240px; 
  background:var(--bg-invert); 
  color:var(--text-invert);
  padding:20px; 
  position:sticky; 
  top:0; 
  height:100vh; 
  overflow:auto; 
  transform:translateX(0); 
  transition:transform .2s ease;
  z-index:99;
}
.sidebar nav { 
  display:flex; 
  flex-direction:column; 
  gap:10px; 
}
.sidebar a { 
  margin:0; 
  padding:8px 10px; 
  border-radius:6px; 
  color:var(--text-invert);
}
.sidebar a:hover { 
  background:rgba(255,255,255,0.08); 
}
.main-content { 
  flex:1; 
  display:flex; 
  flex-direction:column; 
}
.sidebar-toggle {
   display:none; 
   margin:10px; 
   background:transparent; 
   color:var(--accent); 
   border:1px solid var(--accent); 
  }
/* Home Hero Layout (no color changes) */
.hero { 
  text-align:left; 
  padding:40px 20px; 
}
.hero h1 { 
  font-size:2.8rem; 
  line-height:1.1; 
  margin:0 0 16px; 
  font-weight:700; 
  color: var(--surface);
}
.hero h2 { 
  font-size:1.4rem; 
  margin:0 0 20px; 
  font-weight:400; 
  opacity:0.8; 
}
.hero p { 
  font-size:1.1rem; 
  margin:0 0 24px; 
  color: var(--surface);
}
.cta-links { 
  display:flex; 
  gap:16px; 
  justify-content:left; 
  flex-wrap:wrap; 
}
.cta-btn { 
  background-color:var(--accent);
  color:#fff;
  padding:12px 24px; 
  border-radius:30px; 
  font-weight:600; 
  display:inline-block; 
  border: none;
}
.benefits { 
  margin:40px 0; 
}
.benefits h2 { 
  font-size:1.8rem; 
  margin:0 0 16px; 
  text-align:center; 
}
.benefits ul { 
  list-style:none; 
  padding:0; 
  margin:20px 0; 
}
.benefits li { 
  padding:8px 0; 
  border-left:3px solid var(--accent); 
  padding-left:16px; 
  margin:12px 0; 
}
/* Reveal animations and micro-interactions (no color changes) */
.reveal { 
   opacity:0; 
   transform:translateY(12px); 
   transition:opacity var(--anim-dur) var(--ease-out), transform var(--anim-dur) var(--ease-out); 
  }
.reveal.in-view {
   opacity:1; transform:none; 
  }
.stagger-item { 
   opacity:0; 
   transform:translateY(8px); 
   transition:opacity var(--anim-dur) var(--ease-out), transform var(--anim-dur) var(--ease-out); 
   transition-delay: calc(var(--i, 0) * var(--anim-stagger-step)); 
  }
.stagger-item.in-view { 
   opacity:1; transform:none; 
  }
.cta-btn { 
   transition:transform .2s ease, box-shadow .2s ease; 
  }
  
.cta-btn:hover { 
  transform:translateY(-2px); 
  box-shadow:0 6px 14px rgb(0, 0, 0); 
  background-color: #ffffff;
    color: var(--accent);
}
.gallery img { 
   transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; 
  }
.gallery img:hover { 
   transform:scale(1.015); 
   box-shadow:0 6px 14px rgba(0,0,0,0.10); 
   border-color:rgba(255,255,255,0.12); 
  }
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-item { transition:none; }
  .cta-btn, .gallery img { transition:none; }
}
/* Hero Banner Grid (layout only) */
.hero-banner { 
  display:grid; 
  grid-template-columns:1.2fr 1fr; 
  gap:24px; 
  align-items:center; 
}
/* Image Sections (layout only, no color changes) */
.hero-media { 
  margin:20px 0; 
}
.hero-media img { 
  width:100%; 
  height:auto; 
  border-radius:8px; 
  display:block; 
}
.feature-split { 
  display:flex; 
  gap:80px; 
  align-items:center; 
  margin:40px 0; 
}
.feature-split .feature-image { 
  flex:1; 
  
}
.feature-split .feature-image img { 
  width:100%; 
  height:auto; 
  border-radius:30px; 
  display:block; 
}
.feature-split .feature-copy { 
  flex:1; 
}
.gallery { 
  display:grid; 
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); 
  gap:16px; 
  margin:20px 0; 
}
.gallery img { 
  width:100%; 
  height:auto; 
  border-radius:8px; 
  display:block; 
  border:1px solid var(--border); 
}
.hero-banner { 
  display:grid; 
  grid-template-columns:1.2fr 1fr; 
  gap:24px; 
  align-items:center; 
}
/* Featured Studios Carousel */
.carousel { 
  display:flex; 
  gap:16px; 
  overflow-x:auto; 
  padding:10px 4px; 
  scroll-snap-type:x mandatory; 
  -webkit-overflow-scrolling:touch; 
}
.carousel::-webkit-scrollbar { 
  height:8px; 
}
.carousel-item { 
  flex:0 0 280px; 
  background:var(--card); 
  border-radius:8px; 
  box-shadow:none; 
  border:1px solid var(--border); 
  scroll-snap-align:start; 
}
.carousel-item img { 
  width:100%; 
  height:180px; 
  object-fit:cover; 
  border-radius:8px 8px 0 0; 
  display:block; 
}
.carousel-item .copy { 
  padding:12px; 
}
.carousel-item h3 { 
  margin:0 0 6px; 
  font-size:1.1rem; 
}
.carousel-item p { 
  margin:0 0 10px; 
  font-size:.95rem; 
  opacity:.8; 
}
.carousel-item .cta-btn { 
  padding:8px 12px; 
  font-size:.9rem; 
}
.carousel-item { 
  transition:transform .2s ease, box-shadow .2s ease; 
}
.carousel-item:hover { 
  transform:translateY(-2px); 
  box-shadow:0 6px 14px rgba(0,0,0,0.10); 
}
/* Class Listings Cards */
.filters { 
  display:flex; 
  gap:12px; 
  align-items:center; 
  margin:12px 0 18px; 
  flex-wrap:wrap; 
}
.muted { 
  opacity:.75; 
}
.card-grid { 
  display:grid; 
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); 
  gap:16px; 
}
.card { 
  background:var(--card); 
  border-radius:8px; 
  box-shadow:none; 
  border:1px solid var(--border); 
  overflow:hidden; 
}
.card img { 
  width:100%; 
  height:160px; 
  object-fit:cover; 
  display:block; 
}
.card-body { 
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right:20px; 
  padding-top: 20px;
}
.card .meta { 
  display:flex; 
  gap:8px; 
  font-size:.9rem; 
  opacity:.8; 
  margin:6px 0 10px; 
  flex-wrap:wrap; 
}
.card .actions { 
  display:flex; 
  gap:8px; 
  align-items:center; 
  flex-wrap:wrap; 
  padding: 20px;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 1rem;
  align-items: center;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right:20px; 
  padding-top: 20px;
}

.card-actions a.cta-btn,
.card-actions button[type="submit"] {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 0 15px;
  box-sizing: border-box;
  margin: 0;
}

.card-actions form {
  display: flex;
  height: 40px;
  margin: 0;
}
.card .cta-btn { 
  padding:8px 12px; 
  font-size:.9rem; 
}
/* Class Detail */
.detail-header { 
  padding:10px 0; 
}
.studio-info { 
  background:var(--card); 
  padding:12px; 
  border-radius:8px; 
  box-shadow:none; 
  border:1px solid var(--border); 
}
.map-preview { 
  margin-top:12px; 
}
.map-box { 
  height:220px; 
  background:#ddd; 
  border-radius:8px; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  color:#555; 
}
.reviews .review { 
  background:#fff; 
  padding:10px 12px; 
  border-radius:6px; 
  margin:10px 0; 
  box-shadow:none; 
  border:1px solid var(--border); 
}
/* Dashboard */
.topbar { 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
  margin-bottom:12px; 
}
.avatar { 
  width:36px; 
  height:36px; 
  border-radius:50%; 
  overflow:hidden; 
  border:1px solid var(--muted); 
  display:inline-block; 
}
.avatar img { 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  display:block; 
}
.stats-grid { 
  display:grid; 
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); 
  gap:12px; 
  margin-bottom:16px; 
}
.stat-card { 
  background:var(--card); 
  padding:12px; 
  border-radius:8px; 
  box-shadow:none; 
  border:1px solid var(--border); 
}
/* Auth Forms */
.auth-wrap { 
 padding-top: 80px ;
 padding-bottom: 80px ;
  display:flex; 
  justify-content:center; 
}
.auth-card { 
  width:100%; 
  max-width:420px; 
  background:var(--card); 
  padding:20px; 
  border-radius:12px; 
  box-shadow:none; 
  border:1px solid var(--border); 
}
.auth-title { 
  margin:20 20 8px; 
  text-align:center; 
}
.auth-input { 
  width:100%; 
  padding:12px; 
  border:1px solid var(--muted); 
  border-radius:8px; 
  margin:8px 0; 
  background:#fff; 
}
.auth-btn { 
  padding:12px; 
  font-size:1rem; 
  border-radius:8px; 
  margin-top: 10px;
}
.auth-links { 
  text-align:center; 
  margin:10px 0; 
}
.small-link { 
  color:var(--accent); 
}
.auth-divider { 
  height:1px; 
  background:var(--muted); 
  margin:20px; 
  margin-top: -30px;
  

}
.form-grid { 
  display:grid; 
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); 
  gap:8px; 
  margin:6px 0; 
}
.radio { 
  display:flex; 
  align-items:center; 
  gap:6px; 
  padding:8px; 
  border:1px solid var(--muted); 
  border-radius:8px; 
}
.radio input { 
  display:none; 
}
.radio span { 
  cursor:pointer; 
}
.radio:hover { 
  border-color:var(--accent); 
}
.radio input:checked + span { 
  color:var(--accent); 
}
/* Dark Hero Variant */
.hero-dark { position:relative; background-image:url('fitness.jpg'); background-position:center; background-size:cover; border-radius:30px; min-height:570px; display:flex; align-items:center; padding:40px 20px; color:#fff; }
.hero-dark::before { content:""; position:absolute; inset:0; background:rgba(0,0,0,0.55); border-radius:inherit; }
.hero-dark .hero-content { position:relative; max-width:720px; padding-left: 40px; }
.hero-dark h1 { font-size:2.8rem; line-height:1.05; margin:0 0 14px; color:#fff; font-weight:700; letter-spacing:.01em; }
.hero-dark p { font-size:1.1rem; margin:0 0 18px; opacity:.95; }
.cta-blue { background:#1663ff; border-color:#1663ff; color:#fff; }
.cta-blue:hover { filter:brightness(1.05); }
/* Barry's-style Hero */
.hero-bar { position:relative; background-image:url('fitness.jpg'); background-position:center; background-size:cover; border-radius:30px; min-height:70vh; display:flex; align-items:center; justify-content:center; padding:40px 20px; color:#fff; }
.hero-bar { animation: hero-bg-zoom 16s ease-in-out infinite alternate; }
.hero-bar .stagger-item { will-change: transform, opacity; }
.hero-bar .cta-btn { border-radius:26px; padding:12px 22px; }
.hero-bar .cta-btn:hover { transform:translateY(-1px); box-shadow:0 6px 14px rgb(0, 0, 0); }
@keyframes hero-bg-zoom { from { background-size:100%; } to { background-size:105%; } }
.hero-bar::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35)); border-radius:inherit; }
.hero-bar__content { position:relative; text-align:center; max-width:800px; }
.hero-bar h1 { font-size:clamp(2.8rem, 2.2rem + 2vw, 4rem); line-height:1.05; margin:0 0 12px; color:#fff; font-weight:700; }
.hero-sub { font-size:1.2rem; opacity:.92; margin:0 0 18px; }
.hero-bar .cta-links { justify-content:center; }

/* Barry's-style Secondary Section */
.barrys-secondary { background:transparent; border-radius:20px; padding:24px; padding-top: 100px; padding-bottom: 100px; }
.barrys-secondary__grid { display:grid; grid-template-columns:1.1fr 1fr; gap:28px; align-items:center; }
.barrys-copy h2 { font-size:clamp(1.8rem, 1.6rem + 1vw, 2.4rem); margin:0 0 10px; color: var(--surface); }
.barrys-copy p { margin:0 0 16px; opacity:.9; color: var(--surface); }
.barrys-image img { width:100%; height:100%; max-height:380px; object-fit:cover; border-radius:12px; display:block; border:1px solid var(--border); }
@media (max-width: 900px) { .barrys-secondary__grid { grid-template-columns:1fr; } }

/* Third Space-style Four Hover Columns */
.ts-four__grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:20px; }
.ts-card { position:relative; border-radius:16px; overflow:hidden; border:1px solid rgba(255,255,255,0.10); display:block; box-shadow:0 14px 30px rgba(0,0,0,0.28); }
.ts-card img { width:100%; height:520px; object-fit:cover; display:block; transition:transform .25s var(--ease-out), filter .25s var(--ease-out); filter:saturate(105%); }
.ts-card .ts-overlay { position:absolute; inset:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; padding:30px; background:linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.38) 45%, rgba(0,0,0,0.72) 100%); color:#fff; }
.ts-card:hover img { transform:scale(1.03); filter:saturate(110%); }
.ts-bottom { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ts-title { font-weight:700; font-size:1.05rem; letter-spacing:.01em; transition:opacity .2s var(--ease-out), transform .2s var(--ease-out); }
.ts-action { width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.22); color:#fff; display:flex; align-items:center; justify-content:center; line-height:1; }
.ts-action::before { content: "x"; }
.ts-card:hover .ts-action { background:rgba(255,255,255,0.22); }
.ts-card:hover .ts-action::before { content: "+"; }
.ts-hover { opacity:0; transform:translateY(8px); transition:opacity .2s var(--ease-out), transform .2s var(--ease-out); max-width:60%; }
.ts-hover__copy { margin:0 0 10px; font-size:16px; line-height:2em; color:rgba(255,255,255,0.85); }
.ts-hover__btn { display:inline-block; padding:8px 12px; border-radius:999px; border:1px solid rgba(255,255,255,0.25); background:rgba(255,255,255,0.15); color:#fff; font-weight:600; font-size:.8rem; letter-spacing:.04em; }
.ts-card:hover .ts-hover { opacity:1; transform:translateY(0); }
.ts-card:hover .ts-title { opacity:0; transform:translateY(6px); }
@media (max-width: 900px) { .ts-four__grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 540px) { .ts-four__grid { grid-template-columns:1fr; } }

/* Inspiring Classes Intro */
.inspiring-intro p { opacity:.9; }
.classes-carousel { margin-top:8px; }
.classes-carousel { position:relative; }
.carousel-controls { position:absolute; inset:auto 0 50% 0; display:flex; justify-content:space-between; pointer-events:none; }
.carousel-prev, .carousel-next { pointer-events:auto; background:rgba(0,0,0,0.35); color:#fff; border:none; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; backdrop-filter:saturate(150%) blur(2px); }
.carousel-prev:hover, .carousel-next:hover { background:rgba(0,0,0,0.5); }
/* Studio Dashboard */
.studio-form { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:8px; margin-bottom:12px; }
.calendar { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:12px; margin-top:8px; }
.calendar .day { background:var(--card); padding:12px; border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.08); }
.calendar .day h4 { margin:0 0 8px; }
.calendar .day ul { list-style:none; padding:0; margin:0; }
.calendar .day li { padding:6px 0; border-top:1px solid #f0f0f0; }
@media (max-width: 768px) {
  .hero-banner { grid-template-columns:1fr; }
  .sidebar { position:fixed; left:0; top:0; height:100vh; transform:translateX(-100%); box-shadow:2px 0 8px rgba(0,0,0,0.1); }
  .sidebar.open { transform:translateX(0); }
  .main-content { margin-left:0; }
  .sidebar-toggle { display:inline-block; }
}
.studio-form { 
  display:grid; 
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); 
  gap:8px; 
  margin-bottom:12px; 
}
.calendar { 
  display:grid; 
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); 
  gap:12px; 
  margin-top:8px; 
}
.calendar .day { 
  background:var(--card); 
  padding:12px; 
  border-radius:8px; 
  box-shadow:0 4px 12px rgba(0,0,0,0.08); 
}
.calendar .day h4 { 
  margin:0 0 8px; 
}
/* Home Category Tiles (three displays) */
.category-tiles { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; margin-top:10px; }
.category-tile { position:relative; border-radius:12px; overflow:hidden; box-shadow:none; border:1px solid var(--border); display:block; }
.category-tile img { width:100%; height:220px; object-fit:cover; display:block; transition:transform .25s var(--ease-out); }
.category-tile:hover img { transform:scale(1.02); }
.tile-overlay { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:space-between; padding:12px; background:linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 60%); color:#fff; }
.tile-title { font-weight:700; font-size:1.2rem; letter-spacing:.02em; }
.tile-arrow { width:26px; height:26px;  }
.category-tile:hover .tile-arrow { transform:translateX(4px); }
@media (max-width: 900px) { .category-tiles { grid-template-columns:1fr 1fr; } }
@media (max-width: 540px) { .category-tiles { grid-template-columns:1fr; } }
/* Contact Page Layout */
.contact-wrap { display:grid; grid-template-columns:1.1fr 1fr; gap:28px; align-items:start; }
.contact-info { background:var(--card); padding:16px; border-radius:12px; box-shadow:none; border:1px solid var(--border); padding-top: 55px; padding-bottom: 55px;}
.contact-title { margin:0 0 6px; }
.contact-copy { margin:0 0 12px; opacity:.85; }
.contact-lines .line { margin:6px 0; }
.contact-lines .line span { opacity:.8; margin-right:6px; }
.contact-lines a { color:var(--accent); }
.contact-form { background:var(--card); padding:16px; border-radius:12px; box-shadow:none; border:1px solid var(--border); }
.contact-actions { margin-top:10px; display:flex; justify-content:flex-start; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns:1fr; } }
/* Site Footer (dark, four-column) */
/* Public (main) footer — full-width / full-bleed */
.site-footer.footer-main {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--bg-invert);
  color: #e6e6e6;
  padding: 40px 0 24px;
  margin-top: 20px;
  z-index: 10;
  position: relative;
}
.site-footer.footer-main .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
}

/* Footer grid & common styles */
.footer-grid { display:grid; grid-template-columns:1.25fr 1fr 1fr 1fr; gap:24px; align-items:start; }
.footer-logo img { height:50px; display:block; }
.footer-tagline { margin:12px 0 16px; max-width:340px; line-height:1.5; color:#cfcfcf; }
.footer-contact .line { margin:6px 0; }
.footer-contact .line span { opacity:.8; margin-right:6px; }
.footer-contact a { color:#fff; }
.footer-title { color:#fff; font-size:1.1rem; font-weight:700; margin:0 0 10px; position:relative; }
.footer-title::after { content:""; display:block; width:40px; height:2px; background:var(--accent); margin-top:8px; border-radius:2px; }
.footer-list { list-style:none; padding:0; margin:0; }
.footer-list li { padding:6px 0; color:#d9d9d9; display:flex; align-items:center; }
.footer-list li::before { content:'›'; color:var(--muted); margin-right:8px; }
.footer-list a { color:#d9d9d9; }
.footer-list a:hover { color:#fff; }
.footer-gallery { display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; }
.footer-gallery img { width:100%; height:100px; object-fit:cover; border-radius:10px; box-shadow:none; border:1px solid rgba(255,255,255,0.10); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.08); margin-top:24px; padding-top:16px; color:#aaa; font-size:.95rem; }
.footer-bottom p { font-size:1rem; line-height:1.6; color:var(--text-invert); }

/* Logged-in footer variant — visually the same as main but shifted/constrained for sidebar */
.site-footer.footer-logged {
  /* base fallback for non-sidebar page contexts */
  background: var(--bg-invert);
  color: #e6e6e6;
  padding: 40px 0 24px;
  margin-top: 20px;
  z-index: 10;
  position: relative;
}

/* If the footer element itself is marked as having a sidebar, shift & size it */
.site-footer.footer-logged.has-sidebar {
  margin-left: 240px;            /* match sidebar width (adjust if needed) */
  width: calc(100vw - 240px);    /* occupy remaining viewport width */
  position: relative;
  background: var(--bg-invert);
}

/* When inside the logged-in container, keep previous rules as fallback */
.container-with-sidebar .site-footer.footer-logged {
  left: 0;
  position: relative;
  /* keep secondary rule for compatibility; has-sidebar is preferred */
}

/* Keep same internal container sizing so content is centered within the content area */
.container-with-sidebar .site-footer.footer-logged .container,
.site-footer.footer-logged.has-sidebar .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer.footer-logged { margin-left: 0; width: 100%; padding-left: 12px; padding-right: 12px; }
  .site-footer.footer-main { width: 100%; margin-left: 0; margin-right: 0; padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer.footer-logged .footer-grid { grid-template-columns: 1fr; }
  .site-footer.footer-main { padding-left: 12px; padding-right: 12px; }
}
.cta-btn--outline {
  background:transparent;
  color:var(--accent);
  border:1px solid var(--accent);
}
.cta-btn--outline:hover {
  background-color: transparent;
  color:var(--text-invert);
  border-color:var(--text-invert);
}
/* Swipeable Hero Slider */
.hero-slider { position:relative; background:var(--bg-invert); color:#fff; border-radius:0; overflow:hidden; min-height:60vh; margin-top: -42px; padding-top: 20px;}
.hero-inner { max-width:1400px; margin:0 auto; position:relative; padding-inline:24px; overflow:hidden; }
.hero-track { display:flex; width:100%; transition:transform .6s var(--ease-out); }
.hero-slide { flex:0 0 100%; display:grid; grid-template-columns:1.1fr 1fr; gap:24px; align-items:center; padding:40px 20px; margin-left: 24px; }
.hero-slide__copy h1 { font-size:clamp(2.6rem, 2.2rem + 2vw, 4rem); line-height:1.05; margin:0 0 12px; color:#fff;  }
.hero-slide__copy p { font-size:1.1rem; opacity:.92; margin:0 0 18px; color:#fff; }
.hero-slide__image { position:relative; }
.hero-slide__image img { width:100%; height:420px; object-fit:cover; border-radius:16px; display:block; border:1px solid rgba(255,255,255,0.10); }
.record-disc { position:absolute; width:360px; height:360px; border-radius:50%; background:radial-gradient(circle at 50% 50%, #c32020 0%, #a11818 60%, #c3202080 100%); top:10%; left:6%; mix-blend-mode:multiply; opacity:.85; pointer-events:none; }
.hero-controls { position:absolute; left:20px; right:20px; bottom:16px; display:flex; justify-content:space-between; align-items:center; }
.hero-prev, .hero-next { background:rgba(255,255,255,0.08); color:#fff; border:none; width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.hero-prev:hover, .hero-next:hover { background:rgba(255,255,255,0.18); }
.hero-dots { display:flex; gap:6px; }
.hero-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.35); border:none; padding:0; }
.hero-dot.active { background:#fff; transform:scale(1.12); }
@media (max-width: 900px) { .hero-slide { grid-template-columns:1fr; } .hero-slide__image img { height:280px; } }
/* Full-bleed hero wrapper */
.hero-full { width: 99vw; margin-left: calc(50% - 50vw); margin-right: calc(40% - 40vw); margin-top: -50px; }

/* When user is logged in and a fixed sidebar exists, avoid full-bleed sections causing horizontal overflow */
.container-with-sidebar .hero-full,
.container-with-sidebar .hero-banner,
.container-with-sidebar .container2 {
  /* keep content within the main column */
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Provide safe max-width inside main when sidebar present */
.container-with-sidebar .hero-inner,
.container-with-sidebar .hero-slide__image img,
.container-with-sidebar .barrys-secondary__grid,
.container-with-sidebar .ts-four__grid {
  max-width: calc(100% - 40px);
}

/* Prevent overall horizontal overflow */
html, body {
  overflow-x: hidden;
}
.class-listing {
  padding: 20px;
}

.filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
 
}

.class-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.class-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.class-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.book-now-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

/* Sidebar navigation active state (matches screenshot) */
.sidebar .sidebar-nav ul { list-style:none; padding:0; margin:0; }
.sidebar .sidebar-nav li { margin: 12px 0; }
.sidebar .sidebar-nav a { display:flex; align-items:center; gap:12px; color:var(--muted); padding:8px 12px; border-radius:6px; text-decoration:none; }
.sidebar .sidebar-nav a .icon { width:28px; display:inline-flex; justify-content:center; align-items:center; }

/* Active link style like screenshot: white inset box with outlined border */
.sidebar .sidebar-nav li.active > a {
  background: rgba(255,255,255,0.06);
  color: var(--text-invert);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.02) inset;
}

/* Hover */
.sidebar .sidebar-nav a:hover { background: rgba(255,255,255,0.03); color:var(--text-invert); }

.class-thumb {
    display: block;
    width: 200px;         /* adjust to your card layout */
    height: 140px;
    object-fit: cover;    /* crops while keeping aspect ratio */
    margin: 10px auto;
    border: 2px solid #e33; /* your red box in screenshot */
    background: #fff;
    box-sizing: border-box;
}
