/* ===== CSS Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Updated color palette to new purple/violet scheme */
:root {
  --primary: #69306d;
  --secondary: #f2d7ee;
  --accent: #a5668b;
  --text: #0e103d;
  --white: #ffffff;
  --gray-light: #d3bcc0;
  --gray-dark: #69306d;
  --section-spacing: 100px;
  --border-radius: 12px;
  --transition: 0.3s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--primary);
  z-index: 1000;
  transition: var(--transition);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== Burger Menu ===== */
.burger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: var(--primary);
  position: relative;
  transition: var(--transition);
}

.burger-line::before,
.burger-line::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: var(--transition);
}

.burger-line::before {
  top: -8px;
}

.burger-line::after {
  top: 8px;
}

.burger.active .burger-line {
  background: transparent;
}

.burger.active .burger-line::before {
  transform: rotate(45deg);
  top: 0;
}

.burger.active .burger-line::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #1557b0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
  background: var(--accent);
  color: var(--white);
}

.btn-secondary:hover {
  background: #e6396f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 64, 129, 0.3);
}

/* ===== Hero Section ===== */
/* Completely redesigned hero with split layout - image left, content right */
.hero {
  position: relative;
  min-height: 650px;
  background: var(--white);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 650px;
  align-items: center;
}

.hero-image-side {
  height: 100%;
  min-height: 650px;
  overflow: hidden;
}

.hero-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content-side {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--white) 100%);
  height: 100%;
  min-height: 650px;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text);
  line-height: 1.6;
}

/* ===== About Section ===== */
.about {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--primary);
}

.about-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--gray-dark);
}

/* ===== Features Section ===== */
.features {
  padding: var(--section-spacing) 0;
  background: var(--secondary);
}

.text-center {
  text-align: center;
}

.features-image {
  margin: 50px auto;
  max-width: 950px;
}

.features-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary);
}

.feature-text {
  font-size: 15px;
  color: var(--gray-dark);
}

/* ===== Instructors Section ===== */
.instructors {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.instructors-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.instructors-intro {
  font-size: 18px;
  color: var(--gray-dark);
  margin-top: 20px;
}

.instructors-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: var(--section-spacing) 0;
  background: var(--secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 4px solid var(--primary);
}

.testimonial-text {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text);
}

.testimonial-author {
  font-weight: 500;
  color: var(--primary);
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-text {
  color: var(--gray-light);
  font-size: 15px;
}

.footer-contact,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact a,
.footer-links a {
  color: var(--gray-light);
  font-size: 15px;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-light);
  font-size: 14px;
}

/* ===== Page Content (for Privacy & Contact pages) ===== */
.page-content {
  padding: var(--section-spacing) 0;
  min-height: 60vh;
}

.content-article {
  max-width: 900px;
  margin: 0 auto;
}

.content-article h1 {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 30px;
}

.content-article h2 {
  font-size: 28px;
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 20px;
}

.content-article h3 {
  font-size: 22px;
  color: var(--text);
  margin-top: 25px;
  margin-bottom: 15px;
}

.content-article p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--gray-dark);
}

.content-article ul {
  list-style: disc;
  margin-left: 30px;
  margin-bottom: 20px;
}

.content-article ul li {
  margin-bottom: 10px;
  color: var(--gray-dark);
}

.content-article a {
  color: var(--primary);
  text-decoration: underline;
}

.content-article a:hover {
  color: var(--accent);
}

.content-article section {
  margin-bottom: 40px;
}

.update-date {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--gray-light);
  color: var(--gray-dark);
  font-size: 14px;
}

.intro-text {
  font-size: 20px;
  color: var(--gray-dark);
  margin-bottom: 50px;
}

/* ===== Contact Page Specific Styles ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 50px 0;
}

.contact-card {
  background: var(--secondary);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.contact-card h2 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 15px;
}

.contact-card p {
  font-size: 16px;
  margin-bottom: 10px;
}

.contact-card a {
  color: var(--primary);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-hours {
  font-size: 14px;
  color: var(--gray-dark);
  font-style: italic;
}

.contact-info {
  background: var(--secondary);
  padding: 40px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
}

.contact-info h2 {
  margin-top: 0;
}

.contact-info ul {
  list-style: none;
  margin-left: 0;
}

.contact-info ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
}

.contact-info ul li:last-child {
  border-bottom: none;
}

.faq-item {
  margin-bottom: 30px;
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-cta {
  background: var(--primary);
  color: var(--white);
  padding: 50px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 60px;
}

.contact-cta h2 {
  color: var(--white);
  margin-bottom: 15px;
}

.contact-cta p {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 30px;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 1023px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding-top: 80px;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 20px 30px;
    border-bottom: 1px solid var(--gray-light);
  }

  .burger {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Stack hero sections vertically on tablet */
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-image-side {
    min-height: 400px;
  }

  .hero-content-side {
    min-height: auto;
    padding: 50px 30px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  /* Adjust hero for mobile */
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-image-side {
    min-height: 300px;
  }

  .hero-content-side {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 25px;
    font-size: 14px;
  }

  :root {
    --section-spacing: 60px;
  }

  .content-article h1 {
    font-size: 32px;
  }

  .content-article h2 {
    font-size: 24px;
  }

  .intro-text {
    font-size: 18px;
  }
}
