@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Header - Always visible */
header {
  background-color: #e2d4a1;
  padding: 15px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}

/* Hide any h1/h2 in header */
header h1,
header h2 {
  display: none !important;
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  background-color: transparent;
  border: none;
  gap: 6px;
}

.menu-toggle span {
  width: 32px;
  height: 4px;
  background-color: #222;
  transition: 0.3s;
  border-radius: 2px;
  display: block;
}

/* Navigation - Desktop */
nav {
  display: block;
  width: 100%;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 15px;
}

nav li {
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  transition: color 0.3s, background-color 0.3s;
  padding: 8px 12px;
  display: block;
  border-radius: 5px;
}

nav a:hover {
  color: #d17c7c;
  background-color: rgba(0,0,0,0.05);
}

/* Large Desktop */
@media screen and (min-width: 1400px) {
  nav a {
    font-size: 1.1rem;
    padding: 10px 15px;
  }
  
  nav ul {
    gap: 25px;
  }
}

/* Medium Desktop */
@media screen and (max-width: 1200px) {
  nav a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
  
  nav ul {
    gap: 12px;
  }
}

/* Small Desktop / Large Tablet */
@media screen and (max-width: 992px) {
  nav a {
    font-size: 0.85rem;
    padding: 6px 8px;
  }
  
  nav ul {
    gap: 8px;
  }
}

/* Mobile View - Hamburger Menu */
@media screen and (max-width: 768px) {
  header {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 60px;
  }
  
  /* Show hamburger button */
  .menu-toggle {
    display: flex !important;
  }
  
  /* Hide navigation by default */
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #e2d4a1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }
  
  /* Show navigation when active */
  nav.active {
    max-height: 600px;
    overflow-y: auto;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    align-items: stretch;
  }
  
  nav li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  
  nav li:last-child {
    border-bottom: none;
  }
  
  nav a {
    display: block;
    padding: 18px 20px;
    font-size: 1.05rem;
    text-align: left;
    border-radius: 0;
  }
  
  nav a:hover {
    background-color: rgba(0,0,0,0.1);
  }
  
  /* Hamburger Animation */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-7px, 7px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -7px);
  }
}

/* Extra Small Mobile */
@media screen and (max-width: 480px) {
  header {
    padding: 12px 15px;
    min-height: 55px;
  }
  
  .menu-toggle span {
    width: 28px;
    height: 3px;
  }
  
  nav a {
    padding: 16px 18px;
    font-size: 1rem;
  }
}

/* Base Hero Section */
.hero {
    background: url("imagehome.jpg") center/cover no-repeat;
    height: 50vh;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
}

/* Different Pages' Hero Images */
.aboutinstructor .hero { background-image: url("image1.jpg"); }
.aboutmusicmasters .hero { background-image: url("image2.jpg"); }
.aboutabrsmtheory .hero { background-image: url("image3.jpg"); }
.getstarted .hero { background-image: url("image4.jpg"); }
.videos .hero { background-image: url("image5.jpg"); }
.officehours .hero { background-image: url("image6.jpg"); }
.testimonials .hero { background-image: url("image7.jpg"); }

.hero-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 40px;
    border-radius: 15px;
    border: 3px solid #333;
    text-align: center;
    max-width: 90%;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h3 {
    font-weight: 400;
    color: #444;
    font-size: clamp(1rem, 4vw, 1.5rem);
}

/* Mission Section */
.mission {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    margin: 0;
    flex: 1;
}

.mission p {
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    font-size: 20px;
}

/* UL & OL Centered and Responsive */
.mission ul,
.mission ol {
    max-width: 900px;
    margin: 0 auto 20px auto;
    padding-left: 20px;
    text-align: left;
    line-height: 2.2;
    font-size: 1.1rem;
    list-style-position: inside;
}

.mission ol li {
    margin-bottom: 20px;
    font-size: 17px;
}

.mission h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.mission h3 {
    font-size: 25px;
    margin-top: 0;
}

.mission h4 {
    font-size: 22px;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    margin-top: auto;
    width: 100%;
}

footer a {
    color: #ffd2d3;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Popups */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

h1, h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

body p {
    font-size: 20px;
}

footer p {
    font-size: 1rem;
}

/* Office Hours Section */
.office-hours {
    text-align: center;
    margin: 60px auto;
    padding-bottom: 60px;
    width: 90%;
    max-width: 1200px;
}

.office-hours h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.office-text {
    text-align: center;
    margin: 0 auto 50px auto;
    max-width: 1100px;
    line-height: 1.8;
    font-size: 20px;
    padding: 0 20px;
}

@media screen and (max-width: 768px) {
  .office-text {
    font-size: 18px;
    padding: 0 15px;
  }
}

@media screen and (max-width: 480px) {
  .office-text {
    font-size: 16px;
    padding: 0 10px;
  }
}

/* Mission5 Section - About Instructor */
.mission5{
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.mission5 p {
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  font-size: 19px;
}

/* Circular Images - Desktop */
.circular-image{
  width: clamp(140px, 15vw, 220px);
  height: clamp(140px, 15vw, 220px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.circular-image2{
  width: clamp(140px, 15vw, 220px);
  height: clamp(140px, 15vw, 220px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mission5 .office-text {
  flex: 1;
  min-width: 400px;
  max-width: 700px;
}

/* Tablet view - keep images side by side with centered text */
@media screen and (max-width: 1024px) {
  .mission5 {
    gap: 20px;
  }
  
  .circular-image,
  .circular-image2 {
    width: 120px;
    height: 120px;
  }
  
  .mission5 .office-text {
    max-width: 400px;
    min-width: 250px;
  }
}

/* Mobile view - images side by side above text */
@media screen and (max-width: 768px) {
  .mission5 {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 40px 15px;
  }
  
  .circular-image,
  .circular-image2 {
    width: 130px;
    height: 130px;
  }
  
  .mission5 .office-text {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  
  .mission5 p {
    font-size: 16px;
    padding: 0 10px;
  }
}

/* Extra small phones */
@media screen and (max-width: 480px) {
  .circular-image,
  .circular-image2 {
    width: 110px;
    height: 110px;
  }
  
  .mission5 p {
    font-size: 15px;
  }
}

.iframe {
  width: 100%;
  height: 150px;
  overflow: hidden;
}