* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #ffffff;
    color: #333;
    direction: rtl;
}

.header {
    background: #013828;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
font-family:'me_quran', serif; 
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 10rem;
	      position: absolute;
  top: 10px;
  left: 200px;


}

.nav-logoaa {
font-family:'me_quran', serif; 
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 10rem;
	      position: absolute;
  top: 10px;
  left: 540px;


}

.nav-menu {
	
    display: flex;
    align-items: center;
  gap:1px;
  padding: 30px 0px;
}

.nav-menu a {
    background: #03573f;
	color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s;
	border-radius:12px;
   top: 20px;
   left: 10px;
}

.nav-menu a:hover, .nav-menu a.active {
    background: #027554;
}

.search-box {
    background: #013828;
    padding: 1px 0;
    border-top: 1px solid #0000;
          position: absolute;
  top: 32px;
  left: 900px;

}

.search-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 10px 10px;
    text-align: center;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #173019;
    border-right: none;
 
    font-size: 16px;
    direction: ltr;
	border-radius:12px;
}


.search-btn {
    padding: 12px 24px;
    background: #03573f;
    color: white;
    border: none;
    	border-radius:12px;
    cursor: pointer;
    font-size: 16px;
}


.search-help {
    text-align: center;
    color: #E8F5E8;
    font-size: 14px;
    margin-top: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
	font-family:'me_quran', serif;
    text-align: center;
    color: #013828;
    margin-bottom: 10px;
    font-size: 2.5rem;
	font-weight:10px;
}

.page-subtitle {
	font-family:'Jameel Noori Nastaleeq', serif;
    text-align: center;
    color: black;
    margin-bottom: 30px;
	font-size: 1.5rem;
	 
}

.surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
	
}

.surah-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius:12px;
    padding: 1px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.surah-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.surah-number {
    background: #013828;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600rem;
}

.surah-content {
    flex: 1;
}

.surah-name-ar {
	font-family:'me_quran', serif;
    font-size: 2.8rem;
    font-size: 2.8rem;
    color: #013828;
    margin-bottom: 5px;
	font-weight: 600rem;
}

.surah-name-en {
	font-weight: 800rem;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.surah-name-ur {
	font-family:'Jameel Noori Nastaleeq', serif;
    font-weight: 800rem;
    font-size: 1.2rem;
    color: bold;
    margin-bottom: 5px;
}

.ayah-count {
	font-weight: 800rem;
    font-size: 1.0rem;
    
    color: #666;
}

.verse {
	display:flex; gap:15px; 
	border:1px solid #e5e7eb; border-radius:8px;
	text-decoration:none; color:inherit;
    background: white;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid #012118;
    position: relative;
}

.verse-number {
    background: #013828;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-weight: bold;
}

.verse-arabic {
	font-family:'me_quran', serif;
    font-size: 1.8rem;
    text-align: right;
    margin: 15px 0;
    line-height: 2.5;
}

.verse-english {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #333;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}
 

.verse-urdu {
	font-family:'Jameel Noori Nastaleeq', serif;
    font-size: 1.4rem;
    text-align: right;
    margin: 10px 0;
    color: #333;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.verse-reference {
    text-align: left;
    direction: ltr;
    margin-top: 10px;
    padding: 5px 10px;
    background: #fffff;
    border-radius: 4px;
    display: inline-block;
    font-family: monospace;
    font-weight: bold;
    color: #013828;
    border: 1px solid #013828;
}

.surah-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-btn {
    padding: 10px 20px;
    background: #012118;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: #1B5E20;
}

.results-count {
    color: #666;
    margin-bottom: 20px;
}

.result-item {
    background: white;
    margin: 15px 0;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.result-header h3 a {
    color: black;
    text-decoration: none;
}

.result-header h3 a:hover {
    text-decoration: underline;
}

.quick-reference {
    background: #E8F5E8;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-right: 4px solid #013828;
}

.quick-reference h3 {
    color: #1B5E20;
    margin-bottom: 10px;
}

.footer {
    background: #013828;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 10px 20px;
    }
    
    .nav-menu {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .surah-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input {
        border-right: 2px solid #2E7D32;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .search-btn {
		
        border-radius: 4px;
    }
    
    .verse-arabic {
		font-family:'me_quran', serif;
        font-size: 1.4rem;
    }
    
    .surah-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        text-align: center;
    }
}

/* font-face placeholders - drop actual .ttf into assets/fonts/ */
@font-face { font-family: 'me_quran'; src: url('../fonts/me_quran.ttf') format('truetype'); }
@font-face { font-family: 'Jameel Noori Nastaleeq'; src: url('../fonts/Jameel Noori Nastaleeq.ttf') format('truetype'); }




html {
  scroll-behavior: smooth;
}


 small {
    font-size: 1.0rem;
    margin: 8px 0;
    color: #fff;
    padding: 5px;
    background: #013828;
    border-radius: 8px;
	 
	 }
	 
.word-details {
    font-size: 1.0rem;
    margin: 8px 0;
    color: #ccc;
    padding: 5px;
    background: #fff;
    border-radius: 8px;
	 
	 }


============================= */

#extendedView {
  margin-top: 40px;
  background: #f5fff5;
  border-radius: 10px;
  padding: 25px;
  border: 1px solid #b2d8b2;
  box-shadow: 0 0 10px rgba(0, 100, 0, 0.15);
  transition: background 0.3s ease;
}

.word-box {
  background: #ffffff;
  border-right: 6px solid #013828;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.word-box:hover {
  background: #f2fff2;
  transform: scale(1.01);
}

.word-box h3 {
  color: #013828;
  border-bottom: 2px solid #cce6cc;
  padding-bottom: 5px;
  margin-bottom: 10px;
  font-size: 20px;
}

.occurrence {
  background: #fffff;
  border-right: 4px solid #013828;
  margin: 12px 0;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background 0.3s;
}

.occurrence:hover {
  background: white;
}

.occurrence .arabic {
  font-family: 'me_quran';
  font-size: 24px;
  direction: rtl;
  text-align: right;
  color: #002200;
}

.occurrence .urdu {
  font-family: 'Jameel Nastaleeq';
  font-size: 18px;
  text-align: right;
  color: #004400;
}

.occurrence .english {
  font-family: 'Times New Roman';
  font-size: 16px;
  text-align: left;
  color: #333;
}

.occurrence .small {
  font-size: 14px;
  color: #666;
}

a {
  color: #013828;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #00cc66;
  text-decoration: underline;
}

/* Highlight animation when a new word is loaded */
#extendedView .word-box {
  animation: fadeGlow 0.8s ease;
}

@keyframes fadeGlow {
  0% { background-color: #c6f7c6; }
  100% { background-color: #ffffff; }
}


/* ==============================
   Floating Back-to-Top Button
   ============================== */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border: 2px solid #013828;
  border-radius: 50%;
  background: white;
  color: #013828;
  font-size: 22px;
  cursor: pointer;
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

/* When visible */
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover state */
#backToTop:hover {
  background: #013828;
  color: white;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}
