/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== VARIABLES ===== */
:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #7b2e2e;
  --border: #e5e7eb;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
}

/* ===== BASE ===== */
body {
  font-family: Inter, system-ui, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

.urduh {
font-family: Jameel Noori Nastaleeq;
text-align: right;
direction: rtl;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

/* ===== HEADER ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.header-row {
  display: flex;
  align-items: center;
}

.brand h1 {
  font-family: Merriweather, serif;
  font-size: 1.2rem;
}

.brand p {
  font-size: 0.95rem;
  color: var(--muted);
}

.brand {
  flex-shrink: 0;
}


.main-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}

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

/* ===== HEADER (DESKTOP DEFAULT) ===== */
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav {
  display: flex;
}


/* ===== HAMBURGER BUTTON ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 0;
  display: flex;
  align-items: center; /* vertically align image + text */
  justify-content: left; /* optional spacing */
  gap: 4rem; /* space between image and text */
}

.hero-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
}

.hero img {
  width: 220px;
  height: 275px;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.hero h2 {
  font-family: Merriweather, serif;
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 60ch;
  color: var(--muted);
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* ===== CARD ===== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

.card img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: auto;
  height: 180px;
  object-fit: contain;
}

.card-body {
  padding: 1.25rem;
}

.card h4 {
  font-family: Merriweather, serif;
  margin-bottom: 0.25rem;
}

.card h3 {
  font-family: Jameel Noori Nastaleeq;
  margin-bottom: 0.25rem;
  text-align: right;
}

.card p {
  color: var(--muted);
  margin: 0.75rem 0;
}

/* ===== CONTAINER ===== */
.articles-columns {
  display: flex;
  justify-content: space-between; /* Distribute space between the columns */
  gap: 20px; /* Adds some space between the two columns */
}

.articles-list, .eng-articles-list {
  list-style-type: none;
  width: 48%;
  display: flex;
  flex-direction: column; /* Makes the list items stack vertically */
  justify-content: space-between; /* Ensures the items are spread across the height of the container */
}

.articles-list li, .eng-articles-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  flex-grow: 1; /* Ensures the list items grow to fill the container */
  display: flex;
  align-items: center; /* Vertically center the text in the list item */
}

.eng-articles-list a {
  text-decoration: none;
  color: inherit;
  font-size: 1.1rem;
  width: 100%; /* Makes the link take up the full width of the list item */
  display: block;
}

.articles-list span, .eng-articles-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.eng-articles-list {
  text-align: left; /* Left-align English text */
  direction: ltr; /* Left-to-right direction for English */
}

/* ===== SPECIAL STYLING FOR URDU ===== */
.articles-list {
  text-align: right; /* Right-align Urdu text */
  direction: rtl; /* Right-to-left direction for Urdu */
}

.articles-list a {
  text-decoration: none;
  color: inherit;
  font-family: Jameel Noori Nastaleeq;
  font-size: 1.25rem;
  width: 100%; /* Makes the link take up the full width of the list item */
  display: block;
}



/* ===== GALLERY ===== */
.gallery img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ===== ACCESSIBILITY ===== */
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ===== MOBILE ===== */
@media (max-width: 800px) {
  /* Header row (never moves) */
  .header-row {
    display: flex;
    align-items: center;
  }

  .site-header .container {
    display: block;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  /* Mobile nav (pushes content) */
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;

    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;

    border-top: 1px solid var(--border);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    margin-left: 0;
  }

  /* Hero */
  .hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
  }


  .hero img {
    margin: 0 auto;
  }
}



/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2933;
  }

  .card {
    background: #020617;
  }
}
