/* ===== HAMARI FASAL - Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --accent: #ff9800;
  --accent-dark: #f57c00;
  --bg: #f5f5f0;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --radius: 12px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

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

/* ===== HEADER / NAVBAR ===== */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="60" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="80" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>');
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 28px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255,152,0,0.4);
}

.hero-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,152,0,0.5);
}

/* ===== AD BANNER ===== */
.ad-banner {
  background: var(--white);
  border: 1px dashed var(--border);
  text-align: center;
  padding: 15px;
  margin: 25px 0;
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
}

.ad-sidebar {
  background: var(--white);
  border: 1px dashed var(--border);
  text-align: center;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: var(--radius);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
}

/* ===== SECTION STYLES ===== */
.section { padding: 60px 0; }
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 16px;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #a5d6a7, #66bb6a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.blog-card-body { padding: 20px; }

.blog-card-category {
  display: inline-block;
  background: rgba(46,125,50,0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s;
}

.read-more:hover { color: var(--accent); }

/* ===== BLOG POST PAGE ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 40px 0;
}

.blog-content { min-width: 0; }

.blog-post {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.blog-post h1 {
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-post-meta {
  display: flex;
  gap: 20px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.blog-post h2 {
  font-size: 24px;
  color: var(--primary);
  margin: 30px 0 15px;
}

.blog-post h3 {
  font-size: 20px;
  color: var(--text);
  margin: 25px 0 12px;
}

.blog-post p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.8;
}

.blog-post ul, .blog-post ol {
  margin: 15px 0 15px 25px;
}

.blog-post li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.blog-post blockquote {
  border-left: 4px solid var(--primary);
  padding: 15px 20px;
  background: rgba(46,125,50,0.05);
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* ===== SIDEBAR ===== */
.sidebar {}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}

.sidebar-widget h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.sidebar-widget ul { list-style: none; }

.sidebar-widget li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-widget li:last-child { border-bottom: none; }

.sidebar-widget li a {
  color: var(--text);
  transition: color 0.3s;
  font-size: 14px;
}

.sidebar-widget li a:hover { color: var(--primary); }

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.category-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.newsletter h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  outline: none;
}

.newsletter-form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover { background: var(--accent-dark); }

/* ===== FOOTER ===== */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.8);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 18px;
}

.footer p { font-size: 14px; line-height: 1.8; }

.footer ul { list-style: none; }

.footer li { margin-bottom: 8px; }

.footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
  font-size: 14px;
}

.footer a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ===== ABOUT PAGE ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-header h1 { font-size: 36px; }

.about-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: var(--shadow);
}

/* ===== CONTACT ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea { min-height: 150px; resize: vertical; }

.submit-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover { background: var(--primary-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 15px;
  }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-urdu { font-size: 22px; }
  .newsletter-form { flex-direction: column; }
  .blog-post { padding: 20px; }
  .blog-post h1 { font-size: 24px; }
}

/* RTL Support */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .nav-links { direction: ltr; }
[dir="rtl"] .blog-card-meta { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .blog-post-meta { direction: rtl; }
[dir="rtl"] .blog-post ul, [dir="rtl"] .blog-post ol { margin: 15px 25px 15px 0; }
[dir="rtl"] .blog-post blockquote { border-left: none; border-right: 4px solid var(--primary); border-radius: var(--radius) 0 0 var(--radius); }
[dir="rtl"] .logo { flex-direction: row-reverse; }
[dir="rtl"] .newsletter-form { direction: ltr; }

/* Blog Images */
.blog-post-hero {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 25px;
}

.blog-post img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.blog-img-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: -15px;
  margin-bottom: 20px;
  font-style: italic;
}

.blog-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.info-box {
  background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(76,175,80,0.05));
  border: 1px solid rgba(46,125,50,0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.info-box-icon { font-size: 30px; flex-shrink: 0; }
.info-box-content { flex: 1; }
.info-box-content h4 { color: var(--primary-dark); margin-bottom: 5px; }

@media (max-width: 768px) {
  .blog-post-hero { height: 200px; }
}
