/* ---------- BASE ---------- */
body {
  margin: 0;
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Noto Sans Arabic', 'Arial', 'sans-serif';
  background: #000000; /* Light gray background for print */
  color: #333;          /* Dark text for readability */
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* ---------- HEADER ---------- */
h1 {
  text-align: center;
  font-size: 2.8em;
  color: #2c3e50; /* dark blue-gray */
  margin-bottom: 10px;
}

h2 {
  font-size: 2em;
  color: #34495e; /* slightly lighter blue-gray */
  margin-bottom: 15px;
  text-align: center;
}

/* ---------- FORM ---------- */
form {
  background: #ffffff; /* White background for print-friendly */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-weight: bold;

  color: #2c3e50;
  margin-bottom: 5px;
}

select, input {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #7f8c8d;
  background-color: #ecf0f1;
  color: #2c3e50;
  font-size: 1em;
  transition: border 0.3s, transform 0.2s;
}

select:hover, input:hover {
  border-color: #3498db;
  transform: scale(1.02);
}

button {
  background: #820505; /* print-friendly blue */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #2980b9;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ---------- LESSON PLAN CONTAINER ---------- */
#lessonPlanContainer {
  background: #ffffff; /* white for clean PDF/Word */
  border-radius: 10px;
  padding: 25px;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#lessonPlan {
  margin-top: 15px;
  font-size: 1.5em;
  line-height: 1.1;
text-align: center;
  color: #2c3e50; /* readable text color */
background-image: url("rh-bg.jpg");
  background-repeat: no-repeat;
  background-position: top center;   /* top alignment */
  background-size: cover;            /* full cover */
}

/* ---------- DOWNLOAD BUTTONS ---------- */
#downloadBtn, #downloadWordBtn {
  background: #820505; /* print-friendly green */
  margin-top: 15px;
  margin-right: 10px;
  color: #fff;
  border-radius: 6px;
  padding: 10px 15px;
  cursor: pointer;
  transition: 0.3s;
}

#downloadBtn:hover, #downloadWordBtn:hover {
  background: #27ae60;
  transform: scale(1.03);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  form {
    padding: 20px;
  }
  #downloadBtn, #downloadWordBtn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ---------- PRINT STYLES ---------- */
@media print {
  body, .container {
    background: #fff;
    color: #000;
  }
  form, #lessonPlanContainer {
    box-shadow: none;
    border: none;
  }
  button {
    display: none; /* hide buttons in print */
  }
}

/* ---------- HEADER ---------- */
header {
  background-color: #ffffff; /* White for clean PDF/Word */
  text-align: center;
  padding: 20px 10px;
  border-bottom: 2px solid #bdc3c7;
  margin-bottom: 20px;
}

header .logo {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 0px;
}

header h1 {
  font-size: 2.8em;
  color: #2c3e50;
  margin: 0px 0;
}

header p {
  font-size: 1.5em;
margin: auto;
  color: #34495e;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  background-color: #ffffff;
  color: #2c3e50;
  padding: 15px 10px;
  border-top: 2px solid #bdc3c7;
  margin-top: 40px;
  font-size: 1.5em;
}

.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Noto Sans Arabic', serif;
}

.ltr {
  direction: ltr;
  text-align: left;
  font-family: Arial, sans-serif;
}