/* ===========================
   GLOBAL BASE STYLES
   =========================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;           /* stop horizontal scroll on all pages */
}

body {
  background: #1e1e1e;          /* charcoal background */
  color: #f5e9d7;
  font-family: system-ui, sans-serif;
  margin: 0;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.site-header {
  background: #252525;
  border-bottom: 1px solid #3a3a3a;
  padding: 1rem;
  text-align: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.tagline {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: #d9c5b6;
}

.main-nav {
  margin-top: 0.7rem;
}

.main-nav a {
  display: inline-block;
  margin: 0 0.4rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  color: #ffd39a;
  text-decoration: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  font-weight: bold;
}

.main-nav a:hover {
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

/* ===========================
   BANNER (YOUTUBE-STYLE)
   =========================== */

.banner-wrapper {
  max-width: 1100px;
  margin: 0.75rem auto 0;
  padding: 0 1rem;
}

.site-banner {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ===========================
   SECTIONS / CARDS
   =========================== */

.section {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem auto;
  max-width: 900px;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

/* Link styles in contact section */

.contact-section a {
  color: #ffd39a;
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

/* ===========================
   VIDEO BLOCKS (HOME & LESSONS)
   =========================== */

.video-block {
  max-width: 100%;
  overflow: hidden;
}

/* Make all videos responsive */
video,
.video-small,
.lesson-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Optional: cap height of smaller lesson videos */
.video-small,
.lesson-video {
  max-height: 480px;   /* change to 400px/360px if you want shorter players */
}

/* ===========================
   BOOKING BUTTON / HOME PAGE
   =========================== */

.booking-section {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.book-button {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: #8b5a2b;
  color: #f5e9d7;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
}

.book-button:hover {
  background: #a86830;
}

/* Section on home page that links to lessons */

.lessons-link-section {
  border-top: 1px solid #5c4640;
  margin-top: 1rem;
  padding-top: 1.5rem;
}

/* ===========================
   CALENDAR STYLES
   =========================== */

.calendar-wrapper {
  width: 100%;
  overflow-x: auto;          /* ONLY the calendar can scroll sideways */
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
  min-width: 900px;          /* ensures inner scroll on small screens */
}

.calendar-table th,
.calendar-table td {
  border: 1px solid #7d6254;
  padding: 0.5rem;
  text-align: center;
}

.calendar-table th {
  background: #2e2323;
}

/* Calendar cell states */

.calendar-table td.available {
  background-color: #2f7d32;   /* green */
  color: #ffffff;
}

.calendar-table td.unavailable {
  background-color: #555555;   /* grey for unavailable */
  color: #ffffff;
}

.calendar-table td.booked {
  background-color: #c75b2a;   /* reddish/orange for booked */
  color: #ffffff;
}

/* Legend boxes */

.legend-box {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.legend-box.available {
  background-color: #2f7d32;
}

.legend-box.unavailable {
  background-color: #555555;
}

.legend-box.booked {
  background-color: #c75b2a;
}

.calendar-legend {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.calendar-email a {
  color: #ffd39a;
  text-decoration: none;
}

.calendar-email a:hover {
  text-decoration: underline;
}

/* ===========================
   LESSONS PAGE / CARDS
   =========================== */

.lessons-section {
  max-width: 800px;
  margin: 0 auto;
}

.lesson-card {
  background: #4a3a3a;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  border: 1px solid #7d6254;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.lesson-button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: #8b5a2b;
  color: #f5e9d7;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}

.lesson-button:hover {
  background: #a86830;
}

.back-links {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.back-links a {
  color: #ffd39a;
  text-decoration: none;
}

.back-links a:hover {
  text-decoration: underline;
}

/* Lesson index list (0–16) */

.lesson-index-list {
  list-style: none;
  padding-left: 0;
}

.lesson-index-list li {
  margin: 6px 0;
}

.lesson-index-list a {
  text-decoration: none;
  color: #f4f4f4;
}

.lesson-index-list a:hover {
  text-decoration: underline;
}

/* ===========================
   FOOTER + ICON LINKS
   =========================== */

.site-footer {
  background: #2e2323;
  padding: 1.5rem 1rem;
  border-top: 1px solid #5c4640;
  text-align: center;
  margin-top: 2rem;
}

.footer-links {
  margin-bottom: 0.8rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffd39a;
  text-decoration: none;
  margin: 0 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.footer-icon {
  width: 18px;
  height: 18px;
  fill: #ffd39a;
}

.footer-copy {
  color: #d6c6b8;
  font-size: 0.8rem;
  margin-top: 0.8rem;
}

/* Bottom navigation (if used) */

.bottom-nav {
  background: #2e2323;
  padding: 1rem;
  text-align: center;
  border-top: 1px solid #5c4640;
  margin-top: 2rem;
}

.bottom-nav a {
  color: #ffd39a;
  text-decoration: none;
  margin: 0 0.8rem;
  font-weight: 600;
}

.bottom-nav a:hover {
  text-decoration: underline;
}

/* ===========================
   FLOATING BACK TO TOP BUTTON
   =========================== */

.back-to-top-floating {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  background: #8b5a2b;
  color: #f5e9d7;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.back-to-top-floating:hover {
  background: #a86830;
}

/* ===========================
   NOTICE BANNER / PRICING BOX
   =========================== */

.notice-banner {
  background-color: #333333;
  color: #f5f5f5;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 15px 0;
  border-left: 4px solid #ffcc66;
  font-weight: 600;
  line-height: 1.4;
}

.price-box {
  background: #222222;
  border: 1px solid #444444;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.price-box h3 {
  margin-top: 0;
  color: #f0f0f0;
}

.price-box ul {
  list-style: none;
  padding-left: 0;
}

.price-box li {
  margin: 6px 0;
  color: #dddddd;
}

/* ===========================
   LESSON IMAGES + LIGHTBOX
   =========================== */

/* Thumbnail size for diagrams */
.lesson-image {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 6px;
  cursor: zoom-in;
  transition: 0.2s;
}

/* Dark overlay */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;           /* shown via JS */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Enlarged image */
.image-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px #000;
  cursor: zoom-out;
}

/* Make all images responsive as a fallback */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   MOBILE TWEAKS
   =========================== */

@media (max-width: 600px) {
  .video-block,
  .lesson-video {
    padding: 0;
    margin: 10px auto;
  }
}
