/* Global Vintage Palette */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url('assets/parchment-texture.jpg') center/cover fixed, #f5f1e8;
  color: #333;
  font-family: 'Merriweather', serif;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: 'Cinzel', serif;
  color: #7B2C2C;
}

a {
  text-decoration: none;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(6px);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: #7B2C2C;
  display: flex;
  align-items: center;
}

.logo-icon {
  font-size: 1.9rem;
  margin-right: 0.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #333;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #D4AF37;
  transition: width .3s;
}

.nav-link:hover::before {
  width: 100%;
}

.socials {
  display: flex;
  gap: 1rem;
  margin-left: 3rem;
}

.social-icon {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon:hover {
  background: rgba(224, 170, 62, 0.2);
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(224, 170, 62, 0.4);
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* Scrolled State */


/* Responsive Styles */
@media (max-width: 992px) {
  .nav-container {
      padding: 0 2rem;
  }

  .nav-links {
      gap: 1.8rem;
  }

  .socials {
      margin-left: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
      padding: 0 1.5rem;
  }

  .nav-links {
      position: fixed;
      top: 76px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 76px);
      background: #f5f1e8;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 3rem 0;
      gap: 2.5rem;
      transition: left 0.4s ease-out;
      z-index: 999;
  }

  .nav-links.active {
      left: 0;
  }

  .nav-link {
      font-size: 1.2rem;
      padding: 0.8rem 1.5rem;
  }

  .nav-link::before {
      height: 3px;
      bottom: 0.5rem;
  }

  .socials {
      margin: 3rem 0 0;
      gap: 1.5rem;
  }

  .social-icon {
      width: 44px;
      height: 44px;
      font-size: 1.2rem;
  }

  .menu-toggle {
      display: block;
  }
}

/* Layout */
.container {
  display: flex;
  margin-top: 100px;
  min-height: 100vh;
  gap: 2rem;
  padding: 0 1rem;
}

/* Left Image */
.left-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.left-image {
  width: 100%;
  max-width: 500px;
  border: 5px solid #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Right Content */
.right-panel {
  flex: 1;
  background-color: #fefcf7;
  padding: 40px;
  font-family: 'Merriweather', serif;
}

.right-panel h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: #5e4b32;
  margin-bottom: 1rem;
}

.right-panel h2,
.right-panel h3 {
  color: #7B2C2C;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.right-panel p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Courses Section */
.courses-section {
  background-color: #f4f0ea;
  padding: 40px 20px;
  text-align: center;
}

.courses-title {
  font-size: 36px;
  font-family: 'Cinzel', serif;
  color: #5e4b32;
  margin-bottom: 10px;
}

.courses-subtitle {
  font-size: 18px;
  max-width: 920px;
  margin: 0 auto;
  color: #333;
  font-family: 'Merriweather', serif;
}

/* ----------- Responsive Enhancements ----------- */

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    margin-top: 90px;
    gap: 0;
    padding: 1rem;
  }

  .left-panel, .right-panel {
    padding: 15px;
    width: 100%;
  }

  .left-image {
    max-width: 100%;
    height: auto;
  }

  .right-panel h1 {
    font-size: 1.8rem;
  }

  .right-panel h2 {
    font-size: 1.3rem;
  }

  .right-panel h3 {
    font-size: 1.1rem;
  }

  .courses-title {
    font-size: 28px;
  }

  .courses-subtitle {
    font-size: 16px;
  }

  .navbar {
    padding: 0.8rem 0;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #f5f1e8;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0;
    gap: 2rem;
    transition: left 0.4s ease-out;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
  }

  .socials {
    flex-direction: row;
    margin-top: 2rem;
    gap: 1.2rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}