 * {
  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; 
  margin: 0;
  padding-top: 0 !important; /* remove dynamic JS padding */
}

.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;
  }
}




/* Sidebar Widget Style */
.sidebar-widget {
  background: linear-gradient(135deg, #f0f9ff, #e0f7fa);
  border: 1px solid #cfd8dc;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-family: "Segoe UI", Arial, sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.sidebar-widget:hover {
  transform: translateY(-3px);
}

/* Heading */
.sidebar-widget h3 {
  margin-top: 0;
  color: #00796b;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Word (main clickable link) */
.word-link {
  display: inline-block;
  font-weight: bold;
  font-size: 22px;
  color: #0288d1;
  text-decoration: none;
  margin-bottom: 10px;
  position: relative;
  animation: floatWord 3s ease-in-out infinite;
}

.word-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #0288d1;
  transition: width 0.3s;
  margin: auto;
}

.word-link:hover::after {
  width: 100%;
}

.word-link:hover {
  color: #01579b;
}

/* Meaning */
.word-meaning {
  font-size: 15px;
  color: #444;
  margin: 10px 0;
}

/* Note (not clickable) */
.note {
  font-size: 13px;
  color: #777;
  font-style: italic;
  margin-top: 10px;
}

/* Animation for Word */
@keyframes floatWord {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* Responsive (Mobile Friendly) */
@media (max-width: 768px) {
  .sidebar-widget {
    padding: 15px;
  }
  .word-link {
    font-size: 20px;
  }
  .word-meaning {
    font-size: 14px;
  }
}


