:root {
  --link-color: blue;
  --button-bg: rgb(146, 103, 51);
}

* {
  box-sizing: border-box;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.2rem;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: #fff;
  color: #202122;
}

#uchcharan {
  cursor: pointer;
}

#uchcharan:hover {
  outline: 1px dotted #333;
}

.d-inline-block {
  display: inline-block
}

.page-intro {
  font-size: 0.8rem;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  gap: 5px;
}

header>div {
  flex: 1;
}

header .logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

header span.hamburger-icon {
  color: #333;
  font-size: 34px;
  cursor: pointer;
}

nav {
  position: absolute;
  background: #eee;
  width: auto;
  z-index: 4;
  top: 60px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul a {
  text-decoration: none;
  color: #333;
  padding: 0.6rem;
  font-size: 0.9rem;
  display: block;
  border-bottom: 1px dashed #ccc;
}

nav ul a:hover {
  background-color: #ccc;
}

article {
  padding: 1rem;
  /* min-height: calc(100vh - 63px - 88px); */
}

.social {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social img {
  width: 32px;
  margin-left: 7px;
}

.footer {
  background: #73060c;
  padding: 1rem;
  margin-top: 2rem;
}

footer {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 1rem;
}

.footer-copyright {
  padding: 1rem 0;
}

footer * {
  color: #fff;
}

footer li a span[lang="sa"] {
  color: #fff;
}

footer a {
  text-decoration: none;
}

footer img:not(.yt){
  filter: invert(1);
}

footer ul {
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  display: inline-grid;
  grid-gap: 10px;
  margin-top: 1rem;
}

footer ul.menu li {
  padding: 4px 6px 3px 6px;
}

.search {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem;
  padding: 0 1rem;
  position: relative;
}

.search .search-input {
  display: inline-block;
  max-width: 400px;
  width: 100%;
  padding: 8px;
  font-size: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 0;
  position: relative;
  top: 0;
  bottom: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.search .suggestions {
  max-width: 400px;
  width: 100%;
  position: absolute;
  top: 36px;
  right: 0;
  background: #fafafa;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  z-index: 4;
  max-height: 370px;
  overflow-y: auto;
}

.search .suggestions span.close {
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: .5rem;
  cursor: pointer;
  padding: 2px;
}

.search .suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.search .suggestions ul a {
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-bottom: 1px dashed #eee;
  color: #727272;
}

.search .suggestions ul a:hover {
  background: #ccc;
}

.search .suggestions .no-results {
  color: red;
  padding: 0.5rem;
  font-size: 0.8rem;
}

.search-wrapper {
  position: relative;
}

.search-wrapper .search-icon {
  position: absolute;
  right: 0;
  top: 0;
  background: #ccc;
  padding: 5px;
  z-index: 1;
  cursor: pointer;
  bottom: 0;
  height: 100%;
}

.search-wrapper .search-icon.disabled {
  opacity: 0.3;
  background: grey;
  cursor: not-allowed;
  pointer-events: none;
}

.search-wrapper input[type="text"]:focus {
  outline: none;
}

.next-prev {
  display: flex;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.next-prev .prev {
  flex: 1;
}

.next-prev .next {
  text-align: right;
  flex: 1;
}

.hidden {
  display: none;
}

.poem,
.story {
  line-height: 1.5;
  word-spacing: 5px;
  overflow-wrap: anywhere;
}

span[data-wmid] {
  border-bottom: 1px dashed #ccc;
  cursor: pointer;
}

span[data-wmid].active {
  outline: 1px solid red;
}

span[data-slug] {
  border-bottom: 1px dotted blue;
  cursor: pointer;
}

.popup {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 1rem;
  z-index: 1;
  width: 250px;
  padding-top: 2rem;
  text-align: left;
}

.popup .close {
  font-size: 2rem;
  cursor: pointer;
  color: #aea1a1;
  font-weight: 500;
  position: absolute;
  top: -4px;
  right: 5px;
}

.popup .link {
  display: block;
  text-align: right;
  font-size: 0.9rem;
  text-decoration: none;
  color: blue;
}

.popup .hi_meaning {
  background: #fcddb0;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.popup .en_meaning {
  background: aliceblue;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.wwmc {
  position: relative;
}

.breadcrumb {
  font-size: 0.9rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #ccc;
  border-top: 1px dashed #ccc;
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: blue;
  text-decoration: none;
}

.top-notification {
  background: orange;
  bottom: 0;
  color: #000;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  position: fixed;
  z-index: 22;
  width: 100%;
}

.top-notification a {
  color: #000;
  text-decoration: none;
  border: 1px dotted #000;
  padding: 3px;
  display: inline-block;
}

.top-notification a span.right {
  font-size: 1rem;
}

.top-notification span.close {
  background: #333;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 0.5rem;
  margin-top: 0.3rem;
}

.adContainer {
  position: relative;
  border: 1px dashed #ccc;
}

.adContainer::after {
  content: "विज्ञापन (Ad)";
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: #ccc;
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  background: #fff;
  z-index: -1;
}

body.meaning_1 article {
  margin-bottom: 3rem;
}

.meaning-header {
  /* position: sticky;
  top: 0; */
  width: 100%;
  background-color: rgba(160, 160, 160);
  color: #000;
  padding: 10px;
  text-align: center;
  /* z-index: 1000;  */
  font-size: larger;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
  .meaning-header {
    font-size: 14px;
    padding: 8px;
  }
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.modal-content {
  position: relative;
  margin: 2% auto;
  width: 90%;
  height: 90%;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

.modal-close-button {
  position: absolute;
  top: 9px;
  right: 10px;
  background: transparent;
  color: white;
  border: none;
  padding: 0px;
  cursor: pointer;
  font-size: 40px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 100;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    height: 90%;
  }

  .modal-close-button {
    font-size: 25px;
    padding: 3px 6px;
    width: 35px;
    height: 35px;
    font-weight: bold;
    top: 2px;
    right: 3px;
  }
}

.disable-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

[lang="sa"],
[lang="sa"] * {
  color: #790e10;
}

.avastha_0 .user-profile-pic {
  opacity: 0.4;
}

@media print {
  .disable-select {
    display: none;
    filter: grayscale(100%);
  }
}

@media (min-width: 1044px) {
  .container {
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
  }

  header {
    padding-left: 0;
    padding-right: 0;
  }

  article {
    padding-left: 5px;
    padding-right: 5px;
  }

  .search {
    padding: 0;
  }
}

@media (min-width: 350px) {
  .top-notification {
    font-size: 14px;
  }
}



/* Overlay (background blur effect) */
.premium-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px; 
}

/* Modal Container */
.premium-popup {
  background: white;
  width: 60%;
  max-width: 600px; 
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.premium-popup .close-btn {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  background-color: rgba(249, 153, 153, 0.616);
  padding: 5px;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image Container */
.image-container {
  width: 100%;
  height: auto; 
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: auto; 
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .premium-popup {
    width: 100%; 
    min-width: 100%;
    padding: 15px;
  }

  .premium-popup .close-btn {
    border-radius: 50%;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .image-container {
    height: auto; 
  }
}
