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

html{
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdf6f6;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  background-color: #ffe6ec;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-wrap: nowrap;
  position: relative;
}

.logo {
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  font-weight: 600;
  color: #c2185b;
  cursor: pointer;
}

.logo:hover{
  transform: scale(1.1);
}

.search-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 250px;
}

.search-container input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #333;
  border-radius: 20px 0 0 20px;
  outline: none;
  width: 100%;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
}

.search-container button {
  padding: 0.5rem 0.75rem;
  border: 1px solid #333;
  background-color: #c2185b;
  color: white;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
}

.search-container button i {
  font-size: clamp(0.7rem, 2vw, 0.8rem);
}

.search-results{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-134%);
  background: #fff;
  border: 1px solid #ccc;
  width: 90%;
  max-height: 200px;
  max-width: 250px;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.search-results li{
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  color: #333;
}

.search-results li:hover{
  background-color: #ffe6ec;
}

.search-results li.no-result{
  text-align: center;
  color: #999;
  cursor: default;
}

.menu-toggle {
  display: none;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #c2185b;
  cursor: pointer;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.navbar a {
  text-decoration: none;
  color: #5a2a3c;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.navbar a:hover {
  color: #c2185b;
}

/* Responsive Header */
@media (max-width: 768px) {
  .main-header {
    padding: 1.3rem 3%;
    flex-wrap: wrap;
  }

  .logo{
    font-size: 20px;
    letter-spacing: -1px;
    font-weight: 500;
  }

  .search-container {
    max-width: 35%;
    margin: 0 auto;
    flex-grow: 1;
  }

  .search-container input {
    padding: 4px;
  }

  .search-container button {
    padding: 2.5px 6px;
  }
  
  .search-container button i {
    font-size: 11px;

  }

  .search-container input::placeholder{

    font-size: 8px;
    padding: 8px;
  }
  .menu-toggle {
    display: block;
    font-size: 20px;
    color: #c2185b;
    cursor: pointer;
    margin-left: auto;
  }

  .navbar ul {
    display: none;
    position: absolute;
    top: 55px;
    right: 20px;
    background-color: #ffe6ec;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 17px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }

  .navbar.active ul {
    display: flex;
  }

  .search-results{
   position: absolute;
   top: 55px;
   transform: translateX(0%);
   width: 109px;
   max-height: 150px;
   border-radius: 8px;
  }
  
 .search-results li{
  padding: 5px;
  cursor: pointer;
  font-size: 10px;
}

}

.hero-section {
  background: linear-gradient(to bottom, #fbe5ec, #fdf6f6);
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #5a2a3c;
  padding: 2rem 5%;
}

.featured-verse{
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  color: #7c344c;
  line-height: 1.8;
  font-weight: 500;
  padding: 1rem 0.5rem;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-family: 'Georgia', serif;
  margin-bottom: 0.5rem;
  color: #c2185b;
  margin-top: 1rem;
}

.hero-content p{
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  padding: 1rem 12px;
  text-align: justify;
  font-size: 16px;

}

.tagline {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: #a0526d;
  font-style: italic;
  margin-bottom: 1rem;
}

.hero-img {
  width: clamp(140px, 40vw, 180px);
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #c2185b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
}

.about-section {
  padding: 40px 20px;
  background-color: #fdf6f6;
  color: #3c2f30;
}

.about-section h2 {
  text-align: center;
  font-size: 25px;
  color: #c2185b;
  margin-top: 60px;
  margin-bottom: 25px;
  font-family: 'Georgia', serif;
}

.about-section .container {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
  font-size: 16px;
  padding-left: 12px;
}

.about-section p {
  margin-bottom: 20px;
  text-align: justify;
}

.gallery-section {
  padding: 40px 20px;
  background-color: #fff7fa;
  color: #3c2f30;
}

.gallery-section h2 {
  text-align: center;
  font-size: 25px;
  color: #c2185b;
  margin-bottom: 30px;
  font-family: 'Georgia', serif;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item {
  text-align: center;
}

.gallery-item p {
  margin-top: 10px;
  font-size: 16px;
  color: #5a2a3c;
  font-style: italic;
}

@media (max-width: 768px){
  .gallery-grid img{
    width: 85%;
  }
}
.books-section {
  padding: 40px 20px;
  background-color: #fff7fa;
  color: #3c2f30;
}

.books-section h2 {
  text-align: center;
  font-size: 25px;
  color: #c2185b;
  margin-bottom: 30px;
  font-family: 'Georgia', serif;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.book-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
}

.book-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.book-card h3 {
  font-size: 20px;
  color: #7b1b47;
  margin: 10px 0 5px;
}

.book-card p {
  font-size: 15px;
  color: #5e4141;
}

.pdf-button{
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 7px 10px;
  background-color: #c2185b;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  transition: background 0.3s ease;
}

.pdf-button:hover{
  background-color: #9b1248;
}

@media (max-width: 768px){
  .books-grid {
  grid-template-columns: 85%;
  justify-content: center;
  }
}

.awards-section {
  padding: 40px 20px;
  background-color: #fdf6f6;
  color: #3c2f30;
  font-size: 18px;
  line-height: 1.8;
  justify-items: center;
}

.awards-section h2 {
  text-align: center;
  font-size: 25px;
  color: #c2185b;
  margin-bottom: 20px;
}

.award-highlight {
  background-color: #fbeff3;
  padding: 20px;
  border-left: 4px solid #a0526d;
  margin-bottom: 30px;
  border-radius: 6px;

}

.award-highlight h3 {
  font-size: 19px;
  color: #a0526d;
}

.award-highlight p{
  font-size: 16px;
}

@media (max-width: 768px){
  .award-highlight h3 {
  font-size: 17px;
  }
  .award-highlight p{
  font-size: 13px;
  text-align: center;
 }
}

.award-list h3 {
  font-size: 25px;
  color: #c2185b;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
}

.award-list ul {
  list-style-type: disc;
  padding-left: 20px;
}

.award-list li {
 max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 16px;
  padding: 7px;
  text-align: justify;
}

.contact-section {
  padding: 60px 20px;
  background-color: #fff7fa;
  text-align: center;
}

.contact-section h2 {
  font-size: 25px;
  color: #c2185b;
  margin-bottom: 30px;
}

.contact-info a {
  color:#a0526d;
  text-decoration: none;
  font-weight: bold;
}

.contact-form {
  max-width: 300px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.contact-form button {
  background-color: #c2185b;
  color: white;
  border: none;
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.contact-form button:hover {
  background-color: #9b1248;
}

.site-footer {
  background-color: #ffe6ec;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #3c2f30;
  text-align: center;
  padding: 20px 10px;
  font-size: 15px;
}

.site-footer .tribute-line {
  font-size: 13px;
  font-style: italic;
  margin-bottom: 15px;
  opacity: 0.9;
}

.footer-links {
  margin-bottom: 15px;
  font-size: 12px;
}

.footer-links a {
  color: #3c2f30;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
  opacity: 0.8;
}

.footer-links a:hover {
  color: #3c2f30;
  text-decoration: underline;
  opacity: 1.2 ;
}

.copyright {
  font-size: 11px;
  color: #3c2f30;
  opacity: 0.8;
}

#introduction, #about, #gallery, #books{
  scroll-margin-top: 100px;
}

mark {
  background-color: yellow;
  color: black;
  font-weight: bold;
  padding: 0 2px;
  border-radius: 2px;
}

.highlight {
  display: inline;
}
