/* Local Fonts */
/* greek-ext */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/opensans-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/opensans-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* latin-ext */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/opensans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/opensans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Root Variables */
:root {
  --primary-color: #FFC107;
  --secondary-color: #333;
  --background-color: #fff;
  --accent-color: #f9f9f9;
}

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--secondary-color);
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* YouTube Facade */
.youtube-facade {
  position: relative;
  width: 100%;
  max-width: 80%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  cursor: pointer;
  overflow: hidden;
  margin: 20px auto 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
  background-color: #000;
}

.youtube-facade img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
  display: block;
  aspect-ratio: 4 / 3;
}

.youtube-facade .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background-color: #f00;
  border-radius: 6px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 20;
  border: 4px solid #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.youtube-facade .play-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.youtube-facade:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-iframe {
  width: 100%;
  min-height: 450px;
  margin-top: 20px;
  border-radius: 8px;
}

/* Unaffected Link */
a.unaffected-link,
a.unaffected-link:link,
a.unaffected-link:visited,
a.unaffected-link:hover,
a.unaffected-link:active,
a.unaffected-link:focus {
  color: inherit;
  text-decoration: none;
}

/* Hero Section */
.hero {
  background-color: var(--accent-color);
  padding: 80px 0;
  text-align: center;
  min-height: 400px;
  /* Prevents main content jump */
}

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: #000;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  background-color: #FFD740;
}

/* About Section */
.about {
  padding: 60px 0;
}

.tutor-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.text {
  flex: 1;
}

.photo {
  min-height: 400px;
}

.photo img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Video Intro */
.video-intro {
  padding: 40px 0;
  background-color: var(--accent-color);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Sections */
section {
  padding: 60px 0;
  border-top: 1px solid #ddd;
}

section ul {
  list-style: none;
  padding-left: 0;
}

section li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Testimonials */
.testimonials blockquote {
  background-color: var(--accent-color);
  padding: 20px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 20px;
}

.stars {
  color: var(--primary-color);
}

.see-more {
  margin-top: 1rem;
}

/* Footer */
.footer {
  background-color: #f5f5f5;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .tutor-info {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Navigation */
.main-nav {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand a {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary-color);
  text-decoration: none;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #d4a000;
}

.nav-button {
  background-color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 4px;
  color: #000;
}

.nav-button:hover {
  background-color: #ffd740;
}