/* ===== GOOGLE FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu&display=swap');

/* ===== GLOBAL STYLING ===== */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
}

header {
  background: #004080;
  color: #fff;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header img {
  height: 80px;
}

header h1 {
  margin: 0;
  font-size: 22px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

header nav a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 15px;
}

.box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* ===== URDU FONT ===== */
.urdu {
  font-family: 'Noto Nastaliq Urdu', serif !important;
  direction: rtl;
  text-align: right;
  line-height: 2;
  font-size: 22px;
}

/* ===== WORD GRID ===== */
.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 15px;
  align-items: stretch;
}

.word-box {
  background: #e9f2ff;
  padding: 12px 8px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  transition: 0.3s;
}

.word-box:hover {
  background: #cfe2ff;
}

/* ===== FORM ===== */
form textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  resize: vertical;
  font-family: inherit;
}

form select {
  padding: 8px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

form button {
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  background: #004080;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #0066cc;
}

/* ===== ARTICLE ===== */
.article {
  margin-top: 25px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  padding: 15px;
  background: #fdfdfd;
  border-radius: 6px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 15px;
  background: #004080;
  color: #fff;
  margin-top: 20px;
}

