/* === General Styles === */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-bg: #ecf0f1;
  --dark-text: #34495e;
  --light-text: #ffffff;
  --border-radius: 8px;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin: 0;
  color: var(--dark-text);
  background-color: var(--light-text);
}

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

h1,
h2,
h3,
h4 {
  color: var(--primary-color);
  font-weight: 600;
}

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

/* === Header === */
.site-header {
  background: var(--light-text);
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.site-title-link {
  color: var(--primary-color);
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--dark-text);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.main-nav a:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.dropdown {
  position: relative;
}

.dropdown .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 10px 0;
  margin: 10px 0 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  min-width: 250px;
  z-index: 1001;
}

.dropdown:hover .submenu {
  display: block;
}

.submenu li {
  padding: 0;
}

.submenu a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
}

.arrow-down {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--dark-text);
}

/* === Hero Section === */
#hero {
  background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)),
    url('https://source.unsplash.com/1600x600/?spa,wellness') no-repeat center
      center/cover;
  color: var(--light-text);
  text-align: center;
  padding: 100px 0;
}

#hero h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--light-text);
}

#hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === Content Sections === */
.content-section {
  padding: 60px 0;
}

.alt-bg {
  background-color: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
}

/* === Cards === */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

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

.card h4 {
  margin-top: 0;
  color: var(--secondary-color);
}

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

.book-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* === Forms & Buttons === */
.button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition:
    background-color 0.3s,
    transform 0.3s;
  border: none;
  cursor: pointer;
}

.button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.story-generator,
.contact-form {
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.story-output {
  margin-top: 30px;
  padding: 20px;
  background: var(--light-bg);
  border-radius: var(--border-radius);
  text-align: left;
  white-space: pre-wrap;
  line-height: 1.7;
}

/* === Course Page === */
.course-detail-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.course-banner-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--border-radius);
  margin: 20px auto;
  display: block;
  box-shadow: var(--shadow);
}

.course-detail-container h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 30px;
}

.course-detail-container h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 10px;
  margin-top: 40px;
}

.course-detail-container ul {
  list-style-type: '✔ ';
  padding-left: 20px;
}

.course-cta {
  text-align: center;
  margin: 50px 0;
}

.course-cta .button {
  font-size: 1.2rem;
  padding: 15px 40px;
}

/* === Modal Styles === */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 2000;
}

.modal {
  background-color: white;
  padding: 30px 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal.is-visible .modal {
  transform: translateY(0);
}

.modal-header {
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-header p {
  margin: 5px 0 0;
  color: #666;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--primary-color);
}

#course-modal-form .button {
  width: 100%;
  margin-top: 10px;
}

/* === Footer === */
.site-footer {
  background: var(--primary-color);
  color: var(--light-text);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.site-footer a {
  color: var(--light-text);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}
