/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap");

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove any default borders or outlines */
* {
  border: none;
  outline: none;
  box-shadow: none;
}

/* Remove developer tools highlighting */
*:focus,
*:active,
*:hover {
  outline: none !important;
  box-shadow: none !important;
}

/* Smooth scrolling and performance optimization */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  font-family: "Josefin Sans", sans-serif;
  line-height: 1.6;
  color: #000000;
  background: #ffffff;
  overflow-x: hidden;
}

/* Content styling */
main {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Hero Section */
.hero-section {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  line-height: 0;
  display: block;
  background-color: #ffffff;
  transform: scale(1);
  overflow: hidden;
}

.hero-section img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background-color: #ffffff;
  transform: scale(1);
}

.hero-section h1 {
  position: absolute;
  top: 25%;
  left: 25%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: 3rem;
  font-weight: 300;
  margin: 0;
  padding: 0;
  text-align: center;
  z-index: 10;
  font-family: "Josefin Sans", sans-serif;
  opacity: 1;
}

/* Main Grid Container */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr 1fr;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* Content Grid Layout */
.content-grid {
  grid-column: 1 / -1;
  grid-row: 2 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 60vh;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  gap: 0;
}

.grid-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border: none;
  outline: none;
}

/* Text Block */
.text-block {
  background-color: #ffffff;
  align-items: flex-start;
  justify-content: center;
}

.text-content {
  max-width: 100%;
  width: 100%;
}

.text-content h2 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #2c2c2c;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-align: left;
}

.text-content p {
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c2c2c;
  margin-bottom: 1.2rem;
  text-align: left;
}

/* Media Block */
.media-block {
  background-color: #ffffff;
  padding: 0;
  overflow: hidden;
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background-color: #000;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 120%;
  min-height: 120%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  border: none;
  object-fit: cover;
  object-position: center;
}

/* Image Container */
.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background-color: #ffffff;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  outline: none;
}

/* Teaching Calendar Section */
.teaching-calendar {
  margin: 0;
  padding: 4rem 2rem;
  background-color: #ffffff;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.teaching-calendar h2 {
  margin-bottom: 4rem;
  text-align: center;
  color: #2c2c2c;
  font-family: "Josefin Sans", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  position: relative;
}

.teaching-calendar h2::after {
  display: none;
}

.teaching-calendar h3 {
  margin: 3rem 0;
  color: #2c2c2c;
  text-align: center;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  position: relative;
}

.teaching-calendar h3::after {
  display: none;
}

/* Weekday Section Container */
.weekday-section {
  display: block;
  width: 100%;
  margin-bottom: 3rem;
}

.weekday-section:last-child {
  margin-bottom: 0;
}

/* Weekday Heading */
.weekday-heading {
  padding: 0;
  margin-bottom: 1rem;
}

.weekday-heading h4 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #2c2c2c;
  margin: 0;
  text-align: left;
}

/* Class List */
.class-list {
  padding: 0;
}

.class-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.class-list li {
  margin-bottom: 0.5rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #2c2c2c;
  position: relative;
  padding-left: 1.5rem;
}

.class-list li::before {
  display: none;
}

.class-list strong {
  color: #b33;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* Info Section */
.info-section {
  text-align: center;
  margin-top: 3rem;
  padding-top: 0;
  border-top: none;
}

.info-section p {
  font-family: "Josefin Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #2c2c2c;
  margin-bottom: 1rem;
}

.info-section a {
  color: #2c2c2c;
  text-decoration: underline;
  text-decoration-color: #000000;
  text-underline-offset: 2px;
  font-weight: 500;
}

.info-section a:hover {
  color: #000000;
}

/* Professional Training Section */
.professional-training {
  margin-top: 3rem;
  padding: 0;
  background-color: #ffffff;
}

.professional-training h3 {
  margin-bottom: 1rem;
  text-align: left;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #2c2c2c;
}

.professional-training p {
  font-family: "Josefin Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.professional-training p::before {
  display: none;
}

/* Links */
a {
  color: #333333;
  text-decoration: underline;
  font-family: "Cormorant Garamond", serif;
}

a:hover {
  color: #000000;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  /* Main Grid Mobile */
  .main-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Hero Section Mobile */
  .hero-section {
    grid-column: 1;
    grid-row: 1;
    height: 50vh;
    min-height: 50vh;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
  }

  /* Content Grid Mobile */
  .content-grid {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr;
    min-height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .grid-item {
    padding: 1.5rem;
    min-height: 300px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Mobile order: text 1 - video - text 2 - image */
  .content-grid .grid-item:nth-child(1) {
    order: 1; /* Text Block 1 (About My Teaching) */
  }

  .content-grid .grid-item:nth-child(2) {
    order: 2; /* Video Block */
  }

  .content-grid .grid-item:nth-child(3) {
    order: 4; /* Image Block */
  }

  .content-grid .grid-item:nth-child(4) {
    order: 3; /* Text Block 2 (Studio Experience) */
  }

  .text-block {
    min-height: auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .text-content {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }

  .text-content h2,
  .text-content p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }

  .media-block {
    min-height: 300px;
    padding: 0;
  }

  .video-container,
  .image-container {
    min-height: 300px;
  }

  /* Mobile video responsive adjustment */
  .video-container {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 145%;
    min-height: 145%;
    width: 145%;
    height: 145%;
    transform: translate(-50%, -50%);
    border: none;
    object-fit: cover;
    object-position: center;
    transform-origin: center center;
  }

  /* Video controls scaling */
  .video-container iframe::-webkit-media-controls {
    transform: scale(0.1);
    transform-origin: bottom right;
  }

  .video-container iframe::-webkit-media-controls-panel {
    transform: scale(0.1);
    transform-origin: bottom right;
  }

  .text-content h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .text-content p {
    text-align: center;
    font-size: 15px;
  }

  /* Hero Section Mobile */
  .hero-section h1 {
    font-size: 1.5rem;
    top: 15%;
    left: 25%;
  }

  /* Navigation Mobile */

  /* Teaching Calendar Mobile */
  .teaching-calendar {
    padding: 2rem 1rem;
    max-width: 100%;
  }

  .teaching-calendar h2 {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
  }

  .teaching-calendar h3 {
    font-size: 1.2rem;
    margin: 2rem 0;
  }

  .weekday-section {
    flex-direction: column !important;
    margin-bottom: 2rem;
    min-height: auto;
  }

  .weekday-heading {
    flex: none;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }

  .weekday-heading h4 {
    font-size: 1rem;
  }

  .class-list {
    flex: none;
    padding: 0;
  }

  .class-list li {
    font-size: 14px;
    margin-bottom: 0.6rem;
  }

  .info-section,
  .professional-training {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
  }

  .info-section p,
  .professional-training p {
    font-size: 14px;
  }
}

/* Prevent horizontal scrolling globally */
html,
body {
  overflow-x: hidden;
}
