 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #fafafa; 
}

.container {
  width: 100%;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden; /* Bubbles ko andar tak rehne ke liye */
  text-align: center;
  padding: 1rem 1rem;
  background: linear-gradient(135deg, #e0f7fa, #f3e5f5);
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 1000px;
}

.hero h1 {
  font-size: 2.5rem;
  color: #1a237e;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* Main Layout */
.main {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0;
  justify-content: center;
}

/* Left Sidebar - fixed height + scroll */
.left-sidebar {
  flex: 0.6 1 150px;
  min-width: 150px;
  max-height: 400px; /* fix height */
  overflow-y: auto; /* vertical scroll */
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.right-sidebar {
  flex: 1 1 200px;
  min-width: 200px;
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.content {
  flex: 3 1 600px;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  min-width: 300px;
}

.content h1 {
  text-align: center;
  color: #1a237e;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Search container - desktop inline, mobile stacked */
.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.word {
  color: blue;
  cursor: pointer;
  text-decoration: underline;
}

.word:hover {
  color: darkblue;
}

 

/* Responsive Adjustments */
@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  .left-sidebar,
  .right-sidebar {
    min-width: auto;
    flex: 1 1 100%;
    max-height: none;
    overflow-y: visible;
  }

  .hero h1 {
    font-size: 2rem;
  }

  /* Mobile search layout */
  .search-container {
    flex-direction: column;
    align-items: stretch;
  }

  
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
}
